/* ==========================================================================
   Hearthkin Woods — shared stylesheet for every page in Website/public/
   except the home page, cinematics and wallpapers (they style themselves).

   2026-11-10: the token VALUES are Morning Hay (straw cream, leaf green, tomato red,
   Young Serif titles), picked on claude.ai/artifact/Qgew2PGrT1SiZ1LMoLqqgE. Before
   that, 2026-11-01: the token VALUES were the home page's dark Night Gold
   look (plum page, gold accent, rounded corners, soft shadows, no skew); the
   notes under this one describe the retired light "Slash Festival" and are
   kept only to explain the token NAMES. Section 17 at the end holds the home
   page's top bar and footer.

   2026-08-18 retheme: the page went from the dark "Dark Ember" wood/glass look
   back to LIGHT — cream paper, plum ink, and a festival-poster edge.

   The three rules that define it:
     1. ZERO border-radius. Everywhere. Sharp corners are the identity, so all
        --r-* tokens are 0 and stay 0.
     2. Hard OFFSET shadows (4px 4px 0 ink) instead of soft glows or blurs.
        The --glow-* tokens now carry offset shadows; the names are historical.
     3. Skew (-6deg) ONLY on buttons. It is applied to a ::before pseudo-element
        that carries the fill, border and shadow, so the parallelogram is skewed
        while the LABEL stays upright — that is why the markup needs no inner
        <span> counter-skew wrapper.

   As with the 2026-08-11 retheme, only token VALUES changed — every variable
   NAME is kept so ~1100 lines of usages stay valid, which means several names
   now carry a different semantic than they read:
     --parchment       is the cream page again (it always meant "page")
     --glass*          are SOLID white/cream fills, nothing is translucent
     --ghost-border    is solid plum ink, not a translucent rim
     --glow-*          are hard offset shadows, not glows
     --tint-sage       is a pale ember wash, not green
     --tint-sky        is a pale rose wash, not blue
     --primary         is the DARKENED ember that is safe as text on cream;
                       --primary-container / --primary-bright are the bright
                       ember used for FILLS. Same split for --secondary (gold)
                       and --tertiary (rose): the base name is text-safe, the
                       -container name is the poster-bright fill.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — cream page, white cards. Cards sit LIGHTER than the page so a
     2px ink border plus a hard cast is what separates them, not a fill shift. */
  --parchment:               #FFFFFF;
  --surface-lowest:          #FFFFFF;
  --surface-low:             #FFFFFF;
  --surface:                 #FFFFFF;
  --surface-high:            #F4F7FB;
  --surface-highest:         #E8EEF6;

  /* Ink — night-forest plum */
  --ink:                     #142440;
  --ink-soft:                #3C5274;   /* 6.4:1 on cream */
  --outline:                 #44597A;   /* caption text, 4.9:1 on cream */
  --outline-variant:         rgba(20,36,64, 0.14);   /* hairlines only, never text */

  /* Primary — Ember.
     --primary is the darkened ember (5.2:1 on cream) used wherever the token
     lands on TEXT; --primary-container / --primary-bright are the poster ember
     used for fills, which is too light to be read as small type. */
  --primary:                 #2B4C7E;
  --primary-container:       #2B4C7E;
  --primary-bright:          #2B4C7E;
  /* Ink, not white: white on #E8762D is 2.98:1 and fails even the large-text
     bar, and .btn--sm is 15px. Plum on ember is 5.4:1 at every size. */
  --on-primary:              #FFFFFF;
  --primary-fixed:           rgba(43,76,126, 0.12);
  --primary-fixed-dim:       #2B4C7E;
  --on-primary-fixed:        #142440;

  /* Secondary — Gold. Same split: text-safe base, bright fill. */
  --secondary:               #7A4E00;   /* 6.0:1 on cream */
  --secondary-bright:        #FFB648;
  --secondary-container:     #FFB648;
  --secondary-fixed:         rgba(255, 182, 72, 0.28);
  --on-secondary-fixed:      #142440;   /* 7.8:1 on gold */

  /* Tertiary — muted Rose (was epic purple). */
  --tertiary:                #A8263B;   /* 5.1:1 on cream */
  --tertiary-container:      #C2384F;
  --tertiary-fixed:          rgba(168,38,59, 0.12);
  --on-tertiary-fixed:       #8E1F31;

  /* Fills & borders. Nothing here is translucent any more — the old glass
     tokens are plain paper, and the ghost borders are solid ink. */
  --glass-strong:            #FFFFFF;
  --glass:                   #FFFFFF;
  --glass-soft:              #F4F7FB;
  --ghost-border:            rgba(20,36,64, 0.14);
  --ghost-border-strong:     rgba(20,36,64, 0.30);

  /* Text and marks that sit on the plum ink bands (nav, hero, footer). */
  --on-ink:                  #D6E3F5;   /* links and body text on ink */
  --on-ink-muted:            #A9BCD8;   /* the footer's legal line */
  --on-ink-strong:           #FFFFFF;   /* lead copy over art */

  /* Hover fills: one step lighter than the poster fills. */
  --primary-hover:           #36609C;
  --secondary-hover:         #FFC670;

  /* Meaning colours. --error is the only red; the status pair is the nav light. */
  --error:                   #B3261E;
  --status-up:               #5DBB5D;
  --status-down:             #E5484D;

  /* The starters' stage washes on the home page. */
  --stage-grass:             #E3EAC8;
  --stage-water:             #D8E6EC;

  /* Pale accent washes for chips / icon tiles. Each one keeps --primary /
     --secondary / --tertiary above 4.5:1 when used as their background. */
  --tint-sage:               rgba(43,76,126, 0.10);   /* pale ember, not sage */
  --tint-gold:               rgba(255, 182, 72, 0.24);
  --tint-sky:                rgba(168,38,59, 0.10);   /* pale rose, not sky */

  /* Hard offset shadows — the poster cast. No blur, ever. */
  --glow-sm:                 0 2px 8px rgba(20,36,64, 0.10);
  --glow-md:                 0 10px 26px rgba(20,36,64, 0.14);
  --glow-lg:                 0 20px 48px rgba(20,36,64, 0.18);
  --glow-gold:               0 0 0 1px #2B4C7E;
  /* hover lift for cards — the card steps up-left, the cast grows to match */
  --glow-ember:              0 16px 36px rgba(20,36,64, 0.20);

  /* Shape — sharp corners are the identity. Do not raise these. */
  --r-sm:                    6px;
  --r-md:                    8px;
  --r-lg:                    12px;
  --r-xl:                    16px;
  --r-2xl:                   20px;
  --r-full:                  999px;

  /* The skew every button's fill carries, and its counter value. */
  --skew:                    0deg;

  /* Space */
  --gutter:                  24px;
  --pad-page:                48px;     /* desktop margin */
  --section-gap:             112px;
  --card-pad:                36px;

  /* Type — Plus Jakarta Sans is the game's own UI font. 800 is its top weight. */
  --font:                    'Plus Jakarta Sans', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --measure:                 66ch;

  /* Night Gold (2026-11-01): the home page's look, now on every page. */
  --band:                    #E8EEF6;
  --line:                    rgba(20,36,64, 0.14);
  --gold:                    #FFB648;
  --on-dark:                 #7CCF90;
  --dark:                    #1C3458;
  --display:                 'Plus Jakarta Sans', system-ui, sans-serif;   /* Lake look, 2026-11-20: bold plain titles, as on the home page */
  --logo-font:               'Chewy', 'Trebuchet MS', cursive;
  color-scheme: light;
}

