/* ---- tokens.css ---- */
/* Three Tigers design tokens — from the app's Theme.swift via the handoff README. */
:root {
  --navy-900: #0B1720;      /* page background */
  --navy-800: #132431;      /* alternate section */
  --navy-700: #263C4C;
  --cream: #F1E9DA;         /* text on dark */
  --cream-2: #D8D2C6;       /* secondary text on dark */
  --card-top: #FBF6EA;      /* cream card gradient start */
  --ink: #2E2B27;           /* text on cream */
  --ink-2: #5A554E;         /* secondary text on cream */
  --brass: #D6AE60;
  --brass-text: #F2D28F;
  --brass-dark: #8A6A22;
  --brass-ink: #7A5D1E;     /* links/eyebrows on cream: 5.1:1 on #F1E9DA (AA); #8A6A22 is 4.2:1 */
  --gold-highlight: #F8D98C;
  --gold-shade: #BE9148;
  --lamp: #F2B950;
  --kumkum: #B3312B;
  --kumkum-on-dark: #D4483F;

  --hair-22: rgba(241,233,218,.22);
  --hair-18: rgba(241,233,218,.18);
  --hair-28: rgba(241,233,218,.28);
  --hair-35: rgba(241,233,218,.35);
  --chip-fill: rgba(241,233,218,.10);
  --glass-fill: rgba(241,233,218,.06);
  --divider-ink: rgba(46,43,39,.14);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Helvetica Neue", Helvetica, "Anek Tamil", sans-serif;

  --grad-section: linear-gradient(180deg, #0B1720, #132431);
  --grad-card: linear-gradient(180deg, #FBF6EA, #F1E9DA);

  --shadow-card: 0 14px 34px rgba(0,0,0,.35);
  --shadow-shot: 0 18px 40px rgba(0,0,0,.45);
  --shadow-shot-lg: 0 30px 60px rgba(0,0,0,.5);

  --pad-x: clamp(20px, 5vw, 64px);
  --header-h: 78px;
  --ease-reveal: cubic-bezier(.2,.7,.2,1);
}

/* Display face: SemiBold self-hosted (OFL). 500 and italic 500 arrive from Google Fonts (see head). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/CormorantGaramond-SemiBold.woff") format("woff");
}
/* Tamil glyphs for ஆடு புலி ஆட்டம் — only fetched when a Tamil character is rendered. */
@font-face {
  font-family: "Anek Tamil";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/AnekTamil-subset.woff") format("woff");
  unicode-range: U+0B80-0BFF;
}
@media (max-width: 767px) { :root { --header-h: 62px; } }

/* ---- base.css ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass-text); }
p, h1, h2, h3, ul, figure { margin: 0; }
img, svg { display: block; }
picture { display: contents; } /* the <img> is the box; keeps <picture> out of flex/grid flow */
picture > source { display: none; } /* otherwise an empty <source> becomes a phantom flex item */
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-text); outline-offset: 2px; }
.card :focus-visible { outline-color: var(--brass-ink); }

.display { font-family: var(--font-display); }
.pretty { text-wrap: pretty; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad-x); }
.bg-900 { background: var(--navy-900); }
.bg-800 { background: var(--navy-800); }
.bg-grad { background: var(--grad-section); }

.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text); }
.card .eyebrow, .eyebrow--ink { color: var(--brass-ink); }
.h2 { font-family: var(--font-display); font-size: clamp(38px, 4.2vw, 54px); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.link { color: var(--brass-text); border-bottom: 1px solid rgba(242,210,143,.5); }
.link:hover { color: var(--brass-text); }
.card .link, .link--ink { color: var(--brass-ink); border-bottom-color: rgba(122,93,30,.5); }
.card .link:hover, .link--ink:hover { color: var(--brass-ink); }
.stack { display: flex; flex-direction: column; }
.center { align-items: center; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll reveal. `reveal-ready` is added to <html> by an inline head script only when
   IntersectionObserver exists and reduced motion is off, so content is visible without JS. */
/* Reveals animate the individual `translate` property so hover `transform`s on the same element still work afterwards. */
.reveal-ready [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease-reveal), translate .9s var(--ease-reveal); }
.reveal-ready [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; translate: none; transition: none; } }

