/* ==========================================================================
   app.css — shell, menu, lobby picker, room screens and dialogs.
   Reads only the variables in tokens.css. The table has its own sheets.
   Open-house direction: printed vinyl cloth under white card stock, a red
   banner on top, red for everything pressable. Menu choices (games, modes,
   stake tables) are raised stock cards with a red CTA or arrow, so every
   pressable thing reads as a button. The body sits on the veiled cloth;
   each game tile's band is bare cloth.
   Borders on buttons and pills stay 1px and an inset ring supplies the second
   pixel, so a box never grows when the look changes.
   ========================================================================== */

* { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--cloth);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  scrollbar-color: var(--hairline-strong) var(--cloth);
}

body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--cloth-surface);
}

/* Menus scroll past the first screen; a fixed-height body would end its
   background there and leave a seam. The table keeps the fixed height. */
html:not(.at-table) body { height: auto; min-height: 100%; }

/* Classes below set size and colour; face, weight and tracking come from here. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
input, select, textarea { caret-color: var(--red); }

#app { min-height: 100%; display: flex; flex-direction: column; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- top bar --------------------------------------------------------------- */

/* Opaque on purpose: the bar is sticky, and a translucent one lets page text
   scroll visibly under the brand. */
.topbar {
  display: flex; align-items: center; gap: 14px;
  height: 64px;
  padding: 0 var(--bar-gutter);
  background: var(--red);
  box-shadow: var(--shadow-bar);
  position: sticky; top: 0; z-index: var(--z-hud);
}
/* The leaf ring is 1.8:1 against the red, so on the bar it turns cream. */
.topbar :focus-visible { outline-color: var(--on-red); }

.topbar__spacer { flex: 1; }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; min-width: 0; flex: none;
  color: var(--on-red); font-family: var(--font-display);
  font-size: 17px; font-weight: 700; letter-spacing: normal; white-space: nowrap;
  text-decoration: none; border-radius: var(--r-md);
}
/* Underline rather than a lighter tint: no tint of the cream holds 4.5:1 on the red. */
.wordmark:hover .wordmark-text { text-decoration: underline; text-underline-offset: 3px; }
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none;
  border-radius: var(--r-md);
  background: var(--on-red); color: var(--red);
}
.mark svg { display: block; width: 16px; height: 16px; }
/* Phones keep "Entropic" and drop the rest; the link's aria-label still reads in full. */
@media (max-width: 519px) {
  .wordmark-rest { display: none; }
}

