/* ==========================================================================
   Witty Pagoda — Crisp Tactile Daylight & Neo-Pop Arctic Ricochet Styling
   Palette: #0284C7 (Primary Blue), #38BDF8 (Sky Cyan), #F8FAFC (Frosted Pearl Ivory)
   ========================================================================== */

:root {
  --primary: #0284C7;
  --primary-dark: #0369A1;
  --sky-cyan: #38BDF8;
  --sky-light: #E0F2FE;
  --pearl-ivory: #F8FAFC;
  --card-frosted: rgba(242, 252, 255, 0.86);
  --card-frosted-strong: rgba(248, 253, 255, 0.94);
  --border-crisp: rgba(2, 132, 199, 0.28);
  --border-bright: rgba(56, 189, 248, 0.55);
  --text-dark: #0F172A;
  --text-slate: #334155;
  --text-muted: #64748B;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-coral: #F43F5E;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 8px 24px rgba(2, 132, 199, 0.14);
  --shadow-tactile: 0 4px 0 rgba(2, 132, 199, 0.22), 0 8px 18px rgba(2, 132, 199, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--pearl-ivory);
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    margin: 0;
  }
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.14s ease, opacity 0.14s ease;
}

button:active {
  transform: scale(0.97);
}

input, textarea, select {
  font-size: 16px;
  font-family: inherit;
  user-select: text;
  -webkit-user-select: text;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SCREENS & LAYOUT CONTAINERS
   ========================================================================== */

.screen {
  display: none;
  width: 100%;
  flex: 1;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.single-viewport-screen {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
}

.scrollable-screen {
  padding-top: 6px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  overflow-y: auto;
  overflow-x: hidden;
}

.screen-content {
  width: 100%;
  padding: 6px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   GLOBAL TOP HEADER
   ========================================================================== */

.global-header {
  width: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
  background: var(--card-frosted-strong);
  padding: 6px 11px 6px 7px;
  border-radius: 18px;
  border: 1.5px solid var(--border-crisp);
  box-shadow: var(--shadow-soft);
}

.header-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--sky-cyan);
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-app-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.header-screen-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.star-pill {
  color: #B45309;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   SCREEN 1: WELCOME / INTRO SCREEN (Live Mini-Preview Spotlight)
   ========================================================================== */

.welcome-top-bar {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.brand-mini-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

.brand-pill-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--primary);
}

.spotlight-card {
  flex: 1;
  min-height: 0;
  margin: 10px 0;
  background: var(--card-frosted);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-tactile);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spotlight-canvas-wrap {
  flex: 1;
  min-height: 150px;
  width: 100%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.72) 0%, rgba(248, 250, 252, 0.85) 100%);
}

#welcomeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.spotlight-live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-crisp);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.spotlight-title-block {
  padding-top: 10px;
  text-align: center;
  flex-shrink: 0;
}

.welcome-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.welcome-subtitle {
  font-size: 13px;
  line-height: 1.38;
  color: var(--text-slate);
  font-weight: 500;
  margin-top: 4px;
}

.welcome-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.feature-chip {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 16px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  box-shadow: var(--shadow-soft);
}

.chip-icon {
  font-size: 19px;
}

.chip-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.welcome-cta-wrap {
  flex-shrink: 0;
}

.btn-primary-xl {
  width: 100%;
  min-height: 54px;
  background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 55%, #38BDF8 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 5px 0 #0369A1, 0 10px 22px rgba(2, 132, 199, 0.35);
}

.btn-arrow {
  font-size: 18px;
}

/* ==========================================================================
   SCREEN 2: HOME MENU (Floating Tactile Card Stack & 7-Day Check-In)
   ========================================================================== */

.hero-angler-card {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-tactile);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-angler-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-mascot-img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  background: var(--sky-light);
}

.streak-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid #FFFFFF;
}

.hero-status-info {
  min-width: 0;
  flex: 1;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.18);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-card-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-slate);
  margin-top: 2px;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-stat-box {
  background: rgba(224, 242, 254, 0.55);
  border: 1px solid var(--border-crisp);
  border-radius: 14px;
  padding: 7px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-stat-val {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-slate);
}

.btn-primary-lg {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 0 #0369A1, 0 6px 14px rgba(2, 132, 199, 0.28);
}

.pill-tag {
  background: rgba(255, 255, 255, 0.24);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

/* Frosted Panels & 7-Day Check-In */
.frosted-panel {
  background: var(--card-frosted);
  border: 1.5px solid var(--border-crisp);
  border-radius: var(--radius-xl);
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.panel-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-slate);
}

.btn-accent-sm {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #B45309;
}

.btn-accent-sm:disabled {
  background: #CBD5E1;
  color: #64748B;
  box-shadow: none;
  cursor: default;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.daily-cell {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--border-crisp);
  border-radius: 12px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  text-align: center;
}

.daily-cell.claimed {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-emerald);
}

.daily-cell.today {
  background: rgba(56, 189, 248, 0.25);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.daily-day-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-slate);
}

.daily-icon {
  font-size: 15px;
}