/* Staggered reveal: children of [data-stagger] (motion.js sets --i and .stagger-item) rise one after another. */
.reveal-ready [data-stagger] .stagger-item { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease-reveal) calc(var(--i, 0) * 80ms), translate .7s var(--ease-reveal) calc(var(--i, 0) * 80ms), transform .35s ease, box-shadow .35s ease; }
.reveal-ready [data-stagger].is-in .stagger-item { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-stagger] .stagger-item { opacity: 1; translate: none; transition: none; } }

/* Reduced motion: every decorative animation/transition collapses to an instant state change. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Print: dark text on white, no scenery or chrome. */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .page-hero__img, .page-hero__overlay, .hero__media, .hero__overlay, .hero__glow, .badge, .glass { display: none !important; }
  .page-hero, .hero { background: #fff; color: #000; min-height: 0; }
  .page-hero__title h1, .page-hero__sub, .page-hero__updated, .eyebrow { color: #000; text-shadow: none; }
  .card, .article { box-shadow: none; background: #fff; border: 1px solid #ccc; }
  .reveal-ready [data-reveal], .reveal-ready [data-stagger] .stagger-item { opacity: 1; transform: none; }
}

/* ---- components.css ---- */
/* ---- Kolam ornament ---- */
.kolam { width: 30px; height: 30px; flex: none; }
.ornament { display: flex; align-items: center; gap: 18px; width: min(420px, 80%); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--hair-35); }

/* ---- Header / nav: fixed, transparent over the hero, translucent once scrolled ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 0 var(--pad-x); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(11,23,32,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(241,233,218,.08); opacity: 0; transition: opacity .3s ease; }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-header__inner { position: relative; max-width: 1280px; margin: 0 auto; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); font-size: 14px; color: var(--cream-2); }
.nav a { position: relative; padding-bottom: 2px; }
.nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass-text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-reveal); }
.nav a:not(.pill):hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brass-text); }
.nav .pill { padding: 9px 16px; border: 1px solid var(--hair-35); border-radius: 999px; color: var(--cream); }
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; color: var(--cream); cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .is-open .nav-toggle__bar { background: transparent; }
  .is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .is-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .js .nav { display: none; position: absolute; top: 100%; left: calc(-1 * var(--pad-x)); right: calc(-1 * var(--pad-x)); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--pad-x) 18px; background: rgba(11,23,32,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(241,233,218,.1); }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav a:not(.pill) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(241,233,218,.08); }
  .js .nav a:not(.pill)::after { display: none; }
  .js .nav .pill { margin-top: 14px; align-self: flex-start; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---- Inner-page header on the temple scenery ---- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,32,.55) 0%, rgba(11,23,32,.35) 40%, #0B1720 100%); }
.page-hero__title { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) var(--pad-x) clamp(48px, 6vw, 72px); }
.page-hero__title h1 { font-family: var(--font-display); font-size: clamp(48px, 7vw, 92px); font-weight: 600; line-height: .95; letter-spacing: -.01em; text-wrap: balance; }
.page-hero__title h1.legal-title { font-size: clamp(44px, 6.5vw, 84px); }
.page-hero__sub { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); color: var(--brass-text); text-wrap: balance; }
.page-hero__updated { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }

/* ---- Buttons ---- */
.badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .25s ease; }
.badge img { height: 54px; width: auto; display: block; }
.badge:hover { transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid rgba(46,43,39,.35); border-radius: 10px; font-size: 15px; color: var(--ink); align-self: flex-start; transition: border-color .2s ease; }
.btn-outline:hover { color: var(--ink); border-color: var(--brass-ink); }
.btn-brass { border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 12px; background: linear-gradient(180deg, var(--gold-highlight), var(--brass)); color: var(--ink); font-size: 17px; font-weight: 600; box-shadow: 0 3px 0 var(--gold-shade); }
.btn-brass:hover { color: var(--ink); filter: brightness(1.04); }
.btn-brass:active { box-shadow: none; transform: translateY(3px); }
.btn-brass[aria-disabled="true"], .btn-brass:disabled { opacity: .5; pointer-events: none; cursor: default; box-shadow: 0 3px 0 var(--gold-shade); transform: none; }

