/* =========================================================================
   CRAFTYGEM — Shared design system  ·  Theme: "Sunset Arcade"
   Plain CSS, no build step. Linked by every page.
   ========================================================================= */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ----- Design tokens ----- */
:root {
  /* surfaces */
  --bg:          #120a1a;
  --bg-2:        #1c0f2b;
  --surface:     #1b1226;
  --surface-2:   #241733;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 145, 176, .28);

  /* ink */
  --ink:        #fdeef0;
  --muted:      #b6a4c4;
  --muted-2:    #8f7da0;

  /* brand accents */
  --coral:   #ff7a59;
  --pink:    #ff3d7f;
  --amber:   #ffb37a;
  --grad:    linear-gradient(95deg, #ffb37a 0%, #ff7a59 38%, #ff3d7f 100%);
  --grad-soft: linear-gradient(95deg, rgba(255,122,89,.18), rgba(255,61,127,.18));
  --glow:    rgba(255, 80, 130, .45);

  /* type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* metrics */
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric page background: deep plum wash + drifting warm glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 85% -5%,  rgba(255, 122, 89, .16), transparent 60%),
    radial-gradient(55% 45% at 10% 8%,   rgba(255, 61, 127, .14), transparent 55%),
    linear-gradient(180deg, #160c20 0%, #120a1a 45%, #0e0716 100%);
}
/* Fine grain for texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2540; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ----- Layout helpers ----- */
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 10, 26, .72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  --pad: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-primary {
  background: var(--grad);
  color: #2a0a16;
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.btn-sm { --pad: 10px 18px; font-size: .82rem; }

/* =========================================================================
   HERO  (scrolling perspective grid + glowing sun)
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* the sun */
.hero-sun {
  position: absolute;
  left: 50%; top: 14%;
  width: 460px; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd9a8 0%, #ff8a5c 32%, #ff3d7f 60%, transparent 70%);
  filter: blur(8px);
  opacity: .55;
  animation: sun-breathe 7s ease-in-out infinite;
}
@keyframes sun-breathe {
  50% { transform: translateX(-50%) scale(1.07); opacity: .7; }
}

/* the floor grid */
.hero-grid {
  position: absolute;
  left: 50%; bottom: -8%;
  width: 320%; height: 70%;
  transform: translateX(-50%) perspective(380px) rotateX(72deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(255, 120, 170, .55) 1.4px, transparent 1.4px),
    linear-gradient(90deg, rgba(255, 120, 170, .42) 1.4px, transparent 1.4px);
  background-size: 58px 58px;
  animation: grid-roll 1.7s linear infinite;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 55%, transparent 96%);
          mask-image: linear-gradient(transparent 0%, #000 55%, transparent 96%);
}
@keyframes grid-roll { to { background-position: 0 58px; } }

/* horizon haze where grid meets sun */
.hero-haze {
  position: absolute;
  left: 0; right: 0; top: 52%;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255, 90, 130, .14) 50%, transparent);
  filter: blur(6px);
}

/* drifting twinkles */
.hero-stars { position: absolute; inset: 0; }
.hero-stars i {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: .5;
  animation: twinkle 4s ease-in-out infinite;
}

.hero-content { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 760px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 22px 0 0;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 560px;
  margin: 26px 0 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* stat strip under hero actions */
.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}
.stat .lbl { font-size: .8rem; color: var(--muted-2); letter-spacing: .04em; margin-top: 6px; }

/* =========================================================================
   SECTION SHELL
   ========================================================================= */
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.section-lede { color: var(--muted); max-width: 420px; font-size: 1rem; }

/* =========================================================================
   GAME CARDS
   ========================================================================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px -24px var(--glow);
}
.game-art {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.game-art::after { /* sheen on hover */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.10) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
}
.game-card:hover .game-art::after { transform: translateX(100%); }
.game-glyph {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, .92);
  letter-spacing: -.02em;
}
/* Real app-icon art: crisp rounded icon over an ambient blurred backdrop */
.game-art { background: #0d0a16; }
.game-art .art-blur {
  position: absolute; inset: -25%;
  width: 150%; height: 150%;
  object-fit: cover;
  filter: blur(30px) saturate(1.35);
  opacity: .5;
  pointer-events: none;
}
.game-art .art-icon {
  position: relative; z-index: 1;
  width: 110px; height: 110px;
  border-radius: 25px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7);
}
.game-art::after { z-index: 2; }

