/* ═══════════════════════════════════════════════════════════════════════
   FYM CASINO — PREMIUM THEME v2.0
   "Monte Carlo meets Cyber Vault"
   Accent: Electric Violet #8B5CF6 (cool counterpoint to warm gold)
   Signature element: Liquid-gold animated balance pill in header
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────────
   Track A — Foundation Tokens (beads-63d.1): removed the legacy
   @import for Playfair Display / Space Grotesk / Inter. None of
   these families resolve through any current --font-* variable
   (display is Bodoni Moda, body is Manrope — both loaded by the
   page <link> tags in index.html). The @import was render-
   blocking and pulled ~6 unused weights from Google Fonts on every
   casino page load.
   ──────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: LEGACY-ONLY SUPPLEMENTS
   Color/surface/text/accent/semantic/shadow tokens now flow from
   tokens.css → legacy-aliases.css. This block holds only primitives
   that have no new-token equivalent yet (font-mono, space-*, radius-*,
   shadow-* family, motion vars). Tasks 2-20 migrate these progressively.
   ════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Typography ───────────────────────────────────── */
  /* --font-display, --font-body inherit from tokens.css. */
  --font-mono:        'JetBrains Mono', 'SF Mono', 'Courier New', monospace;

  /* ── Spacing ──────────────────────────────────────── */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   12px;
  --space-lg:   16px;
  --space-xl:   24px;
  --space-2xl:  32px;

  /* ── Radii ────────────────────────────────────────── */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ── Shadows (only --shadow-elevated lives in tokens.css) ──── */
  --shadow-subtle:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-card:     0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(240,201,76,0.06);
  --shadow-gold:     0 0 24px rgba(240,201,76,0.15);
  --shadow-accent:   0 0 24px rgba(139,92,246,0.2);

  /* ── Motion ───────────────────────────────────────── */
  --ease-spring:  cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
  --ease-in-out:  cubic-bezier(0.65,0,0.35,1);
  --dur-fast:     120ms;
  --dur-base:     220ms;
  --dur-slow:     380ms;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: GLOBAL BODY + AMBIENT AURORA
   ════════════════════════════════════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--nav-height);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Deep obsidian base */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139,92,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(240,201,76,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(7,7,20,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Animated Aurora ──────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(240,201,76,0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(34,211,238,0.03) 0%, transparent 40%);
  animation: auroraShift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
}

@keyframes auroraShift {
  0%   { transform: translateX(0%)  translateY(0%)  rotate(0deg)  scale(1); }
  25%  { transform: translateX(4%)  translateY(3%)  rotate(1deg)  scale(1.03); }
  50%  { transform: translateX(-3%) translateY(5%)  rotate(-1deg) scale(1.05); }
  75%  { transform: translateX(6%)  translateY(-2%) rotate(2deg)  scale(1.02); }
  100% { transform: translateX(-2%) translateY(4%)  rotate(-0.5deg) scale(1); }
}

/* Starfield overlay on body */
.ambient-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* All content above aurora/watermark */
#header, .screen, #bottom-nav, .toast, .modal-overlay, .screen-flash {
  position: relative;
  z-index: 1;
}
#header, #bottom-nav { z-index: 100; }
.toast              { z-index: 200; }
.modal-overlay      { z-index: 250; }
.screen-flash       { z-index: 300; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: HEADER + SIGNATURE LIQUID-GOLD BALANCE PILL
   ════════════════════════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(240,201,76,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow:
    0 1px 0 rgba(240,201,76,0.04),
    0 4px 24px rgba(0,0,0,0.6);
}

.header-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(240,201,76,0.2));
  transition: filter var(--dur-base) ease;
}
.header-logo-img:active {
  filter: drop-shadow(0 0 14px rgba(240,201,76,0.4));
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--accent);
}

/* ── SIGNATURE ELEMENT: Liquid-Gold Balance Pill ─────────────────────── */
.balance-display {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #1a1000;
  background: linear-gradient(135deg, #f7dc82 0%, #e8a820 40%, #f0c94c 60%, #c8941e 100%);
  background-size: 200% 100%;
  padding: 7px 16px 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,230,140,0.4);
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow:
    0 2px 0 #7a5a10,
    0 4px 16px rgba(240,201,76,0.25),
    inset 0 1px 0 rgba(255,255,220,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.15);
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-base) ease;
  animation: goldPillShimmer 4s ease-in-out infinite;
  min-width: 90px;
  text-align: right;
  cursor: default;
  user-select: none;
}

.balance-display::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,220,0.5), transparent);
  transform: skewX(-20deg);
  animation: liquidGoldFlow 3.5s ease-in-out infinite;
}

@keyframes liquidGoldFlow {
  0%, 80%  { left: -60%; opacity: 0; }
  85%      { opacity: 1; }
  100%     { left: 120%; opacity: 0; }
}

@keyframes goldPillShimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.balance-display.counting-up {
  animation: goldPillShimmer 4s ease-in-out infinite, balancePop 0.4s var(--ease-spring);
  box-shadow:
    0 2px 0 #7a5a10,
    0 6px 24px rgba(240,201,76,0.45),
    inset 0 1px 0 rgba(255,255,220,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.15);
}

@keyframes balancePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: SCREEN SYSTEM + TRANSITIONS
   ════════════════════════════════════════════════════════════════════════ */
.screen {
  display: none;
  padding: 16px;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

.screen.active {
  display: block;
  animation: screenEnter var(--dur-slow) var(--ease-out) both;
}

@keyframes screenEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Loading screen — full viewport */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 0;
  overflow: hidden;
  background: #000;
}
#loading-screen.active { display: flex; }

/* ── Loading: ambient layers ─────────────────────────────────────────── */
.loading-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loading-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(139,92,246,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(240,201,76,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(240,201,76,0.06) 0%, transparent 40%);
  animation: auroraShift 10s ease-in-out infinite alternate;
}

.loading-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 2px;
  background: radial-gradient(ellipse, rgba(240,201,76,0.8) 0%, rgba(240,201,76,0.3) 40%, transparent 70%);
  box-shadow: 0 0 50px 25px rgba(240,201,76,0.1);
}
.loading-glow-top    { top: 20%; animation: glowPulseTop 3s ease-in-out infinite; }
.loading-glow-bottom { bottom: 22%; animation: glowPulseBottom 3s ease-in-out infinite 1.5s; }

@keyframes glowPulseTop    { 0%,100%{opacity:.6;width:220px}50%{opacity:1;width:340px} }
@keyframes glowPulseBottom { 0%,100%{opacity:.4;width:180px}50%{opacity:.9;width:300px} }

/* ── Loading content ─────────────────────────────────────────────────── */
.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 85%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo-img {
  width: 200px;
  max-width: 65vw;
  height: auto;
  object-fit: contain;
  margin-bottom: 36px;
  filter:
    drop-shadow(0 0 30px rgba(240,201,76,0.5))
    drop-shadow(0 0 60px rgba(139,92,246,0.2));
  animation: logoFloat 3.2s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 30px rgba(240,201,76,0.5)) drop-shadow(0 0 60px rgba(139,92,246,0.2));
  }
  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 45px rgba(240,201,76,0.7)) drop-shadow(0 0 80px rgba(139,92,246,0.3));
  }
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent), #A07830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  margin-bottom: 4px;
}

.loading-subtitle {
  font-size: 16px;
  color: rgba(240,201,76,0.5);
  letter-spacing: 12px;
  margin-bottom: 40px;
}

/* Loading bar */
.loading-bar {
  width: 100%;
  height: 3px;
  background: rgba(240,201,76,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(240,201,76,0.12);
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(139,92,246,0.6), var(--accent), var(--accent-hi), rgba(139,92,246,0.6));
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  animation: barShimmer 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(240,201,76,0.4);
}

