/* The redesign's fonts (2026-11-21), served from this site: Newsreader for headings (SIL Open
   Font License) and Satoshi for text (ITF Free Font License, which allows self-hosting the files
   as they come; they are not subset or converted). Licences beside the files in /assets/fonts/. */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:300 500;font-display:swap;src:url("/assets/fonts/newsreader-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:300 500;font-display:swap;src:url("/assets/fonts/newsreader.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:300 500;font-display:swap;src:url("/assets/fonts/newsreader-italic-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:300 500;font-display:swap;src:url("/assets/fonts/newsreader-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Satoshi";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/Satoshi-Regular.woff2") format("woff2")}
@font-face{font-family:"Satoshi";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/Satoshi-Medium.woff2") format("woff2")}
@font-face{font-family:"Satoshi";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/Satoshi-Bold.woff2") format("woff2")}

/* Stand-ins sized to match, so text holds its place while the real fonts arrive: Georgia set to
   Newsreader's width and Arial to Satoshi's (measured in the browser on the site's own text). */
@font-face{font-family:"Newsreader Fallback";font-style:normal;src:local("Georgia");size-adjust:101.4%}
@font-face{font-family:"Newsreader Fallback";font-style:italic;src:local("Georgia Italic"),local("Georgia-Italic");size-adjust:91.3%}
@font-face{font-family:"Satoshi Fallback";src:local("Arial"),local("ArialMT");size-adjust:98.3%}

/* ═══════════════════════════════════════════════════════════
   Sista Labs — Unified "Best of Both Worlds" Redesign Styles
   Obsidian Baize Palette + WCAG AA Contrast + 100svh Section Snap
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core Surfaces */
  --bg:         #0F281D;
  --surface:    #122A1C;
  --card:       #163D2C;
  --card-hi:    #1B4734;
  --cream:      #F4EFE1;
  --ink:        #1E1C14;
  --ink-soft:   #4F4A3C;
  --gold:       #EAC873;
  --gold-hover: #F2D68A;

  /* WCAG AA Tuned Warm Muted Text */
  --muted:      #B4A98A;   /* 6.55:1 on --bg, 5.00:1 on --card */
  --muted-dim:  #948C74;   /* 4.53:1 on --bg */

  /* Hairline Borders */
  --border:     rgba(244, 239, 225, 0.08);
  --border-mid: rgba(244, 239, 225, 0.14);
  --border-hi:  rgba(244, 239, 225, 0.26);

  /* 5 Semantic Family Jewel Accents */
  --trick:      #C47B2E;  --trick-dim:   rgba(196, 123, 46, 0.14);  --trick-text:   #E8A75D;
  --memory:     #1A7A65;  --memory-dim:  rgba(26, 122, 101, 0.14);  --memory-text:  #5EC4AD;
  --arith:      #A83D52;  --arith-dim:   rgba(168, 61, 82, 0.14);   --arith-text:   #E28395;
  --spatial:    #2E5B8A;  --spatial-dim: rgba(46, 91, 138, 0.14);   --spatial-text: #7AA9D8;
  --open:       #4A7A3D;  --open-dim:    rgba(74, 122, 61, 0.14);   --open-text:    #8EC27E;

  /* Active Page Accent (overridden per family/game via data-family) */
  --accent:      var(--gold);
  --accent-dim:  rgba(234, 200, 115, 0.14);
  --accent-text: var(--gold);

  --f-display:  "Newsreader", Georgia, serif;
  --f-body:     "Satoshi", system-ui, -apple-system, sans-serif;
  --max:        1180px;
  --gutter:     clamp(18px, 4.5vw, 68px);
  --nav-h:      58px;
}

[data-family="tricks"]  { --accent: var(--trick);   --accent-dim: var(--trick-dim);   --accent-text: var(--trick-text); }
[data-family="memory"]  { --accent: var(--memory);  --accent-dim: var(--memory-dim);  --accent-text: var(--memory-text); }
[data-family="numbers"] { --accent: var(--arith);   --accent-dim: var(--arith-dim);   --accent-text: var(--arith-text); }
[data-family="grids"]   { --accent: var(--spatial); --accent-dim: var(--spatial-dim); --accent-text: var(--spatial-text); }
[data-family="open"]    { --accent: var(--open);    --accent-dim: var(--open-dim);    --accent-text: var(--open-text); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

body {
  background-color: var(--bg);
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 380;
  line-height: 1.58;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.is-it-for-you :focus-visible, .light-band :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 100px;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; }

/* ─── EDITORIAL SECTION RHYTHM (NATURAL BREATHING ROOM) ── */
.fold {
  padding: clamp(72px, 10vh, 118px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
#hero.fold, #top.fold {
  min-height: 92svh;
  padding-top: calc(var(--nav-h) + clamp(32px, 5vh, 56px));
  /* The same space below as between the nav and the content, so the content sits in the middle of the
     hero's visible part (measured; it was 4-5px high before, 2026-12-04). */
  padding-bottom: clamp(32px, 5vh, 56px);
}
.alt-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── FROSTED FIXED NAV + MOBILE DRAWER ───────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 40, 29, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.subnav-active .site-nav { transform: translateY(-100%); }
.nav-wordmark {
  font-family: var(--f-display); font-size: 19px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
}
.nav-wordmark:hover { opacity: 0.78; }
/* the spade S (design/logo), its small drawing, cropped to the spade so it starts on the page line */
.nav-mark { width: 22px; height: 26px; flex-shrink: 0; background: url("/assets/logo-mark.svg") center / contain no-repeat; }
.nav-links {
  display: flex; align-items: center; gap: 26px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); background: var(--cream); text-decoration: none;
  padding: 0 15px; min-height: 36px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: #FFFFFF; transform: translateY(-1px); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  min-height: 36px; padding: 0 12px; border-radius: 100px;
  border: 1px solid var(--border-mid); color: var(--cream);
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-panel {
  position: absolute; right: 0; top: 46px; width: 210px;
  background: rgba(15, 40, 29, 0.98); border: 1px solid var(--border-mid);
  border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile-panel a {
  padding: 10px 12px; border-radius: 8px; color: var(--cream); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
}
.nav-mobile-panel a:hover { background: var(--card); }

/* ─── SINGLE-BAR SUB-NAV TAKEOVER ON SCROLL (GAME PAGES) ─── */
.sub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: var(--nav-h);
  background: rgba(15, 40, 29, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 0 var(--gutter);
  display: flex; align-items: center;
  transform: translateY(-100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.subnav-active .sub-nav { transform: translateY(0); }
.sub-nav-inner { max-width: var(--max); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sub-nav-links { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.sub-nav-links::-webkit-scrollbar { display: none; }
.sub-nav a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}
.sub-nav a:hover { color: var(--cream); }
.sub-nav .sub-brand { font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--cream); gap: 8px; flex-shrink: 0; }

/* ─── CREAM EDITORIAL SECTION (.on-cream — ONE PER PAGE) ─── */
.on-cream {
  background: var(--cream); color: var(--ink);
  border-top: 1px solid rgba(30,28,20,0.08);
  border-bottom: 1px solid rgba(30,28,20,0.08);
}
.on-cream :focus-visible { outline-color: var(--ink); }
.on-cream .section-title, .on-cream h2 { color: var(--ink); }
.on-cream .eyebrow, .on-cream .section-eyebrow { color: #7C5B18; }
.on-cream .finder-caption { color: rgba(30,28,20,0.68); }
.on-cream .seg-toggle { background: rgba(30,28,20,0.07); border-color: rgba(30,28,20,0.14); }
.on-cream .seg-btn { color: rgba(30,28,20,0.65); }
.on-cream .seg-btn.active { background: var(--bg); color: var(--cream); }
.on-cream .finder-pill { background: #fff; color: var(--ink); border-color: rgba(30,28,20,0.16); }
.on-cream .finder-pill:hover { border-color: var(--bg); }
.on-cream .finder-pill.active { background: var(--bg); color: var(--cream); border-color: var(--bg); }
.on-cream .game-card { background: #fff; border-color: rgba(30,28,20,0.12); box-shadow: 0 4px 16px rgba(30,28,20,0.05); }
.on-cream .game-card:hover { border-color: rgba(30,28,20,0.28); box-shadow: 0 10px 26px rgba(30,28,20,0.10); }
.on-cream .gc-name { color: var(--ink); }
.on-cream .gc-hook { color: rgba(30,28,20,0.68); }
.on-cream .gc-dot { color: var(--accent); }

/* ─── RIGHT-EDGE FOLD PROGRESS RAIL (HIDDEN IN MINIMAL MODE) ── */

/* ─── KICKERS ────────────────────────────────────────── */
.fam-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); text-decoration: none;
}
.fam-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fam-kicker:hover { color: var(--cream); }

/* ─── SHARED BUTTONS & TYPOGRAPHY ─────────────────────── */
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 100px;
  font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid { background: var(--cream); color: var(--ink); border: 1px solid var(--cream); }
.btn-solid:hover { background: #FFFFFF; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--border-hi); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(234,200,115,0.08); transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 13.5px; }

.eyebrow, .section-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 8px;
}
.section-title, h2 {
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 340; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--cream); margin-bottom: 10px;
}
.section-sub {
  color: var(--muted); max-width: 580px; font-size: clamp(14.5px, 1.3vw, 16px);
  margin-bottom: clamp(16px, 2.4vh, 28px);
}
.breadcrumb {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); }

/* ─── HERO ELEMENTS ───────────────────────────────────── */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 52% 48% at 68% 48%, rgba(196, 123, 46, 0.11), transparent 68%),
    radial-gradient(ellipse 40% 38% at 16% 80%, rgba(26, 122, 101, 0.08), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
}
.pill-trick   { color: var(--trick-text);   border-color: rgba(196,123,46,0.45); background: var(--trick-dim); }
.pill-memory  { color: var(--memory-text);  border-color: rgba(26,122,101,0.45); background: var(--memory-dim); }
.pill-arith   { color: var(--arith-text);   border-color: rgba(168,61,82,0.45);  background: var(--arith-dim); }
.pill-spatial { color: var(--spatial-text); border-color: rgba(46,91,138,0.45);  background: var(--spatial-dim); }
.pill-open    { color: var(--open-text);    border-color: rgba(74,122,61,0.45);  background: var(--open-dim); }

.hero-headline, h1 {
  font-family: var(--f-display);
  font-size: clamp(2.45rem, 5.4vw, 4.55rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.025em;
  color: var(--cream); margin-bottom: 16px;
}
.hero-headline .italic-line, h1 em { font-style: italic; display: block; color: #FAF6EA; }
.lede {
  font-size: clamp(15px, 1.35vw, 17px); line-height: 1.65;
  color: var(--muted); max-width: 520px; margin-bottom: 24px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-endorse {
  margin-top: 18px; padding: 11px 14px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(234, 200, 115, 0.08), transparent 88%);
  border-radius: 0 10px 10px 0; max-width: 500px;
}
.hero-endorse blockquote {
  font-family: var(--f-display); font-style: italic;
  font-size: 14.5px; line-height: 1.4; color: var(--cream); margin-bottom: 3px;
}
.hero-endorse cite { font-style: normal; font-size: 12px; color: var(--muted); }
.hero-endorse cite a { color: var(--gold); text-decoration: none; }

.facts-line { font-size: 13px; color: var(--muted-dim); padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }

/* Home hero: centred words over a fanned hand. One back design; two face-up 9s from the app's
   own deck sit in the middle and read as 99. 10 cards on wide screens, 6 on phones. */
.hero-glow-centre {
  background: radial-gradient(ellipse 46% 42% at 50% 62%, rgba(234, 200, 115, 0.09), transparent 70%);
}
/* One screen, equal space above the headline and below the cards: the padding under the nav
   equals the padding at the bottom, and the fan's box ends where its lowest card corner does. */
#hero.fan-fold {
  min-height: 100svh;
  --pad: clamp(28px, 6vh, 88px);
  padding-top: calc(var(--nav-h) + var(--pad)); padding-bottom: var(--pad);
}
.fan-hero {
  position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.fan-hero .hero-headline { font-size: clamp(2.5rem, min(5.4vw, 8.6vh), 4.5rem); margin-bottom: clamp(14px, 2vh, 20px); }
.fan-hero-line { font-size: clamp(15px, 1.3vw, 17px); color: var(--muted); margin-bottom: clamp(10px, 1.6vh, 16px); }
.fan-hero-cta {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.03em; color: var(--cream); text-decoration: none;
}
.fan-hero-cta span { color: var(--gold); transition: transform 0.2s ease; }
@media (hover: hover) {
  .fan-hero-cta:hover { color: var(--gold); }
  .fan-hero-cta:hover span { transform: translateX(4px); }
}
.fan {
  --w: clamp(80px, min(9.2vw, 13.5vh), 128px);
  --step: calc(var(--w) * 0.56);
  position: relative; display: block; width: 100%;
  /* the outer card (i = 4.5) sits 101px lower and turns 27deg: its low corner is 0.227w further down */
  height: calc(var(--w) * 1.627 + 101px);
  margin-top: clamp(28px, 5.5vh, 72px);
}
.fan-card {
  position: absolute; top: 0; left: 50%;
  width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * 0.064);
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + var(--i) * var(--step))) translateY(calc(var(--i) * var(--i) * 5px)) rotate(calc(var(--i) * 6deg));
  z-index: calc(10 - var(--i) * var(--i));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}
/* hero-9H and hero-9S are the deck's 9s without the grey rim the app draws round each card (the
   backs have none, so it read as an outline); their corners round at 40/388 of the width */
.fan-face {
  border-radius: calc(var(--w) * 0.103); z-index: 20; filter: brightness(0.94);
  box-shadow: 0 0 0 1px rgba(234, 200, 115, 0.28), 0 0 34px rgba(234, 200, 115, 0.22), 0 18px 36px rgba(0, 0, 0, 0.6);
}
.fan-face + .fan-face { z-index: 21; }
@media (prefers-reduced-motion: no-preference) {
  .fan-card { animation: fan-deal 720ms cubic-bezier(0.22, 1, 0.36, 1) calc((var(--i) + 4.5) * 45ms) both; }
  @keyframes fan-deal {
    from { opacity: 0; transform: translateX(-50%) translateY(26px) rotate(0deg); }
  }
}
@media (max-width: 520px) {
  /* 88px cards need 379px across: below 390 the cards shrink so the fan stays inside the screen */
  .fan { --w: min(88px, 22.6vw); --step: calc(var(--w) * 0.5227); height: calc(var(--w) * 1.529 + 31px); margin-top: 28px; }
  .fan-outer { display: none; }
  .fan-hero .hero-headline { font-size: 2.5rem; }
}

/* Tactile iPhone Frame (Zero-Cutoff contain) */
.phone-col { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; gap: 12px; }
.phone-frame {
  position: relative; z-index: 2;
  width: min(276px, 33vh); aspect-ratio: 9 / 19.3;
  border-radius: 34px; padding: 9px;
  background: linear-gradient(155deg, #254E3A, #0A1B13 60%, #1C3E2D);
  border: 1px solid rgba(244, 239, 225, 0.22);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4) inset;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #0B1F16;
  display: flex; align-items: center; justify-content: center;
}
.phone-screen img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ─── FLAGSHIPS & NEW RELEASES + CARD-TABLE VIGNETTES ─── */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: clamp(14px, 2.2vh, 24px); }
.seg-toggle { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border-mid); }
.seg-btn {
  min-height: 44px; padding: 0 18px; border-radius: 100px; border: 0;
  background: transparent; color: var(--muted); font-family: var(--f-body); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.seg-btn.active { background: var(--cream); color: var(--ink); }

.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 15px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feat-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: 0 18px 38px rgba(0,0,0,0.34); }
.feat-shot {
  width: 100%; height: clamp(195px, 31vh, 265px);
  border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse 80% 75% at 50% 48%, rgba(26, 74, 54, 0.92), #0A1C14 84%);
  margin-bottom: 16px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
}
.vignette-stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; }
.v-card { height: clamp(98px, 17vh, 142px); width: auto; aspect-ratio: 5 / 7; object-fit: contain; border-radius: 8px; display: block; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.52)); transition: transform 0.25s ease; }
.v-card.glow { filter: drop-shadow(0 0 12px rgba(234,200,115,0.45)) drop-shadow(0 14px 22px rgba(0,0,0,0.55)); }
.v-card.dim { opacity: 0.46; filter: grayscale(0.25) drop-shadow(0 8px 14px rgba(0,0,0,0.45)); }
.v-fan { display: flex; align-items: center; justify-content: center; }
.v-fan .v-card:nth-child(1) { transform: rotate(-10deg) translate(10px, 6px); }
.v-fan .v-card:nth-child(2) { transform: translateY(-4px); z-index: 2; }
.v-fan .v-card:nth-child(3) { transform: rotate(10deg) translate(-10px, 6px); }
.v-cambio { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 12px; }
.v-cambio .v-card { height: clamp(64px, 10.5vh, 88px); border-radius: 6px; }
.v-brummy { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.v-brummy .v-card { height: clamp(44px, 7.2vh, 62px); border-radius: 5px; }
.v-op { font-family: var(--f-display); font-size: 20px; color: var(--muted); }
.v-seal { padding: 8px 14px; border-radius: 12px; background: rgba(15,40,29,0.88); border: 1px solid rgba(234,200,115,0.45); font-family: var(--f-display); font-size: 25px; color: var(--gold); line-height: 1; }
.v-caption {
  position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 3px 12px; border-radius: 100px; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  background: rgba(15,40,29,0.88); color: var(--cream); border: 1px solid rgba(234,200,115,0.28);
}

.feat-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.app-icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; border: 1px solid var(--border-mid); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.feat-name { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--cream); line-height: 1.15; }
.feat-name a { color: inherit; text-decoration: none; }
.feat-name a:hover { color: var(--gold); }
.feat-fam { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.feat-hook { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.feat-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid var(--border); }
.feat-price { font-size: 12.5px; color: var(--muted); }
.feat-price a { color: var(--muted); text-decoration: none; }
.feat-price a:hover { color: var(--cream); }

/* ─── 5 FAMILIES GRID ─────────────────────────────────── */
.fam-count { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.fam-name { font-family: var(--f-display); font-size: 22px; font-weight: 400; color: var(--cream); margin-bottom: 8px; line-height: 1.15; }
.fam-line { font-size: 13.5px; color: var(--muted); line-height: 1.48; margin-bottom: 16px; }

/* ─── ZERO-CUTOFF 4-ROW LIBRARY + BUNDLE ──────────────── */
.lib-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-btn {
  min-height: 44px; padding: 0 16px; border-radius: 100px;
  border: 1px solid var(--border-mid); background: transparent; color: var(--muted);
  font-family: var(--f-body); font-size: 13px; font-weight: 500; cursor: pointer;
}
.filter-btn:hover { color: var(--cream); border-color: var(--border-hi); }
.filter-btn.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 16px; display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 92px; text-decoration: none; color: inherit; min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--border-hi); box-shadow: 0 10px 24px rgba(0,0,0,0.26); }
.gc-row { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.gc-icon { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-mid); flex-shrink: 0; }
.gc-title-wrap { min-width: 0; flex: 1; }
.gc-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
.gc-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.gc-name { font-family: var(--f-display); font-size: 17px; font-weight: 400; color: var(--cream); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-hook { font-size: 13px; color: var(--muted); line-height: 1.42; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── FINDER ──────────────────────────────────────────── */
.finder-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.finder-pill {
  min-height: 44px; padding: 0 18px; border-radius: 100px;
  border: 1px solid var(--border-mid); background: var(--card); color: var(--cream);
  font-family: var(--f-body); font-size: 14px; cursor: pointer;
}
.finder-pill:hover { border-color: var(--gold); }
.finder-pill.active { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 500; }
.finder-caption { font-size: 15px; color: var(--muted); margin-bottom: 18px; max-width: 560px; }
.finder-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.finder-results .game-card { padding: 22px 20px; min-height: 152px; border-radius: 16px; }
.finder-results .gc-icon { width: 44px; height: 44px; border-radius: 11px; }
.finder-results .gc-name { font-size: 20px; }
.finder-results .gc-hook { font-size: 14px; white-space: normal; -webkit-line-clamp: 3; line-height: 1.5; margin: 0; }

/* ─── 5 PROMISE FILMS + LIGHTBOX ──────────────────────── */
.promises-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(16px, 2.4vh, 24px); }
.promise-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 15px;
  padding: 10px 10px 14px; display: flex; flex-direction: column;
  cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.promise-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: 0 16px 34px rgba(0,0,0,0.34); }
