/* ====================================================
   GOPANDAGO — Global Design System
   Dark Neon Theme | Mobile-First
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg-primary:    #0a0a12;
  --bg-secondary:  #0f0f1e;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);

  --blue:   #00d4ff;
  --purple: #8b5cf6;
  --pink:   #ff006e;
  --green:  #00ff88;
  --yellow: #ffd60a;
  --orange: #ff6b00;

  --text-primary:   #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted:     #555577;

  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(0,212,255,0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-blue:   0 0 20px rgba(0,212,255,0.25);
  --shadow-purple: 0 0 20px rgba(139,92,246,0.25);
  --shadow-pink:   0 0 20px rgba(255,0,110,0.25);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);

  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-width: 430px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
canvas { display: block; }

/* ─── App Container (Mobile-First) ─── */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* ─── Background Grid + Glow ─── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  position: fixed;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none; z-index: 0;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.bg-glow-2 {
  position: fixed;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none; z-index: 0;
  animation: floatGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.1); }
}

/* ─── Top Bar ─── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.top-bar .logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.coin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--yellow);
  transition: var(--transition);
}
.coin-badge .coin-icon { font-size: 16px; animation: coinSpin 2s linear infinite; }
@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.icon-btn:hover { background: var(--bg-card-hover); transform: scale(1.08); }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card.glow-blue  { border-color: rgba(0,212,255,0.25); box-shadow: var(--shadow-blue); }
.card.glow-purple{ border-color: rgba(139,92,246,0.25); box-shadow: var(--shadow-purple); }
.card.glow-pink  { border-color: rgba(255,0,110,0.25); box-shadow: var(--shadow-pink); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.btn-success {
  background: linear-gradient(135deg, #00c87a, var(--green));
  color: #000;
  box-shadow: 0 4px 20px rgba(0,255,136,0.35);
}
.btn-danger {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,0,110,0.3);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ─── Inputs ─── */
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: var(--transition);
}
.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.input-field::placeholder { color: var(--text-muted); }

/* ─── Section ─── */
.section {
  padding: 16px 20px;
  position: relative;
  z-index: 1;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ─── Game Cards (Home) ─── */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent1,var(--blue)), var(--accent2,var(--purple)));
  opacity: 0.08;
  transition: var(--transition);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent1, var(--blue));
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.game-card:hover::before { opacity: 0.15; }
.game-card:active { transform: scale(0.97); }
.game-emoji { font-size: 42px; position: relative; z-index: 1; }
.game-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  position: relative; z-index: 1;
}
.game-best {
  font-size: 11px;
  color: var(--text-secondary);
  position: relative; z-index: 1;
}
.game-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

/* ─── Daily Challenge Card ─── */
.challenge-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,212,255,0.1));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.challenge-card::after {
  content: '⚡';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.15;
}
.challenge-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 4px;
}
.challenge-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.challenge-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,214,10,0.15);
  border: 1px solid rgba(255,214,10,0.3);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

/* ─── Leaderboard Items ─── */
.lb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.lb-item:hover { background: var(--bg-card-hover); }
.lb-rank {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  min-width: 32px;
  text-align: center;
}
.lb-rank.gold   { color: var(--yellow); }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.lb-name { flex: 1; font-weight: 600; font-size: 15px; }
.lb-score { font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--blue); }

/* ─── Tabs ─── */
.tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition);
  text-align: center;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,212,255,0.3);
}

/* ─── Modal / Overlay ─── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}
.overlay-sheet {
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 28px 24px 36px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.overlay.active .overlay-sheet {
  transform: translateY(0);
}
.overlay-handle {
  width: 36px; height: 4px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  margin: 0 auto 22px;
}
.overlay-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.overlay-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* ─── Game Over Screen Specific ─── */
.score-display {
  text-align: center;
  margin: 16px 0 20px;
}
.score-number {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.score-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.best-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.3);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--yellow);
  margin-top: 8px;
}