.chip-purse {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  font-family: var(--font-display);
  border: 1.5px solid var(--on-red-line); border-radius: var(--r-pill);
  background: transparent;
}
.chip-purse::before {
  content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--coin); box-shadow: inset 0 0 0 2px var(--coin-edge);
}
.chip-purse span {
  color: var(--on-red); font-size: clamp(16px, 2vw, 20px); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chip-purse small { font-size: 14px; font-weight: 400; color: var(--on-red); }
/* Rescue mode has to read as a warning, and danger red vanishes on the red
   bar, so the pill fills with stock for that one state. */
.chip-purse.is-rescue { background: var(--stock); border-color: var(--stock); }
.chip-purse.is-rescue span { color: var(--danger); }
.chip-purse.is-rescue small { color: var(--text-secondary); }

/* --- layout --------------------------------------------------------------- */

.page {
  flex: 1; width: 100%; max-width: var(--container-max); margin: 0 auto;
  padding: clamp(16px, 3vw, 34px) var(--gutter) var(--s-48);
}

/* Headings and the record sit straight on the cloth, where a peony would sit
   behind the letters, so each is a white card with its own padding. */
.page__head, .record {
  padding: clamp(18px, 2.6vw, 28px);
  background: var(--white); border-radius: var(--r-ui);
  box-shadow: var(--shadow-paper), inset 0 0 0 1px var(--hairline);
}
.page__head { margin-bottom: 22px; }

/* Menu header: text on the left, a strip of cloth with a card fan on the right.
   The card's padding moves to the text column so the band can run flush to the
   top, right and bottom edges. The inset hairline sits on a pseudo-element
   because the band's background would paint over the card's own inset ring. */
.menu-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 30%, 320px);
  padding: 0;
  box-shadow: var(--shadow-paper);
}
.menu-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hairline);
}
.menu-hero__text { min-width: 0; padding: clamp(18px, 2.6vw, 28px); }
.menu-hero__band {
  display: flex; align-items: center; justify-content: center;
  background: var(--cloth-texture) 0 0 / 360px 360px, var(--cloth);
  border-left: 1px solid var(--hairline);
  border-radius: 0 calc(var(--r-ui) - 1px) calc(var(--r-ui) - 1px) 0;
}
.menu-hero__band .card {
  --card-w: 64px; flex: none;
}
/* The overlap is a fraction of the card, in px, never a percentage of the row. */
.menu-hero__band .card + .card { margin-left: calc(var(--card-w) * -0.35); }
.menu-hero__band .card:nth-child(1) { transform: translateY(6px) rotate(-12deg); }
.menu-hero__band .card:nth-child(2) { transform: rotate(0deg); }
.menu-hero__band .card:nth-child(3) { transform: translateY(6px) rotate(12deg); }
.menu-hero__actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 20px;
}
.menu-hero__hint { font-size: 14px; color: var(--text-tertiary); }
/* Phone landscape: the header would otherwise take over half the screen. */
@media (max-height: 500px) {
  .menu-hero__band .card { --card-w: 52px; }
  .menu-hero__text { padding: 12px 20px; }
  .menu-hero .eyebrow { margin-bottom: 4px; }
  .menu-hero .page__title--display { font-size: var(--t-h1); margin-bottom: 6px; }
  .menu-hero .page__sub { font-size: 15px; line-height: 1.45; }
  .menu-hero__actions { margin-top: 10px; }
}
@media (max-width: 599px) {
  .menu-hero { grid-template-columns: minmax(0, 1fr); }
  .menu-hero__band { display: none; }
  .menu-hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .menu-hero__actions .btn { width: 100%; }
  .menu-hero__hint { text-align: center; }
}
.page__title { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--red-deep); }
.page__title--display { font-size: var(--t-display); line-height: 1.12; margin-bottom: 10px; }
.eyebrow {
  display: block; margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red);
}
.page__sub { margin: 0; color: var(--text-secondary); max-width: 60ch; line-height: 1.6; font-size: var(--t-body); }

.rule { height: 1px; background: var(--hairline); margin: 28px 0; }

/* --- buttons -------------------------------------------------------------- */

/* Secondary by default: white, red outline, red text. */
.btn {
  font: inherit; font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-body); color: var(--red-hover);
  padding: 11px var(--s-20); border-radius: var(--r-btn); cursor: pointer;
  border: 1px solid var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-std), background var(--dur-fast) var(--ease-std);
}
.btn:hover:not(:disabled) { background: var(--red-tint); }
.btn--primary { background: var(--red); color: var(--on-red); border-color: var(--red); box-shadow: var(--shadow-btn); }
.btn--primary:hover:not(:disabled) { background: var(--red-hover); border-color: var(--red-hover); }
/* The raised look is for the menu and room screens (everything under .page).
   The table HUDs and control strips reuse .btn and .back-link at sizes tuned to
   fit a phone in landscape, so they keep the flat versions above. */
