:root {
  color-scheme: dark;
  --bg: #070A12;
  --panel: #121827;
  --ui: #F6F7FB;
  --dim: #98A2B3;
  --accent: #F2B134;
  --line: #232B3D;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ui); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 48px; }
a { color: var(--dim); }
.top h1 { margin: 0; font-size: 26px; letter-spacing: .5px; }
.sub { color: var(--dim); margin: 2px 0 12px; }
.muted { color: var(--dim); font-size: 13px; }

/* The world: one canvas, plus a small HTML overlay for crisp UI text. */
.stage { position: relative; width: 100%; height: clamp(380px, 68vh, 680px); border-radius: 14px; overflow: hidden; background: #0B0F1C; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.turn { position: absolute; left: 10px; top: 8px; display: flex; gap: 6px; }
.turn button { width: 32px; height: 32px; padding: 0; border-radius: 999px; background: rgba(10, 14, 26, .72); color: var(--ui); border: 1px solid rgba(255, 255, 255, .15); font-size: 17px; line-height: 1; }
.turn button:hover { border-color: rgba(255, 255, 255, .4); }
.hud { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.storm { background: rgba(10, 14, 26, .72); border: 1px solid rgba(255, 255, 255, .08); padding: 4px 12px; border-radius: 999px; font-size: 13px; letter-spacing: .3px; font-variant-numeric: tabular-nums; transition: background .4s, border-color .4s; }
.storm.warn { background: rgba(60, 18, 28, .82); border-color: rgba(233, 79, 100, .6); }
.storm.live { background: rgba(233, 79, 100, .85); border-color: #E94F64; font-weight: 700; }
.season { margin: 8px 2px 0; color: var(--dim); font-size: 13px; }
.season b { color: var(--ui); font-weight: 600; }
.replay-link, .replay-bar a { color: var(--ui); font-size: 13px; }
.replay-link { position: absolute; right: 12px; top: 10px; background: rgba(10, 14, 26, .8); border: 1px solid rgba(255, 255, 255, .15); padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.replay-bar { position: absolute; left: 0; right: 0; top: 48px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 0 8px; }
.replay-bar button { padding: 7px 12px; font-size: 13px; }
.proto-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.proto-controls button { padding: 8px 12px; font-size: 14px; }
.debug { position: absolute; left: 8px; bottom: 8px; font: 11px ui-monospace, monospace; color: #9F9; background: rgba(0, 0, 0, .5); padding: 2px 6px; border-radius: 4px; }

/* Recent moves: at most three quiet lines on desktop, none on mobile. */
.feed { list-style: none; padding: 0; margin: 8px 2px 0; color: var(--dim); font-size: 13px; min-height: 4.5em; }
.feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.join { margin: 18px 0; padding: 16px; background: var(--panel); border-radius: 12px; }
button { background: var(--accent); color: #111; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: 15px; }
button.link { background: none; color: var(--accent); padding: 0; font-size: 13px; font-weight: 400; text-decoration: underline; }
textarea { width: 100%; height: 120px; margin-top: 10px; background: #0B0F1C; color: var(--ui); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 13px ui-monospace, monospace; }

@media (max-width: 640px) {
  main { padding: 12px 12px 40px; }
  .top h1 { font-size: 22px; }
  /* Portrait phones are width-limited (~8 px per cell), so a tall stage would only add empty sky. */
  .stage { height: clamp(340px, 54vh, 520px); border-radius: 10px; }
  .feed { display: none; }
}
.storm .arrow { display: inline-block; margin-left: 5px; font-weight: 800; transition: transform .3s; }

/* WebGL prototype (/proto3d): the world fills the screen, the UI is a thin broadcast-style overlay. */
body.w3d { overflow: hidden; }
.world3d { position: fixed; inset: 0; background: #0B0F1C; }
.world3d canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.ov-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.ov-top .brand { font-weight: 800; letter-spacing: 2px; font-size: 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); margin-right: 4px; }
.pill { background: rgba(10, 14, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ui); text-decoration: none; font-variant-numeric: tabular-nums; }
.live-dot { color: #E94F64; }
.ov-top .send { pointer-events: auto; margin-left: auto; background: var(--accent); color: #111; font-weight: 700; border: 0; }
.ov-bottom { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.ov-ctrl { pointer-events: auto; display: flex; gap: 6px; }
.ov-ctrl button { background: rgba(10, 14, 26, .62); color: var(--ui); border: 1px solid rgba(255, 255, 255, .15); padding: 6px 10px; font-size: 12px; font-weight: 600; }
.ov-ctrl button.on { border-color: var(--accent); color: var(--accent); }
.tlabel { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; font: 700 12px system-ui, sans-serif; padding: 2px 9px; border-radius: 999px; background: rgba(7, 10, 18, .62); white-space: nowrap; will-change: transform; }
.alabel { position: absolute; left: 0; top: 0; pointer-events: none; font: 600 11.5px system-ui, sans-serif; padding: 2px 9px 2px 7px; border-radius: 999px; background: rgba(7, 10, 18, .58); white-space: nowrap; will-change: transform; transition: opacity .3s; }
.alabel i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .ov-top .brand { font-size: 15px; } .pill { font-size: 12px; padding: 3px 9px; } }
.tleader { position: absolute; left: 0; top: 0; width: 1px; height: 1px; background: currentColor; opacity: .7; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.ov-top .send { cursor: pointer; font: inherit; font-weight: 700; }
.ov-top .replay3d { pointer-events: auto; border-color: var(--accent); color: var(--accent); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 100%); box-sizing: border-box; overflow-y: auto; z-index: 6; padding: 18px 18px 24px;
  background: rgba(9, 12, 21, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-left: 1px solid rgba(255, 255, 255, .1); color: var(--ui);
  font-size: 14px; line-height: 1.5; box-shadow: -12px 0 40px rgba(0, 0, 0, .35); animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } }
.drawer h2 { margin: 4px 0 8px; font-size: 19px; }
.drawer .small { font-size: 12px; }
.drawer-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--ui); font-size: 26px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.drawer .cta { width: 100%; padding: 11px; margin: 6px 0 4px; background: var(--accent); color: #111; font-weight: 800; border: 0; border-radius: 10px; font-size: 15px; cursor: pointer; }
.drawer textarea { width: 100%; box-sizing: border-box; height: 120px; font: 12px/1.45 ui-monospace, monospace; background: rgba(255, 255, 255, .06); color: var(--ui); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; padding: 8px; }
.me3d { display: flex; gap: 12px; align-items: center; margin: 10px 0; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.me3d canvas { width: 84px; height: 84px; flex: none; }
.me3d b { display: block; font-size: 17px; }
.me3d span { display: block; font-size: 13px; }
@media (max-width: 640px) { .drawer { top: auto; width: 100%; max-height: 82vh; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 16px 16px 0 0; animation-name: sheetIn; } }
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } }
.alabel.me { background: rgba(242, 181, 68, .92); color: #111 !important; }
.devpanel { position: absolute; left: 12px; bottom: 52px; max-width: min(560px, calc(100% - 24px)); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: rgba(10, 14, 26, .82); border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--ui); z-index: 5; }
.devpanel button, .devpanel select, .devpanel input { font-size: 12px; padding: 3px 7px; border-radius: 6px; }
.devpanel input[type=number] { width: 80px; }
.mlabel { position: absolute; left: 0; top: 0; pointer-events: none; font: 600 11px system-ui, sans-serif; color: #ffd27a; background: rgba(7, 10, 18, .55); border: 1px solid rgba(255, 210, 122, .35); padding: 2px 8px; border-radius: 999px; white-space: nowrap; opacity: .75; will-change: transform; }
.mlabel.next { opacity: 1; font-weight: 700; border-color: rgba(255, 210, 122, .8); }
.mbanner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 22px; border-radius: 14px; background: rgba(7, 10, 18, .8); border: 2px solid #ffd27a; color: var(--ui); text-align: center; pointer-events: none; max-width: calc(100% - 32px); }
.mbanner b { font-size: 22px; letter-spacing: .3px; }
.mbanner span { font-size: 13px; color: #c9d2e3; }
@media (max-width: 640px) { .mbanner b { font-size: 16px; } }

/* Scoreboard: four team columns under the stage (two on phones). */
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 4px; }
.scoreboard h2 { grid-column: 1 / -1; margin: 0; font-size: 15px; letter-spacing: .3px; }
.sb-team { background: var(--panel); border-radius: 10px; padding: 10px 12px; border-top: 3px solid var(--team, var(--line)); min-width: 0; }
.sb-team h3 { margin: 0; font-size: 13px; letter-spacing: 1px; color: var(--team); }
.sb-team p { margin: 0 0 6px; }
.sb-team ol { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.sb-team li { display: flex; gap: 6px; }
.sb-rank { color: var(--dim); min-width: 1.4em; }
.sb-num { margin-left: auto; }
.sb-team li.me { font-weight: 700; }
.sb-team li.me .sb-name::after { content: ' ★'; color: var(--team); }
.sb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-num { font-variant-numeric: tabular-nums; color: var(--dim); }
.sb-amber { --team: #F2B134; } .sb-teal { --team: #2EC4B6; } .sb-violet { --team: #8B5CF6; } .sb-crimson { --team: #E94F64; }
@media (max-width: 640px) { .scoreboard { grid-template-columns: 1fr 1fr; } }

/* ?bench: the result table */
.benchpanel { position: absolute; left: 12px; top: 56px; z-index: 7; max-width: calc(100% - 24px); max-height: calc(100% - 120px); overflow: auto; background: rgba(9, 12, 21, .92); color: var(--ui); border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; padding: 10px 12px; font: 12px/1.45 system-ui, sans-serif; }
.benchpanel table { border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
.benchpanel th, .benchpanel td { padding: 2px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.benchpanel th:nth-child(-n+2), .benchpanel td:nth-child(-n+2) { text-align: left; }
.benchpanel button { background: var(--accent); color: #111; border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; }

/* the front page's overview (3D): standings, recent moves, a tower card, the intro, the loading screen */
.loading3d { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #0B0F1C; color: var(--ui); transition: opacity .6s; }
.loading3d b { letter-spacing: 3px; font-size: 20px; }
.loading3d span { color: #98A2B3; font-size: 14px; }
.loading3d.gone { opacity: 0; pointer-events: none; }
.standings { position: absolute; left: 12px; top: 54px; z-index: 3; width: 228px; padding: 8px 8px 6px; border-radius: 12px; background: rgba(10, 14, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); color: var(--ui); font-size: 12.5px; }
.st-head { color: #98A2B3; font-size: 11.5px; padding: 0 4px 5px; }
.st-row { display: flex; align-items: center; gap: 7px; width: 100%; padding: 4px; border: 0; border-left: 3px solid var(--team); border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.st-row:hover { background: rgba(255, 255, 255, .06); }
.st-rank { width: 12px; color: #98A2B3; }
.st-name { flex: 1; font-weight: 700; color: var(--team); }
.st-h { width: 50px; text-align: right; }
.st-pts { width: 62px; text-align: right; color: #c9d2e3; }
.st-wob { font-style: normal; font-size: 10.5px; color: #F2B544; margin-left: 2px; }
.st-foot { color: #98A2B3; font-size: 11.5px; padding: 5px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed3d { position: absolute; left: 12px; bottom: 54px; z-index: 3; margin: 0; padding: 0; list-style: none; max-width: min(460px, calc(100% - 24px)); pointer-events: none; }
.feed3d li { margin-top: 4px; padding: 3px 10px 3px 8px; border-left: 3px solid var(--team, #98A2B3); border-radius: 6px; background: rgba(10, 14, 26, .55); color: var(--ui); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .35s ease-out; transition: opacity .9s; }
.feed3d li.old { opacity: 0; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }
.tcard { position: absolute; right: 12px; top: 54px; z-index: 5; width: min(300px, calc(100% - 24px)); box-sizing: border-box; padding: 12px 14px; border-radius: 12px; background: rgba(9, 12, 21, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); color: var(--ui); font-size: 13.5px; }
.tcard h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: 1px; }
.tcard p { margin: 4px 0; }
.tcard ol { margin: 4px 0 8px; padding-left: 20px; }
.tcard .small { font-size: 12px; }
.tcard .cta { width: 100%; padding: 8px; margin-top: 4px; background: var(--accent); color: #111; font-weight: 800; border: 0; border-radius: 8px; cursor: pointer; }
.intro3d { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 6; width: min(440px, calc(100% - 24px)); box-sizing: border-box; padding: 14px 16px; border-radius: 14px; background: rgba(9, 12, 21, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); color: var(--ui); font-size: 14px; line-height: 1.5; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.intro3d b { font-size: 16px; }
.intro3d p { margin: 6px 0 0; }
.intro3d button { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: var(--ui); font-weight: 700; cursor: pointer; }
.intro3d .cta { background: var(--accent); color: #111; border: 0; }
@media (max-width: 640px) {
  .standings { top: auto; bottom: 50px; left: 8px; right: 8px; width: auto; display: flex; gap: 4px; padding: 4px; overflow-x: auto; }
  .st-head, .st-foot, .st-rank, .st-pts { display: none; }
  .st-row { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 2px 6px; font-size: 11.5px; }
  .st-h { width: auto; text-align: left; }
  .st-wob { margin: 0; }
  .feed3d { bottom: 104px; left: 8px; }
  .feed3d li { font-size: 11.5px; }
  .tcard { top: auto; bottom: 104px; right: 8px; left: 8px; width: auto; }
  .intro3d { bottom: 104px; }
}

/* ?clean: the picture alone (share images) */
.clean .ov-top, .clean .ov-bottom, .clean .standings, .clean .vote3d, .clean .playbill, .clean .feed3d, .clean .intro3d, .clean .devpanel, .clean .tcard, .clean .tleader, .clean .alabel { display: none !important; }

.drawer .link, .mydata .link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

.turn3d { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(242, 181, 68, .1); border: 1px solid rgba(242, 181, 68, .35); }
.turn3d code { color: #fff; }
.turn3d button, .turn3d .pillbtn { display: inline-block; margin: 4px 6px 0 0; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--ui); font: 600 12.5px system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.alabel small { font-weight: 500; opacity: .78; }
.alabel.mon { background: rgba(7, 10, 18, .7); font-size: 12px; padding: 3px 10px; }
.pill.peak { color: #ffd27a; border-color: rgba(255, 210, 122, .6); animation: stormpulse .5s ease-in-out infinite alternate; }
@keyframes stormpulse { from { box-shadow: 0 0 0 rgba(255, 210, 122, 0); } to { box-shadow: 0 0 14px rgba(255, 210, 122, .55); } }
@media (prefers-reduced-motion: reduce) { .pill.peak { animation: none; } }
.hall3d { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 12.5px; line-height: 1.4; color: var(--ui); cursor: pointer; }
.hall3d input { margin-top: 2px; accent-color: #f2b544; }
.hall3d a { color: inherit; }
.alabel.mon.cup { text-align: center; border-radius: 10px; white-space: nowrap; }
.mon-aotw { font-size: 11.5px; margin-top: 1px; }
/* SEND YOUR BOT: three steps until the agent builds, then the agent's card */
.steps3d { list-style: none; margin: 6px 0 2px; padding: 0; counter-reset: st; }
.steps3d li { counter-increment: st; display: flex; gap: 12px; padding: 9px 0; opacity: .5; }
.steps3d li.now, .steps3d li.done { opacity: 1; }
.steps3d li > i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px system-ui, sans-serif; background: rgba(255, 255, 255, .12); color: var(--ui); }
.steps3d li > i::before { content: counter(st); }
.steps3d li.now > i { background: var(--accent); color: #111; }
.steps3d li.done > i { background: #2fbf71; color: #fff; }
.steps3d li.done > i::before { content: '✓'; }
.steps3d li > div { flex: 1; min-width: 0; }
.steps3d b { display: block; font-size: 15px; line-height: 1.35; }
.steps3d span { display: block; font-size: 13px; }
.steps3d .cta { margin: 8px 0 2px; }
.steps3d li.done .cta { background: rgba(255, 255, 255, .1); color: var(--ui); font-weight: 700; }
#peek summary { cursor: pointer; color: #98A2B3; font-size: 12.5px; margin-top: 6px; }
#peek textarea { margin-top: 6px; height: 110px; }
.first3d { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(47, 191, 113, .14); border: 1px solid rgba(47, 191, 113, .4); }
.turn-head b { font-size: 17px; }
.turn3d p { margin: 6px 0 4px; }
.say3d { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; padding: 7px 7px 7px 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.say3d code { flex: 1; min-width: 0; color: #fff; font-size: 13px; }
.remind3d { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.turn3d .say3d button, .turn3d .remind3d button, .turn3d .remind3d .pillbtn { margin: 0; flex: none; }
.turn3d button.on { border-color: rgba(47, 191, 113, .6); color: #8ff0b8; }
.turn3d .cta { margin-top: 8px; }
.more3d { margin: 14px 0 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.more3d summary { cursor: pointer; font-size: 13px; color: #98A2B3; }
.more3d .hall3d { margin-top: 10px; }
.foot3d { margin-top: 14px; }
/* pixel style: the low-resolution canvas is scaled up with hard pixels */
.pixel .stage canvas, .pixel .world3d canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.pixel .me3d canvas { image-rendering: auto; }
/* pixel style: the overlay in a pixel font (Pixelify Sans, SIL OFL 1.1 – /static/pixelify-OFL.txt); long texts in the
   drawer and on the legal pages stay in the system font for reading */
@font-face { font-family: 'Pixelify'; src: url('/static/pixelify.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
.pixel .ov-top, .pixel .ov-bottom, .pixel .standings, .pixel .feed3d, .pixel .tcard, .pixel .tlabel, .pixel .alabel, .pixel .mlabel,
.pixel .mbanner, .pixel .intro3d h2, .pixel .intro3d .cta, .pixel .intro3d button, .pixel .drawer h2, .pixel .drawer .cta, .pixel .steps3d b,
.pixel .turn-head, .pixel .loading3d, .pixel .ov-ctrl button, .pixel .pill { font-family: 'Pixelify', system-ui, sans-serif; letter-spacing: .02em; -webkit-font-smoothing: none; }
.pixel .pill, .pixel .alabel, .pixel .tlabel, .pixel .mlabel, .pixel .standings, .pixel .tcard, .pixel .ov-ctrl button { border-radius: 0; }
.pixel .ov-top .brand { font-family: 'Pixelify', system-ui, sans-serif; font-weight: 700; letter-spacing: .06em; }
.pixel .tlabel, .pixel .alabel, .pixel .mlabel { font-size: 13px; font-weight: 500; }
/* The Lighthouse: the meter and the tsunami vote */
.lh-meter { font-size: 12.5px; margin: 4px 0 8px; }
.lh-meter span { display: block; color: #cbd5e1; }
.lh-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e05a47, #f2b544 45%, #4cc38a); }
.vote3d { position: absolute; right: 12px; bottom: 64px; width: min(300px, calc(100% - 24px)); padding: 10px 12px; border-radius: 12px; background: rgba(10, 14, 26, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); color: var(--ui); z-index: 3; font-size: 13px; }
.vote-head { font-weight: 700; margin-bottom: 6px; letter-spacing: .02em; }
.vote-opt { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; width: 100%; text-align: left; margin: 4px 0; padding: 6px 9px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: var(--ui); cursor: pointer; font: inherit; }
.vote-opt b { grid-column: 1; } .vote-opt span { grid-column: 1; font-size: 11.5px; color: #98a2b3; } .vote-opt i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; }
.vote-opt.on { border-color: #f2b544; background: rgba(242, 181, 68, .14); }
.vote-opt:disabled { opacity: .55; cursor: default; }
#lhToday.warn { color: #ffb4a6; font-weight: 600; }
@media (max-width: 640px) {
  .vote3d { left: 8px; right: 8px; width: auto; bottom: 136px; padding: 8px 10px; } .lh .feed3d { display: none; }
  .vote3d .vote-head { cursor: pointer; } .vote3d .vote-head::after { content: ' ▾'; color: #98a2b3; }
  .vote3d.folded > :not(.vote-head) { display: none; } .vote3d.folded .vote-head::after { content: ' ▸'; }
  .lh .standings { flex-wrap: wrap; } .lh .lh-meter { flex: 1 0 calc(100% - 12px); margin: 2px 6px 3px; font-size: 11.5px; }
}

/* the lighthouse's playbill: Sunday's result as a theatre programme (cream paper, ink, a double rule) */
.playbill { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px)); padding: 18px 20px 14px; background: #f3ead6; color: #1f1d1a; border: 3px double #1f1d1a; border-radius: 2px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); text-align: center; font-family: Georgia, 'Times New Roman', serif; }
.playbill p { margin: 0; }
.playbill .pb-house { font: 700 11px/1.2 system-ui, sans-serif; letter-spacing: .18em; }
.playbill .pb-date { font-style: italic; font-size: 13px; margin: 4px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #1f1d1a; }
.playbill .pb-kicker { font-variant: small-caps; letter-spacing: .08em; font-size: 14px; }
.playbill .pb-title { margin: 2px 0; font-size: 30px; line-height: 1.1; font-weight: 700; }
.playbill .pb-sub { font-size: 13px; color: #4a453e; }
.playbill .pb-big { margin-top: 12px; font-size: 40px; line-height: 1; font-weight: 700; }
.playbill .pb-champ { margin-top: 10px; font: 700 15px/1.3 system-ui, sans-serif; text-shadow: 0 0 1px rgba(0, 0, 0, .35); }
.playbill .pb-best { margin-top: 6px; font-size: 13px; }
.playbill .pb-next { margin-top: 10px; padding-top: 8px; border-top: 1px solid #1f1d1a; font-style: italic; font-size: 12.5px; color: #4a453e; }
.playbill .pb-btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.playbill button { font: 700 13px system-ui, sans-serif; padding: 7px 16px; border-radius: 2px; border: 2px solid #1f1d1a; background: none; color: #1f1d1a; cursor: pointer; }
.playbill .pb-share { background: #1f1d1a; color: #f3ead6; }
.playbill .pb-note { display: block; min-height: 1em; margin-top: 4px; font: 12px system-ui, sans-serif; }
.playbill .pb-btns { flex-wrap: wrap; }
.playbill .pb-again { flex: 1 0 100%; background: #9b2d24; border-color: #9b2d24; color: #f3ead6; }
/* the replay's curtain: two halves of paper-cut red velvet with a gold hem, drawn across the stage */
.lhcurtain { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.lhcurtain i { position: absolute; top: 0; bottom: 0; width: 51%; transition: transform .9s cubic-bezier(.6, 0, .3, 1); background: repeating-linear-gradient(90deg, #7d1f1a 0 26px, #a12c24 26px 44px, #8d241e 44px 60px); box-shadow: inset 0 -14px 0 #c9a248; }
.lhcurtain .l { left: 0; transform: translateX(-102%); border-right: 4px solid #1f1d1a; }
.lhcurtain .r { right: 0; transform: translateX(102%); border-left: 4px solid #1f1d1a; }
.lhcurtain.shut i { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .lhcurtain i { transition: none; } }
@media (max-width: 640px) { .lh-show .vote3d, .lh-show .standings, .lh-show .tlabel, .lh-show .tleader { display: none !important; } }
.lh-remind input[type=time] { font: inherit; padding: 2px 4px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--ui); color-scheme: dark; }
.lh-remind a, .vote-cal { color: #f2b544; font-weight: 700; }
.vote-cal { display: block; margin: 6px 2px 2px; font-size: 12.5px; text-decoration: none; }
.playbill .pb-cal { display: block; margin-top: 8px; font: 700 12.5px system-ui, sans-serif; color: #1f1d1a; }
