/* Games & requests mockups. Load AFTER ../brand/tokens.css and ../brand/components.css
   (.game-card, .steps, footer and .wrap live there now; meeting 02, decision 2).
   Local names map onto the brand tokens here, in one place; no hex values
   except inside the table-top illustrations (fixed physical colours). */
:root {
  --paper: var(--color-bg);
  --paper-2: var(--color-surface-2);
  --card: var(--color-surface);
  --ink: var(--color-ink);
  --muted: var(--color-ink-muted);
  --line: var(--color-line);
  --accent: var(--color-link);          /* rust: text accents, tally ticks */
  --accent-ink: var(--color-bg);
  --live: var(--color-success);
  --live-soft: var(--color-success-soft);
  --progress: var(--color-warning);
  --progress-soft: var(--color-accent-soft);
  --asked: var(--char-crown-ink);
  --asked-soft: var(--color-surface-2);
  --focus: var(--color-focus);
  --radius: var(--radius-lg);
  --radius-sm: var(--radius-md);
  --shadow: var(--shadow-md);
  --display: var(--font-display);
  --body: var(--font-body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; }
/* Title scale (site-wide): product pages (home, chips, tags, a game) open at --text-4xl; index and
   utility pages (games, requests, beta, help, legal) at --text-3xl, like brand's .page-title. */
h1 { font-size: var(--text-3xl); }
.game-hero h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); line-height: var(--leading-snug); }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* pills and badges */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--body); padding: 6px 10px; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--live); background: var(--live-soft); }
.pill-progress { color: var(--progress); background: var(--progress-soft); }
.pill-asked { color: var(--asked); background: var(--asked-soft); }

/* page hero */
.hero { padding-block: 32px 20px; }
/* .kicker: the brand's .eyebrow under its old name (one label style site-wide) */
.kicker { display: block; font: var(--weight-semibold) var(--text-sm)/1.2 var(--font-display); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink-muted); margin: 0 0 var(--space-2); }
.hero p.lede { color: var(--muted); margin-top: var(--space-3); max-width: 34em; }
.hero .facts-line { margin-top: var(--space-4); }

/* section heads */
.section { padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }

/* table-top illustrations in the game cards: components.css (.game-art) */

/* felt band (cross-sell, CTA) */
.felt { background: var(--color-night); color: var(--color-night-ink); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px 20px; position: relative; overflow: hidden; }
.felt a:not(.btn) { color: inherit; }
.felt p { color: color-mix(in srgb, var(--color-night-ink) 86%, transparent); }
.cast { display: grid; grid-template-columns: repeat(9, minmax(0, 34px)); gap: 6px; }
.cast img { width: 100%; height: auto; }

/* tally bar: one tick per ask, width set inline as share of the top game */
.tally, .tally-track { display: block; }
.tally {
  height: 16px; border-radius: 3px; min-width: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2.5px, transparent 2.5px 7px);
}
.tally-track { background: var(--paper-2); border-radius: 4px; padding: 3px; }

/* forms */
label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="email"], input[type="search"] {
  font: inherit; color: var(--ink); background: var(--card);
  border: var(--border-width) solid var(--color-control-edge); border-radius: var(--radius-md); min-height: 48px; padding: var(--space-2) var(--space-4); width: 100%;
}
input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-line-strong); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-2); align-items: start; font-weight: 400; font-size: var(--text-sm); color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* faq: components.css .faq */
.section.faq { max-width: calc(var(--container) + 2 * var(--gutter)); border-top: 0; } /* (a .wrap: keep its width) */
.section.faq > h2 { margin-bottom: var(--space-3); }
.section.faq > details:first-of-type { border-top: 1px solid var(--line); }
.section.faq > details { max-width: var(--container-narrow); }


.mock-note { background: var(--progress-soft); color: var(--ink); font-size: .85rem; padding: 8px 16px; text-align: center; }


