/* ==========================================================================
   Jackpot Strikes — electric-storm social casino  ·  LOBBY OVERHAUL
   Deep midnight indigo stage, gold→ember strike gradients, voltage violet /
   cyan glows, arcade cabinet hero, artwork-first game tiles, HUD chrome.
   ========================================================================== */

:root {
  --ink-0: #05060d;
  --ink-1: #0a0b16;
  --ink-2: #12142a;
  --ink-3: #1a1d38;
  --ink-4: #242848;
  --line:  #2e3358;
  --line-hot: #4a4f86;

  --gold-1: #ffe082;
  --gold-2: #ffb400;
  --ember:  #ff6a00;
  --red:    #ff2d55;
  --volt-1: #8a4dff;
  --volt-2: #b98cff;
  --spark:  #35e0ff;
  --mint:   #3affc0;

  --text-1: #f4f2ff;
  --text-2: #b9b8d4;
  --text-3: #8886a8;

  --grad-strike: linear-gradient(135deg, #ffe082 0%, #ffb400 45%, #ff6a00 100%);
  --grad-volt:   linear-gradient(135deg, #8a4dff 0%, #5a2fd0 100%);
  --grad-spark:  linear-gradient(135deg, #35e0ff 0%, #2f7bff 100%);
  --grad-hot:    linear-gradient(135deg, #ff2d55 0%, #ff6a00 100%);

  --font-display: 'Passion One', 'Arial Black', sans-serif;
  --font-body: 'Exo 2', 'Segoe UI', sans-serif;

  --clip-card: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --clip-btn:  polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));

  --shadow-card: 0 10px 30px rgba(0, 0, 0, .45);
  --wrap: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* The hidden attribute must always win, even over display rules on the class
   (e.g. .cookie-bar { display:flex } was overriding [hidden] and the banner
   never dismissed). */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--ink-1);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-1); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ==========================================================================
   AMBIENT STAGE BACKGROUND
   ========================================================================== */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx__grid {
  position: absolute; inset: -20% -10% 0;
  background-image:
    linear-gradient(rgba(138, 77, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 77, 255, .08) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: 50% 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 12%, #000 20%, transparent 72%);
}
.bg-fx__glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.bg-fx__glow--a { width: 720px; height: 560px; top: -240px; left: -140px; background: #4a1fb0; opacity: .55; animation: driftA 22s ease-in-out infinite; }
.bg-fx__glow--b { width: 620px; height: 500px; top: -180px; right: -160px; background: #a04a00; opacity: .45; animation: driftB 26s ease-in-out infinite; }
.bg-fx__glow--c { width: 560px; height: 460px; top: 46%; left: 40%; background: #0f4f8f; opacity: .3; animation: driftA 30s ease-in-out infinite reverse; }
@keyframes driftA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(70px, 40px, 0) scale(1.12); } }
@keyframes driftB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-60px, 60px, 0) scale(1.1); } }

.bg-fx__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.bg-fx__stars { position: absolute; inset: 0; opacity: .6; }
.bg-fx__stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .8);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* floating ambient coins (JS-spawned) */
.coin-fx { position: absolute; pointer-events: none; z-index: 3; will-change: transform; }
.coin-fx svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(255, 150, 0, .5)); }
@keyframes coinFloat {
  0%   { transform: translate3d(0, 24px, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(var(--dx, 20px), -120px, 0) rotate(var(--dr, 220deg)); opacity: 0; }
}

/* ==========================================================================
   HEADER — game HUD chrome
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(12, 13, 28, .94), rgba(9, 10, 20, .84));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--volt-1) 18%, var(--spark) 42%, var(--gold-2) 62%, var(--ember) 80%, transparent);
  background-size: 220% 100%;
  animation: railSlide 9s linear infinite;
  opacity: .9;
}
@keyframes railSlide { from { background-position: 0% 0; } to { background-position: 220% 0; } }
.site-header__row { display: flex; align-items: center; gap: 18px; height: 74px; }
/* Header breathes wider than the page content so the HUD never feels cramped */
.site-header .wrap { max-width: 1460px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__bolt {
  width: 38px; height: 38px; display: grid; place-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 180, 0, .65));
  animation: boltPulse 3.4s ease-in-out infinite;
}
@keyframes boltPulse { 0%, 100% { transform: scale(1) rotate(-4deg); filter: drop-shadow(0 0 8px rgba(255, 180, 0, .5)); } 50% { transform: scale(1.08) rotate(4deg); filter: drop-shadow(0 0 18px rgba(255, 190, 60, .95)); } }
.brand__bolt svg { width: 100%; height: 100%; }
.brand__bolt--sm { width: 24px; height: 24px; animation: none; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; letter-spacing: .5px;
  color: var(--text-1); text-transform: uppercase; line-height: 1;
  text-shadow: 0 0 22px rgba(138, 77, 255, .55);
}
.brand__word em {
  font-style: normal;
  background: var(--grad-strike);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.main-nav {
  display: flex; gap: 3px; margin-left: 6px;
  background: rgba(7, 8, 18, .7);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.main-nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .86rem; color: var(--text-2);
  padding: 8px 15px; border-radius: 999px; letter-spacing: .3px;
  transition: color .18s, background .18s, box-shadow .2s;
}
.main-nav__link svg { width: 15px; height: 15px; }
.main-nav__link:hover { color: #fff; background: rgba(138, 77, 255, .22); }
.main-nav__link.is-active {
  color: #150a02; background: var(--grad-strike);
  box-shadow: 0 4px 14px rgba(255, 150, 0, .38);
}

.header-hud { display: flex; align-items: center; gap: 9px; margin-left: auto; }

/* Always-visible signup + bonus + login (outside the mobile drawer) */
.hdr-persist {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}
.hdr-persist .bonus-btn { padding: 7px 12px; font-size: .78rem; }
.hdr-persist .btn--join,
.hdr-persist .btn--login { padding: 8px 12px; font-size: .82rem; }
.hdr-persist [hidden] { display: none !important; }
.hdr-menu-auth { display: none; }
.hdr-menu-auth [hidden] { display: none !important; }

/* Desktop: the collapse wrapper is layout-transparent so nav + HUD sit inline
   in the header row. On mobile it becomes the hamburger drawer. */
.hdr-collapse { display: contents; }

.nav-burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(18, 20, 42, .75); border: 1px solid var(--line-hot); border-radius: 12px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.nav-burger:hover { border-color: var(--volt-2); box-shadow: 0 0 14px rgba(138, 77, 255, .35); }
.nav-burger span {
  display: block; width: 20px; height: 2.4px; border-radius: 2px;
  background: var(--gold-1); transition: transform .25s ease, opacity .2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.hud-pod {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, rgba(36, 40, 72, .95), rgba(18, 20, 42, .95));
  border: 1px solid var(--line-hot); border-radius: 999px;
  padding: 5px 6px 5px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .45);
}

.coin-chip {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, #2b2350, #171735);
  border: 1px solid rgba(255, 190, 70, .45);
  border-radius: 999px; padding: 5px 8px 5px 5px;
  color: var(--gold-1); font-family: var(--font-body);
  font-weight: 800; font-size: 1rem; letter-spacing: .3px;
  cursor: pointer; transition: transform .15s, box-shadow .2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 rgba(255, 180, 0, 0);
}
.coin-chip:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 18px rgba(255, 180, 0, .45); }
.coin-chip__plus {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-strike); color: #3c1e00; font-weight: 900; font-size: .95rem; line-height: 1;
}
.coin-chip.bump { animation: coinBump .45s ease; }
@keyframes coinBump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 60% { transform: scale(.96); } 100% { transform: scale(1); } }
.coin-chip__coin { width: 28px; height: 28px; animation: coinTilt 4s ease-in-out infinite; }
.coin-chip__coin svg { width: 100%; height: 100%; }
@keyframes coinTilt { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }

/* level / XP pod */
.level-pod { display: flex; align-items: center; gap: 9px; padding: 4px 14px 4px 5px; }
.level-ring {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(var(--spark) calc(var(--xp, 62) * 1%), rgba(255, 255, 255, .09) 0);
  display: grid; place-items: center;
  filter: drop-shadow(0 0 8px rgba(53, 224, 255, .5));
}
.level-ring::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--ink-2);
}
.level-ring span {
  position: relative; z-index: 1; font-weight: 900; font-size: .8rem; color: #fff;
}
.level-pod__meta { line-height: 1.15; }
.level-pod__meta b { display: block; font-size: .78rem; letter-spacing: .5px; }
.level-pod__meta small { color: var(--text-3); font-size: .66rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

@media (min-width: 941px) {
  .header-hud { gap: 12px; }
  .hdr-persist { gap: 8px; }
  .hdr-persist .bonus-btn { padding: 8px 16px; font-size: .85rem; }
}

.bonus-btn {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  background: var(--grad-volt); border: 1px solid #a06dff;
  border-radius: 999px; padding: 8px 16px;
  color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  cursor: pointer; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(90, 40, 200, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bonus-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 999px;
  border: 1px solid rgba(185, 140, 255, .5); opacity: 0;
  animation: bonusHalo 2.6s ease-out infinite;
}
@keyframes bonusHalo { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.18); } }
.bonus-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138, 77, 255, .7); }
.bonus-btn__icon { width: 19px; height: 19px; }
.bonus-btn__icon svg { width: 100%; height: 100%; }
.bonus-btn__pip {
  position: absolute; top: -4px; right: -3px; width: 12px; height: 12px;
  background: var(--red); border-radius: 50%; border: 2px solid var(--ink-1);
  animation: pipPulse 1.4s ease infinite;
}
@keyframes pipPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 800; letter-spacing: .5px;
  font-size: .95rem; text-transform: uppercase;
  border: 0; cursor: pointer; text-decoration: none;
  padding: 13px 28px; clip-path: var(--clip-btn);
  transition: transform .15s, filter .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--grad-strike); color: #3c1e00;
  box-shadow: 0 8px 22px rgba(255, 140, 0, .34), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(150, 60, 0, .35);
}
.btn--primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 42%;
  left: -60%; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 12px 32px rgba(255, 140, 0, .5); color: #3c1e00; }
.btn--ghost { background: rgba(18, 20, 42, .6); color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line-hot); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--volt-2), 0 0 20px rgba(138, 77, 255, .3); }
.btn--join {
  background: var(--grad-strike); color: #3c1e00; padding: 11px 20px; font-size: .85rem;
  box-shadow: 0 6px 18px rgba(255, 140, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.btn--join:hover { filter: brightness(1.08); color: #3c1e00; transform: translateY(-2px); }
.btn--lg { padding: 17px 40px; font-size: 1.12rem; }
.btn--xl { padding: 21px 52px; font-size: 1.3rem; letter-spacing: 1px; }
.btn--sm { padding: 8px 16px; font-size: .8rem; }
.btn--block { width: 100%; }
.btn--pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(255, 140, 0, .34), inset 0 2px 0 rgba(255, 255, 255, .55), 0 0 0 0 rgba(255, 180, 0, .5); }
  50% { box-shadow: 0 12px 34px rgba(255, 140, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .55), 0 0 0 14px rgba(255, 180, 0, 0); }
}

/* ==========================================================================
   HERO STAGE — arcade cabinet
   ========================================================================== */
.hero-stage { position: relative; padding: 60px 0 40px; overflow: hidden; }
.hero-stage__sky { position: absolute; inset: -60px 0 0; pointer-events: none; z-index: 0; }
.hero-stage__sky .beam {
  position: absolute; top: -12%; left: 50%; width: 26%; height: 130%;
  background: linear-gradient(180deg, rgba(255, 200, 80, .16), transparent 70%);
  transform-origin: 50% 0; filter: blur(4px);
  animation: beamSweep 11s ease-in-out infinite;
}
.hero-stage__sky .beam:nth-child(1) { transform: rotate(-22deg); animation-delay: 0s; }
.hero-stage__sky .beam:nth-child(2) { transform: rotate(6deg); background: linear-gradient(180deg, rgba(138, 77, 255, .22), transparent 70%); animation-delay: -3.5s; }
.hero-stage__sky .beam:nth-child(3) { transform: rotate(26deg); background: linear-gradient(180deg, rgba(53, 224, 255, .16), transparent 70%); animation-delay: -7s; }
@keyframes beamSweep { 0%, 100% { transform: rotate(-26deg) scaleX(.85); opacity: .55; } 50% { transform: rotate(18deg) scaleX(1.15); opacity: 1; } }
.hero-stage__sky .arc {
  position: absolute; border-radius: 50%; border: 1px solid rgba(185, 140, 255, .18);
  left: 50%; top: 40%; transform: translate(-50%, -50%);
}
.hero-stage__sky .arc--1 { width: 620px; height: 620px; }
.hero-stage__sky .arc--2 { width: 880px; height: 880px; border-color: rgba(53, 224, 255, .12); }
.hero-stage__sky .arc--3 { width: 1180px; height: 1180px; border-color: rgba(255, 180, 0, .08); }

.hero-stage__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 30px; align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(58, 255, 192, .1); border: 1px solid rgba(58, 255, 192, .45);
  border-radius: 999px; padding: 6px 15px 6px 10px; margin-bottom: 18px;
  font-weight: 800; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--mint);
}
.hero__badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pipPulse 1.5s ease infinite; }

