/* Concept 1, Main Stage: near-black navy, blue light from below, pink for what's live. Anton and Jost. */
@font-face { font-family: Jost; src: url(/jost.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; --k: #05071a; --panel: #0b113c; --navy: #0d2077; --blue: #1a41c0; --pink: #ed2079; --pinkt: #ff5c9f; --ice: #9fb4ff; --dim: #c3cbea; --line: rgba(159, 180, 255, .3);
  --disp: Anton, Impact, Haettenschweiler, "Arial Narrow", sans-serif; --txt: Jost, "Avenir Next", "Segoe UI", system-ui, sans-serif; --bar: calc(76px + env(safe-area-inset-bottom)); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; background: var(--k); }
body { margin: 0; min-height: 100dvh; color: #fff; font: 500 18px/1.45 var(--txt); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(130% 70% at 50% 112%, #10268c 0%, #080d33 46%, var(--k) 82%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(159, 180, 255, .13) 1.6px, transparent 2px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
h1, h2, h3, p, ol, ul, dl, dd, pre { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; font-family: var(--disp); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
button, textarea, input, select { font: inherit; color: inherit; } button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lbl { display: block; font-weight: 600; font-size: 15px; color: var(--ice); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(12px + env(safe-area-inset-top)) 20px 12px; background: var(--k); border-bottom: 1px solid var(--line); }
.top img { width: 118px; height: auto; display: block; }
.live { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--dim); }
.live i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.live.on { color: #fff; } .live.on i { background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: pulse 1s ease-in-out infinite alternate; }
.live.off i { background: none; border: 2px solid var(--dim); }
@keyframes pulse { to { opacity: .45; } }

main { max-width: 640px; margin: 0 auto; padding: 18px 20px 28px; }
.js main { padding-bottom: calc(var(--bar) + 84px); }
.js[data-view="now"] #all, .js[data-view="all"] #now { display: none; }

/* the live step */
.set { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; gap: 6px; list-style: none; }
.set li { font-weight: 600; font-size: 13px; color: var(--dim); padding-top: 7px; border-top: 5px solid rgba(159, 180, 255, .22); white-space: nowrap; opacity: .8; }
.set .done { border-color: var(--ice); } .set .cur { border-color: var(--pink); color: #fff; opacity: 1; }
#now-in { outline: 0; } #now-in.in { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
h1 { font-size: clamp(44px, 14vw, 68px); line-height: 1; margin: 22px 0 14px; filter: drop-shadow(0 0 17px rgba(26, 65, 192, 1)); }
h1.v { font-size: clamp(31px, 9.4vw, 48px); line-height: 1.06; margin: 16px 0 12px; } h1.v small { font-size: 20px; margin-bottom: 2px; }
h1 small { display: block; font-size: clamp(21px, 6vw, 28px); line-height: 1.15; color: var(--pinkt); margin-bottom: 5px; letter-spacing: .02em; }
.n-b, .s-b { display: grid; gap: 16px; } .n-b > *, .s-b > * { min-width: 0; }
.lede { font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.foot, .pnote { font-size: 17px; line-height: 1.4; color: var(--dim); text-wrap: pretty; }
.job { font-size: 23px; line-height: 1.25; font-weight: 700; } .job .lbl { margin-bottom: 4px; }
.next { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); display: flex; gap: 10px; } .next span { color: var(--ice); font-weight: 600; white-space: nowrap; } .next:empty { display: none; }
.lost { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #fff; color: #0d1440; font-size: 17px; } .lost button { border: 0; padding: 0; background: none; color: #0d2077; font-weight: 700; text-decoration: underline; }

.prompt { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(159, 180, 255, .45); box-shadow: 0 0 34px rgba(26, 65, 192, .4); }
.prompt pre { font: 600 24px/1.3 var(--txt); white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.prompt.long pre { font: 500 16px/1.45 var(--txt); max-height: 210px; overflow-y: auto; overscroll-behavior: auto; padding-right: 6px; }
.copy { width: 100%; min-height: 58px; border: 0; border-radius: 12px; background: #e0176d; color: #fff; font: 400 23px/1.1 var(--disp); letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px; transition: background .15s, color .15s; }
.copy:active { background: #b90f58; } .copy.done { background: #fff; color: var(--navy); } .copy:disabled { opacity: .6; }
.steps { list-style: none; counter-reset: n; display: grid; gap: 12px; }
.steps li { counter-increment: n; position: relative; padding-left: 42px; min-height: 30px; } .steps li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 29px; height: 29px; border-radius: 50%; background: var(--blue); font: 400 16px/29px var(--disp); text-align: center; }
.dots { list-style: none; display: grid; gap: 11px; } .dots li { position: relative; padding-left: 24px; } .dots li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.defs { display: grid; gap: 13px; } .defs dt { font: 400 22px/1.2 var(--disp); text-transform: uppercase; color: #fff; } .defs dd { color: var(--dim); margin-top: 2px; } .defs dd b { color: #fff; }

.vote-slot { display: grid; gap: 12px; }
.opts { display: grid; gap: 9px; }
.opt { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: center; width: 100%; min-height: 64px; padding: 8px 12px 8px 10px; text-align: left; border-radius: 14px; border: 2px solid rgba(159, 180, 255, .45); background: var(--panel); color: #fff; }
.opt i { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); font: 400 23px/44px var(--disp); text-align: center; } .opt b { display: block; font-weight: 700; font-size: 20px; line-height: 1.25; } .opt em { display: block; font-style: normal; font-size: 16px; line-height: 1.25; color: var(--dim); text-wrap: balance; } .opt u { text-decoration: none; font: 400 22px var(--disp); }
.opt[aria-pressed="true"] { border-color: #fff; background: #a50f51; } .opt[aria-pressed="true"] i { background: #fff; color: #a50f51; } .opt[aria-pressed="true"] em { color: #fff; }
.opt:disabled { cursor: default; } .closed .opt:not([aria-pressed="true"]) { border-color: var(--line); }
meter { -webkit-appearance: none; appearance: none; grid-column: 2 / -1; width: 100%; height: 8px; border: 0; border-radius: 4px; background: none; overflow: hidden; }
meter::-webkit-meter-inner-element { display: block; height: 8px; } meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 4px; background: rgba(159, 180, 255, .2); } meter::-webkit-meter-optimum-value { background: var(--ice); border-radius: 4px; } meter::-moz-meter-bar { background: var(--ice); }

/* all steps */
.all-h { font-size: 40px; line-height: 1.05; margin: 8px 0 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; } .jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 15px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; }
.group { margin-top: 30px; } .group h3 { font-size: 25px; line-height: 1.15; margin-bottom: 10px; } .group > .foot { margin: 0 0 12px; }
.step { border-top: 1px solid var(--line); scroll-margin-top: 76px; } .step:last-of-type { border-bottom: 1px solid var(--line); }
.step summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 2px; list-style: none; cursor: pointer; } .step summary::-webkit-details-marker { display: none; }
.step summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 3px solid var(--ice); border-bottom: 3px solid var(--ice); transform: translateY(-3px) rotate(45deg); transition: transform .2s; } .step[open] summary::after { transform: translateY(2px) rotate(225deg); }
.s-t { flex: 1; font-weight: 700; font-size: 20px; line-height: 1.25; } .s-t small { display: block; font-weight: 600; font-size: 15px; color: var(--ice); }
.on-now { display: none; font-weight: 700; font-size: 15px; background: #e0176d; border-radius: 12px; padding: 2px 11px; } .is-now .on-now { display: block; }
.s-b { padding: 4px 0 24px; }
.site { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 16px; }

/* bottom bar, within thumb reach */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr 1fr 60px; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--k); border-top: 1px solid var(--line); }
.bar button { height: 56px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 400 20px var(--disp); text-transform: uppercase; letter-spacing: .03em; }
.bar [aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.bar .q { width: 56px; justify-self: end; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 31px; box-shadow: 0 0 22px rgba(159, 180, 255, .7); }
.back { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bar) + 10px); z-index: 6; max-width: 600px; margin: 0 auto; min-height: 56px; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 14px; background: #fff; color: var(--navy); text-align: left; font-size: 17px; box-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.back span { font: 400 19px var(--disp); text-transform: uppercase; white-space: nowrap; } .back b { font-weight: 700; text-align: right; line-height: 1.2; } .back.hot { background: #e0176d; color: #fff; }

dialog { width: min(560px, 100%); max-width: 100%; max-height: 100%; margin: auto auto 0; border: 0; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); background: #0d1650; color: #fff; box-shadow: 0 0 60px rgba(26, 65, 192, .8); } dialog::backdrop { background: rgba(3, 5, 20, .8); }
dialog form { display: grid; gap: 12px; } dialog h2 { font-size: 34px; line-height: 1.05; } dialog p { color: var(--dim); font-size: 17px; line-height: 1.4; }
textarea, input[type="password"], select { width: 100%; min-height: 56px; padding: 13px 15px; border-radius: 12px; border: 2px solid rgba(159, 180, 255, .5); background: var(--k); font-size: 19px; line-height: 1.35; resize: none; } ::placeholder { color: #9aa5cf; opacity: 1; }
.count { display: flex; justify-content: space-between; gap: 12px; min-height: 25px; } #ask-m { color: #fff; font-weight: 600; } #ask-n { white-space: nowrap; }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.ghost { min-height: 52px; padding: 8px 18px; border-radius: 12px; border: 1px solid rgba(159, 180, 255, .55); background: transparent; font-weight: 700; font-size: 18px; }

/* table laptop: what's on stage beside every step */
@media (min-width: 960px) {
  .js:not(.pres) main { max-width: 1280px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 0 40px 60px; align-items: start; }
  .js[data-view] #now:not([hidden]), .js[data-view] #all { display: block; }
  .js #now { position: sticky; top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 24px 6px 100px; } .js #all { padding: 18px 0; }
  .top { padding-left: 40px; padding-right: 40px; } h1 { font-size: 64px; } h1.v { font-size: 46px; }
  .bar { left: auto; right: 28px; bottom: 24px; display: block; padding: 0; border: 0; background: none; } .bar [data-go] { display: none; } .bar .q { width: 66px; height: 66px; font-size: 36px; }
  .lost button { display: none; } dialog { margin: auto; border-radius: 22px; }
  .copy:hover { background: #f2388a; } .copy.done:hover { background: #fff; } .opt:not(:disabled):hover { border-color: #fff; }
}

/* presenter */
.pres main { max-width: 860px; } .pres #gate { display: grid; gap: 14px; max-width: 420px; } .pres section { margin-top: 30px; } .pres h2 { font-size: 27px; line-height: 1.15; margin-bottom: 8px; } .pres h2 span { font: 600 17px var(--txt); text-transform: none; letter-spacing: 0; color: var(--ice); margin-left: 8px; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); } .pres .stat { margin-top: 4px; } .stat b { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.setrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; } .setrow select { flex: 1 1 240px; width: 0; min-width: 0; text-overflow: ellipsis; } .setrow .copy { flex: 0 1 auto; width: auto; } .setrow .foot { margin-right: auto; }
.chk { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; } .chk input { width: 22px; height: 22px; accent-color: var(--pink); }
.pq { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 2px solid var(--line); font-size: 20px; line-height: 1.35; } .pq.star { border-color: var(--pink); } .pq.hid { opacity: .55; }
.pv { padding: 12px 0; border-top: 1px solid var(--line); } .pv h3 { font: 700 19px/1.3 var(--txt); text-transform: none; } .pr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 12px; align-items: center; min-height: 34px; } .pr meter { grid-column: auto; } .pr b { text-align: right; font-variant-numeric: tabular-nums; } .pv.cur h3 { color: var(--pinkt); }
.danger { border-color: var(--pinkt); margin-top: 12px; } #p-sure { margin-top: 12px; padding: 16px; border-radius: 14px; border: 2px solid var(--pinkt); } .link { border: 0; background: none; padding: 12px 0; color: var(--ice); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
