*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #121212;
  --bar: #1d1d1d;
  --panel: #1d1d1d;
  --panel2: #2a2a2a;
  --line: #3a3a3a;
  --text: #ffffff;
  --muted: #b5b5b5;
  --dim: #808080;
  --accent: #4051b5;
  --accent-hi: #5468d4;
  --blue: #3369e8;
  --red: #d50f25;
  --yellow: #eeb211;
  --green: #009925;
  --bar-h: 48px;
  --font: Roboto, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ── Top bar ── */
.top {
  position: sticky; top: 0; z-index: 20; min-height: var(--bar-h);
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 4px 12px;
  background: var(--bar); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 25%, var(--red) 0 50%, var(--yellow) 0 75%, var(--green) 0);
  box-shadow: inset 0 0 0 7px var(--bar), inset 0 0 0 9px #fff;
  background-clip: border-box;
}
.brand b { font-size: 1.25rem; font-weight: 500; }
.brand small { color: var(--dim); font-size: 0.82rem; }

.tabs { display: flex; gap: 2px; margin-left: 10px; }
.tab {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 4px;
  background: transparent; color: var(--muted); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
}
.tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tab.on { background: var(--accent); color: #fff; }
.tab .n { font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.tab .live { width: 8px; height: 8px; border-radius: 50%; background: #ff5252; animation: pulse 0.9s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.top-links { display: flex; gap: 2px; margin-left: auto; }
.top-links a, .bar-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 0; border-radius: 4px;
  background: transparent; color: #fff; font-weight: 500; font-size: 0.86rem; text-decoration: none;
}
.top-links a:hover, .bar-btn:hover { background: rgba(255, 255, 255, 0.1); }
.top-tools { display: flex; align-items: center; gap: 4px; }
.pill { font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.pill.warn { color: var(--yellow); }

/* ── Wheel + side panel: fills the first screen ── */
.app {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 10px;
  height: calc(100vh - var(--bar-h)); min-height: 520px; padding: 10px;
}
.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.wheel-wrap { position: relative; width: min(100%, calc(100vh - var(--bar-h) - 64px)); aspect-ratio: 1; }
.wheel-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.wheel-wrap.can-spin canvas, .wheel-wrap.can-spin .hub { cursor: pointer; }

.pointer {
  position: absolute; right: -3.2%; top: 50%; width: 8%; aspect-ratio: 1.15; transform: translateY(-50%);
  background: linear-gradient(160deg, #f4f4f4, #a9a9a9); clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(-2px 3px 3px rgba(0, 0, 0, 0.6)); transform-origin: 100% 50%;
}
.pointer.kick { animation: kick 0.09s ease-out; }
@keyframes kick { 50% { transform: translateY(-50%) rotate(-10deg); } }

.hub {
  position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); cursor: default; padding: 0;
}

.stage-note { color: var(--dim); font-size: 0.82rem; text-align: center; min-height: 1.3em; margin-top: 10px; }

/* ── Empty wheel ── */
.empty { width: min(100%, 620px); text-align: center; padding: 40px 28px; }
.empty .big {
  display: block; width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--blue) 0 25%, var(--red) 0 50%, var(--yellow) 0 75%, var(--green) 0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55); animation: idle 14s linear infinite; opacity: 0.9;
}
.empty .big::after { content: ''; position: absolute; inset: 42%; border-radius: 50%; background: #fff; }
@keyframes idle { to { transform: rotate(360deg); } }
.empty h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 32em; margin: 0 auto; font-size: 1.02rem; }
.cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px;
  padding: 6px 16px; border-radius: 4px; border: 1px solid transparent; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: background 0.15s;
}
.btn:hover:not(:disabled) { background: var(--accent-hi); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.btn.small { min-height: 30px; padding: 3px 10px; font-size: 0.8rem; }
.btn.wide { width: 100%; min-height: 44px; font-size: 1rem; }

/* ── Side panel ── */
.side { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); border-radius: 4px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); overflow: hidden; }
.ptabs { display: flex; flex: none; border-bottom: 1px solid var(--line); }
.ptab { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 0.86rem; border-bottom: 2px solid transparent; }
.ptab:hover { color: #fff; }
.ptab.on { color: #fff; border-bottom-color: #fff; }
.ptab .n { font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; background: var(--panel2); }
.pbody { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li, .results .row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.entries li:last-child, .results .row:last-child { border-bottom: 0; }
.entries .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.who { min-width: 0; flex: 1; }
.who b { display: block; font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b a { text-decoration: none; }
.who b a:hover { text-decoration: underline; }
.who small { display: block; color: var(--dim); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entries li.won b { color: var(--yellow); }
.none { color: var(--dim); font-size: 0.88rem; padding: 10px 4px; border: 0; }
.x-btn { flex: none; width: 24px; height: 24px; border-radius: 4px; border: 0; background: transparent; color: var(--dim); font-size: 0.8rem; line-height: 1; }
.x-btn:hover { color: #fff; background: var(--red); }

.badge { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.badge.steam { background: #1b2838; color: #9fd2f7; }
.badge.itch { background: #fa5c5c; color: #fff; }
.badge.youtube { background: #c4302b; color: #fff; }
.badge.wheel { background: rgba(0, 0, 0, 0.6); color: #fff; }

/* ── Game card (current pick, modal, history) ── */
.game { display: flex; flex-direction: column; background: var(--panel); border-radius: 4px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); overflow: hidden; min-width: 0; }
.side .game { flex: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.side .game .cover { aspect-ratio: 460 / 150; }
.side .game .desc, .side .game .chips, .side .game .facts { display: none; }
.game .now-label { background: var(--accent); color: #fff; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; }
.cover { position: relative; aspect-ratio: 460 / 215; background: #2a2a2a; display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ph { font-size: 2.4rem; opacity: 0.5; }
.cover .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.game .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.game h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.game h3 a { text-decoration: none; }
.game h3 a:hover { text-decoration: underline; }
.by { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.84rem; min-width: 0; }
.by img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.by time { color: var(--dim); margin-left: auto; white-space: nowrap; font-size: 0.78rem; }
.desc { color: var(--muted); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.facts { color: var(--dim); font-size: 0.78rem; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips span { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.game .foot-row { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.game .foot-row .open { margin-left: auto; font-size: 0.82rem; font-weight: 500; color: #9fb4ff; text-decoration: none; white-space: nowrap; }
.game .foot-row .open:hover { text-decoration: underline; }

.votes { display: inline-flex; gap: 6px; flex: none; }
.vote { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 4px; background: var(--panel2); border: 1px solid transparent; font-weight: 500; font-size: 0.86rem; color: #fff; }
.vote:hover { border-color: var(--line); background: #333; }
.vote.up.on { background: rgba(0, 153, 37, 0.25); border-color: #2ecc55; color: #6fe38a; }
.vote.down.on { background: rgba(213, 15, 37, 0.25); border-color: #ff5a6c; color: #ff8a97; }
.votes.big .vote { padding: 10px 22px; font-size: 1.1rem; }
.results .votes .vote { padding: 2px 7px; font-size: 0.78rem; }

/* ── Admin (bottom of the side panel) ── */
.admin { flex: none; border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.admin .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin textarea, .admin input[type="text"], .foot input {
  width: 100%; background: #121212; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 0.86rem;
}
.admin textarea { min-height: 60px; resize: vertical; }
.admin textarea:focus, .admin input:focus, .foot input:focus { outline: 2px solid var(--accent-hi); outline-offset: 0; }
.admin details summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; }
.admin details .grid { display: grid; grid-template-columns: 76px 1fr; gap: 6px; align-items: center; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.admin .hint { color: var(--dim); font-size: 0.76rem; overflow-wrap: anywhere; }
.admin .spacer { flex: 1; }

/* ── Below the fold ── */
main { padding-bottom: 30px; }
.disclaimer { max-width: 1240px; margin: 14px auto 0; padding: 12px 16px; border-radius: 4px; font-size: 0.9rem; color: var(--muted); background: rgba(213, 15, 37, 0.1); border-left: 4px solid var(--red); }
.disclaimer b { color: #ff8a97; }
.history { max-width: 1240px; margin: 34px auto 0; padding: 0 10px; }
.disclaimer { width: calc(100% - 20px); }
.history-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.history-head h2 { font-size: 1.5rem; font-weight: 500; margin-right: auto; }
.seg { display: inline-flex; background: var(--panel); border-radius: 4px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 0.82rem; padding: 5px 11px; border-radius: 3px; }
.seg button.on { background: var(--accent); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cards .none { grid-column: 1 / -1; text-align: center; padding: 30px 10px; }
.game .del { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.more { display: flex; margin: 18px auto 0; }

.foot { max-width: 1240px; margin: 0 auto; padding: 14px 10px 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 0.78rem; }
.foot form { display: flex; gap: 6px; }
.foot input { width: 190px; padding: 5px 9px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--dim); font-size: 0.78rem; text-decoration: underline; margin-left: auto; }

/* ── Winner dialog ── */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); overflow-y: auto; }
.modal .box { width: min(100%, 540px); background: #1d1d1d; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7); animation: pop 0.25s ease-out; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.modal .shout { padding: 14px 18px; font-size: 1.25rem; font-weight: 500; background: var(--blue); color: #fff; }
.modal .shout.dark { color: #000; }
.modal .game { box-shadow: none; border-radius: 0; }
.modal .game h3 { font-size: 1.7rem; font-weight: 500; }
.modal .desc { -webkit-line-clamp: 5; }
.modal .ask { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.modal .vote-row { display: flex; justify-content: center; }
.modal .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 10px 14px 14px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); z-index: 70; opacity: 0; pointer-events: none; background: #323232; color: #fff; font-size: 0.88rem; padding: 10px 16px; border-radius: 4px; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #8c1420; }

/* ── Small screens: wheel on top, panel below ── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .wheel-wrap { width: min(100%, 78vh); }
  .side { max-height: 70vh; }
  .top-links { display: none; }
  .tabs { margin-left: 0; order: 3; width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .top-tools { margin-left: auto; }
  .brand small { display: none; }
}

/* ── Stream overlay: /?overlay=games — just the wheel, transparent page ── */
body.overlay { background: transparent; }
body.overlay .top, body.overlay .side, body.overlay .history, body.overlay .foot,
body.overlay .disclaimer, body.overlay .stage-note, body.overlay .empty { display: none !important; }
body.overlay .app { grid-template-columns: 1fr; height: 100vh; padding: 20px 40px; }
body.overlay .wheel-wrap { width: min(100%, calc(100vh - 40px)); }

@media (prefers-reduced-motion: reduce) {
  .empty .big, .tab .live, .modal .box { animation: none; }
}

/* ── House style: black stage, red curtains, the channel avatar as the hub ── */
:root {
  --bg: #000000;
  --bar: #0a0a0a;
  --panel: #0d0d0d;
  --panel2: #1c1c1c;
  --line: #2a2a2a;
  --gold: #d4a52a;
}
.top { border-bottom: 1px solid #1a1a1a; }
.side, .game { border: 1px solid #1c1c1c; }
.modal .box { background: #0d0d0d; border: 1px solid #2a2a2a; }
.admin textarea, .admin input[type="text"], .foot input { background: #000; }

.brand-mark { background: #000 url(avatar.jpg) center / cover; box-shadow: 0 0 0 2px #fff; }
.hub { width: 30%; background: #000 url(avatar.jpg) center / cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 3px 12px rgba(0, 0, 0, 0.6); }
.wheel-wrap canvas { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8)); }

/* The stage: a spotlit black box the wheel stands in. */
.stage {
  overflow: hidden; border-radius: 4px; padding-top: 46px;
  background:
    radial-gradient(ellipse 60% 22% at 50% 100%, rgba(255, 220, 160, 0.10), transparent 70%),
    radial-gradient(ellipse 55% 60% at 50% 46%, #242018 0%, #0a0908 55%, #000 100%);
}
.wheel-wrap { width: min(100%, calc(100vh - var(--bar-h) - 112px)); }
.wheel-wrap, .empty, .stage-note { position: relative; z-index: 2; }

/* Curtains. The folds are sized in % of the curtain, so they bunch up as it
   is drawn aside. Open: gathered at the edge and tied back. Closed: each
   panel covers half the stage. */
.curtain {
  position: absolute; top: 0; bottom: 0; width: 17%; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 13%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.72) 100%),
    repeating-linear-gradient(90deg,
      #220206 0%, #5d0811 1.3%, #a51322 2.6%, #d42a3c 3.5%, #a51322 4.4%, #6a0a14 5.6%, #220206 7.143%);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.95));
  transition: width 2.6s cubic-bezier(0.65, 0.02, 0.3, 1), clip-path 2.6s cubic-bezier(0.65, 0.02, 0.3, 1);
}
.curtain.left { left: 0; clip-path: polygon(0 0, 100% 0, 98% 18%, 90% 42%, 70% 64%, 46% 79%, 40% 84%, 58% 100%, 0 100%); }
.curtain.right { right: 0; clip-path: polygon(100% 0, 0 0, 2% 18%, 10% 42%, 30% 64%, 54% 79%, 60% 84%, 42% 100%, 100% 100%); }
/* gold fringe along the hem */
.curtain::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(90deg, #f3d77a 0 2px, #b8891c 2px 4px, #7a5a10 4px 5px);
  border-top: 4px solid var(--gold); box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
}
/* tie-back rope where the curtain is pinched */
.curtain::before {
  content: ''; position: absolute; top: 80%; height: 13px; width: 52%; border-radius: 7px; z-index: 1;
  background: repeating-linear-gradient(115deg, #f3d77a 0 4px, #b8891c 4px 8px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7); transition: opacity 0.8s 1.6s;
}
.curtain.left::before { left: 0; transform: rotate(8deg); }
.curtain.right::before { right: 0; transform: rotate(-8deg); }

.stage.closed .curtain { width: 50.6%; }
.stage.closed .curtain.left { clip-path: polygon(0 0, 100% 0, 100% 18%, 100% 42%, 100% 64%, 100% 79%, 100% 84%, 100% 100%, 0 100%); }
.stage.closed .curtain.right { clip-path: polygon(100% 0, 0 0, 0 18%, 0 42%, 0 64%, 0 79%, 0 84%, 0 100%, 100% 100%); }
.stage.closed .curtain::before { opacity: 0; transition: opacity 0.3s; }
.stage.closed .stage-note { visibility: hidden; }

/* Valance: a row of swags with a gold edge, hung across the top. */
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, #4a060d 0, #7d0c18 14px, transparent 14px),
    radial-gradient(ellipse 50% 100% at 50% 0%, #c21a2b 0%, #8a0e1b 45%, #4a060d 88%, var(--gold) 89%, var(--gold) 96%, transparent 97%);
  background-size: 100% 100%, 150px 64px; background-repeat: no-repeat, repeat-x; background-position: 0 0, 50% 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.8));
}

/* What viewers read on the closed curtains. */
.closed-card {
  position: absolute; z-index: 5; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(88%, 560px); text-align: center; padding: 30px 26px;
  background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(212, 165, 42, 0.55); border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.closed-card img { width: 92px; height: 92px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); margin-bottom: 14px; }
.closed-card h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.closed-card p { color: var(--muted); font-size: 1rem; }

.curtain-note {
  position: absolute; z-index: 5; top: 70px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; font-weight: 700; font-size: 0.82rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.btn.go { background: #1f9d3a; }
.btn.go:hover:not(:disabled) { background: #27b846; }

@media (max-width: 900px) {
  .stage { padding: 70px 0 14px; }
  .curtain { width: 11%; }
  .valance { background-size: 100% 100%, 96px 50px; height: 50px; }
}
body.overlay .stage { background: none; padding: 0; }
body.overlay .curtain, body.overlay .valance, body.overlay .closed-card, body.overlay .curtain-note { display: none !important; }
@media (prefers-reduced-motion: reduce) { .curtain { transition: none; } }

/* ── Header: everything centred; xkoster is lowercase ── */
.top { justify-content: center; }
.tabs, .top-links { margin-left: 0; }
.brand b { text-transform: lowercase; letter-spacing: 0.01em; }

/* ── Carnival rim: a ring of bulbs that chase around the wheel ── */
.wheel-wrap canvas { inset: 5.2%; width: 89.6%; height: 89.6%; }
.rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 62.5%, #5a0710 63%, #a3111f 66%, #6d0a15 69.5%, #2a0308 70.7%);
  box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 3px #3a2a06, 0 14px 34px rgba(0, 0, 0, 0.85);
}
.rim i {
  position: absolute; width: 2.5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9a0 45%, #b8891c 100%);
  animation: bulb 1.1s steps(1) infinite;
}
.rim i.b { animation-delay: 0.55s; }
@keyframes bulb {
  0% { box-shadow: 0 0 10px 3px rgba(255, 222, 120, 0.95), 0 0 22px 8px rgba(255, 190, 60, 0.5); filter: brightness(1.15); }
  50% { box-shadow: none; filter: brightness(0.38); }
}
.wheel-wrap.spinning .rim i { animation-duration: 0.26s; }
.wheel-wrap.spinning .rim i.b { animation-delay: 0.13s; }
.pointer { right: 1.6%; z-index: 2; }
.hub { z-index: 2; }
.wheel-wrap.pull { animation: pull 0.9s cubic-bezier(0.2, 1.2, 0.35, 1); }
@keyframes pull { from { transform: translateY(-115%) rotate(-40deg); } }

/* Bonus round: hotter lights, coloured bulbs and a lit sign. */
body.bonus .rim { background: radial-gradient(circle, transparent 62.5%, #5a3d00 63%, #f0c23a 66%, #b8891c 69.5%, #3a2a06 70.7%); }
body.bonus .rim i { animation-duration: 0.5s; }
body.bonus .rim i.b { animation-delay: 0.25s; background: radial-gradient(circle at 35% 30%, #fff, #ff8a97 45%, #d50f25 100%); }
body.bonus .wheel-wrap.spinning .rim i { animation-duration: 0.16s; }
body.bonus .wheel-wrap.spinning .rim i.b { animation-delay: 0.08s; }
body.bonus .stage { background:
    radial-gradient(ellipse 60% 22% at 50% 100%, rgba(255, 200, 80, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 60% at 50% 46%, #3a2a10 0%, #120c05 55%, #000 100%); }
.marquee {
  position: relative; z-index: 2; margin-bottom: 8px; padding: 6px 22px; border-radius: 8px;
  background: #1a0306; border: 3px solid var(--gold); box-shadow: 0 0 18px rgba(255, 200, 80, 0.45), inset 0 0 12px rgba(0, 0, 0, 0.8);
  font-weight: 900; font-size: clamp(1.1rem, 2.6vw, 1.9rem); letter-spacing: 0.14em; white-space: nowrap;
}
.marquee span { display: inline-block; color: #ffe9a0; animation: sign 1.4s ease-in-out infinite; }
@keyframes sign {
  0%, 100% { text-shadow: 0 0 6px #ffcf5a, 0 0 18px #ff9d2e; color: #fff6d6; }
  50% { text-shadow: none; color: #8a6a22; }
}
body.bonus .wheel-wrap { width: min(100%, calc(100vh - var(--bar-h) - 166px)); }
.stage.closed .marquee { visibility: hidden; }
body.overlay .marquee { display: none !important; }
@media (prefers-reduced-motion: reduce) { .rim i, .marquee span { animation: none; } }

/* ── History: a plain log; "well liked" keeps the cards ── */
.liked-note { color: var(--dim); font-size: 0.82rem; margin-right: auto; }
#likedSection .history-head h2 { margin-right: 0; }
.log { background: var(--panel); border: 1px solid #1c1c1c; border-radius: 4px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.log-row:last-child { border-bottom: 0; }
.log-row time { flex: none; width: 104px; color: var(--dim); font-size: 0.8rem; white-space: nowrap; }
.log-row .lw { flex: none; width: 20px; text-align: center; }
.log-row .who { display: flex; align-items: baseline; gap: 10px; }
.log-row .who b { flex: 0 1 auto; }
.log-row .who small { flex: 1 1 0; min-width: 60px; }
.log-row .votes .vote { padding: 2px 8px; font-size: 0.8rem; }
.log .none { text-align: center; padding: 22px 10px; }
@media (max-width: 620px) {
  .log-row { flex-wrap: wrap; gap: 6px 10px; }
  .log-row time { width: auto; }
  .log-row .who { flex-basis: 100%; order: 3; }
}

/* ── Brand icons on the Discord / Twitch / YouTube links ── */
.ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.top-links a { gap: 7px; }
.top-links .ico.discord { fill: #7983f5; }
.top-links .ico.twitch { fill: #a970ff; }
.top-links .ico.youtube { fill: #ff3b3b; }
.btn .ico { width: 19px; height: 19px; }
.btn.ghost .ico.twitch { fill: #a970ff; }
.btn.ghost .ico.youtube { fill: #ff3b3b; }
@media (max-width: 900px) { .top-links { display: flex; order: 4; width: 100%; justify-content: center; } }

/* ── No header, no sidebar: the stage is the whole first screen ── */
:root { --bar-h: 0px; --serif: Georgia, 'Times New Roman', 'PT Serif', serif; }
.app { display: block; height: 100vh; min-height: 480px; padding: 0; }
.stage { height: 100%; border-radius: 0; padding: 70px 0 16px; }
.wheel-wrap { width: min(92%, calc(100vh - 150px)); }
body.bonus .wheel-wrap { width: min(92%, calc(100vh - 208px)); }

.corner { position: absolute; z-index: 6; right: 12px; top: 72px; display: flex; align-items: center; gap: 4px; }
.corner .bar-btn { height: 30px; padding: 0 9px; font-size: 0.78rem; background: rgba(0, 0, 0, 0.55); color: var(--muted); }
.corner .bar-btn:hover { color: #fff; background: rgba(0, 0, 0, 0.8); }
.corner .pill { background: rgba(0, 0, 0, 0.55); }

.dock {
  position: absolute; z-index: 6; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px; background: rgba(0, 0, 0, 0.72); border: 1px solid #2a2a2a; border-radius: 6px;
}
.dock .tabs { margin: 0; }
.dock .tab { height: 34px; }
.dock-btns { display: inline-flex; gap: 6px; }

.below { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.history, .disclaimer { max-width: none; width: auto; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.disclaimer { padding: 12px 16px; margin-top: 22px; }
.history-head h2 { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.01em; }

#current:not(:empty) { margin-top: 22px; }
#current .game { flex-direction: row; border: 1px solid #2a2a2a; }
#current .game .now-label { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding: 10px 7px; background: var(--gold); color: #000; font-weight: 700; }
#current .game .cover { flex: 0 0 min(38%, 360px); aspect-ratio: auto; min-height: 150px; }
#current .game .desc, #current .game .chips, #current .game .facts { display: revert; }
#current .game .desc { display: -webkit-box; }

.manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.manage .side { max-height: 460px; }
.manage .admin { border: 1px solid #1c1c1c; border-radius: 4px; background: var(--panel); }

.foot { max-width: 1120px; padding: 26px 16px 34px; border-top: 1px solid #1c1c1c; margin-top: 40px; }
.foot .top-links { display: flex; margin: 0; gap: 4px; }
.foot .top-links a { color: var(--muted); padding: 0 10px; }
.foot .top-links a:hover { color: #fff; }
.foot-note { flex: 1; min-width: 200px; }
.link-btn { margin-left: 0; }

/* ── The notice on the closed curtains: a printed playbill ── */
.closed-card {
  width: min(94%, 940px); padding: 30px 40px 24px; text-align: left; border: 0; border-radius: 2px;
  background: #efe6d2; color: #17110a; top: 54%; transform: translate(-50%, -50%) rotate(-1.1deg);
  box-shadow: 0 2px 0 #cfc3a6, 0 22px 60px rgba(0, 0, 0, 0.8); outline: 1px solid rgba(23, 17, 10, 0.55); outline-offset: -9px;
}
.bill-top {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 3px double #17110a;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.bill-top span:first-child { text-transform: lowercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.bill-main { display: flex; align-items: center; gap: 30px; padding: 26px 0 24px; }
.closed-card .bill-main img { width: 132px; height: 132px; margin: 0; border-radius: 50%; box-shadow: 0 0 0 3px #efe6d2, 0 0 0 5px #17110a; flex: none; filter: saturate(0.9); }
.closed-card h1 { font-family: var(--serif); font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; }
.closed-card p { color: #3d3122; font-size: 1.06rem; line-height: 1.45; max-width: 34em; }
.bill-links { display: flex; flex-wrap: wrap; border-top: 1px solid #17110a; border-bottom: 1px solid #17110a; }
.bill-links a { flex: 1 1 180px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: #17110a; text-decoration: none; border-right: 1px solid rgba(23, 17, 10, 0.35); }
.bill-links a:last-child { border-right: 0; }
.bill-links a:hover { background: #17110a; color: #efe6d2; }
.bill-links .ico { width: 26px; height: 26px; }
.bill-links b { display: block; font-size: 1rem; line-height: 1.15; }
.bill-links small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.closed-card .bill-fine { font-family: var(--serif); font-style: italic; font-size: 0.86rem; color: #5a4a36; margin-top: 12px; max-width: none; }

@media (max-width: 700px) {
  .closed-card { padding: 22px 22px 18px; transform: translate(-50%, -50%); }
  .bill-main { gap: 16px; padding: 18px 0; }
  .closed-card .bill-main img { width: 76px; height: 76px; }
  .bill-top span:last-child { display: none; }
  .manage-grid { grid-template-columns: 1fr; }
  #current .game { flex-direction: column; }
  #current .game .now-label { writing-mode: horizontal-tb; transform: none; }
  .dock { right: 12px; }
}
body.overlay .corner, body.overlay .dock, body.overlay .below { display: none !important; }
body.overlay .stage { height: 100vh; }

/* ══ Pixel dungeon skin ═══════════════════════════════════════════════════════
   An old-school RPG look: stone wall, torches, hard pixel edges, black boxes
   with white frames, bitmap fonts. Everything above still does the layout. */
@font-face { font-family: 'Pixelify Sans'; src: url(fonts/pixelify.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url(fonts/press.ttf) format('truetype'); font-display: swap; }

:root {
  --font: 'Pixelify Sans', 'Segoe UI', system-ui, sans-serif;
  --head: 'Press Start 2P', 'Pixelify Sans', monospace;
  --serif: var(--head);
  --panel: #000; --panel2: #1a1a1a; --line: #fff; --gold: #feae34; --accent: #000; --accent-hi: #000;
  --muted: #c8c8c8; --dim: #8a8a8a;
}
body { font-size: 18px; letter-spacing: 0.01em; -webkit-font-smoothing: none; }
*, *::before, *::after { border-radius: 0 !important; }
.hub, .brand-mark, .closed-card .bill-main img, .by img { border-radius: 50% !important; }
img, .hub { image-rendering: pixelated; }

/* stone wall + floor */
.stage, body.bonus .stage, .app .stage {
  background-color: #120e1c;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(180deg, transparent calc(100% - 84px), #0a0810 calc(100% - 84px), #0a0810 calc(100% - 76px), #241d33 calc(100% - 76px), #1a1526 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' shape-rendering='crispEdges'%3E%3Crect width='64' height='32' fill='%230d0a15'/%3E%3Crect x='1' y='1' width='30' height='14' fill='%232e2740'/%3E%3Crect x='1' y='1' width='30' height='1' fill='%23463c5c'/%3E%3Crect x='33' y='1' width='30' height='14' fill='%23282138'/%3E%3Crect x='33' y='1' width='30' height='1' fill='%233d3452'/%3E%3Crect x='-15' y='17' width='30' height='14' fill='%232a2339'/%3E%3Crect x='17' y='17' width='30' height='14' fill='%23322a46'/%3E%3Crect x='17' y='17' width='30' height='1' fill='%234a4062'/%3E%3Crect x='49' y='17' width='30' height='14' fill='%232a2339'/%3E%3Crect x='49' y='17' width='15' height='1' fill='%233d3452'/%3E%3Crect x='0' y='17' width='15' height='1' fill='%233d3452'/%3E%3Crect x='22' y='22' width='3' height='2' fill='%23211b2e'/%3E%3Crect x='40' y='6' width='2' height='3' fill='%23211b2e'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 128px 64px; background-repeat: no-repeat, no-repeat, repeat; background-position: 0 0, 0 0, 0 0;
  image-rendering: pixelated;
}
body.bonus .stage { background-color: #1c1408; }
body.overlay .stage { background: none !important; }

/* torches: a few pixels of fire on a bracket, with a flickering glow */
.torch { position: absolute; z-index: 1; top: 30%; width: 6px; height: 6px; pointer-events: none; }
.torch.l { left: 23%; }
.torch.r { right: 23%; }
.torch i { position: absolute; left: 0; top: 0; width: 6px; height: 6px; animation: flame 0.42s steps(1) infinite; }
.torch.r i { animation-delay: 0.2s; }
@keyframes flame {
  0% { box-shadow: -6px 0 #f77622, 0 0 #feae34, 6px 0 #f77622, -6px -6px #f77622, 0 -6px #fff3a8, 6px -6px #f77622, -6px -12px #e43b44, 0 -12px #feae34, 6px -12px #f77622, 0 -18px #f77622, 6px -18px #e43b44, 0 -24px #e43b44; }
  50% { box-shadow: -6px 0 #f77622, 0 0 #feae34, 6px 0 #f77622, -6px -6px #f77622, 0 -6px #fff3a8, 6px -6px #f77622, -6px -12px #f77622, 0 -12px #feae34, 6px -12px #e43b44, -6px -18px #e43b44, 0 -18px #f77622, -6px -24px #e43b44; }
}
.torch::after { content: ''; position: absolute; left: -9px; top: 6px; width: 24px; height: 6px; background: #8b5a2b; box-shadow: 6px 6px 0 0 #5c3a1a, 6px 12px 0 0 #5c3a1a, 6px 18px 0 0 #3d2610, 0 0 0 0 #000; clip-path: none; }
.torch::before { content: ''; position: absolute; left: -150px; top: -160px; width: 306px; height: 306px; border-radius: 50% !important; background: radial-gradient(circle, rgba(255, 150, 50, 0.3), rgba(255, 120, 30, 0.1) 40%, transparent 68%); animation: glow 0.42s steps(1) infinite; }
@keyframes glow { 50% { opacity: 0.72; transform: scale(0.95); } }
.stage.closed .torch { display: none; }

/* curtains in flat bands, no soft shading */
.curtain {
  filter: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0 6%, transparent 6% 78%, rgba(0, 0, 0, 0.35) 78% 90%, rgba(0, 0, 0, 0.6) 90%),
    repeating-linear-gradient(90deg, #3d060c 0 1.4%, #7d0c18 1.4% 2.9%, #b81626 2.9% 4.2%, #e43b44 4.2% 4.9%, #b81626 4.9% 5.8%, #7d0c18 5.8% 7.143%);
}
.curtain::after { height: 18px; border-top: 6px solid #feae34; background: repeating-linear-gradient(90deg, #feae34 0 6px, #b86f00 6px 12px); box-shadow: none; }
.curtain::before { height: 12px; background: repeating-linear-gradient(90deg, #feae34 0 6px, #b86f00 6px 12px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5); }
.valance {
  height: 54px; filter: none;
  background:
    linear-gradient(180deg, #3d060c 0 12px, #7d0c18 12px 30px, transparent 30px),
    repeating-linear-gradient(90deg, #b81626 0 60px, transparent 60px 72px),
    repeating-linear-gradient(90deg, #feae34 0 60px, transparent 60px 72px);
  background-size: 100% 100%, 100% 42px, 100% 48px; background-repeat: no-repeat; background-position: 0 0, 0 0, 0 0;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
}
.valance::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(180deg, #3d060c 0 12px, #7d0c18 12px 30px); }

/* wheel frame, lamps, pointer, hub */
.wheel-wrap canvas { filter: none; }
.rim { background: radial-gradient(circle, transparent 62.6%, #000 62.6% 63.4%, #7d0c18 63.4% 69.4%, #000 69.4% 70.7%); box-shadow: none; }
body.bonus .rim { background: radial-gradient(circle, transparent 62.6%, #000 62.6% 63.4%, #b86f00 63.4% 69.4%, #000 69.4% 70.7%); }
.rim i, body.bonus .rim i.b { width: 2.3%; background: #fff3a8; animation-name: lamp; box-shadow: 0 0 0 2px #000; }
@keyframes lamp { 0% { background: #fff3a8; box-shadow: 0 0 0 2px #000, 0 0 12px 4px rgba(255, 220, 110, 0.75); } 50% { background: #6b4a12; box-shadow: 0 0 0 2px #000; } }
body.bonus .rim i.b { animation-name: lamp2; }
@keyframes lamp2 { 0% { background: #ff8a97; box-shadow: 0 0 0 2px #000, 0 0 12px 4px rgba(255, 90, 110, 0.75); } 50% { background: #5a0710; box-shadow: 0 0 0 2px #000; } }
.pointer { background: #fff; filter: none; clip-path: polygon(0 50%, 25% 50%, 25% 37.5%, 50% 37.5%, 50% 25%, 75% 25%, 75% 12.5%, 100% 12.5%, 100% 87.5%, 75% 87.5%, 75% 75%, 50% 75%, 50% 62.5%, 25% 62.5%, 25% 50%); box-shadow: none; }
.hub { box-shadow: 0 0 0 4px #000, 0 0 0 8px #fff, 0 0 0 12px #000; }

/* boxes: black, white frame */
.game, .log, .manage .side, .manage .admin, .modal .box, .dock, .toast, .seg { background: #000; border: 4px solid #fff; box-shadow: none; }
.side .game, #current .game { border: 4px solid #fff; }
.modal { background: rgba(0, 0, 0, 0.78); }
.modal .shout { font-family: var(--head); font-size: 0.95rem; line-height: 1.5; border-bottom: 4px solid #fff; }
.modal .game { border: 0; }
.game h3, .history-head h2, .closed-card h1, .empty h1 { font-family: var(--head); font-weight: 400; letter-spacing: 0; }
.game h3 { font-size: 0.82rem; line-height: 1.55; }
.modal .game h3 { font-size: 1.15rem; line-height: 1.5; }
.history-head h2 { font-size: 1.05rem; }
.history-head h2::before { content: '* '; color: var(--gold); }
.game .now-label, #current .game .now-label { font-family: var(--head); font-size: 0.62rem; background: #fff; color: #000; }
.cover { background: #1a1526; border-bottom: 4px solid #fff; }
#current .game .cover { border-bottom: 0; border-right: 4px solid #fff; }
.badge { border: 2px solid #000; font-family: var(--font); font-size: 0.72rem; }
.chips span { background: #000; border: 2px solid #5a5a5a; color: var(--muted); }

.btn, .seg button, .tab, .vote, .bar-btn, .ptab, .x-btn { font-family: var(--font); }
.btn { background: #000; color: #fff; border: 3px solid #fff; box-shadow: none; font-size: 1rem; font-weight: 700; transition: none; }
.btn:hover:not(:disabled), .btn.ghost:hover:not(:disabled) { background: #000; color: var(--gold); border-color: var(--gold); }
.btn:hover:not(:disabled)::before { content: '\25B6'; font-size: 0.7em; margin-right: 2px; }
.btn.ghost { border-color: #8a8a8a; color: var(--muted); }
.btn.go { background: #000; border-color: var(--gold); color: var(--gold); }
.btn.go:hover:not(:disabled) { background: var(--gold); color: #000; }
.btn.wide { font-size: 1.1rem; }
.seg { padding: 0; border-width: 3px; }
.seg button { font-size: 0.95rem; }
.seg button.on, .tab.on { background: #fff; color: #000; }
.tab { font-size: 0.95rem; font-weight: 700; }
.tab .n { background: transparent; border: 2px solid currentColor; }
.vote { background: #000; border: 3px solid #5a5a5a; font-weight: 700; }
.vote:hover { background: #000; border-color: #fff; }
.vote.up.on { background: #000; border-color: #63c74d; color: #63c74d; }
.vote.down.on { background: #000; border-color: #e43b44; color: #e43b44; }
.ptab.on { border-bottom-color: var(--gold); color: var(--gold); }
.ptabs { border-bottom: 4px solid #fff; }
.entries li, .results .row, .log-row { border-bottom: 2px dashed #3a3a3a; }
.entries .dot { border: 2px solid #fff; }
.log-row time { width: 128px; font-size: 0.9rem; }
.admin textarea, .admin input[type="text"], .foot input { border: 3px solid #fff; font-family: var(--font); font-size: 1rem; }
.admin { border-top: 0; }
.corner .bar-btn { border: 2px solid #5a5a5a; background: #000; }
.corner .bar-btn:hover { border-color: #fff; background: #000; }
.pill { background: #000 !important; border: 2px solid #5a5a5a; }
.curtain-note { font-family: var(--head); font-size: 0.6rem; background: var(--gold); border: 3px solid #000; padding: 8px 12px; }
.stage-note { font-size: 0.95rem; color: #9a93ab; }
.disclaimer { background: #000; border: 4px dashed #e43b44; border-left: 4px dashed #e43b44; color: var(--muted); font-size: 1rem; }
.disclaimer b { color: #e43b44; font-family: var(--head); font-size: 0.72rem; }
.foot { border-top: 4px solid #fff; font-size: 0.9rem; }
.marquee { font-family: var(--head); font-size: clamp(0.7rem, 1.7vw, 1.15rem); background: #000; border: 4px solid var(--gold); box-shadow: none; padding: 10px 18px; }
.marquee span { animation: sign2 0.9s steps(1) infinite; }
@keyframes sign2 { 0% { color: #fff3a8; text-shadow: 0 0 10px #feae34; } 50% { color: #8a5a12; text-shadow: none; } }
.empty h1 { font-size: clamp(1rem, 2.6vw, 1.5rem); line-height: 1.5; }
.empty .big { display: none; }
.empty { background: #000; border: 4px solid #fff; }

/* the notice on the closed curtains: an RPG text box */
.closed-card {
  background: #000; color: #fff; border: 6px solid #fff; outline: 0; box-shadow: 0 0 0 6px #000, 0 12px 0 6px rgba(0, 0, 0, 0.45);
  width: min(94%, 1040px); padding: 22px 30px 20px; transform: translate(-50%, -50%); top: 56%;
}
.bill-top { border-bottom: 4px solid #fff; font-family: var(--head); font-size: 0.6rem; color: var(--gold); }
.bill-top span:first-child { font-size: 0.8rem; color: #fff; letter-spacing: 0; }
.closed-card .bill-main img { box-shadow: 0 0 0 4px #000, 0 0 0 8px #fff; filter: none; border-radius: 0 !important; }
.closed-card h1 { font-size: clamp(1.1rem, 3.2vw, 2.1rem); line-height: 1.45; margin-bottom: 14px; }
.closed-card h1::before { content: '* '; color: var(--gold); }
.closed-card p { color: #fff; font-size: 1.25rem; max-width: 40em; }
.closed-card p::before { content: '* '; }
.bill-links { border-top: 4px solid #fff; border-bottom: 4px solid #fff; }
.bill-links a { color: #fff; border-right: 4px solid #fff; }
.bill-links a:hover { background: #000; color: var(--gold); }
.bill-links a:hover b::before { content: '\25B6 '; font-size: 0.7em; }
.bill-links b { font-size: 1.2rem; }
.bill-links small { font-family: var(--head); font-size: 0.5rem; opacity: 1; color: var(--dim); margin-top: 4px; }
.closed-card .bill-fine { font-family: var(--font); font-style: normal; color: #e43b44; font-size: 1rem; }
.closed-card .bill-fine::before { content: '! '; }
@media (max-width: 700px) { .torch { display: none; } .closed-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .torch i, .torch::before, .rim i, .marquee span { animation: none; } }

/* countdown to the weekly stream, on the closed-curtain notice */
.bill-timer { text-align: center; padding: 6px 0 20px; }
.bill-timer small { display: block; font-family: var(--head); font-size: 0.6rem; line-height: 1.7; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.bill-timer small:last-child { color: var(--dim); text-transform: none; font-family: var(--font); font-size: 1rem; letter-spacing: 0; margin-top: 10px; }
.bill-timer .count { font-family: var(--head); font-size: clamp(1.7rem, 7.4vw, 5.2rem); line-height: 1.2; color: #fff; margin-top: 10px; white-space: nowrap; text-shadow: 6px 6px 0 #5a0710; font-variant-numeric: tabular-nums; }
.bill-timer .count.soon { color: var(--gold); font-size: clamp(1.1rem, 4vw, 2.6rem); animation: sign2 0.9s steps(1) infinite; }
.bill-main { padding-bottom: 14px; }

/* fixes: the rim and wheel stay round; solid arrow pointer */
.rim, .wheel-wrap canvas, .torch::before { border-radius: 50% !important; }
.rim { background: radial-gradient(circle, transparent 62.6%, #000 62.6% 63.4%, #7d0c18 63.4% 69.4%, #000 69.4% 70.6%, transparent 70.7%); }
body.bonus .rim { background: radial-gradient(circle, transparent 62.6%, #000 62.6% 63.4%, #b86f00 63.4% 69.4%, #000 69.4% 70.6%, transparent 70.7%); }
.pointer { width: 9%; right: 0.4%; background: #fff; clip-path: polygon(0 50%, 100% 4%, 100% 96%); filter: drop-shadow(-4px 0 0 #000) drop-shadow(0 4px 0 #000) drop-shadow(0 -4px 0 #000); }