.hero__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.1rem, 6.4vw, 5.6rem); line-height: .9; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero__title .row-a {
  display: block; color: #fff;
  text-shadow: 0 0 34px rgba(138, 77, 255, .75), 0 4px 0 rgba(0, 0, 0, .4);
}
.hero__title .row-b {
  display: block; position: relative;
  color: #ffb84a; /* solid fallback — filter + clip-text hides text on many mobile browsers */
  background: var(--grad-strike);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 22px rgba(255, 140, 0, .35);
  animation: heroGlint 5s ease-in-out infinite;
}
@keyframes heroGlint {
  0%, 100% { text-shadow: 0 6px 20px rgba(255, 140, 0, .4); }
  50% { text-shadow: 0 6px 34px rgba(255, 190, 60, .75); }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .row-b { -webkit-text-fill-color: #ffb84a; color: #ffb84a; background: none; }
}

.hero__sub { color: var(--text-2); font-size: 1.1rem; max-width: 44ch; margin-bottom: 24px; text-wrap: pretty; }
.hero__sub strong { color: var(--gold-1); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }

.hero__pods { display: flex; flex-wrap: wrap; gap: 12px; }
.pod {
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(160deg, rgba(26, 29, 56, .9), rgba(12, 14, 30, .9));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px 11px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .4);
}
.pod__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(138, 77, 255, .18); }
.pod__icon svg { width: 19px; height: 19px; }
.pod__icon--gold { background: rgba(255, 180, 0, .16); }
.pod__icon--spark { background: rgba(53, 224, 255, .16); }
.pod b { display: block; font-size: .95rem; line-height: 1.15; }
.pod small { color: var(--text-3); font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- the cabinet ---------- */
.cabinet {
  position: relative; z-index: 2;
  padding: 0 44px;
  perspective: 1200px;
}
.cabinet__body {
  position: relative;
  border-radius: 30px 30px 22px 22px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 190, 70, .22), transparent 70%),
    linear-gradient(165deg, #2a2158 0%, #171634 45%, #0d0e20 100%);
  border: 1px solid rgba(255, 200, 90, .38);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .65),
    0 0 70px rgba(138, 77, 255, .32),
    inset 0 2px 0 rgba(255, 255, 255, .14),
    inset 0 -14px 30px rgba(0, 0, 0, .5);
  padding: 16px 16px 20px;
  transform: rotateX(4deg);
  animation: cabFloat 7s ease-in-out infinite;
}
@keyframes cabFloat { 0%, 100% { transform: rotateX(4deg) translateY(0); } 50% { transform: rotateX(4deg) translateY(-10px); } }

/* marquee */
.cab-marquee {
  position: relative; text-align: center;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(180deg, #4a1f9c, #2a1160);
  border: 1px solid rgba(255, 200, 90, .5);
  padding: 14px 20px 12px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 8px 22px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.cab-marquee::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 255, 255, .22), transparent 70%);
}
.cab-marquee__label {
  position: relative; font-weight: 800; font-size: .7rem; letter-spacing: 4px;
  text-transform: uppercase; color: #ffd76a;
}
.cab-marquee__value {
  position: relative; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1;
  background: linear-gradient(180deg, #fff6d0, #ffb400 55%, #ff6a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 180, 0, .6));
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.cab-marquee__unit { position: relative; font-size: .72rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #d9c8ff; }

/* bulb frame */
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulbs i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #ffe9a8; box-shadow: 0 0 10px 3px rgba(255, 200, 90, .85);
  animation: bulbChase 1.4s steps(1, end) infinite;
}
@keyframes bulbChase { 0%, 49% { opacity: 1; transform: scale(1); } 50%, 100% { opacity: .22; transform: scale(.82); } }

/* reels */
.cab-screen {
  position: relative; margin-top: 14px;
  border-radius: 14px; padding: 12px;
  background: linear-gradient(180deg, #07091a, #0d1130);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, .8), inset 0 0 0 3px rgba(255, 200, 90, .18);
}
.cab-screen::after {
  content: ''; position: absolute; inset: 12px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0 22%, transparent 40%);
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel {
  position: relative; overflow: hidden; border-radius: 10px;
  height: 168px;
  background: linear-gradient(180deg, #1b1f42, #10122a 45%, #1b1f42);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 12px 20px rgba(0, 0, 0, .6), inset 0 -12px 20px rgba(0, 0, 0, .6);
}
.reel__strip { display: flex; flex-direction: column; animation: reelSpin 3.4s cubic-bezier(.18, .8, .22, 1) infinite; }
.reel:nth-child(2) .reel__strip { animation-duration: 3.9s; animation-delay: .18s; }
.reel:nth-child(3) .reel__strip { animation-duration: 4.4s; animation-delay: .36s; }
@keyframes reelSpin {
  0%   { transform: translateY(0); }
  55%  { transform: translateY(-66.666%); }
  70%  { transform: translateY(-63%); }
  100% { transform: translateY(-66.666%); }
}
.reel__sym { height: 56px; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; }
.reel__sym svg { width: 38px; height: 38px; }
.reel__glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 9, 26, .9), transparent 26%, transparent 74%, rgba(7, 9, 26, .9)); }
.reel__winline {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 14px rgba(255, 180, 0, .9); opacity: .85;
  animation: winlineFlash 3.4s ease-in-out infinite;
}
@keyframes winlineFlash { 0%, 60% { opacity: .25; } 72%, 88% { opacity: 1; } 100% { opacity: .35; } }

/* tray */
.cab-tray {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #191a3c, #0c0d1e);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07);
}
.cab-tray__bet { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8rem; color: var(--text-2); letter-spacing: .6px; }
.cab-tray__bet span { color: var(--gold-1); }
.cab-spin {
  display: inline-flex; align-items: center; gap: 9px;
  border: 0; cursor: pointer;
  border-radius: 999px; padding: 11px 24px;
  font-family: var(--font-body); font-weight: 900; font-size: .92rem; letter-spacing: 1px; text-transform: uppercase;
  background: radial-gradient(circle at 30% 25%, #ff9d6a, #e8232f 60%, #9c0d1c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 20, 40, .55), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(90, 0, 10, .5);
  transition: transform .14s, filter .2s;
}
.cab-spin:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.cab-spin:active { transform: translateY(1px) scale(.98); }

/* floating reward chips around the cabinet */
.float-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, rgba(36, 40, 72, .96), rgba(16, 18, 38, .96));
  border: 1px solid var(--line-hot);
  border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: chipBob 5.5s ease-in-out infinite;
}
.float-chip__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.float-chip__icon svg { width: 21px; height: 21px; }
.float-chip b { display: block; font-size: .86rem; line-height: 1.2; }
.float-chip small { display: block; color: var(--text-3); font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.float-chip--a { top: 4%; left: -6px; animation-delay: -1s; }
.float-chip--a .float-chip__icon { background: rgba(255, 180, 0, .18); }
.float-chip--b { bottom: 16%; right: -10px; animation-delay: -3s; }
.float-chip--b .float-chip__icon { background: rgba(58, 255, 192, .16); }
.float-chip--c { bottom: -8px; left: 8%; animation-delay: -4.4s; }
.float-chip--c .float-chip__icon { background: rgba(53, 224, 255, .16); }
@keyframes chipBob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

/* ==========================================================================
   WIN TICKER
   ========================================================================== */
.ticker {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(10, 11, 22, .9), rgba(26, 29, 56, .85), rgba(10, 11, 22, .9));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: inset 0 0 30px rgba(138, 77, 255, .18);
}
.ticker__track { display: flex; gap: 42px; width: max-content; padding: 12px 0; animation: tickerScroll 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 9px; font-size: .87rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ticker__item strong { color: var(--gold-1); }
.ticker__item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 9px var(--spark); }
.ticker__item .mini-coin { width: 17px; height: 17px; }