@media (max-width: 760px) {
  :root {
    --pad-page:    16px;
    --gutter:      16px;
    --section-gap: 64px;
    --card-pad:    20px;
  }
  /* a card inside a panel would double the inset and leave a thin column of text */
  .panel { padding: 20px; }
  .panel .card { padding: 16px; }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* scroll-padding keeps a jumped-to heading clear of the sticky top bar */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 100%;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration-color: rgba(43,76,126, 0.45); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.35rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 800; }

/* Ink ring on paper. Dark bands (nav, hero, play banner, footer) swap it to
   gold below — one colour cannot clear 3:1 on both cream and plum. */
:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border-radius: var(--r-md);
}
.nav :focus-visible,
.hero-banner :focus-visible,
.play-banner :focus-visible,
.site-footer :focus-visible { outline-color: var(--secondary-container); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--band);
  color: var(--ink);
  padding: 12px 22px;
  font-weight: 800;
  border-radius: var(--r-md);
  box-shadow: var(--glow-md);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.container--narrow { max-width: 860px; }

/* Each section contributes half a gap top and bottom, so two adjacent sections
   sit a full --section-gap apart (112px desktop / 80px mobile). */
.section { padding-block: calc(var(--section-gap) / 2); }

.section-head {
  max-width: 46rem;
  margin-bottom: 44px;
}
.section-head p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center p { margin-inline: auto; }

/* The kicker chip: a small square gold flag above the headline. Deliberately
   NOT skewed — skew is reserved for buttons. */
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: var(--r-md);
  background: var(--secondary-container);
  color: var(--on-secondary-fixed);
  font-size: 0.7188rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Variant names are historical; these are the poster's tag colours. Each fill
   is paired with the only text colour that clears 4.5:1 on it. */
.eyebrow--gold { background: var(--primary-container); color: var(--on-primary); }
.eyebrow--sky  { background: var(--tertiary); color: #FFFFFF; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.grid { display: grid; gap: var(--gutter); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* status light (the /status page) */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 7px 1px 0;
  vertical-align: middle;
  background: var(--outline);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.status-dot[data-up="yes"] { background: var(--status-up); }
.status-dot[data-up="no"]  { background: var(--status-down); }

/* --------------------------------------------------------------------------
   4b. Part divider — splits a long page into two halves
   -------------------------------------------------------------------------- */
.part-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 8px 0 4px;
}

.part-head .part-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--secondary-container);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-secondary-fixed);
}

.part-head h2 {
  max-width: 18ch;
  margin: 0;
}

