/* ==========================================================================
   Redbricks - studio site
   Rebuilt: flat premium dark, one red accent (~5%), strict image ratios,
   editorial asymmetry. No gradients-as-decoration, no glass, no orbs.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Surfaces (flat, near-black - not pure #000) */
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #ededed;
  --muted: #9a9a9e;
  --faint: #6a6a6f;

  /* Brand red - used sparingly. red-hi is the AA-safe text-on-dark variant. */
  --red: #c40a37;
  --red-hi: #ec2a54;
  --red-lo: #9e0a2c;

  /* Cozy (CozyCross product surfaces only) */
  --cream: #f4efe5;
  --amber: #f6c886;
  --orange: #e8963e;
  --brown: #6b4a2b;
  --deep: #3d2a1a;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  overflow-x: clip;            /* kill horizontal overflow without breaking sticky */
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Images can never stretch: one axis fixed, the other auto. */
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
input { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }
.section + .section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
}

.section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 56ch;
  margin-top: 22px;
}
.accent { color: var(--red-hi); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
/* General rule for all red buttons: invert to white bg + red text on hover */
.btn-primary:hover { background: #fff; color: var(--red); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled { background: rgba(10, 10, 11, 0.97); }
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-left { display: flex; align-items: center; gap: clamp(26px, 4vw, 46px); }
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; transition: filter 0.25s var(--ease); }
.brand:hover img { filter: brightness(0) invert(1); }   /* red logo -> white on hover */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero - left-aligned, type-forward, art bleeds off the right edge
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44ch; margin-top: 26px; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 0 0 rgba(236, 42, 84, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 42, 84, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(236, 42, 84, 0); }
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }

/* Hero visual: cozy game panel, tilted, overflowing to the right */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  margin-right: clamp(-80px, -6vw, -20px);
}