.page .btn {
  min-height: 44px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-std);
}
.page .btn:hover:not(:disabled) { background: var(--red-tint); }
.page .btn--primary { background: var(--red); box-shadow: var(--shadow-btn); }
.page .btn--primary:hover:not(:disabled) { background: var(--red-hover); }
@media (hover: hover) {
  .page .btn:hover:not(:disabled) { transform: translateY(-1px); }
}
.page .btn:active:not(:disabled) { transform: translateY(0); }
.btn--danger { border-color: var(--danger); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.btn--ghost { background: transparent; }
.btn--big { font-size: 18px; padding: 13px 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--spaced { margin-top: 18px; }
/* After every other .btn rule so it wins at equal specificity. */
.btn:disabled, .page .btn:disabled, .page .btn--primary:disabled {
  background: var(--stock); border-color: var(--hairline); color: var(--text-faint);
  box-shadow: none; cursor: not-allowed;
}

.back-link {
  background: none; border: 0; color: var(--text-secondary); font: inherit;
  font-family: var(--font-display); font-weight: 700; cursor: pointer;
  padding: 6px 2px; display: inline-flex; align-items: center; gap: 7px;
}
.back-link:hover { color: var(--red-hover); }
.page .back-link {
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 6px 14px; margin-bottom: 16px;
  background: var(--white);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hairline);
}
.page .back-link:hover { border-color: var(--red); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--red); }

/* --- raised cards: menu, mode picker, online create/join, variants -------- */

.tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name go" "tag go" "desc desc";
  column-gap: 14px; row-gap: 2px; align-items: center;
  /* Cards in a row are stretched to the tallest; keep the text at the top
     instead of spreading the extra height between the rows. */
  align-content: start;
  min-width: 0; position: relative;
  padding: 18px 20px;
  border: 1px solid var(--hairline); border-radius: var(--r-ui);
  background: var(--card-ui-bg);
  box-shadow: var(--shadow-paper);
  text-align: left; color: inherit; font: inherit; cursor: pointer;
  transition: transform var(--dur-med) var(--ease);
}

.tile__name { grid-area: name; align-self: end; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--red-deep); line-height: 1.2; }
.tile__zh { font-size: 0.66em; color: var(--red); margin-left: 10px; font-weight: 700; letter-spacing: 0; }
.tile__tag { grid-area: tag; align-self: start; margin: 0; font-size: 15px; color: var(--text-tertiary); text-transform: none; letter-spacing: 0; }
.tile__desc { grid-area: desc; margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text-secondary); }

/* The arrow is the affordance on the plain choice cards; the game cards have a
   Play button instead. */
button.tile:not(.tile--game)::after {
  content: "→"; grid-area: go; align-self: center; justify-self: end;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  color: var(--red); font-size: 18px; line-height: 1;
  transition: transform var(--dur-med) var(--ease);
}

/* Menu: one card per game, cloth banner on top, Play button underneath. */

.tiles--games {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

/* No overflow: hidden here. The hover lift needs a strip hanging below the card
   (see the press states), and a clipped card would clip that too, so the banner
   rounds its own top corners instead. */
.tile--game {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0;
}

.tile__fan {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 132px;
  background: var(--cloth-texture) 0 0 / 360px 360px, var(--cloth);
  border-bottom: 1px solid var(--hairline);
  border-radius: calc(var(--r-ui) - 1px) calc(var(--r-ui) - 1px) 0 0;
}
.tile__fan .card {
  --card-w: 60px; flex: none;
  transition: transform var(--dur-med) var(--ease);
}
/* The overlap is a fraction of the card, in px, never a percentage of the row. */
.tile__fan .card + .card { margin-left: calc(var(--card-w) * -0.3); }
.tile__fan .card:nth-child(1) { transform: translate(-6px, 3px) rotate(-9deg); }
.tile__fan .card:nth-child(2) { transform: translate(6px, -3px) rotate(8deg); }

.tile__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 18px 18px; }
/* align-self: end above means "bottom row of the grid"; in this column it would push the name right. */
.tile--game .tile__name, .tile--game .tile__tag { align-self: flex-start; }
.tile--game .tile__desc {
  margin-top: 10px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden;
}

.tile__foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.tile__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.tile__stats span { white-space: nowrap; }
.tile__foot b { font-family: var(--font-display); color: var(--red-deep); font-weight: 700; font-size: 17px; }

.tile__cta {
  flex: none; padding: 7px 18px;
  border-radius: var(--r-btn); background: var(--red); color: var(--on-red);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3;
  box-shadow: var(--shadow-btn);
}