@keyframes barShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(240,201,76,0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── Generic spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(240,201,76,0.1);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: BOTTOM NAV — SVG icon system + liquid-gold indicator
   ════════════════════════════════════════════════════════════════════════ */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(6,6,14,0.97);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 1px solid rgba(240,201,76,0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
  box-shadow:
    0 -1px 0 rgba(240,201,76,0.04),
    0 -4px 20px rgba(0,0,0,0.5),
    0 -12px 48px rgba(0,0,0,0.3);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 20px;
  cursor: pointer;
  transition: color var(--dur-base) ease;
  font-family: var(--font-body);
  position: relative;
  border-radius: var(--radius-md);
}

.nav-btn:active {
  transform: scale(0.92);
}

.nav-btn.active {
  color: var(--accent-hi);
}

/* Liquid-gold active indicator pill */
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 65%, var(--bg)), var(--accent-hi), color-mix(in oklch, var(--accent) 65%, var(--bg)));
  background-size: 200% 100%;
  animation: goldPillShimmer 2.5s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(240,201,76,0.5), 0 4px 20px rgba(240,201,76,0.2);
}
/* Active glow circle behind icon */
.nav-btn.active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,201,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* SVG nav icons — replace emoji */
.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-spring);
}
.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: filter var(--dur-base) ease;
}
.nav-btn.active .nav-icon {
  transform: translateY(-1px) scale(1.08);
}
.nav-btn.active .nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(240,201,76,0.5));
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: GLASS CARD SYSTEM
   ════════════════════════════════════════════════════════════════════════ */
.glass-card {
  background: var(--surface) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border) !important;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
  position: relative;
  overflow: hidden;
}

/* Noise overlay for glassmorphism texture */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.6;
}

.glass-card > * { position: relative; z-index: 1; }

.glass-card:active {
  border-color: rgba(240,201,76,0.2) !important;
  box-shadow:
    var(--shadow-elevated),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* Gold hairline top-border glow */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.25), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: BUTTON SYSTEM
   ════════════════════════════════════════════════════════════════════════ */
.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform var(--dur-fast) ease,
    box-shadow var(--dur-base) ease,
    filter var(--dur-base) ease;
  color: var(--text);
  background: rgba(22,20,38,0.9);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn:active  { transform: scale(0.95); }
.btn:disabled { opacity: 0.38; pointer-events: none; }

/* Primary — gold gradient with shimmer sweep */
.btn-primary {
  background: linear-gradient(135deg, #7a6225, var(--accent), #c8941e);
  color: #0a0600;
  font-weight: 800;
  box-shadow: 0 2px 0 #5a4415, 0 4px 20px rgba(240,201,76,0.25);
  border: 1px solid rgba(255,230,140,0.25);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,220,0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%,80% { left: -100%; opacity: 0; }
  85%    { opacity: 1; }
  100%   { left: 150%; opacity: 0; }
}
.btn-primary:active {
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 1px 0 #5a4415, 0 2px 10px rgba(240,201,76,0.2);
}

/* Secondary — glass */
.btn-secondary {
  background: rgba(22,20,38,0.8);
  border: 1px solid rgba(240,201,76,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
}
.btn-secondary:active {
  border-color: rgba(240,201,76,0.28);
  color: var(--text);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
}
.btn-ghost:active { background: rgba(255,255,255,0.05); }

/* Gold alias — Premium 3D button */
.btn-gold {
  background: linear-gradient(160deg, #f7dc82 0%, #e8a820 35%, #d4a030 65%, #c89420 100%);
  background-size: 200% 100%;
  color: #1a1000;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow:
    0 2px 0 #6a5015,
    0 4px 16px rgba(240,201,76,0.25),
    inset 0 1px 0 rgba(255,255,220,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,230,140,0.3);
  animation: goldPillShimmer 3.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255,255,200,0.3);
}
/* Shimmer sweep on gold buttons */
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,220,0.4), transparent);
  transform: skewX(-20deg);
  animation: btnGoldSweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnGoldSweep {
  0%, 75% { left: -80%; opacity: 0; }
  80%     { opacity: 1; }
  100%    { left: 130%; opacity: 0; }
}
.btn-gold:active {
  transform: scale(0.95) translateY(2px);
  box-shadow:
    0 1px 0 #6a5015,
    0 2px 8px rgba(240,201,76,0.3),
    inset 0 1px 0 rgba(255,255,220,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}

/* Red / danger */
.btn-red, .btn-danger {
  background: linear-gradient(135deg, #991b1b, var(--loss));
  color: #fff;
  box-shadow: 0 2px 0 #7f1d1d, 0 4px 16px rgba(239,68,68,0.2);
}

/* Warning */
.btn-warning {
  background: linear-gradient(135deg, #92400e, #f59e0b);
  color: #0a0600;
}

/* Accent (violet) */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-bright));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 0 #4c1d95, 0 4px 20px rgba(139,92,246,0.3);
  border: 1px solid rgba(200,180,255,0.2);
}
.btn-accent:active {
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 1px 0 #4c1d95, 0 2px 10px rgba(139,92,246,0.2);
}

/* Icon button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(22,20,38,0.8);
  border: 1px solid rgba(240,201,76,0.12);
}
.btn-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Size modifiers */
.btn-sm  { padding: 7px 14px; font-size: 12px; border-radius: 10px; }
.btn-lg  {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: var(--radius-lg);
  margin-top: 12px;
  text-transform: uppercase;
}

