/* =====================================================================
   MAGIC PLAY — "Arcade Candy" design system
   Navy + gold brand anchor, candy multicolor pops, playful chunky depth.
   Fonts: Fredoka (display) + Hanken Grotesk (body)
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* brand anchor (from logo) */
  --navy:        #0b1a2f;
  --navy-800:    #102339;
  --navy-700:    #16304d;
  --navy-600:    #1d3e63;

  /* candy pops (from the games) */
  --gold:        #ffc328;
  --gold-600:    #f4a81b;
  --gold-300:    #ffe08a;
  --pink:        #ff3d97;
  --pink-600:    #e21f7c;
  --cyan:        #1fbfe6;
  --coral:       #ff6a3d;
  --lime:        #38d06b;
  --violet:      #7c5cff;

  /* paper / neutrals */
  --paper:       #fff7ee;
  --paper-2:     #fff0e0;
  --cream-card:  #fffdfa;
  --ink:         #14233a;
  --muted:       #5d6c7e;
  --line:        #1223390f;

  /* semantic */
  --bg:          var(--paper);
  --fg:          var(--ink);

  /* type */
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  /* shape */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --r-pill: 999px;

  /* playful solid shadows */
  --shadow-pop:  0 14px 0 -2px rgba(11,26,47,.14), 0 26px 40px -18px rgba(11,26,47,.45);
  --shadow-card: 0 18px 40px -22px rgba(11,26,47,.55);
  --ring: 0 0 0 3px rgba(255,195,40,.55);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* warm atmospheric backdrop + grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 0%, #ffe6bd66 0%, transparent 60%),
    radial-gradient(50% 45% at 92% 8%, #ffd1e866 0%, transparent 60%),
    radial-gradient(55% 50% at 70% 100%, #cdeffb66 0%, transparent 60%),
    var(--paper);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* --------------------------- Typography --------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; color: var(--ink); }
.h-eyebrow {
  font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5em;
  color: #c2185b;
}
.h-eyebrow::before { content: "✦"; color: var(--gold-600); }
.display-1 { font-size: clamp(2.9rem, 8.5vw, 6.6rem); font-weight: 700; }
.display-2 { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.32rem); color: var(--muted); }