/* Planned games: same card, no button, no hover. A div, so it is not a tab stop.
   Dimmed with colour, not opacity: a translucent card lets the peonies behind
   it show through the words. */
.tile--soon { cursor: default; }
.tile--soon .tile__name, .tile--soon .tile__zh, .tile--soon .tile__tag, .tile--soon .tile__desc { color: var(--text-tertiary); }
.tile--soon .tile__fan { background: var(--table-surface); }
.tile__soon {
  padding: 5px 16px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--pill-bg); color: var(--text-secondary);
  box-shadow: var(--shadow-1);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* --- raised cards: stake tables ------------------------------------------- */

.lobbies {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.lobby {
  display: flex; flex-direction: column; align-items: stretch;
  position: relative; min-width: 0; padding: 18px;
  border: 1px solid var(--hairline); border-radius: var(--r-ui);
  background: var(--card-ui-bg);
  box-shadow: var(--shadow-paper);
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: transform var(--dur-med) var(--ease);
}
.lobby--rescue { border-color: var(--warning); }
/* A shut table keeps its stock fill (opacity would let the cloth print show
   through the words) and goes quiet through colour instead. The reason it is
   shut is the one line that has to stay legible, so it keeps a text colour. */
.lobby:disabled { cursor: not-allowed; box-shadow: none; }
.lobby:disabled .lobby__pot, .lobby:disabled .lobby__name { color: var(--text-faint); }
.lobby:disabled .lobby__lock { color: var(--text-secondary); font-weight: 700; }

.lobby__pot {
  font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--red-deep); font-variant-numeric: tabular-nums;
}
.lobby__pot small { display: block; font-family: var(--font); font-size: 13.5px; letter-spacing: 0; font-weight: 400; color: var(--text-tertiary); }
.lobby__name { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 0; color: var(--red-deep); }
.lobby__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.lobby__meta span {
  padding: 2px 10px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--pill-bg); box-shadow: var(--shadow-1);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; color: var(--text-secondary); white-space: nowrap;
}
.lobby__blurb { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.lobby__lock { margin: 12px 0 0; font-size: 14px; color: var(--text-tertiary); }
.lobby--rescue .lobby__pot { color: var(--warning); }

.lobby:not(:disabled)::after {
  content: "Sit down →"; margin-top: auto;
  text-align: center; padding: 9px;
  border: 1px solid var(--red); border-radius: var(--r-btn);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--red);
  color: var(--red-hover); font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3;
}
/* margin-top: auto only has room to work when the content is shorter than the
   card, so keep a floor under whatever comes last. */
.lobby:not(:disabled) > :last-child { margin-bottom: 14px; }

/* --- press states, shared by every card ------------------------------------ */

@media (hover: hover) {
  button.tile:hover,
  .lobby:not(:disabled):hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-8);
  }
  /* The card rises 3px, which leaves the bottom 3px of its old footprint outside
     it: a pointer resting there would drop the hover, the card would fall back,
     and it would flicker. This strip keeps the lifted card under the pointer. */
  button.tile:hover::before,
  .lobby:not(:disabled):hover::before {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 3px;
  }
  button.tile:hover .tile__name { color: var(--red); }
  button.tile:not(.tile--game):hover::after {
    background: var(--red); border-color: var(--red); color: var(--on-red);
    transform: translateX(3px);
  }
  button.tile--game:hover .tile__cta { background: var(--red-hover); }
  button.tile--game:hover .tile__fan .card:nth-child(1) { transform: translate(-16px, 4px) rotate(-14deg); }
  button.tile--game:hover .tile__fan .card:nth-child(2) { transform: translate(16px, -4px) rotate(13deg); }
  .lobby:not(:disabled):hover::after { background: var(--red); color: var(--on-red); }
}
button.tile:active,
.lobby:not(:disabled):active { transform: translateY(0) scale(0.99); }

@media (max-width: 479px) {
  .tiles, .tiles--games, .lobbies { grid-template-columns: minmax(0, 1fr); }
}
/* Phone landscape: the banner would take a quarter of the screen. */
@media (max-height: 500px) {
  .tile__fan { height: 96px; }
  .tile__fan .card { --card-w: 52px; }
}