.part-head .part-rule {
  /* justify-items:center sizes grid items to content, so 100% would collapse here */
  width: 340px;
  max-width: 100%;
  height: 3px;
  margin-top: 6px;
  background: var(--band);
  opacity: 0.16;
}

@media (max-width: 760px) {
  .part-head h2 { max-width: 24ch; }
}

/* --------------------------------------------------------------------------
   4c. Stat cards — a number does the arguing, one line explains it
   -------------------------------------------------------------------------- */
.stat {
  display: grid;
  gap: 8px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  box-shadow: var(--glow-md);
}

/* Figures use the text-safe ember/gold/rose, not the poster fills — at 3rem
   they are still text and the bright fills only reach ~3:1 on white. */
.stat-figure {
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.stat--gold .stat-figure { color: var(--secondary); }
.stat--sky .stat-figure  { color: var(--tertiary); }

.stat-label {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
}

.stat p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.stat .src {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--outline);
}
.stat .src a { color: inherit; }

/* --------------------------------------------------------------------------
   5. Buttons — the only skewed thing on the site
   The fill, border and cast live on ::before so they can be skewed while the
   label stays upright. That is why no markup change (inner counter-skewed
   <span>) was needed on any page.
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  z-index: 0;              /* own stacking context, so ::before can sit behind */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--skew));
  /* The ink ring is an INSET shadow, not a border: Chromium draws borders on
     transformed elements edge-by-edge, which rasterizes as dashes at
     fractional zoom / display scale. Shadows go through the fill path. */
  box-shadow: inset 0 0 0 2px var(--primary-container), var(--glow-md);
  transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}
.btn:hover::before {
  transform: skewX(var(--skew)) translate(-2px, -2px);
  box-shadow: inset 0 0 0 2px var(--primary-container), var(--glow-ember);
}
.btn:active::before {
  transform: skewX(var(--skew)) translate(2px, 2px);
  box-shadow: inset 0 0 0 2px var(--primary-container), var(--glow-sm);
}

/* The loud one — ember fill. Plum type, not white: see --on-primary. */
.btn--primary { color: var(--on-primary); }
.btn--primary::before { background: var(--primary-container); }
.btn--primary:hover::before { background: var(--primary-hover); }

.btn--glass { color: var(--ink); }
.btn--glass::before { background: var(--surface-lowest); }
.btn--glass:hover::before { background: var(--tint-sage); }

.btn--sm { padding: 11px 22px; font-size: 0.8125rem; letter-spacing: 0.08em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Cards — white paper, 2px ink border, hard cast
   -------------------------------------------------------------------------- */
.card {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: var(--glow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card p { color: var(--ink-soft); font-size: 1.0625rem; }
.card p:last-child { margin-bottom: 0; }

/* The lift keeps the offset language: the card steps up-left, the cast grows. */
.card--hover:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--glow-ember);
}

.card--compact { padding: calc(var(--card-pad) - 6px); border-radius: var(--r-md); }

.card--feature { display: flex; flex-direction: column; }

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  background: var(--tint-sage);
  color: var(--primary);
}
.card-icon--gold { background: var(--tint-gold); color: var(--secondary); }
/* An icon tile holding the game's own item art. Pixel art shows at its native
   size (never a fractional scale), so the tile is sized to fit it, not the art. */
.card-icon--art { width: 72px; height: 72px; }
.card-icon--art img { max-width: 64px; max-height: 64px; image-rendering: pixelated; }
.card-icon--sky  { background: var(--tint-sky);  color: var(--tertiary); }

.card-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--outline-variant);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Highlighted card (used for the strongest "why parents say yes" point).
   A gold spine on the left, the fact-tile move from the poster. */
.card--accent {
  background: var(--secondary-fixed);
  border-left: 8px solid var(--secondary-container);
  box-shadow: var(--glow-lg);
}

/* Chips — square, washed fill, accent spine, ink type (AA at any size). */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--primary-container);
  background: var(--tint-sage);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.chip--gold { background: var(--tint-gold); border-left-color: var(--secondary-container); }
.chip--sky  { background: var(--tint-sky);  border-left-color: var(--tertiary-container); }

/* --------------------------------------------------------------------------
   7. Screenshot / art placeholder slots
   -------------------------------------------------------------------------- */
.shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 24px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface-high);
  box-shadow: var(--glow-sm);
  overflow: hidden;
}

.shot::after {
  /* a flat corner wedge so an empty slot still feels designed */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(232, 118, 45, 0.14) 0 38%, transparent 38%);
  pointer-events: none;
}