.promise-media { position: relative; width: 100%; height: clamp(155px, 28vh, 250px); border-radius: 10px; overflow: hidden; background: #0A1B13; border: 1px solid var(--border-mid); margin-bottom: 10px; }
.promise-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promise-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,40,29,0.04) 40%, rgba(15,40,29,0.72) 100%); pointer-events: none; }
.play-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(15,40,29,0.72); backdrop-filter: blur(12px); border: 1px solid rgba(244,239,225,0.35);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
}
.promise-card:hover .play-chip { background: var(--cream); color: var(--ink); }
.promise-card h3 { font-family: var(--f-display); font-size: 16.5px; font-weight: 400; line-height: 1.2; margin-bottom: 4px; padding: 0 3px; color: var(--cream); }
.promise-card p { font-size: 12.5px; color: var(--muted); line-height: 1.42; padding: 0 3px; }

.quote-band { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.video-modal { position: fixed; inset: 0; z-index: 300; background: rgba(8,22,16,0.88); backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; padding: 24px; }
.video-modal.open { display: flex; }
.modal-dialog { position: relative; display: flex; align-items: center; gap: 28px; max-width: 760px; width: 100%; background: var(--surface); border: 1px solid var(--border-mid); border-radius: 20px; padding: 24px; box-shadow: 0 28px 80px rgba(0,0,0,0.6); }
.modal-video-wrap { flex: 0 0 auto; width: min(310px, 42vw); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--border-mid); }
.modal-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-meta { flex: 1; min-width: 0; }
.modal-num { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.modal-title { font-family: var(--f-display); font-size: 28px; font-weight: 340; line-height: 1.12; color: var(--cream); margin-bottom: 12px; }
.modal-desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.modal-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-mid); background: rgba(15,40,29,0.8); color: var(--cream); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ─── FAMILY PAGE COMPONENTS ──────────────────────────── */