/* ---- Cards, panels, chips ---- */
.card { background: var(--grad-card); border-radius: 18px; color: var(--ink); box-shadow: var(--shadow-card); }
.card--r16 { border-radius: 16px; }
.card h2, .card h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.glass { background: var(--glass-fill); border: 1px solid var(--hair-18); border-radius: 22px; padding: clamp(18px, 2.5vw, 28px); max-width: 560px; width: 100%; justify-self: center; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border: 1px solid var(--hair-28); border-radius: 999px; background: rgba(241,233,218,.08); }
.chip .name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.chip .lang { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }
.tag { padding: 6px 12px; border: 1px solid var(--hair-28); border-radius: 999px; font-size: 14px; color: var(--cream); }
.dark-card { background: var(--chip-fill); border: 1px solid var(--hair-18); border-radius: 16px; }

/* ---- FAQ accordion ---- */
.faq { padding: 8px clamp(20px, 3vw, 36px); }
.faq__item { border-bottom: 1px solid var(--divider-ink); }
.faq__q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.faq__q .q { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.faq__sym { font-size: 24px; color: var(--brass-ink); width: 28px; text-align: center; flex: none; }
.faq__a { padding: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 680px; }
.faq__a[hidden] { display: none; }
.faq__q:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
@media (max-width: 479px) { .faq__q .q { font-size: 22px; } }

/* ---- Footer ---- */
.site-footer { padding: 96px var(--pad-x) 40px; background: var(--navy-900); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.site-footer h2 { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 48px); font-weight: 600; line-height: 1.05; }
.site-footer nav { display: flex; gap: clamp(16px, 2.5vw, 28px); font-size: 14px; color: var(--cream-2); flex-wrap: wrap; justify-content: center; }
.site-footer nav a[aria-current="page"] { color: var(--brass-text); }
.site-footer--home nav { padding-top: 24px; }
.site-footer--inner { padding-top: 80px; gap: 24px; }
.site-footer--inner h2 { font-size: clamp(28px, 3vw, 36px); }
.site-footer .disclaimer { font-size: 13px; line-height: 1.6; color: var(--cream-2); max-width: 640px; }
.site-footer .copyright { font-size: 13px; color: var(--cream-2); }

/* ---- board.css ---- */
/* ---- Playable board (dark theme) ---- */
@keyframes tt-draw { to { stroke-dashoffset: 0; } }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }

.board { display: flex; flex-direction: column; gap: 14px; color: var(--cream); width: 100%; font-family: var(--font-body); }
.board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.board__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.005em; }
.board__meta { display: flex; gap: 14px; align-items: baseline; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-2); }
.board__turn { color: var(--lamp); }
.board__turn:empty { display: none; }
.board__svg { width: 100%; height: auto; display: block; overflow: visible; }
.board__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--hair-22); border-radius: 999px; padding: 3px; background: var(--chip-fill); }
.seg { min-height: 36px; }
.seg button { border: 0; border-radius: 999px; padding: 8px 18px; min-height: 32px; font: inherit; font-size: 14px; cursor: pointer; background: transparent; color: var(--cream); transition: background .2s; }
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.board__btns { display: flex; gap: 8px; }
.pill-btn { border: 1px solid var(--hair-22); border-radius: 999px; padding: 9px 18px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer; background: var(--chip-fill); color: var(--cream); }
.pill-btn:disabled { opacity: .4; cursor: default; }
.board__hint { font-size: 13px; line-height: 1.5; color: var(--cream-2); min-height: 1.5em; }