/* ==========================================================================
   JACKPOT POT RAIL
   ========================================================================== */
.pot-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: -18px; position: relative; z-index: 4; }
.pot-card {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 18px 20px;
  background: linear-gradient(160deg, rgba(30, 34, 66, .96), rgba(13, 15, 32, .96));
  border: 1px solid var(--line-hot);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, box-shadow .25s;
}
.pot-card:hover { transform: translateY(-4px); }
.pot-card::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 140%;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--pot-glow, rgba(138, 77, 255, .35)), transparent 70%);
  pointer-events: none;
}
.pot-card__orb {
  position: relative; flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff, var(--pot-orb, #8a4dff) 55%, #2a1060);
  box-shadow: 0 0 24px var(--pot-orb, #8a4dff), inset 0 -6px 14px rgba(0, 0, 0, .45);
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.pot-card__orb svg { width: 26px; height: 26px; }
.pot-card__label { display: block; position: relative; font-weight: 800; font-size: .7rem; letter-spacing: 2.6px; text-transform: uppercase; color: var(--text-3); }
.pot-card__value {
  display: block;
  position: relative; font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pot-card__foot { display: block; position: relative; font-size: .72rem; color: var(--text-3); font-weight: 700; }
.pot-card--mini  { --pot-glow: rgba(53, 224, 255, .3); --pot-orb: #35e0ff; }
.pot-card--major { --pot-glow: rgba(138, 77, 255, .34); --pot-orb: #8a4dff; }
.pot-card--grand { --pot-glow: rgba(255, 150, 0, .34); --pot-orb: #ffb400; }

/* ==========================================================================
   SECTIONS + GRAPHICAL HEADERS
   ========================================================================== */
.section { padding: 68px 0; position: relative; }
.section--tight { padding: 40px 0 20px; }

.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 30px; flex-wrap: wrap; }
.sect-head__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 800; font-size: .72rem;
  letter-spacing: 3.4px; text-transform: uppercase; color: var(--volt-2); margin-bottom: 8px;
}
.sect-head__eyebrow::before {
  content: ''; width: 22px; height: 22px; border-radius: 6px;
  background: var(--grad-volt); box-shadow: 0 0 16px rgba(138, 77, 255, .6);
}
.sect-head__title {
  position: relative;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: .96; letter-spacing: .5px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .6);
}
.sect-head__title em {
  font-style: normal;
  background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 16px rgba(255, 150, 0, .4));
}
.sect-head__title .ghost {
  position: absolute; left: 0; top: -46px; z-index: -1;
  font-size: 4.6rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(185, 140, 255, .16);
  letter-spacing: 4px; white-space: nowrap; pointer-events: none;
}

/* HUD tabs */
.hud-tabs {
  display: flex; gap: 5px; flex-wrap: wrap;
  background: rgba(7, 8, 18, .72); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-2);
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: .82rem;
  padding: 9px 18px; cursor: pointer; letter-spacing: .5px;
  transition: all .18s;
}
.chip__n {
  font-size: .68rem; padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--text-2);
}
.chip:hover { color: #fff; background: rgba(138, 77, 255, .2); }
.chip.is-on { background: var(--grad-strike); color: #3c1e00; box-shadow: 0 5px 16px rgba(255, 150, 0, .4); }
.chip.is-on .chip__n { background: rgba(60, 30, 0, .22); color: #3c1e00; }

/* ==========================================================================
   LOBBY — artwork-first game tiles
   ========================================================================== */
.lobby {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  padding: 6px;
  background: linear-gradient(165deg, rgba(90, 78, 160, .75), rgba(30, 32, 62, .9) 45%, rgba(12, 13, 28, .95));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
  will-change: transform;
  cursor: pointer;
}
.tile::before {
  content: ''; position: absolute; inset: -2px; border-radius: 24px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), #ffb400, #ff2d55, #8a4dff, #35e0ff, #ffb400);
  opacity: 0; filter: blur(12px); transition: opacity .3s;
}
.tile:hover, .tile:focus-within {
  transform: translateY(-10px) scale(1.035) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(255, 150, 0, .28);
}
.tile:hover::before, .tile:focus-within::before { opacity: .85; animation: spinHue 4s linear infinite; }
@keyframes spinHue { to { --a: 360deg; } }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.tile__frame {
  position: relative; overflow: hidden; border-radius: 17px;
  height: 100%;
  background: var(--ink-0);
  display: flex; flex-direction: column;
}
.tile__art { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.tile:hover .tile__art img { transform: scale(1.09); }
.tile__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 13, .55) 78%, rgba(5, 6, 13, .95));
}
.tile__shine {
  position: absolute; top: -60%; left: -80%; width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-22deg); pointer-events: none; opacity: 0; z-index: 3;
}
.tile:hover .tile__shine { animation: tileSweep .85s ease; }
@keyframes tileSweep { 0% { left: -80%; opacity: .9; } 100% { left: 130%; opacity: 0; } }

.tile__tags { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.tag {
  font-size: .64rem; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 8px; color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tag--hot { background: var(--grad-hot); }
.tag--new { background: var(--grad-spark); color: #04223a; }
.tag--jackpot { background: var(--grad-strike); color: #3c1e00; }
.tag--popular { background: var(--grad-volt); }
.tag--cat { background: rgba(8, 9, 20, .8); color: var(--volt-2); border: 1px solid var(--line-hot); box-shadow: none; }

.tile__provider {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  font-size: .62rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-2); background: rgba(8, 9, 20, .7); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1);
}

.tile__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 16px 16px; }
.tile__name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; line-height: 1; margin-bottom: 5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .8);
}
.tile__pot { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; color: var(--gold-1); }
.tile__pot .mini-coin { width: 16px; height: 16px; }
.tile__pot small { color: var(--text-3); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: .64rem; }