/* ── Chip buttons ────────────────────────────────────────────────────── */
.chip-btn {
  background: rgba(14,14,26,0.9);
  border: 1px solid rgba(240,201,76,0.12);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform var(--dur-fast) ease,
    border-color var(--dur-base) ease,
    box-shadow var(--dur-base) ease;
}
.chip-btn:active {
  transform: scale(0.93);
  border-color: rgba(240,201,76,0.28);
}
.chip-btn.active,
.chip-btn.chip-active {
  border-color: var(--accent);
  background: rgba(240,201,76,0.14);
  color: var(--accent-hi);
  box-shadow: 0 0 10px rgba(240,201,76,0.2);
}
.chip-btn.gold {
  border-color: rgba(240,201,76,0.35);
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: TOAST NOTIFICATIONS — glass style
   ════════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  left: 16px; right: 16px;
  background: rgba(12,12,22,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(240,201,76,0.12);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  animation: toastIn 0.35s var(--ease-spring), toastOut 0.3s ease 2.5s forwards;
  text-align: center;
  box-shadow:
    var(--shadow-elevated),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.toast.success { border-color: rgba(240,201,76,0.3); color: var(--accent-hi); }
.toast.error   { border-color: rgba(239,68,68,0.35); color: #f87171; }
.toast.info    { border-color: rgba(139,92,246,0.3); color: var(--accent-bright); }

@keyframes toastIn  { from{transform:translateY(-120%);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes toastOut { from{transform:translateY(0);opacity:1} to{transform:translateY(-120%);opacity:0} }
/* aliases for legacy .toast animation references in style.css */
@keyframes slideDown { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes slideUp   { from{transform:translateY(0);opacity:1} to{transform:translateY(-100%);opacity:0} }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: MODAL — glass style
   ════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-content {
  position: relative;
  background: linear-gradient(180deg, rgba(18,16,32,0.98), rgba(10,9,18,0.99));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(240,201,76,0.18);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(240,201,76,0.08);
  animation: modalIn 0.35s var(--ease-spring);
}

@keyframes modalIn {
  from { transform: scale(0.9) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 1: SECTION HEADINGS + TYPOGRAPHY
   ════════════════════════════════════════════════════════════════════════ */
.section-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(240,201,76,0.3);
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240,201,76,0.15), transparent 80%);
  margin-left: 4px;
}

.section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gold-shimmer {
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 65%, var(--bg)), var(--accent-hi), color-mix(in oklch, var(--accent) 65%, var(--bg)));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldPillShimmer 4s linear infinite;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 2: HOME SCREEN
   ════════════════════════════════════════════════════════════════════════ */

/* ── Streak Banner ───────────────────────────────────────────────────── */
.streak-banner {
  background: linear-gradient(135deg, rgba(18,16,32,0.95) 0%, rgba(14,10,26,0.9) 100%);
  border: 1px solid rgba(240,201,76,0.10);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
/* Top edge gold light + left accent bar */
.streak-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.30), transparent);
}
.streak-banner::after {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 10px rgba(240,201,76,0.3);
}
.streak-banner.claimable {
  border-color: rgba(240,201,76,0.25);
  box-shadow: var(--shadow-card),
              0 0 30px rgba(240,201,76,0.06),
              inset 0 1px 0 rgba(240,201,76,0.06);
  animation: streakPulse 2.5s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 100% { box-shadow: var(--shadow-card), 0 0 20px rgba(240,201,76,0.04); }
  50%      { box-shadow: var(--shadow-card), 0 0 35px rgba(240,201,76,0.1); }
}

.streak-info { display: flex; align-items: center; gap: 12px; }

/* Replace fire emoji with SVG flame */
.streak-fire {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.streak-text { display: flex; flex-direction: column; }
.streak-day { font-weight: 700; font-size: 15px; color: var(--text); }
.streak-reward { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ── Streak dots ─────────────────────────────────────────────────────── */
.streak-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 4px;
}
.streak-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--faint);
  transition: all var(--dur-base) ease;
}
.streak-dot.active {
  background: rgba(240,201,76,0.15);
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 10px rgba(240,201,76,0.25);
}

/* ── Session stats ───────────────────────────────────────────────────── */
.session-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin: 8px 0;
  font-size: 12px;
}
.session-label { color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.session-games { color: var(--muted); }
.session-net   { font-weight: 700; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.session-net.positive { color: var(--accent-hi); }
.session-net.negative { color: #f87171; }

/* ── Live wins marquee ───────────────────────────────────────────────── */
.live-wins-section { margin: 12px 0; }
.live-wins-label {
  font-size: 10px; font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.live-wins-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: liveDot 1.2s ease-in-out infinite;
}
@keyframes liveDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.live-wins-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.live-wins-scroll::-webkit-scrollbar { display: none; }

.live-win-card {
  flex-shrink: 0;
  background: linear-gradient(155deg, rgba(16,14,30,0.95), rgba(10,8,20,0.92));
  border: 1px solid rgba(240,201,76,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 128px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.live-win-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.25), transparent);
}
/* Subtle inner glow behind amount */
.live-win-card::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  width: 60px; height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(240,201,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.live-win-name  { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-win-game  { font-size: 10px; color: var(--faint); margin-bottom: 5px; letter-spacing: 0.03em; }
.live-win-amount {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(240,201,76,0.3);
}

/* ── Featured 2×2 game grid (Home) — CINEMATIC UPGRADE ─────────────── */
.featured-games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.featured-game-card {
  background: linear-gradient(155deg, rgba(18,16,32,0.98) 0%, rgba(12,10,22,0.95) 100%);
  border: 1px solid rgba(240,201,76,0.08);
  border-radius: 18px;
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 200ms var(--ease-spring),
              box-shadow 300ms ease,
              border-color 300ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Ambient top-edge light — subtle gold kiss */
.featured-game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.35), transparent);
  opacity: 0.6;
  transition: opacity 300ms ease;
}

/* Hover/active glow orb behind icon */
.featured-game-card::after {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  width: 70px; height: 70px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240,201,76,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: -1;
  filter: blur(8px);
}

.featured-game-card:active {
  transform: scale(0.94) translateY(1px);
  border-color: rgba(240,201,76,0.30);
  box-shadow:
    0 0 24px rgba(240,201,76,0.12),
    0 8px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(240,201,76,0.08);
}
.featured-game-card:active::before { opacity: 1; }
.featured-game-card:active::after { opacity: 1; transform: translateX(-50%) scale(1.3); }

/* SVG icon containers — cinematic with breathing glow */
.featured-game-icon {
  width: 50px; height: 50px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  position: relative;
}
.featured-game-icon svg {
  width: 38px; height: 38px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 10px rgba(240,201,76,0.35));
  transition: filter 300ms ease, transform 300ms var(--ease-spring);
}
.featured-game-card:active .featured-game-icon svg {
  filter: drop-shadow(0 0 16px rgba(240,201,76,0.6));
  transform: scale(1.08);
}
.featured-game-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.featured-game-tag {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 65%, var(--bg)), var(--accent-hi), color-mix(in oklch, var(--accent) 65%, var(--bg)));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldPillShimmer 6s linear infinite;
  opacity: 0.75;
}

/* ── Leaderboard preview ─────────────────────────────────────────────── */
.leaderboard-preview { margin-top: 16px; }

.lb-row {
  display: flex; align-items: center;
  padding: 10px 14px;
  background: rgba(12,10,22,0.8);
  border: 1px solid rgba(240,201,76,0.07);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  gap: 10px;
  transition: border-color var(--dur-base) ease;
}
.lb-row.clickable { cursor: pointer; }
.lb-row.clickable:active { background: rgba(22,20,38,0.9); border-color: rgba(240,201,76,0.15); }

.lb-rank { width: 26px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.lb-avatar-wrap { width: 32px; height: 32px; flex-shrink: 0; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(240,201,76,0.2); }
.lb-avatar-fallback {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(22,20,38,0.9);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--faint);
  border: 1px solid rgba(255,255,255,0.06);
}
.lb-name  { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-balance { color: var(--accent); font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 2: GAMES SCREEN
   ════════════════════════════════════════════════════════════════════════ */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.game-card {
  background: linear-gradient(155deg, rgba(16,14,30,0.96) 0%, rgba(10,8,22,0.92) 100%);
  border: 1px solid rgba(240,201,76,0.07);
  border-radius: 18px;
  padding: 24px 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms var(--ease-spring),
              border-color 250ms ease,
              box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.game-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.2), transparent);
  opacity: 0.5;
}
.game-card:active {
  transform: scale(0.95) translateY(1px);
  border-color: rgba(240,201,76,0.2);
  box-shadow: 0 0 20px rgba(240,201,76,0.08), 0 8px 24px rgba(0,0,0,0.3);
}

/* Per-game gradient accents */
.game-card[onclick*="slots"] {
  background: linear-gradient(135deg, rgba(14,10,22,0.95), rgba(26,18,44,0.9));
}
.game-card[onclick*="blackjack"] {
  background: linear-gradient(135deg, rgba(8,14,10,0.95), rgba(12,22,16,0.9));
}
.game-card[onclick*="roulette"] {
  background: linear-gradient(135deg, rgba(18,8,8,0.95), rgba(28,12,12,0.9));
}
.game-card[onclick*="crash"] {
  background: linear-gradient(135deg, rgba(18,12,6,0.95), rgba(28,18,8,0.9));
}
.game-card[onclick*="lottery"] {
  background: linear-gradient(135deg, rgba(8,10,18,0.95), rgba(12,14,28,0.9));
}
.game-card[onclick*="mp-"] {
  background: linear-gradient(135deg, rgba(10,8,22,0.95), rgba(16,12,34,0.9));
  border-color: rgba(139,92,246,0.12);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.12), transparent);
}
.game-card.mp::before {
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), transparent);
}