.game-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.game-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.game-kicker { font-size: .72rem; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; }
.game-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; }
.game-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.game-foot { margin-top: 20px; }

/* status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge-live { color: #2de2c1; border-color: rgba(45,226,193,.4); }
.badge-live::before { background: #2de2c1; box-shadow: 0 0 8px #2de2c1; animation: pulse 1.6s infinite; }
.badge-soon { color: var(--amber); border-color: rgba(255,179,122,.4); }
.badge-soon::before { background: var(--amber); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* =========================================================================
   STUDIO / VALUE PILLARS
   ========================================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255, 255, 255, .015);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); background: var(--grad-soft); }
.pillar-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  margin-bottom: 20px;
}
.pillar-ico svg { width: 24px; height: 24px; stroke: var(--coral); }
.pillar-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 9px; }
.pillar-text { color: var(--muted); font-size: .94rem; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 61, 127, .28), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(255, 179, 122, .22), transparent 55%),
    var(--surface);
  padding: 58px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  max-width: 560px;
}
.cta-band p { color: var(--muted); margin-top: 12px; max-width: 460px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { padding: 64px 0 40px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 11px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 26px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted-2);
}

/* =========================================================================
   ENTRANCE ANIMATIONS
   ========================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }

.reveal { opacity: 0; animation: rise .8s var(--ease) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; }
.d5 { animation-delay: .45s; }

/* scroll reveal (JS toggles .in) */
.on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.on-scroll.in { opacity: 1; transform: none; }

/* =========================================================================
   INNER PAGE HERO  (games / about / legal)
   ========================================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 116px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 80% at 88% -10%, rgba(255, 61, 127, .20), transparent 55%),
    radial-gradient(60% 70% at 5% 0%, rgba(255, 179, 122, .14), transparent 55%);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.back-link:hover { color: var(--ink); gap: 12px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 16px 0 0;
}
.page-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 620px; margin-top: 22px; }

/* =========================================================================
   GAME DETAIL  (poster + store buttons + feature grid)
   ========================================================================= */
.game-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.game-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -30px var(--glow);
}
.game-poster { background: #0d0a16; }
.game-poster .poster-blur {
  position: absolute; inset: -20%;
  width: 140%; height: 140%;
  object-fit: cover;
  filter: blur(42px) saturate(1.3);
  opacity: .5;
  pointer-events: none;
}
.game-poster .poster-icon {
  position: relative; z-index: 1;
  width: 60%; max-width: 290px;
  aspect-ratio: 1;
  border-radius: 19%;
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, .75);
}
.game-poster .glyph {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  color: rgba(255, 255, 255, .94);
  letter-spacing: -.03em;
}
.game-poster .ring {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.12) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: poster-sheen 4.5s var(--ease) infinite;
}
@keyframes poster-sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.store-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, .06); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.store-btn b { font-family: var(--font-display); font-weight: 600; font-size: .96rem; }
.store-btn.is-soon { opacity: .55; pointer-events: none; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, .015);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--grad-soft); }
.feature .idx { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--coral); }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: .93rem; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lead-para { font-size: 1.12rem; color: var(--ink); line-height: 1.7; margin-bottom: 22px; }
.lead-para + p, .body-para { color: var(--muted); margin-bottom: 18px; line-height: 1.75; }
.values { display: grid; gap: 14px; }
.value-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .015);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.value-row:hover { border-color: var(--line-strong); background: var(--grad-soft); }
.value-row .n { font-family: var(--font-display); font-weight: 700; color: var(--coral); font-size: 1rem; min-width: 34px; }
.value-row h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin-bottom: 5px; }
.value-row p { color: var(--muted); font-size: .92rem; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  background: rgba(255, 255, 255, .015);
}
.stat-card .big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.stat-card .cap { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* =========================================================================
   "MORE FROM CRAFTYGEM"  (non-game apps)
   ========================================================================= */
.apps-row { display: grid; gap: 20px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, .015);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--grad-soft); }
.app-icon {
  width: 88px; height: 88px;
  flex: none;
  border-radius: 22px;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6);
}
.app-icon svg { width: 46%; height: 46%; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; min-width: 250px; }
.app-info .tagline { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.app-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 6px 0 8px; }
.app-info p { color: var(--muted); font-size: .95rem; max-width: 540px; margin-bottom: 18px; }

