/* Bistro Brawl: restaurant war. Black steel, ember glow, knife-edge corner brackets, deep violet accents. */
@font-face { font-family: "Anton BB"; src: url("/fonts/anton.woff2") format("woff2"); font-display: swap; }
:root {
  --bg: #09080b;
  --panel: #1a171e;
  --panel-2: #121014;
  --raise: #25202b;
  --edge: #40354d;
  --line: #312a3a;
  --ink: #eee7f7;
  --muted: #9e92ad;
  --accent: #9d52ff;
  --accent-2: #5b1fa8;
  --good: #36d17f;
  --bad: #ff3b4e;
  --gold: #ffb21a;
  --steel: linear-gradient(180deg, #201c25, #121015);
  --display: "Anton BB", Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", sans-serif-condensed, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  /* Ember glow painted on the page itself (phones). Fixed layers here made iPhone Safari smear the bars. */
  background:
    radial-gradient(420px 300px at 0 0, rgba(92, 26, 168, .34), transparent 70%),
    radial-gradient(420px 300px at 100% 0, rgba(92, 26, 168, .34), transparent 70%),
    radial-gradient(900px 420px at 50% 100%, rgba(112, 34, 214, .32), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 10px), var(--bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
/* The TV never scrolls, so it gets a fixed glow that flickers like a grill. */
body.tv { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 10px), var(--bg); }
body.tv::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 45% at 50% 112%, rgba(112, 34, 214, .42), transparent 70%),
    radial-gradient(ellipse 50% 40% at -8% -10%, rgba(92, 26, 168, .34), transparent 70%),
    radial-gradient(ellipse 50% 40% at 108% -10%, rgba(92, 26, 168, .34), transparent 70%);
  animation: embers 4s ease-in-out infinite alternate;
}
@keyframes embers { to { opacity: .65; } }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: .35em 0; }
.muted { color: var(--muted); }
.bad { color: var(--bad); font-weight: 700; }
img.ic { width: 1.25em; height: 1.25em; vertical-align: -.25em; }
img.ic-s { width: 1em; height: 1em; vertical-align: -.15em; }
img.ic-xs { width: .8em; height: .8em; vertical-align: -.1em; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0; }
.col { display: flex; flex-direction: column; gap: .45rem; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--dot, var(--c, #999)); box-shadow: 0 0 0 2px var(--ring, rgba(0, 0, 0, .7)), 0 0 8px var(--c, #999); margin-right: .4em; }

/* Knife-edge corner brackets on every big panel. --fx picks the colour. */
.stall, .plaza, .pcard, .phase-card, .recipe, .cook-panel, .intro-card, .lobby-right, .qr-box, .wars,
.join-form, .standings, .rs, .action-card, .offer, .war-box { position: relative; --fx: var(--accent); }
.stall::after, .plaza::after, .pcard::after, .phase-card::after, .recipe::after, .cook-panel::after, .intro-card::after,
.lobby-right::after, .qr-box::after, .wars::after, .join-form::after, .standings::after, .rs::after, .action-card::after,
.offer::after, .war-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; --k: 13px; --w: 2px;
  background:
    linear-gradient(var(--fx), var(--fx)) left top / var(--k) var(--w) no-repeat,
    linear-gradient(var(--fx), var(--fx)) left top / var(--w) var(--k) no-repeat,
    linear-gradient(var(--fx), var(--fx)) right top / var(--k) var(--w) no-repeat,
    linear-gradient(var(--fx), var(--fx)) right top / var(--w) var(--k) no-repeat,
    linear-gradient(var(--fx), var(--fx)) left bottom / var(--k) var(--w) no-repeat,
    linear-gradient(var(--fx), var(--fx)) left bottom / var(--w) var(--k) no-repeat,
    linear-gradient(var(--fx), var(--fx)) right bottom / var(--k) var(--w) no-repeat,
    linear-gradient(var(--fx), var(--fx)) right bottom / var(--w) var(--k) no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 800; color: var(--ink);
  background: linear-gradient(180deg, #2b2533, #1e1a23); border: 1px solid var(--edge); border-radius: 6px;
  padding: .6em 1em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary {
  background: linear-gradient(180deg, #9a55ee, #6d28c4 55%, #471489); border-color: #bb8cff; color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5); text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 2px 0 #24094a, 0 0 16px rgba(150, 70, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn.ghost { background: rgba(0, 0, 0, .25); box-shadow: none; }
.btn.small { padding: .35em .7em; font-size: .9em; }
.btn.big { width: 100%; padding: .85em 1em; font-size: 1.1em; margin-top: .5rem; }
.btn.off { opacity: .4; filter: grayscale(.6); }
.btn.chip, .chip { font: inherit; font-weight: 700; color: var(--ink); border: 1px solid var(--edge); background: #1e1a23; border-radius: 999px; padding: .3em .7em; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.chip.on { border-color: var(--accent); background: rgba(150, 70, 255, .2); box-shadow: 0 0 10px rgba(150, 70, 255, .35); }
.btn.option { justify-content: flex-start; width: 100%; text-align: left; }

/* ---------- logo ---------- */
.logo { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: #ffc46b; text-shadow: 0 3px 0 rgba(0, 0, 0, .6); display: flex; align-items: center; gap: .3em; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .logo {
    background: linear-gradient(180deg, #ffffff 0%, #dfc4ff 38%, #9d52ff 70%, #5a14ad 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .7)) drop-shadow(0 0 16px rgba(150, 70, 255, .45));
  }
}
.logo-ic { width: 1.1em; height: 1.1em; }
.brand { margin: 0; line-height: 0; }
.brand-logo { width: min(100%, 34rem); height: auto; aspect-ratio: 600 / 528; }
.brand-wide { height: 3.6rem; width: auto; aspect-ratio: 560 / 184; }
.lobby .brand-logo { width: auto; height: min(40vh, 34vw); }
.join .brand-logo { width: min(100%, 18rem); }
.tagline { color: #ccb9e3; font-size: 1.1em; }

/* ---------- the board ---------- */
.board { background: radial-gradient(ellipse 85% 60% at 50% 108%, rgba(112, 34, 214, .3), transparent 70%), radial-gradient(ellipse 70% 45% at 50% -10%, rgba(92, 26, 168, .22), transparent 70%), rgba(8, 5, 14, .6); border: 1px solid var(--line); border-radius: 8px; padding: .8rem; box-shadow: inset 0 0 40px rgba(0, 0, 0, .7), 0 10px 30px rgba(0, 0, 0, .5); }
.stall {
  --fx: var(--m); border-radius: 6px; overflow: hidden;
  background: #130f1a; background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 24%, #100c18), #0e0b13 65%);
  border: 1px solid color-mix(in srgb, var(--m) 45%, #000);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 0 24px rgba(0, 0, 0, .4);
}
.stall.here { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(150, 70, 255, .6); }
/* The market's war banner: hazard stripes in its colour. */
.awning { position: relative; height: .55em; background: repeating-linear-gradient(-45deg, var(--m) 0 .6em, color-mix(in srgb, var(--m) 40%, #000) .6em 1.2em); box-shadow: 0 0 14px rgba(125, 50, 220, .6); }
.stall-head { display: flex; align-items: center; gap: .45em; padding: .55em .7em .35em; }
.stall-head h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15em; flex: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.stall-ic { width: 1.4em; height: 1.4em; filter: drop-shadow(0 0 6px rgba(157, 82, 255, .6)); }
.price { font-weight: 900; color: #fff; white-space: nowrap; background: color-mix(in srgb, var(--m) 35%, #000); border: 1px solid var(--m); border-radius: 4px; padding: 0 .4em; }
.price small { color: #ffd7b8; font-weight: 700; }
.slots { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4em; padding: 0 .6em .6em; }
.slot {
  position: relative; font: inherit; color: inherit; padding: 0; margin: 0; border: 0; background: none;
  aspect-ratio: 3 / 4; border-radius: 6px; cursor: pointer; min-width: 0;
}
.slot:disabled { cursor: default; }
.slot .ing, .slot .back {
  position: absolute; inset: 0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em;
}
/* An ingredient card: the colour of its market. */
.ing {
  --m: #777; color: #fff;
  background: var(--m);
  background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--m) 75%, #fff) 0, var(--m) 42%, color-mix(in srgb, var(--m) 55%, #000) 100%);
  border: 2px solid color-mix(in srgb, var(--m) 50%, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 3px 8px rgba(0, 0, 0, .5);
}
.ing-ic { width: 52%; height: auto; max-height: 60%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.ing-name { font-size: .72em; font-weight: 800; text-align: center; line-height: 1.05; padding: 0 .2em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.ing.none { background: repeating-linear-gradient(45deg, #18151b 0 6px, #1e1923 6px 12px); color: var(--muted); border: 2px dashed var(--line); box-shadow: none; }
.back { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--m) 50%, #000) 0 8px, color-mix(in srgb, var(--m) 30%, #000) 8px 16px); border: 2px solid var(--m); box-shadow: inset 0 0 14px rgba(0, 0, 0, .6); }
.back-ic { width: 50%; opacity: .95; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.back .count { position: absolute; bottom: .25em; right: .3em; background: #0b090d; color: #fff; border: 1px solid var(--m); border-radius: 999px; font-weight: 900; font-size: .75em; padding: 0 .45em; }
.slot.expires .ing { box-shadow: 0 0 0 2px rgba(255, 59, 78, .55), 0 3px 8px rgba(0, 0, 0, .5); }
.ribbon { position: absolute; left: 50%; bottom: -.45em; transform: translateX(-50%); background: var(--bad); color: #fff; font-size: .6em; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border-radius: 3px; padding: .05em .45em; white-space: nowrap; box-shadow: 0 0 8px rgba(255, 59, 78, .7); }
.slot.war .ing { border-color: var(--bad); animation: war .9s ease-in-out infinite; }
@keyframes war { 50% { box-shadow: 0 0 0 4px rgba(255, 59, 78, .65), 0 0 22px rgba(255, 59, 78, .9); } }
.war-tag { position: absolute; top: -.45em; left: -.35em; background: #16052a; border: 2px solid var(--bad); border-radius: 50%; width: 1.7em; height: 1.7em; display: grid; place-items: center; box-shadow: 0 0 10px rgba(255, 59, 78, .8); z-index: 2; }
.war-ic { width: 1.05em; height: 1.05em; }
.slot.picked .ing, .slot.picked .back { outline: 3px solid var(--accent); outline-offset: 2px; }
.tokens { position: absolute; top: -.45em; right: -.35em; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: .35em; max-width: 120%; z-index: 2; }
.token { position: relative; display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--dot, var(--c)); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 10px var(--c); flex: none; }
.token.ghost { opacity: .6; border-style: dashed; }
.token-ic { width: 70%; height: 70%; }
/* The chef's short name under a board token, so a player's two chefs can be told apart. */
.token-tag {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: .3em; z-index: 1; pointer-events: none;
  font-style: normal; font-size: .62em; font-weight: 900; letter-spacing: .03em; line-height: 1.25; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: #0b090d; border: 1px solid var(--c); border-radius: 3px; padding: 0 .3em; box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.board.compact .token-tag { font-size: .6em; padding: 0 .2em; }
.board.compact .tokens { gap: .55em; }
.token b { position: absolute; bottom: -.3em; right: -.35em; background: #0b090d; color: #fff; font-size: .6em; font-weight: 900; border-radius: 50%; width: 1.5em; height: 1.5em; display: grid; place-items: center; border: 1px solid var(--c); }
.stall.closed .slots { filter: grayscale(.85); opacity: .5; }
.rats { position: absolute; inset: auto .5em .5em; background: #16052a; border: 1px solid var(--bad); color: #ffc2c8; font-weight: 800; border-radius: 4px; padding: .2em .5em; display: flex; align-items: center; gap: .3em; font-size: .85em; z-index: 2; }
.rat-ic { width: 1.3em; height: 1.3em; }

/* The Plaza: the arena in the middle. */
.plaza {
  --fx: var(--accent); border-radius: 6px; padding: .7em .9em 1.1em;
  background: radial-gradient(ellipse at 50% 30%, rgba(132, 64, 232, .22), transparent 65%), linear-gradient(180deg, #1e1726, #100e13);
  border: 1px solid #4c2c78; box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 0 30px rgba(0, 0, 0, .5);
}
.plaza.here { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(150, 70, 255, .6); }
.plaza.picked { outline: 3px solid var(--accent); outline-offset: 3px; }
.plaza[role="button"] { cursor: pointer; }
.plaza-title { display: flex; align-items: center; gap: .4em; }
.plaza-title h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: #dcc6ff; font-size: 1.25em; text-shadow: 0 0 12px rgba(157, 82, 255, .8); }
.plaza-ic { width: 1.6em; height: 1.6em; }
.plaza-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; margin: .5em 0; position: relative; }
.pile { background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 5px; padding: .35em .4em; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .35em; align-items: center; }
.pile-ic { grid-row: span 2; width: 1.7em; height: 1.7em; }
.pile b { font-size: 1em; }
.pile span { font-size: .7em; color: var(--muted); font-weight: 700; line-height: 1.1; }
.pockets { display: flex; flex-wrap: wrap; gap: .35em; position: relative; }
.pocket { display: inline-flex; align-items: center; gap: .2em; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 999px; padding: .15em .55em .15em .25em; font-weight: 800; font-size: .8em; }
.pocket small { color: var(--muted); }
.pocket-ic { width: 1.4em; height: 1.4em; }
.plaza > .tokens { position: absolute; top: .5em; right: .6em; left: auto; max-width: 50%; }
.plaza .token { width: 2.4em; height: 2.4em; }

/* ---------- TV ---------- */
body.tv { font-size: clamp(11px, .82vw, 26px); overflow: hidden; }
.table { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.tv-head { display: flex; align-items: center; gap: 1.2rem; padding: .55rem 1.2rem; margin-bottom: .5rem; background: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35)); border-bottom: 2px solid var(--accent); box-shadow: 0 4px 24px rgba(150, 70, 255, .25); }
.logo.small { font-size: 2em; }
.day { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 1.5em; color: #fff; background: #1d0a33; border: 1px solid var(--accent); border-radius: 4px; padding: .05em .55em; box-shadow: 0 0 12px rgba(150, 70, 255, .4); }
.phases { list-style: none; display: flex; gap: .15em; margin: 0; padding: 0; }
.phases li {
  display: flex; align-items: center; gap: .35em; padding: .3em 1.2em; background: #24202a; color: var(--muted);
  font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: .9em;
  clip-path: polygon(0 0, calc(100% - .7em) 0, 100% 50%, calc(100% - .7em) 100%, 0 100%, .7em 50%);
}
.phases li b { background: rgba(255, 255, 255, .12); border-radius: 50%; width: 1.4em; height: 1.4em; display: grid; place-items: center; font-size: .85em; }
.phases li.on { background: linear-gradient(90deg, #9a55ee, #5b1fa8); color: #fff; }
.timer-wrap { flex: 1; display: flex; justify-content: center; }
.hint { color: #dac8f1; font-weight: 700; font-size: 1.15em; }
.timer { display: flex; align-items: center; gap: .3em; font-family: var(--display); font-weight: 400; font-size: 2.6em; color: #fff; background: conic-gradient(var(--accent) calc(var(--f) * 360deg), rgba(255, 255, 255, .1) 0); border-radius: 999px; padding: .05em .7em; font-variant-numeric: tabular-nums; box-shadow: 0 0 20px rgba(150, 70, 255, .4); }
.timer.low { background: conic-gradient(var(--bad) calc(var(--f) * 360deg), rgba(255, 255, 255, .1) 0); animation: pulse 1s infinite; }
.timer.held { filter: grayscale(.7); }
.timer small { font-size: .35em; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.controls { display: flex; gap: .5em; }
.tv-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(340px, 1fr); gap: 1rem; padding: 0 1.2rem .4rem; min-height: 0; }
.board-wrap { position: relative; min-height: 0; display: flex; }
/* On the TV the six markets ring the Plaza: three on each side. */
.board.big {
  flex: 1; display: grid; gap: .9em; font-size: 1.12em;
  grid-template-columns: 1fr .78fr 1fr; grid-template-rows: repeat(3, 1fr);
  grid-template-areas: "grain plaza butcher" "orchard plaza dairy" "green plaza odd";
}
.board.big .stall[data-market=grain] { grid-area: grain; }
.board.big .stall[data-market=orchard] { grid-area: orchard; }
.board.big .stall[data-market=green] { grid-area: green; }
.board.big .stall[data-market=butcher] { grid-area: butcher; }
.board.big .stall[data-market=dairy] { grid-area: dairy; }
.board.big .stall[data-market=odd] { grid-area: odd; }
.board.big .stall { display: flex; flex-direction: column; }
.board.big .slots { flex: 1; align-items: center; padding-bottom: .9em; }
.board.big .slot { aspect-ratio: 3 / 4; }
.board.big .plaza { grid-area: plaza; display: flex; flex-direction: column; gap: .6em; }
/* Crossed blades watermark behind the arena. */
.board.big .plaza::before { content: ""; position: absolute; inset: 18% 8% 22%; background: url("/icons/swords.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
.board.big .plaza-title { flex-direction: column; gap: .2em; position: relative; }
.board.big .plaza-title h3 { font-size: 1.9em; }
.board.big .plaza-ic { width: 4em; height: 4em; filter: drop-shadow(0 0 14px rgba(132, 64, 232, .5)); }
.board.big .plaza-grid { grid-template-columns: 1fr 1fr; margin: 0; }
.board.big .pockets { justify-content: center; }
.board.big .plaza > .tokens { position: static; max-width: none; justify-content: center; margin-top: auto; gap: .3em; min-height: 3.2em; }
.board.big .plaza .token { width: 3em; height: 3em; }
.wars {
  --fx: var(--bad); position: absolute; left: 50%; transform: translateX(-50%); bottom: 4.5em; z-index: 5;
  background: linear-gradient(180deg, #220b3d, #10071c); border: 1px solid var(--bad); color: #eee0ff; border-radius: 6px;
  padding: .6em 1em; box-shadow: 0 0 34px rgba(255, 59, 78, .45), 0 8px 24px rgba(0, 0, 0, .6); min-width: 24%; max-width: 40%;
}
.wars h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: #ff8f98; display: flex; align-items: center; gap: .3em; font-size: 1.3em; }
.war-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; padding: .3em 0; font-size: 1.1em; }
.war-row.waiting { opacity: .6; }
.bids { display: flex; gap: .4em; flex-wrap: wrap; width: 100%; }
.bid { border-left: 4px solid var(--c); background: rgba(255, 255, 255, .08); border-radius: 3px; padding: .1em .5em; font-weight: 800; }
.bid.out { opacity: .45; text-decoration: line-through; }
.pcards { display: grid; gap: .6em; align-content: start; overflow: hidden; min-height: 0; }
.tv-body.many .pcard { font-size: .88em; padding: .35em .6em; }
.tv-body.many .popbar { margin: .35em 0; }
.tv-body.crowded .pcards { gap: .4em; }
.tv-body.crowded .pcard { font-size: .76em; }
.tv-body.crowded .recipes { margin: .2em 0; gap: .15em; }
.pcard {
  --fx: var(--c); background: var(--steel); border: 1px solid var(--line); border-left: .45em solid var(--c); border-radius: 6px;
  padding: .5em .7em; box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 0 30px rgba(0, 0, 0, .35); min-width: 0;
}
.pcard header { display: flex; align-items: center; gap: .5em; }
.pc-ic { width: 2em; height: 2em; }
.pc-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pc-title strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-title span { color: var(--c); font-weight: 900; }
.status { font-size: .8em; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: .1em .55em; }
.status.ok { color: #04210f; background: var(--good); }
.status.off { color: #fff; background: var(--bad); }
.popbar { position: relative; height: 1.1em; background: #0b090d; border: 1px solid var(--line); border-radius: 999px; margin: .55em 0 .5em; }
.pop-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 65%, #fff)); border-radius: 999px; transition: width .6s; box-shadow: 0 0 10px var(--c); }
.pop-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); background: #0b090d; color: var(--muted); font-size: .65em; font-weight: 900; border-radius: 999px; padding: 0 .35em; border: 2px solid var(--gold); }
.pop-mark.got { background: var(--gold); color: #0c001a; }
.pop-num { position: absolute; right: .5em; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: .75em; color: #fff; text-shadow: 0 1px 2px #000; }
.stats { display: flex; flex-wrap: wrap; gap: .25em .7em; align-items: center; font-weight: 800; }
.stats .up { width: 1.2em; height: 1.2em; }
.stats .chefs { display: flex; gap: .5em; flex-wrap: wrap; font-weight: 700; color: var(--muted); font-size: .85em; }
.stats .bad { color: #ff8f98; }
.chef-at { display: inline-flex; align-items: center; gap: .25em; }
.chef-at .token { width: 1.6em; height: 1.6em; }
.recipes { display: grid; gap: .25em; margin: .35em 0; }
.rmini { display: flex; align-items: center; gap: .4em; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 4px; padding: .15em .45em; font-size: .9em; }
.rmini.gourmet { background: rgba(255, 178, 26, .09); border-color: rgba(255, 178, 26, .4); }
.rname { flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rname em { color: var(--good); font-style: normal; }
.rneeds { display: flex; gap: .15em; }
.rpts { font-weight: 900; white-space: nowrap; }
.pantry { display: flex; flex-wrap: wrap; gap: .2em; }
.pan { --m: #777; display: inline-flex; align-items: center; background: color-mix(in srgb, var(--m) 70%, #000); border: 1px solid var(--m); border-radius: 4px; padding: .05em .2em; font-size: .9em; }
.pan b { font-size: .75em; margin-left: .1em; }
.ticker { display: flex; gap: 1.5em; padding: .4rem 1.2rem .6rem; color: #c2b0d8; white-space: nowrap; overflow: hidden; font-weight: 700; background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3)); border-top: 1px solid #2e253a; }
.ticker span:first-child { color: #fff; }
.ticker .big { color: #cfa8ff; }
/* Big moments slam onto the middle of the TV. Centred with margins, so the animation can use transform freely. */
.news {
  position: fixed; z-index: 20; top: 36%; left: 0; right: 0; margin: 0 auto;
  width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: 76vw;
  padding: .3em 1.1em .35em; font-family: var(--display); font-weight: 400; font-size: 3.2em; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .02em; color: #fff; text-align: center; text-shadow: 0 3px 0 rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #9a55ee, #6d28c4 55%, #471489); border: 2px solid #c29aff; border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .55), 0 0 70px rgba(150, 70, 255, .75), 0 20px 50px rgba(0, 0, 0, .6);
  pointer-events: none; transform: skewX(-6deg);
}
.news > span { display: block; transform: skewX(6deg); }
.news.news-in { animation: slam .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes slam {
  0% { transform: skewX(-6deg) scale(1.9); opacity: 0; }
  55% { transform: skewX(-6deg) scale(.94); opacity: 1; }
  100% { transform: skewX(-6deg) scale(1); }
}
.pending {
  position: fixed; bottom: 4.5rem; left: 0; right: 0; margin: 0 auto; z-index: 15;
  width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: 80vw;
  background: linear-gradient(180deg, #1e3c6a, #0e1f3c); border: 1px solid #6c9de0; color: #fff; font-weight: 800; font-size: 1.4em;
  padding: .5em 1em; border-radius: 6px; box-shadow: 0 0 30px rgba(91, 143, 209, .5), 0 8px 24px rgba(0, 0, 0, .5);
  display: flex; align-items: center; gap: .4em;
}

.lobby { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 5rem; }
.lobby .logo { font-size: 5.5em; }
.lobby .tagline { font-size: 1.5em; }
.qr-box { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 1.2em; display: inline-flex; flex-direction: column; align-items: center; margin-top: 1.5em; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 1.3em; }
.qr { width: 16em; height: 16em; background: #fff; border-radius: 4px; }
.lobby-right { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 1.5em 2em; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 1.3em; }
.lobby-right h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.lobby-list { list-style: none; padding: 0; margin: .8em 0; display: grid; gap: .4em; }
.lobby-list li { display: flex; align-items: center; gap: .5em; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-left: .4em solid var(--c); border-radius: 4px; padding: .4em .7em; font-weight: 800; }
.lobby-list .lname { flex: 1; }
.lobby-list.small li { font-size: 1em; }
.crown { display: inline-flex; align-items: center; gap: .25em; color: var(--gold); font-weight: 900; }
.center-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em; padding: 2rem 4rem; text-align: center; }
.center-page .logo { font-size: 4em; justify-content: center; }
.center-page .btn.big { width: auto; min-width: 18em; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22em, 1fr)); gap: 1em; width: 100%; text-align: left; }
.intro-card { --fx: var(--c); background: var(--steel); border: 1px solid var(--line); border-top: .4em solid var(--c); border-radius: 6px; padding: .8em 1em; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.intro-card header { display: flex; gap: .6em; align-items: center; }
.intro-card h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.6em; }
.intro-ic { width: 2.6em; height: 2.6em; }
.chef-line { display: flex; gap: .6em; align-items: flex-start; margin: .5em 0; }
.chef-line p { margin: 0; color: var(--muted); }
.rewards { margin: .4em 0 0; padding-left: 1.2em; color: var(--muted); }
.rewards li.got { color: var(--good); font-weight: 700; }
.draft-status { display: flex; gap: 1em; }
.pill { background: var(--steel); border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; font-weight: 800; font-size: 1.4em; }
.vote-row { display: flex; gap: 1em; }
.standings { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 1em 2em; list-style: none; font-size: 1.4em; display: grid; gap: .3em; text-align: left; min-width: 30em; }
.standings li { display: flex; align-items: center; gap: .3em; }
.spts { margin-left: auto; color: var(--muted); font-weight: 700; }
.champion .trophy { width: 8em; height: 8em; filter: drop-shadow(0 0 30px rgba(255, 178, 26, .6)); animation: pulse 2s infinite; }

/* ---------- phone ---------- */
body.phone { font-size: 15px; padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
.join { max-width: 26rem; margin: 0 auto; padding: 3rem 1rem; text-align: center; }
.join .logo { font-size: 2.8rem; justify-content: center; }
.join-form { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; margin: 1.5rem 0 1rem; display: grid; gap: .6rem; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.join-form label { font-weight: 800; }
.join-form input { font: inherit; font-size: 1.2rem; padding: .6em .8em; border-radius: 5px; border: 1px solid var(--edge); background: #0d0b0f; color: var(--ink); }
.join-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.join .muted { color: var(--muted); }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; padding-top: calc(.5rem + env(safe-area-inset-top));
  background: linear-gradient(180deg, #17131c, #0c0a0e); color: var(--ink); border-bottom: 3px solid var(--c);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .7), 0 2px 14px color-mix(in srgb, var(--c) 45%, transparent);
}
.tb-ic { width: 2rem; height: 2rem; }
.tb-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tb-name strong { display: flex; gap: .3em; align-items: center; }
.tb-name small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-stats { display: flex; gap: .55rem; font-weight: 900; }
.tb-stats span { display: inline-flex; align-items: center; gap: .15em; }
.tb-stats .bad { color: #ff8f98; }
.pad { padding: .8rem 1rem; }
.phase-card { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; margin: .8rem 1rem 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 0 30px rgba(0, 0, 0, .3); }
.pad .phase-card { margin: 0; }
.pc-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.pc-top h2 { flex: 1; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.45rem; }
.phase-card > h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.45rem; }
.daytag { background: #1d0a33; border: 1px solid var(--accent); color: #fff; border-radius: 4px; padding: .05em .5em; font-weight: 900; font-size: .85rem; text-transform: uppercase; }
.ptimer { font-family: var(--display); font-weight: 400; font-size: 1.35rem; background: var(--accent); color: #fff; border-radius: 999px; padding: .05em .6em; font-variant-numeric: tabular-nums; box-shadow: 0 0 12px rgba(150, 70, 255, .5); }
.ptimer.low { background: var(--bad); animation: pulse 1s infinite; }
.pick { font-size: 1.05rem; }
.head-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--edge); }
.champ { font-size: 1.3rem; font-weight: 900; }
.tab-body { min-height: 50vh; }
.board-phone { padding: .8rem 1rem; }
.board.compact { display: flex; flex-direction: column; gap: .7rem; padding: .6rem; font-size: 13px; }
.board.compact .slot { aspect-ratio: auto; height: 4.6rem; }
.board.compact .ing-ic { width: auto; height: 2rem; max-height: none; }
.board.compact .back-ic { width: auto; height: 2.5rem; max-width: 70%; }
.board.compact .plaza-grid { grid-template-columns: 1fr 1fr; }
.board.compact .token { width: 1.75em; height: 1.75em; }
.legend { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(0deg, #09080b, #141117); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #37284a; box-shadow: 0 -4px 18px rgba(0, 0, 0, .6); }
.tabs button { font: inherit; font-weight: 800; color: var(--muted); background: none; border: 0; padding: .45rem 0 .5rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; position: relative; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tabs button.on { color: #fff; text-shadow: 0 0 10px rgba(150, 70, 255, .8); }
.tabs button.on::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tab-ic { width: 1.5rem; height: 1.5rem; }
.badge { position: absolute; top: .2rem; right: 28%; background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4em; }
.pad > h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: #ffc46b; margin: 1.1rem 0 .45rem; font-size: 1.15rem; }
.pad > p.muted, .pad > .muted { color: var(--muted); }
.recipe, .action-card, .offer, .cook-panel, .rest-info, .bundle, .up-row { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: .65rem .8rem; margin-bottom: .55rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.recipe { --fx: var(--edge); }
.recipe.gourmet { --fx: var(--gold); border-color: rgba(255, 178, 26, .35); background: linear-gradient(180deg, rgba(255, 178, 26, .12), transparent 45%), var(--steel); }
.recipe header { display: flex; align-items: center; gap: .5rem; }
.recipe header strong { flex: 1; }
.rtype { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: #312a3a; color: var(--ink); border-radius: 3px; padding: .05em .45em; white-space: nowrap; }
.gourmet .rtype { background: var(--gold); color: #0c001a; }
.needs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0; }
/* Kitchen: an ingredient you hold is solid in its market colour; one you still need is a dashed outline. */
.need {
  --m: #777; position: relative; display: flex; flex-direction: column; align-items: center; width: 3.7rem; border-radius: 6px; padding: .25rem .1rem; color: #fff;
  background: color-mix(in srgb, var(--m) 26%, #0f0d12); border: 2px dashed var(--m);
}
.need img { width: 1.7rem; height: 1.7rem; opacity: .75; }
.need small { font-size: .65rem; font-weight: 800; text-align: center; line-height: 1.05; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.need.have { background: linear-gradient(180deg, color-mix(in srgb, var(--m) 88%, #fff), color-mix(in srgb, var(--m) 68%, #000)); border: 2px solid color-mix(in srgb, var(--m) 50%, #000); box-shadow: 0 0 0 2px var(--good); }
.need.have img { opacity: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.need.have::after {
  content: "✓"; position: absolute; top: -.45rem; right: -.45rem; width: 1.15rem; height: 1.15rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--good); color: #04210f; font-size: .7rem; font-weight: 900; text-shadow: none; box-shadow: 0 0 0 2px #121014;
}
.recipe footer { font-size: .8rem; color: var(--muted); }
/* Small ingredient chips: the Board-tab recipe strip and the TV player cards. */
.nchip {
  --m: #777; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .25em; border-radius: 4px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 90%, #fff), color-mix(in srgb, var(--m) 70%, #000));
  border: 1px solid color-mix(in srgb, var(--m) 50%, #000); text-shadow: 0 1px 1px rgba(0, 0, 0, .75);
}
.nchip img { width: 1.1em; height: 1.1em; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.nchip.miss { background: color-mix(in srgb, var(--m) 24%, #0f0d12); border: 1px dashed var(--m); }
.nchip.miss img { opacity: .6; }
.rneeds .nchip { width: 1.45em; height: 1.45em; }
.rneeds .nchip.have { box-shadow: 0 0 0 1px var(--good); }
.rstrip { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-bottom: .75rem; }
.rs { --fx: var(--edge); background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .65rem .55rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.rs.gourmet { --fx: var(--gold); border-color: rgba(255, 178, 26, .35); background: linear-gradient(180deg, rgba(255, 178, 26, .12), transparent 50%), var(--steel); }
.rs.ready { --fx: var(--good); border-color: rgba(54, 209, 127, .65); box-shadow: 0 0 16px rgba(54, 209, 127, .25); }
.rs header { display: flex; align-items: center; gap: .45rem; }
.rs header strong { flex: 1; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.rs-meta { font-weight: 900; white-space: nowrap; display: inline-flex; align-items: center; gap: .35em; }
.rs-trash { display: inline-flex; align-items: center; gap: .1em; color: #ff8f98; font-size: .85em; }
.rs-needs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; align-items: center; }
.nchip.named { font-size: .8rem; font-weight: 800; padding: .2em .45em; }
.nchip.named.have::after { content: "✓"; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--good); color: #04210f; font-size: .8em; font-weight: 900; text-shadow: none; margin-left: .1em; }
.rs-tag { display: inline-block; margin-top: .4rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rs-tag.ok { color: var(--good); }
.cook-panel { --fx: var(--accent); border: 2px solid var(--accent); box-shadow: 0 0 22px rgba(150, 70, 255, .35), 0 4px 12px rgba(0, 0, 0, .45); }
.cook-panel h3 { display: flex; align-items: center; gap: .3rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; }
.cook-opt { border-top: 1px dashed var(--edge); padding: .5rem 0; }
.cook-opt.off { opacity: .55; }
.uses { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; font-weight: 700; }
.toggle { display: block; margin: .3rem 0; font-weight: 700; }
.pantry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .45rem; }
.pan-card { position: relative; height: 4.6rem; }
.pan-card .ing { position: absolute; inset: 0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pan-card .ing-ic { width: 2rem; height: 2rem; }
.pan-card .n { position: absolute; top: -.35rem; right: -.35rem; background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .4em; box-shadow: 0 0 0 2px #121014; }
.special { color: var(--ink); font-size: .85rem; }
.pad > p:not(.muted):not(.special) { color: var(--ink); }
.action-card { --fx: var(--edge); }
.action-card header { display: flex; align-items: center; gap: .4rem; }
.action-card.power { --fx: var(--accent); }
.action-card.power .token { width: 1.7rem; height: 1.7rem; }
.offer { --fx: var(--gold); }
.offer p { margin: .2rem 0; }
.war-box { --fx: var(--bad); background: linear-gradient(180deg, #220b3d, #10071c); border: 1px solid var(--bad); color: #eee0ff; border-radius: 6px; padding: .6rem .7rem; margin-top: .5rem; box-shadow: 0 0 20px rgba(255, 59, 78, .35); }
.war-box h3 { display: flex; align-items: center; gap: .3rem; font-size: 1.05rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.war-box .muted { color: #c6b0e0; }
.stepper { display: flex; align-items: center; gap: .35rem; margin: .4rem 0; flex-wrap: wrap; }
.stepper strong { min-width: 3.5rem; text-align: center; font-size: 1.1rem; }
.chef-card { font: inherit; text-align: left; width: 100%; display: flex; gap: .6rem; align-items: flex-start; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); border-radius: 6px; padding: .6rem; margin: .4rem 0; cursor: pointer; color: var(--ink); }
.chef-card.picked { border-color: var(--accent); background: rgba(150, 70, 255, .16); box-shadow: 0 0 14px rgba(150, 70, 255, .35); }
.dump-row { display: flex; align-items: center; gap: .8rem; }
.dump-row strong { min-width: 2.5rem; text-align: center; font-size: 1.4rem; }
.dump-slider { flex: 1; height: 2.6rem; accent-color: #9d52ff; touch-action: none; }
.portrait { width: 5.5rem; height: auto; aspect-ratio: 3 / 4; flex: none; border-radius: 8px; align-self: flex-start; }
.chef-card .portrait { width: 6.5rem; }
.action-card.power { display: flow-root; }
.action-card.power .portrait { float: left; margin: 0 .7rem .3rem 0; }
.rest-pick { margin: .6rem 0; }
.rest-pick .btn { margin-top: .5rem; width: 100%; }
.chef-card em { color: var(--muted); font-size: .8rem; }
.chef-card p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.chef-ic { width: 2.2rem; height: 2.2rem; }
.rest-info .chef-line .token { width: 1.8rem; height: 1.8rem; }
/* Phone/tablet intro: one column on a phone, side by side when there is room. */
.phone-intros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .8rem; margin: .8rem 0; }
.phone-intros .intro-card header p { margin: 0; color: var(--muted); }
.phone-intros .intro-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.phone-intros .intro-ic { flex: none; }
.phone-intros .chef-line .token { width: 1.8rem; height: 1.8rem; }
.sheet-back { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 34rem; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, #1e1a24, #121014 40%); border-top: 2px solid var(--accent); border-radius: 10px 10px 0 0; padding: .9rem 1rem calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(150, 70, 255, .25), 0 -10px 30px rgba(0, 0, 0, .6); }
.sheet.opening { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30%); opacity: .4; } }
.sheet > header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.sheet > header h2 { flex: 1; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.45rem; }
.sheet h3 { margin: .8rem 0 .3rem; }
.sheet-card { width: 6rem; height: 7.5rem; position: relative; margin: .3rem auto .6rem; }
.sheet-card .ing { position: absolute; inset: 0; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sheet-card .ing-ic { width: 3.4rem; }
.sheet-card .ing-name { font-size: .9rem; }
.big-q { font-size: 1.3rem; font-weight: 900; }
.up-row { display: flex; gap: .5rem; align-items: flex-start; background: rgba(255, 255, 255, .04); box-shadow: none; }
.up-row p { font-size: .85rem; }
.bundle { background: rgba(255, 255, 255, .04); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }

/* ---------- solo games ---------- */
.botbadge { display: inline-flex; align-items: center; gap: .2em; margin-left: .4em; padding: 0 .4em; border-radius: 3px; vertical-align: .1em;
  font-size: .72em; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #d6e6ff; background: rgba(91, 143, 209, .22); border: 1px solid #5b8fd1; }
.solo-tag { display: flex; align-items: center; gap: .3em; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #d6e6ff;
  background: rgba(91, 143, 209, .2); border: 1px solid #5b8fd1; border-radius: 4px; padding: .15em .6em; }
.solo-tag small { color: var(--muted); text-transform: none; letter-spacing: 0; }
.records { margin-top: 1em; text-align: left; background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: .6em 1em; min-width: 22em; }
.records h3 { display: flex; align-items: center; gap: .3em; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.records ol { margin: .4em 0 0; padding-left: 1.4em; display: grid; gap: .2em; }
.bot-line { color: #d6e6ff; font-weight: 700; font-size: .9rem; }
.rivals { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.rival { font: inherit; color: var(--ink); display: inline-flex; align-items: center; gap: .3em; padding: .3em .65em; border-radius: 999px; cursor: pointer;
  background: #18151b; border: 1px solid var(--edge); border-left: 4px solid var(--c); font-size: .9rem; }
.rival.me { background: color-mix(in srgb, var(--c) 22%, #18151b); }
.rival .dot { margin-right: 0; }
.rival-pts { display: inline-flex; align-items: center; gap: .15em; font-weight: 900; margin-left: .2em; }
.feed { padding: 12px; border-radius: 10px; margin-bottom: .8rem; background: conic-gradient(#9d52ff 25%, #0b090e 0 50%, #9d52ff 0 75%, #0b090e 0) 0 0 / 12px 12px; box-shadow: 0 0 18px rgba(157, 82, 255, .4), 0 8px 18px rgba(0, 0, 0, .55); }
.feed-body { background: linear-gradient(180deg, #25123f, #120d19 60%); border: 2px solid #0b090e; border-radius: 4px; padding: .5rem .55rem .55rem; }
.feed header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.feed header strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: #ffd45a; font-size: 1.35rem; text-shadow: 0 2px 0 #000; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.feed li { --c: #9d52ff; display: flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .055); border-left: 4px solid var(--c); border-radius: 6px; padding: .45rem .55rem; font-size: .95rem; line-height: 1.3; color: var(--ink); }
.feed li.big { background: rgba(255, 178, 26, .11); font-weight: 700; }
.feed li.latest { background: rgba(157, 82, 255, .28); box-shadow: 0 0 12px rgba(157, 82, 255, .45); }
.feed li.newday { background: linear-gradient(90deg, rgba(255, 178, 26, .28), rgba(255, 178, 26, .06)); border-left-color: #ffb21a; color: #ffe3a3; }
.f-ic { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #0b090e; border: 2px solid var(--c); }
.feed li.newday .f-ic { border-color: #ffb21a; }
.f-ic img { width: 1.3rem; height: 1.3rem; }
.f-text { min-width: 0; overflow-wrap: anywhere; }
.f-name { color: color-mix(in srgb, var(--c) 68%, #fff); font-weight: 900; }
.f-new { display: inline-block; font-style: normal; font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: #ffb21a; color: #1d0a33; border-radius: 3px; padding: 0 .35em; margin-right: .4em; vertical-align: .12em; }
.rival-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 800; }
.rival-sheet .rs { margin-bottom: .45rem; }
.up-chip { display: inline-flex; align-items: center; gap: .2em; margin-right: .8em; font-weight: 700; }

/* ---------- game-feel animations ---------- */
/* Counter restock on the TV board: the expired card shakes and falls off, the rest slide right,
   fresh cards fly in from the shelf and flip over. Delays are set inline by board.js. */
.board .slot { perspective: 40em; }
.slot .ing.fx-slide { animation: fx-slide .55s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes fx-slide { from { transform: translateX(calc((-100% - .4em) * var(--steps))); } }
.slot .ing.fx-new { animation: fx-deal .65s cubic-bezier(.2, .8, .3, 1.1) both; }
@keyframes fx-deal {
  0% { transform: translateX(calc((-100% - .4em) * var(--steps))) rotateY(90deg) scale(.8); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.slot .ing.fx-gone { z-index: 3; animation: fx-gone 1.1s ease-in both; }
.slot .ing.fx-gone::after, .cr-gone::after {
  content: "Expired"; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05em; color: #fff;
  background: var(--bad); border: 2px solid #fff; border-radius: 4px; padding: 0 .3em; box-shadow: 0 0 12px rgba(255, 59, 78, .8);
  animation: fx-stamp .25s .25s cubic-bezier(.2, 1.6, .5, 1) both;
}
@keyframes fx-stamp { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.4); opacity: 0; } }
@keyframes fx-gone {
  0% { transform: none; }
  8% { transform: translateX(-7%) rotate(-5deg); }
  16% { transform: translateX(7%) rotate(5deg); }
  24% { transform: translateX(-5%) rotate(-3deg); }
  32% { transform: translateX(4%) rotate(2deg); }
  45% { transform: none; filter: none; opacity: 1; }
  55% { transform: translateY(-6%); filter: grayscale(1) brightness(.6); }
  100% { transform: translate(25%, 140%) rotate(32deg) scale(.5); filter: grayscale(1) brightness(.5); opacity: 0; }
}

/* The phone's animation layer, outside the page that live updates redraw. */
#fx-root { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
#fx-root:empty { display: none; }
.fx {
  position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem; background: rgba(4, 3, 5, .84); animation: fx-in .2s ease-out both; cursor: pointer;
}
.fx.fx-out { animation: fx-fade .25s ease-in both; }
@keyframes fx-in { from { opacity: 0; } }
@keyframes fx-fade { to { opacity: 0; } }
.fx-skip { font-size: .75rem; text-align: center; margin-top: .4rem; }

/* Drawing a recipe: the top card lifts off the deck, flips over and shows what it needs. */
.fx-cardback {
  border-radius: 10px; border: 2px solid var(--edge);
  background: radial-gradient(circle at 50% 45%, rgba(132, 64, 232, .35), transparent 60%), repeating-linear-gradient(45deg, #23103b 0 9px, #170a26 9px 18px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
}
.fx-draw.gourmet .fx-cardback { border-color: var(--gold); }
.fx-deck { position: absolute; left: 50%; bottom: 18%; width: 7.5rem; height: 5rem; transform: translateX(-50%); animation: fx-rise .35s ease-out both; }
.fx-deck .fx-cardback { position: absolute; inset: 0; }
.fx-deck .fx-cardback:nth-child(2) { transform: translate(3px, -3px); }
.fx-deck .fx-cardback:nth-child(3) { transform: translate(6px, -6px); }
.fx-deck small { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; text-align: center; color: var(--muted); font-weight: 800; white-space: nowrap; }
@keyframes fx-rise { from { transform: translate(-50%, 40%); opacity: 0; } }
.fx-card { width: min(20rem, 86vw); animation: fx-lift .6s .35s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes fx-lift { from { transform: translateY(26vh) scale(.4); } }
/* The flip: squeeze the card flat, swap the back for the face at the midpoint, open it up again.
   (No 3D backface tricks, which some browsers draw mirrored.) */
.fx-card-inner { position: relative; }
.fx-draw.flipped .fx-card-inner { animation: fx-flip .6s ease-in-out both; }
@keyframes fx-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.fx-face { border-radius: 10px; }
.fx-front { opacity: 0; }
.fx-draw.flipped .fx-front { animation: fx-show .6s step-end both; }
.fx-draw.flipped .fx-back { animation: fx-hide .6s step-end both; }
.fx-draw:not(.flipped) .fx-card { cursor: pointer; }
.fx-draw:not(.flipped) .fx-back { animation: fx-pulse 1.3s 1s ease-in-out infinite; }
@keyframes fx-pulse { 50% { box-shadow: 0 0 26px rgba(255, 178, 26, .75), 0 6px 18px rgba(0, 0, 0, .6); } }
@keyframes fx-show { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes fx-hide { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
.fx-front {
  position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem 1rem;
  background: var(--steel); border: 2px solid var(--edge); box-shadow: 0 0 40px rgba(150, 70, 255, .35), 0 10px 30px rgba(0, 0, 0, .6);
}
.fx-draw.gourmet .fx-front { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 178, 26, .16), transparent 50%), var(--steel); box-shadow: 0 0 44px rgba(255, 178, 26, .45), 0 10px 30px rgba(0, 0, 0, .6); }
.fx-front header { display: flex; align-items: center; justify-content: space-between; }
.fx-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.8rem; line-height: 1.05; }
.fx-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.fx-back b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: #e2d0ff; font-size: 1.4rem; }
.fx-plate { width: 3.4rem; height: 3.4rem; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.fx-caption { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); font-size: 1.25rem; text-align: center; margin: 0;
  text-shadow: 0 0 14px rgba(255, 178, 26, .5); animation: fx-caption .4s .9s both; }
@keyframes fx-caption { from { opacity: 0; transform: translateY(.6rem); } }

/* Counter on the phone: every market at once, mini cards. */
.fx-panel { width: min(27rem, 100%); background: var(--steel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: .8rem .8rem .5rem;
  box-shadow: 0 0 40px rgba(150, 70, 255, .3), 0 12px 30px rgba(0, 0, 0, .6); }
.fx-panel h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 1.8rem; color: #ffc46b; }
.fx-panel > p.muted { font-size: .8rem; margin: .1rem 0 .5rem; }
.cr-row { display: flex; align-items: center; gap: .4rem; margin: .4rem 0; }
.cr-label { flex: 0 0 5.2rem; display: flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 800; color: var(--muted); line-height: 1.1; }
.cr-cells { --w: 2.05rem; --gap: .28rem; --step: calc(var(--w) + var(--gap)); display: flex; gap: var(--gap); perspective: 30rem; }
.cr-cell { position: relative; flex: 0 0 var(--w); height: calc(var(--w) * 1.3); }
.cr-mini { --m: #777; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 5px; font-size: .62rem;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--m) 75%, #fff) 0, var(--m) 45%, color-mix(in srgb, var(--m) 55%, #000) 100%);
  border: 1px solid color-mix(in srgb, var(--m) 50%, #000); box-shadow: 0 2px 5px rgba(0, 0, 0, .5); }
.cr-mini img { width: 66%; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.cr-deck { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--m) 50%, #000) 0 5px, color-mix(in srgb, var(--m) 30%, #000) 5px 10px); border-color: var(--m); }
.cr-deck img { width: 52%; opacity: .9; }
.cr-empty { background: #18151b; border: 1px dashed var(--line); box-shadow: none; }
.cr-bin { display: grid; place-items: center; animation: fx-bin .45s 1.25s ease-out both; }
.cr-bin img { width: 70%; }
@keyframes fx-bin { 50% { transform: scale(1.4) rotate(-10deg); } }
.cr-gone { z-index: 2; animation: fx-gone-row 1.05s .35s ease-in both; }
@keyframes fx-gone-row {
  0% { transform: none; }
  8% { transform: translateX(-10%) rotate(-6deg); }
  16% { transform: translateX(10%) rotate(6deg); }
  24% { transform: translateX(-7%) rotate(-4deg); }
  32% { transform: translateX(5%) rotate(3deg); }
  48% { transform: none; filter: grayscale(1) brightness(.6); opacity: 1; }
  100% { transform: translate(var(--step), 15%) rotate(25deg) scale(.35); filter: grayscale(1) brightness(.5); opacity: 0; }
}
.cr-gone::after { font-size: .62rem; border-width: 1px; padding: 0 .15em; }
.cr-slide { animation: fx-slide-row .5s 1.45s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes fx-slide-row { from { transform: translateX(calc(var(--step) * var(--steps) * -1)); } }
.cr-new { animation: fx-deal-row .55s 2s cubic-bezier(.2, .8, .3, 1.1) both; }
@keyframes fx-deal-row {
  0% { transform: translateX(calc(var(--step) * var(--steps) * -1)) rotateY(90deg) scale(.8); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
/* Cookbook / Menu Shuffle options are dealt in one by one. */
.recipe.deal-in { animation: fx-deal-in .45s cubic-bezier(.2, .8, .3, 1.1) both; }
@keyframes fx-deal-in { from { transform: translateY(45%) rotate(-3deg) scale(.92); opacity: 0; } }

/* ---------- shared bits ---------- */
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--bad); color: #fff; text-align: center; font-weight: 800; padding: .3rem; }
.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 60;
  width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: 90vw;
  background: #0f0d12; border: 1px solid var(--accent); color: #fff; font-weight: 800; border-radius: 6px; padding: .6rem 1rem;
  box-shadow: 0 0 20px rgba(150, 70, 255, .35), 0 6px 20px rgba(0, 0, 0, .5); text-align: center; white-space: pre-line;
}
body.tv .toast { bottom: 2rem; font-size: 1.4em; }
/* Phone: game messages, at the top until tapped. Only the banners take taps; the rest of the screen stays usable. */
.alerts {
  position: fixed; top: calc(.4rem + env(safe-area-inset-top)); left: .5rem; right: .5rem; z-index: 55; margin: 0 auto; max-width: 32rem;
  display: flex; flex-direction: column; gap: .4rem; pointer-events: none;
}
.alert {
  pointer-events: auto; display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 1.1rem; font-weight: 900; line-height: 1.3; color: #0c001a; background: var(--gold);
  border: 3px solid #fff; border-radius: 8px; padding: .7rem .8rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .7);
}
.alert.bad { background: #c4121f; color: #fff; }
.alert-text { flex: 1; }
.alert-x { flex: 0 0 auto; font-size: 1.2rem; opacity: .75; }
.alert.in { animation: alert-in .35s cubic-bezier(.2, .8, .3, 1.2) both, alert-flash .45s .35s ease-in-out 3; }
@keyframes alert-in { from { transform: translateY(-120%); opacity: 0; } }
@keyframes alert-flash { 50% { filter: brightness(1.6); } }
.alert-more { align-self: center; background: #0f0d12; color: #fff; border: 1px solid #fff; border-radius: 999px; font-weight: 800; padding: .1rem .8rem; }
@media (prefers-reduced-motion: reduce) { .alert.in { animation: none; } }
[hidden] { display: none !important; }
/* Keep tapped things clear of the sticky top bar and the bottom tabs. */
html:has(body.phone) { scroll-padding: 4.5rem 0 5.5rem; }
.notimer { font-weight: 900; font-size: .85rem; background: rgba(255, 255, 255, .08); color: var(--muted); border-radius: 999px; padding: .1em .6em; }
@media (prefers-reduced-motion: reduce) {
  body.tv::before, .slot.war .ing, .timer.low, .ptimer.low, .champion .trophy, .news.news-in,
  .slot .ing.fx-slide, .slot .ing.fx-new, .recipe.deal-in { animation: none !important; }
  .slot .ing.fx-gone { display: none; }
  .fx-betty, .fx-betty * { animation: none !important; }
  .fx-betty.flipped .fx-front { opacity: 1; }
  .fx-betty.flipped .fx-back { opacity: 0; }
}

/* Bulk Betty: the cards to pick from, and the one you got. */
.betty-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.betty-pick { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .5rem .4rem; background: rgba(255, 255, 255, .04); border: 2px solid var(--line); border-radius: 10px; color: inherit; font: inherit; cursor: pointer; }
.betty-pick:active { border-color: var(--accent); transform: scale(.96); }
.betty-pick .sheet-card { display: block; margin: 0; }
.betty-pick small { color: var(--muted); font-weight: 800; }
.betty-hidden { position: absolute; inset: 0; display: grid; place-items: center; }
.fx-q { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: 1; color: #e2d0ff; }
.fx-betty .fx-card { width: min(16rem, 78vw); }
.fx-betty .fx-back b.fx-q { font-size: 6rem; }
.fx-betty .fx-front.fx-betty-front { align-items: center; text-align: center; min-height: 19rem; justify-content: center; border-color: var(--gold); box-shadow: 0 0 44px rgba(255, 178, 26, .45), 0 10px 30px rgba(0, 0, 0, .6); }
.fx-betty-ic { width: 8rem; height: 8rem; }
.fx-betty-from { color: var(--muted); font-weight: 800; }
.fx-betty.open .fx-front { opacity: 1; }

/* ---------- game history ---------- */
a.btn { text-decoration: none; }
.hist { max-width: 60rem; margin: 0 auto; padding: .8rem 1rem 3rem; }
.hist-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.hist-top .logo { font-size: 1.9rem; }
.hist-card { display: block; color: var(--ink); text-decoration: none; background: var(--steel); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: .7rem .9rem; margin: .7rem 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.hist-card.early { border-left-color: var(--edge); }
.hist-card:hover, .hist-card:focus-visible { border-color: var(--accent); border-left-color: var(--accent); outline: none; }
.hist-card h2, .hist-sum h2 { display: flex; align-items: center; gap: .35em; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.35rem; margin: .25rem 0 .1rem; }
.hist-when { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; color: var(--muted); font-size: .9rem; }
.hist-tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.hist-tag { padding: .05em .5em; border: 1px solid var(--edge); border-radius: 4px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #ccb9e3; }
.hist-tag.warn { color: var(--gold); border-color: #7a5a14; }
.hist-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.hist-chip { display: inline-flex; align-items: center; gap: .35em; padding: .15em .65em; border-radius: 999px; background: #18151b; border: 1px solid var(--edge); font-size: .9rem; }
.hist-chip b { color: var(--gold); }
.hist-back { display: inline-block; margin: .4rem 0; color: #ffc46b; font-weight: 800; text-decoration: none; }
.hist-sum { background: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem; margin: .4rem 0 0; }
.hist-sec { margin-top: 1.2rem; }
.hist-sec > h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: #ffc46b; font-size: 1.15rem; margin-bottom: .4rem; }
.hist-scroll { overflow-x: auto; }
.hist-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.hist-table th, .hist-table td { text-align: left; padding: .35em .6em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hist-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.hist-table tr.win td { color: var(--gold); font-weight: 800; }
.hist-day-box { background: #121015; border: 1px solid var(--line); border-radius: 4px; margin: .3rem 0; padding: .3rem .7rem; }
.hist-day-box summary { cursor: pointer; font-weight: 800; }
.hist-day-box ul { margin: .4rem 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.hist-filter { width: 100%; font: inherit; color: var(--ink); background: #121015; border: 1px solid var(--edge); border-radius: 4px; padding: .5em .7em; margin-bottom: .4rem; }
.hist-day { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: .9rem 0 .2rem; }
.hist-line { margin: 0; padding: .18rem 0; border-bottom: 1px dotted rgba(255, 255, 255, .07); }
.hist-line.big { font-weight: 800; color: #ffc46b; }
.hist-link { display: inline-flex; align-items: center; gap: .4em; }
.hist a:not(.btn):not(.hist-card) { color: #ffc46b; }
/* On the TV, scale the whole page up so it reads from the couch. */
@media (min-width: 1500px) { body.history { zoom: 1.4; } }

/* Reset game: always reachable on the TV, two taps to confirm */
.reset-game { position: fixed; right: .8em; bottom: .8em; z-index: 50; opacity: .45; }
.reset-game:hover, .reset-game:focus-visible, .reset-game.armed { opacity: 1; }
.reset-game.armed { background: #b3261e; color: #fff; }
.reset-game[hidden] { display: none; }

/* ---------- OLED care (TV only; the look is unchanged) ---------- */
/* Everything that stays on screen drifts a few pixels now and then (screen.js sets --sx/--sy).
   Short-lived pop-ups (news, toast) are left alone. */
body.tv { --bg: #000; transition: filter 4s ease; }
body.tv #app { transform: translate(var(--sx, 0px), var(--sy, 0px)); transition: transform 30s linear; }
body.tv::before { inset: -14px; transform: translate(var(--sx, 0px), var(--sy, 0px)); transition: transform 30s linear; }
body.tv.dim1 { filter: brightness(.45); }
body.tv.dim2 { filter: brightness(.12); }

.btn.danger { background: #b3261e; color: #fff; box-shadow: none; }

/* ---------- sound ---------- */
.snd {
  font: inherit; font-weight: 800; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--edge);
  border-radius: 999px; cursor: pointer; line-height: 1;
}
.snd-phone { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; padding: 0; font-size: 1rem; margin-left: .4rem; }
.snd.snd-wait { border-color: var(--gold); animation: snd-pulse 1.4s ease-in-out infinite; }
@keyframes snd-pulse { 50% { box-shadow: 0 0 0 4px rgba(255, 178, 26, .35); } }
/* TV: hidden unless someone is using the mouse or remote, so nothing sits on an OLED all night. */
.snd-tv { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; padding: .5rem .9rem; font-size: 1rem; opacity: 0; transition: opacity .6s; pointer-events: none; }
.snd-tv.awake, .snd-tv.snd-wait { opacity: 1; pointer-events: auto; }
.snd-prompt {
  position: fixed; left: 0; right: 0; bottom: 1rem; margin: 0 auto; z-index: 54; width: fit-content; max-width: 90vw;
  background: #0f0d12; border: 1px solid var(--gold); color: #fff; font-weight: 800; border-radius: 6px; padding: .5rem 1rem;
  transition: opacity 1s;
}
.snd-prompt.gone { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .snd.snd-wait { animation: none; } }

/* ---------- game length ---------- */
.length-pick { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; }
.length-pick > span { font-weight: 800; color: var(--muted); margin-right: .2rem; }
body.tv .length-pick > span { font-size: 1.1em; }

/* ---------- done shopping ---------- */
.shop-done { margin: .8rem 0; display: grid; gap: .5rem; }
.shop-done p { margin: 0; font-weight: 700; }

/* restaurant art: introductions */
.rest-art { display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 4 / 3; margin: 0 auto .5rem; border-radius: 10px; }
.intro-grid .rest-art { max-width: 14em; }


/* Oddities Bazaar is hot pink: its stall gets a pink panel and glow instead of the shared violet. */
.stall[data-market="odd"] { background: linear-gradient(180deg, color-mix(in srgb, #ff2d95 30%, #120a12), #110b12 65%); }
.stall[data-market="odd"] .awning { box-shadow: 0 0 14px rgba(255, 45, 149, .75); }

/* action cards */
.hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.gcard { display: flex; flex-direction: column; background: #000; color: #fff; text-align: center; border: 2px solid #7b3fd0; border-radius: 14px; padding: .55rem .5rem .6rem; box-shadow: 0 0 14px rgba(150, 70, 255, .35), 0 6px 16px rgba(0, 0, 0, .6); }
.gc-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; line-height: 1.15; }
.gc-art { display: block; width: 100%; height: auto; aspect-ratio: 320 / 260; margin: .2rem 0; }
.gc-text { margin: auto 0 0; color: #fff; font-size: .85rem; line-height: 1.3; }
.gc-when { margin: .5rem 0 0; padding-top: .4rem; border-top: 1px dashed rgba(157, 82, 255, .55); color: #ffd45a; font-weight: 800; font-size: .8rem; line-height: 1.25; }
.gc-when span { display: block; color: var(--muted); font-weight: 700; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.gc-note { margin: .45rem 0 0; color: var(--muted); font-size: .75rem; }
.gcard .btn { margin-top: .5rem; width: 100%; }
.sheet .gcard { max-width: 17rem; margin: 0 auto .6rem; }

/* a newly received action card, in the middle of the screen until its ✕ */
.fx.fx-gotcard { cursor: default; }
.fx-gotcard.held { display: none; }
.got-wrap { position: relative; width: min(17rem, 80vw); animation: fx-lift .6s cubic-bezier(.2, .8, .3, 1) both; }
.got-x { position: absolute; top: -.8rem; right: -.8rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid #bb8cff; background: #1a0b2e; color: #fff; font: 900 1.2rem/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 0 14px rgba(150, 70, 255, .7); }
.got-wrap .gc-name { font-size: 1.4rem; }
.got-wrap .gc-text { font-size: 1rem; }


/* The Plaza: a square with three places to go into. */
.sheet.plaza-sheet { height: 92vh; max-height: 92vh; background: #12091f center top / cover no-repeat; overflow-x: hidden; }
.pz-square { background-image: url(/plaza/bg-plaza.svg) !important; }
.pz-landfill { background-image: url(/plaza/bg-landfill.svg) !important; }
.pz-outlets { background-image: url(/plaza/bg-outlets.svg) !important; }
.pz-den { background-image: url(/plaza/bg-den.svg) !important; }
.pz-cocoa { background-image: url(/plaza/bg-cocoa.svg) !important; }
.plaza-sheet > header h2 { text-shadow: 0 2px 6px #000, 0 0 12px #000; }
.plaza-sheet > header .btn { background: rgba(10, 4, 20, .85); }
.btn.back-arrow { font: 900 1.5rem/1 system-ui, sans-serif; min-width: 3rem; }
.wallet { width: max-content; margin: 0 auto .6rem; padding: .2rem .8rem; border-radius: 99px; background: rgba(8, 3, 16, .85); border: 1px solid var(--gold); color: var(--gold); font-weight: 700; }
.square { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .5rem; align-items: end; }
.door { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0; background: none; border: 0; color: #fff; font: inherit; cursor: pointer; text-shadow: 0 1px 4px #000; transition: transform .12s; }
.door:active { transform: scale(.95); }
/* heights follow the screen so all four places fit without scrolling */
.door-art { display: block; width: 100%; height: 17.5vh; object-fit: contain; pointer-events: none; }
.door strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; padding: .1rem .6rem; background: rgba(8, 3, 16, .85); border: 2px solid var(--accent); border-radius: 8px; }
.door span { font-size: .8rem; line-height: 1.2; }
.door-outlets { grid-column: 1 / -1; }
.door-outlets .door-art { height: 20vh; }
.door-cocoa { grid-column: 1 / -1; justify-self: center; width: 60%; }
.kiosk { display: block; width: 100%; max-width: 19rem; height: auto; margin: 0 auto .8rem; }
.pz-panel { background: rgba(10, 4, 20, .88); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; margin-bottom: .7rem; }
.pz-panel h3 { margin-top: 0; }
.pz-panel .btn.big { width: 100%; }
.plot-board { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 auto .7rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.pz-outlets .up-row { position: relative; background: rgba(14, 8, 28, .93); border-color: #7b3fd0; padding-top: 1.5rem; margin-bottom: .9rem; border-radius: 6px 6px 12px 12px; }
/* each listing gets a shop awning */
.pz-outlets .up-row::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: .95rem; border-radius: 6px 6px 0 0; --a: #ff2d95; background: radial-gradient(circle at 50% 0, var(--a) 68%, transparent 70%) 0 .5rem / 1.5rem .5rem repeat-x, repeating-linear-gradient(90deg, var(--a) 0 1.5rem, #fff3dc 1.5rem 3rem) 0 0 / 100% .55rem no-repeat; }
.pz-outlets .up-row:nth-child(5n+2)::before { --a: #2fbfa0; }
.pz-outlets .up-row:nth-child(5n+3)::before { --a: #e8a410; }
.pz-outlets .up-row:nth-child(5n+4)::before { --a: #9d52ff; }
.pz-outlets .up-row:nth-child(5n+5)::before { --a: #e8404a; }
.den-head { text-shadow: 0 2px 6px #000, 0 0 10px #000; }

/* dumping: the bag swings in, tips, and the junk rains onto the heap (about 2.5 s) */
.fx.fx-dump { background: radial-gradient(circle at 50% 40%, #2c1650, #07030f 75%); }
.dump-scene { position: relative; width: min(22rem, 92vw); height: 22rem; }
.dump-heap { position: absolute; left: 0; bottom: 0; width: 100%; animation: heap-thud .4s ease-out 1.35s; }
.dump-bag { position: absolute; left: 50%; top: 0; width: 8rem; margin-left: -4rem; z-index: 2; animation: bag-tip 1.7s ease-in-out both; }
.dump-junk { position: absolute; left: calc(50% - 1.4rem); top: 4.5rem; width: 2.8rem; opacity: 0; animation: junk-fall .75s cubic-bezier(.4, 0, 1, 1) var(--d) both; }
.dump-caption { animation: caption-in .35s ease-out 1.5s both; }
@keyframes bag-tip { 0% { transform: translate(-12rem, -2rem) rotate(-40deg); } 30% { transform: translate(0, 0) rotate(0); } 45%, 80% { transform: translate(0, 0) rotate(165deg); opacity: 1; } 100% { transform: translate(12rem, -3rem) rotate(130deg); opacity: 0; } }
@keyframes junk-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 12rem) rotate(260deg); opacity: 1; } }
@keyframes heap-thud { 40% { transform: scale(1.05, .93); transform-origin: bottom; } }
@keyframes caption-in { from { opacity: 0; transform: scale(.6); } }
@media (max-height: 720px) { .door-art { height: 16vh; } .door-outlets .door-art { height: 17vh; } .door span { display: none; } .pz-square .wallet { margin-bottom: .2rem; } }
.pz-cocoa .btn:disabled { filter: grayscale(1); opacity: .45; cursor: default; }
.confirm-back { position: fixed; inset: 0; z-index: 5; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.confirm-box { width: min(20rem, 100%); background: #17101f; border: 2px solid var(--accent); border-radius: 14px; padding: 1rem; text-align: center; box-shadow: 0 0 24px rgba(150, 70, 255, .5); }
.confirm-box h3 { margin: 0 0 .8rem; font-size: 1.2rem; }
.confirm-box .btn { display: block; width: 100%; margin-top: .6rem; }
.gcard .btn:disabled { filter: grayscale(1); opacity: .45; cursor: default; }

/* Trade: Under the Table. A dim lamp over green felt. */
.pad.under { position: relative; isolation: isolate; min-height: 75vh; background: radial-gradient(ellipse 120% 30rem at 50% 0, #3a1c66, #1a0c30 60%, transparent); }
.pad.under::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 0; width: min(18rem, 90%); height: 16rem; transform: translateX(-50%); background: linear-gradient(rgba(255, 232, 160, .16), transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); pointer-events: none; }
.under-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; text-align: center; font-size: 2rem; margin: .2rem 0 0; color: #ffd23a; text-shadow: 0 0 14px rgba(255, 178, 26, .5); }
.under-sub, .under-foot { text-align: center; color: #b9a8d6; font-size: .8rem; margin: .1rem 0 .7rem; }
.under-closed { text-align: center; color: #d8c9f2; border: 1px dashed #7b3fd0; border-radius: 10px; padding: .6rem; background: rgba(10, 4, 20, .6); }
.pad.under > .btn.big { width: 100%; }
.pad.under h3 { color: #c9a6ff; }
.felt { background: radial-gradient(ellipse, #25664e, #143c30); border: 7px solid #5a3620; border-radius: 26px; padding: .65rem .55rem; margin-bottom: .7rem; box-shadow: 0 10px 22px rgba(0, 0, 0, .7), inset 0 0 30px rgba(0, 0, 0, .5); color: #fff; }
.felt.empty { text-align: center; color: #bfe6d4; padding: 1.1rem .8rem; font-size: .9rem; }
.felt .who { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .5rem; text-align: center; font-size: .85rem; }
.tbl-ic { width: 1.8rem; height: 1.8rem; flex: none; }
.deal { display: flex; align-items: center; gap: .3rem; }
.deal .side { flex: 1 1 0; min-width: 0; text-align: center; }
.deal .side small { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #bfe6d4; margin-bottom: .3rem; }
.tpile { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.tcard { width: 3.7rem; min-height: 5rem; border-radius: 9px; border: 2px solid #fff3dc; background: #4a4458; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .25rem .15rem; box-shadow: 0 6px 10px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.tcard:nth-child(even) { transform: rotate(5deg); }
.tcard span { font-size: .66rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.tc-ic { width: 1.9rem; height: 1.9rem; }
.tcard.food { background: var(--m); }
.tcard.cash { background: #2f9a5a; }
.tcard.act { background: #000; border-color: #9d52ff; }
.tcard.rec { background: #f6efdc; border-color: #c9a04a; }
.tcard.rec span { color: #241a12; text-shadow: none; }
.tcard.upg { background: #5b1fa8; border-color: #ffb21a; }
.tcard.none { background: transparent; border: 2px dashed rgba(255, 255, 255, .4); box-shadow: none; }
.shake { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #12061e; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.deal-btns { display: flex; justify-content: center; gap: .5rem; margin-top: .6rem; }
.deal-btns .btn:not(.small) { flex: 1; }
.sheet.deal-sheet { background: radial-gradient(ellipse 120% 24rem at 50% 0, #3a1c66, #14091f 70%); }
.deal-sheet .btn.seat { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.deal.preview { margin-top: .8rem; }
.deal-sheet .bundle { background: rgba(20, 60, 48, .55); border: 2px solid #5a3620; border-radius: 14px; }

/* Fortune Cookie: whole until tapped, then the halves fall apart and the slip comes out */
.cookie { position: relative; width: min(20rem, 92vw); height: 20rem; }
.cookie-whole, .cookie-half { position: absolute; top: 4rem; }
.cookie-whole { left: 11.67%; width: 76.66%; animation: cookie-wobble 1.4s ease-in-out infinite; }
.cookie-half { width: 46%; visibility: hidden; z-index: 3; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.cookie-half.left { left: 11.67%; }
.cookie-half.right { right: 11.67%; }
.fx-cookie.cracked .cookie-whole { display: none; }
.fx-cookie.cracked .cookie-half { visibility: visible; }
.fx-cookie.cracked .cookie-half.left { transform: translate(-58%, 1.2rem) rotate(-12deg) scale(.85); }
.fx-cookie.cracked .cookie-half.right { transform: translate(58%, 2.8rem) rotate(12deg) scale(.85); }
/* One unbroken fortune stretched across both halves: it lies on top so no edge of the paper is hidden. */
.slip { position: absolute; left: 13%; right: 13%; top: 11rem; z-index: 4; background: #fffaf0; color: #2a0d3a; border: 3px solid #1c0d0f; border-radius: 3px; padding: .7rem 2.4rem; min-height: 6.5rem; display: flex; flex-direction: column; justify-content: center; text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-50%) scaleX(.15); transition: opacity .15s, transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.fx-cookie.cracked .slip { opacity: 1; transform: translateY(-50%) rotate(-2deg); }
.slip strong { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.7rem; color: #6d28c4; line-height: 1.15; }
.slip span { display: block; font-weight: 700; font-size: .82rem; line-height: 1.25; }
.fx-cookie.garbage .slip strong { color: #c0182f; }
.slip-cards { display: flex; justify-content: center; gap: .8rem; margin-top: .4rem; }
.slip-ic { width: 2.6rem; height: 2.6rem; }
@keyframes cookie-wobble { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -5deg; } 84% { rotate: 5deg; } 92% { rotate: -3deg; } }
@media (prefers-reduced-motion: reduce) { .cookie-whole { animation: none; } .cookie-half { transition: none; } .slip { transition: none; } }
.free-note { color: var(--gold); font-weight: 800; font-size: .85rem; margin: 0 0 .35rem; }

/* ---------- start and winner screens ---------- */
/* A dim checkered floor that stays in the background, darkening toward the edges like the game board. */
body.checkers { background:
    radial-gradient(ellipse at 50% 35%, rgba(120, 50, 210, .16), transparent 55%) fixed,
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(5, 4, 7, .85) 100%) fixed,
    conic-gradient(#17111f 25%, #0b090e 0 50%, #17111f 0 75%, #0b090e 0) 0 0 / 4.5rem 4.5rem fixed,
    #0b090e; min-height: 100vh; }
body.tv.checkers { background-size: auto, auto, 11vh 11vh; }
body.tv.checkers::before { display: none; }
/* Crossed blades watermark, as behind the Plaza. */
body.checkers #app { position: relative; z-index: 0; }
body.checkers #app::before { content: ""; position: fixed; inset: 14% 12%; background: url("/icons/swords.svg") center / contain no-repeat; opacity: .05; pointer-events: none; z-index: -1; }
/* War banner: dark violet plate, gold lettering, hazard stripes and crossed blades. */
.gold-banner { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45em; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .07em; color: #ffd45a; text-shadow: 0 .08em 0 #000; background: linear-gradient(180deg, #34145c, #170928); border: 2px solid var(--accent); border-radius: 4px; padding: .3em .8em .25em; margin: 0; line-height: 1.2; box-shadow: 0 0 22px rgba(157, 82, 255, .55), 0 10px 24px rgba(0, 0, 0, .6); }
.gold-banner::before, .gold-banner::after { content: ""; flex: none; width: .8em; height: .8em; background: url("/icons/swords.svg") center / contain no-repeat; }
.gold-banner.small { font-size: 1.25rem; }
/* Market-stall awning across the top of the big panels and cards. */
.join .join-form::before, .waiting .phase-card::before, body.tv .lobby-right::before, body.tv .qr-box::before, .champ-card::before, .seat:not(.free)::before, .podium li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5rem; --m: var(--accent); border-radius: 5px 5px 0 0;
  background: repeating-linear-gradient(-45deg, var(--m) 0 .6rem, color-mix(in srgb, var(--m) 40%, #000) .6rem 1.2rem); }
.seat:not(.free)::before, .podium li::before { --m: var(--c); height: .32rem; }
.champ-card::before { --m: #ffb21a; height: .7rem; border-radius: 12px 12px 0 0; }
.count-pill { display: inline-block; background: #09080b; border: 2px solid var(--accent); border-radius: 999px; padding: .3em 1em; font-weight: 900; margin: .4rem 0; }
.parade { display: flex; justify-content: center; align-items: flex-end; }
.parade img { width: 21%; max-width: 6rem; aspect-ratio: 3 / 4; margin: 0 -.15rem; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 14px rgba(157, 82, 255, .45), 0 8px 18px rgba(0, 0, 0, .7); transform: rotate(-5deg); }
.parade img:nth-child(even) { transform: rotate(5deg) translateY(-.5rem); }
.seats { list-style: none; padding: 0; margin: .8em 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.seat { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .5em; min-width: 0; min-height: 3.4em; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #100c18), #0e0b13 75%); border: 1px solid color-mix(in srgb, var(--c) 70%, #000); border-radius: 6px; padding: .65em .6em .45em; font-weight: 900; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.seat-face { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--dot, var(--c)); color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; font-family: var(--display); font-size: 1.15em; border: 2px solid #fff; }
.seat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.free { border: 2px dashed var(--edge); box-shadow: none; color: var(--muted); background: rgba(9, 8, 11, .6); }
.seat.free .seat-face { background: transparent; border: 2px dashed var(--edge); color: var(--muted); }
.seat-ctl { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-end; gap: .4em; font-size: .75em; }
.seat-ctl .crown { margin-right: auto; color: var(--gold); text-transform: uppercase; }
.seat-x { padding: .15em .45em; }

.join { text-align: center; }
body.checkers .join { padding-top: 1.2rem; }
.join .brand-logo { filter: drop-shadow(0 0 2px #09080b) drop-shadow(0 0 14px #09080b) drop-shadow(0 0 14px #09080b); }
.join .tagline { background: #09080b; border-radius: 999px; padding: .3em .8em; display: inline-block; margin: .8rem 0 0; font-size: .95rem; }
.join .join-form { margin: 1rem 0 .6rem; padding-top: 1.4rem; background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 30%, #100c18), #0e0b13 70%); border: 1px solid color-mix(in srgb, var(--accent) 55%, #000); box-shadow: 0 0 26px rgba(125, 50, 220, .35), 0 12px 28px rgba(0, 0, 0, .65); }
.join .parade { margin-top: 1rem; }
.waiting { text-align: center; }
.waiting .brand { margin-bottom: .6rem; }
.waiting .brand-wide { height: 4.4rem; filter: drop-shadow(0 0 10px #09080b) drop-shadow(0 0 10px #09080b); }
.waiting .phase-card { position: relative; padding-top: 1.4rem; background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 30%, #100c18), #0e0b13 70%); border: 1px solid color-mix(in srgb, var(--accent) 55%, #000); box-shadow: 0 0 26px rgba(125, 50, 220, .35), 0 12px 28px rgba(0, 0, 0, .65); }
.waiting .parade { margin-top: 1.4rem; }
.waiting .seat { text-align: left; }

body.tv .lobby { grid-template-rows: minmax(0, 1fr) auto; gap: 1.5vh 3rem; padding: 3vh 5vw 8vh; }
body.tv .lobby > .parade { grid-column: 1 / -1; grid-row: 2; gap: 1vw; }
body.tv .lobby > .parade img { width: auto; max-width: none; height: 15vh; }
body.tv .lobby-left, body.tv .lobby-right { grid-row: 1; }
body.tv .lobby-left { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; }
body.tv .lobby .brand-logo { height: 28vh; width: auto; filter: drop-shadow(0 0 3px #09080b) drop-shadow(0 0 18px #09080b) drop-shadow(0 0 18px #09080b); }
body.tv .lobby .tagline { background: #09080b; border: 2px solid var(--accent); border-radius: 999px; padding: .2em 1em; font-size: 1.15em; margin: 1vh 0 0; }
body.tv .qr-box { margin-top: 1.5vh; padding: 1.2em .8em .8em; background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 30%, #100c18), #0e0b13 70%); border: 1px solid color-mix(in srgb, var(--accent) 55%, #000); box-shadow: 0 0 26px rgba(125, 50, 220, .35), 0 12px 28px rgba(0, 0, 0, .65); }
body.tv .qr-box .qr { width: 18vh; height: 18vh; }
body.tv .qr-box p { margin: .3em 0 0; }
body.tv .lobby-right { max-height: 100%; overflow: auto; padding: 1.3em 1.4em .8em; font-size: 1.1em; background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 30%, #100c18), #0e0b13 70%); border: 1px solid color-mix(in srgb, var(--accent) 55%, #000); box-shadow: 0 0 26px rgba(125, 50, 220, .35), 0 12px 28px rgba(0, 0, 0, .65); }
body.tv .lobby-right h2 { margin: 0; display: flex; align-items: center; gap: .4em; }
body.tv .lobby-right h2::before, body.tv .lobby-right h2::after { content: ""; width: .9em; height: .9em; background: url("/icons/swords.svg") center / contain no-repeat; }
body.tv .lobby-right .seats { margin: .5em 0; }
body.tv .lobby-right p { margin: .3em 0; }

.finale { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; width: 100%; }
.finale .gold-banner { font-size: 2rem; }
.champ-card { position: relative; width: min(100%, 24rem); background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 36%, #100c18), #0e0b13 75%); border: 2px solid #ffb21a; border-radius: 14px; box-shadow: 0 0 34px rgba(255, 178, 26, .4), 0 0 80px rgba(125, 50, 220, .5), 0 14px 34px rgba(0, 0, 0, .7); padding: 1.2rem .6rem .6rem; }
/* Slow spotlight rays behind the champion. */
.finale::before { content: ""; position: fixed; left: 50%; top: 38%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; z-index: -1; pointer-events: none; background: repeating-conic-gradient(rgba(255, 196, 80, .075) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 42%); mask: radial-gradient(circle, #000 0, transparent 42%); animation: rays 60s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.champ-rest { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; }
.champ-chefs { display: flex; justify-content: center; margin-top: -16%; position: relative; }
.champ-chefs img { width: 31%; aspect-ratio: 3 / 4; border: 3px solid var(--c); border-radius: 12px; box-shadow: 0 10px 22px rgba(0, 0, 0, .75); margin: 0 .2rem; }
.champ-text { display: flex; flex-direction: column; align-items: center; margin-top: .4rem; font-weight: 800; }
.champ-text strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.4rem; line-height: 1.1; color: #ffd45a; overflow-wrap: anywhere; }
.champ-crown { width: 3rem; height: 3rem; margin-bottom: -.2rem; filter: drop-shadow(0 0 12px rgba(255, 178, 26, .8)); }
.champ-stats { color: var(--muted); font-size: .9rem; }
.champ-sub { margin: 0; background: #100b18; border: 1px solid var(--accent); border-radius: 4px; padding: .3em 1em; font-weight: 900; }
.podium { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; width: min(100%, 24rem); }
.podium li { position: relative; display: flex; align-items: center; gap: .6rem; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, #100c18), #0e0b13 75%); border: 1px solid color-mix(in srgb, var(--c) 70%, #000); border-radius: 6px; padding: .65rem .7rem .45rem; text-align: left; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.podium .place { font-family: var(--display); font-size: 2rem; color: var(--c); min-width: 1.2rem; text-align: center; }
.podium img { width: 2.8rem; aspect-ratio: 3 / 4; border-radius: 6px; }
.podium .who { display: flex; flex-direction: column; min-width: 0; }
.podium small { color: var(--muted); font-weight: 700; }
.finale-buttons { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 1rem; position: relative; }
.finale-buttons .hist-link { background: #09080b; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -3vh; left: var(--x); width: .55rem; height: .95rem; background: var(--k); border-radius: 2px; animation: confetti var(--t) var(--d) linear infinite both; }
@keyframes confetti { from { transform: translateY(0) rotate(0); } to { transform: translateY(108vh) rotate(720deg); } }

body.tv .champion { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vh; padding: 1vh 3vw 7vh; }
body.tv .finale { gap: 1.3vh; }
body.tv .finale .gold-banner { font-size: 6vh; }
body.tv .champ-card { width: auto; display: flex; align-items: center; gap: 2vw; padding: 2.4vh 1.4vw 1.4vh; }
body.tv .champ-rest { width: auto; height: 31vh; }
body.tv .champ-chefs { margin: 0; }
body.tv .champ-chefs img { width: auto; height: 31vh; }
body.tv .champ-text { min-width: 20vw; margin: 0; }
body.tv .champ-text strong { font-size: 8vh; max-width: 28vw; }
body.tv .champ-text > span { font-size: 2.4vh; }
body.tv .champ-crown { width: 11vh; height: 11vh; }
body.tv .champ-sub { font-size: 2.4vh; }
body.tv .podium { display: flex; justify-content: center; flex-wrap: wrap; width: 100%; gap: 1.2vh 1vw; }
body.tv .podium li { font-size: 1.9vh; }
body.tv .podium img { width: 5.5vh; }
body.tv .podium .place { font-size: 4vh; }
body.tv .finale-buttons { flex-direction: row; margin-top: .5vh; }
body.tv .champion .btn.big { width: auto; min-width: 18em; }
body.tv .champion .records { background: #09080b; border-radius: 8px; padding: .3em 1em; }
body.tv .champion .records h3, body.tv .champion .records ol { margin: .2em 0; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .finale::before { animation: none; } }
.champ-card::after { content: ""; position: absolute; inset: 5px; pointer-events: none; --k: 18px; --w: 2px; --fx: #ffb21a; background:
  linear-gradient(var(--fx), var(--fx)) left bottom / var(--k) var(--w) no-repeat, linear-gradient(var(--fx), var(--fx)) left bottom / var(--w) var(--k) no-repeat,
  linear-gradient(var(--fx), var(--fx)) right bottom / var(--k) var(--w) no-repeat, linear-gradient(var(--fx), var(--fx)) right bottom / var(--w) var(--k) no-repeat; }

/* ---------- phone Board tab: framed markets and recipes ---------- */
/* Each market is wrapped all the way round in its own awning stripes. */
body.phone .stall { border: 8px solid transparent; border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, #5a1fae 24%, #100c18), #0e0b13 65%) padding-box,
    repeating-linear-gradient(-45deg, var(--m) 0 9px, color-mix(in srgb, var(--m) 40%, #000) 9px 18px) border-box; }
body.phone .stall[data-market="odd"] { background: linear-gradient(180deg, color-mix(in srgb, #ff2d95 30%, #120a12), #110b12 65%) padding-box,
    repeating-linear-gradient(-45deg, var(--m) 0 9px, color-mix(in srgb, var(--m) 40%, #000) 9px 18px) border-box; }
body.phone .stall > .awning, body.phone .stall::after { display: none; }

.rstrip-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: #ffd45a; font-size: 1.35rem; text-shadow: 0 2px 0 #000; }
.rstrip .rs { --m: #a8482a; --fill: #3a150c; border: 7px solid transparent; border-radius: 10px; padding: .5rem .55rem .55rem;
  background: linear-gradient(180deg, var(--fill), #120d19 70%) padding-box,
    repeating-linear-gradient(-45deg, var(--m) 0 9px, color-mix(in srgb, var(--m) 40%, #000) 9px 18px) border-box; }
/* Ready to cook: the same colour, glowing. Green is a market's colour, so the frame stays out of it. */
.rstrip .rs.ready { box-shadow: 0 0 0 2px var(--m), 0 0 24px 4px color-mix(in srgb, var(--m) 65%, transparent); }
.rstrip .rs::after { display: none; }
.rstrip .rs header { align-items: flex-start; gap: .5rem; }
.rs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.rstrip .rs header strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.rstrip .rs-meta { flex-direction: column; align-items: flex-end; gap: .15rem; }
.rs-points { background: #0b090e; border: 2px solid #ffb21a; border-radius: 999px; color: #ffd45a; font-size: 1.05rem; padding: .05rem .55rem; }
.rstrip .rs-needs .nchip { font-size: .92rem; padding-block: .22rem; }
.rs-progress { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; }
.rs-bar { flex: 1; display: flex; gap: 3px; }
.rs-bar i { flex: 1; height: .5rem; border-radius: 3px; background: rgba(255, 255, 255, .13); }
.rs-bar i.on { background: #36d17f; box-shadow: 0 0 6px rgba(54, 209, 127, .7); }
.rstrip .rs-tag { margin-top: 0; white-space: nowrap; }

/* Give back the width the frame takes, so ingredient names still fit. */
body.phone .stall .slots { padding: 0 .2rem .35rem; gap: .22rem; }
body.phone .stall .ing-name { padding: 0; }
.rstrip .rs-foot { margin: .45rem 0 0; font-size: .8rem; color: #cdbfdd; border-top: 1px dashed rgba(255, 255, 255, .18); padding-top: .35rem; }
/* Basic: dark copper. A smooth metal frame, so it isn't confused with the red and orange market awnings. */
.rstrip .rs.basic { border-width: 8px; background:
    linear-gradient(180deg, #35130b, #140b0a 75%) padding-box,
    linear-gradient(115deg, #4a170c 0%, #8a3a22 18%, #c4744f 28%, #8a3a22 40%, #561d10 55%, #96422a 70%, #c4744f 78%, #6e2a18 90%, #4a170c 100%) border-box; }
.rstrip .rtype { background: linear-gradient(180deg, #b8603c, #7a2f1b); color: #ffe9de; }
/* Gourmet: polished silver. A still metal frame like the copper one, with no glow and no movement. */
.rstrip .rs.gourmet { border-width: 8px; background:
    linear-gradient(180deg, #292c35, #131419 75%) padding-box,
    linear-gradient(115deg, #737a89 0%, #b4bac7 18%, #eceef3 28%, #b4bac7 40%, #808796 55%, #c3c8d3 70%, #eceef3 78%, #969dac 90%, #737a89 100%) border-box; }
.rstrip .rs.gourmet.ready { box-shadow: 0 0 0 2px #cfd4de; }
.rstrip .gourmet .rtype { background: linear-gradient(180deg, #eef0f4, #c3c8d3 55%, #9aa1b0); color: #14161d; }
.rstrip .gourmet .rtype::before { content: "✦ "; }
.rstrip .gourmet header strong { color: #e9ecf2; }

/* Join screen: the dark purple checkerboard turned up enough to read on a phone. */
body.checkers.joining { background:
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(5, 4, 7, .6) 100%) fixed,
    conic-gradient(#2c1354 25%, #0d0916 0 50%, #2c1354 0 75%, #0d0916 0) 0 0 / 4.5rem 4.5rem fixed,
    #0d0916; }
body.checkers.joining #app::before { display: none; }

/* ---------- pick your colour ---------- */
.picker .brand { margin-bottom: .6rem; }
.pick-me { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin: .4rem auto; border-radius: 50%; background: var(--dot, var(--c)); border: 4px solid #fff; box-shadow: 0 0 0 4px var(--c), 0 0 30px var(--c); color: #fff; font-family: var(--display); font-size: 2.8rem; text-shadow: 0 2px 4px #000, 0 0 3px #000; }
.pick-name { margin: .3rem 0 .6rem; font-weight: 900; font-size: 1.05rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.7rem, 1fr)); gap: .75rem .6rem; margin-top: .5rem; }
.swatch { justify-self: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; padding: 0; cursor: pointer; background: var(--dot, var(--c)); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ring, rgba(0, 0, 0, .7)), 0 0 8px var(--c); color: #fff; font: 900 1rem/1 var(--font, inherit); text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.swatch.on { box-shadow: 0 0 0 4px #ffd45a, 0 0 16px 4px var(--c); transform: scale(1.12); }
.swatch:disabled { cursor: default; opacity: .38; }
.picker .confirm-color { position: sticky; bottom: 4.8rem; z-index: 3; margin-top: .9rem; }
/* The remove button sits in the corner so longer names fit on the seat card. */
body.phone .waiting .seat-x { position: absolute; top: -.45rem; right: -.35rem; z-index: 2; width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 50%; font-size: .75rem; line-height: 1; background: #17101f; }

/* 7 or 8 players: the TV can't scroll, so player cards go two abreast and the introductions shrink to two rows. */
body.tv .tv-body.packed { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr); gap: .6rem; padding-inline: .6rem; }
body.tv .tv-body.packed .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4em; }
body.tv .tv-body.packed .pcard { font-size: .8em; }
body.tv .tv-body.packed .ing-name { font-size: .6em; padding: 0; }
body.tv .intro-packed { font-size: min(1.28vh, .72vw); padding-block: .8vh; gap: .4em; }
body.tv .intro-packed .logo { font-size: 3.4em; margin: 0; }
body.tv .intro-packed .tagline { margin: 0; }
body.tv .intro-packed .intro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6em; }
body.tv .intro-packed .intro-card { padding: .4em .7em; }
body.tv .intro-packed .rest-art { max-width: 8em; margin-bottom: .1em; }
body.tv .intro-packed .portrait { width: 5em; }
body.tv .intro-packed .intro-card h2 { margin: 0; }
body.tv .intro-packed .intro-card p, body.tv .intro-packed .intro-card ol { margin-block: .2em; }

.stalk-line { margin: .5rem 0; text-align: center; }
.stalk-line .muted { margin: .25rem 0 0; font-size: .75rem; }

/* ---------- pick your chef: portrait cards ---------- */
.draft { text-align: center; }
.chef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); gap: .6rem; margin: .7rem 0; }
.chef-grid .chef-card { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; margin: 0; padding: 0 0 .6rem; overflow: hidden; background: linear-gradient(180deg, #2a1650, #100b18 70%); border: 2px solid #5b2f9e; border-radius: 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .55); transition: transform .12s; }
.chef-grid .chef-card::before { content: ""; align-self: stretch; height: .45rem; background: repeating-linear-gradient(-45deg, var(--accent) 0 .5rem, color-mix(in srgb, var(--accent) 40%, #000) .5rem 1rem); }
.chef-grid .chef-card.picked { border-color: var(--gold); background: linear-gradient(180deg, #4a2c06, #150f10 70%); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(255, 178, 26, .55); transform: translateY(-2px); }
.chef-grid .chef-card.picked::before { background: repeating-linear-gradient(-45deg, var(--gold) 0 .5rem, #6b4a05 .5rem 1rem); }
.cc-art { position: relative; display: block; width: 78%; }
.cc-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 10px; }
.cc-check { position: absolute; left: 50%; bottom: .3rem; transform: translateX(-50%); white-space: nowrap; background: var(--gold); color: #1a0f00; font-weight: 900; font-size: .75rem; border-radius: 999px; padding: .1rem .6rem; }
.cc-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; line-height: 1.15; padding: 0 .35rem; color: #fff; }
.chef-grid .chef-card em.cc-kind { font-style: normal; font-weight: 900; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: .1rem .55rem; border: 1px solid var(--accent); color: #dcc4ff; }
.chef-grid .chef-card em.cc-kind.active { border-color: var(--gold); color: #ffd45a; }
.cc-text { font-size: .8rem; line-height: 1.3; color: #d6ccea; padding: 0 .5rem; }

/* ---------- level-up ladder ---------- */
.ladder { list-style: none; margin: .6em 0 0; padding: 0; display: grid; gap: .3em; text-align: left; }
.ladder li { position: relative; display: flex; align-items: center; gap: .6em; background: rgba(255, 255, 255, .045); border: 1px solid color-mix(in srgb, var(--c, #9d52ff) 45%, #000); border-radius: 999px; padding: .2em .7em .2em .2em; font-size: .92em; line-height: 1.25; color: #d6ccea; }
.ladder li + li::before { content: ""; position: absolute; left: 1.45em; top: -.38em; width: .22em; height: .4em; background: var(--gold); opacity: .7; }
.ladder .rung { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 2.7em; height: 2.7em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, #d98e00 75%); color: #2a1600; border: 2px solid #fff3cc; font-family: var(--display); font-weight: 400; font-size: 1.05em; line-height: 1; }
.ladder .rung small { font-family: inherit; font-size: .55em; text-transform: uppercase; }
.ladder li.got { border-color: var(--good); color: #fff; }
.ladder li.got .rung { background: radial-gradient(circle at 35% 30%, #9ff5c4, #1f9d5c 75%); }

/* Meet the restaurants: a colored awning on each card and the chef on their own plate. */
.intro-card { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, #17121f), #100d15 45%); }
.intro-grid .intro-card, .phone-intros .intro-card { border-top: 0; padding-top: 1.3em; text-align: center; }
.intro-grid .intro-card::before, .phone-intros .intro-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .6em; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(-45deg, var(--c) 0 .7em, color-mix(in srgb, var(--c) 40%, #000) .7em 1.4em); }
.intro-card { position: relative; }
.intro-grid .intro-card header, .phone-intros .intro-card header { justify-content: center; }
.intro-card .rest-art { border: 3px solid color-mix(in srgb, var(--c) 70%, #fff); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
.intro-card .chef-line, .rest-pick .chef-line { text-align: left; background: rgba(0, 0, 0, .38); border: 1px solid color-mix(in srgb, var(--c) 55%, #000); border-radius: 10px; padding: .45em; margin-top: .5em; }

/* ---------- bidding war face-off ---------- */
.faceoff { text-align: center; }
.faceoff.waiting { opacity: .6; }
.prize { display: flex; flex-direction: column; align-items: center; margin: .4em 0 .5em; line-height: 1.15; }
.prize-disc { display: grid; place-items: center; width: 4em; height: 4em; border-radius: 50%; background: radial-gradient(circle, #5a1a3a, #1c0a20 72%); border: 3px solid var(--gold); box-shadow: 0 0 22px rgba(255, 90, 90, .6); }
.prize-ic { width: 2.6em; height: 2.6em; }
.prize-name { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.35em; color: #fff; }
.prize small { color: #c6b0e0; }
.fighters { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: .35em; }
.fighters .vs { align-self: center; font-family: var(--display); font-size: 1.15em; color: #ff6b76; text-shadow: 0 0 10px rgba(255, 59, 78, .9); }
.fighter { display: flex; flex-direction: column; align-items: center; gap: .15em; width: 5.4em; padding: .35em .25em; border-radius: 10px; border: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 35%, #130d1c), #0e0a15 75%); }
.fighter-art { width: 3.4em; height: auto; aspect-ratio: 3 / 4; border-radius: 6px; }
.fighter strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9em; }
.fighter-bid { font-family: var(--display); font-size: 1.25em; color: #ffd45a; }
.fighter em { font-style: normal; font-weight: 900; font-size: .65em; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 0 .6em; background: #2a2233; }
.fighter.lead { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 178, 26, .75); }
.fighter.lead em { background: var(--gold); color: #1a0f00; }
.fighter.out { filter: grayscale(1); opacity: .45; }
.war-box > .gold-banner { display: flex; margin: 0 auto; width: max-content; }
.war-box { text-align: center; }
.war-box h3.gold-banner { font-size: 1.15rem; }
.war-box .stepper, .war-box > .row { justify-content: center; margin-top: .5rem; }
body.tv .wars { bottom: 2.5em; width: max-content; max-width: 70%; min-width: 30%; text-align: center; font-size: 1.4em; padding: .6em 1em .8em; border-width: 2px; }
body.tv .wars > .gold-banner { font-size: 1.25em; }
body.tv .war-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2em; }
body.tv .wars.many-wars { font-size: .92em; max-width: 92%; }

/* ---------- hall of fame ---------- */
.hist-top .gold-banner { font-size: 1.8rem; }
.hist-card, .hist-sum { position: relative; border: 2px solid #5b2f9e; border-radius: 10px; padding-top: 1.1rem; background: linear-gradient(180deg, #241243, #110c19 70%); box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.hist-card::before, .hist-sum::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5rem; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(-45deg, var(--gold) 0 .6rem, #6b4a05 .6rem 1.2rem); }
.hist-card.early::before { background: repeating-linear-gradient(-45deg, var(--accent) 0 .6rem, color-mix(in srgb, var(--accent) 40%, #000) .6rem 1.2rem); }
.hist-card { margin: .7rem 0; border-left-width: 2px; }
.hist-head { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.hist-head h2 { margin: 0; }
.hist-medal { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a2f73, #170d26 75%); border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(255, 178, 26, .45); }
.hist-medal .ic { width: 1.6rem; height: 1.6rem; }
.hist-medal.huge { width: 7rem; height: 7rem; border-width: 4px; margin: 0 auto; }
.hist-medal.huge .ic { width: 4rem; height: 4rem; }
.hist-chip i { display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: #2c2438; font-style: normal; font-weight: 900; font-size: .8em; }
.hist-chip.place-1 { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 178, 26, .4); }
.hist-chip.place-1 i { background: var(--gold); color: #1a0f00; }
.hist-chip.place-2 i { background: #cfd4de; color: #14161d; }
.hist-chip.place-3 i { background: #c4744f; color: #1c0a04; }
.hist-empty { text-align: center; margin-top: 2rem; }
.hist-empty h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: #ffd45a; margin: .8rem 0 .2rem; font-size: 1.7rem; }
.hist-empty .parade { margin-top: 1.6rem; }
.hist-sec { background: rgba(14, 10, 20, .88); border: 1px solid #4a2b7e; border-radius: 10px; padding: .6rem .8rem; }

body.tv .intro-packed .ladder { gap: .15em; margin-top: .3em; }
body.tv .intro-packed .ladder .rung { width: 2.1em; height: 2.1em; font-size: .95em; }
body.tv .intro-packed .ladder .rung small { display: none; }
body.tv .intro-packed .intro-card .chef-line { padding: .25em; margin-top: .25em; }
body.tv .intro-packed .intro-card { padding-top: .8em; }