.trick-stage {
  background: radial-gradient(ellipse at 50% 45%, var(--accent-dim), rgba(15,40,29,0.95) 72%);
  border: 1px solid var(--border-mid); border-radius: 20px; padding: 24px 22px;
}
.stage-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.stage-label strong { color: var(--accent-text); font-weight: 500; }
.stage-caption { font-size: 13.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border); text-align: center; }
.stage-caption strong { color: var(--cream); font-weight: 500; }

.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.next-games-row { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.next-games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.g-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.g-card:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.g-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.g-icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-mid); }
.g-name { font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--cream); line-height: 1.15; }
.g-meta { font-size: 12px; color: var(--accent-text); }

.tl-lbl { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Mobile compact tabs for Is It For You (keeps #honest ~1 screen on iPhone) */
.ify-mobile-tabs { display: none; gap: 8px; margin-bottom: 14px; }
.ify-mob-btn {
  flex: 1; min-height: 44px; border-radius: 100px; border: 1px solid rgba(30,28,20,0.18);
  background: #fff; color: var(--ink); font-family: var(--f-body); font-size: 13px; font-weight: 500; cursor: pointer;
}
.ify-mob-btn.active { background: var(--bg); color: var(--cream); border-color: var(--bg); }

.dot { width: 8px; height: 8px; border-radius: 50%; }

/* ─── GAME PAGE COMPONENTS ────────────────────────────── */
.game-badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-icon { width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--border-mid); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.hook-italic { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--gold); margin-bottom: 14px; }
.shot-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.shot-tab { min-height: 44px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--border-mid); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.shot-tab.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.bid-stage { margin-top: 24px; background: var(--card); border: 1px solid var(--border-mid); border-radius: 20px; padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.bid-cards { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bid-card-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bid-card-slot img { width: 86px; aspect-ratio: 5 / 7; object-fit: contain; border-radius: 9px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.42)); }
.bid-card-slot small { font-size: 12px; font-weight: 500; color: var(--gold); padding: 2px 9px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border-mid); }
.op { font-family: var(--f-display); font-size: 26px; color: var(--muted); }
.bid-total { padding: 16px 24px; border-radius: 14px; background: var(--bg); border: 1px solid rgba(234,200,115,0.35); text-align: center; }
.bid-total strong { font-family: var(--f-display); font-size: 36px; font-weight: 340; color: var(--gold); display: block; line-height: 1; }
.bid-total span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { padding: 4px 12px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border-mid); color: var(--cream); }

