/* ==========================================================================
   Shared components  (brand/components.css)
   Owner: Brand. Link AFTER tokens.css and BEFORE your page CSS:
     <link rel="stylesheet" href="../brand/tokens.css">
     <link rel="stylesheet" href="../brand/components.css">
   Every value comes from tokens. No local aliases, no hex. If you need a
   variant, add a modifier here (ask Brand) rather than restyling in a page.

   Contents
     1. Page shell: .wrap, .skip, .prose
     1b. Site header: .hdr, .hdr__*                   (from home/partials/header.html)
     2. Titles: .page-title, .hero-title, .marker
     3. Game card: .game-grid, .game-card ...        (from games/games.css)
     4. Site footer: .site-footer, .cast-stripe, .brand--sm  (from trust/trust.css)
     5. Chips: .chip-art (canonical drawing), .chip-row
     6. Steps: .steps, .steps--row, .steps--art (one numeral style)
     7. Table-top forms: .band--felt, .score-sheet, .tally-rule
     8. Groups of controls: .btn-row, .field-row, newsletter, .facts-line, .faq
   ========================================================================== */

/* 1. Page shell ------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--container-narrow); }
.prose > :is(p, ul, ol) { max-width: 36em; } /* ~75 characters a line */
.skip { position: absolute; left: -999px; top: 0; }
.nowrap { white-space: nowrap; } /* keep a phrase together ("free shipping to all 50 US states") */
.skip:focus { left: var(--space-4); top: var(--space-2); z-index: 100; background: var(--color-surface); color: var(--color-ink); padding: 0.5em 0.8em; border: var(--border-width) solid var(--color-line-strong); border-radius: var(--radius-sm); }
/* Sticky header / buy bar never hide focus (meeting 02, decision 5).
   Pages with a sticky buy bar set --sticky-bottom on <html>. */
html { scroll-padding-top: var(--sticky-top, 84px); scroll-padding-bottom: var(--sticky-bottom, 0px); }

/* 1b. Site header (Home owns markup: home/partials/header.html) -----------
   Lifted verbatim from the partial (meeting 03, decision 5). Class names are
   Home's: .hdr-skip .hdr .hdr__row .hdr__brand .hdr__nav .hdr__play .hdr__pop
   .hdr__tile(--felt) .hdr__menu .hdr__burger .hdr__sheet .hdr__sheet-play
   .hdr__mail. The partial keeps the markup and the optional script only. */