/* =========================================================================
   LEGAL / PROSE
   ========================================================================= */
.prose { max-width: 780px; }
.prose p { color: var(--muted); margin-bottom: 18px; line-height: 1.75; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.16rem;
  margin: 38px 0 14px;
}
.prose ul { color: var(--muted); margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--coral); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }
.legal-meta { color: var(--muted-2); font-size: .86rem; margin-bottom: 30px; }
.notice {
  border: 1px solid var(--line-strong);
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 600;
  margin: 26px 0;
}
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.compliance-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, .015);
}
.compliance-card h4 { font-family: var(--font-display); font-weight: 600; color: var(--coral); font-size: .96rem; margin-bottom: 12px; }
.compliance-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* =========================================================================
   PER-GAME THEME · TRIVIA BATTLES  ("night arena" — matches the iOS app)
   Scoped to <body class="theme-trivia">. Remaps the shared tokens so every
   shared component (buttons, cards, hero) adopts the real app palette.
   ========================================================================= */
.theme-trivia {
  --bg:          #070a1c;
  --surface:     #1b2150;
  --surface-2:   #222a63;
  --line:        rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 61, 139, .34);
  --ink:         #f5f7ff;
  --muted:       #9aa3c7;
  --muted-2:     #6e77a6;
  --coral:       #ff3d8b;   /* primary accent — magenta */
  --pink:        #ff3d8b;
  --amber:       #22d3ee;   /* secondary pop — cyan */
  --grad:        linear-gradient(100deg, #34d399 0%, #14b8a6 48%, #3b82f6 100%);
  --grad-soft:   linear-gradient(100deg, rgba(52, 211, 153, .16), rgba(59, 130, 246, .16));
  --glow:        rgba(255, 61, 139, .45);
  --font-display: -apple-system, system-ui, 'Inter', 'Segoe UI', sans-serif;
  --font-body:    -apple-system, system-ui, 'Inter', 'Segoe UI', sans-serif;
}
/* Night-arena page wash (navy canvas + teal/magenta glows) */
.theme-trivia::before {
  background:
    radial-gradient(72% 55% at 50% -6%, rgba(20, 184, 166, .18), transparent 60%),
    radial-gradient(58% 50% at 86% 2%, rgba(255, 61, 139, .12), transparent 55%),
    linear-gradient(180deg, #0b0e26 0%, #070a1c 52%, #050714 100%) !important;
}
.theme-trivia .page-hero::before {
  background:
    radial-gradient(70% 80% at 84% -10%, rgba(255, 61, 139, .18), transparent 55%),
    radial-gradient(64% 74% at 6% 0%, rgba(20, 184, 166, .18), transparent 55%);
}
/* App-style solid magenta CTA (the app's primary button is solid, not gradient) */
.theme-trivia .btn-primary { background: var(--coral); color: #fff; }
/* Headline weight closer to the app's heavy large-title */
.theme-trivia .page-title { font-weight: 900; letter-spacing: -.02em; }

/* Trivia app-icon poster (green→teal→blue squircle + white lightning bolt) */
.ti-poster { background: linear-gradient(135deg, #34d399 0%, #14b8a6 50%, #3b82f6 100%) !important; border-color: rgba(255, 255, 255, .2) !important; }
.ti-bolt { width: 46%; height: 46%; filter: drop-shadow(0 12px 26px rgba(20, 184, 166, .55)); animation: bolt-pulse 4s ease-in-out infinite; }
@keyframes bolt-pulse { 50% { transform: scale(1.05); filter: drop-shadow(0 14px 32px rgba(20, 184, 166, .75)); } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .games-grid, .pillars, .feature-grid, .stat-band { grid-template-columns: 1fr; }
  .game-detail, .split { grid-template-columns: 1fr; gap: 34px; }
  .nav-links { gap: 22px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after  { position: absolute; top: 6px; }
  .hero { min-height: 82vh; }
  .hero-stats { gap: 28px; }
  .cta-band { padding: 40px 28px; }
  .section { padding: 68px 0; }
}

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