/* ─── Roast Box ─── */
.roast-box {
  background: linear-gradient(135deg, rgba(255,0,110,0.15), rgba(255,107,0,0.1));
  border: 1px solid rgba(255,0,110,0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
}
.roast-box::before {
  content: '💀';
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

/* ─── Action Grid ─── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.action-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.action-card:active { transform: scale(0.97); }
.action-icon { font-size: 28px; margin-bottom: 6px; }
.action-label { font-family: var(--font-heading); font-size: 13px; font-weight: 700; }
.action-sublabel { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ─── Room Code ─── */
.room-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--blue);
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
  padding: 20px 0;
}
.room-player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.room-player-status {
  margin-left: auto;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.status-waiting { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.status-playing { background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: pulse 1s infinite; }
.status-done    { background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ─── Profile ─── */
.profile-header {
  text-align: center;
  padding: 30px 20px 20px;
}
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  margin: 0 auto 14px;
  box-shadow: 0 0 30px rgba(139,92,246,0.4);
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100%{ box-shadow: 0 0 30px rgba(139,92,246,0.4); }
  50%    { box-shadow: 0 0 50px rgba(0,212,255,0.5); }
}
.profile-name { font-family: var(--font-heading); font-size: 24px; font-weight: 800; }
.profile-tag  { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }

/* ─── Shop Item ─── */
.shop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: var(--transition);
}
.shop-icon { font-size: 30px; }
.shop-info { flex: 1; }
.shop-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.shop-desc { font-size: 12px; color: var(--text-secondary); }
.shop-price {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.3);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
  cursor: pointer;
  transition: var(--transition);
}
.shop-price:hover { background: rgba(255,214,10,0.25); transform: scale(1.05); }

/* ─── Toast Notification ─── */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(min(var(--max-width), 100vw) - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1), toastOut 0.3s 2.7s ease forwards;
  box-shadow: var(--shadow-card);
}
.toast.success { border-color: rgba(0,255,136,0.4); color: var(--green); }
.toast.error   { border-color: rgba(255,0,110,0.4); color: var(--pink); }
.toast.info    { border-color: rgba(0,212,255,0.4); color: var(--blue); }
.toast.coin    { border-color: rgba(255,214,10,0.4); color: var(--yellow); }
@keyframes toastIn  { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:none} }
@keyframes toastOut { from{opacity:1} to{opacity:0;transform:translateY(-8px)} }

/* ─── Loading Screen ─── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-logo {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Nav Bar (Bottom) ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(10,10,18,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--transition);
}
.nav-item .nav-icon  { font-size: 22px; transition: var(--transition); }
.nav-item .nav-label { font-family: var(--font-heading); font-size: 10px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.nav-item.active .nav-icon  { transform: scale(1.15); filter: drop-shadow(0 0 6px var(--blue)); }
.nav-item.active .nav-label { color: var(--blue); }
.nav-item:active { transform: scale(0.92); }

/* ─── Page Content Scroll ─── */
.page-content {
  padding-bottom: 90px;
}

/* ─── Utility Classes ─── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-pink   { color: var(--pink); }
.text-yellow { color: var(--yellow); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-muted); }
.font-heading { font-family: var(--font-heading); }
.fw-800 { font-weight: 800; }
.hidden { display: none !important; }

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ─── Progress Bar ─── */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.4s ease;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Responsive ─── */
@media (min-width: 480px) {
  .app-container { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ─── Game Revival (Countdown & Ghost) ─── */
.revive-countdown {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.revive-countdown.active { display: flex; }
.countdown-number {
  font-family: var(--font-heading);
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px var(--blue);
  animation: countdownPulse 1s ease-in-out infinite;
}
@keyframes countdownPulse {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.bird-ghost {
  opacity: 0.6;
  filter: drop-shadow(0 0 10px var(--blue)) !important;
  animation: ghostFlicker 0.2s infinite !important;
}
@keyframes ghostFlicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