.shot-label {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.shot-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 13px;
  border-radius: var(--r-md);
  background: var(--band);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot--tall  { aspect-ratio: 4 / 3; }
.shot--wide  { aspect-ratio: 16 / 7; }

@media (max-width: 560px) {
  .shot--wide { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   8. Hero — full-bleed banner with a shallow diagonal bottom edge
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: clamp(420px, 42vw, 600px);
  margin-top: 0;
  overflow: hidden;
  background: var(--band);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* Plum scrim from the LEFT — the copy sits in the dark half, the art stays
   bright on the right. */
.hero-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(19, 14, 28, 0.88) 0%,
    rgba(19, 14, 28, 0.62) 38%,
    rgba(19, 14, 28, 0.14) 72%,
    rgba(19, 14, 28, 0) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(64px, 7vw, 92px);
  padding-bottom: clamp(92px, 10vw, 128px);
  text-align: left;
}

.hero-banner-content h1 {
  color: #ffffff;
  max-width: 15ch;
  margin-bottom: 18px;
  text-shadow: 0 2px 2px rgba(20, 10, 30, 0.65), 0 4px 18px rgba(20, 10, 30, 0.55);
}

.hero-banner-content .lead {
  color: var(--on-ink-strong);
  font-weight: 600;
  margin-inline: 0;
  margin-bottom: 32px;
  max-width: 48ch;
  text-shadow: 0 1px 2px rgba(20, 10, 30, 0.7), 0 3px 12px rgba(20, 10, 30, 0.55);
}

/* Hero CTAs speak up — same loud sizing as the play banner's buttons */
.hero-banner-content .btn { font-size: 1.0625rem; padding: 17px 38px; }
@media (max-width: 360px) {
  .hero-banner-content .btn,
  .play-banner .btn { font-size: 0.95rem; padding: 15px 22px; }
}

.eyebrow--onimage {
  background: var(--secondary-container);
  color: var(--on-secondary-fixed);
  border: 0;
}

.btn-row--center { justify-content: center; }

/* Gold fill, dark type — a light fill can't carry white type legibly. */
.btn--gold { color: var(--on-secondary-fixed); }
.btn--gold::before { background: var(--secondary-container); }
.btn--gold:hover::before { background: var(--secondary-hover); }

/* The over-art secondary: near-white paper with plum type. */
.btn--glass-dark { color: var(--ink); }
.btn--glass-dark::before { background: rgba(255, 255, 255, 0.94); }
.btn--glass-dark:hover::before { background: #FFFFFF; }

.hero-note--onimage {
  margin-top: 26px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 5px rgba(20, 10, 30, 0.6);
}

@media (max-width: 760px) {
  .hero-banner {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
    min-height: clamp(400px, 62vh, 540px);
  }
  /* On a narrow screen the left-to-right scrim runs out before the text does,
     so it becomes a top-to-bottom one. */
  .hero-banner-scrim {
    background: linear-gradient(170deg,
      rgba(19, 14, 28, 0.86) 0%,
      rgba(19, 14, 28, 0.72) 46%,
      rgba(19, 14, 28, 0.55) 100%);
  }
  .hero-banner-content h1 { max-width: none; }
}

/* Hero-only variant. Under the old fading-mask hero this class carried a lot of
   geometry; the diagonal cut replaced all of it, so it now only tunes framing. */
.hero-banner--full .hero-banner-bg { object-position: center 34%; }
.hero-banner--full .hero-banner-content { position: relative; inset: auto; }

/* Rotating hero — the pictures stack and cross-fade (hero.js), each drifting a
   little closer while it shows. The leaving one keeps its drift as it fades. */
.hero-banner .hero-slide {
  object-position: center 40%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-banner .hero-slide.is-on { opacity: 1; }
.hero-banner .hero-slide.is-on,
.hero-banner .hero-slide.is-leaving { animation: hero-drift 11s ease-out forwards; }
@keyframes hero-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner .hero-slide.is-on,
  .hero-banner .hero-slide.is-leaving { animation: none; }
}

/* Card media (art thumbnails inside feature cards) — flush to the card's top
   and sides, with the poster's shallow diagonal cut along the bottom. */
.card-media {
  aspect-ratio: 16 / 10;
  margin: calc(-1 * (var(--card-pad) - 6px)) calc(-1 * (var(--card-pad) - 6px)) 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Standalone art figures */
.art {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow-md);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art--wide { aspect-ratio: 16 / 7; }
@media (max-width: 560px) { .art--wide { aspect-ratio: 16 / 10; } }

.art-caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: right;
}

.hero { padding-block: 56px calc(var(--section-gap) / 2); }

.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); gap: 56px; }
}

.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }

.hero-note {
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero-visual { position: relative; }

/* --------------------------------------------------------------------------
   9. Split / media blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .split--reverse .split-media { order: -1; }
}

.panel {
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: var(--glow-lg);
}

/* --------------------------------------------------------------------------
   10. Fact list (plain "here's what's true" rows)
   -------------------------------------------------------------------------- */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: var(--r-md);
  background: var(--primary-container);
  border: 1px solid var(--line);
}
.facts li strong { color: var(--ink); }