.daily-amt {
  font-size: 9px;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Floating Tactile Card Stack */
.tactile-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tactile-action-card {
  width: 100%;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 22px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow-tactile);
}

.tactile-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.2);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
}

.card-teal .tactile-card-icon {
  background: rgba(20, 184, 166, 0.18);
}

.card-amber .tactile-card-icon {
  background: rgba(245, 158, 11, 0.2);
}

.card-indigo .tactile-card-icon {
  background: rgba(99, 102, 241, 0.18);
}

.tactile-card-body {
  flex: 1;
  min-width: 0;
}

.tactile-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.tactile-card-title-row h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-counter-badge {
  background: rgba(2, 132, 199, 0.14);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-highlight {
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #FFFFFF;
}

.tactile-card-body p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-slate);
  line-height: 1.3;
}

.tactile-chevron {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   SCREEN 3: LEVEL SELECT (30 Levels in 3 Acts)
   ========================================================================== */

.act-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--card-frosted);
  padding: 5px;
  border-radius: 16px;
  border: 1.5px solid var(--border-crisp);
}

.act-tab {
  padding: 9px 4px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-slate);
  text-align: center;
  white-space: nowrap;
}

.act-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.3);
}

.act-banner-card {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 13px 14px;
  box-shadow: var(--shadow-soft);
}

.act-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.act-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.6px;
}

.act-stars-pill {
  font-size: 12px;
  font-weight: 800;
  color: #B45309;
  background: rgba(245, 158, 11, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
}

.act-banner-card h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
}

.act-banner-card p {
  font-size: 12px;
  color: var(--text-slate);
  margin-top: 2px;
  line-height: 1.35;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.level-tile {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  text-align: left;
  box-shadow: var(--shadow-tactile);
  position: relative;
}

.level-tile.locked {
  opacity: 0.62;
  background: rgba(226, 232, 240, 0.78);
}

.level-tile.boss-tile {
  border: 2px solid var(--accent-amber);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.9) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.lvl-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lvl-num-badge {
  font-size: 12px;
  font-weight: 900;
  background: var(--primary);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 999px;
}

.boss-tile .lvl-num-badge {
  background: #D97706;
}

.lvl-stars {
  font-size: 12px;
  letter-spacing: 1px;
}

.lvl-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 6px;
}

.lvl-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-slate);
}

/* ==========================================================================
   SCREEN 4: GAME SCREEN (Ricochet Trajectory Launcher)
   ========================================================================== */

#screen-game {
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  gap: 8px;
}

.game-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  border-radius: 18px;
  padding: 6px 8px;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.hud-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-pill {
  flex: 1;
  min-width: 0;
  background: rgba(224, 242, 254, 0.65);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 11px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-lbl {
  font-size: 8px;
  font-weight: 800;
  color: var(--text-slate);
  letter-spacing: 0.4px;
}

.hud-val {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.game-canvas-container {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--border-bright);
  box-shadow: var(--shadow-tactile);
  background: rgba(240, 249, 255, 0.52);
  display: flex;
  flex-direction: column;
}

#gameCanvas {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.combo-floating-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  pointer-events: none;
  z-index: 10;
  animation: popBounce 0.35s ease;
}

.boss-alert-banner {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #FDE047;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #F59E0B;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes popBounce {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.12); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.game-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--card-frosted-strong);
  border-top: 1.5px solid var(--border-crisp);
  flex-shrink: 0;
}

.powerup-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(224, 242, 254, 0.9);
  border: 1.5px solid var(--border-crisp);
  border-radius: 13px;
  padding: 6px 9px;
  min-height: 40px;
}

.powerup-btn.active-pu {
  background: linear-gradient(135deg, #0284C7, #38BDF8);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.pu-icon {
  font-size: 15px;
}

.pu-name {
  font-size: 11px;
  font-weight: 800;
}

.pu-count {
  background: var(--primary-dark);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.aim-instruction-pill {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SCREEN 5: CUSTOMIZATION & SKIN WORKSHOP
   ========================================================================== */

.workshop-preview-card {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-tactile);
}

.workshop-preview-canvas {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  border: 1.5px solid var(--border-crisp);
  background: rgba(224, 242, 254, 0.7);
  flex-shrink: 0;
}

.workshop-preview-meta {
  flex: 1;
  min-width: 0;
}

.workshop-preview-meta h3 {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
}

.workshop-preview-meta p {
  font-size: 11px;
  color: var(--text-slate);
  margin-top: 3px;
}

.workshop-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--card-frosted);
  padding: 5px;
  border-radius: 16px;
  border: 1.5px solid var(--border-crisp);
}

.ws-tab {
  padding: 9px 4px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-slate);
}

.ws-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ws-item-card {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  box-shadow: var(--shadow-soft);
}

.ws-item-card.equipped {
  border: 2px solid var(--primary);
  background: rgba(224, 242, 254, 0.92);
}

.ws-swatch {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 6px;
  border: 1.5px solid rgba(2, 132, 199, 0.25);
}

.ws-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.ws-item-desc {
  font-size: 11px;
  color: var(--text-slate);
  margin: 3px 0 8px;
  line-height: 1.3;
}