.tile__hover {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 6, 30, .55), rgba(5, 6, 13, .82));
  opacity: 0; transition: opacity .25s;
}
.tile:hover .tile__hover, .tile:focus-within .tile__hover { opacity: 1; }
.play-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad-strike); color: #3c1e00;
  font-family: var(--font-body); font-weight: 900; text-transform: uppercase; letter-spacing: .8px;
  font-size: .92rem; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: 999px;
  transform: translateY(14px) scale(.94); transition: transform .28s cubic-bezier(.2, .9, .3, 1.3);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 140, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.tile:hover .play-btn, .tile:focus-within .play-btn { transform: translateY(0) scale(1); }
.play-btn svg { width: 16px; height: 16px; }
.play-btn::after {
  content: ''; position: absolute; inset: -10px; border-radius: 999px;
  border: 2px solid rgba(255, 200, 90, .6); opacity: 0;
}
.tile:hover .play-btn::after { animation: bonusHalo 1.6s ease-out infinite; }

/* featured tile */
.tile--featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 26px; padding: 7px; }
.tile--featured .tile__frame { border-radius: 20px; }
.tile--featured .tile__name { font-size: clamp(2rem, 3vw, 2.9rem); }
.tile--featured .tile__info { padding: 22px 26px 26px; }
.tile--featured .tile__ribbon {
  position: absolute; z-index: 6; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-hot); color: #fff;
  font-weight: 900; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(255, 45, 85, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.tile--featured .tile__ribbon svg { width: 15px; height: 15px; }
.tile--featured .tile__pot { font-size: 1.05rem; }
.tile--featured .tile__potbig {
  display: block; width: fit-content; margin-top: 8px;
  font-family: var(--font-display); font-size: 2.2rem; line-height: 1;
  background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.tile--featured .tile__cta { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
/* Featured is the main event — no permanent dark overlay (that made it look grayed out) */
.tile--featured .tile__hover { background: none; opacity: 0; pointer-events: none; }
.tile--featured .tile__hover .play-btn { display: none; }
.tile--featured .tile__art::after {
  background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 13, .35) 68%, rgba(5, 6, 13, .88));
}
.tile--featured .tile__frame {
  box-shadow: 0 0 0 1px rgba(255, 200, 90, .45), 0 18px 48px rgba(255, 140, 0, .28), inset 0 0 40px rgba(255, 180, 0, .08);
}
.tile--featured .tile__spark { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tile--featured .tile__spark i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #ffe9a8; box-shadow: 0 0 10px 2px rgba(255, 210, 120, .9);
  animation: sparkRise 5s linear infinite;
}
@keyframes sparkRise {
  0% { transform: translateY(30px) scale(.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-190px) scale(1.1); opacity: 0; }
}

/* ==========================================================================
   EVENT BANNERS
   ========================================================================== */
.event-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.event-card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 30px 32px;
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line-hot);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .25s;
}
.event-card:hover { transform: translateY(-5px); }
.event-card--storm {
  background:
    radial-gradient(ellipse 60% 80% at 88% 30%, rgba(255, 190, 70, .4), transparent 65%),
    radial-gradient(ellipse 70% 80% at 10% 90%, rgba(138, 77, 255, .5), transparent 70%),
    linear-gradient(150deg, #3a1a6e, #1a1038 60%, #0b0a1c);
}
.event-card--wheel {
  background:
    radial-gradient(ellipse 70% 70% at 80% 20%, rgba(53, 224, 255, .35), transparent 65%),
    linear-gradient(150deg, #0f2f52, #101a3a 60%, #0a0c1e);
}
.event-card__deco { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.event-card__deco svg { position: absolute; }
.event-card__deco .d1 { width: 132px; right: 26px; bottom: -18px; opacity: .95; animation: chipBob 6s ease-in-out infinite; }
.event-card__deco .d2 { width: 74px; right: 128px; top: 22px; opacity: .75; animation: chipBob 7.5s ease-in-out infinite reverse; }
.event-card__deco .d3 { width: 52px; right: 44px; top: 40%; opacity: .6; animation: chipBob 5s ease-in-out infinite; }
.event-card__deco .ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18);
  width: 320px; height: 320px; right: -80px; bottom: -120px;
  animation: slowSpin 26s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

.event-card__flag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: .68rem; letter-spacing: 2.2px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.event-card__title {
  position: relative; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: .95; margin-bottom: 10px; max-width: 20ch;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}
.event-card__title em { font-style: normal; background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent; }
.event-card__text { position: relative; color: #cfcbe8; font-size: .95rem; max-width: 34ch; margin-bottom: 18px; }
.event-card__foot { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.cdown { display: flex; gap: 7px; }
.cdown__seg {
  min-width: 50px; text-align: center;
  background: rgba(5, 6, 14, .66); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: 6px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.cdown__seg b { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cdown__seg small { font-size: .58rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); }

/* ==========================================================================
   REWARDS HUD
   ========================================================================== */
.hud-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 26px;
  border-radius: 24px; padding: 30px;
  background:
    radial-gradient(ellipse 70% 60% at 12% 0%, rgba(138, 77, 255, .32), transparent 65%),
    radial-gradient(ellipse 60% 70% at 95% 100%, rgba(255, 150, 0, .22), transparent 65%),
    linear-gradient(160deg, rgba(28, 31, 62, .96), rgba(11, 12, 26, .97));
  border: 1px solid var(--line-hot);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.hud-panel__col { position: relative; }
.hud-panel__label {
  display: flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: .72rem; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--volt-2); margin-bottom: 16px;
}
.hud-panel__label svg { width: 16px; height: 16px; }

/* streak calendar */
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.day-pip {
  position: relative; text-align: center; border-radius: 12px; padding: 11px 4px 9px;
  background: rgba(9, 10, 22, .8); border: 1px solid var(--line);
  font-weight: 800; font-size: .66rem; letter-spacing: .6px; color: var(--text-3);
}
.day-pip b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-2); line-height: 1.1; }
.day-pip.is-done { background: linear-gradient(165deg, rgba(58, 255, 192, .2), rgba(9, 10, 22, .8)); border-color: rgba(58, 255, 192, .5); color: var(--mint); }
.day-pip.is-done b { color: var(--mint); }
.day-pip.is-today {
  background: var(--grad-strike); border-color: transparent; color: #5a2c00;
  box-shadow: 0 8px 20px rgba(255, 150, 0, .45);
  animation: todayPop 2.4s ease-in-out infinite;
}
.day-pip.is-today b { color: #3c1e00; }
@keyframes todayPop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.day-pip__coin { position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; }

.claim-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-radius: 16px; padding: 14px 16px;
  background: rgba(9, 10, 22, .7); border: 1px dashed var(--line-hot);
}
.claim-row__coin { width: 44px; height: 44px; animation: coinTilt 3.6s ease-in-out infinite; }
.claim-row b { display: block; font-size: 1.05rem; }
.claim-row small { color: var(--text-3); font-size: .76rem; }

/* missions */
.mission-list { display: grid; gap: 12px; }
.mission {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  border-radius: 16px; padding: 13px 16px;
  background: linear-gradient(160deg, rgba(30, 33, 64, .9), rgba(13, 15, 32, .9));
  border: 1px solid var(--line);
  transition: transform .18s, border-color .18s;
}
.mission:hover { transform: translateX(4px); border-color: var(--line-hot); }
.mission__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(138, 77, 255, .18); }
.mission__icon svg { width: 22px; height: 22px; }
.mission__icon--gold { background: rgba(255, 180, 0, .16); }
.mission__icon--spark { background: rgba(53, 224, 255, .16); }
.mission__name { font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.mission__name small { display: block; color: var(--text-3); font-weight: 600; font-size: .76rem; }
.mission__reward {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 900; font-size: .86rem; color: var(--gold-1); white-space: nowrap;
}
.mission__reward .mini-coin { width: 18px; height: 18px; }

.meter { height: 9px; background: rgba(5, 6, 14, .9); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter__fill {
  height: 100%; border-radius: 999px; background: var(--grad-strike);
  box-shadow: 0 0 14px rgba(255, 170, 0, .55);
  width: 0; transition: width 1.2s cubic-bezier(.2, .7, .3, 1);
  position: relative; overflow: hidden;
}
.meter__fill::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 14px);
  animation: meterFlow 1.1s linear infinite;
}
@keyframes meterFlow { to { transform: translateX(14px); } }
.meter__fill--volt { background: var(--grad-volt); box-shadow: 0 0 14px rgba(138, 77, 255, .6); }
.meter__fill--spark { background: var(--grad-spark); box-shadow: 0 0 14px rgba(53, 224, 255, .55); }

/* ==========================================================================
   PERK STRIP
   ========================================================================== */
.perk-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perk {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 22px 20px 20px;
  background: linear-gradient(165deg, rgba(26, 29, 56, .8), rgba(10, 11, 24, .9));
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.perk:hover { transform: translateY(-4px); border-color: var(--line-hot); }
.perk::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--perk-glow, rgba(138, 77, 255, .3)), transparent 70%);
}
.perk__icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); margin-bottom: 14px; }
.perk__icon svg { width: 24px; height: 24px; }
.perk__title { position: relative; font-family: var(--font-display); font-size: 1.28rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.perk__text { position: relative; color: var(--text-2); font-size: .88rem; }
.perk--gold { --perk-glow: rgba(255, 180, 0, .3); }
.perk--spark { --perk-glow: rgba(53, 224, 255, .28); }
.perk--mint { --perk-glow: rgba(58, 255, 192, .24); }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 68px 26px 62px;
  background:
    radial-gradient(ellipse 55% 90% at 50% 118%, rgba(255, 140, 0, .5), transparent 68%),
    radial-gradient(ellipse 70% 70% at 50% -20%, rgba(138, 77, 255, .45), transparent 70%),
    linear-gradient(160deg, #201a48, #10112a 60%, #08091a);
  border: 1px solid rgba(255, 200, 90, .38);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.final-cta__coins { position: absolute; inset: 0; pointer-events: none; }
.final-cta__coins svg { position: absolute; width: 54px; filter: drop-shadow(0 8px 16px rgba(255, 140, 0, .5)); animation: chipBob 6s ease-in-out infinite; }
.final-cta__coins svg:nth-child(1) { left: 6%; top: 22%; width: 66px; animation-delay: -1s; }
.final-cta__coins svg:nth-child(2) { left: 15%; bottom: 14%; width: 42px; animation-delay: -2.4s; }
.final-cta__coins svg:nth-child(3) { right: 8%; top: 18%; width: 58px; animation-delay: -3.6s; }
.final-cta__coins svg:nth-child(4) { right: 17%; bottom: 12%; width: 38px; animation-delay: -4.8s; }
.final-cta__title {
  position: relative; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: .95; margin-bottom: 12px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
}
.final-cta__title em {
  font-style: normal; color: #ffb84a;
  background: var(--grad-strike); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-cta__sub { position: relative; z-index: 1; color: var(--text-2); margin-bottom: 28px; font-size: 1.05rem; }
.final-cta__fine { position: relative; z-index: 1; margin-top: 18px; font-size: .78rem; color: var(--text-3); }
.final-cta__title, .final-cta .btn { position: relative; z-index: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { margin-top: 40px; background: var(--ink-0); border-top: 1px solid var(--line); padding-bottom: 34px; }
.site-footer__strike { height: 3px; background: var(--grad-strike); opacity: .85; }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 0 22px; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; }
.site-footer__brand .brand__word { font-size: 1.3rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__links a { color: var(--text-2); font-size: .88rem; font-weight: 600; }
.site-footer__links a:hover { color: var(--gold-1); }
.site-footer__rg {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.age-badge {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2.5px solid var(--gold-2); color: var(--gold-1);
  font-weight: 800; font-size: 1rem; letter-spacing: .5px;
}
.site-footer__helpline { color: var(--text-2); font-size: .88rem; flex: 1 1 320px; }
.partner-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.partner-logo { height: 30px; width: auto; opacity: .85; transition: opacity .2s; background: #fff; border-radius: 5px; padding: 3px 7px; }
.partner-logo:hover { opacity: 1; }
.site-footer__disclaimer { color: var(--text-2); font-size: .84rem; padding: 18px 0 0; max-width: 900px; }
.site-footer__legal { color: var(--text-3); font-size: .78rem; padding-top: 14px; }

/* ==========================================================================
   AGE GATE / COOKIE BAR / MODAL / TOAST
   ========================================================================== */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse 60% 60% at 50% 20%, rgba(60, 30, 140, .55), rgba(5, 6, 12, .95));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
html.jps-locked .age-gate { display: flex; }
html.jps-locked body { overflow: hidden; }
.age-gate__card {
  max-width: 500px; width: 100%; text-align: center; position: relative;
  background: linear-gradient(170deg, #241f52, #12142a);
  border-radius: 24px; border: 1px solid rgba(255, 200, 90, .4);
  padding: 42px 36px 32px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 60px rgba(138, 77, 255, .35);
  animation: gateIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes gateIn { from { transform: scale(.9) translateY(16px); opacity: 0; } }
.age-gate__bolt { display: inline-block; width: 56px; height: 56px; margin-bottom: 10px; filter: drop-shadow(0 0 16px rgba(255, 180, 0, .7)); animation: boltHover 2.6s ease-in-out infinite; }
@keyframes boltHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.age-gate__bolt svg { width: 100%; height: 100%; }
.age-gate__kicker { font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: .74rem; color: var(--volt-2); }
.age-gate__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; line-height: 1; margin: 4px 0 14px; }
.age-gate__title em { font-style: normal; background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent; }
.age-gate__text { color: var(--text-2); font-size: .92rem; margin-bottom: 16px; }
.age-gate__question { font-weight: 800; font-size: 1.05rem; margin-bottom: 18px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.age-gate__fine { font-size: .76rem; color: var(--text-3); }

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(160deg, #232750, #14162f);
  border: 1px solid var(--line-hot); border-radius: 18px;
  padding: 16px 22px;
  animation: cookieIn .5s ease;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .6);
}
@keyframes cookieIn { from { transform: translateY(24px); opacity: 0; } }
.cookie-bar p { flex: 1 1 320px; font-size: .85rem; color: var(--text-2); }
.cookie-bar__actions { display: flex; gap: 10px; }

.modal { position: fixed; inset: 0; z-index: 180; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 12, .86); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.modal__card {
  position: relative; max-width: 460px; width: 100%;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: linear-gradient(170deg, #241f52, #12142a);
  border-radius: 24px; border: 1px solid rgba(255, 200, 90, .38);
  padding: 38px 32px 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(138, 77, 255, .3);
  animation: gateIn .4s cubic-bezier(.2, .9, .3, 1.15);
}
.modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0; color: var(--text-3);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: color .15s, transform .15s;
}
.modal__close:hover { color: #fff; transform: rotate(90deg); }

.signup-modal { text-align: center; }
.signup-modal__burst { width: 66px; height: 66px; margin: 0 auto 8px; animation: coinSpin 3.2s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(255, 180, 0, .6)); }
@keyframes coinSpin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.signup-modal__burst svg { width: 100%; height: 100%; }
.signup-modal__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.85rem; line-height: 1.05; margin-bottom: 6px; }
.signup-modal__title strong { background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signup-modal__sub { color: var(--text-2); font-size: .9rem; margin-bottom: 20px; }
.signup-modal__fine { font-size: .74rem; color: var(--text-3); margin-top: 14px; }

.field { display: block; text-align: left; margin-bottom: 13px; }
.field__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); margin-bottom: 5px; }
.field__label small { text-transform: none; letter-spacing: 0; color: var(--text-3); }
.field input {
  width: 100%; background: rgba(6, 7, 16, .85); color: var(--text-1);
  border: 1px solid var(--line-hot); border-radius: 11px;
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 180, 0, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .82rem; color: var(--text-2); margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold-2); flex-shrink: 0; }
.form-error { color: #ff7d7d; font-size: .84rem; font-weight: 600; margin: 4px 0 10px; }

textarea.input-area {
  width: 100%; min-height: 140px; resize: vertical;
  background: rgba(6, 7, 16, .85); color: var(--text-1);
  border: 1px solid var(--line-hot); border-radius: 11px;
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
}
textarea.input-area:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 180, 0, .2); }

.reward-toast {
  position: fixed; top: 92px; right: 20px; z-index: 190;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(160deg, #2b2b5c, #191a3a);
  border: 1px solid var(--gold-2); border-radius: 16px;
  padding: 14px 22px; font-weight: 700; font-size: .92rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .65), 0 0 26px rgba(255, 180, 0, .3);
  animation: toastIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes toastIn { from { transform: translateX(60px); opacity: 0; } }
.reward-toast__coin { width: 32px; height: 32px; animation: coinSpin 2.4s ease-in-out infinite; }
.reward-toast__coin svg { width: 100%; height: 100%; }
.reward-toast__msg strong { color: var(--gold-1); }

/* ==========================================================================
   GAME PAGE
   ========================================================================== */
.game-hero { padding: 30px 0 16px; }
.game-hero__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 700; font-size: .88rem; transition: color .15s, transform .15s; }
.back-link:hover { color: var(--gold-1); transform: translateX(-3px); }
.back-link svg { width: 15px; height: 15px; }
.game-hero__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; }
.game-hero__title em { font-style: normal; background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-hero__provider { color: var(--text-3); font-weight: 700; font-size: .82rem; letter-spacing: 1.6px; text-transform: uppercase; }

.game-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 22px; padding: 8px;
  background: linear-gradient(165deg, rgba(90, 78, 160, .8), rgba(20, 22, 46, .95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 50px rgba(138, 77, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.game-frame iframe { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 0; border-radius: 16px; background: var(--ink-0); }
.game-frame__loader {
  position: absolute; inset: 8px; display: grid; place-items: center; border-radius: 16px;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, #16183a, #07080f);
  z-index: 1; pointer-events: none; transition: opacity .5s;
}
.game-frame__loader.is-done { opacity: 0; }
.loader-bolt { width: 68px; height: 68px; animation: loaderPulse 1.1s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(255, 180, 0, .7)); }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.16); opacity: 1; } }
.loader-bolt svg { width: 100%; height: 100%; }

.game-about { padding: 26px 0 60px; }
.game-about__card {
  background: linear-gradient(160deg, rgba(26, 29, 56, .75), rgba(11, 12, 26, .85));
  border-radius: 20px; border: 1px solid var(--line); padding: 24px 28px;
  color: var(--text-2); font-size: .95rem; max-width: 780px;
}
.game-about__card strong { color: var(--text-1); }

/* ==========================================================================
   LEGAL / PROSE / CONTACT
   ========================================================================== */
.page-hero { padding: 54px 0 8px; }
.page-hero__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; }
.page-hero__title em { font-style: normal; background: var(--grad-strike); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__sub { color: var(--text-3); margin-top: 10px; font-size: .9rem; }

.prose { max-width: 820px; padding: 30px 0 70px; color: var(--text-2); }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .4px; color: var(--text-1); font-size: 1.55rem; margin: 34px 0 10px; }
.prose h3 { color: var(--text-1); font-size: 1.05rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose .callout {
  background: rgba(255, 180, 0, .08); border: 1px solid rgba(255, 180, 0, .4);
  border-radius: 16px; padding: 18px 22px; margin: 18px 0;
  color: var(--gold-1); font-weight: 600;
}
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .88rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); }
.prose th { color: var(--text-1); background: var(--ink-2); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 34px; padding: 34px 0 70px; align-items: start; }
.contact-card {
  background: linear-gradient(165deg, rgba(30, 33, 64, .95), rgba(13, 15, 32, .95));
  border-radius: 22px; border: 1px solid var(--line-hot);
  padding: 32px 30px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.contact-aside { color: var(--text-2); font-size: .94rem; display: grid; gap: 18px; }
.contact-aside__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-aside__item svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-aside__item strong { display: block; color: var(--text-1); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1360px) {
  .site-header__row { gap: 12px; }
  .main-nav__link { padding: 8px 11px; font-size: .82rem; }
  .level-pod__meta small { display: none; }
  .btn--login { padding: 9px 12px; }
  .btn--join { padding: 11px 15px; }
}
@media (max-width: 1180px) {
  .hero-stage__inner { grid-template-columns: 1fr; gap: 44px; }
  .cabinet { padding: 0 40px; max-width: 620px; margin: 0 auto; }
  .lobby { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--featured { grid-column: span 3; grid-row: span 1; aspect-ratio: 16 / 8; }
  .perk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-pod { display: none; } /* frees header space; still shown in mobile drawer */
}
@media (max-width: 940px) {
  .site-header__row { height: 60px; gap: 8px; max-width: 100%; }

  /* Persist CTAs stay in the bar; nav/HUD drop into the drawer */
  .nav-burger { display: flex; margin-left: 0; flex-shrink: 0; }
  .hdr-persist { margin-left: auto; gap: 5px; }
  .hdr-persist .bonus-btn__label { display: none; }
  .hdr-persist .bonus-btn { padding: 8px 10px; }
  .hdr-persist .btn--join,
  .hdr-persist .btn--login { padding: 8px 10px; font-size: .78rem; }

  .hdr-collapse {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 16px 18px 20px;
    background: linear-gradient(180deg, rgba(15, 16, 32, .99), rgba(9, 10, 20, .98));
    border-bottom: 1px solid var(--line-hot);
    box-shadow: 0 34px 60px rgba(0, 0, 0, .65);
    max-height: calc(100vh - 60px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .hdr-collapse.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

  .main-nav {
    flex-direction: column; gap: 6px; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
  }
  .main-nav__link {
    padding: 12px 15px; font-size: .98rem; border-radius: 12px;
    background: rgba(18, 20, 42, .65); border: 1px solid var(--line);
  }
  .main-nav__link svg { width: 17px; height: 17px; }

  .header-hud { margin: 0; flex-wrap: wrap; gap: 10px; }
  .level-pod { display: flex; width: 100%; justify-content: flex-start; }
  .coin-chip { flex: 1 1 100%; justify-content: center; }
  .hdr-menu-auth {
    display: flex; flex-wrap: wrap; gap: 10px; width: 100%;
  }
  .hdr-menu-auth .bonus-btn,
  .hdr-menu-auth .btn--login,
  .hdr-menu-auth .btn--join { flex: 1 1 45%; justify-content: center; padding: 13px 16px; }

  .pot-rail { grid-template-columns: 1fr; margin-top: 0; }
  .hud-panel { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lobby { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile--featured { grid-column: span 2; aspect-ratio: 4 / 3; }
  .perk-strip { grid-template-columns: 1fr; }
  .cabinet { padding: 0 18px; }
  .float-chip--a { left: -10px; top: -14px; }
  .float-chip--b { right: -12px; }
  .float-chip--c { display: none; }
  .streak { grid-template-columns: repeat(4, 1fr); }
  .game-frame { aspect-ratio: 4 / 5; }
  .btn--xl { padding: 17px 32px; font-size: 1.08rem; }
  .hud-panel { padding: 20px; }
  .mission { grid-template-columns: 44px minmax(0, 1fr); }
  .mission__reward { grid-column: 2; justify-self: start; }
}

/* Small phones — the header's min-content width must stay under ~360px,
   otherwise mobile browsers widen the layout viewport and zoom the page out. */
@media (max-width: 640px) {
  .site-header__row { gap: 8px; height: 58px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__bolt { width: 30px; height: 30px; flex-shrink: 0; }
  .brand__word { font-size: 1.2rem; }
  .hdr-persist #loginBtn { display: none; }
  .hdr-persist #logoutBtn:not([hidden]) { display: inline-flex; }
  .hdr-collapse { max-height: calc(100vh - 58px); }

  .hero-stage { padding: 42px 0 30px; }
  .hero-stage__inner > div:first-child { position: relative; z-index: 2; }
  .hero__title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero__title .row-a {
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .75), 0 0 24px rgba(138, 77, 255, .55);
  }
  /* Solid gold on small screens — gradient clip-text often renders invisible on mobile Safari/Chrome */
  .hero__title .row-b {
    background: none;
    -webkit-background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: #ffb84a;
    color: #ffb84a;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .7), 0 0 18px rgba(255, 160, 0, .55);
    animation: none;
  }
  .hero__sub { color: #eceaf8; font-size: 1.02rem; }
  .hero__sub strong { color: #ffd06a; }

  .sect-head__title .ghost { display: none; }
  .hud-tabs { width: 100%; }
  .chip { flex: 1 1 auto; justify-content: center; padding: 8px 12px; font-size: .78rem; }

  .cabinet { padding: 0 10px; }
  .float-chip { padding: 8px 11px; }
  .float-chip--a { left: 0; top: -18px; }
  .float-chip--b { right: 0; bottom: 10%; }

  .pot-card__value { font-size: 1.7rem; }
  .event-card { padding: 24px 20px; min-height: 0; }
  .cdown__seg { min-width: 44px; }
  .final-cta { padding: 48px 18px 46px; }
  .final-cta__coins { opacity: .35; }
  .final-cta__coins svg:nth-child(1),
  .final-cta__coins svg:nth-child(3) { display: none; }
  .final-cta__title {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }
  .final-cta__title em {
    background: none;
    -webkit-background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: #ffb84a;
    color: #ffb84a;
  }
  .final-cta__sub { color: #e6e4f4; }

  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .reward-toast { left: 12px; right: 12px; top: 70px; justify-content: flex-start; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .ticker__track, .reel__strip { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- auth modal: tabs, OTP step, login ---------- */
.auth-tabs {
  display: flex; gap: 6px; justify-content: center;
  margin: 2px 0 18px;
  padding: 5px; background: var(--ink-1);
  border: 1px solid var(--line); border-radius: 999px;
}
.auth-tab {
  flex: 1; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2);
  font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
  transition: background .18s, color .18s;
}
.auth-tab:hover { color: #fff; }
.auth-tab.is-on { background: var(--grad-strike); color: #3c1e00; }

.auth-panel[hidden] { display: none; }

.auth-alt { font-size: .82rem; color: var(--text-3); margin-top: 12px; text-align: center; }
.auth-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--gold-2);
  text-decoration: underline; text-underline-offset: 2px;
}
.auth-link:hover { color: var(--gold-1); }
.auth-link:disabled { color: var(--text-3); cursor: default; text-decoration: none; }

.otp-input {
  text-align: center; font-size: 1.6rem !important; font-weight: 800;
  letter-spacing: 10px; font-variant-numeric: tabular-nums;
}
.otp-hint {
  font-size: .82rem; font-weight: 700; color: var(--spark);
  background: rgba(53, 224, 255, .08); border: 1px dashed rgba(53, 224, 255, .45);
  border-radius: 9px; padding: 8px 12px; margin: 4px 0 10px;
}

.btn--login {
  background: transparent; color: var(--text-2);
  box-shadow: inset 0 0 0 1.5px var(--line-hot);
  padding: 9px 16px; font-size: .85rem;
}
.btn--login:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--volt-2); }