.facts--split {
  display: grid;
  gap: 6px calc(var(--gutter) * 2);
  grid-template-columns: 1fr;
}
.facts--split li { margin-bottom: 12px; }
@media (min-width: 860px) {
  .facts--split { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   11. FAQ (native <details>, no JS)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: var(--glow-sm);
  overflow: hidden;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 160ms ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
/* the item clips its overflow, so the ring sits inside the box */
.faq-item > summary:focus-visible { outline-offset: -5px; }
.faq-item > summary:hover { color: var(--primary); }

.faq-item > summary::after {
  content: "+";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--band);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.faq-item[open] > summary::after { content: "\2013"; }

.faq-body {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  padding: clamp(40px, 5vw, 68px) clamp(24px, 4vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--band);
  box-shadow: 8px 8px 0 var(--secondary-container);
}
.cta h2 { margin-bottom: 16px; color: #FFFFFF; }
.cta p { margin-inline: auto; max-width: 46ch; color: var(--on-ink); }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* Full-bleed Play banner: the night-forest art under a plum scrim, cut off the
   page above with a shallow diagonal. Content is left-aligned like the hero. */
.play-banner {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--section-gap) / 2);
  margin-bottom: 0;
  padding-block: clamp(78px, 9vw, 124px) clamp(60px, 7vw, 96px);
  background: var(--band);
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}
.play-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: center 62%;
}
.play-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(26, 16, 46, 0.90) 0%,
    rgba(26, 16, 46, 0.62) 52%,
    rgba(26, 16, 46, 0.26) 100%);
}
.play-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad-page);
}
.play-banner .btn { font-size: 1.0625rem; padding: 17px 38px; }

@media (max-width: 760px) {
  .play-banner { clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%); }
  .play-banner-scrim {
    background: linear-gradient(170deg,
      rgba(26, 16, 46, 0.86) 0%,
      rgba(26, 16, 46, 0.70) 50%,
      rgba(26, 16, 46, 0.60) 100%);
  }
}

/* Under the old faded hero this pulled the first section up into the art. The
   hero now ends on a hard diagonal, so there is nothing to overlap — the class
   is kept (it is still in index.html) but neutralised. */
.section--overhero {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: calc(var(--section-gap) / 2);
}

/* --------------------------------------------------------------------------
   13. Document layout (privacy / terms)
   -------------------------------------------------------------------------- */
.doc-header { padding-block: 48px 8px; text-align: center; }
.doc-header .lead { margin-inline: auto; }

.doc {
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: calc(var(--section-gap) / 2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-strong);
  box-shadow: var(--glow-lg);
}

.doc h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 2px solid var(--outline-variant);
}
.doc > h2:first-of-type { margin-top: 10px; padding-top: 0; border-top: 0; }

.doc h3 { font-size: 1.0625rem; margin-top: 26px; }

.doc p, .doc li { color: var(--ink-soft); max-width: var(--measure); }

.effective-date {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--secondary-container);
  color: var(--on-secondary-fixed);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.doc-note {
  margin-top: 22px;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--secondary-container);
  border-radius: var(--r-md);
  background: var(--glass-soft);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.doc-toc {
  margin: 28px 0 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-soft);
}
.doc-toc h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.doc-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.doc-toc li { color: var(--ink-soft); font-size: 0.9375rem; break-inside: avoid; }
@media (max-width: 600px) { .doc-toc ol { columns: 1; } }

/* --------------------------------------------------------------------------
   13b. Home page — starters, the captioned vista, the parents band
   -------------------------------------------------------------------------- */
/* The home page runs tighter than the reading pages: 80px between sections,
   and the play banner tucks under the parents band so its diagonal top cuts
   into rose, not into a sliver of cream page. The pull matches the cut depth. */
.home { --section-gap: 80px; }
.home .parents-band { border-bottom: 0; padding-bottom: 80px; }
.home .play-banner { margin-top: -34px; }
@media (max-width: 760px) {
  .home { --section-gap: 64px; }
  .home .parents-band { padding-bottom: 66px; }
  .home .play-banner { margin-top: -20px; }
}

/* The three pen critters. The stage is a tinted panel cut on the same diagonal
   as .card-media; the critter plays its in-game idle strip on it. */
.starter {
  border: 1px solid var(--line);
  background: var(--surface-lowest);
  box-shadow: var(--glow-md);
}
.starter-stage {
  position: relative;
  display: grid;
  place-items: end center;
  height: 236px;
  padding-bottom: 40px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
/* a soft pool of shade under the feet — a shadow, not a shape, so no corners to square */
.starter-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 150px;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(19, 14, 28, 0.22), rgba(19, 14, 28, 0));
}
.starter-stage--grass { background: var(--stage-grass); }
.starter-stage--water { background: var(--stage-water); }
.starter-stage--fire  { background: var(--tint-sage); }

.starter-body { padding: 4px 26px 26px; }
.starter-body h3 { margin: 0 0 4px; font-size: 1.4rem; }
.starter-body p { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }
.starter-type {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--band);
  color: #FFFFFF;
}

/* Sprite strips: images/starters/*.png are the pet's idle row, five frames side
   by side, facing right. --cw/--ch is one frame in source pixels, --s the whole-
   number scale (whole numbers keep every art pixel the same size). --l/--r/--b
   are the empty source columns/rows round the drawing (widest over all five
   frames), cut off with negative margins so gaps and baselines are the art's own. */