.how-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4.5vw, 60px); align-items: center; }
.steps-stack { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid var(--border); }
.step-card { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; }
.step-num { font-family: var(--f-display); font-size: 16px; color: var(--gold); flex-shrink: 0; padding-top: 2px; min-width: 24px; }
.step-card h3 { font-family: var(--f-display); font-size: 21px; font-weight: 400; margin-bottom: 4px; color: var(--cream); }
.step-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; max-width: 48ch; }

.how-video-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.how-video-frame {
  position: relative; height: clamp(460px, 70vh, 660px); width: auto; max-width: 100%; aspect-ratio: 9 / 16;
  border-radius: 24px; overflow: hidden; background: #0A1B13; border: 1px solid rgba(244,239,225,0.22);
  box-shadow: 0 28px 68px rgba(0,0,0,0.56);
}
.how-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-video-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(15,40,29,0.12), rgba(15,40,29,0.68)); border: 0; width: 100%; cursor: pointer; color: var(--cream); font-family: var(--f-body);
}
.how-video-overlay.hidden { display: none; }
.how-play-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
.how-play-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; background: rgba(15,40,29,0.82); border: 1px solid var(--border-mid); }

/* Cream Editorial Is It For You Bento */
.is-it-for-you { background: var(--cream); color: var(--ink); border-top: 1px solid rgba(30,28,20,0.08); border-bottom: 1px solid rgba(30,28,20,0.08); height: auto !important; overflow: visible !important; }
.ify-eyebrow { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.ify-eyebrow::before, .ify-eyebrow::after { content: ""; flex: 1; height: 1px; background: rgba(30,28,20,0.12); }
.ify-eyebrow-text { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(30,28,20,0.48); white-space: nowrap; }
.ify-row1 { display: grid; grid-template-columns: 38% 1fr; gap: 38px; align-items: start; margin-bottom: 10px; }
.ify-headline { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; color: var(--ink); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px; }
.ify-subtext { font-size: 15px; font-weight: 380; color: rgba(30,28,20,0.68); line-height: 1.65; max-width: 340px; }
.ify-signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ify-signal-tile { background: #fff; border: 1px solid rgba(30,28,20,0.1); border-radius: 14px; padding: 18px; }
.ify-signal-tile.love-it { border-top: 3px solid #1A7A65; }
.ify-signal-tile.maybe-not { border-top: 3px solid rgba(168,61,82,0.68); }
.ify-tile-title { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.ify-tile-title.green { color: #1A7A65; }
.ify-tile-title.rose { color: #9E3348; }
.ify-signals-list { display: flex; flex-direction: column; gap: 8px; }
.ify-signal-item { display: flex; align-items: flex-start; gap: 10px; }
.ify-signal-bullet { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ify-signal-bullet.green { background: rgba(26,122,101,0.1); border: 1px solid rgba(26,122,101,0.3); color: #1A7A65; }
.ify-signal-bullet.rose { background: rgba(168,61,82,0.08); border: 1px solid rgba(168,61,82,0.28); color: #9E3348; }
.ify-signal-text { font-size: 13.5px; color: var(--ink); line-height: 1.45; text-wrap: pretty; }
.ify-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ify-context-card { background: #fff; border: 1px solid rgba(30,28,20,0.1); border-radius: 14px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; }
.ify-context-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(30,28,20,0.48); min-width: 78px; }
.ify-context-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ify-tag { font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--cream); border: 1px solid rgba(30,28,20,0.12); padding: 4px 11px; border-radius: 100px; }
.ify-our-take-card { margin-top: 10px; background: #fff; border: 1px solid rgba(30,28,20,0.1); border-radius: 14px; padding: 20px 24px; display: grid; grid-template-columns: 140px 1fr 195px; gap: 22px; align-items: start; }
.ify-take-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(30,28,20,0.45); display: block; margin-bottom: 6px; }
.ify-take-title { font-family: var(--f-display); font-size: 22px; font-weight: 340; color: var(--ink); line-height: 1.15; }
.ify-take-prose { font-family: var(--f-display); font-style: italic; font-size: 16.5px; color: var(--ink); line-height: 1.55; }
.ify-take-attr { font-size: 12px; color: rgba(30,28,20,0.55); margin-bottom: 10px; }
.ify-take-needs-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(30,28,20,0.45); display: block; margin-bottom: 5px; }
.ify-take-needs-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--cream); border: 1px solid rgba(30,28,20,0.12); padding: 5px 11px; border-radius: 8px; }
.ify-table-card { margin-top: 10px; background: var(--bg); color: var(--cream); border-radius: 14px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ify-table-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
.ify-table-text { font-size: 14px; color: var(--muted); line-height: 1.45; }
.ify-table-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ify-dark-tag { font-size: 12.5px; font-weight: 500; color: var(--cream); background: rgba(244,239,225,0.08); border: 1px solid rgba(244,239,225,0.16); padding: 5px 12px; border-radius: 100px; }

.parlett-box { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }

/* ─── STORY PAGE COMPONENTS ───────────────────────────── */
.story-hero { text-align: left; overflow: hidden; }
#top.story-hero.fold { min-height: auto; padding-top: calc(var(--nav-h) + clamp(48px, 7vh, 84px)); padding-bottom: clamp(44px, 6vh, 68px); }
.story-links-row {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(30,28,20,0.14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  font-size: 14px; color: rgba(30,28,20,0.65);
}
.story-links-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.story-links-row a:hover { text-decoration: underline; }

.essay { max-width: 48ch; }
.essay p { font-size: clamp(17px, 1.45vw, 19px); font-weight: 360; line-height: 1.82; color: rgba(244,239,225,0.88); margin-bottom: 20px; }
.essay p.drop::first-letter { font-family: var(--f-display); font-size: 3.4em; font-weight: 340; line-height: 0.84; float: left; margin: 5px 12px 0 0; color: var(--gold); }
.essay em { font-family: var(--f-display); font-style: italic; font-size: 1.04em; color: var(--cream); }
.essay strong { color: var(--cream); font-weight: 500; }
.signoff { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--f-display); font-size: 21px; color: var(--cream); }
.signoff span { display: block; font-family: var(--f-body); font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.light-band { background: var(--cream); color: var(--ink); }
.light-band .eyebrow { color: #7C5B18; }
.light-band h2 { color: var(--ink); }
.light-band p { color: var(--ink-soft); max-width: 560px; margin-bottom: 24px; }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 24px; border-radius: 100px; background: var(--bg); color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 500; }

/* ─── SUPPORT, PRIVACY & COMPARE PAGES ────────────────── */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 108px var(--gutter) 72px; }
.doc-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 20px; }
.doc-card h3 { font-family: var(--f-display); font-size: 21px; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.doc-card p, .doc-card li { font-size: 15px; color: var(--muted); line-height: 1.65; }
.doc-card ul { padding-left: 18px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 28px var(--gutter); border-top: 1px solid var(--border); background: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--muted-dim); font-size: 13.5px;
  scroll-snap-align: end;
}
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--cream); }

.btn-solid:active, .btn-ghost:active, .filter-btn:active, .finder-pill:active, .seg-btn:active {
  transform: scale(0.97);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
/* ─── STORY EDITORIAL OPTIONS (S1 KINFOLK / S2 AESOP / S3 MONOCLE) ─── */

/* S1: Kinfolk Single-Column Alternating Rhythm */
.s1-rail { width: 100%; max-width: 640px; margin: 0 auto; }
.s1-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.s1-rail h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 340; color: var(--cream); line-height: 1.12; margin-bottom: 18px; }
.s1-beat { font-size: 17.5px; line-height: 1.72; color: rgba(244, 239, 225, 0.88); margin-bottom: 36px; }
.s1-beat strong { color: var(--cream); font-weight: 500; }
.s1-beat em { font-family: var(--f-display); font-size: 1.06em; color: var(--cream); }
.s1-fig { margin: 40px 0 44px; }
.s1-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--border); }
.s1-fig figcaption { font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 10px; }
.s1-divider { border: 0; border-top: 1px solid var(--border-mid); margin: 44px 0; }

/* S2: Aesop Short Chunks + Small Margin Vignettes */

/* S3: Monocle Uninterrupted Essay + 3-Photo Contact Strip */

/* ─── TRICK-TAKING DE-CLUTTER OPTIONS (/tricks-options/) ─── */
.tk-band { padding: clamp(56px, 8vh, 88px) var(--gutter); border-bottom: 1px solid var(--border); }
.tk-band.alt { background: var(--surface); }

/* Clean Un-Boxed 3-Card Table Stage */
.tk-open-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.tk-open-copy p { font-size: 16.5px; line-height: 1.68; color: var(--muted); max-width: 48ch; margin-bottom: 14px; }
.tk-open-copy p strong { color: var(--cream); font-weight: 500; }
.tk-cards-float {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px; border-radius: 18px;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(26, 74, 54, 0.65), transparent 80%);
}
.tk-cards-trio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.2vw, 26px); }
.tk-card-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tk-card-item img {
  width: clamp(82px, 9.5vw, 108px); aspect-ratio: 5 / 7; object-fit: contain; border-radius: 8px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}