/* SVG parts */
.board__line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: tt-draw 1s cubic-bezier(.4,0,.2,1) forwards; }
.board__fade { animation: tt-fade .6s ease .9s both; }
.board__node { cursor: default; outline: none; }
.board__node.is-active { cursor: pointer; }
.board__node .hit { r: 15px; fill: transparent; }
.board__focus { pointer-events: none; }
.board__focus-halo { stroke: #F8EBD0; stroke-width: 6px; }
.board__focus-ring { stroke: #6B4A2A; stroke-width: 2.5px; }
.board__node .dot { transition: r .2s ease, fill .2s ease; }
.board__piece { transition: transform .38s cubic-bezier(.2,.7,.2,1), opacity .35s ease; pointer-events: none; }
/* Capture flourish and tigers'-turn breathing use the individual `scale` property so they compose with the position transform. */
@keyframes tt-pounce { 0% { scale: 1; } 40% { scale: 1.32; } 100% { scale: 1; } }
@keyframes tt-ripple { from { r: 15px; opacity: .9; } to { r: 40px; opacity: 0; } }
@keyframes tt-breathe { 50% { scale: 1.07; } }
.board__piece.is-pounce { animation: tt-pounce .5s cubic-bezier(.2,.7,.2,1); }
.board__ripple { fill: none; stroke: #D4483F; stroke-width: 3px; pointer-events: none; animation: tt-ripple .65s ease-out forwards; }
.board.is-tigers-turn:not(.is-over) .board__piece--tiger { animation: tt-breathe 1.8s ease-in-out infinite; }
.board__fade.board__pieces { animation-delay: .9s; }
@media (hover: none) and (pointer: coarse) { .board__node .hit { r: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .board__line { animation: none; stroke-dashoffset: 0; }
  .board__fade { animation: none; }
  .board__piece, .board__node .dot { transition: none; }
  .board__piece.is-pounce, .board__ripple, .board.is-tigers-turn:not(.is-over) .board__piece--tiger { animation: none; }
}

/* ---- pages.css ---- */
/* ===================== Home ===================== */
.hero { position: relative; min-height: max(760px, min(840px, 100svh)); overflow: hidden; background: var(--navy-900); display: flex; flex-direction: column; justify-content: space-between; padding-top: var(--header-h); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
/* The scenery dims at the top for the nav and dissolves completely into the page before the section ends. */
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,32,.86) 0%, rgba(11,23,32,.45) 28%, rgba(11,23,32,0) 48%, rgba(11,23,32,.5) 70%, rgba(11,23,32,.88) 86%, #0B1720 97%); }
.hero__glow { position: absolute; left: 50%; bottom: -120px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(242,185,80,.22), rgba(242,185,80,0) 70%); opacity: .6; pointer-events: none; }
/* Auto margins split the free space above the title and between the blocks equally, matching the handoff layout that had the nav in flow. */
.hero__title { position: relative; margin-top: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(24px, 6vh, 60px) var(--pad-x) 0; }
.hero__title h1 { font-family: var(--font-display); font-size: clamp(60px, 9.2vw, 118px); font-weight: 600; line-height: .95; letter-spacing: -.01em; color: var(--cream); text-shadow: 0 2px 24px rgba(11,23,32,.8); }
.hero__sub { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.5vw, 32px); color: var(--brass-text); text-shadow: 0 2px 18px rgba(11,23,32,.85); }
.hero__bottom { position: relative; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding: clamp(120px, 22vh, 220px) var(--pad-x) 56px; }
.hero__promo { max-width: 660px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--cream); text-shadow: 0 1px 14px rgba(11,23,32,.8); }
.hero__cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
/* Intro: the nav fades, then the ornament, title, subtitle, promo and badge rise in sequence (--i set in the markup). */
@keyframes tt-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-line { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .site-header { animation: tt-fade .8s ease both; }
  .hero__title > *, .hero__bottom > * { animation: tt-rise .9s var(--ease-reveal) both; animation-delay: calc(.2s + var(--i, 0) * .14s); }
  .ornament::before, .ornament::after { transform: scaleX(0); animation: tt-line .9s var(--ease-reveal) .35s forwards; }
  .ornament::before { transform-origin: right; }
  .ornament::after { transform-origin: left; }
}

/* Play a round */
.play { padding-top: 104px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: start; }
.play__text { display: flex; flex-direction: column; gap: 36px; padding-top: 12px; }
.play__head { display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.step__n { font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; color: var(--brass); }
.step__body { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.step__body h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; line-height: 1.1; }
.step__body p { font-size: 16px; line-height: 1.55; color: var(--cream-2); }
.play__note { font-size: 14px; line-height: 1.5; color: var(--cream-2); border-top: 1px solid var(--hair-22); padding-top: 18px; }

/* Play your way */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.modes { padding-top: 24px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 40px; }
.modes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.modes__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode-card { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s ease, box-shadow .35s ease; }
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.42); }
@media (max-width: 479px) { .modes__pair { grid-template-columns: 1fr; } }
.mode-card img { width: 92px; height: 92px; object-fit: contain; }
.mode-card h3 { font-size: 30px; line-height: 1.05; }
.mode-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.modes__note { text-align: center; font-size: 15px; line-height: 1.6; color: var(--cream-2); max-width: 760px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .mode-card { transition: none; } }