.text-grad {
  background: linear-gradient(100deg, var(--coral), var(--pink) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gold {
  background: linear-gradient(180deg, #fff0c2, var(--gold) 45%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------- Layout ------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }

/* --------------------------- Buttons ------------------------------ */
.btn {
  --bg2: var(--ink); --fg2: #fff; --edge: rgba(11,26,47,.9);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  padding: .92em 1.5em; border-radius: var(--r-pill);
  background: var(--bg2); color: var(--fg2);
  box-shadow: 0 6px 0 0 var(--edge), 0 18px 28px -14px rgba(11,26,47,.6);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 8px 0 0 var(--edge), 0 24px 34px -14px rgba(11,26,47,.6); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 0 var(--edge), 0 10px 16px -12px rgba(11,26,47,.6); }
.btn-gold { --bg2: linear-gradient(180deg, var(--gold-300), var(--gold)); --fg2: #4a2c00; --edge: var(--gold-600); }
.btn-pink { --bg2: linear-gradient(180deg, #ff7ab8, var(--pink)); --fg2: #fff; --edge: var(--pink-600); }
.btn-ghost { --bg2: transparent; --fg2: var(--ink); --edge: transparent; box-shadow: inset 0 0 0 2.5px rgba(20,35,58,.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2.5px rgba(20,35,58,.4); transform: translateY(-2px); }
.btn-lg { font-size: 1.12rem; padding: 1.05em 1.8em; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* App Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: .7em;
  background: #000; color: #fff; border-radius: 16px;
  padding: .7em 1.2em .7em 1em; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 14px 26px -16px rgba(0,0,0,.8);
}
.store-badge:hover { transform: translateY(-3px) scale(1.02); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge .lbl small { font-size: .62rem; opacity: .85; letter-spacing: .02em; }
.store-badge .lbl b { font-family: var(--display); font-weight: 600; font-size: 1.18rem; }

/* chips / pills */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .9rem;
  padding: .5em .95em; border-radius: var(--r-pill);
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(11,26,47,.5), inset 0 0 0 1.5px #1223391a;
}
.chip .dot { width: .55em; height: .55em; border-radius: 50%; background: var(--lime); }

/* badge sticker */
.sticker {
  font-family: var(--display); font-weight: 600;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45em .85em; border-radius: 12px;
  background: var(--gold); color: #4a2c00;
  box-shadow: 0 8px 0 -2px var(--gold-600), 0 16px 24px -14px rgba(0,0,0,.4);
  transform: rotate(-4deg);
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
  padding: 18px 0;
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,251,244,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1.5px solid #1223391a;
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 20px;
  box-shadow: 0 18px 40px -26px rgba(11,26,47,.5);
  transition: box-shadow .25s ease;
}
.nav.scrolled { padding: 10px 0; }
.nav.scrolled .nav-inner { box-shadow: 0 16px 36px -22px rgba(11,26,47,.7); background: rgba(255,251,244,.9); }
.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-logo img { height: 50px; width: auto; }
.nav.scrolled .nav-logo img { height: 44px; transition: height .25s ease; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: .55em .9em; border-radius: var(--r-pill); transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: #1223390d; }
.nav-links a.active { color: var(--pink-600); }
.nav-cta { flex: none; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; align-items: center; justify-content: center; flex: none; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 2.5px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s ease, opacity .2s ease;
}
.nav-burger span::before { position: absolute; top: -6px; } .nav-burger span::after { position: absolute; top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; gap: 6px;
  background: var(--navy); color: #fff; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 600; padding: .25em; color: #fff; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 18px; }

/* floating coin decorations (shared) */
.coin {
  position: absolute; border-radius: 50%; aspect-ratio: 1;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27g%27%20cx%3D%2738%25%27%20cy%3D%2730%25%27%20r%3D%2775%25%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23fff7da%27%2F%3E%3Cstop%20offset%3D%27.45%27%20stop-color%3D%27%23ffce47%27%2F%3E%3Cstop%20offset%3D%27.82%27%20stop-color%3D%27%23f0a516%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23c2790a%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2732%27%20cy%3D%2732%27%20r%3D%2730%27%20fill%3D%27url%28%23g%29%27%20stroke%3D%27%23a86b08%27%20stroke-width%3D%272.5%27%2F%3E%3Ccircle%20cx%3D%2732%27%20cy%3D%2732%27%20r%3D%2724.5%27%20fill%3D%27none%27%20stroke%3D%27%23fff3c4%27%20stroke-width%3D%272%27%20opacity%3D%27.55%27%2F%3E%3Ctext%20x%3D%2732%27%20y%3D%2731.4%27%20text-anchor%3D%27middle%27%20dominant-baseline%3D%27central%27%20font-family%3D%27Arial%2CHelvetica%2Csans-serif%27%20font-weight%3D%27bold%27%20font-size%3D%2737%27%20fill%3D%27%23fff3c4%27%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%2732%27%20y%3D%2732.8%27%20text-anchor%3D%27middle%27%20dominant-baseline%3D%27central%27%20font-family%3D%27Arial%2CHelvetica%2Csans-serif%27%20font-weight%3D%27bold%27%20font-size%3D%2737%27%20fill%3D%27%23945f06%27%3E%24%3C%2Ftext%3E%3C%2Fsvg%3E");
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.30)); pointer-events: none;
}
.coin.c-sm { width: 34px; } .coin.c-md { width: 56px; } .coin.c-lg { width: 86px; }

/* ============================ HERO ============================ */
.hero { position: relative; padding-top: clamp(140px, 17vh, 200px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .line { display: block; }
.hero h1 .outline {
  -webkit-text-stroke: 2.5px var(--ink); color: var(--paper);
  text-shadow: 6px 6px 0 var(--gold);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.stars { color: var(--gold-600); letter-spacing: 2px; }
.hero-trust b { color: var(--ink); }

/* hero visual stage */
.hero-stage { position: relative; min-height: 440px; }
.blob {
  position: absolute; inset: 6% 2% 2% 6%; border-radius: 47% 53% 60% 40% / 52% 44% 56% 48%;
  background: conic-gradient(from 120deg, var(--cyan), var(--violet), var(--pink), var(--coral), var(--gold), var(--cyan));
  filter: blur(2px); opacity: .92; box-shadow: 0 40px 80px -30px rgba(124,92,255,.6);
  animation: blob 14s ease-in-out infinite;
}
.hero-cards { position: absolute; inset: 0; z-index: 2; }
.float-card {
  position: absolute; width: 46%; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 4px #fff; background: #fff;
}
.float-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.float-card.fc1 { top: 0%; left: 0%; width: 46%; transform: rotate(-7deg); animation: floaty 6s ease-in-out infinite; }
.float-card.fc2 { top: 11%; right: 0%; width: 44%; transform: rotate(6deg); animation: floaty 7s ease-in-out infinite .6s; }
.float-card.fc3 { top: 38%; left: 0%; width: 41%; transform: rotate(-3deg); animation: floaty 6.5s ease-in-out infinite 1.1s; }
.hero-char {
  position: absolute; z-index: 3; bottom: -4%; right: -6%; width: 52%;
  filter: drop-shadow(0 24px 30px rgba(11,26,47,.4)); animation: floaty 8s ease-in-out infinite;
}
.hero .coin { z-index: 4; }
.hero .coin.h1c { top: 6%; right: 18%; animation: floaty 5s ease-in-out infinite; }
.hero .coin.h2c { bottom: 16%; left: -2%; animation: floaty 6.5s ease-in-out infinite .4s; }
.hero .coin.h3c { top: 44%; right: -3%; animation: floaty 5.6s ease-in-out infinite 1s; }

/* ===================== MARQUEE ===================== */
.marquee { background: var(--ink); color: #fff; padding: 16px 0; overflow: hidden; transform: rotate(-1.4deg) scale(1.04); margin-block: 10px; box-shadow: 0 20px 40px -24px rgba(11,26,47,.7); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; padding: 0 1.1rem; display: inline-flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.marquee-track span::after { content: "★"; color: var(--gold); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===================== STATS ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--cream-card); border-radius: var(--r-lg); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-pop); position: relative; overflow: hidden;
  border: 2px solid #fff;
}
.stat::before { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--coral), var(--pink), var(--violet)); }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; color: var(--ink); }
.stat .num .text-gold, .stat .num.gold { background: linear-gradient(180deg,#f7b500,#e08800); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ===================== PUSH PARTY (dark band) ===================== */
.spotlight { background: radial-gradient(120% 90% at 80% 0%, #1d2c52 0%, var(--navy) 55%); color: #fff; position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(40% 40% at 18% 30%, rgba(255,195,40,.22), transparent 70%),
  radial-gradient(40% 50% at 85% 70%, rgba(255,61,151,.20), transparent 70%); }
.spotlight h2, .spotlight h3 { color: #fff; }
.spotlight .lead { color: #cdd8ea; }
.spot-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 2; }
.spot-copy .h-eyebrow { color: var(--gold-300); }
.spot-rating { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.spot-rating .big { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.spot-rating .stars { font-size: 1.1rem; }
.spot-rating small { color: #aab8cf; display: block; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.feature-chips .fchip { background: #ffffff14; border: 1.5px solid #ffffff26; color: #eaf0fb; padding: .5em .9em; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .5em; }
.feature-chips .fchip b { color: var(--gold); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.age-note { display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; color: #aab8cf; margin-top: 18px; }
.age-note .pg { background: var(--coral); color: #fff; font-family: var(--display); font-weight: 600; font-size: .72rem; padding: .25em .55em; border-radius: 7px; }
.age-note a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

/* phone + coin pusher scene (pure CSS) */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 78%); aspect-ratio: 300/620;
  background: #0a1422; border-radius: 46px; padding: 12px;
  box-shadow: 0 0 0 3px #2c3c5c, 0 50px 80px -30px #000, inset 0 0 0 2px #00000080;
  z-index: 2;
}
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 38%; height: 22px; background: #0a1422; border-radius: 0 0 16px 16px; z-index: 5; box-shadow: 0 0 0 2px #2c3c5c; }
.screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: linear-gradient(180deg, #3a1d63 0%, #5b2a8a 45%, #2a1450 100%); }
.screen-glow { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 18%, rgba(255,210,90,.55), transparent 60%); }
.machine { position: absolute; left: 8%; right: 8%; top: 16%; bottom: 18%; border-radius: 22px;
  background: linear-gradient(180deg, #ffe7a3, #f3b13b 60%, #c5810f);
  box-shadow: inset 0 0 0 5px #fff4cf, inset 0 -14px 24px #00000055, 0 18px 30px -10px #000a; overflow: hidden; }
.machine .shelf { position: absolute; left: 6%; right: 6%; height: 14px; background: linear-gradient(#fff7df,#e0a838); border-radius: 8px; box-shadow: 0 6px 10px #0006; }
.machine .shelf.s1 { top: 38%; } .machine .shelf.s2 { top: 64%; }
.pcoin { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d2, #ffc328 45%, #d98b0c 80%); box-shadow: inset 0 -3px 4px #00000055, inset 0 2px 3px #fff8; }
.jackpot { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 700; color: #fff; text-shadow: 0 2px 0 #c5810f, 0 0 18px #ffd86a; font-size: 1.1rem; letter-spacing: .04em; z-index: 4; }
.cash-pop { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); background: #1bbf5e; color: #fff; font-family: var(--display); font-weight: 700; padding: .4em 1em; border-radius: 999px; box-shadow: 0 10px 20px -8px #0009, inset 0 0 0 2px #fff3; z-index: 4; }
.phone .float-coin { position: absolute; z-index: 3; }
.screen-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-behind { position: absolute; width: 44%; border-radius: 28px; box-shadow: 0 34px 64px -24px #000, 0 0 0 3px #ffffff1a; z-index: 1; }
.sb-left { left: -3%; top: 15%; transform: rotate(-9deg); }
.sb-right { right: -3%; top: 9%; transform: rotate(9deg); }
@media (max-width: 560px) { .shot-behind { display: none; } }

/* ===================== GAMES GRID ===================== */
.games-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.game-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-card);
  box-shadow: var(--shadow-pop); border: 3px solid #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  grid-column: span 4; transform-style: preserve-3d; will-change: transform;
}
.game-card .thumb { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .thumb img { transform: scale(1.07); }
.game-card .meta { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-card .meta h3 { font-size: 1.18rem; }
.game-card .meta .tag { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.game-card .play { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s ease, background .2s ease; }
.game-card:hover .play { background: var(--pink); transform: scale(1.1) rotate(8deg); }
.game-card .ribbon { position: absolute; top: 14px; left: 14px; z-index: 3; }
.game-card.feature { grid-column: span 6; }
.game-card.feature .thumb { aspect-ratio: 16/9; }

/* ===================== VALUES ===================== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* company / about */
.company-about { max-width: 900px; margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.company-about .h-eyebrow { justify-content: center; display: inline-flex; }
.company-about h2 { margin-top: 12px; }
.company-about .lead { margin: 18px auto 0; max-width: 64ch; }
.company-about .lead strong { color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 38px; text-align: left; }
.fact { background: var(--cream-card); border-radius: var(--r-md); padding: 20px 18px; box-shadow: var(--shadow-pop); border: 2px solid #fff; position: relative; overflow: hidden; }
.fact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold), var(--coral)); }
.fact .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--pink-600); }
.fact .v { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 6px; color: var(--ink); line-height: 1.15; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; } }

/* careers: perks / roles / steps */
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; background: var(--cream-card); border: 2px solid #fff; border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-pop); }
.perk .pi { width: 38px; height: 38px; flex: none; border-radius: 11px; background: #fff0d6; display: grid; place-items: center; color: var(--gold-600); }
.perk .pi svg { width: 21px; height: 21px; }
.perk b { font-family: var(--display); font-weight: 600; display: block; color: var(--ink); }
.perk span { color: var(--muted); font-size: .92rem; }

.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.role { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--cream-card); border: 2px solid #fff; border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow-pop); transition: transform .18s ease, box-shadow .18s ease; }
.role:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -20px rgba(11,26,47,.6); }
.role .rt h3 { font-size: 1.18rem; color: var(--ink); } .role .rt p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.role .rapply { font-family: var(--display); font-weight: 600; color: var(--pink-600); white-space: nowrap; transition: color .2s ease, transform .2s ease; }
.role:hover .rapply { color: var(--coral); transform: translateX(3px); }
.role-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.role-filter .rf { font-family: var(--display); font-weight: 600; font-size: .92rem; color: #cdd8ea; background: #ffffff12; border: 1.5px solid #ffffff2b; padding: .5em 1.05em; border-radius: var(--r-pill); transition: background .18s ease, color .18s ease, border-color .18s ease; }
.role-filter .rf:hover { background: #ffffff22; color: #fff; }
.role-filter .rf.active { background: var(--gold); color: #4a2c00; border-color: var(--gold); }
.role .rmeta { display: flex; gap: 9px; align-items: center; margin-bottom: 9px; flex-wrap: wrap; }
.rdept { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .32em .62em; border-radius: 7px; background: #eef1f5; color: var(--ink); }
.rdept.eng { background: #d7f0f9; color: #0a6680; } .rdept.design { background: #ece6ff; color: #5634c4; }
.rdept.art { background: #ffe1ee; color: #b4145a; } .rdept.mkt { background: #ffe6da; color: #bf3d0a; }
.rdept.data { background: #ddf6e6; color: #1c8040; } .rdept.product { background: #ffedcd; color: #9a6c08; }
.rdept.finance { background: #dcefe8; color: #0c7a5d; }
.rloc { font-size: .8rem; color: var(--muted); }
.role-empty { grid-column: 1 / -1; text-align: center; color: #cdd8ea; padding: 18px; }
.role-empty a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--cream-card); border: 2px solid #fff; border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-pop); }
.step .n { font-family: var(--display); font-weight: 700; font-size: 1.5rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #4a2c00; background: linear-gradient(180deg, var(--gold-300), var(--gold)); box-shadow: 0 8px 0 -2px var(--gold-600); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; } .step p { color: var(--muted); font-size: .94rem; }

@media (max-width: 860px) { .perk-grid { grid-template-columns: 1fr 1fr; } .role-grid { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .perk-grid { grid-template-columns: 1fr; } }
.value {
  background: var(--cream-card); border-radius: var(--r-lg); padding: 30px 24px 28px; position: relative;
  box-shadow: var(--shadow-pop); border: 2px solid #fff; overflow: hidden;
  transition: transform .2s ease;
}
.value:hover { transform: translateY(-6px); }
.value .emoji { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 18px; box-shadow: 0 10px 0 -3px #0001; }
.value:nth-child(1) .emoji { background: #ffe2ec; } .value:nth-child(2) .emoji { background: #e2f6ff; }
.value:nth-child(3) .emoji { background: #e6ffe9; } .value:nth-child(4) .emoji { background: #fff0d6; }
.value .emoji svg { width: 34px; height: 34px; }
.value h3 { font-size: 1.28rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .96rem; }
.value::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--gold-300), transparent 70%); opacity: .5; }

/* ===================== MISSION BAND ===================== */
.mission { position: relative; }
.mission-card {
  background: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--coral));
  color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px);
  position: relative; overflow: hidden; box-shadow: 0 40px 70px -34px rgba(124,92,255,.7);
}
.mission-card::before { content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none; background:
  radial-gradient(30% 40% at 10% 20%, #fff, transparent 60%),
  radial-gradient(26% 36% at 90% 80%, var(--gold), transparent 60%); }
.mission-card > * { position: relative; z-index: 1; }
.mission-card h2 { color: #fff; max-width: 16ch; }
.mission-card .lead { color: #ffffffe6; max-width: 48ch; margin-top: 16px; }
.mission-card .btn { margin-top: 30px; }
.mission-card .big-emoji { position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(-12deg); width: clamp(90px, 15vw, 200px); opacity: .3; color: #fff; pointer-events: none; z-index: 0; }
.mission-card .big-emoji svg { width: 100%; height: auto; display: block; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 18px; margin-top: 26px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.info-item .ic svg { width: 23px; height: 23px; }
.info-item .it h3 { font-size: 1.05rem; } .info-item .it a, .info-item .it p { color: var(--muted); }
.info-item .it a:hover { color: var(--pink-600); }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-pop); transition: transform .18s ease, background .2s ease, color .2s ease; }
.socials a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--ink); color: #fff; }
.socials a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.socials svg { width: 20px; height: 20px; }

.form-card { background: var(--cream-card); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-card); border: 2px solid #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .9em 1.1em; border-radius: 16px;
  background: #fff; border: 2px solid #1223391f; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy); color: #cdd8ea; position: relative; overflow: hidden; padding-top: clamp(56px, 7vw, 90px); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--lime), var(--cyan), var(--pink)); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px 28px; padding-bottom: 50px; }
.footer-brand img { height: 62px; margin-bottom: 16px; }
.footer-brand p { color: #95a6c2; font-size: .94rem; max-width: 30ch; }
.footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; padding: 5px 0; color: #aebbd2; font-size: .95rem; }
.footer .socials a { background: #ffffff12; color: #fff; box-shadow: none; }
.footer .socials a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid #ffffff14; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .86rem; color: #8295b3; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===================== ARTICLE / LEGAL PAGES ===================== */
.page-hero { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(30px, 5vw, 56px); text-align: center; position: relative; }
.page-hero .h-eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 14px; }
.page-hero .lead { margin: 18px auto 0; max-width: 60ch; }
.article { max-width: 820px; margin-inline: auto; padding-bottom: clamp(60px, 9vw, 120px); }
.article-card { background: var(--cream-card); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 60px); box-shadow: var(--shadow-card); border: 2px solid #fff; }
.article-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 36px 0 14px; }
.article-card h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 28px 0 12px; color: var(--pink-600); }
.article-card h2:first-child, .article-card h3:first-child { margin-top: 0; }
.article-card p { margin-bottom: 16px; color: #364356; }
.article-card ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
.article-card ul li { position: relative; padding-left: 28px; color: #364356; }
.article-card ul li::before { content: "◆"; position: absolute; left: 4px; top: 1px; color: var(--gold-600); font-size: .8em; }
.article-card a { color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
.article-card strong { color: var(--ink); }
.toc { background: #fff; border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 28px; box-shadow: var(--shadow-pop); border: 2px solid #fff; }
.toc b { font-family: var(--display); display: block; margin-bottom: 8px; }
.toc a { color: var(--muted); display: inline-block; padding: 3px 0; margin-right: 14px; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ===================== KEYFRAMES ===================== */
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-16px) rotate(var(--rot,0deg)); } }
@keyframes blob { 0%,100% { border-radius: 47% 53% 60% 40% / 52% 44% 56% 48%; } 50% { border-radius: 60% 40% 44% 56% / 44% 56% 44% 56%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateY(var(--ty,0)); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }

/* floaty rotations applied inline via --rot */
.float-card.fc1 { --rot: -7deg; } .float-card.fc2 { --rot: 6deg; } .float-card.fc3 { --rot: -3deg; }

.jackpot { animation: pulse 2.4s ease-in-out infinite; }
.cash-pop { animation: pulse 2.4s ease-in-out infinite .8s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 380px; order: -1; }
  .spot-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 6px; }
  .shot-behind, .phone-wrap > .coin { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .game-card, .game-card.feature { grid-column: span 6; }
}
@media (max-width: 1000px) {
  .nav-links, .nav .nav-cta.desktop { display: none; }
  .nav-burger { display: grid; }
  .nav-logo { margin-right: auto; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-card, .game-card.feature { grid-column: span 12; }
  .hero h1 .outline { text-shadow: 4px 4px 0 var(--gold); }
}

/* games catalogue (Explore) */
.games-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gcard { display: flex; gap: 16px; align-items: center; background: var(--cream-card); border: 2px solid #fff; border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-pop); position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -22px rgba(11,26,47,.6); }
.gcard.flag { box-shadow: 0 0 0 2.5px var(--gold), var(--shadow-pop); }
.gflag-tag { position: absolute; top: -11px; left: 18px; background: var(--gold); color: #4a2c00; font-family: var(--display); font-weight: 700; font-size: .68rem; padding: .28em .65em; border-radius: 9px; box-shadow: 0 5px 0 -2px var(--gold-600); }
.gicon { width: 80px; height: 80px; border-radius: 19px; flex: none; object-fit: cover; box-shadow: 0 8px 18px -8px rgba(11,26,47,.55); }
.gbody { min-width: 0; }
.gbody h3 { font-size: 1.22rem; line-height: 1.08; }
.ggenre { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; margin: 4px 0 11px; }
.gstores { display: flex; gap: 8px; flex-wrap: wrap; }
.gstore { display: inline-flex; align-items: center; gap: .45em; font-family: var(--display); font-weight: 600; font-size: .8rem; padding: .45em .8em; border-radius: 11px; background: var(--ink); color: #fff; transition: transform .15s ease, filter .15s ease; }
.gstore:hover { transform: translateY(-2px); filter: brightness(1.18); }
.gstore .si { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 720px) { .games-cat { grid-template-columns: 1fr; } }

/* hero flagship app card */
.float-card.fc4 { width: 51%; bottom: 1%; left: 16%; z-index: 6; --rot: 3deg; padding: 0; overflow: hidden; background: #fff; animation: floaty 6.8s ease-in-out infinite .3s; }
.float-card.fc4 .pp-feat { position: relative; aspect-ratio: 3 / 2; }
.float-card.fc4 .pp-feat > img { width: 100%; height: 100%; object-fit: cover; }
.float-card.fc4 .pp-cap { position: absolute; inset: auto 0 0 0; padding: 18px 12px 10px; background: linear-gradient(to top, rgba(10,6,28,.96), rgba(10,6,28,0)); display: flex; flex-direction: column; gap: 1px; }
.float-card.fc4 .pp-cap b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1; }
.float-card.fc4 .pp-cap span { font-size: .72rem; color: var(--gold-300); font-weight: 700; }
.float-card.fc4 .pp-tag { position: absolute; top: 9px; left: 9px; z-index: 3; background: var(--gold); color: #4a2c00; font-family: var(--display); font-weight: 700; font-size: .72rem; padding: .24em .55em; border-radius: 9px; box-shadow: 0 5px 0 -2px var(--gold-600); }

/* technology / built for scale */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card { background: var(--cream-card); border: 2px solid #fff; border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-pop); }
.tech-card .ti { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.tech-card .ti svg { width: 28px; height: 28px; }
.tech-card:nth-child(1) .ti { background: #e2f1fb; color: #1672b8; }
.tech-card:nth-child(2) .ti { background: #fff0d6; color: #c98a0a; }
.tech-card:nth-child(3) .ti { background: #e6ffe9; color: #1f9a48; }
.tech-card:nth-child(4) .ti { background: #efe9ff; color: #6a4ad0; }
.tech-card:nth-child(5) .ti { background: #ffe6f1; color: #c2185b; }
.tech-card:nth-child(6) .ti { background: #e2f1fb; color: #1672b8; }
.tech-card h3 { font-size: 1.2rem; margin-bottom: 7px; }
.tech-card p { color: var(--muted); font-size: .95rem; }
.spotlight .tech-card h3 { color: var(--ink); }
.spotlight .tech-card p { color: var(--muted); }
@media (max-width: 860px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