.tk-card-item.win img {
  transform: translateY(-8px);
  filter: drop-shadow(0 0 14px rgba(234, 200, 115, 0.42)) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
}
.tk-card-lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tk-card-lbl strong { display: block; color: var(--cream); font-weight: 500; font-size: 12.5px; }
.tk-card-item.win .tk-card-lbl strong { color: var(--gold); }
.tk-cards-caption { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--muted); text-align: center; }

/* Open Hairline Instincts (Zero Boxes) */
.tk-instincts-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--border-mid); margin-top: 24px;
}
.tk-instinct {
  padding: 22px 22px 6px 0; border-right: 1px solid var(--border);
}
.tk-instinct:not(:first-child) { padding-left: 22px; }
.tk-instinct:last-child { border-right: 0; padding-right: 0; }
.tk-instinct-num { font-family: var(--f-display); font-size: 13px; color: var(--accent-text); margin-bottom: 6px; }
.tk-instinct h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.tk-instinct p { font-size: 14px; line-height: 1.52; color: var(--muted); }

/* Open Cream Oxford Dictionary Glossary (Zero White Boxes) */
.tk-dict-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px; border-top: 1px solid rgba(30, 28, 20, 0.16); margin-top: 20px;
}
.tk-dict-item {
  padding: 18px 0; border-bottom: 1px solid rgba(30, 28, 20, 0.12);
  display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline;
}
.tk-dict-item dt { font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--ink); }
.tk-dict-item dd { font-size: 14.5px; line-height: 1.55; color: rgba(30, 28, 20, 0.74); }
.tk-other-row {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  font-size: 14px; color: rgba(30, 28, 20, 0.62);
}
.tk-other-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.tk-other-row a:hover { text-decoration: underline; }

/* T3: Compact 2-Column Hairline Directory */

