/* YOU & THEM · Time Them. The page is the show's own set: dark stage, the timer pill as the button shape, yellow for the one thing to tap. */
/* Poppins, the typeface of the videos, served from this site (SIL Open Font License: see /fonts/OFL.txt) */
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/poppins-medium.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins-semibold.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/poppins-bold.woff2) format('woff2'); }
:root {
  --pill: #20222c; --ink: #16171d; --you: #3f86f4; --you-soft: #8fbcff; --them: #6c6d78; --them-soft: #d3d3dc;
  --yellow: #ffd84a; --yellow-deep: #b08f1f; --red: #ff6b78; --green: #7dffa0; --mute: #9aa0b4; --line: #2f3242; --card: #171922;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; overflow-x: hidden; }
html { background: #0d0e13; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; color: #fff; font: 500 16px/1.45 Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif; background: radial-gradient(140% 900px at 50% 380px, #1f2130 0%, #12131a 60%, #0d0e13 100%) no-repeat #0d0e13; }
main { width: 100%; max-width: 460px; padding: 10px 16px calc(36px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { margin: 18px 0 4px; font-size: 26px; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
h2 { margin: 26px 0 10px; font-size: 17px; font-weight: 700; }
p { margin: 0; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.brand svg { width: 34px; height: 26px; }
.tab { height: 36px; padding: 0 14px; border-radius: 18px; border: 2px solid #fff; background: none; font-weight: 600; font-size: 13.5px; }
.tab.has::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }

/* the stage: the live episode */
.stage { aspect-ratio: 810 / 1077; max-height: 62vh; max-height: 62dvh; margin: 0 auto; border-radius: 26px; overflow: hidden; background: #12131a; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5); }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage.small { max-height: 30vh; max-height: 30dvh; border-radius: 18px; }

/* the one thing to tap */
.go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 62px; margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 22px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 21px; line-height: 1.15; text-align: center; text-decoration: none; box-shadow: 0 6px 0 var(--yellow-deep), 0 16px 26px rgba(0, 0, 0, 0.35); transition: transform 0.06s, box-shadow 0.06s; }
.go:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-deep), 0 8px 14px rgba(0, 0, 0, 0.35); }
.go[disabled] { background: #5d5a48; color: #1c1c1c; box-shadow: none; cursor: default; }
.go.small { min-height: 50px; font-size: 17px; margin-top: 0; }

/* second-rank buttons wear the timer pill */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 6px 16px; border: 3px solid #fff; border-radius: 18px; background: var(--pill); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none; }
.pill:active { background: #2b2e3b; }
.pill.big { min-height: 76px; font-size: 20px; font-weight: 700; }
.pill.you { border-color: var(--you); } .pill.them { border-color: var(--them); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btns > * { flex: 1 1 calc(50% - 5px); }
.btns.three > * { flex: 1 1 calc(33% - 7px); padding: 6px 8px; }
.link { display: block; width: 100%; margin-top: 14px; padding: 10px; border: 0; background: none; color: var(--you-soft); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }

.note { margin-top: 12px; color: var(--mute); font-size: 13.5px; text-align: center; }
.sub { color: #c9cddb; font-size: 15px; }
.err { margin-top: 12px; padding: 12px 14px; border: 3px solid var(--red); border-radius: 16px; background: #2b1519; font-size: 14px; font-weight: 600; }

/* how it works: a real sequence, so it is numbered */
.how { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; }
.how li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pill); border: 2px solid #fff; font-weight: 700; font-size: 14px; }

/* a wide row that leads somewhere */
.row { display: block; width: 100%; margin-top: 22px; padding: 14px 16px; border: 3px solid var(--line); border-radius: 20px; background: var(--card); text-align: left; }
.row span { display: block; color: var(--mute); font-size: 13.5px; }
.row b { display: block; margin-top: 2px; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.row em { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-style: normal; font-weight: 700; font-size: 12.5px; }

.field { display: block; margin-top: 16px; }
.field span { display: block; margin-bottom: 6px; color: #c9cddb; font-size: 14px; }
.field input { width: 100%; height: 52px; padding: 0 14px; border: 3px solid var(--line); border-radius: 16px; background: #12131a; color: #fff; font-size: 17px; font-weight: 600; }
.field input:focus { border-color: var(--you); outline: none; }
.linkbox { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #12131a; color: var(--you-soft); font-size: 13.5px; font-weight: 600; word-break: break-all; text-align: center; user-select: all; -webkit-user-select: all; }

/* your clocks */
.clocks { margin: 0; padding: 0; list-style: none; }
.clocks button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; padding: 12px 14px; border: 3px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; font-weight: 600; font-size: 15px; }
.clocks button.on { border-color: #fff; }
.clocks .st { color: var(--mute); font-size: 13.5px; white-space: nowrap; }
.clocks .st.run { color: var(--yellow); } .clocks .st.fast { color: var(--green); } .clocks .st.slow { color: var(--red); }

/* the receipts */
.ten { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.ten li { padding: 5px 11px; border-radius: 12px; background: var(--pill); font-size: 13px; font-weight: 600; }
.seg { display: flex; gap: 8px; margin-top: 20px; }
.seg button { flex: 1; height: 44px; border: 3px solid var(--line); border-radius: 14px; background: none; font-weight: 600; font-size: 14.5px; color: var(--mute); }
.seg button.on { border-color: #fff; color: #fff; background: var(--pill); }
.steps { margin: 12px 0 0; padding: 0 0 0 22px; font-size: 15px; }
.steps li { padding: 5px 0 5px 4px; }
.steps b { color: var(--yellow); font-weight: 700; }
.trust { margin-top: 16px; padding: 13px 15px; border-radius: 16px; background: #14251c; border: 3px solid #2c6a45; font-size: 13.5px; line-height: 1.5; }
.trust b { color: var(--green); }
.cols, .rrow { display: grid; grid-template-columns: 1fr 86px 86px; gap: 8px; align-items: center; }
.cols { margin-top: 18px; padding: 0 12px 6px; font-size: 12.5px; font-weight: 700; text-align: center; }
.cols .you { color: var(--you-soft); } .cols .them { color: var(--them-soft); }
.cols b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow { margin-bottom: 8px; padding: 10px 12px; border-radius: 18px; background: var(--pill); border: 3px solid transparent; }
.rrow .lab { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.rrow .val { padding: 7px 4px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.15; }
.rrow .val small { display: block; margin-top: 2px; font-weight: 600; font-size: 10.5px; opacity: 0.75; }
.rrow .val.you { background: rgba(63, 134, 244, 0.2); color: #dbe8ff; box-shadow: inset 0 0 0 2px var(--you); }
.rrow .val.them { background: rgba(108, 109, 120, 0.28); color: #ececf2; box-shadow: inset 0 0 0 2px var(--them); }
.rrow.locked .val { color: transparent; text-shadow: 0 0 9px rgba(255, 255, 255, 0.75); letter-spacing: 2px; user-select: none; -webkit-user-select: none; }
.rrow.locked .lab::after { content: ' 🔒'; font-size: 12px; }
.rrow.wide { grid-template-columns: 1fr 180px; }
.lockbox { margin-top: 16px; padding: 16px; border: 3px solid var(--yellow); border-radius: 22px; background: #23200f; }
.lockbox .go { margin-top: 12px; }
.lockbox p.big { font-weight: 700; font-size: 17px; line-height: 1.3; }
.gets { margin: 12px 0 0; padding: 0 0 0 20px; font-size: 14.5px; }
.gets li { padding: 2px 0; }
.effort { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 3px solid var(--line); text-align: center; }
.effort b { display: block; font-size: 34px; line-height: 1.1; color: var(--yellow); }
.effort.locked b { color: transparent; text-shadow: 0 0 14px rgba(255, 216, 74, 0.9); user-select: none; -webkit-user-select: none; }
.effort span { font-size: 14px; color: #c9cddb; }

/* sheets: the viewer and restore */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 14px; background: rgba(8, 9, 14, 0.9); overflow-y: auto; }
.box { position: relative; width: 100%; max-width: 420px; padding: 18px 16px 16px; border: 3px solid var(--line); border-radius: 26px; background: var(--card); }
.box h1 { margin-top: 2px; font-size: 22px; padding-right: 44px; }
.x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 15px; background: var(--pill); font-weight: 700; font-size: 17px; }
.media { display: block; width: auto; max-width: 100%; max-height: 62vh; max-height: 62dvh; margin: 12px auto 0; border-radius: 18px; background: #0d0e13; }
#vCv { aspect-ratio: 9 / 16; }
.pct { margin-top: 10px; text-align: center; font-weight: 700; font-size: 18px; color: var(--yellow); }

footer { margin-top: 34px; padding-top: 16px; border-top: 2px solid var(--line); color: var(--mute); font-size: 12.5px; line-height: 1.6; text-align: center; }
footer a, footer button { color: var(--you-soft); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 30px); max-width: 88vw; padding: 12px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* plain reading pages */
.read h1 { margin-top: 10px; } .read h2 { margin-top: 24px; } .read p, .read li { color: #dfe2ec; font-size: 15px; } .read p { margin-top: 10px; } .read ul { padding-left: 20px; }
.tbl { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; } .tbl th, .tbl td { padding: 7px 6px; border-bottom: 2px solid var(--line); text-align: right; white-space: nowrap; } .tbl th:first-child, .tbl td:first-child { text-align: left; } .tbl th { color: var(--mute); font-weight: 600; }
.scroll { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { .go, #toast { transition: none; } }

/* v13: the score, today's question, the sponsor line */
.score { margin-top: 14px; padding: 12px 14px 8px; border: 3px solid var(--line); border-radius: 20px; background: var(--card); }
.score-head { margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.score-row { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-row.head { border-top: 0; font-size: 12.5px; }
.score-row span:first-child { color: var(--mute); }
.score-row span:nth-child(2) { color: var(--you-soft); } .score-row span:nth-child(3) { color: var(--them-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row.w span:nth-child(2), .score-row.l span:nth-child(3) { color: #fff; font-weight: 700; }
.qa { margin-top: 14px; padding: 12px 14px 14px; border: 3px solid var(--line); border-radius: 20px; background: var(--card); }
.qa-q { margin: 0; } .qa-q span { display: block; color: var(--mute); font-size: 12.5px; font-weight: 600; } .qa-q b { display: block; font-size: 17px; line-height: 1.3; }
.qa-a { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--pill); font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.qa .field { margin-top: 12px; }
#qBox span b { color: #fff; font-weight: 600; }
.lock { margin: 12px 0 0; padding: 11px 14px; border: 3px dashed var(--line); border-radius: 16px; background: var(--card); font-weight: 600; font-size: 14.5px; text-align: center; }
.spons { margin-top: 16px; color: var(--mute); font-size: 13px; text-align: center; }
.spons a { color: var(--you-soft); font-weight: 600; }
.spons .ad { padding: 1px 6px; border: 1px solid #5c6070; border-radius: 6px; color: #c9cddb; font-size: 11px; font-weight: 700; }
.stage.small.tight { max-height: 22vh; max-height: 22dvh; }      /* the send step: the buttons matter more than the picture */
