/* Harvest Blight (web/hb/*): dark harvest theme shared by every page. */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0c0906;
  --bg2: #15100a;
  --panel: rgba(28, 20, 12, 0.92);
  --panel2: rgba(40, 28, 16, 0.9);
  --line: rgba(240, 162, 74, 0.22);
  --line-strong: rgba(240, 162, 74, 0.55);
  --amber: #f0a24a;
  --gold: #f6c56d;
  --ember: #ff8a2a;
  --parchment: #f1e4c6;
  --muted: #b3a283;
  --dim: #7d6f58;
  --rust: #b8532b;
  --forest: #4f7a4a;
  --forest-glow: #8fd27a;
  --danger: #e2674f;
  --ok: #9ad07f;
  --caps: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --display: var(--serif);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
  --glow: 0 0 0 1px var(--line-strong), 0 0 28px rgba(255, 138, 42, 0.28);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--parchment);
  font: 16px/1.4 var(--body);
  background:
    radial-gradient(ellipse 120% 60% at 50% 115%, rgba(255, 120, 30, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% -10%, rgba(240, 162, 74, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 40%, #1a120a 0%, #0c0906 75%) fixed,
    var(--bg);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden, [hidden] { display: none !important; }

/* ---- type --------------------------------------------------------------- */
.display { font-family: var(--display); letter-spacing: 0.06em; font-weight: 600; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand svg { flex: none; filter: drop-shadow(0 0 8px rgba(255, 150, 40, 0.55)); }
.brand-name { font-family: var(--caps); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: #f3e2c2; white-space: nowrap; text-shadow: 0 0 14px rgba(255, 150, 40, 0.25); }
.brand-sub { font-family: var(--caps); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: #c9b08a; margin-top: 5px; white-space: nowrap; }
.eyebrow { font-family: var(--caps); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #cdb28a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; margin: 0; color: #f6dcae; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- surfaces ----------------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, rgba(48, 32, 18, 0.55), rgba(20, 14, 8, 0.85)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.05), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.panel.glow { box-shadow: 0 0 0 1px rgba(240, 162, 74, 0.35), 0 0 30px rgba(255, 138, 42, 0.16), 0 14px 44px rgba(0, 0, 0, 0.55); }
.pad { padding: 18px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 16px 0; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(70, 46, 24, 0.85), rgba(36, 24, 13, 0.95));
  color: var(--parchment);
  border-radius: 12px;
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { box-shadow: 0 0 18px rgba(255, 138, 42, 0.25); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn.primary {
  background: linear-gradient(180deg, #f7b45a, #d9741f);
  color: #1d0f04;
  border-color: #ffd08a;
  box-shadow: 0 0 22px rgba(255, 138, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(255, 230, 190, 0.4);
}
.btn.ghost { background: transparent; }
/* The mockup's main call to action: dark fill, glowing orange outline and text. */
.btn.outline { background: linear-gradient(180deg, rgba(60, 30, 10, 0.85), rgba(25, 12, 4, 0.95)); border: 1.5px solid #ff9a3c; color: #ffc27a; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 0 18px rgba(255, 138, 42, 0.45), inset 0 0 12px rgba(255, 138, 42, 0.15); text-shadow: 0 0 10px rgba(255, 150, 40, 0.5); }
.k-enter.btn, .btn.k-enter { background: linear-gradient(180deg, rgba(60, 28, 8, 0.85), rgba(20, 10, 4, 0.92)); border: 1.5px solid #ff9a3c; color: #ffc27a; box-shadow: 0 0 26px rgba(255, 138, 42, 0.55), inset 0 0 14px rgba(255, 138, 42, 0.2); text-shadow: 0 0 12px rgba(255, 150, 40, 0.7); animation: hb-pulse 2.6s infinite; }
.btn.danger { border-color: rgba(226, 103, 79, 0.7); background: linear-gradient(180deg, rgba(120, 36, 22, 0.9), rgba(70, 20, 12, 0.95)); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---- forms -------------------------------------------------------------- */
label.field { display: block; }
label.field > span { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 7, 4, 0.8);
  padding: 10px 14px;
  font-size: 17px;
  color: var(--parchment);
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 197, 109, 0.2); }
.input.parchment { background: linear-gradient(180deg, #f3e3bf, #e3cb97); color: #2a1a0b; border-color: #f6c56d; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--amber); }

/* ---- chips & stats ------------------------------------------------------ */
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--parchment); background: rgba(0, 0, 0, 0.3); }
.chip.ok { border-color: rgba(143, 210, 122, 0.6); color: var(--forest-glow); }
.chip.warn { border-color: rgba(226, 103, 79, 0.7); color: #ffb3a3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.stat { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.stat b { display: block; font-size: 30px; font-family: var(--caps); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: #f6dcae; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.stat.hot b { color: #ff9a7f; }

.timer-badge { border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 16px; text-align: center; background: rgba(10, 7, 4, 0.7); min-width: 104px; box-shadow: 0 0 16px rgba(255, 138, 42, 0.18); }
.timer-badge small { display: block; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.timer-badge b { font-family: var(--caps); font-size: 26px; font-variant-numeric: lining-nums tabular-nums; font-weight: 600; color: #f6dcae; letter-spacing: 0.04em; }
.timer-badge.paused b { color: var(--gold); }

/* ---- toasts & banners --------------------------------------------------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { background: rgba(20, 13, 7, 0.96); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; box-shadow: var(--glow); animation: hb-in 0.25s ease; }
.toast.bad { border-color: rgba(226, 103, 79, 0.8); }
.banner { padding: 10px 16px; text-align: center; font-weight: 600; }
.banner.offline { background: linear-gradient(90deg, #6e1f12, #a33a1f, #6e1f12); color: #fff3e6; }
.banner.paused { background: linear-gradient(90deg, #3d2a0d, #7a5313, #3d2a0d); }
.banner.notice { background: linear-gradient(90deg, rgba(60, 38, 14, 0.95), rgba(110, 66, 20, 0.95), rgba(60, 38, 14, 0.95)); }

/* ---- modal -------------------------------------------------------------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 3, 2, 0.78); display: grid; place-items: center; z-index: 40; padding: 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; }

/* ---- tables ------------------------------------------------------------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #1a120a; }
table.grid td { padding: 8px; border-bottom: 1px solid rgba(240, 162, 74, 0.08); vertical-align: middle; }
table.grid tr:hover td { background: rgba(240, 162, 74, 0.04); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.tag.h { background: rgba(79, 122, 74, 0.35); color: #c5ecb3; }
.tag.b { background: rgba(184, 83, 43, 0.35); color: #ffc0a6; }
.tag.n { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* ---- motion ------------------------------------------------------------- */
@keyframes hb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hb-rise { from { transform: translateY(8px); } to { transform: none; } }
@keyframes hb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 150, 40, 0.0); } 50% { box-shadow: 0 0 34px 6px rgba(255, 150, 40, 0.35); } }
@keyframes hb-spin { to { transform: rotate(360deg); } }
.gold-ring { display: block; transform-origin: 50% 50%; filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.55)); }
.gold-ring svg { display: block; overflow: visible; }
@keyframes hb-flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.86; } 55% { opacity: 0.95; } }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---- simple pages (lobby, cards, sim) ------------------------------------ */
.page { width: min(1100px, 100%); margin: 0 auto; padding: 20px 16px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 20px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hero { position: relative; overflow: hidden; text-align: center; padding: 34px 16px 30px; border-radius: 18px; margin-bottom: 18px; border: 1px solid var(--line); box-shadow: 0 0 30px rgba(255, 138, 42, 0.15); }
.hero > .scene { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(8, 5, 3, 0.6), rgba(8, 5, 3, 0.2)); }
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; }
.hero-title { font-size: clamp(40px, 7vw, 72px) !important; }
.hero p { text-shadow: 0 1px 8px #000; color: #ecdcc0 !important; font-family: var(--serif); font-size: 19px; }
.hero h1 { font-size: clamp(40px, 8vw, 72px); line-height: 1; letter-spacing: 0.08em; text-shadow: 0 0 30px rgba(255, 140, 40, 0.35); }
.hero p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.game-list { display: grid; gap: 10px; }
.game-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.game-item .links { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.18em; color: var(--gold); }
details.more summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .brand-name { font-size: 22px; } .brand-sub { letter-spacing: 0.2em; } }

/* ---- kiosk (follows the design mockup) ------------------------------------ */
body.kiosk { overflow: hidden; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
body.kiosk input { user-select: text; -webkit-user-select: text; }
.scene { display: block; width: 100%; height: 100%; }

.k-launch { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; text-align: center; overflow: hidden; }
.k-launch > .scene { position: absolute; inset: 0; }
.k-launch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(8, 5, 3, 0.55), transparent 75%), linear-gradient(180deg, rgba(5, 3, 2, 0.15), rgba(5, 3, 2, 0.35)); pointer-events: none; }
.k-launch-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 26px 40px 30px; }
.k-launch-inner .emblem { margin-bottom: -8px; }
.k-launch-title { font-family: var(--caps); font-weight: 700; font-size: clamp(54px, 9vw, 104px); line-height: 0.98; letter-spacing: 0.05em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffe2a8 10%, #f6a743 55%, #c1621c 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 140, 40, 0.55)) drop-shadow(0 3px 0 rgba(60, 25, 5, 0.9)); }
.k-launch-sub { font-family: var(--caps); font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; color: #e9d6b4; margin-top: 6px; text-shadow: 0 2px 8px #000; }
.k-enter { margin-top: 22px; min-width: 250px; min-height: 58px; font-family: var(--caps); font-size: 19px; letter-spacing: 0.2em; }
.k-launch-note { margin: 10px 0 0; font-size: 13px; color: #cbb796; text-shadow: 0 1px 6px #000; }
.k-connect { width: min(420px, 100%); text-align: left; position: relative; z-index: 1; }
.k-err { color: #ffab98; margin: 0; }

.k-shell { position: relative; height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); gap: 10px; }
.k-shell > * { position: relative; z-index: 1; }
.k-backdrop { position: fixed !important; inset: 0; z-index: 0 !important; opacity: 0.5; pointer-events: none; }
.k-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(10, 7, 4, 0.55), rgba(10, 7, 4, 0.85)); }
.k-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.k-stage-label { text-align: center; font-family: var(--caps); font-size: 18px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 14px rgba(255, 150, 40, 0.4); }
.k-banners { display: grid; gap: 6px; }
.k-banners .banner { border-radius: 10px; }
.k-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 27%); gap: 10px; min-height: 0; }
.k-game { display: grid; grid-template-rows: 1fr auto; gap: 14px; padding: 16px; min-height: 0; }
.k-scan { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 18px; min-height: 0; align-items: stretch; }
.k-cam { display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px; align-content: start; }
/* Harvest-styled camera window (owner, 2026-10-27: smaller, no green tech lines):
   a warm double gold frame, amber corner brackets and an ember scan glow. */
.k-cam-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a1a0e, #070402); border: 2px solid #c8892f; outline: 1px solid rgba(255, 200, 120, 0.35); outline-offset: 3px; box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 190, 110, 0.25), 0 0 20px rgba(255, 138, 42, 0.25); }
.k-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-corners { position: absolute; inset: 14%; pointer-events: none; }
.k-corners i { position: absolute; width: 22%; height: 22%; border: 3px solid #ffb347; filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.85)); }
.k-corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.k-corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.k-corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.k-corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.k-hint { font-size: 13px; color: #d8c6a4; text-align: center; }
.k-cam-status { color: var(--muted); }
.k-cam-status.ok { color: var(--forest-glow); }
.k-cam-status.bad { color: #ffab98; }
.k-cam-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; align-self: start; }

.k-status { display: grid; place-items: center; text-align: center; min-height: 0; overflow: auto; }
/* README timings. Mode change: 180–250 ms fade/slide (never fully transparent, so a throttled frame stays readable). */
.k-status-inner { display: grid; justify-items: center; gap: 10px; width: min(520px, 100%); animation: hb-mode 0.22s ease-out; }
@keyframes hb-mode { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* First card accepted: 250 ms neutral glow. */
.k-status-inner.step-first { animation: hb-mode 0.22s ease-out, hb-neutral 0.25s ease-out; }
@keyframes hb-neutral { from { filter: drop-shadow(0 0 0 rgba(255, 190, 110, 0)); } 50% { filter: drop-shadow(0 0 18px rgba(255, 190, 110, 0.7)); } to { filter: none; } }
/* Exchange complete: 600 ms neutral confirmation (identical for every outcome). */
.k-status-inner.step-done .k-success, .k-status-inner.step-done .k-potion { animation: hb-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
/* Scanner acquisition: 160 ms outline pulse. */
.k-cam-frame.acquire { animation: hb-acquire 0.16s ease-out; }
.k-cam-frame.acquire .k-corners i { border-color: #ffe0a0; }
@keyframes hb-acquire { from { box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(255, 196, 90, 0.95), 0 0 28px rgba(255, 160, 50, 0.8); } to { box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 138, 42, 0.25); } }
/* Round bell: full-screen atmospheric transition (BELL_MS in kiosk.js), then the break summary. */
.k-bell-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #0a0604; animation: hb-fadein 0.35s ease-out; transition: opacity 0.5s ease; }
.k-bell-overlay > .scene { position: absolute; inset: 0; opacity: 0.85; }
.k-bell-overlay.out { opacity: 0; }
.k-bell-overlay-inner { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.k-bell-overlay-title { font-family: var(--caps); font-weight: 700; font-size: clamp(38px, 6vw, 70px); text-transform: uppercase; letter-spacing: 0.05em; background: linear-gradient(180deg, #ffe2a8 10%, #f6a743 60%, #c1621c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 140, 40, 0.6)); }
@keyframes hb-fadein { from { opacity: 0; } to { opacity: 1; } }
.k-break-scene { position: relative; width: min(420px, 100%); height: 170px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); box-shadow: 0 0 26px rgba(255, 138, 42, 0.2); }
.k-break-scene > .scene { position: absolute; inset: 0; }
.k-break-scene .k-bell { position: relative; }
.k-gotit { min-width: 200px; font-family: var(--serif); font-size: 20px; }
.k-status-inner .input { max-width: 380px; }
.k-title { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.05; letter-spacing: 0.01em; color: #ffd9a0; text-shadow: 0 0 22px rgba(255, 140, 40, 0.35); }
.k-title.big { font-size: 46px; }
.k-sub { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: #ecdcc0; max-width: 440px; }
.row.center { justify-content: center; flex-wrap: wrap; }
.k-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: radial-gradient(circle, rgba(255, 150, 40, 0.2), rgba(0, 0, 0, 0.35)); color: var(--gold); box-shadow: 0 0 22px rgba(255, 140, 40, 0.25); }
.k-icon.error { border-color: rgba(226, 103, 79, 0.8); color: #ff9a85; background: radial-gradient(circle, rgba(226, 103, 79, 0.22), rgba(0, 0, 0, 0.3)); box-shadow: 0 0 22px rgba(226, 103, 79, 0.3); }
.k-icon.ok { border-color: rgba(143, 210, 122, 0.7); color: var(--forest-glow); }
.k-icon.cure { color: #ff6b5a; }
.k-cardframe { position: relative; width: 150px; height: 112px; display: grid; place-items: center; color: #f6c56d; border-radius: 12px; background: radial-gradient(circle, rgba(255, 150, 40, 0.18), transparent 70%); }
.k-cardframe .k-corners { inset: 0; }
.k-cardframe .ic { filter: drop-shadow(0 0 10px rgba(255, 150, 40, 0.7)); }
.k-ready { filter: drop-shadow(0 0 10px rgba(255, 150, 40, 0.5)); }
.ornament { display: block; margin: 2px auto; filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.5)); }
.k-success { animation: hb-pop 0.6s ease; }
.k-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 10px; font-weight: 600; }
.k-pill.ok { border: 1.5px solid rgba(127, 227, 106, 0.7); color: #b8f0a6; background: rgba(40, 70, 30, 0.35); box-shadow: 0 0 16px rgba(127, 227, 106, 0.25); }
.k-bell { filter: drop-shadow(0 0 22px rgba(255, 170, 60, 0.55)); animation: hb-swing 2.4s ease-in-out infinite; transform-origin: 50% 12%; }
.k-bellstats { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 10px; width: 100%; }
.k-next { display: grid; gap: 2px; justify-items: center; font-family: var(--serif); font-size: 18px; color: #ecdcc0; }
.k-next b { font-family: var(--caps); font-size: 36px; color: #ffd9a0; letter-spacing: 0.06em; }
.k-potion { filter: drop-shadow(0 0 18px rgba(255, 120, 50, 0.55)); }
.k-potion.green { filter: drop-shadow(0 0 22px rgba(127, 227, 106, 0.6)); animation: hb-pop 0.6s ease; }
.k-steps { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.k-step { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 20px var(--serif); border: 2px solid var(--line-strong); color: var(--muted); }
.k-step.on { border-color: #ff9a3c; color: #ffd08c; box-shadow: 0 0 18px rgba(255, 138, 42, 0.65), inset 0 0 10px rgba(255, 138, 42, 0.3); }
.k-step.done { border-color: #7fe36a; color: #7fe36a; box-shadow: 0 0 14px rgba(127, 227, 106, 0.5); }
.k-step-arrow { color: #d8b47a; display: grid; }
.k-countdown { min-width: 52px; justify-content: center; }
.k-pin { max-width: 220px !important; text-align: center; letter-spacing: 0.3em; }
.k-reveal { display: grid; justify-items: center; gap: 8px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.45); width: min(460px, 100%); box-shadow: 0 0 28px rgba(255, 140, 40, 0.2); }
.k-reveal-role { font-family: var(--serif); font-weight: 600; font-size: 34px; color: #ffd9a0; }
.k-reveal-text { margin: 0; font-family: var(--serif); color: var(--parchment); font-size: 18px; max-width: 380px; }
.k-rule-title { font-family: var(--caps); color: var(--amber); letter-spacing: 0.08em; }

.k-modes { display: grid; grid-template-columns: 1.25fr 1fr 1fr 0.75fr; gap: 12px; }
.k-mode { min-height: 92px; border-radius: 14px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(48, 32, 18, 0.92), rgba(18, 12, 7, 0.96)); color: var(--parchment); display: grid; place-items: center; align-content: center; gap: 6px; font-family: var(--serif); font-size: 21px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06); }
.k-mode-icon { display: grid; color: #f6a743; filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.5)); }
.k-mode-icon.cure { color: #ff5d4d; filter: drop-shadow(0 0 6px rgba(255, 80, 60, 0.6)); }
.k-mode-icon.role { color: #e8c98a; }
.k-mode.small { font-size: 17px; }
.k-mode.on { background: linear-gradient(180deg, #f7a94e 0%, #d8691c 100%); color: #fff6e6; border-color: #ffd08a; box-shadow: 0 0 30px rgba(255, 138, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: 0 1px 2px rgba(80, 30, 0, 0.6); }
.k-mode.on .k-mode-icon { color: #fff6e6; filter: none; }
.k-footer-right { gap: 8px; align-items: center; }
.k-foot-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 7, 4, 0.6); color: #cdb28a; font-size: 13px; }
.k-foot-btn:hover, .k-foot-btn:focus-visible { color: var(--gold); border-color: var(--line-strong); }
.k-need { font-family: var(--caps); font-size: 17px; letter-spacing: 0.04em; color: #ffd9a0; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10, 7, 4, 0.55); }
.k-need.ok { color: #c9f5b8; border-color: rgba(143, 210, 122, 0.6); }
.k-timer-wrap { display: grid; justify-items: center; gap: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.k-timer-wrap:active { transform: scale(0.97); }
.timer-next { font-size: 10px; letter-spacing: 0.06em; color: rgba(201, 176, 138, 0.75); white-space: nowrap; }
.timer-next:empty { display: none; }
/* The DJ panel on the kiosk only when a host shows it. Moved off screen, not
   removed, so the YouTube player keeps playing; the game gets the room. */
.k-dj:not(.show-dj) { position: fixed; left: -10000px; top: 0; width: 320px; }
.k-main:has(> .k-dj:not(.show-dj)) { grid-template-columns: minmax(0, 1fr); }
.banner.fade-out { animation: hb-fade-late 15s ease forwards; }
@keyframes hb-fade-late { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.k-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.k-print { display: inline-flex; align-items: center; gap: 6px; font-family: var(--caps); letter-spacing: 0.12em; text-decoration: none; font-size: 14px; }
.k-demand { font-family: var(--serif); font-size: 17px; color: #ecdcc0; }
@keyframes hb-pop { 0% { transform: scale(0.75); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes hb-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---- DJ ------------------------------------------------------------------- */
.k-dj { padding: 14px; overflow: auto; min-height: 0; }
.dj { display: grid; gap: 10px; }
.dj-head { display: flex; justify-content: space-between; align-items: center; }
.dj-label { font-family: var(--caps); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: #e9d3ac; }
.dj-label.sub { font-size: 11px; color: #b89d74; margin-top: 4px; }
/* Art banner, or the YouTube player (200 px tall: YouTube's minimum player size). */
.dj-hero { position: relative; border-radius: 12px; overflow: hidden; height: 150px; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); background: #000; transition: height 0.25s ease; }
.dj-hero .scene { position: absolute; inset: 0; }
.dj-hero.video { height: 200px; min-width: 200px; }
.dj-hero.video .scene, .dj-hero.video .dj-hero-text { display: none; }
.dj-hero-text { position: absolute; left: 12px; right: 12px; bottom: 10px; text-shadow: 0 2px 8px #000; }
.dj-mix { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff1d6; }
.dj-mix-sub { font-size: 12px; color: #e0c69c; }
.dj-yt { position: absolute; inset: 0; visibility: hidden; }
.dj-hero.video .dj-yt { visibility: visible; }
.dj-yt iframe { width: 100%; height: 100%; display: block; border: 0; }
.dj-times { justify-content: space-between; margin-top: -6px; }
.dj-vols { display: grid; gap: 6px; }
.dj-vol-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d8bf96; min-width: 92px; }
.dj-art { border-radius: 8px; overflow: hidden; flex: none; position: relative; background: #120b06; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.dj-art img, .dj-art .scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-art-yt { display: grid; place-items: center; width: 100%; height: 100%; color: #ff4e45; }
.dj-title { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.15; color: #fff1d6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dj-artist { font-size: 13px; color: #c6ad86; }
.dj-time { font-size: 12px; color: #b89d74; font-variant-numeric: tabular-nums; }
.dj-seek, .dj-vol input { width: 100%; accent-color: #ff9a3c; }
.dj-controls { display: flex; justify-content: space-between; align-items: center; }
.dj-icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: #e9d3ac; opacity: 0.8; }
.dj-icon.on { color: #ff9a3c; opacity: 1; }
.dj-one { position: absolute; right: 8px; bottom: 6px; font-size: 9px; font-weight: 700; }
.dj-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #ff9a3c; background: radial-gradient(circle, rgba(255, 150, 40, 0.22), rgba(0, 0, 0, 0.45)); color: #ffc27a; box-shadow: 0 0 22px rgba(255, 138, 42, 0.5), inset 0 0 10px rgba(255, 138, 42, 0.2); }
.dj-vol { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; color: #e9d3ac; }
.dj-start[hidden] { display: none !important; }
.dj-list { display: grid; gap: 2px; }
.dj-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 5px 4px; border-radius: 8px; color: var(--parchment); }
.dj-item:hover { background: rgba(240, 162, 74, 0.08); }
.dj-item-text { min-width: 0; font-size: 14px; }
.dj-item-text div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-item-sub { font-size: 12px; color: #a8916d; }
.dj-queue { display: grid; gap: 6px; max-height: 46dvh; overflow: auto; }
.dj-qrow { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; }
.dj-qrow.now { border-color: var(--line-strong); }
.dj-qrow select { width: auto; min-height: 36px; font-size: 13px; padding: 4px 6px; }
.dj-start { margin: 2px 0; }

@media (orientation: portrait), (max-width: 860px) {
  body.kiosk { overflow: auto; }
  .k-shell { height: auto; min-height: 100dvh; }
  .k-main { grid-template-columns: 1fr; }
  .k-scan { grid-template-columns: 1fr; }
  .k-cam { max-width: 360px; margin: 0 auto; width: 100%; }
  .k-header { grid-template-columns: 1fr auto; }
  .k-stage-label { grid-column: 1 / -1; order: 3; }
  .k-modes { grid-template-columns: repeat(2, 1fr); }
}

/* ---- host dashboard ---------------------------------------------------------- */
.h-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; padding: 14px; min-height: 100dvh; }
.h-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; position: sticky; top: 14px; height: calc(100dvh - 28px); }
.h-nav-brand { padding: 4px 6px 14px; }
.h-nav-brand .brand-name { font-size: 16px; white-space: normal; }
.h-nav-brand .brand-sub { font-size: 9px; letter-spacing: 0.2em; }
.h-tab { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--parchment); text-align: left; text-decoration: none; font-size: 15px; }
.h-tab span { width: 22px; display: grid; place-items: center; color: var(--gold); }
.h-tab { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.h-tab:hover { background: rgba(240, 162, 74, 0.08); }
.h-tab.on { background: linear-gradient(180deg, rgba(240, 162, 74, 0.28), rgba(140, 70, 20, 0.25)); border-color: var(--line-strong); }
.h-tab.exit { color: #ffab98; }
.h-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.h-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.h-events { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.h-event { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid rgba(240, 162, 74, 0.08); font-size: 14px; }
.h-event.voided { opacity: 0.5; text-decoration: line-through; }
.h-event.voided .tag { text-decoration: none; margin-left: 8px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h-table-wrap { overflow: auto; max-height: 75vh; }
.h-low { color: #ffcf8a; font-weight: 700; }
.h-missed { color: #ff9a7f; }
.h-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.h-card { padding: 12px; display: grid; gap: 4px; }
.h-card.off { opacity: 0.55; }
.h-steps { display: grid; gap: 10px; padding-left: 20px; margin: 0; }
.h-kiosk-qr { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.h-kiosk-qr svg { border-radius: 8px; flex: none; }
@media (max-width: 820px) {
  .h-shell { grid-template-columns: 1fr; }
  .h-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .h-nav .grow { display: none; }
  .h-nav-brand { width: 100%; }
}

/* ---- print cards ------------------------------------------------------------------ */
.pc-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 14px; margin-top: 16px; }
.pc-card { width: 100%; aspect-ratio: 2.5 / 3.5; background: #fffaf0; color: #4a2b12; border: 2px solid #4a2b12; outline: 1px solid #c77322; outline-offset: -7px; border-radius: 6px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 10px; font-family: var(--display); cursor: zoom-in; }
.pc-title { font-size: 18px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase; }
.pc-sub { font: 600 8px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: #c77322; margin-bottom: 4px; }
.pc-num { font-size: 30px; font-weight: 700; letter-spacing: 0.1em; line-height: 1; }
.pc-foot { font: 9px var(--body); color: #c77322; }
.pc-card svg { width: 72%; height: auto; }
.pc-back { cursor: default; display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 12px; text-align: left; }
.pc-how { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; border-bottom: 1px solid #c77322; padding-bottom: 3px; margin-bottom: 2px; }
.pc-rule { font: 8px/1.2 var(--body); color: #2a1b0f; }
.pc-rule b { display: block; font: 700 9px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #c77322; }
.pc-backfoot { font: 7.5px var(--body); text-align: center; margin-top: auto; border-top: 1px solid #c77322; padding-top: 3px; }
.pc-blank { visibility: hidden; }
.pc-label { margin: 22px 0 -6px; color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
@media print {
  @page { margin: 0.25in; }
  html, body { background: #fff !important; color: #000; }
  .no-print, .toast-host { display: none !important; }
  .page { padding: 0; width: auto; }
  .pc-sheet { display: grid; grid-template-columns: repeat(3, 2.5in); grid-auto-rows: 3.5in; gap: 0; justify-content: center; margin: 0; break-after: page; }
  .pc-card { width: 2.5in; height: 3.5in; aspect-ratio: auto; border-radius: 0; break-inside: avoid; outline-offset: -0.1in; border: 1px dashed #999; }
  .pc-back { padding: 0.2in 0.2in 0.14in; }
  .pc-rule { font-size: 7.3pt; }
  .rv-stage { display: none !important; }
  .rv-print { display: block !important; color: #000; }
  body.printing-rules > *:not(.hb-print-rules) { display: none !important; }
  .hb-print-rules { display: block !important; color: #000; font-family: Georgia, serif; padding: 0.3in; }
  .hb-print-rules h1 { font-size: 22pt; margin: 0 0 14pt; }
  .hb-print-rules h2 { font-size: 13pt; margin: 12pt 0 3pt; text-transform: uppercase; letter-spacing: 0.05em; }
  .hb-print-rules p { font-size: 12pt; line-height: 1.4; margin: 0; }
}
.hb-print-rules { display: none; }

/* ---- reveal ---------------------------------------------------------------------- */
body.reveal { overflow-x: hidden; }
.rv-stage { position: relative; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 18px 16px; gap: 10px; }
.rv-stage > * { position: relative; z-index: 1; }
.rv-backdrop { position: fixed !important; inset: 0; z-index: 0 !important; opacity: 0.55; pointer-events: none; }
.rv-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 7, 4, 0.5), rgba(10, 7, 4, 0.88)); }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-center { display: grid; justify-items: center; align-content: center; gap: 16px; text-align: center; width: min(1100px, 100%); margin: 0 auto; animation: hb-rise 0.5s ease; }
.rv-title { font-family: var(--caps); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(34px, 5.6vw, 62px);
  background: linear-gradient(180deg, #ffe2a8 10%, #f6a743 60%, #c1621c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255, 140, 40, 0.45)); }
.rv-sub { font-family: var(--serif); font-size: 23px; color: var(--parchment); opacity: 0.92; margin: 0; max-width: 760px; }
.rv-bell { filter: drop-shadow(0 0 30px rgba(255, 170, 60, 0.6)); animation: hb-swing 2.6s ease-in-out infinite; transform-origin: 50% 12%; }
.rv-stats { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 12px; width: min(720px, 100%); }
.rv-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rv-name { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35); font-size: 20px; animation: hb-in 0.5s ease both; display: flex; gap: 10px; align-items: center; }
.rv-names.good .rv-name { border-color: rgba(143, 210, 122, 0.6); box-shadow: 0 0 18px rgba(143, 210, 122, 0.2); }
.rv-names.bad .rv-name { border-color: rgba(226, 103, 79, 0.75); box-shadow: 0 0 22px rgba(226, 103, 79, 0.3); color: #ffd0c2; }
.rv-num { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.rv-spread { display: grid; grid-template-columns: minmax(280px, 640px) minmax(240px, 1fr); gap: 20px; width: 100%; align-items: start; text-align: left; }
/* Fits the screen's height too (owner, 2026-10-29: the bottom node was cut off on the iPad). */
.rv-net { width: 100%; height: auto; max-height: calc(100dvh - 230px); overflow: visible; }
.rv-edge { stroke: #ff8a5c; stroke-width: 1.6; opacity: 0; animation: hb-in 0.6s ease forwards; }
.rv-node { stroke: #0c0906; stroke-width: 2; }
.rv-node.orig { fill: #e2674f; }
.rv-node.inf { fill: #f0a24a; }
.rv-node.cured { fill: #7fc4d6; }
.rv-node.ok { fill: #8fd27a; }
.rv-label { fill: var(--parchment); font: 11px var(--body); }
.rv-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.lg.orig::before { background: #e2674f; } .lg.inf::before { background: #f0a24a; } .lg.cured::before { background: #7fc4d6; } .lg.ok::before { background: #8fd27a; }
.rv-timeline { display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.rv-tl { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.rv-teams { display: grid; grid-template-columns: repeat(2, minmax(200px, 300px)); gap: 20px; }
.rv-team { padding: 18px 22px 22px; border-radius: 18px; display: grid; justify-items: center; gap: 4px; border: 1.5px solid var(--line-strong); background: linear-gradient(180deg, rgba(40, 24, 12, 0.85), rgba(12, 8, 5, 0.9)); font-family: var(--serif); font-size: 19px; }
.rv-team h2 { font-family: var(--caps); text-transform: uppercase; letter-spacing: 0.1em; }
.rv-team.good { border-color: rgba(255, 170, 70, 0.8); box-shadow: 0 0 26px rgba(255, 150, 40, 0.3); }
.rv-team.good h2 { color: #ffc27a; }
.rv-team.bad { border-color: rgba(255, 80, 60, 0.8); box-shadow: 0 0 26px rgba(255, 70, 50, 0.3); }
.rv-team.bad h2 { color: #ff7a62; }
.rv-team.win { box-shadow: 0 0 46px rgba(255, 150, 40, 0.45); transform: scale(1.04); }
.rv-team h2 { font-size: 28px; }
.rv-big { font-family: var(--display); font-size: 54px; line-height: 1; }
.rv-sigil { font-size: 60px; color: #e2674f; filter: drop-shadow(0 0 14px rgba(226, 103, 79, 0.7)); line-height: 1; }
.rv-verdict { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); }
.rv-verdict.good { color: #ffd08c; }
.rv-verdict.bad { color: #ff9a7f; }
.rv-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; width: 100%; }
.rv-award { padding: 20px; display: grid; gap: 8px; }
.rv-award-names { font-family: var(--display); font-size: 26px; color: #ffd08c; }
.rv-controls { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-dots { display: flex; gap: 8px; }
.rv-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; padding: 0; }
.rv-dot.on { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.rv-print { display: none; }
.rv-print-step { break-inside: avoid; margin-bottom: 24px; }
.rv-print .rv-edge, .rv-print .rv-name { opacity: 1; animation: none; }
.rv-print .rv-label { fill: #000; }
.rv-print .rv-title, .rv-print h1, .rv-print h2 { color: #000; text-shadow: none; }
@media (max-width: 760px) { .rv-spread, .rv-teams { grid-template-columns: 1fr; } .rv-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- simulator ------------------------------------------------------------------ */
.sim-hist { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 8px; }
.sim-bar { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; }
.sim-bar i { align-self: end; display: block; background: var(--rust); border-radius: 4px 4px 0 0; min-height: 2px; }
.sim-bar.good i { background: var(--forest-glow); }
.dj-progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.dj-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9a3c, #ffc27a); }
.dj-controls.single { justify-content: center; }
.dj-play[hidden] { display: none; }
.k-footer-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--caps); font-size: 13px; letter-spacing: 0.14em; color: #c9b08a; }

/* ---- host: round panel, music ------------------------------------------------- */
.h-round { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-round-clock b { font-family: var(--caps); font-size: 40px; color: #f6dcae; letter-spacing: 0.04em; }
.h-round-buttons .btn { min-width: 140px; }
.h-stats.big .stat b { font-size: 38px; }
.h-stats.small .stat { padding: 8px; }
.h-stats.small .stat b { font-size: 22px; }
.h-event-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(240, 162, 74, 0.1); color: var(--gold); flex: none; }
.h-event-icon.cure { color: #ff6b5a; }
.h-event-icon.register { color: #8fb6ff; }
.h-event-icon.bell { color: #ffd08c; }
.h-role { padding: 8px 12px; color: #b89d74; font-family: var(--caps); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.h-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.h-now-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff1d6; }
.h-transport { gap: 8px; }
.h-queue { display: grid; gap: 4px; max-height: 60vh; overflow: auto; }
.h-qrow { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; border: 1px solid transparent; }
.h-qrow.dragging { background: rgba(240, 162, 74, 0.18); border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); position: relative; z-index: 2; }
.h-qdrag { touch-action: none; cursor: grab; padding: 6px 4px; font-size: 18px; line-height: 1; color: var(--muted, #b49c7c); user-select: none; -webkit-user-select: none; }
.h-qrow.dragging .h-qdrag { cursor: grabbing; }
.h-qplays { flex: 0 0 auto; min-width: 30px; text-align: right; color: #ffc27a; }
.h-qplays.muted { color: var(--muted, #8a7660); }
.h-qmore { min-width: 36px; padding-left: 8px; padding-right: 8px; font-size: 18px; line-height: 1; }
.h-queue { overscroll-behavior: contain; }
.h-songmenu .btn { width: 100%; justify-content: center; }
.h-qrow.now { border-color: var(--line-strong); background: rgba(240, 162, 74, 0.08); }
.h-qnum { width: 22px; text-align: right; }
.h-qtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.h-link { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.h-link-url { display: flex; gap: 6px; flex-wrap: wrap; }
.h-link-url .input { flex: 1; min-width: 220px; font-size: 13px; min-height: 38px; }

/* ---- print cards (screen 14) ---------------------------------------------------- */
.pc-panel { width: min(560px, 100%); margin: 0 auto; }
.pc-hero { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pc-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-set { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--parchment); }
.pc-set b { display: block; font-family: var(--serif); font-size: 17px; }
.pc-set small { color: var(--muted); }
.pc-set.on { border-color: #ff9a3c; box-shadow: 0 0 16px rgba(255, 138, 42, 0.3); }
.pc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.pc-set.on .pc-radio { border-color: #ff9a3c; background: radial-gradient(circle, #ff9a3c 45%, transparent 50%); }
.pc-download { min-height: 58px; font-size: 19px; font-family: var(--serif); }
.row.center { justify-content: center; }
.h-blocked { color: #ffab98; }

/* ==== Painted art (web/assets/hb, cut from the owner's design kits) ======================= */
.paint { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-select: none; pointer-events: none; }
/* Cut-outs carry real transparency (see docs/HARVEST_BLIGHT.md, "Art"). */

/* Fog drifting and embers rising over any backdrop. */
.atmo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atmo-fog { position: absolute; left: -20%; right: -20%; bottom: -8%; height: 55%; background: url("/assets/hb/fx-fog.webp?v=4") center bottom / 60% 100% repeat-x; opacity: 0.5; filter: blur(6px); animation: hb-fog 60s linear infinite; }
.atmo-fog.two { bottom: 18%; height: 35%; opacity: 0.18; animation-duration: 90s; animation-direction: reverse; }
.atmo .ember { position: absolute; bottom: -12px; border-radius: 50%; background: radial-gradient(circle, #fff1c4 0%, #ffb347 40%, rgba(255, 110, 20, 0) 72%); box-shadow: 0 0 8px 2px rgba(255, 140, 40, 0.55); opacity: 0; animation: hb-ember linear infinite; }
@keyframes hb-ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.95; } 70% { opacity: 0.7; } 100% { transform: translate(var(--drift), -105vh); opacity: 0; } }
@keyframes hb-fog { from { transform: translateX(0); } to { transform: translateX(-30%); } }

/* ---- launch -------------------------------------------------------------------------- */
.k-launch-bg { position: absolute; inset: 0; background: url("/assets/hb/bg-village.webp?v=4") center / cover no-repeat; animation: hb-kenburns 40s ease-in-out infinite alternate; }
.k-launch-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 48%, rgba(6, 4, 2, 0.62), rgba(6, 4, 2, 0.15) 70%), linear-gradient(180deg, rgba(5, 3, 2, 0.35), rgba(5, 3, 2, 0.05) 40%, rgba(5, 3, 2, 0.55)); }
@keyframes hb-kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.k-decor { position: absolute; z-index: 1; width: clamp(160px, 22vw, 320px); }
.k-decor.tl { top: 0; left: 0; }
.k-decor.tr { top: 0; right: 0; }
.k-decor.bl { bottom: 0; left: 1vw; width: clamp(150px, 20vw, 300px); }
.k-decor.br { bottom: 2vh; right: 3vw; width: clamp(80px, 9vw, 130px); animation: hb-flicker 3.5s infinite; }
.k-launch-crest { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: -6px; }
.k-crest-ring, .k-crest-in, .k-crest-wheat { position: absolute; }
.k-launch-crest .k-crest-ring { inset: 0; width: 100%; animation: hb-spin 40s linear infinite; }
.k-launch-crest .k-crest-wheat { width: 64%; filter: drop-shadow(0 0 12px rgba(255, 170, 60, 0.6)); }
.k-launch-orn { width: 220px; margin: 2px auto 0; }
.k-launch-inner { z-index: 2; }

/* ---- the terminal ------------------------------------------------------------------ */
.k-backdrop { opacity: 1 !important; }
.k-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 3s ease; transform: scale(1.03); }
.k-bg.on { animation: hb-kenburns 70s ease-in-out infinite alternate; }
.k-bg.on { opacity: 0.9; }
.k-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(8, 5, 3, 0.3), rgba(8, 5, 3, 0.72)); pointer-events: none; }
.k-backdrop .atmo { z-index: 1; }
body.kiosk .panel { background: linear-gradient(180deg, rgba(26, 17, 9, 0.62), rgba(10, 7, 4, 0.74)); backdrop-filter: blur(5px) saturate(1.1); -webkit-backdrop-filter: blur(5px) saturate(1.1); }
.k-ornate { position: relative; }
.k-corner { position: absolute; width: 74px; z-index: 0; opacity: 0.95; }
.k-corner.tl { top: -6px; left: -6px; }
.k-corner.tr { top: -6px; right: -6px; }
.k-ornate > :not(.k-corner) { position: relative; z-index: 1; }
/* Subtle green scan sweep over the camera preview and card frames. */
.k-scanline { position: absolute; left: 8%; right: 8%; height: 3px; top: 10%; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 150, 40, 0), #ffc46b 25%, #fff0c8 50%, #ffc46b 75%, rgba(255, 150, 40, 0)); box-shadow: 0 0 10px 3px rgba(255, 140, 30, 0.55), 0 0 22px 6px rgba(255, 110, 20, 0.25); opacity: 0.9; animation: hb-scan 2.6s ease-in-out infinite alternate; z-index: 1; pointer-events: none; }
@keyframes hb-scan { from { top: 10%; } to { top: 82%; } }
.k-cardframe .k-scanline { left: 10%; right: 10%; }
.k-hero { display: grid; place-items: center; }
.k-hero .paint { width: 120px; filter: drop-shadow(0 0 14px rgba(255, 160, 60, 0.35)); }
.k-hero.small .paint { width: 96px; }
.k-hero.ready .paint { width: 110px; animation: hb-breathe 3.2s ease-in-out infinite; }
.k-hero.potion .paint { width: 116px; }
.k-hero.potion.green .paint { width: 130px; filter: drop-shadow(0 0 20px rgba(120, 255, 120, 0.5)); }
@keyframes hb-breathe { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 160, 60, 0.3)); } 50% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(255, 160, 60, 0.6)); } }
.k-crest { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.k-crest .k-crest-ring { inset: 0; width: 100%; height: 100%; animation: hb-spin 14s linear infinite; }
.k-crest .k-crest-in { width: 58%; }
.k-crest.reveal { width: 130px; height: 130px; }
.k-success-ring { width: 210px; filter: drop-shadow(0 0 24px rgba(120, 255, 120, 0.35)); }
.k-bell-img { width: 130px; }
.k-bell-img.big { width: 220px; }
.k-break-scene { height: 190px; }
.k-break-art { position: absolute; inset: 0; background: url("/assets/hb/bg-round.webp?v=4") center / cover no-repeat; }
.k-break-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 5, 3, 0.1), rgba(8, 5, 3, 0.55)); }
.k-bell-overlay-bg { position: absolute; inset: 0; background: url("/assets/hb/bg-bells.webp?v=4") center / cover no-repeat; opacity: 0.9; animation: hb-kenburns 6s ease-out forwards; }
.k-bell-overlay-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(8, 5, 3, 0.25), rgba(8, 5, 3, 0.8)); }
.k-bell-overlay .atmo, .k-bell-overlay-inner { z-index: 1; }

/* ---- DJ ------------------------------------------------------------------------------ */
.dj-head-icon { width: 30px; }
.dj-summary { font-size: 12px; letter-spacing: 0.08em; color: #c9b08a; margin-top: -4px; }
.dj-hero { height: 200px; width: 200px; aspect-ratio: auto; margin: 4px auto 0; border-radius: 14px; }
.dj-hero.video { height: 200px; width: 200px; min-width: 200px; }
.dj-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dj-hero.video .dj-cover { display: none; }

/* ---- reveal / host / cards ------------------------------------------------------------- */
.rv-backdrop.painted { background: url("/assets/hb/bg-bells.webp?v=4") center / cover no-repeat; opacity: 0.75; }
.rv-backdrop.painted.finale { background-image: url("/assets/hb/bg-finale.webp?v=4"); }
.rv-crest { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.rv-crest .paint { position: absolute; }
.rv-crest .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-crest .in { width: 60%; }
body.host { background: linear-gradient(180deg, rgba(8, 5, 3, 0.86), rgba(8, 5, 3, 0.94)), url("/assets/hb/bg-dashboard.webp?v=4") center / cover fixed no-repeat, var(--bg); }
body.host .panel { background: linear-gradient(180deg, rgba(30, 20, 11, 0.82), rgba(12, 8, 5, 0.9)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.h-nav-wheat { width: 46px; }
body.cards .pc-hero .paint { width: 96px; }
body.cards { background: linear-gradient(180deg, rgba(8, 5, 3, 0.8), rgba(8, 5, 3, 0.95)), url("/assets/hb/bg-field.webp?v=4") center top / cover fixed no-repeat, var(--bg); }

/* ---- host dock: music + speakers on every host screen --------------------------- */
body.has-dock .h-shell { padding-bottom: 96px; }
.h-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(30, 20, 11, 0.94), rgba(12, 8, 5, 0.98)); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 -1px 18px rgba(255, 138, 42, 0.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.h-dock-music { display: flex; align-items: center; gap: 8px; min-width: 0; }
.h-dock-now { flex: 1; min-width: 0; cursor: pointer; }
.h-dock-title { font-family: var(--serif); font-weight: 600; font-size: 17px; color: #fff1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-dock-say { display: flex; gap: 8px; }
.h-dock-say .input { flex: 1; min-width: 0; }
.dj-play.small { width: 48px; height: 48px; }
@media (max-width: 760px) {
  .h-dock { grid-template-columns: 1fr; gap: 8px; }
  body.has-dock .h-shell { padding-bottom: 150px; }
}

/* ---- full screen toggle ---------------------------------------------------------- */
.k-header-right { gap: 10px; }
.k-fs-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10, 7, 4, 0.7); color: var(--gold); box-shadow: 0 0 14px rgba(255, 138, 42, 0.18); }
.k-fs-btn:hover, .k-fs-btn:focus-visible { color: #ffd08c; box-shadow: 0 0 20px rgba(255, 138, 42, 0.35); }
.rv-fs { min-width: 44px; }

/* ---- host setup QR codes: pinned above every screen until scanned ---------------- */
/* Host setup: a strip along the bottom; pages give up its height (--hb-setup-h, set by setup.js). */
.hb-setup { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; pointer-events: none; }
.hb-setup > * { pointer-events: auto; }
.hb-setup-codes:empty { display: none; }
body { padding-bottom: var(--hb-setup-h, 0px); }
.k-shell { height: calc(100dvh - var(--hb-setup-h, 0px)); }
.hb-setup-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; border-radius: 14px; background: rgba(12, 8, 5, 0.92); border: 1px solid var(--line-strong); box-shadow: 0 0 26px rgba(255, 138, 42, 0.25), 0 10px 30px rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hb-rise 0.3s ease; }
.hb-setup-card p { margin: 0; max-width: 190px; }
.hb-setup-head { display: grid; gap: 4px; justify-items: start; }
.hb-setup-min { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--parchment); font-size: 18px; line-height: 1; }
.hb-setup-row { display: grid; grid-template-columns: auto auto; gap: 10px; align-items: center; }
.hb-setup-qr { background: #fff; padding: 4px; border-radius: 6px; line-height: 0; }
.hb-setup-qr svg { width: 88px; height: 88px; }
/* Minimised: just the codes, smaller (still scannable). */
.hb-setup-card.mini { padding: 6px 8px; gap: 8px; }
.hb-setup-card.mini p, .hb-setup-card.mini .hb-setup-row .small { display: none; }
.hb-setup-card.mini .hb-setup-qr svg { width: 64px; height: 64px; }
.k-help { display: grid; gap: 10px; padding-left: 20px; margin: 0; }
.k-help-step b { font-family: var(--serif); font-size: 17px; color: #ffd9a0; }
.hb-setup-info { display: grid; gap: 4px; justify-items: start; }
.hb-pair { min-height: 34px; font-size: 14px; margin-top: 2px; }
.hb-setup-card.mini .hb-pair { display: none; }
.hb-paired { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: rgba(12, 8, 5, 0.9); border: 1px solid var(--line-strong); color: #ffc27a; font-family: var(--serif); font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: 0 0 18px rgba(255, 138, 42, 0.3); }

.h-dock-say select.h-dock-voice { width: auto; flex: 0 0 auto; max-width: 130px; padding-left: 8px; padding-right: 8px; }
.h-print-reminder { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 170, 70, 0.8); background: linear-gradient(135deg, rgba(120, 60, 10, 0.55), rgba(40, 20, 6, 0.7)); box-shadow: 0 0 18px rgba(255, 138, 42, 0.25); }
.h-print-reminder > .grow { flex: 1 1 220px; min-width: 0; }
.h-print-reminder b { font-family: var(--serif); font-size: 17px; color: #ffd9a0; }
.h-dock-say .h-dock-info { flex: 0 0 auto; width: 40px; padding: 0; font-size: 18px; }
.h-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.h-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a3c, #ffc27a); }
.h-voice-how { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.h-voice-info h3 { margin: 6px 0 0; }
.h-tap-notice { padding: 10px 14px; border-radius: 12px; background: #9b1c12; border: 1px solid #ff6b57; color: #fff; font-weight: 600; box-shadow: 0 0 18px rgba(255, 70, 50, 0.45); animation: hb-pulse-red 2s ease-in-out infinite; }
@keyframes hb-pulse-red { 50% { box-shadow: 0 0 4px rgba(255, 70, 50, 0.2); } }
.h-scan-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; object-fit: cover; }
.h-role-show { text-align: center; }
.h-role-show h2 { font-size: 28px; color: #ffd9a0; }
.h-sfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.h-sfx-pad { position: relative; }
.h-sfx { width: 100%; min-height: 74px; display: grid; place-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20, 12, 6, 0.7); color: #f1dcb4; font-size: 12px; line-height: 1.2; text-align: center; }
.h-sfx:active, .h-sfx.busy { border-color: var(--line-strong); background: rgba(120, 60, 10, 0.5); transform: scale(0.97); }
.h-sfx-emoji { font-size: 26px; line-height: 1; }
.h-sfx-del { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #ffb0a0; font-size: 12px; }
.h-invite { text-align: center; }
.h-invite-inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.h-invite-inline .h-invite-qr svg { width: 150px; height: 150px; }
.h-invite-inline > .stack { flex: 1 1 200px; }
.h-invite-qr { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; justify-self: center; line-height: 0; }
.h-invite-qr svg { width: min(260px, 70vw); height: auto; }

/* ---- host: one compact page ---------------------------------------------------- */
.h-page { width: min(1100px, 100%); margin: 0 auto; padding: 0 12px 24px; display: grid; gap: 10px; }
.h-top { position: sticky; top: 0; z-index: 20; margin: 0 -12px; padding: 10px 12px 8px; background: linear-gradient(180deg, rgba(14, 9, 5, 0.97), rgba(14, 9, 5, 0.9)); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; gap: 8px; }
.h-top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.h-top-brand .brand-name { font-size: 18px; }
.h-top-brand .h-nav-wheat { width: 34px; }
.h-top-status { gap: 8px; }
.h-top-clock { font-family: var(--caps); font-size: 24px; color: #f6dcae; min-width: 72px; text-align: right; }
.h-jumps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.h-jumps::-webkit-scrollbar { display: none; }
.h-jump { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--parchment); font-size: 13px; }
.h-jump .ic { color: var(--gold); }
.h-sec { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(30, 20, 11, 0.8), rgba(12, 8, 5, 0.88)); scroll-margin-top: 100px; }
.h-sec-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: #f6dcae; font-family: var(--serif); font-size: 19px; font-weight: 600; text-align: left; }
.h-sec-head .ic { color: var(--gold); }
.h-sec-caret { color: var(--muted); }
.h-sec-body { padding: 0 12px 12px; }
.h-sec-body > * + * { margin-top: 10px; }
/* compact versions of the old tab content */
.h-page .panel { padding: 12px; border-radius: 12px; box-shadow: none; }
.h-page .pad { padding: 12px; }
.h-page .stack > * + * { margin-top: 8px; }
.h-page .stat { padding: 8px 6px; }
.h-page .stat b { font-size: 24px; }
.h-page .h-stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.h-page .h-stats.big .stat b { font-size: 28px; }
.h-page .h-round-clock b { font-size: 30px; }
.h-page .h-round-buttons .btn { min-width: 0; }
.h-page .h-events { max-height: 260px; }
.h-page .h-queue { max-height: 380px; }
.h-page .h-table-wrap { max-height: 420px; }
.h-page table.grid td, .h-page table.grid th { padding: 6px; }
.h-page .h-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.h-page .cols { gap: 10px; }
body.has-dock .h-page { padding-bottom: 96px; }
@media (max-width: 760px) { body.has-dock .h-page { padding-bottom: 150px; } .h-top-brand .brand-sub { display: none; } }
/* Never wider than the phone. */
.h-page, .h-page > *, .h-sec-body, .h-sec-body > *, .h-page .panel, .h-page .cols > * { min-width: 0; }
.h-page .cols { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.h-page .h-qtitle { max-width: 100%; }
.h-page .h-qrow > .grow { flex: 1 1 0; min-width: 0; overflow: hidden; }
.h-qrow > .grow .h-blocked { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-qrow > .h-qdrag, .h-qrow > .h-qnum, .h-qrow > .chip, .h-qrow > .h-qmore { flex: 0 0 auto; }
.h-queue { overflow-x: hidden; grid-template-columns: minmax(0, 1fr); }
.h-qrow { min-width: 0; }
.h-page .h-link-url .input { min-width: 0; }
@media (max-width: 600px) {
  .h-page .h-round { flex-direction: column; align-items: stretch; }
  .h-page .h-round-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .h-page .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-top-clock { font-size: 20px; min-width: 0; }
  .h-page table.grid { font-size: 13px; }
}
@media (max-width: 600px) {
  .h-dock-say { flex-wrap: wrap; }
  .h-dock-say .input { flex: 1 1 100%; }
  .h-dock-say .btn { flex: 1; }
  body.has-dock .h-page { padding-bottom: 200px; }
}

/* Full screen on iPad Safari: the browser draws its own exit (X) button at
   the top left. Move the header clear of it (the Home Screen app has none). */
:root:fullscreen .k-header, :root:-webkit-full-screen .k-header { padding-left: 64px; }
:root:fullscreen .h-top, :root:-webkit-full-screen .h-top { padding-left: 64px; }

/* ---- host: confirmations and volume, above the bottom bar ----------------------- */
.h-dock-status, .h-dock-vol { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); }
.h-dock-status { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(18, 12, 7, 0.96); border: 1px solid var(--line-strong); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55); font-weight: 600; animation: hb-rise 0.2s ease; }
.h-dock-status-icon { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 14px; }
.h-dock-status.wait .h-dock-status-icon { border: 2px solid var(--line-strong); border-top-color: var(--gold); animation: hb-spin 0.8s linear infinite; }
.h-dock-status.ok { border-color: rgba(127, 227, 106, 0.7); color: #c9f5b8; }
.h-dock-status.ok .h-dock-status-icon { background: #3f8f37; color: #fff; }
.h-dock-status.warn { border-color: rgba(226, 103, 79, 0.8); color: #ffc0b0; }
.h-dock-status.info { border-color: var(--line-strong); color: #ffd9a0; }
.h-dock-status.info .h-dock-status-icon { display: none; }
.h-dock-status.warn .h-dock-status-icon { background: #a33a1f; color: #fff; }
.h-dock-status[hidden], .h-dock-vol[hidden] { display: none; }
.h-dock-vol { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(18, 12, 7, 0.97); border: 1px solid var(--line-strong); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55); }
.h-dock .busy { animation: hb-pulse 1s ease-in-out infinite; opacity: 0.85; }

.pc-rule { display: grid; grid-template-columns: 16px 1fr; gap: 5px; align-items: start; }
.pc-rule-icon { color: #c77322; padding-top: 2px; }
/* Live version, very small under the logo. */
.hb-version { font-size: 9px; letter-spacing: 0.12em; color: rgba(201, 176, 138, 0.55); margin-top: 2px; font-variant-numeric: tabular-nums; }
.hb-version:empty { display: none; }

/* ---- registration celebration (celebrate.js) ---------------------------------------------- */
.cb-overlay { position: fixed; inset: 0; z-index: 200; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-items: start; padding-top: 6vh; background: radial-gradient(circle at 50% 45%, rgba(90, 30, 5, 0.9), rgba(5, 2, 1, 0.97) 70%); animation: cb-in 0.35s ease-out; }
.cb-overlay.out { animation: cb-out 0.45s ease-in forwards; }
@keyframes cb-in { from { opacity: 0; } }
@keyframes cb-out { to { opacity: 0; } }
.cb-glow { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 40%, rgba(255, 140, 40, 0.35), transparent 55%); animation: cb-pulse 1.1s ease-in-out infinite alternate; pointer-events: none; }
@keyframes cb-pulse { to { opacity: 0.4; transform: scale(1.06); } }
.cb-title { position: relative; font-family: var(--caps); font-weight: 700; font-size: clamp(54px, 11vw, 140px); letter-spacing: 0.12em; color: #ffd27a; text-shadow: 0 0 18px rgba(255, 150, 40, 0.95), 0 0 48px rgba(255, 90, 20, 0.7), 0 4px 0 #6b2a05; animation: cb-title 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) both, cb-flicker 2.4s 0.9s steps(1) infinite; }
@keyframes cb-title { from { transform: scale(0.2) rotate(-6deg); opacity: 0; } }
@keyframes cb-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.86; } 49% { opacity: 1; } 73% { opacity: 0.9; } }
.cb-sub { position: relative; margin-top: 6px; font-family: var(--serif); font-size: clamp(20px, 3vw, 34px); color: #f6dcae; text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); animation: cb-rise 0.6s 0.5s ease-out both; }
@keyframes cb-rise { from { transform: translateY(20px); opacity: 0; } }
.cb-stage { position: relative; align-self: end; display: flex; justify-content: center; align-items: flex-end; gap: 2vw; width: 100%; padding-bottom: 4vh; }
.cb-fig { height: clamp(150px, 34vh, 300px); width: auto; filter: drop-shadow(0 0 12px rgba(255, 140, 40, 0.45)); }
.cb-skel { animation: cb-dance 0.55s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.cb-skel:nth-child(3) { animation-delay: -0.27s; }
.cb-skel:nth-child(5) { animation-delay: -0.12s; }
@keyframes cb-dance { from { transform: translateY(0) rotate(-7deg); } to { transform: translateY(-14px) rotate(7deg); } }
.cb-skel .cb-leg { transform-box: fill-box; transform-origin: 50% 0; animation: cb-kick 0.55s ease-in-out infinite alternate; }
.cb-skel .cb-leg.r { animation-direction: alternate-reverse; }
@keyframes cb-kick { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.cb-reaper { animation: cb-float 1.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.cb-reaper:nth-child(4) { animation-delay: -0.8s; }
@keyframes cb-float { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-22px) rotate(3deg); } }
.cb-reaper .cb-eye { animation: cb-blink 1.8s steps(1) infinite; }
@keyframes cb-blink { 0%, 90% { opacity: 1; } 92%, 96% { opacity: 0.1; } }
.cb-leaf { position: absolute; top: -8vh; animation: cb-fall linear infinite; filter: drop-shadow(0 0 6px rgba(255, 140, 40, 0.6)); pointer-events: none; }
@keyframes cb-fall { to { transform: translateY(115vh) rotate(540deg); } }
.cb-overlay.still *, .reduce-motion .cb-overlay * { animation: none !important; }

/* Host page: slimmer sticky bars that fold away (owner, 2026-10-27). */
.h-top { padding: 6px 12px 6px; gap: 6px; }
.h-top-brand .brand-name { font-size: 16px; }
.h-top-brand .h-nav-wheat { width: 28px; }
.h-jump { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.h-fold { min-width: 34px; font-size: 14px; }
body.top-min .h-jumps { display: none; }
body.top-min .h-top .version-tag, body.top-min .h-top-brand .brand-sub { display: none; }
.h-dock { padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); gap: 8px; }
.h-dock-title { font-size: 15px; }
body.dock-min .h-dock { grid-template-columns: 1fr; }
body.dock-min .h-dock-say, body.dock-min .h-dock-music .h-dock-thumb, body.dock-min .h-dock-music [aria-label="Previous song"], body.dock-min .h-dock-music [aria-label="Skip song"], body.dock-min .h-dock-music [aria-label="Volume"] { display: none; }
body.dock-min.has-dock .h-page { padding-bottom: 72px; }
@media (max-width: 760px) {
  .h-dock-say .lbl { display: none; }
  .h-dock-say .btn { flex: 0 0 auto; }
  .h-dock-say .btn.primary { flex: 1 1 auto; }
  body.has-dock:not(.dock-min) .h-page { padding-bottom: 150px; }
}
.h-dock-now > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-dock .dj-play { width: 44px; height: 44px; flex: none; }
.h-dock .dj-icon { flex: none; }

/* The Cure potion: big, top right of the status area, once per game. */
.k-status { position: relative; }
.k-cure-fab { position: absolute; top: 6px; right: 6px; z-index: 3; display: grid; justify-items: center; gap: 2px; padding: 8px 12px 10px; border-radius: 18px; border: 2px solid rgba(255, 120, 90, 0.85); background: radial-gradient(circle at 50% 30%, rgba(120, 20, 10, 0.75), rgba(25, 8, 5, 0.92)); color: #ffd8cc; box-shadow: 0 0 22px rgba(255, 90, 60, 0.45); animation: hb-cure-glow 1.8s ease-in-out infinite alternate; }
.k-cure-fab b { font-family: var(--caps); font-size: 18px; letter-spacing: 0.04em; color: #fff0e8; }
.k-cure-fab small { font-size: 13px; font-weight: 700; color: #ffb3a1; text-transform: uppercase; letter-spacing: 0.06em; }
.k-cure-fab.used { padding: 8px 12px; opacity: 0.7; animation: none; border-color: var(--line); background: rgba(10, 7, 4, 0.7); }
@keyframes hb-cure-glow { to { box-shadow: 0 0 34px rgba(255, 90, 60, 0.75); } }

/* Bigger kiosk text, smaller camera (owner, 2026-10-27). */
.k-scan { grid-template-columns: minmax(150px, 24%) 1fr; }
.k-status-inner { width: min(640px, 100%); gap: 12px; }
.k-title { font-size: 46px; }
.k-title.big { font-size: 56px; }
.k-sub { font-size: 24px; max-width: 560px; }
.k-need { font-size: 20px; }
.k-status-inner .btn { font-size: 18px; min-height: 52px; padding-left: 22px; padding-right: 22px; }
.k-fly-pumpkin { position: fixed; z-index: 150; font-size: 80px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 16px rgba(255, 140, 40, 0.9)); animation: k-fly 1.4s cubic-bezier(0.3, 0.1, 0.6, 1) forwards; }
@keyframes k-fly {
  0% { transform: translate(0, 0) scale(0.2) rotate(0deg); opacity: 0; }
  12% { transform: translate(10px, -50px) scale(1.2) rotate(-20deg); opacity: 1; }
  55% { transform: translate(calc(var(--fly-x) * 0.6), calc(var(--fly-y) * 0.6 - 120px)) scale(1.1) rotate(220deg); }
  78% { transform: translate(var(--fly-x), var(--fly-y)) scale(1) rotate(360deg); opacity: 1; }
  88% { transform: translate(var(--fly-x), var(--fly-y)) scale(1.6) rotate(360deg); opacity: 0.9; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) scale(2.4) rotate(360deg); opacity: 0; }
}

/* The iPad's looping reveal: no header or controls, everything bigger. */
.rv-stage.rv-loop { grid-template-rows: 1fr; padding: 3vh 3vw; cursor: none; }
.rv-loop .rv-center { width: min(1400px, 100%); gap: 2vh; zoom: 1.1; }
.rv-loop .rv-title { font-size: clamp(44px, 7vw, 96px); }
.rv-loop .rv-sub { font-size: clamp(24px, 2.6vw, 36px); max-width: 1000px; }
.rv-loop .rv-name { font-size: 26px; }
.k-reveal-frame { position: fixed; inset: 0; width: 100vw; height: 100dvh; border: 0; z-index: 400; background: #070402; }

/* ---- /hb start page: "Start a new party" (kiosk.js landing / partyReady) ---- */
.hb-landing { min-height: 100dvh; max-height: 100dvh; overflow: auto; display: grid; place-items: center; }
.hb-landing-card { width: min(520px, 100%); text-align: center; gap: 14px; }
.hb-landing-card .brand { justify-content: center; }
.hb-landing-card h1 { margin: 4px 0 0; font-size: clamp(30px, 7vw, 42px); }
.hb-landing-card .btn { width: 100%; justify-content: center; }
.hb-landing-card .chip { justify-self: center; margin: 0 auto; }
.h-newparty { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(246, 176, 79, 0.18); }

/* ---- music on a host's phone (host.js phoneMusic, dj.js "phone" mode) ---- */
.h-phone-dj { position: relative; z-index: 5; width: min(560px, calc(100% - 24px)); margin: 12px auto 0; display: grid; gap: 10px; }
.h-phone-dj-head b { display: block; color: #ffd9a0; }
.h-phone-dj-player .dj-hero { height: 200px; }
.h-dock-state.warn { color: #ff8b6b; font-weight: 700; opacity: 1; }
/* Sound refused by the browser (dj.js #checkSound): the video floats into view to be tapped. */
.k-dj.sound-blocked { position: fixed; left: auto; right: 24px; top: 50%; transform: translateY(-50%); width: 300px; max-height: 92vh; z-index: 95; box-shadow: 0 0 0 3px #ff6b57, 0 18px 50px rgba(0, 0, 0, 0.7); background: #160d06; }
.k-dj.sound-blocked .dj-list, .k-dj.sound-blocked .dj-label.sub, .k-dj.sound-blocked .dj-summary, .k-dj.sound-blocked .dj-times, .k-dj.sound-blocked .dj-progress, .k-dj.sound-blocked .dj-controls { display: none; }
.k-dj.sound-blocked .dj-start { border-color: #ff6b57; color: #fff; font-weight: 700; }
/* The music phone shows YouTube's player from the start: Safari slows down hidden players from other sites. */
.h-phone-dj .dj-hero { height: 200px; min-width: 200px; }
.h-phone-dj .dj-yt { visibility: visible; }
.h-phone-dj .dj-hero .scene, .h-phone-dj .dj-hero-text { display: none; }
/* Settings → Devices (host.js musicPhonePanel) */
.h-devices { gap: 8px; }
.h-device { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(246, 176, 79, 0.2); background: rgba(0, 0, 0, 0.25); }
.h-device.plays { border-color: #f6b04f; box-shadow: 0 0 0 1px #f6b04f inset; }
.h-jump.h-jump-kiosk { border-color: #f6b04f; color: #ffd9a0; font-weight: 700; }
.h-battery { color: #d8bf96; }
.h-battery.low { color: #ff8b6b; font-weight: 700; }
/* The music device: one clear "tap to start the music" bar (host.js touchBar). */
.h-music-touch { position: sticky; top: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px) * 0); background: #9b1c12; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.h-music-touch[hidden] { display: none; }
.h-music-touch-btn { width: 100%; justify-content: center; background: #ffd9a0; color: #2a1003; font-weight: 800; font-size: 18px; animation: hb-pulse-red 2s ease-in-out infinite; }
/* Two stacked YouTube players for crossfades (dj.js): the next song waits underneath. */
.dj-yt-deck { position: absolute; inset: 0; z-index: 1; }
.dj-yt-deck.standby { z-index: 0; opacity: 0.01; pointer-events: none; }
/* Halloween rating on each song (host.js pumpkins) */
.h-rating { display: inline-flex; gap: 0; padding: 2px 4px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 12px; line-height: 1; flex: none; }
.h-rating span { opacity: 0.18; filter: grayscale(1); }
.h-rating span.on { opacity: 1; filter: none; }
.h-rating.unrated span { opacity: 0.12; }
.h-rating:focus-visible { outline: 2px solid #f6b04f; }
/* Kiosk card list (kiosk.js renderCards): every card, tiny, on the right. */
.k-main { grid-template-columns: minmax(0, 1fr) auto minmax(250px, 27%); }
.k-main:has(> .k-dj:not(.show-dj)) { grid-template-columns: minmax(0, 1fr) auto; }
.k-cards { width: 92px; padding: 6px; display: grid; grid-template-rows: auto 1fr auto; gap: 4px; min-height: 0; overflow: hidden; font-size: 10px; line-height: 1.15; }
.k-cards[hidden] { display: none; }
.k-cards-head { color: #e9d3ac; text-align: center; letter-spacing: 0.04em; }
.k-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; align-content: start; overflow-y: auto; scrollbar-width: none; }
.k-card { display: flex; align-items: baseline; justify-content: center; gap: 1px; padding: 2px 0; border-radius: 4px; background: rgba(246, 176, 79, 0.16); color: #ffe2b0; font-variant-numeric: tabular-nums; font-weight: 700; }
.k-card i { font-style: normal; font-weight: 600; font-size: 8px; color: #9fe39a; margin-left: 1px; }
.k-card.off { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.28); font-weight: 400; }
.k-card.low { background: rgba(214, 64, 48, 0.6); color: #fff; }
.k-card.good { background: rgba(60, 160, 70, 0.6); color: #fff; }
.k-card.low i, .k-card.good i { color: #fff; }
.k-cards-key { color: rgba(255, 255, 255, 0.45); font-size: 8px; text-align: center; line-height: 1.6; }
.k-cards-key .k-card { display: inline-flex; padding: 0 2px; font-size: 8px; }
/* The role reveal, small on purpose: readable up close, not over a shoulder. */
.k-reveal.k-reveal-small { width: min(300px, 100%); padding: 10px 14px; gap: 4px; }
.k-reveal-small .k-reveal-role { font-size: 15px; letter-spacing: 0.02em; }
.k-reveal-small .k-reveal-text { font-size: 12px; max-width: 260px; line-height: 1.35; }
.k-reveal-small .eyebrow, .k-reveal-small .small { font-size: 10px; }
.k-reveal-small .k-crest { zoom: 0.45; }
/* Song rows (host.js musicTab): the title on its own full-width line, the rest small below. */
.h-qrow { align-items: center; }
.h-qbody { display: grid; gap: 0; min-width: 0; }
.h-page .h-qtitle, .h-qtitle { max-width: 100%; font-size: 14px; line-height: 1.25; }
.h-qmeta { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1; }
.h-qmeta .h-qnum { width: auto; min-width: 14px; text-align: left; }
.h-qartist { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-qmeta .h-qplays { min-width: 26px; }
.h-qmeta .h-qmore { min-height: 24px; padding: 0 8px; font-size: 16px; }
.h-qmeta .chip { padding: 1px 6px; }
/* Terminal footer: a tiny dot per host device (owner, 2026-10-29). */
.k-hosts { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 7, 4, 0.6); }
.k-host { display: inline-flex; align-items: center; gap: 2px; }
.k-host i { width: 8px; height: 8px; border-radius: 50%; background: #6b5d4b; }
.k-host.on i { background: #8fd27a; box-shadow: 0 0 6px rgba(143, 210, 122, 0.7); }
.k-host.recent i { background: #f0a24a; }
.k-host b { font-size: 11px; line-height: 1; font-weight: 400; }
.k-hosts[hidden] { display: none; }
/* Host bar: the playing song's pumpkins before its status (owner, 2026-10-29). */
.h-dock-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.h-dock-sub .h-dock-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-dock-rating { flex: none; font-size: 10px; letter-spacing: -1px; line-height: 1; }
.h-dock-rating:empty { display: none; }