/* Heritage */
.heritage { position: relative; padding: clamp(96px, 12vw, 150px) var(--pad-x); overflow: hidden; background: var(--navy-900); }
.heritage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.heritage__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, #132431 0%, rgba(19,36,49,.35) 25%, rgba(11,23,32,.55) 70%, #0B1720 100%); }
.heritage__inner { position: relative; max-width: 840px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.heritage__quote { font-family: var(--font-display); font-size: clamp(26px, 2.9vw, 36px); line-height: 1.3; font-weight: 500; }
.heritage__body { font-size: 18px; line-height: 1.6; color: var(--cream-2); max-width: 680px; }
.heritage__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }

/* On iPhone */
.shots { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.shots__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.shots__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 18px; }
.shots__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shot { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.shot img { width: 100%; box-sizing: content-box; border-radius: 24px; border: 1px solid var(--hair-22); box-shadow: var(--shadow-shot); transition: transform .35s ease, box-shadow .35s ease; }
.shot:hover img { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 26px 50px rgba(0,0,0,.5); }
.shot figcaption { font-family: var(--font-display); font-size: 20px; line-height: 1.25; font-weight: 500; }

/* Friends and voice */
.friends { padding-top: 24px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.friends .card { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.friends h3 { font-size: 36px; line-height: 1.05; }
.friends p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Make the board your own */
.store { padding-top: 0; padding-bottom: 112px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; }
.store__text { display: flex; flex-direction: column; gap: 26px; }
.store__text > p { font-size: 17px; line-height: 1.6; color: var(--cream-2); max-width: 560px; }
.store__rows { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.store__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.store__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.store__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.store__shot { display: flex; justify-content: center; }
.store__shot img { width: min(300px, 80%); box-sizing: content-box; border-radius: 34px; border: 1px solid var(--hair-22); box-shadow: var(--shadow-shot-lg); }
.chip { transition: border-color .25s ease, background .25s ease; }
.chip:hover { border-color: var(--brass); background: rgba(241,233,218,.14); }

/* Questions */
.questions { padding-top: 0; padding-bottom: 112px; }
.questions--support { padding-top: 96px; padding-bottom: 104px; }
.questions__inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.questions__inner > .h2 { text-align: center; }
.questions__more { text-align: center; font-size: 15px; color: var(--cream-2); }
.support__meta { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; font-size: 14px; color: var(--cream-2); text-align: center; }

/* ===================== How to play ===================== */
.rules { padding-top: 24px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: start; }
/* Two 440px columns fit once the content column is ≥ 2×440 + gap, i.e. viewports ≥ ~1036px; sticky only then. */
@media (min-width: 1036px) { .rules > .glass { position: sticky; top: calc(var(--header-h) + 24px); } }
.rules .glass-note { font-size: 13px; line-height: 1.5; color: var(--cream-2); padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--hair-22); }
.rules__cards { display: flex; flex-direction: column; gap: 16px; }
.rule-card { padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.rule-card h2 { font-size: 30px; line-height: 1.05; }
.rule-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.variants { padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.variants h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.05; }
.variants p { font-size: 15px; line-height: 1.55; color: var(--cream); }
.variants p + p { font-weight: 600; }
.tutorial { padding-top: 88px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.tutorial .tutorial__icon { width: 120px; height: 120px; object-fit: contain; }
.tutorial h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.05; }
.tutorial p { font-size: 17px; line-height: 1.6; color: var(--cream-2); max-width: 560px; }
.tutorial .badge { margin-top: 8px; }

/* ===================== Support ===================== */
.support { padding-top: 24px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.contact { padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: center; }
.contact__text { display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.contact p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.contact__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-card { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.help-card h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.05; }
.help-card p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.contact__soon { font-size: 14px; color: var(--ink-2); text-align: right; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.topic { padding: clamp(22px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.topic h3 { font-size: 28px; line-height: 1.1; }
.topic p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ===================== Privacy / Terms ===================== */
.legal { padding-top: 24px; padding-bottom: 104px; }
.article { box-sizing: content-box; /* as the reference: 820px content + padding */ max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.article__lead { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.4; font-weight: 500; }
.article section { display: flex; flex-direction: column; gap: 12px; }
.article section.has-table { gap: 14px; }
.article h2 { font-size: 30px; line-height: 1.1; }
.article section p { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.dl { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); column-gap: 16px; border-top: 1px solid var(--divider-ink); margin: 0; }
.dl > div { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; padding: 14px 0; border-bottom: 1px solid var(--divider-ink); font-size: 15px; line-height: 1.55; }
.dl dt { font-weight: 600; }
.dl dd { margin: 0; color: var(--ink-2); }
@supports not (grid-template-columns: subgrid) {
  .dl { display: flex; flex-direction: column; }
  .dl > div { grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); column-gap: 16px; }
}
@media (max-width: 479px) { .dl, .dl > div { grid-template-columns: 1fr; } .dl > div { row-gap: 4px; } }

/* ===================== 404 ===================== */
.notfound { padding-top: 24px; padding-bottom: 104px; }
.notfound .card { max-width: 560px; margin: 0 auto; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }

/* ===================== Blog ===================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
/* Three-card strips: three across or one column, never 2 + 1. */
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .post-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 28px; transition: transform .35s ease, box-shadow .35s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.42); }
/* The title link is the only link; its pseudo-element makes the whole card clickable while the accessible name stays the title. */
.post-card .title a { color: inherit; }
.post-card .title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card .title a:focus-visible { outline: none; }
.post-card .title a:focus-visible::after { outline: 2px solid var(--brass-ink); outline-offset: -3px; border-radius: 18px; }
.post-card .meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-ink); }
.post-card .title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.post-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.post-card .more { margin-top: auto; padding-top: 6px; align-self: flex-start; font-size: 14px; color: var(--brass-ink); border-bottom: 1px solid rgba(122,93,30,.5); }
.blog-strip { padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.blog-index { padding-top: 24px; padding-bottom: 104px; }
.more-posts { padding-top: 88px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 40px; }
.post-article { gap: 24px; }
.post-body { display: flex; flex-direction: column; gap: 18px; }
.post-body h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; padding-top: 10px; }
.post-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.post-body p, .post-body li { font-size: 16px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
/* The opening paragraph reads as a display lead, like the Privacy and Terms cards. */
.post-body > p:first-child { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.4; font-weight: 500; color: var(--ink); }
.post-body > p:first-child em { font-weight: 500; }
.post-body strong { color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body blockquote { border-left: 3px solid var(--brass); padding-left: 18px; }
.post-body blockquote p { font-family: var(--font-display); font-size: 22px; line-height: 1.35; color: var(--ink); }
.post-body img { border-radius: 12px; }
.post-body hr { border: 0; border-top: 1px solid var(--divider-ink); }
.post-body code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: rgba(46,43,39,.06); padding: 1px 5px; border-radius: 4px; }
.post-nav { padding-top: 8px; font-size: 15px; }