.hdr-skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--color-ink); color: var(--color-bg); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.hdr-skip:focus { left: 8px; }
.hdr { position: sticky; top: 0; z-index: 40; font-family: var(--font-body); background: color-mix(in srgb, var(--color-bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-line); }
.hdr__row { display: flex; align-items: center; gap: 10px; height: 60px; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.hdr__brand { margin-right: auto; }
.hdr__brand .brand__mark { width: 36px; height: 36px; }
.hdr__nav { display: none; }
.hdr__nav a { color: var(--color-ink-muted); font-weight: 600; font-size: var(--text-base); text-decoration: none; padding: 8px 2px; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.hdr details { position: relative; }
.hdr summary { list-style: none; cursor: pointer; }
.hdr summary::-webkit-details-marker { display: none; }
.hdr__play > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; transition: transform var(--dur) var(--ease-out); }
.hdr__play[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.hdr__play > summary { white-space: nowrap; min-height: 44px; } /* the same height as the menu button beside it */
/* "Score a game" needs ~445px beside the brand and the menu button; narrower phones show "Score",
   and the full label stays as the button's accessible name. */
@media (max-width: 459px) {
  .hdr__play > summary { padding-inline: 12px; }
  .hdr__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.hdr__pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; display: grid; gap: 2px; padding: 8px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.hdr__pop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-ink); font-weight: 700; text-decoration: none; }
.hdr__pop a:hover { background: var(--color-surface-2); }
.hdr__pop small { display: block; font-weight: 500; font-size: var(--text-xs); color: var(--color-ink-muted); }
.hdr__pop hr { margin: 4px 8px; }
.hdr__tile { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--color-line-strong); font: 700 15px/1 var(--font-display); background: var(--color-accent); color: var(--color-accent-ink); }
.hdr__tile--felt { background: var(--color-felt); color: var(--color-felt-ink); }
.hdr__menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--color-line); background: var(--color-surface); }
.hdr__burger, .hdr__burger::before, .hdr__burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--color-ink); position: relative; transition: transform var(--dur) var(--ease-out), background-color var(--dur); }
.hdr__burger::before, .hdr__burger::after { content: ""; position: absolute; left: 0; }
.hdr__burger::before { top: -6px; } .hdr__burger::after { top: 6px; }
.hdr__menu[open] .hdr__burger { background: transparent; }
.hdr__menu[open] .hdr__burger::before { transform: translateY(6px) rotate(45deg); }
.hdr__menu[open] .hdr__burger::after { transform: translateY(-6px) rotate(-45deg); }
.hdr__sheet { position: fixed; left: 0; right: 0; top: 61px; max-height: calc(100dvh - 61px); overflow: auto; padding: 8px var(--gutter) 20px; background: var(--color-bg); border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-lg); }
.hdr__sheet > a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--color-line); color: var(--color-ink); text-decoration: none; font: 600 var(--text-xl)/1 var(--font-display); }
.hdr__sheet > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hdr__sheet-play { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; margin: 8px 0 6px; } /* stack when "Score Puerto Rico" won't fit half width */
.hdr__sheet-play .btn { min-height: 52px; }
.hdr__sheet .hdr__mail { border: 0; font: 500 var(--text-sm) var(--font-body); color: var(--color-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .hdr details[open] > .hdr__pop, .hdr details[open] > .hdr__sheet { animation: hdr-in var(--dur) var(--ease-out); }
  @keyframes hdr-in { from { opacity: 0; transform: translateY(-4px); } }
}
@media (min-width: 860px) {
  .hdr__row { height: 68px; }
  .hdr__nav { display: flex; gap: 22px; margin-right: 18px; }
  .hdr__menu { display: none; }
}

/* 2. Titles (one scale for the whole site, critic D5) ----------------------- */
.hero-title { font-size: var(--text-4xl); font-weight: var(--weight-bold); line-height: 1.02; letter-spacing: -0.02em; }
.page-title { font-size: var(--text-3xl); font-weight: var(--weight-bold); line-height: var(--leading-tight); margin-bottom: var(--space-4); }
/* Marigold highlighter for one phrase in a title: <span class="marker">Skip the math.</span> */
.marker {
  background: linear-gradient(transparent 58%, var(--color-accent) 58%, var(--color-accent) 92%, transparent 92%);
  padding-inline: 0.08em; margin-inline: -0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Dark: light text over marigold is unreadable, so the marker becomes a full
   highlight with ink text. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marker { background: var(--color-accent); color: var(--color-accent-ink); border-radius: 0.12em; padding-inline: 0.12em; margin-inline: 0; }
}
:root[data-theme="dark"] .marker, .theme-dark .marker { background: var(--color-accent); color: var(--color-accent-ink); border-radius: 0.12em; padding-inline: 0.12em; margin-inline: 0; }

/* 3. Game card (Games owns content; markup contract below) -----------------
   <article class="game-card is-cat">
     <div class="game-art"> cover </div>
     <div class="game-body">
       <div class="game-title"><h3><a href="/games/flip-7/">Flip 7</a></h3><span class="badge badge--live">Live</span></div>
       <p class="editions">Original and "With a Vengeance"</p>
       <p>...</p>
       <div class="game-actions"><a class="btn btn--primary" href="/flip7/">Score Flip 7</a></div>
     </div>
   </article> */
.game-grid { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .game-grid { grid-template-columns: 1fr 1fr; } }
.game-card {
  background: var(--color-surface);
  color: var(--color-ink);
  border: var(--border-width) solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.game-art {
  position: relative; height: 170px; overflow: hidden;
  background: var(--char, var(--color-accent));
  border-bottom: var(--border-width) solid var(--color-line-strong);
}
.game-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-body { padding: var(--space-4) var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.game-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.game-title h3 { margin: 0; font-size: var(--text-xl); line-height: var(--leading-snug); }
.game-title h3 a { color: var(--color-ink); text-decoration: none; }
.game-title h3 a:hover { text-decoration: underline; }
.game-card .editions { color: var(--color-ink-muted); font-size: var(--text-sm); margin: calc(-1 * var(--space-2)) 0 0; }
.game-card p { margin: 0; font-size: var(--text-base); }
/* Facts: one per line in every card, so a row of cards has the same rhythm whatever the label lengths. */
.game-card .facts { display: grid; gap: var(--space-1); padding: 0; margin: 0; list-style: none; color: var(--color-ink-muted); font-size: var(--text-sm); }
.game-card .facts li { display: flex; align-items: center; gap: var(--space-2); }
.game-card .facts svg { width: 16px; height: 16px; flex: none; }
/* One layout for every card, whatever the label lengths: primary on top, secondary under it, both full
   width, pinned to the bottom so the buttons line up across a row of cards. (Cards only: a pair of
   buttons anywhere else is a .btn-row.) */
.game-actions { display: grid; gap: var(--space-2); margin-top: auto; padding-top: var(--space-1); }
.game-actions .btn { width: 100%; justify-content: center; }
/* Table-top art in the cover (the same drawing on Home and /games/; fixed physical colours) */
.game-art > img.chip-art { position: absolute; width: var(--chip-size); height: auto; object-fit: initial; }
.game-art .fan { position: absolute; left: 50%; bottom: -26px; width: 0; height: 0; }
.game-art .fan .pc { position: absolute; bottom: 0; left: -32px; width: 64px; height: 92px; background: var(--object-card); border-radius: var(--radius-sm); box-shadow: 0 4px 10px rgb(0 0 0 / .35); transform-origin: 50% 140%; display: grid; place-items: center; font: 700 1.9rem var(--font-display); color: var(--object-ink); }
.game-art .fan .pc small { position: absolute; top: 5px; left: 7px; font-size: .7rem; }
.game-art .board-art { position: absolute; inset: 22px 0 auto 50%; transform: translateX(-50%) rotate(-4deg); width: 210px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px; background: #e9dcc3; border-radius: var(--radius-sm); box-shadow: 0 6px 14px rgb(0 0 0 / .35); }
.game-art .board-art i { aspect-ratio: 1; border-radius: 3px; background: #cdbb98; }
.game-art .board-art i.b1 { background: #8e5bb5; } .game-art .board-art i.b2 { background: #4f8a3b; } .game-art .board-art i.b3 { background: #c9a227; }
.game-art .board-art i.b4 { background: #a7643c; } .game-art .board-art i.b5 { background: #3f7fb0; }
.game-art .board-art i.m { position: relative; }
.game-art .board-art i.m::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #3a2a1c; }
.game-art .vp { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #d8b24a; border: 3px solid #a9822a; box-shadow: 0 2px 4px rgb(0 0 0 / .4); }
.game-art .num-tag { position: absolute; width: 54px; height: 62px; border-radius: 6px; background: var(--object-card); color: var(--object-ink); box-shadow: 0 4px 10px rgb(0 0 0 / .35); display: grid; place-items: center; font: 700 1.2rem var(--font-display); outline: 2px dashed var(--object-dashed); outline-offset: -7px; }
/* "Your game next?": the same anatomy as a game card (cover, title, line, button at the bottom), drawn
   as an empty seat at the table: dashed outline, no shadow, blank cards waiting in the cover. */
.game-card--next { background: transparent; border-style: dashed; border-color: var(--color-control-edge); box-shadow: none; }
.game-card--next .game-art { background: var(--color-surface-2); border-bottom: var(--border-width) dashed var(--color-control-edge); }
.game-card--next .fan { bottom: 34px; } /* the whole hand in view: blank cards waiting to be dealt */
.game-card--next .game-art .pc { background: transparent; color: var(--object-dashed); box-shadow: none; border: var(--border-width) dashed var(--object-dashed); font-size: 2.2rem; }
.game-card--next p { color: var(--color-ink-muted); }
/* The candidates in the "Your game next?" card: choice chips (not buttons), two per row, 44 px tap targets. */
.next-games { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.next-games a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-3);
  border: var(--border-width) solid var(--color-control-edge); border-radius: var(--radius-pill);
  color: var(--color-ink); font: 600 var(--text-sm)/1.2 var(--font-display); text-align: center; text-decoration: none;
}
.next-games a:hover { border-color: var(--color-ink); background: var(--color-surface-2); }
.next-games a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .game-card { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .game-card:hover { transform: translate(-1px, -2px); box-shadow: var(--shadow-pop-lg); }
  .game-card--next:hover { transform: none; box-shadow: none; border-color: var(--color-line-strong); }
}

/* 4. Site footer (Trust owns content: trust/partials/footer.html) ---------- */
.cast-stripe { display: grid; grid-template-columns: repeat(9, 1fr); height: 6px; }
.cast-stripe span:nth-child(1) { background: var(--char-rocket); }
.cast-stripe span:nth-child(2) { background: var(--char-shark); }
.cast-stripe span:nth-child(3) { background: var(--char-crown); }
.cast-stripe span:nth-child(4) { background: var(--char-robot); }
.cast-stripe span:nth-child(5) { background: var(--char-octo); }
.cast-stripe span:nth-child(6) { background: var(--char-ufo); }
.cast-stripe span:nth-child(7) { background: var(--char-cat); }
.cast-stripe span:nth-child(8) { background: var(--char-cactus); }
.cast-stripe span:nth-child(9) { background: var(--char-dino); }

/* Small lockup for the footer and other secondary places (mark ~29-32 px).
   <a class="brand brand--sm" href="/"><img class="brand__mark" src="/brand/logo/mark.svg" alt="" width="30" height="30"><span class="brand__name" data-brand="name">Tallycat Games</span></a>
   Inside .site-footer the plain .brand lockup gets this size automatically. */
.brand--sm, .site-footer .brand { font-size: var(--text-lg); gap: 0.4em; }

.site-footer { margin-top: var(--section-y); background: var(--color-surface); color: var(--color-ink); border-top: 1px solid var(--color-line); }
.site-footer .wrap { padding-block: 2.25rem 1.5rem; }
.footer-top { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.footer-brand p { color: var(--color-ink-muted); margin: 0.7rem 0 0; max-width: 22rem; font-size: var(--text-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.footer-cols h2 {
  font: var(--weight-bold) var(--text-xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-ink-muted); margin: 0 0 0.75rem;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0; }
.footer-cols a { display: inline-block; padding: 0.35rem 0; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.footer-cols a:hover { color: var(--color-link); text-decoration: underline; }
.footer-legal {
  margin-top: var(--space-6); padding-top: 1.25rem; border-top: 1px solid var(--color-line);
  color: var(--color-ink-muted); font-size: 0.875rem; display: grid; gap: 0.6rem; /* 14 px: critic A11 minimum */
}
.footer-legal p { margin: 0; }
.footer-legal .row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; justify-content: space-between; }
.footer-legal a { display: inline-block; padding-block: 4px; color: var(--color-ink-muted); } /* a 24 px target, not just its 17 px line */
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.1fr 2fr; } } /* beside the brand, four columns need ~640 px or their links wrap */
/* The page's last section ends at the footer's gap: no second gap from its own bottom padding. */
main > .section:last-child:not(.section--alt):not(.section--night) { padding-bottom: 0; }

/* 5. Chips: the ONE drawing of a chip (critic D6) ---------------------------
   The image is the character badge only (a disc); the name is real text under
   it, never inside the image (lettering in an image can't use Fredoka and
   catches the drop shadow below, which made small names unreadable):
     <figure class="chip-fig"><img class="chip-art" src="../brand/chips/cat.svg" alt="" width="64" height="64"><figcaption class="chip-name">Cat</figcaption></figure>
   Decorative chips (no name): <img class="chip-art" src="../brand/chips/cat.svg" alt="" width="64" height="64">
   Sprite: <svg class="chip-art" role="img" aria-label="Cat chip"><use href="#chip-cat"/></svg>
   Tilt with --tilt; size with --chip-size. The name follows the text colour. */
.chip-art {
  display: inline-block;
  width: var(--chip-size, 96px); height: auto; aspect-ratio: 1;
  transform: rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 3px 0 var(--object-rim)) drop-shadow(0 10px 14px rgb(0 0 0 / 0.22));
}
.chip-fig { display: inline-grid; justify-items: center; gap: .5em; margin: 0; }
.chip-name {
  font: 700 var(--chip-name-size, 0.95rem)/1.1 var(--font-display);
  letter-spacing: .05em; text-transform: uppercase; color: currentColor; text-align: center;
}
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.chip-row > :nth-child(3n+1) { --tilt: -4deg; }
.chip-row > :nth-child(3n+2) { --tilt: 3deg; }
.chip-row > :nth-child(3n) { --tilt: -1.5deg; }
@media (prefers-reduced-motion: no-preference) {
  .chip-art { transition: transform var(--dur) var(--ease-out); }
  a:hover > .chip-art, .chip-art:hover { transform: rotate(0deg) translateY(-4px); }
}

/* 6. Steps: one numeral style everywhere (marigold disc, ink rim) ----------
   Plain list (Games, Store). Wrapping title + text in one <div> is fine, and so
   are bare <h3>/<p> children: everything sits in column 2.
     <ol class="steps steps--row"><li><div><h3>Tag each row</h3><p>...</p></div></li>...</ol>
   Illustrated cards (Home's how-it-works, adopted as the art variant):
     <ol class="steps steps--art"><li><div class="step-art">...</div><div><h3>Tag your row</h3><p>...</p></div></li>...</ol>
   Both use the same numeral; it moves inline before the title in --art. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
@media (min-width: 1000px) { .steps--row { grid-template-columns: repeat(3, 1fr); } } /* three across only with room for a title per line: at 768 they wrapped word by word */
.steps > li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-3); align-items: start; align-content: start;
}
.steps > li::before {
  content: counter(step);
  grid-column: 1; grid-row: 1 / span 3;
  display: grid; place-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: var(--border-width) solid var(--color-line-strong); box-shadow: var(--shadow-pop-sm);
  font: var(--weight-bold) var(--text-lg)/1 var(--font-display);
}
.steps > li > * { grid-column: 2; min-width: 0; }
.steps h3 { margin: 0.4rem 0 var(--space-1); font-size: var(--text-lg); }
.steps p { margin: 0; color: var(--color-ink-muted); font-size: var(--text-sm); }

/* Art variant: card with an illustration on felt, numeral inline before the title.
   Everything is top-aligned, so art, numerals and titles sit on one line across a row of cards:
   art above the text on phones and in the three-up row; art beside the text in between, where
   one card is the full width of the page. */
.steps--art { gap: var(--space-4); }
@media (min-width: 1100px) { .steps--art { grid-template-columns: repeat(3, 1fr); } }
.steps--art > li {
  grid-template-columns: 1fr; row-gap: var(--space-4); align-items: start;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-4);
}
@media (min-width: 600px) and (max-width: 1099px) { .steps--art > li { grid-template-columns: 112px 1fr; column-gap: var(--space-5); } }
.steps--art > li::before { content: none; }
.steps--art > li > * { grid-column: auto; }
.step-art { width: 112px; height: 96px; border-radius: var(--radius-md); background: var(--color-felt); display: grid; place-items: center; overflow: hidden; }
.steps--art h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--text-xl); }
.steps--art h3::before {
  counter-increment: none; content: counter(step);
  display: grid; place-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: var(--border-width) solid var(--color-line-strong); box-shadow: var(--shadow-pop-sm);
  font: var(--weight-bold) var(--text-sm)/1 var(--font-display);
}
.steps--art p { font-size: var(--text-base); }

/* 7. Table-top forms (critic D4: body sections that come from the table) --- */
/* Felt band: "at the table" content, chips cross-sell */
.band--felt { background: var(--color-felt); color: var(--color-felt-ink); border-radius: var(--radius-lg); padding: var(--space-5); }
.band--felt a:not(.btn) { color: inherit; }
.band--felt p { color: var(--color-night-ink-muted); }

/* Score sheet: ruled table with tabular numbers, for specs, shipping, "what it reads" */
.score-sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; background: var(--color-surface); border: var(--border-width) solid var(--color-line-strong); border-radius: var(--radius-md); overflow: hidden; }
.score-sheet th, .score-sheet td { text-align: left; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-line); vertical-align: top; }
.score-sheet th { font: var(--weight-semibold) var(--text-sm)/1.4 var(--font-display); color: var(--color-ink-muted); width: 38%; }
.score-sheet tr:last-child > * { border-bottom: 0; }
.score-sheet td.num { text-align: right; font-family: var(--font-mono); }