/* Floating info badges over the phone */
.float-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 21px 12px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, #212127, #141418);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 40px -14px rgba(0, 0, 0, 0.92),
    0 5px 14px -5px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.float-badge .ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--red-hi);
  background: rgba(236, 42, 84, 0.15);
  box-shadow: inset 0 0 0 1px rgba(236, 42, 84, 0.24);
}
.float-badge .ic svg { width: 22px; height: 22px; }
.float-badge .fb-txt { display: flex; flex-direction: column; line-height: 1.14; }
.float-badge b {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.float-badge em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.fb-lang { top: 15%; left: -15%; animation: floaty 5s ease-in-out infinite; }
.fb-levels { bottom: 18%; right: -12%; left: auto; animation: floaty 6.5s ease-in-out infinite 0.7s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ==========================================================================
   Game panel + phone + animated crossword (the product, honestly shown)
   ========================================================================== */
.device {
  position: relative;
  width: 100%;
  aspect-ratio: 398 / 867;   /* matches the gameplay screenshot */
  background: #060606;
  border-radius: 44px;
  padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2),
    inset 0 0 0 2px #000;
  /* Tilt is driven by JS on scroll; --hoverMult straightens it on hover. */
  --tiltY: -19deg;
  --tiltX: 4deg;
  --tiltZ: 2.5deg;
  --hoverMult: 1;
  transform: perspective(1600px)
    rotateY(calc(var(--tiltY) * var(--hoverMult)))
    rotateX(calc(var(--tiltX) * var(--hoverMult)))
    rotate(calc(var(--tiltZ) * var(--hoverMult)));
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero-visual .device:hover { --hoverMult: 0.3; }
.screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.3);
}
.screen-shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Featured game layout */
.game-hero { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.game-copy .game-logo { width: min(340px, 78%); margin-bottom: 26px; }
.game-copy p { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fact {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.fact b { color: var(--red-hi); font-weight: 700; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 16px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--text); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge .s { display: block; font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.store-badge .b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
/* App-icon presentation (App Store style squircle, fixed square ratio) */
.icon-stage {
  justify-self: center;
  width: min(340px, 82%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.app-icon {
  position: relative;
  z-index: 2;                    /* icon stays above the letter burst */
  width: 62%;
  aspect-ratio: 1;
  border-radius: 22.5%;          /* Apple squircle approximation */
  overflow: hidden;
  box-shadow:
    0 24px 50px -16px rgba(0, 0, 0, 0.6),
    0 16px 64px -8px rgba(245, 165, 80, 0.42);   /* warm glow */
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}
.icon-stage:hover .app-icon { transform: rotate(0deg) scale(1.03); }
.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.icon-stage .rating {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;                    /* caption above icon and burst */
}
.icon-stage.tappable { cursor: pointer; }

/* Juicy letter-tile explosion */
.tile-burst { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 1; }
.burst-tile {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--deep);
  background: #fffdf8;
  box-shadow: inset 0 -2px 0 rgba(107, 74, 43, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}
.burst-tile.amber { background: var(--amber); }
.burst-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(246, 200, 134, 0.85);
  pointer-events: none;
  animation: burstRing 0.85s ease-out forwards;
}
@keyframes burstRing {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
/* Squash the whole squircle (frame + shadow), keeping its resting tilt */
@keyframes iconPop {
  0% { transform: rotate(-2deg) scale(1); }
  20% { transform: rotate(-2deg) scale(0.88); }
  48% { transform: rotate(-1deg) scale(1.12); }
  72% { transform: rotate(-2deg) scale(0.98); }
  100% { transform: rotate(-2deg) scale(1); }
}
.app-icon.pop { animation: iconPop 0.75s var(--ease); }

/* Features - editorial, not uniform 3-col slop */
.features {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 34px 28px;
  transition: background 0.3s;
}
.feature:hover { background: var(--surface); }
.feature .fn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--red-hi);
  letter-spacing: 0.06em;
}
.feature h3 { font-size: 1.16rem; margin: 16px 0 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   Studio - asymmetric split: copy + method pillars
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.studio-logo { height: 56px; width: auto; margin-bottom: 24px; }
.studio-copy p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.studio-copy p + p { margin-top: 18px; }

.studio-values { display: grid; gap: 14px; }
.sv {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 2px solid rgba(196, 10, 55, 0.6);
  border-radius: 12px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.sv .ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--red-hi);
}
.sv .ic svg { width: 21px; height: 21px; }
.sv h4 { font-size: 1.05rem; font-family: var(--font-display); }
.sv p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }

/* Brick-by-brick choreography: red words pop in, then pillars drop and stack.
   Hidden states only apply once JS arms the section (#studio.anim). */
.brick-words .bw { display: inline-block; }
#studio.anim .brick-words .bw { opacity: 0; }
#studio.anim .studio-values .sv { opacity: 0; }

#studio.play .brick-words .bw { animation: brickPop 0.44s var(--ease) both; }
#studio.play .brick-words .bw:nth-child(1) { animation-delay: 0.30s; }
#studio.play .brick-words .bw:nth-child(2) { animation-delay: 0.48s; }
#studio.play .brick-words .bw:nth-child(3) { animation-delay: 0.66s; }

/* Each block drops in and settles, one after another (staircase cascade) */
#studio.play .studio-values .sv { animation: blockDrop 0.5s var(--ease) both; }
#studio.play .studio-values .sv:nth-child(1) { animation-delay: 0.70s; }
#studio.play .studio-values .sv:nth-child(2) { animation-delay: 0.86s; }
#studio.play .studio-values .sv:nth-child(3) { animation-delay: 1.02s; }

@keyframes brickPop {
  0% { opacity: 0; transform: translateY(0.35em) scale(0.5); }
  55% { opacity: 1; transform: translateY(-0.07em) scale(1.12); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blockDrop {
  0%   { opacity: 0; transform: translateY(-38px); }
  70%  { opacity: 1; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CTA / coming soon (email capture - the central action)
   ========================================================================== */
.cta {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(40px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.cta::after {                     /* subtle red edge accent, not a wash */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 20ch; }
.cta p { color: var(--muted); max-width: 52ch; margin-top: 16px; }
.contact-form { margin-top: 30px; max-width: 560px; }
.cf-row { display: flex; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.cf-row input { flex: 1; min-width: 0; }
.contact-form textarea { margin-top: 12px; min-height: 130px; resize: vertical; line-height: 1.5; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--red-hi); outline: none; }
.cf-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cf-status { font-size: 0.9rem; color: var(--muted); }
.cf-status.ok { color: #74d68a; }
.cf-status.err { color: var(--red-hi); }

/* ==========================================================================
   Footer (fat, 4 blocks)
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 66px 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.social a:hover { color: #fff; border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.88rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  padding-top: 140px; padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.legal-hero .updated { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }
.legal-body { max-width: 820px; margin-inline: auto; padding-block: 56px 90px; }
.legal-body h2 { font-size: 1.45rem; margin-top: 46px; margin-bottom: 14px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.12rem; margin-top: 26px; margin-bottom: 8px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p { margin-bottom: 15px; }
.legal-body ul { margin: 0 0 20px; padding-left: 4px; }
.legal-body ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.legal-body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
.legal-body a { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }
.legal-toc { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; background: var(--surface); margin-bottom: 42px; }
.legal-toc h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.legal-toc li { margin-bottom: 7px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--red-hi); }

/* ==========================================================================
   Reveal on scroll (section entrances only, staggered - not everything)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .device { transform: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Narrower desktops: pull the overhanging badge in so it isn't clipped */
@media (min-width: 961px) and (max-width: 1340px) {
  .fb-levels { right: -3%; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: center; margin-right: 0; width: min(320px, 74%); }
  .float-badge { padding: 8px 13px 8px 8px; }
  .float-badge .ic { width: 27px; height: 27px; }
  .float-badge b { font-size: 13px; }
  .fb-lang { left: -8%; top: 10%; }
  .fb-levels { left: auto; right: -8%; bottom: 14%; }
  .game-hero { grid-template-columns: 1fr; gap: 48px; }
  .game-copy { order: 1; }
  .icon-stage { order: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-links { display: flex; transform: translateY(0); }
  .nav-links a { width: 100%; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a::after { display: none; }
  .features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cf-row { flex-direction: column; }
}