@media (max-width: 1080px) {
  .promises-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .promise-card { flex: 0 0 200px; scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .hero-grid, .how-layout, .games-grid, .next-games-grid, .ify-row1, .ify-signals-grid, .ify-row2, .ify-our-take-card, .parlett-box, .bid-stage { grid-template-columns: 1fr; }
  .featured-grid, .finder-results { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .feat-card { flex: 0 0 82vw; scroll-snap-align: start; }
  .finder-results .game-card { flex: 0 0 78vw; }
  .modal-dialog { flex-direction: column; max-height: 92svh; overflow-y: auto; padding: 20px; gap: 16px; }
  .modal-video-wrap { width: min(250px, 68vw); }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .nav-cta { display: none; }
  .nav-wordmark { font-size: 17.5px; }
  .fold { padding-top: calc(var(--nav-h) + 18px); padding-bottom: 20px; }
  .sub-nav .sub-brand span:last-child { display: none; }
  .hero-headline, h1 { font-size: 2.25rem; margin-bottom: 12px; }
  .lede { font-size: 15px; margin-bottom: 18px; }
  .phone-frame { width: 174px; border-radius: 26px; padding: 6px; }
  .phone-screen { border-radius: 20px; }
  .feat-shot { height: 215px; padding: 12px; }
  .v-card { height: 92px; }
  .v-cambio .v-card { height: 64px; }
  .v-brummy .v-card { height: 46px; }
  .v-caption { font-size: 12px; padding: 3px 10px; bottom: 10px; }
  .bid-card-slot img { width: 68px; }
  .how-video-frame { height: min(420px, 54vh); border-radius: 18px; }
  .ify-mobile-tabs { display: flex; }
  .ify-panel-b { display: none; }
  .is-it-for-you.show-b .ify-panel-a { display: none; }
  .is-it-for-you.show-b .ify-panel-b { display: block; }
  .ify-headline { font-size: 2rem; }
  .ify-our-take-card { padding: 18px 16px; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer a { margin-left: 0; margin-right: 16px; }
}

/* ─── PHASE 1: MINIMALISM OPTIONS SHOWCASE & REUSABLE PATTERNS ─── */

/* Option A1: Zero Wall Handoff */

/* Option A2 / B2: Quiet Hairline Editorial Index (Zero Boxes) */
.ed-index { border-top: 1px solid var(--border-mid); }
.ed-row {
  display: grid; grid-template-columns: minmax(190px, 1.15fr) minmax(0, 1.8fr) 7.5em auto;
  align-items: center; gap: 18px;
  padding: 14px 8px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background 0.18s ease;
}
.ed-row:hover { background: rgba(244, 239, 225, 0.035); }
.ed-game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ed-game img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border-mid); flex-shrink: 0; }
.ed-name { font-family: var(--f-display); font-size: 18px; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-hook { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-seats { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.ed-arrow { color: var(--muted-dim); font-size: 14px; transition: transform 0.18s ease, color 0.18s ease; }
.ed-row:hover .ed-arrow { color: var(--cream); transform: translateX(3px); }

/* Option A3: Curated 6-Card Shelf */

/* Option B1: Apple-Style 3-Game Side-by-Side Compare */

/* Option B2 & B3: Grouped Directory + Pin Tray */

/* ─── 5-CARD SELECTOR + HORIZONTAL DISCLOSURE SHELF (HOME) ─── */
.fam-select-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fam-select-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 18px 18px; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 196px; text-align: left; color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.fam-select-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0.55; transition: opacity 0.2s ease, height 0.2s ease; }
.fam-select-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.fam-select-card.active {
  background: var(--card-hi); border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.fam-select-card.active::before { opacity: 1; height: 3px; }
.fam-select-card .fam-line { margin-bottom: 14px; }
.fam-select-lead {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}
.fam-select-lead-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fam-select-lead img { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-mid); flex-shrink: 0; }
.fam-select-lead strong { color: var(--cream); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-select-cue { font-size: 12px; font-weight: 500; color: var(--accent-text); white-space: nowrap; opacity: 0; transition: opacity 0.18s ease; }
.fam-select-card.active .fam-select-cue { opacity: 1; }

.shelf-drawer {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-mid);
}
.shelf-drawer-panel { display: none; }
.shelf-drawer-panel.active { display: block; }
.shelf-drawer-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.shelf-drawer-meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shelf-drawer-meta strong { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--cream); }
.shelf-drawer-meta a { font-size: 13.5px; color: var(--gold); text-decoration: none; font-weight: 500; }
.shelf-drawer-meta a:hover { text-decoration: underline; }
.shelf-arrows { display: inline-flex; align-items: center; gap: 8px; }
.shelf-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-mid); background: var(--card); color: var(--cream);
  font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.shelf-arrow:hover { border-color: var(--gold); background: var(--card-hi); }

.h-shelf {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 2px 0 6px;
}
.h-shelf::-webkit-scrollbar { display: none; }
.h-shelf-card {
  flex: 0 0 calc((100% - 32px) / 2.35);
  min-width: 280px; max-width: 440px;
  scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: 15px;
  padding: 18px 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 118px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-shelf-card:hover { transform: translateY(-2px); border-color: var(--border-hi); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26); }
.h-shelf-guide {
  flex: 0 0 calc((100% - 32px) / 2.35);
  min-width: 280px; max-width: 440px;
  scroll-snap-align: start;
  background: transparent; border: 1px dashed var(--border-mid); border-radius: 15px;
  padding: 18px 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 118px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.h-shelf-guide:hover { border-color: var(--gold); background: rgba(234, 200, 115, 0.04); }
.h-shelf-guide strong { font-family: var(--f-display); font-size: 18px; font-weight: 400; color: var(--gold); }
.h-shelf-guide span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.md-handoff {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-mid);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.md-handoff-copy { font-size: 14.5px; color: var(--muted); }
.md-handoff-copy strong { color: var(--cream); font-weight: 500; }

/* ─── PROGRESSIVE-DISCLOSURE COMPARE DIRECTORY (/compare/) ─── */
.cmp-head-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin: 28px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.cmp-fam { margin-bottom: 34px; }
.cmp-fam-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.cmp-fam-head h2 {
  font-family: var(--f-display); font-size: 24px; font-weight: 400; color: var(--cream);
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
}
.cmp-fam-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cmp-fam-head a { font-size: 13px; color: var(--muted); text-decoration: none; }
.cmp-fam-head a:hover { color: var(--gold); }
.cmp-more-wrap { display: none; }
.cmp-fam.expanded .cmp-more-wrap { display: block; }
.cmp-expand-btn {
  margin-top: 10px; min-height: 40px; padding: 0 14px; border-radius: 100px;
  border: 1px solid var(--border-mid); background: transparent; color: var(--muted);
  font-family: var(--f-body); font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.18s ease, color 0.18s ease;
}
.cmp-expand-btn:hover { border-color: var(--gold); color: var(--cream); }

/* ─── CLEAN UTILITY INDEX (SUPPORT / PRIVACY) ─── */
.util-list { border-top: 1px solid var(--border-mid); margin-top: 24px; }
.util-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 6px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--cream); transition: background 0.18s ease;
}
.util-row:hover { background: rgba(244, 239, 225, 0.035); }
.util-row-left { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 18px; }
.util-row-left img { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-mid); }
.util-row-right { font-size: 13px; color: var(--muted); }