.game-card:active {
  transform: scale(0.95);
  border-color: rgba(240,201,76,0.2);
}
.game-card.mp:active { border-color: rgba(139,92,246,0.3); }

.game-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  height: 44px;
}
.game-icon svg {
  width: 36px; height: 36px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(240,201,76,0.25));
}
.game-card.mp .game-icon svg { stroke: var(--accent-bright); filter: drop-shadow(0 0 8px rgba(139,92,246,0.3)); }

.game-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: var(--text); }
.game-desc { font-size: 11px; color: var(--faint); }

/* Premium game cards */
.game-card.premium {
  border-color: rgba(240,201,76,0.18);
  background: linear-gradient(135deg, rgba(24,18,8,0.95), rgba(14,10,4,0.95));
  box-shadow: 0 0 0 1px rgba(240,201,76,0.05) inset;
}
.game-badge {
  position: absolute; top: 7px; right: 7px;
  font-size: 8px; font-weight: 800; letter-spacing: 1px;
  color: #060400;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  padding: 2px 7px; border-radius: 5px;
  box-shadow: 0 0 8px rgba(240,201,76,0.3);
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 2: PROFILE SCREEN
   ════════════════════════════════════════════════════════════════════════ */
.profile-header {
  background: linear-gradient(180deg, rgba(18,14,32,0.95), rgba(12,10,22,0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240,201,76,0.12);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.35), transparent);
}

/* Animated avatar ring */
.profile-avatar-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 14px;
  position: relative;
}