/* Tally rule: section divider drawn as a five-bar tally (masked, so it takes --color-ink in both themes) */
.tally-rule {
  border: 0; height: 24px; width: 56px; margin: var(--space-7) auto;
  background: var(--color-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cg stroke='%23000' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 3v18M21 3v18M30 3v18M39 3v18M5 18L48 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cg stroke='%23000' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 3v18M21 3v18M30 3v18M39 3v18M5 18L48 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* 8. Groups of controls ------------------------------------------------------
   Button row: a primary and its secondary (or two equals). Side by side, sharing the row, while both
   labels fit; else stacked at full width: never a ragged stack of two different widths.
     <div class="btn-row"><a class="btn btn--primary btn--lg" ...>Score Flip 7</a><a class="btn btn--secondary btn--lg" ...>How it works</a></div>
   One size per row (both --lg, or neither). A single button needs no row. */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 38rem; }
.btn-row > .btn { flex: 1 1 0; min-width: -webkit-fit-content; min-width: fit-content; } /* equal shares of the row, never narrower than the label: the row wraps instead */

/* Field row: an input and its button on one line (request a game, newsletter, notify me). The field
   takes the room; when the row is too narrow the button drops under it at full width. Both 48 px. */
.field-row, .request-go, .news-form__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
:is(.field-row, .request-go, .news-form__row) > .input { flex: 999 1 14rem; min-width: 0; min-height: 48px; }
:is(.field-row, .request-go, .news-form__row) > .btn { flex: 1 0 auto; min-height: 48px; min-width: 11rem; } /* one width, so stacked forms line up */
.request-go { margin-top: var(--space-3); }

/* Newsletter form (build.py news_form): one email field posting to Kit. */
/* Rhythm: 12 px between label, field row and fine print (as in the request form), 32 px above the group. */
.news-form { display: grid; gap: var(--space-3); margin-top: var(--space-6); max-width: 34rem; }
.news-form__label { font-weight: var(--weight-semibold); color: var(--color-ink); }
.news-form__fine { font-size: var(--text-sm); color: var(--color-ink-muted); margin: 0; }
.news-form__status { margin: 0; font-weight: var(--weight-semibold); }
.news-form__status.is-error { color: var(--color-danger); }

/* Facts line: the short "good to know" list under a hero (Free · Works offline · No account).
   Each item carries its own marigold dot, so a wrapped line never starts with a stray separator. */
.facts-line { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-ink-muted); }
.facts-line li { display: flex; align-items: center; gap: var(--space-2); }
.facts-line li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-line-strong) 25%, transparent); }