/* mini board (games list) */
.mini-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-board li {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name count btn" "bar bar bar";
  gap: 8px 12px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.mb-name { grid-area: name; font: 600 1.1rem var(--display); }
.mini-board .tally-track { grid-area: bar; }
.mb-count { grid-area: count; font: 600 1.2rem var(--display); font-variant-numeric: tabular-nums; }
.mb-count::after { content: " asks"; font: 400 .85rem var(--body); color: var(--muted); }
.mini-board .btn { grid-area: btn; }
@media (min-width: 760px) {
  .mini-board li { grid-template-columns: 180px 1fr 90px auto; grid-template-areas: "name bar count btn"; }
}
.ask-cta { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between;
  border: var(--border-width) dashed var(--color-control-edge); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.chips-band { display: grid; }
@media (min-width: 760px) { .chips-band { padding: 36px 40px; } }

/* game page */
.crumbs { padding-top: var(--space-4); font-size: var(--text-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }
.game-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .game-hero { grid-template-columns: 1.15fr .85fr; gap: 48px; padding-top: 28px; } }
.result {
  margin: 0; background: var(--color-night); color: var(--color-night-ink); border-radius: 22px; padding: 16px;
  box-shadow: var(--shadow); display: grid; gap: 10px; transform: rotate(1.2deg); max-width: 440px; width: 100%; justify-self: center;
}
.result figcaption { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; padding: 2px 4px; }
.res-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  background: var(--object-card); color: var(--object-ink); border-radius: 12px; padding: 10px 14px 10px 10px; }
.res-row img { width: 40px; height: 40px; }
.res-row b { display: block; font: 600 1.05rem var(--display); }
.res-row span { font-size: .82rem; color: var(--object-ink-muted); }
.res-row strong { font: 700 1.8rem var(--display); font-variant-numeric: tabular-nums; }
.res-row.bust strong { color: var(--color-danger); }
.res-row.bust span { color: var(--color-danger); }

.reads { display: grid; gap: 22px; }
@media (min-width: 900px) { .reads { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--live-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.editions-box { background: var(--paper-2); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.ed { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; border-left: 5px solid var(--accent); }

.chips-x { display: grid; gap: 20px; align-items: center; }
.chips-cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; width: 100%; max-width: 22rem; margin-inline: auto; color: var(--color-felt-ink, #fff); } /* (one column: not three 230 px chips at 768) */
.chips-cast .chip-fig { width: 100%; --chip-name-size: .8rem; }
.chips-cast img { width: 100%; height: auto; }
@media (min-width: 860px) { .chips-x { grid-template-columns: 1fr 1.1fr; gap: 36px; padding: 32px; } }

.more-row { display: grid; gap: 12px; }
@media (min-width: 700px) { .more-row { grid-template-columns: 1fr 1fr; } }
.more-card { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.more-card b { font: 600 1.2rem var(--display); }
.more-card:hover { border-color: var(--ink); }
.more-card.ask { border-style: dashed; border-color: var(--color-control-edge); background: transparent; }

/* status badges beyond brand's live/soon */
.badge--progress { color: var(--color-warning); background: var(--color-accent-soft); }
.badge--asked { color: var(--char-crown-ink); background: var(--color-surface-2); border-style: dashed; }

/* requests page */
.ask-box { margin-top: 22px; max-width: 640px; position: relative; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 48px; min-height: 58px; font-size: 1.1rem; border: var(--border-width) solid var(--color-line-strong); box-shadow: var(--shadow-pop-sm); }
.results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.res { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 10px 16px; }
.res.live { border-color: var(--live); background: var(--live-soft); }
.res.new { border-style: dashed; background: transparent; }
.res.added { background: var(--live-soft); border-color: var(--live); }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.board-row {
  display: grid; grid-template-columns: 36px 1fr; grid-template-areas: "rank main" "act act" "slot slot";
  gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  scroll-margin-top: 80px;
}
.board-row:nth-child(-n+3) { border: var(--border-width) solid var(--color-line-strong); }
.rank { grid-area: rank; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.05rem var(--display); background: var(--paper-2); }
.board-row:nth-child(1) .rank { background: var(--color-accent); color: var(--color-accent-ink); }
.br-main { grid-area: main; display: grid; gap: 8px; min-width: 0; }
.br-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.br-title h3 { font-size: 1.2rem; }
.br-counts { color: var(--muted); font-size: var(--text-sm); }
.br-counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.br-actions { grid-area: act; display: flex; gap: 8px; flex-wrap: wrap; }
.br-actions .btn { flex: 1 1 auto; }
.br-actions > form.vote, .br-actions > .row-notify:not([open]) { flex: 1 1 140px; }
.br-actions > form.vote .btn, .row-notify > summary.btn { width: 100%; }
.br-actions .btn[aria-pressed="true"] { background: var(--live-soft); color: var(--live); border-color: var(--live); box-shadow: none; }
.br-slot { grid-area: slot; }
.br-slot:empty { display: none; }
@media (min-width: 760px) {
  .board-row { grid-template-columns: 44px 1fr auto; grid-template-areas: "rank main act" "slot slot slot"; align-items: center; padding: 18px 20px; }
  .br-actions .btn { flex: none; }
}

.notify { display: grid; gap: 12px; background: var(--paper-2); border-radius: var(--radius-sm); padding: 16px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 220px; min-height: 48px; }
.notify-go { justify-self: stretch; }
@media (min-width: 560px) { .notify-go { justify-self: start; } }
.notify-err { color: var(--color-danger); font-weight: 600; font-size: var(--text-sm); }
.notify.done { background: var(--live-soft); }
.notify.done p { color: var(--ink); margin-top: 4px; }
.res-slot { list-style: none; }


.seat { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--object-chip); color: var(--color-ink);
  border: 2px dashed var(--object-dashed); font: 700 1.1rem var(--display); }
.tags-box { display: grid; gap: 22px; align-items: center; background: var(--paper-2); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 860px) { .tags-box { grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 32px; } }
.tag-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ptag { width: 52px; height: 74px; border-radius: 6px; background: var(--object-chip); color: var(--color-ink); display: grid; place-items: end center;
  padding-bottom: 6px; font: 700 1rem var(--display); box-shadow: var(--shadow-md); border: 1px solid var(--object-rim);
  position: relative; }
.ptag::before { content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 30px; height: 30px;
  background: repeating-conic-gradient(var(--color-ink) 0 25%, var(--object-chip) 0 50%) 0 0 / 8px 8px; border: 3px solid var(--color-ink); border-radius: 2px; }
.ptag:nth-child(odd) { transform: rotate(-4deg); } .ptag:nth-child(even) { transform: rotate(3deg); }
.board-empty { list-style: none; text-align: center; display: grid; justify-items: center; gap: 10px;
  border: var(--border-width) dashed var(--color-control-edge); border-radius: var(--radius); padding: 32px 20px; }
.board-empty p { color: var(--muted); max-width: 30em; }
.empty-cast { display: flex; gap: 6px; margin-bottom: 4px; }
.empty-cast img { width: 44px; height: 44px; }
.empty-cast img:nth-child(2) { translate: 0 -8px; }

/* notify confirm / unsubscribe */
.notice-wrap { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); padding-block: 32px 8px; display: grid; gap: 18px; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 14px; justify-items: start; }
.notice.ok { border: var(--border-width) solid var(--color-line-strong); box-shadow: var(--shadow-pop); }
.notice h1 { font-size: var(--text-3xl); }
.notice h2 { font-size: var(--text-xl); }
.notice .ticks { margin: 0; }
.notice-cast { display: flex; gap: 6px; }
.notice-cast img { width: 48px; height: 48px; }
.notice-cast img:nth-child(2) { translate: 0 -8px; }
.small { font-size: var(--text-sm); }
.states-h { font-size: var(--text-lg); color: var(--muted); margin-top: 18px; }

/* footer styles: brand/components.css (section 4) */


.tags-box .btn { flex: 0 1 auto; }

/* requests: no-JS result states (shown by :target after the 303, or .is-on by JS) */
.states { max-width: 640px; }
.state { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--live); background: var(--live-soft); color: var(--ink); }
.state--err { border-color: var(--color-danger); background: var(--color-danger-soft); }
.state:target, .state.is-on { display: block; }
.state:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.ask-label { display: block; font: 600 1.05rem var(--display); margin-bottom: 8px; }
.opt-notify { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 16px 0; padding: 12px 16px 16px; display: grid; gap: 10px; }
.opt-notify legend { font-weight: 600; padding: 0 6px; }
.field-err { color: var(--color-danger); font-weight: 600; font-size: var(--text-sm); }
[aria-invalid="true"] { border-color: var(--color-danger) !important; }
.row-notify { display: inline-block; }
.row-notify > summary { list-style: none; }
.row-notify > summary::-webkit-details-marker { display: none; }
.row-notify[open] { display: block; flex-basis: 100%; }
.row-notify[open] > summary { margin-bottom: 10px; }
.row-notify .notify { margin-top: 0; }
.notify label:not(.check) { font-weight: 600; }
.notify input[type="email"] { min-height: 48px; }

.row-status { grid-area: slot; margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--live-soft); color: var(--ink); }
.row-status:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 760px) {
  .board-row:has(.row-notify[open]) { grid-template-columns: 44px 1fr; grid-template-areas: "rank main" "act act" "slot slot"; }
}
/* one primary per row (meeting 03, decision 9): while the notify form is open, its submit is the primary */
.board-row:has(.row-notify[open]) form.vote .btn--primary { --btn-bg: var(--color-surface); --btn-ink: var(--color-ink); }
.row-notify[open] > summary { --btn-bg: var(--color-surface-2); box-shadow: none; }
.notify-title { font-weight: 600; }
@media (min-width: 760px) {
  .br-actions > form.vote, .br-actions > .row-notify:not([open]) { flex: none; }
  .board-row:not(:has(.row-notify[open])) .br-actions { flex-wrap: nowrap; }
}

/* ---------------------------------------------------------------- beta (infra/beta/README.md)
   The sign-up box on beta game pages (#beta) and the /beta/ page. Result blocks reuse .state above. */
.beta-note { margin-top: 12px; color: var(--muted); font-size: var(--text-sm); max-width: 38em; }
.beta-box { display: grid; gap: 24px; background: var(--card); border: 2px solid var(--color-line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: clamp(18px, 4vw, 32px); }
@media (min-width: 900px) { .beta-box { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.beta-intro h2 { margin-top: 12px; }
.beta-intro > p { margin-top: 10px; }
.beta-steps { margin: 16px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.beta-already { margin-top: 14px; font-size: var(--text-sm); }
.beta-side { display: grid; gap: 14px; }
.beta-states .state { margin-top: 0; }
.beta-form { display: grid; gap: 16px; }
.beta-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.beta-form legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.beta-form .btn { justify-self: stretch; }
@media (min-width: 560px) { .beta-form .btn { justify-self: start; } }
.beta-form .fine { font-size: var(--text-sm); color: var(--muted); }

.beta-page { max-width: 36rem; padding-block: var(--space-6) 0; }
.beta-panel { margin-top: 24px; background: var(--card); border: 2px solid var(--color-line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: clamp(18px, 5vw, 28px); display: grid; gap: 14px; }
.beta-panel .badge { justify-self: start; }
.beta-panel .fine { font-size: var(--text-sm); }
.beta-alt { border-top: 1px solid var(--line); padding-top: 12px; }
.beta-alt summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.beta-alt p { margin: 10px 0 12px; color: var(--muted); font-size: var(--text-sm); }
.beta-msg:empty { display: none; }
.beta-msg { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--paper-2); }
.beta-msg.error { background: var(--color-danger-soft); color: var(--ink); }
.beta-links { color: var(--muted); font-size: var(--text-sm); }
.beta-privacy { margin-top: 20px; font-size: var(--text-sm); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* No passkeys on this device: the device key is the way in. */
.no-passkeys .beta-main, .no-passkeys .beta-main-note { display: none; }

/* Joining the beta yourself (/beta/#join=…): who sends what, the consent box, the optional email. */
.beta-split { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.beta-consent { color: var(--ink); font-weight: 600; }
.beta-optional { font-weight: 400; }
.beta-hint { font-size: var(--text-sm); color: var(--muted); }
.beta-panel .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.beta-side .beta-join { justify-self: stretch; }
@media (min-width: 560px) { .beta-side .beta-join { justify-self: start; } }
.beta-side .fine { font-size: var(--text-sm); color: var(--muted); }

/* button rows (components.css .btn-row): spacing in the hero and in the bands */
.hero-actions { margin-top: var(--space-5); }
.band-actions { margin-top: var(--space-4); }
.chips-band .btn-row { margin-top: var(--space-4); }

/* /games/ chips band: the cast beside the text on wide screens (it left half the band empty) */
.chips-band .cast { margin: var(--space-4) 0 0; }
@media (min-width: 900px) {
  .chips-band > div { display: grid; grid-template-columns: minmax(0, 34em) 1fr; column-gap: var(--space-7); }
  .chips-band > div > :not(.cast) { grid-column: 1; }
  .chips-band .cast { grid-column: 2; grid-row: 1 / span 5; align-self: center; justify-self: center; margin: 0; grid-template-columns: repeat(3, 76px); gap: var(--space-4); }
}

/* Where to get the game (Amazon affiliate links: growth/FACTS.md "Affiliate links"): a quiet text link,
   and the Associates disclosure beside it. No logos, images or prices. */
.ed-buy { margin-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.ed-buy a { display: inline-block; padding-block: .2rem; }
.associate { font-size: var(--text-sm); color: var(--muted); }
