/* Storybook / parchment theme, as in Tiny Village: warm wood planks, cream paper cards, condensed headings, Nunito text;
   Ashfall adds an ember accent for danger (the ash, eliminations) and ash greys. */
:root {
  --paper: #fbf1da;
  --paper2: #f3e2bf;
  --paper3: #ead2a3;
  --paper-glass: rgba(251, 241, 218, 0.94);
  --wood: #8a5a34;
  --wood-dark: #5e3a20;
  --line: #c9a571;
  --text: #4a3222;
  --muted: #8c6c4e;
  --cream: #fff3da;
  --cream2: #f4dcb2;
  --gold: #ffd677;
  --accent: #e0832f;
  --accent2: #f6b94a;
  --ember: #d9482b;
  --ember-soft: #fde3d6;
  --ash: #6f6a66;
  --ash-dark: #3e3632;
  --good: #5aa845;
  --bad: #d9534f;
  --water: #3fa9d6;
  --thought: #5a4f8a;
  --night: rgba(42, 24, 12, 0.92);
  --plank: repeating-linear-gradient(90deg, #9a6438 0 120px, #8f5c33 120px 122px), #9a6438;
  --shadow: 0 6px 0 rgba(94, 58, 32, 0.35), 0 10px 24px rgba(42, 24, 12, 0.25);
  --shadow-sm: 0 3px 0 rgba(94, 58, 32, 0.3);
  --display: "Barlow Condensed", "Arial Narrow", "Nunito", sans-serif;
  --ui: "Nunito", -apple-system, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --top: 46px;
  --gutter: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2a180c; color: var(--text); font: 14px/1.4 var(--ui); -webkit-font-smoothing: antialiased; }
canvas#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
button, select, input, textarea { font: inherit; color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px; }
button { cursor: pointer; font-weight: 700; box-shadow: 0 2px 0 var(--line); transition: transform 0.05s, background 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:hover { background: #fff8e8; }
button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--line); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
button.active, button.primary { background: var(--accent2); color: #4a2a10; border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
button.primary:hover:not(:disabled) { background: #ffcf6e; }
button.primary.big { padding: 10px 28px; font: 600 21px var(--display); border-width: 3px; border-radius: var(--r); box-shadow: 0 5px 0 var(--wood-dark); }
button.primary.big:active { box-shadow: 0 2px 0 var(--wood-dark); transform: translateY(3px); }
button.small { padding: 2px 8px; font-size: 12px; }
button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--wood); }
button.ghost:hover { background: rgba(201, 165, 113, 0.25); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #b09878; }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
.hidden { display: none !important; }
.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
kbd { display: inline-block; min-width: 18px; padding: 0 4px; font: 800 10px/16px var(--ui); text-align: center; color: var(--wood-dark); background: #fffaf0; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.err { color: var(--ember); font-weight: 700; }
.warnword { color: var(--ember); font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: var(--s4) var(--s2); margin: 0; font-style: italic; }
.empty.small { padding: var(--s1) 0; text-align: left; font-size: 12px; }
.note { color: var(--cream2); font-size: 13px; margin: var(--s2) 0 0; }
.face { flex: none; border-radius: 50%; background: #efe0bd; box-shadow: 0 0 0 2px var(--c, var(--line)); }
.yours { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 8px; background: var(--accent2); color: #4a2a10; border: 1px solid var(--accent); font: 800 10px/15px var(--ui); text-transform: uppercase; letter-spacing: 0.3px; vertical-align: 2px; white-space: nowrap; }
.tag { display: inline-block; padding: 0 6px; border-radius: 8px; background: var(--paper3); color: var(--wood-dark); font: 800 10px/15px var(--ui); text-transform: uppercase; letter-spacing: 0.3px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 10px; background: var(--paper2); border: 1px solid var(--line); font: 800 12px var(--ui); color: var(--wood-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.warn { background: var(--ember-soft); border-color: var(--ember); color: var(--ember); }
.lbl { display: block; color: var(--wood); font: 800 11px var(--ui); text-transform: uppercase; letter-spacing: 0.4px; margin: var(--s2) 0 3px; }
.card { background: var(--paper); border: 3px solid var(--wood); border-radius: var(--r-lg); padding: var(--s4) 18px; box-shadow: inset 0 0 0 2px var(--paper3), var(--shadow); }
.panel { background: var(--paper-glass); border: 3px solid var(--wood); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--paper3), 0 4px 0 rgba(94, 58, 32, 0.35), 0 8px 18px rgba(42, 24, 12, 0.2); }
.card-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.card-head h2, .card-head h3 { margin: 0; font: 600 22px/1.1 var(--display); color: var(--wood-dark); display: flex; align-items: center; gap: 6px; }
.card-head h3 { font-size: 17px; }
.card-head > :last-child:not(:first-child) { margin-left: auto; }
.seg { display: inline-flex; gap: 0; padding: 2px; background: var(--paper2); border: 2px solid var(--line); border-radius: 8px; }
.seg button { border: 0; box-shadow: none; background: transparent; padding: 3px 10px; border-radius: 5px; font-size: 13px; }
.seg button.active { background: var(--accent2); color: #4a2a10; box-shadow: 0 2px 0 var(--accent); }
.seg.small button { padding: 1px 8px; font-size: 12px; text-transform: capitalize; }
.meter { height: 8px; margin-top: 6px; background: #e3cfa6; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width 0.4s; }
.skeleton { border-radius: var(--r-sm); background: linear-gradient(90deg, rgba(234, 210, 163, 0.5), rgba(251, 241, 218, 0.9), rgba(234, 210, 163, 0.5)) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.tiles { height: 120px; opacity: 0.4; }
.skeleton.line { height: 34px; margin: 6px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- the top bar: a wooden plank with the name, the numbers that matter now, and you ---------- */
#topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s3); color: var(--cream);
  background: var(--plank); border-bottom: 3px solid var(--wood-dark); box-shadow: var(--shadow-sm); overflow: hidden; }
#topbar > * { flex-shrink: 0; white-space: nowrap; }
#topbar .brand { font: 600 22px var(--display); color: var(--gold); text-shadow: 2px 2px 0 var(--wood-dark); letter-spacing: 0.5px; }
#topbar .spacer { flex: 1 1 0; min-width: 0; }
#tb-stats { display: flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0; overflow: hidden; }
.tb-stat { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; font: 700 13px var(--ui); color: var(--cream2); background: rgba(42, 24, 12, 0.3); border: 1px solid rgba(255, 243, 218, 0.16); white-space: nowrap; }
.tb-stat b { font: 900 17px var(--ui); color: var(--cream); font-variant-numeric: tabular-nums; text-shadow: 1px 1px 0 var(--wood-dark); }
.tb-stat .ico { color: var(--gold); width: 15px; height: 15px; }
.tb-stat.clock b { min-width: 3.1em; }
.tb-stat b small { font-size: 13px; color: var(--cream2); }
.tb-stat.hot { background: var(--accent2); color: #4a2a10; border-color: var(--accent); }
.tb-stat.hot b { color: #4a2a10; text-shadow: none; }
.tb-stat.hot .ico { color: #4a2a10; }
.tb-stat.live:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7fd35f; animation: live 1.6s ease-in-out infinite; }
.tb-stat.ash { font-weight: 800; color: var(--cream); }
button.tb-stat { box-shadow: none; cursor: pointer; }
button.tb-stat:hover { background: rgba(42, 24, 12, 0.55); }
.tb-stat.next { color: #4a2a10; background: var(--accent2); border-color: var(--accent); }
.tb-stat.next b, .tb-stat.next b small { color: #4a2a10; text-shadow: none; }
.tb-stat.next:hover { background: var(--accent); }
.tb-stat.ash .ico { color: #d8d0c8; }
.tb-stat.ash.warn { background: var(--ember); border-color: #ff8a5c; animation: ember 1s ease-in-out infinite alternate; }
.tb-stat.ash.warn .ico, .tb-stat.ash.final .ico, .tb-stat.ash.all .ico { color: var(--cream); }
.tb-stat.ash.final, .tb-stat.ash.all { background: #7a2a18; border-color: var(--ember); }
.tb-stat .sm-inline { display: none; }
.tb-stat.wx .ico { color: #cfd8e0; }
.tb-stat.wx-heat .ico, .tb-stat.wx-clear .ico { color: var(--gold); }
.live .wx { display: inline-flex; align-items: center; gap: 6px; color: var(--cream); }
.live .wx .ico { width: 16px; height: 16px; }
@keyframes ember { to { box-shadow: 0 0 0 3px rgba(217, 72, 43, 0.35); } }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 211, 95, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(127, 211, 95, 0); } }
.tb-btn { height: 30px; background: #f6e4bf; border-color: var(--wood-dark); box-shadow: 0 2px 0 var(--wood-dark); }
.tb-btn.signin { background: var(--accent2); border-color: var(--accent); color: #4a2a10; font-weight: 800; padding: 0 14px; box-shadow: 0 2px 0 var(--wood-dark); }
#btn-sound { width: 34px; padding: 0; }
#btn-sound .ico { width: 16px; height: 16px; }
#vol { width: 90px; accent-color: var(--accent2); cursor: pointer; }
@media (max-width: 600px) { #vol { width: 60px; } }
#me-bar { display: flex; align-items: center; gap: var(--s2); }
#me-bar .who { font-weight: 800; color: var(--cream); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
#me-bar .bal { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 10px; background: #e5f4d9; color: #2f5a22; border: 1px solid var(--good); font-weight: 800; }
body.offline #topbar .brand:after { content: "reconnecting"; margin-left: 8px; padding: 1px 8px; border-radius: 8px; font: 800 11px var(--ui); color: var(--cream); background: var(--ember); vertical-align: 3px; }

/* ---------- toasts and the sign-in dialog ---------- */
#toast { position: fixed; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
#toast div { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--wood); border-left-width: 6px; padding: 8px 14px; border-radius: var(--r-sm); max-width: 520px; white-space: pre-wrap; font-weight: 700; box-shadow: var(--shadow-sm); animation: drop-in 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; }
#toast div.good { border-left-color: var(--good); } #toast div.good .ico { color: var(--good); }
#toast div.bad { border-left-color: var(--ember); } #toast div.bad .ico { color: var(--ember); }
#toast div.leaving { opacity: 0; transform: translateY(-8px); }
@keyframes drop-in { from { transform: translateY(-10px); opacity: 0; } }
#nick { position: fixed; inset: 0; z-index: 42; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42, 24, 12, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#nick .card { width: min(400px, 100%); padding: 22px 28px 24px; text-align: center; border-width: 4px; animation: card-in 0.4s ease-out; display: flex; flex-direction: column; gap: 10px; }
#nick h2 { margin: 0; font: 600 24px/1.2 var(--display); color: var(--wood-dark); }
#nick input { font: 700 18px var(--ui); padding: 10px 12px; min-height: 48px; border: 2px solid var(--line); border-radius: var(--r); background: #fffaf0; text-align: center; }
#nick .err { margin: 0; min-height: 1.2em; color: var(--ember); font-weight: 700; }
#signin button.way { width: 100%; cursor: pointer; text-align: left; justify-content: flex-start; }
#signin button.way:disabled { opacity: 0.6; cursor: wait; }
#signin .wallet-err { margin: 4px 0 0; } #signin .wallet-err:empty { display: none; }
#me-bar button.who { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 800; color: var(--cream); text-decoration: underline dotted; text-underline-offset: 3px; }
.team-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.team-note .nw { white-space: nowrap; }
.team-note .linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--wood-dark); text-decoration: underline dotted; cursor: pointer; }
.mc + .mc { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.mc.picked .mc-name::after { content: ' · editing'; font: 700 13px var(--ui); color: var(--accent); white-space: nowrap; }
.mc-add { margin-top: 12px; }
#signin { position: fixed; inset: 0; z-index: 41; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42, 24, 12, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#signin .card { width: min(400px, 100%); max-height: 100%; overflow: auto; padding: 22px 28px 24px; text-align: center; border-width: 4px; animation: card-in 0.4s ease-out; }
@keyframes card-in { from { transform: translateY(16px); opacity: 0; } }
#signin h2 { margin: 0 0 14px; font: 600 24px/1.2 var(--display); color: var(--wood-dark); }
#signin .ways { display: flex; flex-direction: column; gap: 8px; }
#signin .way { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px; font: 800 16px var(--ui); color: var(--text); text-decoration: none; background: #fffaf0; border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 3px 0 var(--line); }
#signin .way:hover { background: #fff3dc; border-color: var(--accent); }
#signin .mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; font: 800 17px var(--ui); }
#signin svg.mark { padding: 0; }
#signin .way-t { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.2; }
#signin .way-t small { margin-top: 2px; font: 600 12px var(--ui); color: var(--muted); }
#signin .wc:empty { display: none; }
#signin .wc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; background: #fffaf0; border: 2px dashed var(--line); border-radius: var(--r); }
#signin .wc-h { margin: 0; font: 800 15px var(--ui); color: var(--wood-dark); }
#signin .wc-qr { width: min(220px, 70vw); padding: 8px; background: #fff; border-radius: 8px; } #signin .wc-qr svg { display: block; width: 100%; height: auto; }
#signin .wc-apps { display: flex; flex-direction: column; gap: 6px; width: 100%; }
#signin > .card > .hint { margin: 12px 0 0; }

/* ---------- top up with USDT (topup.js) and withdraw (withdraw.js) ---------- */
.tb-btn.topup { background: var(--good); border-color: #3d7a2e; color: #fff; font-weight: 800; padding: 0 12px; }
#topup, #withdraw { position: fixed; inset: 0; z-index: 41; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42, 24, 12, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#topup .card, #withdraw .card { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px 22px; border-width: 4px; animation: card-in 0.3s ease-out; }
#topup h2, #withdraw h2 { margin: 0 0 12px; padding-right: 36px; font: 600 24px/1.2 var(--display); color: var(--wood-dark); }
#topup h3, #withdraw h3 { margin: 18px 0 6px; font: 800 14px var(--ui); color: var(--wood-dark); text-transform: uppercase; letter-spacing: 0.4px; }
#topup .tp-x, #withdraw .tp-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; }
#topup .tp-x .ico, #withdraw .tp-x .ico { width: 14px; height: 14px; }
.tp-tabs { display: flex; width: 100%; }
.tp-tabs button { flex: 1; padding: 6px 8px; font: 800 14px var(--ui); }
.tp-tabs button small { display: block; white-space: nowrap; font: 700 11px var(--ui); opacity: 0.8; }
.tp-addr { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.tp-addr .qr { flex: none; width: 148px; height: 148px; border-radius: var(--r-sm); border: 2px solid var(--line); }
.tp-addr .addr { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.tp-addr .lbl { font: 800 12px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.tp-addr code { display: block; padding: 8px 10px; font: 700 13px/1.35 ui-monospace, Menlo, Consolas, monospace; color: var(--text); background: #fffaf0; border: 2px dashed var(--line); border-radius: var(--r-sm); word-break: break-all; user-select: all; }
.tp-addr button { align-self: flex-start; }
.tp-show { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; padding: 18px 12px; background: #fffaf0; border: 2px dashed var(--line); border-radius: var(--r-sm); text-align: center; font-size: 14px; color: var(--muted); }
.tp-got { margin: 0; font-weight: 700; color: var(--good); }
.tp-queue { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: #fffaf0; border: 2px solid var(--accent2); border-radius: var(--r-sm); font-size: 14px; }
.tp-queue .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.tp-queue div { display: flex; flex-direction: column; gap: 4px; }
.tp-time { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 8px 12px; background: #fffaf0; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.tp-time b { font-variant-numeric: tabular-nums; }
.tp-time.paid { border-color: var(--good); }
.tp-warn { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 8px 12px; background: var(--ember-soft); border: 1px solid var(--ember); border-radius: var(--r-sm); font-size: 14px; }
.tp-warn .ico, .tp-err .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ember); }
.tp-err { display: flex; gap: 8px; margin: 14px 0 0; font-weight: 700; color: var(--ember); }
.tp-facts { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-list li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; background: #fffaf0; border: 1px solid var(--line); border-left: 4px solid var(--accent2); border-radius: var(--r-sm); font-size: 14px; }
.tp-list li.st-credited { border-left-color: var(--good); } .tp-list li.st-credited .tp-st { color: #2f5a22; }
.tp-list li.st-failed, .tp-list li.st-reorged { border-left-color: var(--ember); } .tp-list li.st-failed .tp-st, .tp-list li.st-reorged .tp-st { color: var(--ember); }
.tp-list .tp-st { font-weight: 700; }
.tp-list .tag { justify-self: start; }
.tp-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tp-list a { color: inherit; }
.wd-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wd-form label { display: flex; flex-direction: column; gap: 4px; font: 800 12px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.wd-form input { padding: 8px 10px; font: 700 15px var(--ui); color: var(--text); text-transform: none; letter-spacing: 0; }
.wd-form #wd-to { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.wd-sum { margin: 0; min-height: 1.2em; font-weight: 700; color: #2f5a22; }
.wd-form .tp-err { margin: 0; }
.wd-form .tp-err:empty { display: none; }
.wd-form button { align-self: flex-start; }
@media (max-width: 700px) {
  #topup, #withdraw { padding: 8px; align-items: flex-start; }
  #topup .card, #withdraw .card { padding: 16px 14px 16px; }
  .tp-addr { flex-direction: column; align-items: stretch; }
  .tp-addr .qr { align-self: center; width: 168px; height: 168px; }
  .tp-addr button { align-self: stretch; }
  .tp-list li { grid-template-columns: auto 1fr auto; }
  .tp-list .tp-st { grid-column: 1 / -1; grid-row: 2; }
  .tb-btn.topup { padding: 0 8px; }
}
@media (max-width: 420px) {
  body:not(.mode-match) #tb-stats, #topbar .brand, #vol { display: none; } /* the lobby and the results say the same, and Top up and Withdraw need the room; a phone has its own volume keys */
  /* the match keeps who is left, the ash and the next match; the clock, the weather and the freeze are in the banners and the caption */
  body.mode-match #me-bar .tb-btn.topup, body.mode-match #me-bar .tb-btn.withdraw, .tb-stat.clock, .tb-stat.wx, body.mode-match .tb-stat.hot, .tb-stat.next .lg-inline { display: none; }
}

/* ---------- modes: the lobby and the results over the arena's flat map; the match is the 3D view under the HUD ---------- */
body:not(.mode-match) canvas#view, body:not(.mode-match) #labels, body:not(.mode-match) #hud { display: none; }
body:not(.mode-lobby) #lobby { display: none; }
body:not(.mode-results) #results { display: none; }
body.mode-match #backdrop { display: none; }
#backdrop { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; image-rendering: pixelated; filter: saturate(0.6) sepia(0.35) brightness(0.75) blur(1px); transform: scale(1.08); }
#grade { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
body.mode-match #grade { z-index: 2; background: radial-gradient(ellipse at center, rgba(255, 240, 200, 0) 60%, rgba(60, 30, 14, 0.32) 100%); }
body:not(.mode-match) #grade { background: linear-gradient(90deg, rgba(42, 24, 12, 0.94) 0, rgba(42, 24, 12, 0.84) 40%, rgba(42, 24, 12, 0.5) 62%, rgba(42, 24, 12, 0.3) 100%); }
body.mode-results #grade { background: radial-gradient(ellipse 70% 42% at 50% 0%, rgba(216, 178, 96, 0.12), rgba(216, 178, 96, 0) 70%), radial-gradient(ellipse at 50% 30%, rgba(17, 15, 13, 0.86), rgba(10, 9, 8, 0.97) 70%); }
body.mode-results { background: #0c0b0a; }
body.mode-results #backdrop { filter: grayscale(0.85) brightness(0.45) blur(3px); }

/* ---------- the lobby ---------- */
#lobby { position: fixed; inset: var(--top) 0 0 0; z-index: 5; overflow: auto; overscroll-behavior: contain; }
.lb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 36px var(--s5) 56px; align-items: start; }
.lb-main { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.lb-hero { color: var(--cream); animation: card-in 0.5s ease-out backwards; }
.lb-hero h1 { margin: 0; font: 700 112px/0.9 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-shadow: 0 3px 0 var(--wood-dark), 0 12px 28px rgba(0, 0, 0, 0.55); }
.lb-hero .head { margin: 22px 0 0; font: 800 32px/1.12 var(--ui); color: var(--cream); text-shadow: 0 2px 0 var(--wood-dark); }
.lb-hero .lead { margin: 10px 0 0; max-width: 600px; font-size: 16px; color: var(--cream2); }
.live { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-weight: 800; font-size: 14px; color: #ffe7a8; }
.live:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7fd35f; animation: live 1.6s ease-in-out infinite; }
.live.hot { color: var(--accent2); font-size: 16px; } .live.hot:before { background: var(--ember); }
.live.wait:before { background: var(--accent2); animation: none; }
.live b { font: 900 19px var(--ui); color: var(--cream); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.tile { position: relative; display: flex; flex-direction: column; padding: 12px 14px 12px 50px; min-height: 84px; color: var(--text); background: var(--paper); border: 3px solid var(--wood); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--paper3), var(--shadow-sm); }
.tile > .ico { position: absolute; left: 12px; top: 14px; width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--wood-dark); background: var(--paper2); border: 1px solid var(--line); box-sizing: border-box; }
.tile.gold > .ico { color: #4a2a10; background: var(--accent2); border-color: var(--accent); }
.tile > span { color: var(--wood); font: 800 11px var(--ui); text-transform: uppercase; letter-spacing: 0.4px; }
.tile > b { font: 600 28px/1.1 var(--display); color: var(--wood-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile > b em { font-style: normal; font-size: 18px; color: var(--muted); }
.tile > small { color: var(--muted); font-size: 12px; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.go .second { padding: 10px 18px; font-weight: 800; color: var(--cream); background: rgba(42, 24, 12, 0.6); border: 2px solid rgba(255, 243, 218, 0.55); border-radius: var(--r); box-shadow: none; }
.go .second:hover { background: rgba(255, 243, 218, 0.12); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4) var(--s5); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: start; font-size: 13px; color: var(--cream2); }
.steps li:before { content: counter(step); grid-row: span 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font: 600 22px var(--display); color: #4a2a10; background: var(--accent2); border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 3px 0 var(--wood-dark); }
.steps b { font: 18px/1.15 var(--display); color: var(--cream); }
.how-note { margin-top: var(--s4); }
.lb-list { position: sticky; top: 0; max-height: calc(100vh - var(--top) - 72px); display: flex; flex-direction: column; padding: var(--s4); animation: card-in 0.5s 0.1s ease-out backwards; }
#entrants { overflow: auto; display: flex; flex-direction: column; gap: 6px; margin: 0 -6px; padding: 0 6px; }
.ccard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--paper2); border: 2px solid transparent; border-radius: var(--r-sm); }
.ccard.bot { background: #f0e2c4; }
.ccard.open { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.ccard.more { justify-content: center; background: transparent; color: var(--muted); font-weight: 700; font-size: 12px; padding: 4px; }
.ccard .slot { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); color: var(--line); }
.ccard .slot .ico { width: 20px; height: 20px; }
.cc-body { flex: 1; min-width: 0; }
.cc-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-sub { color: var(--muted); font-size: 12px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard.open .cc-name { font-weight: 700; }
.sw-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--wood-dark); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 10px; color: var(--muted); }
.st-row { display: grid; grid-template-columns: 24px 1fr 10px; gap: 4px; align-items: center; }
.st-row .sk { font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.st-row b { color: var(--text); text-align: right; }
.pips { display: flex; gap: 2px; }
.pips i { flex: 1; height: 6px; border-radius: 2px; background: #e3cfa6; }
.pips i.on { background: var(--accent); }
#mine-card { padding: var(--s3) var(--s4); animation: card-in 0.4s ease-out; }
.mc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mc-body { flex: 1; min-width: 200px; }
.mc-name { font: 600 24px var(--display); color: var(--wood-dark); }
.mc-state { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 700; }
.mc-state.ok { color: #3f7d2e; } .mc-state.todo { color: var(--ember); }
.mc .ghost { color: var(--muted); font-size: 13px; }

/* the setup form, in three numbered steps */
#setup { padding: var(--s4) 20px 20px; }
#setup.locked .su-steps { opacity: 0.6; pointer-events: none; }
.su-state { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 10px; font: 800 12px var(--ui); white-space: nowrap; }
.su-state.ok { color: #2f5a22; background: #e5f4d9; border: 1px solid var(--good); }
.su-state.dirty { color: #7a4a10; background: #fff1cf; border: 1px solid var(--accent2); }
.su-state.todo { color: var(--ember); background: var(--ember-soft); border: 1px solid var(--ember); }
.su-steps { list-style: none; margin: 0; padding: 0; }
.su-step { padding: var(--s4) 0; border-top: 2px dashed var(--paper3); }
.su-step:first-child { border-top: 0; padding-top: var(--s1); }
.su-h { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s3); }
.su-h > div { display: flex; flex-direction: column; }
.su-h b { font: 600 19px/1.1 var(--display); color: var(--wood-dark); }
.su-h .pill { margin-left: auto; }
.num { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font: 600 20px var(--display); color: #4a2a10; background: var(--accent2); border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 3px 0 var(--wood-dark); }
.su-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.su-look { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.su-look .seg button { min-height: 32px; }
#preview { width: 200px; height: 240px; background: radial-gradient(circle at 50% 72%, #fff6e0, #e8cf9f 70%, #d9b980); border: 3px solid var(--wood); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--paper3); }
.pv { position: relative; }
.pv-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font: 700 13px var(--ui); color: var(--wood); pointer-events: none; }
.su-fields { flex: 1; min-width: 240px; }
#su-name { width: 100%; font-size: 17px; font-weight: 700; padding: 6px 10px; }
.sw-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.sw-lbl { width: 70px; color: var(--wood); font: 800 11px var(--ui); text-transform: uppercase; letter-spacing: 0.4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; box-shadow: none; border: 2px solid rgba(74, 50, 34, 0.25); }
.sw:hover { transform: scale(1.1); }
.sw.on { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--wood-dark); }
.su-stats { display: grid; grid-template-columns: 1fr; gap: 8px; }
.st { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 10px; background: var(--paper2); border-radius: var(--r-sm); }
.st-ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--wood); }
.st-ico .ico { width: 18px; height: 18px; }
.st-txt { display: flex; flex-direction: column; min-width: 0; }
.st-txt b { font-size: 15px; }
.st-ctl { display: flex; align-items: center; gap: 8px; }
.st-ctl .step { width: 32px; height: 32px; padding: 0; font-size: 18px; line-height: 1; }
.st-ctl output { width: 22px; text-align: center; font: 900 20px var(--ui); color: var(--wood-dark); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 160px; height: 10px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #e3cfa6 var(--fill, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent2); border: 3px solid var(--wood-dark); box-shadow: 0 2px 0 var(--wood-dark); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent2); border: 3px solid var(--wood-dark); }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-btn { padding: 3px 12px; border-radius: 14px; font-size: 13px; background: #fffaf0; }
.chip-btn:hover { border-color: var(--accent); }
#su-prompt { font-size: 14px; min-height: 170px; padding: 10px 12px; background: #fffaf0; }
.su-under { display: flex; gap: 8px; align-items: flex-start; }
.su-under .count { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.count.warn { color: var(--ember); font-weight: 800; }
.field-err { color: var(--ember); font-size: 12px; font-weight: 700; min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }
.su-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: var(--s3); border-top: 2px dashed var(--paper3); }
#setup .note { color: var(--muted); }

/* ---------- the match: name tags and bubbles over heads (view.js draws them), the HUD over the 3D view ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.lab { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; will-change: transform; }
.lab .nm { display: inline-block; padding: 0 7px; font: 800 12px/18px var(--ui); -webkit-text-fill-color: var(--text); background: var(--paper-glass); border: 2px solid var(--wood-dark); border-radius: 6px; box-shadow: inset 0 -3px 0 currentColor, 0 2px 0 rgba(42, 24, 12, 0.35); }
.tm { display: inline-block; margin: 0 5px 0 0; padding: 0 4px; border-radius: 4px; font: 800 10px/14px var(--ui); color: #1a1208; -webkit-text-fill-color: #1a1208; vertical-align: 1px; }
.lab .nm .tm { display: inline-block; margin: 0 5px 0 -3px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 14px; -webkit-text-fill-color: #1a1208; vertical-align: 1px; }
.lab.on .nm { font-size: 14px; line-height: 21px; background: var(--accent2); -webkit-text-fill-color: #4a2a10; }
.lab .bub { display: block; width: max-content; max-width: 220px; margin: 0 auto 8px; white-space: normal; background: #fffaf0; color: var(--text); font: 12px/1.35 var(--ui); border: 2px solid var(--wood-dark); border-radius: var(--r); padding: 4px 9px; box-shadow: 0 3px 0 rgba(94, 58, 32, 0.35); position: relative; }
.lab .bub:empty { display: none; }
.lab .bub:after { content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--wood-dark); border-bottom: 0; }
.dmg { position: absolute; left: 0; top: 0; font: 900 17px/1 var(--ui); color: #fff; pointer-events: none; will-change: transform, opacity; transform-origin: 50% 100%;
  text-shadow: -1px -1px 0 #4a3222, 1px -1px 0 #4a3222, -1px 1px 0 #4a3222, 1px 1px 0 #4a3222, 0 2px 0 #4a3222; }
.dmg.big { font-size: 26px; color: var(--gold); }
.dmg.miss { font-size: 14px; color: #e6dfd4; font-style: italic; }
#hud { position: fixed; inset: var(--top) 0 0 0; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: auto; position: absolute; }
#hud > #banner, #hud > #feed, #hud > #caster { pointer-events: none; }
body.noui #hud > :not(#banner):not(#caster), body.noui #topbar, body.noui #labels { display: none; }

/* the contender list, left */
#roster { left: var(--gutter); top: var(--gutter); bottom: 272px; width: 264px; display: flex; flex-direction: column; padding: 10px; gap: 8px; }
#roster .card-head { margin: 0; }
#roster .seg { width: 100%; } #roster .seg button { flex: 1; }
#roster-filter { width: 100%; padding: 5px 10px; background: #fffaf0; }
#roster-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 3px; margin: 0 -4px; padding: 0 4px; }
.rr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: var(--r-sm); cursor: pointer; background: var(--paper2); border: 2px solid transparent; }
.rr:hover { background: #fff6e2; }
.rr.on { border-color: var(--accent); background: #fff1cf; }
.rr.mine { border-color: var(--water); }
.rr.out { opacity: 0.55; filter: grayscale(0.8); background: transparent; }
.rr-mid { min-width: 0; }
.rr .rn { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-out { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.rr .k { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--wood); font-size: 12px; font-variant-numeric: tabular-nums; }
.rr .k .ico { width: 12px; height: 12px; opacity: 0.7; }
.hpbar { height: 5px; margin-top: 3px; background: #e3cfa6; border-radius: 3px; overflow: hidden; }
.hpbar i { display: block; height: 100%; background: var(--good); transition: width 0.3s; }
.hpbar.ok i { background: var(--accent2); } .hpbar.low i { background: var(--accent); } .hpbar.critical i { background: var(--ember); }

/* the map, bottom left */
#mapbox { left: var(--gutter); bottom: var(--gutter); width: 264px; padding: 8px; }
#minimap { display: block; width: 100%; aspect-ratio: 1; border: 2px solid var(--wood-dark); border-radius: var(--r-sm); background: var(--paper2); cursor: crosshair; image-rendering: pixelated; }
.legend { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font: 700 10px var(--ui); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.lg-safe { border: 2px solid #fff3da; background: #8c7b6c; } .lg-next { border: 2px dashed #ff9a3c; } .lg-you { border: 2px solid var(--water); } .lg-on { border: 2px solid var(--accent2); }
body.map-shut #mapbox { display: none; } body.map-shut #roster { bottom: var(--gutter); }
body.roster-shut #roster { display: none; }

/* the kill feed, top right */
#feed { right: var(--gutter); top: var(--gutter); width: 340px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.kf { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px; font-size: 13px; line-height: 1.25; background: var(--paper-glass); border: 2px solid var(--wood); border-right-width: 6px; border-radius: 8px; box-shadow: var(--shadow-sm); animation: feed-in 0.35s ease-out; transition: opacity 1.2s; pointer-events: auto; }
.kf.out { border-right-color: var(--ember); }
.kf.note { border-right-color: var(--line); color: var(--wood-dark); font-weight: 700; }
.kf.ash_warn, .kf.ash_step { border-right-color: var(--ash); background: rgba(232, 224, 214, 0.95); }
.kf.event, .kf.event_warn, .kf.weather, .kf.weather_warn { border-right-color: var(--accent); }
.kf.over { border-right-color: var(--accent2); background: #fff1cf; }
.kf.old { opacity: 0; }
.kn { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; cursor: pointer; box-shadow: inset 0 -3px 0 var(--c); }
.kn.victim { color: var(--muted); }
.kn.mine { color: #1f6f97; }
.kn.cause { cursor: default; box-shadow: none; color: var(--ash-dark); font-style: italic; }
.kw { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--cream); background: var(--wood-dark); }
.kf.out .kw { background: var(--ember); }
.kw .ico { width: 14px; height: 14px; }
.kt { min-width: 0; }
@keyframes feed-in { from { transform: translateX(30px); opacity: 0; } }
body.following #feed .kf:nth-child(n + 4) { display: none; }

/* the big moments, centred */
#banner { left: 50%; top: 18%; transform: translateX(-50%); z-index: 2; width: max-content; max-width: calc(100vw - 32px); }
.bn { display: flex; align-items: center; gap: 16px; padding: 14px 28px 14px 16px; color: var(--cream); background: rgba(94, 58, 32, 0.94); border: 3px solid var(--wood-dark); border-radius: var(--r-lg); box-shadow: 0 6px 0 rgba(42, 24, 12, 0.45), 0 18px 40px rgba(0, 0, 0, 0.3); animation: banner-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); transition: opacity 0.3s, transform 0.3s; }
.bn.leaving { opacity: 0; transform: translateY(-12px); }
.bn-ico { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: #4a2a10; background: var(--accent2); border: 2px solid var(--accent); box-shadow: 0 3px 0 rgba(42, 24, 12, 0.5); }
.bn-ico .ico { width: 28px; height: 28px; }
.bn-t { font: 600 38px/1.05 var(--display); color: var(--gold); text-shadow: 2px 2px 0 var(--wood-dark); }
.bn-s { margin-top: 4px; font: 700 16px var(--ui); color: var(--cream2); }
.bn.out .bn-ico, .bn.duel .bn-ico { color: var(--cream); background: var(--ember); border-color: #ff8a5c; }
.bn.ash { background: rgba(62, 54, 50, 0.95); border-color: #2a2420; }
.bn.ash .bn-ico { color: var(--cream); background: var(--ash); border-color: #a39b94; }
.bn.ash .bn-t { color: #f2ece4; }
.bn.mine.out { background: rgba(122, 42, 24, 0.95); }
.bn.win { padding: 18px 34px 18px 18px; } .bn.win .bn-t { font-size: 52px; }
.bn.duel .bn-t { color: #ffb08a; }
@keyframes banner-in { from { transform: translateY(18px) scale(0.92); opacity: 0; } }
#paused { left: 50%; top: 34%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 14px 22px; color: var(--cream); background: rgba(42, 24, 12, 0.92); border: 3px solid var(--wood-dark); border-radius: var(--r-lg); box-shadow: var(--shadow); }
#paused > .ico { width: 30px; height: 30px; color: var(--accent2); }
#paused b { display: block; font: 600 28px var(--display); color: var(--gold); }
#paused span { color: var(--cream2); }

/* the followed contender's card, bottom right */
#follow { right: var(--gutter); bottom: var(--gutter); width: 372px; max-height: calc(100% - 210px); overflow: auto; padding: 0 12px 12px; animation: card-in 0.3s ease-out; }
.fc-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin: 0 -12px 10px; padding: 12px 8px 10px 12px; border-bottom: 2px solid var(--paper3); border-radius: 7px 7px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, var(--paper)) 0, var(--paper) 70%); box-shadow: inset 5px 0 0 var(--c); }
.fc-head.out { filter: grayscale(0.85); }
.fc-name { display: flex; align-items: center; font: 600 23px/1.1 var(--display); color: var(--wood-dark); white-space: nowrap; }
.fc-name > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .fc-name .yours { flex: none; } /* a long name gives way, the mark stays */
.fc-sub { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-kills { display: grid; justify-items: center; color: var(--wood); line-height: 1; }
.fc-kills b { font: 900 22px var(--ui); color: var(--wood-dark); }
.fc-kills small { font: 800 9px var(--ui); text-transform: uppercase; letter-spacing: 0.4px; }
.fc-x { width: 30px; height: 30px; padding: 0; align-self: start; }
.needs { display: grid; gap: 5px; margin-bottom: 10px; }
.need { display: grid; grid-template-columns: 16px 1fr 28px; align-items: center; gap: 8px; }
.need .ico { width: 15px; height: 15px; }
.need b { text-align: right; font: 900 14px var(--ui); font-variant-numeric: tabular-nums; }
.nb { height: 10px; background: #e3cfa6; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.nb i { display: block; height: 100%; transition: width 0.4s; }
.need.hp .ico { color: var(--bad); } .need.hp i { background: linear-gradient(90deg, #c43f3b, #e2675f); }
.fc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.stance { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 12px; font: 800 12px var(--ui); white-space: nowrap; color: var(--wood-dark); background: var(--paper2); border: 1px solid var(--line); }
.stance.hunt { color: #fff; background: var(--ember); border-color: #a8331c; }
.stance.avoid { color: #fff; background: var(--water); border-color: #2a7aa0; }
.gear { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.gt { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-sm); background: #fffaf0; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.gt .ico { color: var(--t); width: 15px; height: 15px; }
.gt small { color: var(--muted); font-weight: 700; }
.gt.none { color: var(--muted); font-weight: 700; border-style: dashed; background: transparent; }
.gt.none .ico { color: var(--line); }
.pack { display: inline-flex; gap: 3px; align-items: center; padding: 2px 6px; border-radius: var(--r-sm); background: var(--paper2); }
.pk { display: inline-flex; color: var(--t); } .pk .ico { width: 15px; height: 15px; }
.thought { display: flex; gap: 8px; margin: 0 0 8px; padding: 8px 10px; font-style: italic; color: var(--thought); background: #f0ecfb; border-left: 4px solid #8f8fe0; border-radius: var(--r-sm); font-size: 13px; }
.thought .ico { flex: none; margin-top: 2px; color: #8f8fe0; font-style: normal; }
.thought span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.said { display: flex; gap: 8px; margin: 0 0 8px; padding: 6px 10px; font-weight: 700; color: var(--wood-dark); background: #fff3dc; border-left: 4px solid var(--accent); border-radius: var(--r-sm); font-size: 13px; }
.said .ico { flex: none; margin-top: 2px; color: var(--accent); }
.fc-more { width: 100%; justify-content: flex-start; font-size: 12px; }
.fc-extra { display: none; padding-top: 6px; }
body.card-open .fc-extra { display: block; }
.fc-extra .stats { font-size: 11px; margin-bottom: 8px; }
.f-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.f-lines > div { padding: 3px 7px; border-radius: 5px; background: var(--paper2); }
.f-lines .th { font-style: italic; color: var(--thought); background: #f0ecfb; }
.f-lines .say { font-weight: 700; background: #fff3dc; }
.tm { color: var(--muted); font-size: 10px; margin-right: 5px; font-style: normal; font-variant-numeric: tabular-nums; }

/* send a drop: the item tiles, the hint, the total and the wait */
#drop { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--line); }
#drop .card-head { margin-bottom: 8px; }
#drop-wait { display: inline-flex; align-items: center; gap: 4px; }
#drop .fold { display: none; }
#drop-wait .ready { display: inline-flex; align-items: center; gap: 4px; color: #3f7d2e; font-weight: 800; }
.drop-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.di { flex-direction: column; gap: 1px; padding: 6px 2px 4px; min-height: 64px; background: #fffaf0; border-radius: 8px; box-shadow: 0 2px 0 var(--line); }
.di .ico { width: 20px; height: 20px; color: var(--t); }
.di span { font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; color: var(--muted); }
.di b { font: 800 12px var(--ui); color: var(--wood-dark); }
.di.on { background: #fff1cf; border-color: var(--accent); box-shadow: 0 2px 0 var(--accent), 0 0 0 2px var(--accent2); }
.di.dear { opacity: 0.45; }
.drop-hint { position: relative; margin-top: 8px; }
.drop-hint textarea { font-size: 13px; padding-bottom: 18px; background: #fffaf0; }
.drop-hint .count { position: absolute; right: 8px; bottom: 6px; font-size: 10px; }
.drop-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.drop-foot #drop-total b { font: 900 18px var(--ui); color: var(--wood-dark); }
.drop-foot #drop-total b.bad { color: var(--ember); }
#drop-send { margin-left: auto; padding: 6px 18px; font-size: 15px; }
.cool { height: 4px; margin-top: 8px; background: #e3cfa6; border-radius: 2px; overflow: hidden; }
.cool i { display: block; height: 100%; background: var(--good); transition: width 0.9s linear; }
#drop .err:not(:empty) { margin-top: 6px; font-size: 12px; }
#drop > .hint { margin: 6px 0 0; font-size: 11px; }

/* the camera bar, bottom centre: who is on camera, previous / next, your own, the keys */
#cam { left: calc(50% + 142px); bottom: var(--gutter); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; background: var(--paper-glass); border: 3px solid var(--wood); border-radius: var(--r); box-shadow: 0 4px 0 rgba(94, 58, 32, 0.35); }
body.following #cam { left: calc(50% + 142px - 196px); }
.cam-step { width: 36px; height: 36px; padding: 0; }
.cam-mid { display: flex; flex-direction: column; align-items: center; min-width: 190px; padding: 0 6px; line-height: 1.2; }
.cam-who { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; }
.cam-who b { font: 600 17px var(--display); color: var(--wood-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-who .ico { color: var(--accent); }
.cam-who.free .ico { color: var(--muted); }
.cam-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cam-hint kbd { margin: 0 1px; }
.cam-mine { height: 36px; padding: 0 10px 0 4px; border-color: var(--water); box-shadow: 0 2px 0 #2a7aa0; font-size: 13px; }
.cam-keys { width: 36px; height: 36px; padding: 0; }
#keys { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px)); padding: 14px 16px; z-index: 3; }
#keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; align-items: center; }
#keys dt { text-align: right; white-space: nowrap; } #keys dd { margin: 0; }
#phone-bar { display: none; }

/* the caster's caption: a lower third over the camera bar, a wooden "Live" tab and the line on paper, word by word */
#caster { left: calc(50% + 142px); bottom: calc(var(--gutter) + 64px); transform: translateX(-50%); width: max-content; max-width: min(580px, calc(100vw - 720px)); min-width: 300px; z-index: 1; display: flex; align-items: stretch;
  filter: drop-shadow(0 4px 0 rgba(94, 58, 32, 0.35)) drop-shadow(0 10px 18px rgba(42, 24, 12, 0.3)); transition: opacity 0.6s, translate 0.6s; animation: cs-in 0.35s ease-out; }
body.following #caster { left: calc(50% + 142px - 196px); }
#caster.gone { opacity: 0; translate: 0 10px; animation: none; }
.cs-tag { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 10px; color: var(--gold); background: var(--plank); border: 3px solid var(--wood-dark); border-right: 0; border-radius: var(--r) 0 0 var(--r); font: 600 12px var(--display); letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 1px 1px 0 var(--wood-dark); }
.cs-tag .ico { width: 20px; height: 20px; }
.cs-tag span { display: inline-flex; align-items: center; gap: 4px; }
.cs-tag span:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(217, 72, 43, 0.6); animation: on-air 1.4s ease-in-out infinite; }
.cs-text { margin: 0; padding: 8px 16px 9px 14px; min-width: 0; color: var(--text); background: var(--paper-glass); border: 3px solid var(--wood); border-left: 0; border-radius: 0 var(--r) var(--r) 0; box-shadow: inset 5px 0 0 var(--line); font: 700 17px/1.35 var(--ui); }
.cs.hype .cs-tag { background: #7a2a18; border-color: #4a160c; }
.cs.hype .cs-text { box-shadow: inset 5px 0 0 var(--ember); }
.cs.big .cs-text { font-size: 18px; font-weight: 800; color: var(--wood-dark); }
.cs.tense .cs-tag { background: var(--ash-dark); border-color: #2a2420; color: #e8e0d6; }
.cs.tense .cs-text { box-shadow: inset 5px 0 0 var(--ash); font-style: italic; }
.cs .w { opacity: 0; transition: opacity 0.16s; }
.cs .w.on { opacity: 1; }
@keyframes cs-in { from { translate: 0 12px; opacity: 0; } }
@keyframes on-air { 50% { box-shadow: 0 0 0 4px rgba(217, 72, 43, 0); } }

/* ---------- the results: a dark broadcast end screen over the island, one gold accent for the winner ---------- */
#results { position: fixed; inset: var(--top) 0 0 0; z-index: 6; overflow: auto; overscroll-behavior: contain; overflow-x: hidden;
  --rs-text: #ece6dc; --rs-muted: #8e867c; --rs-dim: #5f5952; --rs-line: rgba(236, 230, 220, 0.09); --rs-panel: rgba(236, 230, 220, 0.035);
  --rs-gold: #d8b260; --rs-gold-hi: #f1d58f; --rs-ember: #e0682f; --rs-display: "Barlow Condensed", "Arial Narrow", "Nunito", sans-serif;
  color: var(--rs-text); font: 14px/1.45 var(--ui); }
.rs-wrap { max-width: 1040px; margin: 0 auto; padding: 56px 32px 64px; display: flex; flex-direction: column; gap: 44px; }
.rs-dot { display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: currentColor; opacity: 0.5; vertical-align: middle; }
.rs-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 12px var(--ui); letter-spacing: 2.4px; text-transform: uppercase; color: var(--rs-muted); }
.rs-h::after { content: ""; flex: 1; height: 1px; background: var(--rs-line); }
.rs-h span { color: var(--rs-dim); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.rs-sec { animation: rs-in 0.6s ease-out 0.35s backwards; }
@keyframes rs-in { from { opacity: 0; transform: translateY(10px); } }

.rs-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 8px; animation: rs-in 0.7s ease-out backwards; }
.rs-label { display: flex; align-items: center; gap: 16px; font: 700 13px var(--ui); letter-spacing: 6px; text-transform: uppercase; color: var(--rs-gold); padding-left: 6px; }
.rs-label::before, .rs-label::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--rs-gold)); }
.rs-label::after { transform: scaleX(-1); }
.rs-portrait { display: flex; justify-content: center; margin-top: 26px; }
.rs-portrait .face { background: #2a2622; box-shadow: 0 0 0 2px var(--rs-gold), 0 0 0 8px rgba(216, 178, 96, 0.08), 0 18px 60px rgba(216, 178, 96, 0.18); }
.rs-portrait .face + .face { margin-left: -14px; }
.rs-name { margin: 22px 0 0; max-width: 100%; font: 700 76px/0.95 var(--rs-display); letter-spacing: 1px; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.rs-prize { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-top: 18px; }
.rs-prize span { font: 600 16px var(--ui); letter-spacing: 3px; text-transform: uppercase; color: var(--rs-muted); }
.rs-prize b { font: 700 104px/0.9 var(--rs-display); color: var(--rs-gold); background: linear-gradient(180deg, var(--rs-gold-hi), var(--rs-gold) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.rs-prize.bot b { font-size: 64px; background: none; -webkit-text-fill-color: var(--rs-muted); color: var(--rs-muted); }
.rs-note { margin: 8px 0 0; color: var(--rs-muted); font-size: 15px; }
.rs-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rs-line); font-size: 16px; color: #c9c2b8; font-variant-numeric: tabular-nums; }

.rs-who { display: flex; flex-direction: column; min-width: 0; }
.rs-who b { font: 600 22px/1.1 var(--rs-display); letter-spacing: 0.4px; color: var(--rs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-who small, .rs-who span { color: var(--rs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rs-who span { color: #c9c2b8; font-size: 14px; }
.rs-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rs-line); border: 1px solid var(--rs-line); }
.rs-top li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; background: #151311; }
.rs-top li.win { box-shadow: inset 0 2px 0 var(--rs-gold); }
.rs-top .face { background: #2a2622; box-shadow: none; }
.rs-pl { flex: none; width: 26px; font: 700 34px/1 var(--rs-display); color: var(--rs-dim); font-variant-numeric: tabular-nums; }
.rs-top li.win .rs-pl { color: var(--rs-gold); }

.rs-tiles { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rs-tile { min-width: 0; padding: 14px 16px; background: var(--rs-panel); border-top: 1px solid rgba(236, 230, 220, 0.16); }
.rs-tile dt { font: 600 11px var(--ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--rs-muted); }
.rs-tile dd { margin: 6px 0 0; display: flex; flex-direction: column; min-width: 0; }
.rs-tile b { font: 600 22px/1.15 var(--rs-display); color: var(--rs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tile small { color: var(--rs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.rs-mine { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--rs-panel); border-left: 2px solid var(--rs-ember); }
.rs-mine.won { border-left-color: var(--rs-gold); }
.rs-mine .face { background: #2a2622; box-shadow: none; }
.rs-mine .rs-who { flex: 1; gap: 2px; }
.rs-got { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rs-got span { font: 600 11px var(--ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--rs-muted); }
.rs-got b { font: 700 36px/1 var(--rs-display); color: var(--rs-text); font-variant-numeric: tabular-nums; }
.rs-mine.won .rs-got b { color: var(--rs-gold); }

.rs-tbl { max-height: 560px; overflow-y: auto; overflow-x: hidden; border-top: 1px solid var(--rs-line); }
.rs-tbl table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
.rs-tbl th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #141210; color: var(--rs-dim); font: 600 11px var(--ui); letter-spacing: 1.4px; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--rs-line); }
.rs-tbl td { padding: 7px 12px; border-bottom: 1px solid var(--rs-line); color: #c9c2b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tbl .pl { width: 44px; color: var(--rs-dim); }
.rs-tbl .n { width: 80px; text-align: right; }
.rs-tbl .cause { width: 30%; color: var(--rs-muted); }
.rs-tbl td.nm > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-tbl td.nm span { overflow: hidden; text-overflow: ellipsis; color: var(--rs-text); }
.rs-tbl td.nm small { display: none; }
.rs-tbl td.nm .face { flex: none; background: #2a2622; box-shadow: none; }
.rs-tbl td.nm em { flex: none; font: 700 10px var(--ui); font-style: normal; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rs-ember); }
.rs-tbl tr:hover td { background: rgba(236, 230, 220, 0.03); }
.rs-tbl tr.win td, .rs-tbl tr.win td.pl, .rs-tbl tr.win td.cause { color: var(--rs-gold); }
.rs-tbl tr.win td.nm span { color: var(--rs-gold-hi); font-weight: 700; }
.rs-tbl tr.mine td { background: rgba(224, 104, 47, 0.07); }
.rs-tbl tr.mine td:first-child { box-shadow: inset 2px 0 0 var(--rs-ember); }
.rs-tbl .empty { color: var(--rs-muted); }

.rs-fine { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: -12px 0 0; color: var(--rs-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.rs-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.rs-cta .primary.big { padding: 14px 40px; border: 0; border-radius: 2px; background: var(--rs-gold); color: #17130e; box-shadow: none; font: 700 20px var(--rs-display); letter-spacing: 2px; text-transform: uppercase; }
.rs-cta .primary.big:hover { background: var(--rs-gold-hi); }
.rs-cta .primary.big:active { transform: translateY(1px); box-shadow: none; }
.rs-cta .hint { color: var(--rs-muted); font-size: 14px; }
.rs-cta .hint b { color: var(--rs-text); font-weight: 700; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .lb-wrap { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
  .lb-hero h1 { font-size: 84px; }
  #feed { width: 300px; }
  #follow { width: 340px; }
  body.following #cam { left: calc(50% + 142px - 180px); }
  body.following #caster { left: calc(50% + 142px - 180px); }
  #caster { max-width: min(520px, calc(100vw - 640px)); }
  .cam-hint { display: none; } .cam-mid { min-width: 150px; }
}
@media (max-width: 960px) {
  .lb-wrap { grid-template-columns: 1fr; }
  .lb-list { position: static; max-height: none; }
  #entrants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .tb-stat .lg, .tb-stat.lg, .tb-stat.ev, #me-bar .who { display: none; }
  #roster { width: 230px; } #mapbox { width: 230px; } #roster { bottom: 250px; }
  #cam { left: calc(50% + 125px); }
  body.following #cam { display: none; }
  #caster { left: calc(50% + 125px); max-width: calc(100vw - 290px); min-width: 0; }
  body.following #caster { left: 250px; right: calc(340px + 2 * var(--gutter)); bottom: var(--gutter); transform: none; width: auto; max-width: none; }
}
@media (max-width: 700px) {
  :root { --top: 44px; --gutter: 8px; }
  #topbar { gap: 6px; padding: 0 8px; }
  #topbar .brand { font-size: 18px; }
  body.mode-match #topbar .brand { display: none; }
  .tb-stat { height: 28px; padding: 0 7px; gap: 4px; font-size: 12px; }
  .tb-stat b { font-size: 14px; }
  .tb-stat.ash .lg-inline { display: none; } .tb-stat.ash .sm-inline { display: inline; font: 900 14px var(--ui); }
  body.mode-lobby .tb-stat:nth-child(2) { display: none; }
  #me-bar .tb-btn.small { display: none; }
  body:not(.mode-match):not(.mode-results) #grade { background: linear-gradient(180deg, rgba(42, 24, 12, 0.9), rgba(42, 24, 12, 0.94)); }
  .lb-wrap { padding: 22px 16px 40px; gap: 18px; }
  .lb-main { gap: 18px; }
  .lb-hero h1 { font-size: 60px; text-shadow: 0 2px 0 var(--wood-dark), 0 8px 18px rgba(0, 0, 0, 0.5); }
  .lb-hero .head { margin-top: 14px; font-size: 23px; }
  .lb-hero .lead { font-size: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
  .tile { padding: 10px 10px 10px 44px; min-height: 72px; }
  .tile > .ico { left: 10px; width: 26px; height: 26px; padding: 5px; }
  .tile > b { font-size: 24px; }
  .go .primary.big, .go .second { flex: 1 1 100%; min-height: 50px; }
  #entrants { display: flex; }
  .card { padding: 14px; }
  #setup { padding: 14px; }
  .su-look { width: 100%; }
  .su-fields { min-width: 0; }
  .sw-lbl { width: 100%; }
  .sw { width: 34px; height: 34px; }
  .st { grid-template-columns: 36px minmax(0, 1fr); }
  .st-ctl { grid-column: 1 / -1; }
  .st-ctl input[type="range"] { flex: 1; width: auto; }
  .st-ctl .step { width: 40px; height: 40px; }
  .su-foot .primary.big { flex: 1; }
  .chip-btn { padding: 6px 14px; }
  /* the match: the list and the map open as sheets from the bottom bar; the card is a sheet of its own */
  #roster, #mapbox { display: none; }
  body.roster-open #roster { display: flex; left: 8px; right: 8px; top: 8px; bottom: 64px; width: auto; z-index: 4; }
  body.map-open #mapbox { display: block; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(320px, calc(100vw - 16px)); z-index: 4; }
  #feed { left: 8px; right: 8px; width: auto; }
  .kf { font-size: 12px; padding: 4px 8px; }
  .kf:nth-child(n + 4) { display: none; }
  .kn { max-width: 34vw; }
  #banner { top: 26%; }
  /* with the card up there is no room for both: a banner takes the caption's place while it shows */
  body.following #banner { top: 58px; }
  body.following #hud:has(#banner .bn:not(.leaving)) #caster { opacity: 0; }
  .bn { padding: 10px 16px 10px 10px; gap: 10px; }
  .bn-ico { width: 40px; height: 40px; } .bn-ico .ico { width: 22px; height: 22px; }
  .bn-t { font-size: 26px; } .bn.win .bn-t { font-size: 32px; } .bn-s { font-size: 13px; }
  #phone-bar { display: flex; gap: 6px; left: 8px; bottom: 8px; }
  #phone-bar button { height: 48px; padding: 0 12px; background: var(--paper); border: 3px solid var(--wood); border-radius: var(--r); box-shadow: 0 3px 0 rgba(94, 58, 32, 0.35); font-size: 13px; }
  #phone-bar .ico { width: 18px; height: 18px; }
  #btn-map span { display: none; }
  #cam, body.following #cam { display: flex; left: 120px; right: 8px; bottom: 8px; transform: none; padding: 3px; }
  .cam-mid { flex: 1; min-width: 0; padding: 0 2px; }
  .cam-who { max-width: 100%; }
  .cam-who b { font-size: 14px; } .cam-who .ico { display: none; }
  .cam-step { width: 40px; height: 40px; }
  .cam-keys, .cam-mine span { display: none; }
  .cam-mine { padding: 0 4px; height: 40px; }
  /* the caption over the bottom bar; while the card is up, at the top under the feed */
  #caster, body.following #caster { left: 8px; right: 8px; bottom: 64px; transform: none; width: auto; max-width: none; min-width: 0; }
  body.following #caster { top: 58px; bottom: auto; }
  body.roster-open #caster, body.map-open #caster { display: none; }
  .cs-tag { padding: 4px 7px; font-size: 10px; } .cs-tag .ico { width: 16px; height: 16px; }
  .cs-text, .cs.big .cs-text { padding: 6px 10px 7px 10px; font-size: 14px; }
  #follow { left: 0; right: 0; bottom: 64px; width: auto; max-height: min(56%, calc(100% - 64px - 90px)); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
  .fc-head { padding: 8px 8px 8px 12px; margin-bottom: 8px; } .fc-head .face { width: 40px; height: 40px; } .fc-name { font-size: 20px; }
  .needs { gap: 3px; } .thought { padding: 6px 8px; } .thought span { -webkit-line-clamp: 2; }
  body.following #feed .kf:nth-child(n + 2) { display: none; }
  body.following #feed .kt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one line, so it stays above the caption */
  #phone-bar button span { display: none; }
  #phone-bar button { width: 48px; padding: 0; }
  #drop .card-head { cursor: pointer; margin: 0; }
  #drop .fold { display: inline-flex; margin-left: 6px; transition: transform 0.2s; } #drop.open .fold { transform: rotate(90deg); }
  #drop:not(.open) > :not(.card-head) { display: none; }
  #drop.open .card-head { margin-bottom: 8px; }
  .drop-items { grid-template-columns: repeat(5, 1fr); }
  .di { min-height: 58px; }
  #drop-send { min-height: 44px; }
  .rs-wrap { padding: 32px 16px 44px; gap: 32px; }
  .rs-name { font-size: 48px; } .rs-name.long { font-size: 32px; } /* a 20-letter nickname still fits a line */
  .rs-prize { gap: 10px; }
  .rs-prize b { font-size: 72px; }
  .rs-prize.bot b { font-size: 48px; }
  .rs-label::before, .rs-label::after { width: 32px; }
  .rs-line { font-size: 14px; }
  .rs-top { grid-template-columns: 1fr; }
  .rs-top li { padding: 12px 14px; }
  .rs-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rs-mine { flex-wrap: wrap; padding: 14px 16px; }
  .rs-mine .rs-who { flex-basis: calc(100% - 72px); }
  .rs-got { flex-direction: row; align-items: baseline; gap: 10px; width: 100%; padding-top: 10px; border-top: 1px solid var(--rs-line); }
  .rs-got b { font-size: 28px; }
  .rs-tbl td, .rs-tbl th { padding: 7px 6px; }
  .rs-tbl .pl { width: 30px; }
  .rs-tbl .n { width: 56px; }
  .rs-tbl .cause { display: none; }
  .rs-tbl td.nm small { display: block; margin: 2px 0 0 34px; color: var(--rs-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .rs-cta .primary.big { width: 100%; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- streamer mode (/?stream=1, broadcast.js): a 1920×1080 stage scaled to the window, broadcast graphics in the
   results' dark volcanic look (charcoal glass, one ember accent, gold for the prize), numbers in Barlow Condensed;
   nothing to click, no cursor, calm slides and fades ---------- */
body.stream { --st-text: #ece6dc; --st-muted: #9a9187; --st-dim: #625b54; --st-line: rgba(236, 230, 220, 0.12); --st-glass: rgba(16, 13, 11, 0.84); --st-glass2: rgba(28, 23, 20, 0.9);
  --st-ember: #e0682f; --st-ember-hi: #ff8a4c; --st-gold: #d8b260; --st-gold-hi: #f1d58f; --st-display: "Barlow Condensed", "Arial Narrow", "Nunito", sans-serif; --st-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  background: #0c0b0a; }
body.stream, body.stream * { cursor: none !important; }
body.stream ::-webkit-scrollbar { display: none; }
body.stream #topbar, body.stream #lobby, body.stream #hud, body.stream #toast, body.stream #signin { display: none !important; }
#stage { display: none; }
body.stream #stage { display: block; position: fixed; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--k, 1)); z-index: 8; pointer-events: none; overflow: hidden; color: var(--st-text); font: 600 20px/1.3 var(--ui); }
body.stream:not(.mode-match) :is(#st-bug, #st-top, #st-sting, #st-lower, #feed, #mapbox) { display: none; }
body.stream:not(.mode-lobby) #st-soon { display: none; }
.st-live { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--st-ember-hi); box-shadow: 0 0 0 0 rgba(255, 138, 76, 0.6); animation: st-pulse 1.6s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 138, 76, 0); opacity: 0.75; } }
body.stream .hidden { display: none !important; }

/* the sound chip: only where the browser blocks autoplay; OBS never shows it */
#st-chip { position: absolute; left: 50%; top: 54px; transform: translateX(-50%); pointer-events: auto; cursor: pointer !important; display: inline-flex; gap: 12px; padding: 12px 26px; color: var(--st-text); background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 999px; box-shadow: none; font: 600 22px var(--ui); }
#st-chip .ico { width: 24px; height: 24px; color: var(--st-ember-hi); }

/* the score bug, top left */
#st-bug { position: absolute; left: 96px; top: 54px; display: flex; align-items: stretch; height: 68px; background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 4px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
#st-bug > span { display: flex; align-items: center; padding: 0 20px; border-left: 1px solid var(--st-line); }
#st-bug > span:first-child { border-left: 0; }
.bg-live { gap: 10px; background: var(--st-ember); color: #fff; font: 700 22px var(--st-display); letter-spacing: 2px; text-transform: uppercase; }
.bg-live .st-live { background: #fff; width: 10px; height: 10px; }
.bg-name { font: 700 34px var(--st-display); letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.bg-cell { flex-direction: column; justify-content: center; align-items: flex-start !important; gap: 2px; min-width: 96px; }
.bg-cell small { font: 700 13px var(--ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--st-muted); }
.bg-cell b { font: 700 32px/1 var(--st-display); font-variant-numeric: tabular-nums; color: var(--st-text); }
#st-bug > .bg-cell.left { display: block; height: 66px; line-height: 96px; white-space: nowrap; min-width: 0; } /* one line: the count and "left" share a baseline, level with the other numbers */
.bg-cell.left b { font-size: 42px; color: #fff; }
.bg-cell.left small { font-size: 16px; margin-left: 8px; }
.bg-cell.ash.warn { background: rgba(224, 104, 47, 0.2); box-shadow: inset 0 -3px 0 var(--st-ember); }
.bg-cell.ash.warn b { color: var(--st-ember-hi); animation: st-blink 1s steps(2, jump-none) infinite; }
@keyframes st-blink { 50% { opacity: 0.55; } }
.bg-cell.ash.all b, .bg-cell.ash.final b { font-size: 26px; color: var(--st-ember-hi); }
.bg-cell.prize b { color: var(--st-gold); }
#st-bug > .bg-cell.wx { display: grid; grid-auto-flow: column; grid-template-rows: auto; grid-template-columns: auto auto; column-gap: 12px; align-content: center; }
.bg-cell.wx .ico { grid-row: 1 / span 2; width: 30px; height: 30px; color: var(--st-text); align-self: center; }
.bg-cell.wx b { font-size: 26px; grid-column: 2; }
.bg-cell.wx small { grid-column: 2; }
.bg-cell.paused { justify-content: center; align-items: center !important; background: var(--st-gold); color: #17130e; font: 700 22px var(--st-display); letter-spacing: 2px; text-transform: uppercase; }

/* the kill feed, top right: one dark row per line, newest on top */
body.stream #feed { position: absolute; right: 96px; top: 54px; width: 560px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body.stream #feed .kf:nth-child(n + 6) { display: none; }
body.stream .kf { gap: 12px; padding: 9px 16px; font: 700 22px/1.2 var(--st-display); letter-spacing: 0.4px; color: var(--st-text); background: var(--st-glass); border: 1px solid var(--st-line); border-right: 4px solid var(--st-dim); border-radius: 3px; box-shadow: none; animation: st-feed 0.35s var(--st-ease); }
@keyframes st-feed { from { transform: translateX(24px); opacity: 0; } }
body.stream .kf.out { border-right-color: var(--st-ember); }
body.stream .kf.note { color: var(--st-muted); font-weight: 600; }
body.stream .kf.ash_warn, body.stream .kf.ash_step { background: var(--st-glass); border-right-color: #8a827a; }
body.stream .kf.event, body.stream .kf.event_warn, body.stream .kf.weather, body.stream .kf.weather_warn { border-right-color: var(--st-gold); }
body.stream .kf.over { background: var(--st-glass); border-right-color: var(--st-gold); color: var(--st-gold-hi); }
body.stream .kn { max-width: 220px; box-shadow: inset 0 -3px 0 var(--c); padding-bottom: 1px; }
body.stream .kn.victim { color: var(--st-muted); }
body.stream .kn.cause { color: var(--st-muted); font-style: normal; }
body.stream .kw { width: 30px; height: 30px; background: rgba(236, 230, 220, 0.1); color: var(--st-text); }
body.stream .kf.out .kw { background: var(--st-ember); color: #fff; }
body.stream .kw .ico { width: 17px; height: 17px; }

/* the top five by kills, left under the bug, now and then */
#st-top { position: absolute; left: 96px; top: 150px; width: 380px; padding: 16px 20px 12px; background: var(--st-glass); border: 1px solid var(--st-line); border-top: 3px solid var(--st-gold); border-radius: 3px; opacity: 0; transform: translateX(-24px); transition: opacity 0.35s var(--st-ease), transform 0.35s var(--st-ease); }
#st-top.on { opacity: 1; transform: none; }
.tp-h { display: flex; align-items: center; gap: 10px; font: 700 15px var(--ui); letter-spacing: 2px; text-transform: uppercase; color: var(--st-gold); margin-bottom: 8px; }
#st-top ol { list-style: none; margin: 0; padding: 0; }
#st-top li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--st-line); font: 600 25px/1.1 var(--st-display); }
#st-top li.out { color: var(--st-dim); }
#st-top li i { flex: none; width: 10px; height: 26px; border-radius: 2px; }
.tp-n { width: 18px; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.tp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#st-top li b { font-size: 30px; font-variant-numeric: tabular-nums; color: #fff; }
#st-top li.out b { color: var(--st-dim); }

/* the stingers: one band across the middle, big words, short */
#st-sting { position: absolute; left: 0; right: 0; top: 330px; display: flex; justify-content: center; }
.sg { min-width: 760px; max-width: 1500px; padding: 26px 90px 30px; text-align: center; background: linear-gradient(90deg, rgba(14, 12, 11, 0), rgba(14, 12, 11, 0.9) 18%, rgba(14, 12, 11, 0.9) 82%, rgba(14, 12, 11, 0)); border-top: 2px solid var(--st-ember); border-bottom: 1px solid var(--st-line); animation: st-sting 0.4s var(--st-ease); transition: opacity 0.35s, transform 0.35s; }
.sg.out { opacity: 0; transform: scaleY(0.6); }
@keyframes st-sting { from { opacity: 0; transform: scaleY(0.4); } }
.sg-t { font: 700 112px/0.95 var(--st-display); letter-spacing: 4px; text-transform: uppercase; color: #fff; animation: st-word 0.5s var(--st-ease) 0.08s backwards; }
@keyframes st-word { from { opacity: 0; letter-spacing: 16px; } }
.sg-s { margin-top: 12px; font: 600 30px var(--st-display); letter-spacing: 1.5px; color: var(--st-muted); text-transform: uppercase; }
.sg-s i { font-style: normal; color: var(--st-ember-hi); margin: 0 10px; }
.sg.k-ash { border-top-color: #9a928a; } .sg.k-ash .sg-t { color: #e6dfd6; }
.sg.k-event { border-top-color: var(--st-gold); }
.sg.k-duel { border-top-color: var(--st-ember-hi); } .sg.k-duel .sg-s { color: var(--st-text); font-size: 38px; }
.sg.k-big .sg-t { color: #fff; }
.sg.k-win { border-top-color: var(--st-gold); } .sg.k-win .sg-t { color: var(--st-gold-hi); font-size: 124px; } .sg.k-win .sg-s { color: var(--st-text); }
.sg.k-go .sg-t { font-size: 140px; }

/* the lower thirds, bottom left: the player card or the duel card, the caster's caption always under it */
#st-lower { position: absolute; left: 96px; bottom: 54px; width: 1240px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#st-card { transition: opacity 0.3s var(--st-ease), transform 0.3s var(--st-ease); }
#st-card.out { opacity: 0; transform: translateX(-36px); }
#st-card:empty { display: none; }
.lt { display: flex; flex-direction: column; min-width: 640px; max-width: 1240px; background: var(--st-glass); border: 1px solid var(--st-line); border-left: 6px solid var(--c); border-radius: 3px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.lt-main { padding: 14px 22px 14px; }
.lt-top { display: flex; align-items: baseline; gap: 16px; }
.lt-name { font: 700 50px/1 var(--st-display); letter-spacing: 1px; text-transform: uppercase; color: var(--c); filter: brightness(1.25) saturate(1.1); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.lt-pat { font: 600 22px var(--ui); color: var(--st-muted); }
.lt-place { margin-left: auto; padding: 3px 10px; font: 700 20px var(--st-display); letter-spacing: 1.5px; text-transform: uppercase; color: #17130e; background: var(--st-gold); border-radius: 2px; }
.lt-row, .du-row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.st-hp { position: relative; width: 300px; height: 22px; background: rgba(236, 230, 220, 0.1); border-radius: 2px; overflow: hidden; }
.st-hp i { display: block; height: 100%; background: linear-gradient(90deg, #5fae4c, #8ad06a); transition: width 0.4s var(--st-ease); }
.st-hp.ok i { background: linear-gradient(90deg, #c99a36, #e8c25a); } .st-hp.low i { background: linear-gradient(90deg, #c8642c, #e88a4a); } .st-hp.crit i { background: linear-gradient(90deg, #b8321e, #e2482c); }
.st-hp b { position: absolute; right: 8px; top: 0; font: 700 19px/22px var(--st-display); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); font-variant-numeric: tabular-nums; }
.lt-g { display: inline-flex; align-items: center; gap: 8px; font: 600 24px var(--st-display); letter-spacing: 0.5px; text-transform: capitalize; color: var(--st-text); }
.lt-g .ico { width: 24px; height: 24px; color: var(--t); filter: brightness(1.3); }
.lt-g.none { color: var(--st-muted); }
.lt-k { display: inline-flex; align-items: baseline; gap: 6px; font: 600 20px var(--ui); color: var(--st-muted); }
.lt-k .ico { width: 20px; height: 20px; align-self: center; color: var(--st-ember-hi); }
.lt-k b { font: 700 32px/1 var(--st-display); color: #fff; font-variant-numeric: tabular-nums; }
.lt-th { display: flex; gap: 12px; margin: 0; padding: 12px 22px 14px; background: rgba(236, 230, 220, 0.05); border-top: 1px solid var(--st-line); font: italic 600 25px/1.35 var(--ui); color: #f3eee6; max-width: 1220px; }
.lt-th .ico { flex: none; width: 26px; height: 26px; margin-top: 3px; color: #b9a6ff; }
.duel { display: flex; align-items: stretch; background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 3px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.du-side { width: 500px; padding: 14px 22px 16px; border-left: 6px solid var(--c); }
.du-side.r { border-left: 0; border-right: 6px solid var(--c); text-align: right; }
.du-side.r .du-row { justify-content: flex-end; }
.du-side.r .st-hp { margin-left: auto; transform: scaleX(-1); } .du-side.r .st-hp b { transform: scaleX(-1); right: auto; left: 8px; }
.du-name { font: 700 44px/1.05 var(--st-display); letter-spacing: 1px; text-transform: uppercase; color: var(--c); filter: brightness(1.25); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-side .st-hp { width: 100%; }
.du-vs { display: flex; align-items: center; padding: 0 22px; font: 700 54px var(--st-display); color: var(--st-ember-hi); background: rgba(224, 104, 47, 0.1); border-left: 1px solid var(--st-line); border-right: 1px solid var(--st-line); }

/* the caster's caption: a dark lower third, the words coming in with the voice */
body.stream #caster { position: relative; left: auto; bottom: auto; transform: none; width: max-content; min-width: 520px; max-width: 1240px; filter: none; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
body.stream #caster.gone { display: none; }
body.stream .cs-tag { padding: 8px 16px; gap: 6px; color: #fff; background: var(--st-ember); border: 0; border-radius: 3px 0 0 3px; font: 700 18px var(--st-display); letter-spacing: 2px; text-shadow: none; }
body.stream .cs-tag .ico { width: 26px; height: 26px; }
body.stream .cs-tag span:before { background: #fff; }
body.stream .cs-text { padding: 14px 24px 15px; color: var(--st-text); background: var(--st-glass2); border: 1px solid var(--st-line); border-left: 0; border-radius: 0 3px 3px 0; box-shadow: none; font: 600 28px/1.35 var(--ui); }
body.stream .cs.big .cs-text { color: #fff; font-size: 30px; font-weight: 700; }
body.stream .cs.tense .cs-tag { background: #4a433e; color: #f2ece4; }
body.stream .cs.tense .cs-text { box-shadow: none; }
body.stream .cs.hype .cs-tag { background: var(--st-ember); }
body.stream .cs.hype .cs-text { box-shadow: none; }

/* the minimap, bottom right */
body.stream #mapbox { position: absolute; left: auto; right: 96px; bottom: 54px; width: 300px; padding: 6px; background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 3px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
body.stream #minimap { border: 0; border-radius: 2px; background: #1a1614; }
body.stream #mapbox .legend { display: none; }

/* the name tags over the island, in the stream's look */
body.stream .lab .nm { padding: 1px 9px; font: 700 15px/22px var(--st-display); letter-spacing: 0.6px; -webkit-text-fill-color: #f3eee6; background: rgba(16, 13, 11, 0.78); border: 0; border-radius: 2px; box-shadow: inset 0 -3px 0 currentColor; }
body.stream .lab.on .nm { font-size: 19px; line-height: 26px; background: rgba(16, 13, 11, 0.9); -webkit-text-fill-color: #fff; }
body.stream .lab .bub { max-width: 280px; color: var(--st-text); background: rgba(16, 13, 11, 0.86); border: 1px solid var(--st-line); border-radius: 3px; box-shadow: none; font: 600 15px/1.35 var(--ui); }
body.stream .lab .bub:after { border-top-color: rgba(16, 13, 11, 0.86); }

/* Starting soon: the game, the countdown, the money, the contenders scrolling by, over the island's map */
body.stream.mode-lobby #grade { background: radial-gradient(ellipse 60% 70% at 18% 40%, rgba(12, 10, 9, 0.9), rgba(12, 10, 9, 0.55) 70%), linear-gradient(0deg, rgba(12, 10, 9, 0.85), rgba(12, 10, 9, 0) 40%); }
body.stream.mode-lobby #backdrop { filter: saturate(0.5) brightness(0.55) blur(1px); }
#st-soon { position: absolute; inset: 0; }
.ss-wrap { position: absolute; left: 140px; top: 120px; width: 1640px; }
.ss-eyebrow { display: flex; align-items: center; gap: 14px; font: 700 26px var(--st-display); letter-spacing: 6px; text-transform: uppercase; color: var(--st-ember-hi); }
.ss-name { margin: 6px 0 0 -6px; white-space: nowrap; font: 700 180px/0.9 var(--st-display); letter-spacing: 6px; text-transform: uppercase; color: #fff; text-shadow: 0 10px 50px rgba(224, 104, 47, 0.25); }
.ss-tag { margin: 18px 0 0; font: 600 30px/1.35 var(--ui); color: #d8d0c6; max-width: 1100px; }
.ss-when { display: flex; flex-direction: column; margin-top: 56px; padding-left: 26px; border-left: 4px solid var(--st-ember); }
.ss-when span { font: 700 24px var(--ui); letter-spacing: 3px; text-transform: uppercase; color: var(--st-muted); }
.ss-when b { font: 700 180px/0.95 var(--st-display); color: #fff; font-variant-numeric: tabular-nums; }
.ss-when em, .ss-tile em { font-style: normal; color: var(--st-dim); font-size: 0.55em; }
.ss-when.wait b { font-size: 140px; }
.ss-when .ss-wx { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font: 700 34px var(--st-display); letter-spacing: 2px; color: var(--st-text); }
.ss-when .ss-wx .ico { width: 38px; height: 38px; }
.ss-tiles { display: flex; gap: 18px; margin-top: 48px; }
.ss-tile { width: 300px; padding: 18px 24px 20px; background: var(--st-glass); border: 1px solid var(--st-line); border-top: 2px solid rgba(236, 230, 220, 0.25); border-radius: 3px; }
.ss-tile span { display: block; font: 700 16px var(--ui); letter-spacing: 2px; text-transform: uppercase; color: var(--st-muted); }
.ss-tile b { display: block; margin-top: 6px; font: 700 72px/1 var(--st-display); color: #fff; font-variant-numeric: tabular-nums; }
.ss-tile.gold { border-top-color: var(--st-gold); } .ss-tile.gold b { color: var(--st-gold); }
.ss-tile.last b { font-size: 46px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.ss-tile small { display: block; margin-top: 6px; font: 600 18px var(--ui); color: var(--st-muted); }
.ss-meter { height: 6px; margin-top: 12px; background: rgba(236, 230, 220, 0.1); border-radius: 3px; overflow: hidden; }
.ss-meter i { display: block; height: 100%; background: var(--st-ember); transition: width 0.6s var(--st-ease); }
.ss-strip { position: absolute; left: 0; right: 0; bottom: 54px; height: 76px; overflow: hidden; background: rgba(12, 10, 9, 0.82); border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); display: flex; align-items: center; }
.ss-strip.empty { justify-content: center; font: 600 26px var(--st-display); letter-spacing: 2px; text-transform: uppercase; color: var(--st-muted); }
.ss-run { display: flex; width: max-content; animation: st-run linear infinite; }
@keyframes st-run { to { transform: translateX(-50%); } }
.ss-who { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 40px; border-right: 1px solid var(--st-line); white-space: nowrap; }
.ss-who i { width: 14px; height: 14px; border-radius: 50%; align-self: center; }
.ss-who b { font: 700 32px var(--st-display); letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.ss-who small { font: 600 20px var(--ui); color: var(--st-muted); }

/* the results on the stage: the hero, the top three and the highlights, big, then back to Starting soon */
body.stream #results { position: absolute; inset: 0; overflow: hidden; z-index: 1; font-size: 20px; }
body.stream #results .st-hide, body.stream #results .rs-cta button, body.stream #results .rs-fine { display: none; }
body.stream .rs-wrap { max-width: 1500px; padding: 54px 96px; gap: 30px; }
body.stream .rs-portrait { margin-top: 16px; }
body.stream .rs-name { margin-top: 14px; font-size: 120px; }
body.stream .rs-prize { margin-top: 6px; }
body.stream .rs-prize b { font-size: 132px; }
body.stream .rs-prize.bot b { font-size: 84px; }
body.stream .rs-line { margin-top: 14px; padding-top: 14px; }
body.stream .rs-cta { padding-top: 0; }
body.stream .rs-label { font-size: 20px; }
body.stream .rs-line, body.stream .rs-note { font-size: 24px; }
body.stream .rs-h { font-size: 16px; }
body.stream .rs-who b, body.stream .rs-tile b { font-size: 32px; }
body.stream .rs-who small, body.stream .rs-tile small { font-size: 18px; }
body.stream .rs-tile dt { font-size: 14px; }
body.stream .rs-pl { font-size: 48px; width: 36px; }
body.stream .rs-cta .hint { font-size: 26px; color: var(--st-text); }
body.stream .rs-cta .hint b { color: var(--st-gold); font-family: var(--st-display); font-size: 34px; }