.sprite {
  position: relative;
  display: block;
  width: calc(var(--cw) * var(--s) * 1px);
  height: calc(var(--ch) * var(--s) * 1px);
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(var(--cw) * 5 * var(--s) * 1px) calc(var(--ch) * var(--s) * 1px);
  margin: 0 calc(var(--r, 0) * var(--s) * -1px) calc(var(--b, 0) * var(--s) * -1px) calc(var(--l, 0) * var(--s) * -1px);
  image-rendering: pixelated;
  animation: sprite-idle var(--dur) steps(5) infinite;
}
@keyframes sprite-idle { to { background-position: calc(var(--cw) * 5 * var(--s) * -1px) 0; } }
.sprite--sprig  { --img: url(images/starters/sprig.png);  --cw: 81; --ch: 57; --s: 3; --dur: 0.6s; --l: 27; --r: 10; }
.sprite--puddle { --img: url(images/starters/puddle.png); --cw: 62; --ch: 92; --s: 2; --dur: 0.7s; --l: 12; --r: 9; --b: 12; }
.sprite--ember  { --img: url(images/starters/ember.png);  --cw: 57; --ch: 61; --s: 3; --dur: 0.7s; }

/* The three starters side by side, at whole-number scales picked so they read
   about the same height. Used where a page talks about the first companion. */
.starter-trio {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  padding: 32px 16px 28px;
  background: var(--tint-gold);
  border: 1px solid var(--line);
  box-shadow: var(--glow-md);
}
.starter-trio .sprite--sprig  { --s: 3; }
.starter-trio .sprite--puddle { --s: 2; }
.starter-trio .sprite--ember  { --s: 2; }

/* The coin ladder on the parents page: the game's own three coins and what each
   is worth, in place of a screenshot. */
.coin-ladder {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 22px 22px;
  background: var(--surface-lowest);
  border: 1px solid var(--line);
  box-shadow: var(--glow-md);
  text-align: center;
}
.coin-ladder div { display: grid; justify-items: center; gap: 4px; }
.coin-ladder img { width: 60px; height: 60px; image-rendering: pixelated; }
.coin-ladder span { font-size: 0.875rem; color: var(--ink-soft); }
.coin-ladder figcaption { grid-column: 1 / -1; margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }

/* The wide concept piece, with its headline set into the lower-left corner. */
.vista {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow-md);
}
.vista img { width: 100%; height: 100%; object-fit: cover; }
.vista::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg,
    rgba(19, 14, 28, 0.86) 0%,
    rgba(19, 14, 28, 0.45) 38%,
    rgba(19, 14, 28, 0) 62%);
}
.vista-copy {
  position: absolute;
  left: 44px;
  bottom: 40px;
  z-index: 1;
  max-width: 30rem;
}
.vista-copy h2 { color: #FFFFFF; margin-bottom: 10px; }
.vista-copy p { margin: 0; color: var(--on-ink-strong); font-weight: 600; font-size: 1.0625rem; }
.vista-tag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  padding: 4px 9px;
  background: rgba(19, 14, 28, 0.78);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .vista { aspect-ratio: 4 / 5; }
  .vista img { object-position: 40% center; }
  .vista::after {
    background: linear-gradient(0deg,
      rgba(19, 14, 28, 0.90) 0%,
      rgba(19, 14, 28, 0.50) 42%,
      rgba(19, 14, 28, 0) 70%);
  }
  .vista-copy { left: 22px; right: 22px; bottom: 24px; }
}

/* One quiet line under the vista saying which pictures are AI-made. */
.art-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--outline);
  text-align: right;
}
@media (max-width: 760px) { .art-note { text-align: left; } }