/* ─── STORY EDITORIAL OPTIONS (S1 KINFOLK / S2 AESOP / S3 MONOCLE) ─── */

/* S1: Kinfolk Single-Column Alternating Rhythm */
.s1-rail { width: 100%; max-width: 640px; margin: 0 auto; }
.s1-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.s1-rail h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 340; color: var(--cream); line-height: 1.12; margin-bottom: 18px; }
.s1-beat { font-size: 17.5px; line-height: 1.72; color: rgba(244, 239, 225, 0.88); margin-bottom: 36px; }
.s1-beat strong { color: var(--cream); font-weight: 500; }
.s1-beat em { font-family: var(--f-display); font-size: 1.06em; color: var(--cream); }
.s1-fig { margin: 40px 0 44px; }
.s1-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--border); }
.s1-fig figcaption { font-family: var(--f-display); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 10px; }
.s1-divider { border: 0; border-top: 1px solid var(--border-mid); margin: 44px 0; }

/* S2: Aesop Short Chunks + Small Margin Vignettes */

/* S3: Monocle Uninterrupted Essay + 3-Photo Contact Strip */

/* ─── TRICK-TAKING DE-CLUTTER OPTIONS (/tricks-options/) ─── */
.tk-band { padding: clamp(56px, 8vh, 88px) var(--gutter); border-bottom: 1px solid var(--border); }
.tk-band.alt { background: var(--surface); }

/* Clean Un-Boxed 3-Card Table Stage */
.tk-open-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.tk-open-copy p { font-size: 16.5px; line-height: 1.68; color: var(--muted); max-width: 48ch; margin-bottom: 14px; }
.tk-open-copy p strong { color: var(--cream); font-weight: 500; }
.tk-cards-float {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px; border-radius: 18px;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(26, 74, 54, 0.65), transparent 80%);
}
.tk-cards-trio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.2vw, 26px); }
.tk-card-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tk-card-item img {
  width: clamp(82px, 9.5vw, 108px); aspect-ratio: 5 / 7; object-fit: contain; border-radius: 8px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}
.tk-card-item.win img {
  transform: translateY(-8px);
  filter: drop-shadow(0 0 14px rgba(234, 200, 115, 0.42)) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
}
.tk-card-lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }
.tk-card-lbl strong { display: block; color: var(--cream); font-weight: 500; font-size: 12.5px; }
.tk-card-item.win .tk-card-lbl strong { color: var(--gold); }
.tk-cards-caption { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--muted); text-align: center; }

/* Open Hairline Instincts (Zero Boxes) */
.tk-instincts-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--border-mid); margin-top: 24px;
}
.tk-instinct {
  padding: 22px 22px 6px 0; border-right: 1px solid var(--border);
}
.tk-instinct:not(:first-child) { padding-left: 22px; }
.tk-instinct:last-child { border-right: 0; padding-right: 0; }
.tk-instinct-num { font-family: var(--f-display); font-size: 13px; color: var(--accent-text); margin-bottom: 6px; }
.tk-instinct h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.tk-instinct p { font-size: 14px; line-height: 1.52; color: var(--muted); }

/* Open Cream Oxford Dictionary Glossary (Zero White Boxes) */
.tk-dict-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px; border-top: 1px solid rgba(30, 28, 20, 0.16); margin-top: 20px;
}
.tk-dict-item {
  padding: 18px 0; border-bottom: 1px solid rgba(30, 28, 20, 0.12);
  display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline;
}
.tk-dict-item dt { font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--ink); }
.tk-dict-item dd { font-size: 14.5px; line-height: 1.55; color: rgba(30, 28, 20, 0.74); }
.tk-other-row {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  font-size: 14px; color: rgba(30, 28, 20, 0.62);
}
.tk-other-row a { color: var(--ink); text-decoration: none; font-weight: 500; }
.tk-other-row a:hover { text-decoration: underline; }

/* T3: Compact 2-Column Hairline Directory */

@media (max-width: 1080px) {
  .fam-select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fam-select-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding-bottom: 4px; }
  .fam-select-grid::-webkit-scrollbar { display: none; }
  .fam-select-card { flex: 0 0 220px; min-height: 174px; scroll-snap-align: start; }
  .h-shelf-card, .h-shelf-guide { flex: 0 0 82%; min-width: 250px; }
  .ed-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .ed-seats { text-align: left; }
  .ed-hook { grid-column: 1 / -1; white-space: normal; font-size: 13px; }
  .tk-open-grid, .tk-instincts-grid, .tk-dict-grid { grid-template-columns: 1fr; }
  .tk-instinct { border-right: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .tk-instinct:not(:first-child) { padding-left: 0; }
  .tk-dict-item { grid-template-columns: 1fr; gap: 4px; }
}

/* Added after the port from the prototype. */

/* A game's own moment in the prototype's stage (site/pages/drawings.js sceneStage). */
.sc-zones{display:flex;flex-direction:column;align-items:center;gap:16px;padding:6px 0 18px}
.sc-zone{display:flex;flex-direction:column;align-items:center;gap:8px}
.sc-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.sc-row{display:flex;justify-content:center;gap:10px}
.sc-row .v-card{height:clamp(84px,13vh,118px)}
.sc-row.sc-many{gap:0}.sc-row.sc-many .sc-slot+.sc-slot{margin-left:-22px}.sc-row.sc-many .v-card{height:clamp(70px,10.5vh,96px)}
.sc-slot{position:relative;display:block;border-radius:8px}
.sc-slot.sc-no .v-card{outline:2px solid var(--arith-text);outline-offset:2px}
.sc-slot.sc-no::after{content:"×";position:absolute;top:-9px;right:-9px;width:22px;height:22px;border-radius:50%;background:var(--arith);color:var(--cream);font-size:14px;line-height:22px;text-align:center}
.sc-grid{display:grid;grid-template-columns:repeat(var(--cols),auto);gap:6px}
.sc-grid .v-card{height:clamp(50px,7.6vh,68px);border-radius:5px}
.sc-cell{position:relative;display:block;min-width:36px}
.sc-cell.sc-tracker .v-card{filter:drop-shadow(0 0 12px rgba(234,200,115,.6))}
.sc-cell.sc-tracker::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;background:var(--gold);box-shadow:0 2px 6px rgba(0,0,0,.5)}
.sc-cell.sc-place{border:1px dashed var(--border-hi);border-radius:5px}

/* Pictures carry their real width and height so the page can hold their place. The rules above
   still set the size shown: where they leave a side unset, it follows the picture's own shape. */
:where(img) { width: auto; height: auto; }
@media (max-width: 600px) {
  /* a row of cards never runs wider than the phone: the cards shrink to fit */
  .sc-row .v-card { height: min(118px, calc((100vw - 100px - (var(--n) - 1) * 10px) / var(--n) * 1.4)); }
  .sc-row.sc-many .v-card { height: min(96px, calc((100vw - 100px + (var(--n) - 1) * 22px) / var(--n) * 1.4)); }
}
@media (max-width: 420px) {
  /* The sum on the Arithmetic page (three cards, the signs and the total) was wider than a phone,
     so the whole page slid sideways and the Menu button was cut off. The cards shrink to fit. */
  :is(.trick-stage, .tk-cards-float) .vignette-stage:has(.v-seal) { gap: 4px; }
  :is(.trick-stage, .tk-cards-float) .vignette-stage:has(.v-seal) .v-card { height: min(92px, calc((100vw - 220px) / 3 * 1.4)); }
}