.ws-action-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ws-btn-buy {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
}

.ws-btn-equip {
  background: rgba(2, 132, 199, 0.15);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.ws-btn-active {
  background: var(--accent-emerald);
  color: #FFFFFF;
}

/* ==========================================================================
   SCREEN 6: BONUS PRIZE WHEEL SCREEN
   ========================================================================== */

.wheel-screen-content {
  align-items: center;
}

.wheel-header-card {
  width: 100%;
  text-align: center;
}

.wheel-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
}

.wheel-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 3px;
}

.wheel-stage-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto;
  background: var(--card-frosted-strong);
  border-radius: 50%;
  border: 4px solid var(--sky-cyan);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.25);
}

.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: #EF4444;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 5;
}

#wheelCanvas {
  width: 264px;
  height: 264px;
  border-radius: 50%;
}

.wheel-controls-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-secondary-md {
  width: 100%;
  min-height: 44px;
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}

.wheel-rewards-legend {
  width: 100%;
}

.legend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.legend-chip {
  background: rgba(224, 242, 254, 0.85);
  border: 1px solid var(--border-crisp);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ==========================================================================
   SCREEN 7: TROPHY ROOM & ACHIEVEMENTS SHOWCASE
   ========================================================================== */

.trophy-summary-banner {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-tactile);
}

.trophy-summary-left h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
}

.trophy-summary-left p {
  font-size: 12px;
  color: var(--text-slate);
  margin-top: 2px;
}

.trophy-medal-orb {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.trophy-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.trophy-card {
  background: var(--card-frosted-strong);
  border: 1.5px solid var(--border-crisp);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow-soft);
}

.trophy-card.unlocked {
  border-color: var(--accent-amber);
  background: rgba(254, 252, 232, 0.92);
}

.trophy-emblem {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(224, 242, 254, 0.7);
  border: 1.5px solid var(--border-crisp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.trophy-body {
  flex: 1;
  min-width: 0;
}

.trophy-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.trophy-desc {
  font-size: 11px;
  color: var(--text-slate);
  margin-top: 2px;
}

.trophy-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.trophy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--sky-cyan));
  border-radius: 999px;
}

.trophy-claim-btn {
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   FIXED BOTTOM NAVIGATION BAR
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(248, 252, 255, 0.95);
  border-top: 1.5px solid var(--border-crisp);
  padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  z-index: 30;
  box-shadow: 0 -6px 20px rgba(2, 132, 199, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 14px;
  color: var(--text-muted);
  position: relative;
  min-height: 46px;
}

.nav-item.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary-dark);
}

.nav-icon {
  font-size: 18px;
}

.nav-label {
  font-size: 10px;
  font-weight: 800;
}

.nav-dot {
  position: absolute;
  top: 5px;
  right: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

/* ==========================================================================
   MODALS & BOTTOM SHEETS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: #F8FAFC;
  border-top: 2px solid var(--sky-cyan);
  border-radius: 26px 26px 0 0;
  padding: 16px 18px calc(env(safe-area-inset-bottom, 0px) + 22px);
  box-shadow: 0 -10px 30px rgba(2, 132, 199, 0.25);
  animation: slideUpSheet 0.22s ease-out;
}

.scrollable-sheet {
  max-height: 86vh;
  overflow-y: auto;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 42px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.sheet-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.close-sheet-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #E2E8F0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.sheet-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  text-align: center;
}

.sheet-subtitle {
  font-size: 13px;
  color: var(--text-slate);
  text-align: center;
  margin-top: 4px;
}

.result-sheet {
  text-align: center;
}

.result-badge-icon {
  font-size: 44px;
  margin-bottom: 4px;
}

.result-stars-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 30px;
  margin: 12px 0;
}

.res-star.dim {
  opacity: 0.25;
  filter: grayscale(1);
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.res-stat-card {
  background: #E0F2FE;
  border: 1px solid var(--border-crisp);
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.res-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-slate);
}

.res-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-dark);
}

.sheet-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

.btn-primary-md {
  min-height: 44px;
  background: linear-gradient(135deg, #0284C7, #38BDF8);
  color: #FFFFFF;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.sheet-stack-btns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

/* Settings Sections */
.settings-section {
  background: #FFFFFF;
  border: 1.5px solid var(--border-crisp);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}

.settings-sec-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

.setting-desc {
  font-size: 11px;
  color: var(--text-slate);
}

.toggle-pill {
  min-width: 54px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #CBD5E1;
  color: #475569;
}

.toggle-pill.active {
  background: var(--primary);
  color: #FFFFFF;
}

.about-version-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0F9FF;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.about-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.about-app-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
}

.about-app-ver {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-slate);
}

.settings-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.settings-action-btn {
  background: #F8FAFC;
  border: 1.5px solid var(--border-crisp);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
}

.sub-dialog-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-slate);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-dialog-body h4 {
  color: var(--text-dark);
  font-size: 14px;
  margin-top: 6px;
}

/* Toast Notification */
.toast-banner {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid var(--sky-cyan);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 90;
  white-space: nowrap;
}