/* Full-width rose band that points parents at the reading pages. */
.parents-band {
  background: var(--tint-sky);
  border-block: 1px solid var(--line);
  padding-block: 46px;
}
.parents-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: center;
}
.parents-band h2 { font-size: 1.9rem; margin: 12px 0 8px; }
.parents-band p { margin: 0; color: var(--ink-soft); max-width: 52ch; font-size: 1.0625rem; }
.parents-band .btn-row { gap: 14px; }
@media (max-width: 900px) {
  .parents-band-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The quiet partner to a loud button on a dark band: white, gold underline. */
.text-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 4px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(242, 179, 61, 0.75);
  text-underline-offset: 6px;
}
.text-link:hover { color: #FFFFFF; text-decoration-color: var(--secondary-container); }

/* --------------------------------------------------------------------------
   15. Utilities & motion preferences
   -------------------------------------------------------------------------- */
.stack-lg > * + * { margin-top: 44px; }
.mt-lg { margin-top: 44px; }
.mt-md { margin-top: 28px; }
.mb-md { margin-bottom: 24px; }
.text-center { text-align: center; }
.section--top { padding-top: 56px; }
/* a part divider owns the space above it, and hands straight off to its first section */
.section--tight { padding-block: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  /* The button fill must keep its skew, so it is reset to the resting transform
     rather than to none. */
  .btn:hover::before,
  .btn:active::before { transform: skewX(var(--skew)); box-shadow: inset 0 0 0 2px var(--primary-container), var(--glow-md); }
  .card--hover:hover { transform: none; }
  .sprite { animation: none; }
}

/* --------------------------------------------------------------------------
   16. Forms — sign-up, log in, the invite doors, account, feedback, contact.
   One copy here; a page's own <style> keeps only what differs.
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.field textarea { min-height: 168px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
/* The darkened ember: the bright fill measured 2.97:1 on white, under the 3:1 a ring needs. */
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.field-hint { margin: 6px 0 0; font-size: 0.8125rem; color: var(--outline); }
.birthday { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.birthday legend { padding: 0; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.birthday-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.birthday-row select { padding-inline: 10px 4px; }

/* Full-width buttons in a form card: the skewed fill is pulled in a few px so
   the parallelogram's corners stay inside the card's border. */
.auth-card .btn, .fb-card .btn, .ct-card .btn { width: 100%; margin-top: 10px; }
.auth-card .btn::before, .fb-card .btn::before, .ct-card .btn::before { inset: 0 4px; }
.auth-card .btn[disabled], .fb-card .btn[disabled], .ct-card .btn[disabled] { opacity: 0.7; cursor: default; }
.auth-card .btn[disabled]:hover::before,
.fb-card .btn[disabled]:hover::before,
.ct-card .btn[disabled]:hover::before { transform: skewX(var(--skew)); box-shadow: inset 0 0 0 2px var(--primary-container), var(--glow-md); }

/* Play as guest (auth.js): the big door shows instead of the fields until "I have an account". */
.auth-door { display: flex; flex-direction: column; gap: 0; }
.auth-door[hidden] { display: none; }
/* The big door: a tall green PLAY FREE with a gold "No account needed" ribbon on its top edge. */
.auth-door .auth-guest { margin-top: 22px; padding: 30px 20px 26px; font-size: 1.5rem; letter-spacing: 0.08em; gap: 12px; }
.auth-door .auth-guest .play { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor; }
.auth-door .auth-guest small { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  padding: 6px 14px; border-radius: 999px; background: var(--secondary-container); color: var(--on-secondary-fixed);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--surface), 0 4px 10px rgba(20,36,64, 0.18); }
.auth-door .auth-guest:hover small { transform: translate(-50%, -55%) translate(-2px, -2px); transition: transform 170ms ease; }
.auth-door-note { margin: 14px 0 0; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--outline); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--outline-variant); }
.auth-door-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.auth-card .auth-door-row .btn { padding: 13px 10px; font-size: 0.8125rem; letter-spacing: 0.06em; }
.auth-card.is-door > .field, .auth-card.is-door > #auth-submit, .auth-card.is-door > .auth-alt,
.auth-card.is-door > #auth-error, .auth-card.is-door > .birthday-row { display: none; }

/* The sign-in cards */
.auth-main { display: flex; justify-content: center; padding-block: 56px 96px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 8px; text-align: center; }
.auth-intro { margin-bottom: 26px; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
.auth-hint { margin: 0 0 18px; font-size: 0.8125rem; color: var(--ink-soft); }
.auth-mascot { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 150px; margin: 0 auto 12px; }
.auth-mascot::before { content: ""; position: absolute; left: 50%; bottom: -44px; width: 280px; height: 200px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--starter-glow), transparent); animation: auth-glow 3s ease-in-out infinite; pointer-events: none; }
.auth-mascot span { position: relative; width: calc(var(--fw) * 1.6px); height: calc(var(--fh) * 1.6px); background: var(--sheet) 0 0 / 500% 100% no-repeat; image-rendering: pixelated; animation: auth-idle var(--beat) steps(5) infinite; filter: drop-shadow(0 0 14px var(--starter-glow)); }
.auth-mascot[data-starter="sprig"]  { --sheet: url(/images/starters/sprig.png);  --fw: 81; --fh: 57; --beat: .8s;  --starter-glow: rgba(140, 214, 96, .32); }
.auth-mascot[data-starter="puddle"] { --sheet: url(/images/starters/puddle.png); --fw: 62; --fh: 92; --beat: .9s;  --starter-glow: rgba(80, 180, 245, .32); }
.auth-mascot[data-starter="ember"]  { --sheet: url(/images/starters/ember.png);  --fw: 57; --fh: 61; --beat: .75s; --starter-glow: rgba(255, 140, 60, .34); }
@keyframes auth-idle { to { background-position-x: 125%; } }
@keyframes auth-glow { 50% { opacity: .7; transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .auth-mascot span, .auth-mascot::before { animation: none; } }
.auth-err { margin: 16px 0 0; text-align: center; font-size: 0.875rem; font-weight: 700; color: var(--error); }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
.auth-legal { margin: 18px 0 0; text-align: center; font-size: 0.8125rem; color: var(--ink-soft); }

/* Feedback and account cards */
.fb-main { display: flex; justify-content: center; padding-block: 56px 96px; }
.fb-card { width: min(560px, 100%); }
.fb-card h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 8px; }
.fb-intro { margin-bottom: 26px; font-size: 0.9375rem; color: var(--ink-soft); }
.fb-who { font-weight: 700; color: var(--ink); }
.fb-count { float: right; font-weight: 400; color: var(--outline); }
.fb-err { margin: 16px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--error); }
.fb-note { margin: 22px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
.fb-done { text-align: center; }
.fb-done h2 { font-size: 1.5rem; margin-bottom: 8px; }
.fb-done p { margin-bottom: 18px; }
.fb-done .btn-row { justify-content: center; }
.ct-err { margin: 16px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--error); }