/* FAQ: one accordion everywhere (game pages, chips, tags, Help). Hairline rows; the marker is the
   steps' marigold disc, so "open me" reads the same as the numbered steps.
     <div class="faq"><details><summary>Is it really free?</summary><p>Yes...</p></details>...</div>
   Help groups its questions under headings: <details class="faq-item"> there, same look. */
.faq { border-top: 1px solid var(--color-line); max-width: var(--container-narrow); }
:is(.faq details, details.faq-item) { border-bottom: 1px solid var(--color-line); }
:is(.faq details, details.faq-item) > summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: var(--space-3) 48px var(--space-3) 0;
  cursor: pointer; list-style: none; font-weight: var(--weight-semibold); line-height: var(--leading-snug); text-wrap: balance;
}
:is(.faq details, details.faq-item) > summary::-webkit-details-marker { display: none; }
:is(.faq details, details.faq-item) > summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink); border: var(--border-width) solid var(--color-line-strong);
  font: var(--weight-bold) 1.05rem/1 var(--font-body);
}
:is(.faq details, details.faq-item)[open] > summary::after { content: "\2212"; }
:is(.faq details, details.faq-item) > summary:focus-visible { outline-offset: 4px; }
:is(.faq details, details.faq-item) > :not(summary) { margin: 0 0 var(--space-4); max-width: 36em; color: var(--color-ink-muted); }
:is(.faq details, details.faq-item) > :not(summary) :is(p, ul, ol) { max-width: 36em; }
:is(.faq details, details.faq-item) > :not(summary) > :last-child { margin-bottom: 0; }
:is(.faq details, details.faq-item) > :not(summary) a { font-weight: var(--weight-semibold); }

/* ™ after the wordmark: small, raised, and never read aloud (aria-hidden). */
.tm { font-size: .45em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: .04em; letter-spacing: 0; }
@media (min-width: 381px) { .brand__name { white-space: nowrap; } } /* the ™ mustn't push "Games" onto a second line; the narrowest phones may wrap, as before */