/* Support and privacy pages: each app's own words (site/pages/app-docs.js) in the site's document look. */
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--cream); margin: 38px 0 10px; }
.legal h3 { font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--cream); margin: 24px 0 6px; }
.legal :where(p, li, td, summary) { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal :where(p) + :where(p) { margin-top: 10px; }
.legal :where(a):not([class]) { color: var(--gold); text-decoration: none; }
.legal :where(a):not([class]):hover { text-decoration: underline; }
.legal:not(.legal-own) :where(strong, b) { color: var(--cream); font-weight: 500; }
.legal :where(ul, ol) { padding-left: 20px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal ul.no-marker { list-style: none; padding-left: 0; }
.legal .card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.legal td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.legal td:last-child { text-align: right; color: var(--cream); white-space: nowrap; padding-left: 16px; }
.legal .updated, .legal .muted, .legal small, .legal :where(footer) p { font-size: 14px; color: var(--muted-dim); }
.legal :where(footer) { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--border); }
.legal details { border-bottom: 1px solid var(--border); }
.legal summary { cursor: pointer; color: var(--cream); padding: 12px 0; min-height: 44px; }
.legal .doc-card :where(a):not([class]) { color: var(--gold); }
/* Ninety-Nine's hand-made rules page: its own drawings and their styles, set on this site's colours and type. */
.legal-own { --bg: transparent; --surface: var(--card); --felt: rgba(244, 239, 225, 0.05); --ink: var(--cream); --ink-soft: var(--muted);
  --rule: var(--border-mid); --accent: #9AD0B2; --accent-ink: #12201A; --accent-mid: #5E8F76; --accent-pale: #3B5A4A; --miss: #E8756B;
  --card-face: #EFE9DA; --card-edge: #8C8672; --card-ink: #1F231F; --suit-red: #B3261E; --suit-black: #1F231F;
  --display: var(--f-display); --body: var(--f-body); }
.legal.legal-own h1, .legal.legal-own h2, .legal.legal-own h3 { font-weight: 400; }

/* Layout fixes the owner approved from before-and-afters (tracker, 2026-11-22). */
/* Pills, tags and buttons that wrap share their lines evenly: never one alone on the last line. */
.finder-pills, .ify-context-tags { display: block; text-wrap: balance; }
.finder-pills > * { display: inline-flex; align-items: center; vertical-align: top; margin: 0 8px 8px 0; }
.finder-pills { margin-bottom: 12px; }
.ify-context-tags > * { display: inline-block; margin: 0 6px 6px 0; }
.ify-context-tags { margin-bottom: -6px; }
/* A short last row sits in the middle, not at the left with a hole beside it. */
@media (min-width: 901px) {
  .games-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .games-grid > * { flex: 0 0 calc((100% - 32px) / 3); }
}

/* The owner's tap rule (tracker, type-floor): every button and link that stands on its own can be
   hit across at least 44px of height. The extra area is invisible, so nothing looks different.
   Links inside a sentence are left alone. */
:where(a, button, summary):not(:where(p, h1, h2, h3, figcaption, blockquote) > a) { position: relative; }
:where(a, button, summary):not(:where(p, h1, h2, h3, figcaption, blockquote) > a)::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }

/* The matched stand-in fonts (v3-fonts.css) sit between each font and the system's. */
:root { --f-display: "Newsreader", "Newsreader Fallback", Georgia, serif; --f-body: "Satoshi", "Satoshi Fallback", system-ui, -apple-system, sans-serif; }

/* Faults the end-of-migration QA found (2026-11-22).
   The menu's underline is its own ::after; the tap-area rule above must not move it to mid-height. */
.nav-links a::after { top: auto; }
/* The game page's sticky Get button took the strip's muted link colour: 2.0:1 on cream. Ink, as in the main menu. */
.sub-nav a.nav-cta, .sub-nav a.nav-cta:hover { color: #1E1C14; }
/* Ninety-Nine's own rules page remaps --ink to cream, which blanked the solid button under it. */
.legal-own .btn-solid { color: #1E1C14; }

/* The minimal version (2026-11-22): two findings of the layout check, cured the way the owner
   approved for the first port (a short last row sits in the middle; chips share their lines). */
@media (min-width: 901px) and (max-width: 1080px) {
  .fam-select-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .fam-select-grid > * { flex: 0 0 calc((100% - 28px) / 3); }
}
.cmp-head-bar .lib-filters { display: block; text-wrap: balance; margin-bottom: -7px; }
.cmp-head-bar .lib-filters > * { margin: 0 4px 7px 0; vertical-align: top; }

/* The sum in the Arithmetic picture: "×2 +" stays on one line. */
.v-op { white-space: nowrap; }

/* Cards the home page's buttons show and hide (featured, finder) are all in the page from the start. */
.feat-card[hidden], .game-card[hidden] { display: none; }

/* ─── DAVID PARLETT'S SEAL (his games only; parlettSeal and parlettLockup in site/pages/shared.js) ── */
.auth-lockup-row { container-type: inline-size; margin: 2px 0 18px; }
.auth-lockup { display: inline-block; vertical-align: top; border-radius: 28px; transition: transform 0.2s ease, filter 0.2s ease; }
.auth-lockup svg { display: block; height: auto; overflow: visible; }
.auth-lockup .pl-wide { width: min(100cqw, 540px); }
.auth-lockup .pl-narrow { display: none; width: min(100cqw, 380px); }
@container (max-width: 499.98px) {
  .auth-lockup .pl-wide { display: none; }
  .auth-lockup .pl-narrow { display: block; }
}
@media (hover: hover) and (pointer: fine) { .auth-lockup:hover { transform: translateY(-1px); filter: brightness(1.08); } }
.parlett-box.has-seal { grid-template-columns: auto 1.15fr 0.85fr; }
.inventor-seal { display: block; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.42)); }
@media (max-width: 900px) {
  .parlett-box.has-seal { grid-template-columns: 1fr; gap: 24px; }
  .inventor-seal { width: 148px; height: 148px; }
}

/* Home: the plaque centred under the hero line; one line from 500px, as on the game pages. */
.auth-lockup-row.is-home { width: 100%; align-self: stretch; text-align: center; margin: 0 0 clamp(12px, 1.8vh, 18px); }
.auth-lockup-row.is-home .pl-wide { width: min(100cqw, 550px); }
/* Our story: the seal as a colophon between two hairlines, under The Inventor. */
.s1-colophon { display: flex; align-items: center; gap: 22px; margin: -6px 0 4px; }
/* The seal's hairlines are the rule before the sign-off: no second line, and the same 30px above and below it. */
.s1-colophon + .signoff { border-top: 0; padding-top: 0; }
.s1-colophon span { flex: 1; border-top: 1px solid var(--border-mid); }
.story-seal { flex: none; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.42)); }
@media (max-width: 600px) { .story-seal { width: 148px; height: 148px; } }