/* Home: the eight classes, two wide cards over three (2026-10-30). */
.paths-grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .paths-grid { grid-template-columns: repeat(6, 1fr); }
  .paths-grid > .path-card { grid-column: span 2; }
  .paths-grid > .path-card:nth-child(-n+2) { grid-column: span 3; }
}

/* A painted strip under the nav on the pages with no other picture. */
.page-art {
  height: clamp(140px, 22vw, 260px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  background: var(--band);
}
.page-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Moving light over a painting (wallfx.js): sits on the picture, under any scrim or caption. */
.fx-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card-media, .page-art { position: relative; }
/* the three 'What's waiting inside' paintings sit a little closer; each img sets its own transform-origin */
.card-media img.zoom { transform: scale(1.22); }

/* Every line that pitches the game as educational or speaks to parents, teachers or
   homeschool carries class="edu". Shown since 2026-11-19 (grade 6+, school route); to hide
   them all again, put back: .edu { display: none !important; } */

/* --------------------------------------------------------------------------
   17. Shared type and buttons (2026-11-01, Morning Hay 2026-11-10). The top bar and
   footer left this file on 2026-11-12: they live in chrome.css, and their markup
   is stamped into every page by Website/sync_chrome.py.
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.btn { text-transform: none; letter-spacing: .04em; border-radius: var(--r-md); }
.btn::before { border-radius: var(--r-md); }
.card, .auth-card { border-radius: var(--r-lg); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.logo { display: inline-flex; align-items: center; gap: .3em; font-family: var(--logo-font); font-size: 1.95rem; line-height: 1; color: var(--gold); text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 #4a2a0e, 0 4px 14px rgba(0, 0, 0, .45); }
.logo::before { content: ""; flex: none; width: .9em; height: 1.05em; background: url(/images/logo-lantern.png) bottom center / contain no-repeat; }
.logo span { color: #FFFFFF; }
.logo .tm { align-self: flex-start; margin: .1em 0 0 -.85em; font: 600 .3em/1 var(--font); color: #FFFFFF; text-shadow: none; }
@media (max-width: 760px) { .logo { font-size: 1.55rem; } }
@media (max-width: 420px) { .logo { font-size: 1.35rem; } }

.eyebrow, .eyebrow--gold, .eyebrow--onimage, .card p.eyebrow { color: var(--on-primary); }
.eyebrow--sky, .card p.eyebrow--sky { color: #FFFFFF; }

html{font-synthesis-weight:none}
a.btn[href="/play/"]:not(.ghost):not(.btn--glass){position:relative;isolation:isolate}
a.btn[href="/play/"]:not(.ghost):not(.btn--glass)::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;transform:skewX(var(--skew,0deg));background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.6) 50%,transparent 65%) no-repeat;background-size:250% 100%;background-position:100% 0;animation:playshine 3s ease-in-out infinite}
@keyframes playshine{0%,55%{background-position:100% 0}100%{background-position:0 0}}
@media (prefers-reduced-motion:reduce){a.btn[href="/play/"]::after{animation:none;display:none}}

/* Grown-ups pages (parents / teachers / homeschool): a painted banner at the top,
   a picture beside each section heading, and a dark closing band. */
.page-banner{position:relative;margin:0 0 28px;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/6.2;box-shadow:var(--glow-lg);border:1px solid var(--line)}
.page-banner img{width:100%;height:100%;object-fit:cover;display:block}
.page-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(24,17,8,0) 35%,rgba(24,17,8,.78) 100%)}
.page-banner .banner-copy{position:absolute;left:clamp(20px,4vw,48px);right:clamp(20px,4vw,48px);bottom:clamp(18px,3.4vw,40px);z-index:1}
.page-banner .banner-copy .eyebrow{margin-bottom:12px}
.page-banner h1{margin:0;color:#FFFFFF;text-shadow:0 2px 14px rgba(0,0,0,.45);max-width:16ch}
@media (max-width:640px){.page-banner{aspect-ratio:4/3.4}}
.section-head.has-art{max-width:none;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);column-gap:clamp(28px,4vw,56px);align-items:center}
.section-head.has-art>*:not(.head-art){grid-column:1}
.section-head.has-art>.eyebrow{justify-self:start}
.head-art{grid-column:2;grid-row:1/span 4;margin:0;border-radius:var(--r-lg);overflow:hidden;aspect-ratio:16/10.5;box-shadow:var(--glow-md);border:1px solid var(--line);transform:rotate(1.2deg)}
.head-art img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:820px){.section-head.has-art{grid-template-columns:minmax(0,1fr)}.head-art{grid-column:1;grid-row:auto;margin-top:18px;transform:none}}
.cta{position:relative;overflow:hidden;background:linear-gradient(rgba(28,20,10,.62),rgba(28,20,10,.80)),var(--cta-art,url("images/w1600/art-campfire.webp")) center/cover;border-color:rgba(0,0,0,.2)}
.cta p{color:#F1E6CC}
.panel--intro{max-width:860px;margin-inline:auto}