/* --- panels and forms ----------------------------------------------------- */

.card-panel {
  background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: var(--r-ui);
  box-shadow: var(--shadow-paper);
  padding: clamp(16px, 2.4vw, 24px);
}
.panel__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--red-deep); margin: 0 0 10px; }
.panel__list { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--text-secondary); font-size: 15px; }
.panel__list li::marker { color: var(--red); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.field[hidden] { display: none; }
.field__label { font-family: var(--font-display); font-weight: 700; color: var(--text-secondary); letter-spacing: 0; }
.field__hint { font-size: var(--t-caption); color: var(--text-tertiary); }
.field__hint--block { margin: 14px 0 0; }
.input {
  font: inherit; font-size: var(--t-body); color: var(--text); padding: 10px var(--s-12); border-radius: var(--r-sm);
  border: 1px solid var(--hairline-strong); background: var(--input-bg);
}
.input:focus-visible { border-color: var(--leaf); }
.input--code { font-size: 24px; letter-spacing: 0.18em; text-align: center; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }

.room-code {
  font-family: var(--font-display);
  font-size: clamp(34px, 7.5vw, 56px); letter-spacing: 0.2em; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--red-deep); text-align: center; padding: 14px 0 6px;
}
.room-url { text-align: center; color: var(--text-tertiary); font-size: 15px; word-break: break-word; line-height: 1.6; }

/* The invite URL takes the whole row; the share button sits beside it when
   there is room and drops underneath when there is not. */
.invite-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.invite-row .input { flex: 1 1 260px; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.invite-row .btn { flex: 0 0 auto; }

.seat-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.seat-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-radius: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline); font-size: 15px;
}
.seat-list .is-host { color: var(--red-deep); font-weight: 700; }
.seat-list__chips { color: var(--text-secondary); font-weight: 700; font-variant-numeric: tabular-nums; }
/* Compact so a row with a name, chips and an action still fits an 844px phone. */
.seat-list .btn--small, .page .seat-list .btn--small { font-size: 13px; padding: 4px 10px; min-height: 0; line-height: 1.3; white-space: nowrap; flex: 0 0 auto; }
.seat-heading { margin: 18px 0 0; font-size: 14px; font-weight: 700; color: var(--text-tertiary); }
.seat-heading + .seat-list, .seat-heading + .game-pick { margin-top: 6px; }

.game-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.game-pick__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px;
  font: inherit; font-size: 15px; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--hairline-strong); border-radius: var(--r-md); cursor: pointer;
}
.game-pick__btn small { font-size: 13px; color: var(--text-tertiary); }
.game-pick__btn:hover:not(:disabled) { background: var(--red-tint); }
/* The current game is disabled (nothing to switch to) but must not look greyed out. */
.game-pick__btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); opacity: 1; cursor: default; }
.game-pick__btn[aria-pressed="true"] small { color: var(--on-red); }

.notice {
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--panel);
  padding: 12px 16px; margin: 16px 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary);
}
.notice--warn { border-color: var(--danger-line); }
.notice--warn b { color: var(--danger); }

/* --- stats ledger --------------------------------------------------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--hairline); }
.stat {
  padding: 10px 16px 10px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--hairline); background: none; border-radius: 0;
}
.stat__k { font-size: 14px; color: var(--text-tertiary); text-transform: none; letter-spacing: 0; }
.stat__v { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--red-deep); font-variant-numeric: tabular-nums; }
.stat-grid--spaced { margin-top: 18px; }

.record { margin-top: 30px; }
/* Cream halo: on the menu this line sits on the print itself, below the record. */
.footnote { color: var(--text-tertiary); font-size: 14px; line-height: 1.65; text-shadow: 0 0 3px var(--cloth), 0 0 6px var(--cloth), 0 0 10px var(--cloth); }
.record + .footnote { margin-top: 18px; }
a { color: var(--leaf-ink); }
