/* Pages outside the game: the same type and restraint, without the theatre. */
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-var.woff2) format("woff2");
}

:root {
  --bg: #000; --surface: rgba(255, 255, 255, .06); --text: #F5F5F7; --muted: #B4B4BB; --line: rgba(255, 255, 255, .16);
  --accent: #5EEAD4; --on-accent: #04211C;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; }

.top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand small { font-size: 13px; font-weight: 400; color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
.top nav a:hover { text-decoration: underline; }
.top nav .call { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }

main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(36px, 7vh, 72px) 20px 56px; }
.prose { max-width: 40em; margin: 0 auto; }
.prose.flush { margin: 48px 0 0; }
.wide { width: 100%; }
.kicker { font-size: 17px; font-weight: 600; color: var(--accent); }
h1 { margin: 8px 0 20px; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { margin: 40px 0 12px; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.lead { margin-bottom: 20px; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.prose p + p, .prose ul + p { margin-top: 14px; }
.steps { padding-left: 1.4em; display: grid; gap: 12px; }
.plain { list-style: disc; padding-left: 1.4em; display: grid; gap: 8px; }
.note { font-size: 15px; color: var(--muted); }
.empty { padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.draft { margin-bottom: 24px; padding: 12px 16px; border-radius: 12px; background: #F5B942; color: #1E1503; }
.placeholder { padding: 1px 6px; border-radius: 6px; background: #F5B942; color: #1E1503; }
.badge { display: inline-block; padding: 0 8px; border: 1px solid var(--muted); border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }

.button { display: inline-block; margin-top: 28px; padding: 13px 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 14px; font-weight: 600; color: var(--muted); }
td a { color: var(--text); overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-label { font-size: 15px; color: var(--muted); }
.stat-big { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.bill { max-width: 600px; margin: 0 auto; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.bill-holder { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.bill h1 { margin: 18px 0 24px; font-size: clamp(50px, 13vw, 92px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.bill dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.bill dt { color: var(--muted); }
.bill dd { font-weight: 600; }

.joke-form { display: grid; gap: 8px; max-width: 30em; margin-top: 12px; }
.joke-form label { margin-top: 10px; font-weight: 600; }
.joke-form select, .joke-form textarea { width: 100%; padding: 12px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--muted); border-radius: 10px; }
.joke-form select option { color: #111; }
.joke-form button { justify-self: start; margin-top: 12px; padding: 12px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.joke-form + .note { margin-top: 20px; }

/* The height is reserved here, so an ad that arrives late can't move anything. */
/* And 150px clear of anything to press, so a mistaken tap can't land on an ad. */
.ad-slot { margin: 150px auto; padding: 12px 0 0; min-height: 290px; border-top: 1px solid var(--line); }
.ad-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.foot { padding: 28px 20px 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot a { color: var(--text); }

@media (max-width: 560px) {
  th, td { padding: 10px; font-size: 15px; }
  .top nav { gap: 2px 14px; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.flush-button { margin-top: 4px; }
.clock-test { margin: 28px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
#dial { display: block; width: min(300px, 100%); margin: 0 auto 16px; }
.dial-rim { fill: none; stroke: var(--line); stroke-width: 2; }
#dial-ticks line { stroke: var(--muted); stroke-width: 1; }
#dial-hand { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.dial-pin { fill: var(--accent); }
#clock-status { min-height: 1.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.clock-actions button { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-weight: 650; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.clock-actions .quiet-button { background: transparent; border: 1px solid var(--muted); color: var(--text); font-weight: 500; }
#clock-results { margin-top: 16px; }
.erase { margin: 8px 0 24px; }
.erase-button { margin-top: 4px; border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.erase-button:disabled { opacity: .6; cursor: default; }