.profile-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-hi) 0deg,
    var(--accent) 90deg,
    var(--accent) 180deg,
    var(--accent-bright) 270deg,
    var(--accent-hi) 360deg
  );
  animation: avatarRingSpin 6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 52%, black 54%);
          mask: radial-gradient(circle, transparent 52%, black 54%);
}
@keyframes avatarRingSpin { to { transform: rotate(360deg); } }

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(7,7,15,0.8);
  box-shadow: 0 0 20px rgba(240,201,76,0.15);
  position: relative; z-index: 1;
}
.profile-avatar-fallback {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(22,18,38,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  color: var(--muted);
  border: 3px solid rgba(7,7,15,0.8);
  position: relative; z-index: 1;
}
.avatar-upload-btn {
  font-size: 11px; color: var(--accent); cursor: pointer; margin-top: 8px; font-weight: 600;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 2px; color: var(--text);
}
.profile-tg    { font-size: 13px; color: var(--muted); }
.profile-since { font-size: 12px; color: var(--faint); margin-top: 4px; }
.profile-balance {
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 700;
  color: var(--accent-hi); margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.profile-section {
  background: rgba(14,12,26,0.85);
  border: 1px solid rgba(240,201,76,0.07);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profile-section label {
  display: block;
  font-size: 11px; color: var(--faint);
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 10px;
}
.profile-input-row { display: flex; gap: 8px; align-items: center; }
.profile-input-row input {
  flex: 1;
  background: rgba(7,7,15,0.8);
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-base) ease;
}
.profile-input-row input:focus { border-color: rgba(240,201,76,0.3); }

/* Stat cards */
.stat-card {
  background: rgba(10,8,20,0.8);
  border: 1px solid rgba(240,201,76,0.07);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 10px;
}
.stat-card-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.stat-card-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; text-align: center; }
.stat-num { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-lbl { display: block; font-size: 10px; color: var(--faint); }
.win-color  { color: var(--accent-hi); }
.lose-color { color: #f87171; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 2: LEADERBOARD — podium + tab system
   ════════════════════════════════════════════════════════════════════════ */
.leaderboard-screen { }

/* Podium for top 3 */
.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 20px;
  padding: 0 8px;
}
.lb-podium-place {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lb-podium-place:nth-child(1) { order: 2; } /* Gold — center, tallest */
.lb-podium-place:nth-child(2) { order: 1; } /* Silver — left */
.lb-podium-place:nth-child(3) { order: 3; } /* Bronze — right */

.lb-podium-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240,201,76,0.3);
}
.lb-podium-place:nth-child(1) .lb-podium-avatar { width: 60px; height: 60px; border-color: var(--accent); box-shadow: 0 0 20px rgba(240,201,76,0.4); }
.lb-podium-place:nth-child(2) .lb-podium-avatar { border-color: rgba(192,192,192,0.5); }
.lb-podium-place:nth-child(3) .lb-podium-avatar { border-color: rgba(176,138,85,0.5); }

.lb-podium-name {
  font-size: 11px; font-weight: 700; text-align: center;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 80px;
}
.lb-podium-amount { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

.lb-podium-block {
  width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
}
.lb-podium-place:nth-child(1) .lb-podium-block { height: 48px; background: linear-gradient(180deg, rgba(240,201,76,0.25), rgba(240,201,76,0.06)); border: 1px solid rgba(240,201,76,0.25); border-bottom: none; color: var(--accent); }
.lb-podium-place:nth-child(2) .lb-podium-block { height: 36px; background: rgba(192,192,192,0.06); border: 1px solid rgba(192,192,192,0.15); border-bottom: none; color: rgba(192,192,192,0.7); }
.lb-podium-place:nth-child(3) .lb-podium-block { height: 28px; background: rgba(176,138,85,0.06); border: 1px solid rgba(176,138,85,0.12); border-bottom: none; color: rgba(176,138,85,0.7); }

/* Tab switcher (visual only) */
.lb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(10,8,20,0.7);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 4px;
}
.lb-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--faint);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-base) ease;
}
.lb-tab.active {
  background: linear-gradient(135deg, rgba(240,201,76,0.15), rgba(240,201,76,0.08));
  color: var(--accent-hi);
  border: 1px solid rgba(240,201,76,0.2);
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 2: GAME HEADER
   ════════════════════════════════════════════════════════════════════════ */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.game-header h2 {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 700;
  flex: 1; text-align: center;
  color: var(--text); letter-spacing: 0.5px;
}

.back-link, .info-link {
  background: rgba(14,12,26,0.8);
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 7px 10px;
  min-width: 36px;
  text-align: center;
  transition: all var(--dur-base) ease;
}
.back-link:active, .info-link:active {
  color: var(--accent);
  border-color: rgba(240,201,76,0.3);
}
.back-btn { margin-bottom: 12px; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 3: SLOTS SCREEN
   ════════════════════════════════════════════════════════════════════════ */
.slots-machine {
  background: linear-gradient(180deg, #0c0c18, #060610, #0c0c18);
  border: 1px solid rgba(240,201,76,0.15);
  border-radius: var(--radius-xl);
  padding: 16px 12px 14px;
  text-align: center;
  position: relative;
  box-shadow:
    var(--shadow-elevated),
    inset 0 1px 0 rgba(240,201,76,0.08);
}
.slots-machine.jackpot-shake { animation: machineShake 0.4s ease 3; }
@keyframes machineShake {
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)rotate(-0.5deg)}
  75%{transform:translateX(6px)rotate(0.5deg)}
}

.slots-frame {
  background: linear-gradient(180deg, #10101e, #08080e, #10101e);
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  position: relative;
}

.slots-top-label {
  text-align: center;
  font-size: 10px; font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(240,201,76,0.4);
}

.slots-reels { display: flex; justify-content: center; gap: 6px; }

.reel-container {
  width: 90px; height: 240px;
  overflow: hidden;
  background: linear-gradient(180deg, #04040a, #080810, #04040a);
  border: 1px solid rgba(240,201,76,0.08);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.7);
}
.reel-container.win-glow {
  border-color: var(--accent);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 0 24px rgba(240,201,76,0.5);
  animation: glowPulse 0.6s ease infinite alternate;
}
.reel-container.jackpot-glow {
  border-color: var(--accent-hi);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 36px rgba(240,201,76,0.7), 0 0 60px rgba(139,92,246,0.3);
  animation: glowPulse 0.3s ease infinite alternate;
}
@keyframes glowPulse {
  from { box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 16px rgba(240,201,76,0.4); }
  to   { box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 0 32px rgba(240,201,76,0.7); }
}

.slots-bet-display {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 900;
  color: var(--accent-hi);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(240,201,76,0.3);
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 3: BLACKJACK SCREEN
   ════════════════════════════════════════════════════════════════════════ */

/* Curved gold-inlay felt table */
.bj-felt {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10,100,35,0.3) 0%, transparent 60%),
    linear-gradient(180deg, #0b4d1c 0%, #0e6b28 40%, #0b4d1c 100%);
  border: 3px solid #7a6520;
  border-radius: 0 0 50% 50% / 0 0 20% 20%;
  padding: 16px 20px 32px;
  min-height: 310px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.4),
    0 4px 20px rgba(0,0,0,0.6),
    inset 0 2px 0 rgba(240,201,76,0.2);
}

/* Gold inlay rings */
.bj-felt::after {
  content: '';
  position: absolute;
  top: -20px; left: 10%; right: 10%;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(240,201,76,0.1);
  pointer-events: none;
}

.bj-table-curve {
  height: 8px;
  background: linear-gradient(180deg, #6b5a18, #4a3d10);
  border-radius: 0 0 50% 50%;
  margin: 0 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,220,120,0.1);
}

.bj-felt-text-top {
  text-align: center;
  color: rgba(240,201,76,0.45);
  font-size: 10px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 8px;
}

/* Polished cards */
.card {
  width: 52px; height: 72px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.8);
  flex-shrink: 0;
  perspective: 600px;
  position: relative;
  background: #fafaf8;
  transition: transform 0.3s ease;
}
.card.red   { color: #c82020; }
.card.black { color: #1a1a1a; }
.card .card-rank { font-size: 18px; line-height: 1; }
.card .card-suit { font-size: 16px; line-height: 1; margin-top: -2px; }

/* BJ action buttons */
.bj-btn-hit    { background: linear-gradient(180deg, #16a34a, #15803d); color: #fff; box-shadow: 0 3px 0 #166534; }
.bj-btn-stand  { background: linear-gradient(180deg, #d97706, #b45309); color: #fff; box-shadow: 0 3px 0 #92400e; }
.bj-btn-double { background: linear-gradient(180deg, var(--accent), color-mix(in oklch, var(--accent) 65%, var(--bg))); color: #0a0600; box-shadow: 0 3px 0 #5a4415; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 3: ROULETTE SCREEN
   ════════════════════════════════════════════════════════════════════════ */
.r-roll-container {
  position: relative; height: 52px; overflow: hidden;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: #0c0c18;
  border: 1px solid rgba(240,201,76,0.15);
  display: none;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.r-strip-num.red   { background: #8b0000; }
.r-strip-num.black { background: #1a1a1a; }
.r-strip-num.green { background: #065f46; }

.r-strip-highlight {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 56px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(240,201,76,0.5), inset 0 0 10px rgba(240,201,76,0.1);
  pointer-events: none; z-index: 2;
}

.roulette-cell.num-red   { background: #8b0000; }
.roulette-cell.num-black { background: #1a1a1a; border: 1px solid #333; }
.roulette-cell.num-green { background: #065f46; }

/* Chip */
.r-chip {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.25);
  background: radial-gradient(circle at 35% 35%, #3a3550, #1a1a2a);
  color: var(--muted);
  font-size: 11px; font-weight: 800;
  cursor: pointer;
  transition: transform var(--dur-fast) ease;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.r-chip:active { transform: scale(0.9); }
.r-chip.active {
  border-color: var(--accent);
  background: radial-gradient(circle at 35% 35%, var(--accent-hi), color-mix(in oklch, var(--accent) 65%, var(--bg)));
  color: #0a0600;
  box-shadow: 0 0 14px rgba(240,201,76,0.5);
  transform: scale(1.1);
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 3: CRASH SCREEN
   ════════════════════════════════════════════════════════════════════════ */
.crash-game-area {
  background: rgba(10,8,20,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.crash-game-area.running  { border-color: rgba(240,201,76,0.3); box-shadow: 0 0 20px rgba(240,201,76,0.06); }
.crash-game-area.crashed  { border-color: rgba(239,68,68,0.4);  box-shadow: 0 0 20px rgba(239,68,68,0.08); }

.crash-multiplier {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  transition: color 0.2s, text-shadow 0.2s;
}
.crash-multiplier.live.mult-medium  { color: var(--accent);        text-shadow: 0 0 24px rgba(240,201,76,0.25); }
.crash-multiplier.live.mult-high    { color: var(--accent-hi); text-shadow: 0 0 36px rgba(240,201,76,0.4); }
.crash-multiplier.live.mult-intense { color: var(--accent-hi); text-shadow: 0 0 48px rgba(240,201,76,0.6), 0 0 80px rgba(139,92,246,0.3); font-size: 64px; }
.crash-multiplier.crashed           { color: #ef4444;            text-shadow: 0 0 20px rgba(239,68,68,0.4); }
.crash-multiplier.waiting           { color: var(--faint);  font-size: 44px; }

/* Cashout button */
.crash-cashout-btn {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(240,201,76,0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, #7a6225, var(--accent), #c8941e);
  color: #0a0600;
  font-weight: 900; font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 #5a4415, 0 6px 24px rgba(240,201,76,0.3);
  transition: transform var(--dur-fast) ease;
}
.crash-cashout-btn:active { transform: scale(0.97) translateY(2px); box-shadow: 0 2px 0 #5a4415; }
.crash-cashout-btn.pulse  { animation: crashCashoutPulse 1.2s ease-in-out infinite; }
@keyframes crashCashoutPulse {
  0%,100%{box-shadow:0 4px 0 #5a4415,0 6px 24px rgba(240,201,76,0.3)}
  50%    {box-shadow:0 4px 0 #5a4415,0 6px 36px rgba(240,201,76,0.55),0 0 0 4px rgba(240,201,76,0.1)}
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 3: LOTTERY SCREEN — ticket stub style
   ════════════════════════════════════════════════════════════════════════ */
.lottery-pot {
  text-align: center;
  background: linear-gradient(135deg, rgba(20,14,6,0.95), rgba(14,10,4,0.9));
  border: 1px solid rgba(240,201,76,0.2);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated), 0 0 40px rgba(240,201,76,0.06);
}
.lottery-pot::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(240,201,76,0.05), transparent);
  animation: jackpotShimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes jackpotShimmer { to { transform: rotate(360deg); } }

.pot-amount {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900;
  color: var(--accent-hi);
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(240,201,76,0.3);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.pot-label { color: var(--muted); font-size: 13px; position: relative; }
.pot-timer { margin-top: 8px; color: var(--accent); font-size: 14px; font-weight: 600; position: relative; }

/* Ticket stub with perforated edge */
.mini-ticket {
  background: linear-gradient(135deg, rgba(18,14,6,0.95), rgba(12,10,4,0.9));
  border: 1px solid rgba(240,201,76,0.18);
  border-radius: var(--radius-md);
  width: calc(50% - 5px);
  overflow: hidden;
  position: relative;
}
.mini-ticket::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
}
.mini-ticket::after {
  content: '';
  position: absolute;
  right: -8px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
}
.mini-ticket-perforation {
  height: 2px;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(240,201,76,0.2) 5px, rgba(240,201,76,0.2) 10px);
}
.mini-ticket-body { padding: 10px 14px 8px; }
.mini-ticket-id {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  color: var(--accent); letter-spacing: 1px;
}
.mini-ticket-date  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mini-ticket-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.mini-ticket.ticket-active .mini-ticket-status { color: var(--accent); }
.mini-ticket.ticket-won    .mini-ticket-status { color: var(--accent); }
.mini-ticket.ticket-lost   .mini-ticket-status { color: var(--faint); }
.mini-ticket.ticket-won { border-color: color-mix(in oklch, var(--accent) 65%, var(--bg)); box-shadow: 0 0 12px rgba(240,201,76,0.2); }

/* Prize tiers */
.prize-tier {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(14,10,4,0.8);
  border: 1px solid rgba(240,201,76,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 6px; font-size: 14px;
}
.prize-tier span:last-child { color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 4: HIGH ROLLER — emerald luxury (distinct from Black Vault)
   ════════════════════════════════════════════════════════════════════════ */
#high-roller-screen .game-header h2 {
  background: linear-gradient(90deg, #4ade80, #86efac, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  letter-spacing: 2px;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 4: LIQUIDATION — cyber-neon cyan
   ════════════════════════════════════════════════════════════════════════ */
#liquidation-screen .game-header h2 {
  background: linear-gradient(90deg, #22d3ee, #7df0ff, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 3px;
}

/* ════════════════════════════════════════════════════════════════════════
   PHASE 5: MULTIPLAYER SCREENS
   ════════════════════════════════════════════════════════════════════════ */

/* Lobby as playing-card tiles */
.lobby-table-card {
  background: linear-gradient(135deg, rgba(14,12,26,0.95), rgba(18,16,32,0.9));
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color var(--dur-base) ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.lobby-table-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.2), transparent);
}
.lobby-table-card:active { border-color: rgba(240,201,76,0.25); }

.seat-dot.filled { background: var(--accent); }
.seat-dot.empty  { background: var(--bg); border: 1px solid rgba(255,255,255,0.1); }

/* Phase bar */
.mp-phase-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(14,12,26,0.85);
  border: 1px solid rgba(240,201,76,0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px; margin-bottom: 12px;
}
.mp-phase-label  { font-weight: 700; font-size: 14px; color: var(--accent); }
.mp-phase-timer  { font-size: 14px; font-weight: 700; color: var(--accent-bright); font-variant-numeric: tabular-nums; }

/* Seat indicators */
.mp-seat {
  background: rgba(12,10,22,0.85);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 10px; text-align: center; min-height: 80px;
  transition: border-color var(--dur-base) ease;
}
.mp-seat.active-turn { border-color: var(--accent); box-shadow: 0 0 14px rgba(240,201,76,0.25); }
.mp-seat.my-seat     { background: rgba(240,201,76,0.06); border-color: rgba(240,201,76,0.2); }

.mp-player-chip {
  background: rgba(12,10,22,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 4px 10px; font-size: 12px;
}
.mp-player-chip.me { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 6: POLISH — achievement cards, win celebrations, etc.
   ════════════════════════════════════════════════════════════════════════ */

/* Achievement cards */
.achievement-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 12px; text-align: center;
  transition: all var(--dur-base) ease;
  cursor: pointer; position: relative;
}
.achievement-card.unlocked {
  background: rgba(240,201,76,0.06);
  border-color: rgba(240,201,76,0.2);
}
.achievement-card.locked { opacity: 0.4; filter: grayscale(1); }
.achievement-card-icon   { font-size: 26px; margin-bottom: 4px; }
.achievement-card-name   { font-size: 12px; font-weight: 700; color: var(--text); }
.achievement-card-desc   { font-size: 10px; color: var(--faint); margin-top: 2px; }
.achievement-check       { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--accent-hi); font-weight: 900; }

/* Achievement toast */
.achievement-toast {
  position: fixed;
  top: -80px; left: 50%; transform: translateX(-50%);
  z-index: 2000;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(18,16,32,0.97));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: 0 8px 40px rgba(139,92,246,0.3);
  transition: top 0.4s var(--ease-spring);
  backdrop-filter: blur(16px);
  white-space: nowrap;
}
.achievement-toast.show { top: 20px; }
.achievement-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-bright); font-weight: 700; }
.achievement-name  { font-size: 15px; font-weight: 800; color: var(--text); }

/* Win celebration */
.win-celebration { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.win-celebration-amount {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 900;
  color: var(--accent-hi);
  text-shadow: 0 0 40px rgba(240,201,76,0.5);
  animation: winPop 1.2s var(--ease-spring) forwards;
}
@keyframes winPop {
  0%  { transform: scale(0.3); opacity: 0; }
  45% { transform: scale(1.25); opacity: 1; }
  75% { transform: scale(1); opacity: 1; }
  100%{ transform: scale(0.9); opacity: 0; }
}

/* Screen flash */
.screen-flash {
  display: none; position: fixed; inset: 0;
  background: rgba(240,201,76,0.25); z-index: 300;
  pointer-events: none;
  animation: flashAnim 0.6s ease forwards;
}
.screen-flash.active { display: block; }
@keyframes flashAnim { 0%{opacity:1} 100%{opacity:0} }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 6: BET CONTROLS + INPUTS
   ════════════════════════════════════════════════════════════════════════ */
.bet-controls { margin-top: 20px; }

.bet-input-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.bet-input-row label { font-weight: 600; color: var(--muted); font-size: 14px; }
.bet-input-row input {
  flex: 1;
  background: rgba(8,8,16,0.9);
  border: 1px solid rgba(240,201,76,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--accent-hi);
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  font-variant-numeric: tabular-nums;
}
.bet-input-row input:focus {
  border-color: rgba(240,201,76,0.35);
  box-shadow: 0 0 16px rgba(240,201,76,0.08);
}

/* Quick bets */
.quick-bets { display: flex; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════════════
   PHASE 6: MISC GLOBAL OVERRIDES
   ════════════════════════════════════════════════════════════════════════ */

/* Color alias overrides (green was --gold; now real green) */
.crash-log-row.log-green .log-mult,
.crash-log-row.log-green .log-bar-fill { color: var(--win); background: var(--win); }
.crash-log-row.log-yellow .log-mult { color: #fbbf24; }
.crash-log-row.log-yellow .log-bar-fill { background: #fbbf24; }
.crash-log-row.log-red .log-mult { color: var(--loss); }
.crash-log-row.log-red .log-bar-fill { background: var(--loss); }

/* Profile tier/level bar */
.level-bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}
.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 3px;
  transition: width 0.8s var(--ease-out);
  box-shadow: 0 0 8px rgba(139,92,246,0.4);
}

/* Tier badge */
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tier-bronze  { background: rgba(176,138,85,0.15); color: #cd9e60; border: 1px solid rgba(176,138,85,0.3); }
.tier-silver  { background: rgba(180,180,180,0.12); color: #c0c0c0; border: 1px solid rgba(180,180,180,0.25); }
.tier-gold    { background: rgba(240,201,76,0.15);  color: var(--accent-hi); border: 1px solid rgba(240,201,76,0.3); }
.tier-diamond { background: rgba(139,92,246,0.15);  color: var(--accent-bright); border: 1px solid rgba(139,92,246,0.3); box-shadow: 0 0 10px rgba(139,92,246,0.2); }

/* Toggle switch */
.toggle-slider { background: rgba(12,10,22,0.9); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; }
.toggle input:checked + .toggle-slider { background: var(--accent-dark); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: white; }
.toggle-slider::before { background: var(--faint); }

/* Color picker */
.color-swatch.selected { border-color: var(--accent); box-shadow: 0 0 12px rgba(240,201,76,0.4); }

/* paytable */
.paytable {
  margin-top: 20px;
  background: rgba(10,8,20,0.8);
  border: 1px solid rgba(240,201,76,0.07);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.paytable h4 { text-align: center; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.paytable-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--muted); }
.paytable-row span:last-child { color: var(--accent); font-weight: 600; }

/* Bet display row (for BJ) */
.bj-bet-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 12px; }
.bj-bet-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.bj-current-bet { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent-hi); font-variant-numeric: tabular-nums; }

.bj-chip[data-value="10"]  { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.bj-chip[data-value="25"]  { background: linear-gradient(180deg, #22c55e, #15803d); }
.bj-chip[data-value="50"]  { background: linear-gradient(180deg, #8b5cf6, #6d28d9); }
.bj-chip[data-value="100"] { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.bj-chip[data-value="500"] { background: linear-gradient(180deg, #475569, #1e293b); }
.bj-chip[data-value="max"] { background: linear-gradient(180deg, var(--accent), color-mix(in oklch, var(--accent) 65%, var(--bg))); color: #0a0600; }
.bj-chip.active { border-color: var(--accent); border-style: solid; transform: scale(1.12); box-shadow: 0 0 14px rgba(240,201,76,0.4); }

/* Text utility */
.text-muted { color: var(--faint); font-size: 13px; }

/* MP outcome */
.mp-outcome { font-size: 12px; font-weight: 700; margin-top: 4px; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.mp-outcome.win, .mp-outcome.blackjack { color: var(--accent); background: rgba(240,201,76,0.1); }
.mp-outcome.lose, .mp-outcome.bust     { color: var(--loss);  background: rgba(239,68,68,0.1); }
.mp-outcome.push                        { color: var(--accent); background: rgba(240,201,76,0.1); }

/* MP badge */
.mp-active-badge {
  display: inline-block;
  background: rgba(139,92,246,0.15);
  color: var(--accent-bright);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  border: 1px solid rgba(139,92,246,0.3);
}

/* Section footer */
.mp-footer {
  text-align: center; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* History rows */
.history-row { transition: background var(--dur-fast) ease; }
.history-row:hover { background: rgba(240,201,76,0.04); }

/* PF modal */
.pf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pf-close { background: none; border: none; color: var(--muted); font-size: 28px; cursor: pointer; padding: 0 4px; line-height: 1; }
.pf-section h4 { font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.pf-section p  { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pf-row { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pf-row:last-child { border-bottom: none; }
.pf-row span:first-child { color: var(--muted); }
.pf-row span:last-child  { font-weight: 600; }
.pf-seed label { display: block; font-size: 11px; color: var(--faint); margin-bottom: 2px; }
.pf-seed code  { display: block; background: rgba(12,10,22,0.8); border-radius: 6px; padding: 8px; font-size: 11px; word-break: break-all; color: var(--muted); font-family: monospace; }
.pf-json       { background: rgba(12,10,22,0.8); border-radius: 6px; padding: 10px; font-size: 11px; color: var(--muted); overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-family: monospace; }

/* Back btn */
.back-btn { margin-bottom: 12px; }

/* Game id (hidden) */
.game-id-text { display: none !important; }

/* r-history numbers */
.r-hist-num       { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: white; }
.r-hist-num.red   { background: #8b0000; }
.r-hist-num.black { background: #222; border: 1px solid #444; }
.r-hist-num.green { background: #065f46; }

/* Live wins section (crash players) */
.crash-player { padding: 8px 12px; font-size: 13px; background: rgba(12,10,22,0.8); border-radius: var(--radius-md); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; border-left: 3px solid transparent; }
.crash-player.cashed { border-left-color: var(--accent); }
.crash-player.active { border-left-color: rgba(240,201,76,0.4); }
.crash-player .cp-payout { color: var(--accent); font-weight: 700; }

/* Session stat grid (standalone) */
.session-stat { flex: 1; background: rgba(12,10,22,0.8); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.session-stat-value { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.session-stat-value.positive { color: var(--accent-hi); }
.session-stat-value.negative { color: #f87171; }
.session-stat-label { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════════
   CINEMATIC UPGRADE — ATMOSPHERIC DEPTH & PREMIUM TREATMENTS
   ════════════════════════════════════════════════════════════════════════ */

/* ── Noise grain overlay — premium texture ──────────────────────────── */
body > *:not(#loading-screen) {
  /* Noise is on glass-card already; this is the global veil */
}
body::after {
  mix-blend-mode: soft-light;
}

/* ── Featured game cards — animated border glow on idle ─────────────── */
.featured-game-card {
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(240,201,76,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Subtle breathing glow on each card's icon */
.featured-game-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,201,76,0.06) 0%, transparent 65%);
  animation: iconBreathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes iconBreathe {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ── Streak banner — premium inner light ────────────────────────────── */
.streak-banner {
  background:
    linear-gradient(135deg, rgba(18,16,32,0.95) 0%, rgba(14,10,26,0.9) 100%),
    radial-gradient(ellipse at 70% 50%, rgba(240,201,76,0.04) 0%, transparent 50%);
}

/* ── Daily bonus CLAIM button — heartbeat when available ────────────── */
.streak-banner.claimable .btn-gold {
  animation: goldPillShimmer 3.5s ease-in-out infinite, claimHeartbeat 1.8s ease-in-out infinite;
}
@keyframes claimHeartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.06); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.04); }
}

/* ── Section headings — gilded accent bar with shimmer ──────────────── */
.section-heading::before {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  animation: headingBarShimmer 3s ease-in-out infinite;
}
@keyframes headingBarShimmer {
  0%, 100% { box-shadow: 0 0 6px rgba(240,201,76,0.2); }
  50%      { box-shadow: 0 0 14px rgba(240,201,76,0.5), 0 0 4px rgba(139,92,246,0.3); }
}

/* ── Live wins — pulsing accent dot + card hover lift ───────────────── */
.live-win-card {
  transition: transform 200ms var(--ease-spring), border-color 200ms ease, box-shadow 200ms ease;
}
.live-win-card:active {
  transform: scale(0.96);
  border-color: rgba(240,201,76,0.25);
  box-shadow: 0 4px 20px rgba(240,201,76,0.1);
}

/* ── Game cards (Games screen) — per-game ambient glow orbs ─────────── */
.game-card::after {
  transition: opacity 300ms ease;
}
.game-card:active::after {
  opacity: 0.8;
}

/* Per-game accent glow on active */
.game-card[onclick*="slots"]:active {
  box-shadow: 0 0 28px rgba(139,92,246,0.12), 0 8px 28px rgba(0,0,0,0.4);
}
.game-card[onclick*="blackjack"]:active {
  box-shadow: 0 0 28px rgba(34,197,94,0.1), 0 8px 28px rgba(0,0,0,0.4);
}
.game-card[onclick*="crash"]:active {
  box-shadow: 0 0 28px rgba(240,201,76,0.15), 0 8px 28px rgba(0,0,0,0.4);
}
.game-card[onclick*="roulette"]:active {
  box-shadow: 0 0 28px rgba(220,38,38,0.1), 0 8px 28px rgba(0,0,0,0.4);
}
.game-card[onclick*="plinko"]:active,
.game-card[onclick*="mines"]:active {
  box-shadow: 0 0 28px rgba(59,130,246,0.12), 0 8px 28px rgba(0,0,0,0.4);
}

/* ── Premium game cards — animated border gradient ──────────────────── */
.game-card.premium {
  position: relative;
}
.game-card.premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.35), rgba(139,92,246,0.2), transparent);
  background-size: 200% 100%;
  animation: premiumBorderFlow 4s ease-in-out infinite;
}
@keyframes premiumBorderFlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Leaderboard rows — rank-specific accent ────────────────────────── */
.lb-row:nth-child(1) .lb-rank { color: var(--accent-hi); text-shadow: 0 0 8px rgba(240,201,76,0.3); }
.lb-row:nth-child(2) .lb-rank { color: #c0c0c0; }
.lb-row:nth-child(3) .lb-rank { color: #cd9e60; }

/* ── Profile avatar ring — more vibrant glow ────────────────────────── */
.profile-avatar-ring {
  box-shadow: 0 0 20px rgba(240,201,76,0.2), 0 0 40px rgba(139,92,246,0.15);
}

/* ── Bottom nav — frosted glass upgrade ─────────────────────────────── */
#bottom-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.12), transparent);
  pointer-events: none;
}

/* Active nav icon gets a subtle bounce on tap */
.nav-btn:active .nav-icon {
  transform: translateY(-3px) scale(1.15);
}

/* ── Slots machine — atmospheric frame ──────────────────────────────── */
.slots-machine {
  box-shadow:
    var(--shadow-elevated),
    inset 0 1px 0 rgba(240,201,76,0.08),
    0 0 60px rgba(139,92,246,0.04);
}
.slots-machine::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,201,76,0.30), transparent);
}

/* ── Blackjack felt — deeper atmosphere ─────────────────────────────── */
.bj-felt {
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.4),
    inset 0 0 160px rgba(0,0,0,0.2),
    0 4px 20px rgba(0,0,0,0.6),
    inset 0 2px 0 rgba(240,201,76,0.2),
    0 0 40px rgba(26,107,60,0.08);
}

/* ── Cards (playing cards) — luxury feel ────────────────────────────── */
.card {
  box-shadow:
    0 3px 12px rgba(0,0,0,0.4),
    0 1px 3px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.05);
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
}

/* ── Crash multiplier — glow intensity scales with value ────────────── */
.crash-game-area {
  box-shadow: var(--shadow-card);
}
.crash-game-area.running {
  box-shadow: 0 0 30px rgba(240,201,76,0.08), 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Roulette chips — casino chip texture ───────────────────────────── */
.r-chip {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
.r-chip.active {
  box-shadow:
    0 0 14px rgba(240,201,76,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ── Modals — cinematic entrance ────────────────────────────────────── */
.modal-overlay {
  background: rgba(0,0,0,0.82);
}
.modal-content {
  box-shadow:
    0 24px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 80px rgba(139,92,246,0.06),
    inset 0 1px 0 rgba(240,201,76,0.08);
}

/* ── Toast — entrance spring bounce ─────────────────────────────────── */
.toast {
  box-shadow:
    var(--shadow-elevated),
    0 0 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Lobby table cards — subtle left accent line ────────────────────── */
.lobby-table-card {
  border-left: 3px solid transparent;
}
.lobby-table-card:nth-child(odd) {
  border-left-color: rgba(240,201,76,0.15);
}
.lobby-table-card:nth-child(even) {
  border-left-color: rgba(139,92,246,0.15);
}

/* ── Notification bell — badge pulse ────────────────────────────────── */
.notif-badge {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ── Lottery pot — jackpot amount shimmer text ───────────────────────── */
.pot-amount {
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 65%, var(--bg)), var(--accent-hi), var(--accent), var(--accent-hi), color-mix(in oklch, var(--accent) 65%, var(--bg)));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: potAmountShimmer 5s ease-in-out infinite;
}
@keyframes potAmountShimmer {
  0%   { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

/* ── Win celebration — more dramatic pop ────────────────────────────── */
.win-celebration-amount {
  text-shadow:
    0 0 40px rgba(240,201,76,0.5),
    0 0 80px rgba(240,201,76,0.3),
    0 0 120px rgba(139,92,246,0.2);
}

/* ── Tier badges — subtle glow per tier ─────────────────────────────── */
.tier-gold {
  box-shadow: 0 0 12px rgba(240,201,76,0.15);
  animation: tierGoldGlow 3s ease-in-out infinite;
}
@keyframes tierGoldGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(240,201,76,0.1); }
  50%      { box-shadow: 0 0 18px rgba(240,201,76,0.25); }
}
.tier-diamond {
  animation: tierDiamondGlow 3s ease-in-out infinite;
}
@keyframes tierDiamondGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(139,92,246,0.15); }
  50%      { box-shadow: 0 0 18px rgba(139,92,246,0.35); }
}

/* ── Loading screen — more dramatic reveal ──────────────────────────── */
.loading-logo-img {
  animation: logoFloat 3.2s ease-in-out infinite, logoEntrance 0.8s var(--ease-spring) both;
}
@keyframes logoEntrance {
  from { transform: translateY(20px) scale(0.8); opacity: 0; filter: blur(8px); }
  to   { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

/* ── Podium — gold crown glow for #1 ────────────────────────────────── */
.lb-podium-place:nth-child(1) .lb-podium-avatar {
  animation: crownGlow 3s ease-in-out infinite;
}
@keyframes crownGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(240,201,76,0.3); }
  50%      { box-shadow: 0 0 30px rgba(240,201,76,0.5), 0 0 60px rgba(240,201,76,0.15); }
}

/* ════════════════════════════════════════════════════════════════════════
   CINEMATIC MICRO-ANIMATIONS & POLISH
   ════════════════════════════════════════════════════════════════════════ */

/* Staggered entry for featured game cards — tied to screen.active */
.screen.active .featured-games .featured-game-card {
  animation: cardReveal 0.4s var(--ease-out) both;
}
.screen.active .featured-games .featured-game-card:nth-child(1) { animation-delay: 0.05s; }
.screen.active .featured-games .featured-game-card:nth-child(2) { animation-delay: 0.12s; }
.screen.active .featured-games .featured-game-card:nth-child(3) { animation-delay: 0.19s; }
.screen.active .featured-games .featured-game-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Staggered entry for game grid cards */
.screen.active .game-grid .game-card {
  animation: cardReveal 0.35s var(--ease-out) both;
}
.screen.active .game-grid .game-card:nth-child(1) { animation-delay: 0.04s; }
.screen.active .game-grid .game-card:nth-child(2) { animation-delay: 0.10s; }
.screen.active .game-grid .game-card:nth-child(3) { animation-delay: 0.16s; }
.screen.active .game-grid .game-card:nth-child(4) { animation-delay: 0.22s; }
.screen.active .game-grid .game-card:nth-child(5) { animation-delay: 0.28s; }
.screen.active .game-grid .game-card:nth-child(6) { animation-delay: 0.34s; }

/* Live win cards slide in */
.live-win-card {
  animation: liveCardSlide 0.3s var(--ease-out) both;
}
@keyframes liveCardSlide {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Leaderboard rows stagger */
.screen.active .lb-row {
  animation: rowSlideIn 0.3s var(--ease-out) both;
}
.screen.active .lb-row:nth-child(1) { animation-delay: 0.05s; }
.screen.active .lb-row:nth-child(2) { animation-delay: 0.10s; }
.screen.active .lb-row:nth-child(3) { animation-delay: 0.15s; }
.screen.active .lb-row:nth-child(4) { animation-delay: 0.20s; }
.screen.active .lb-row:nth-child(5) { animation-delay: 0.25s; }

@keyframes rowSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Premium game badge shimmer */
.game-badge {
  position: relative;
  overflow: hidden;
}
.game-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%, 70% { left: -100%; }
  100%    { left: 200%; }
}

/* Streak dot pulse when active */
.streak-dot.active {
  animation: dotGlow 2s ease-in-out infinite;
}
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(240,201,76,0.2); }
  50%      { box-shadow: 0 0 14px rgba(240,201,76,0.4); }
}

/* Header logo subtle breathe */
.header-logo-img {
  animation: headerLogoBreathe 5s ease-in-out infinite;
}
@keyframes headerLogoBreathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(240,201,76,0.2)); }
  50%      { filter: drop-shadow(0 0 14px rgba(240,201,76,0.35)); }
}
