
/* Layout: the whole first screen is the diner, drawn on a small canvas and scaled up with crisp pixels. The gumball machine stands in the middle at about 70% of the screen height, with the prompt, timer and typing line built into its front. Scroll down and the checkered floor carries on, with the rest of the page standing on it. Single dark arcade look on purpose. */
:root {
  --bg: #0d0b26;
  --panel: #17143f;
  --line: #2f2a6e;
  --well: #0a0920;
  --ink: #efeaff;
  --muted: #a39dda;
  --accent: #ffd23f;
  --accent-ink: #1a1400;
  --hot: #ff5c8a;
  --good: #5dffb0;
  --bad: #ff5c8a;
  --cream: #f2e6cf;
  --t0: #8e88c9; --t1: #ffd23f; --t2: #ff9f1c; --t3: #5dffb0; --t4: #b18cff;
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { color: var(--ink); font: 22px/1.2 var(--body); }

/* the diner (first screen) */
.diner { position: relative; height: 100svh; min-height: 520px; max-height: 1100px; overflow: hidden; background: #8a5a33; --u: 4px; }
/* phones: while the keyboard is up, the diner shrinks so the globe, score panel and answer box all fit above it */
.diner.kb { height: var(--kbh); min-height: 0; max-height: none; }
.scene-cv { position: absolute; top: 0; left: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { font: 400 clamp(32px, 7vw, 52px)/1 var(--display); margin: 0; color: var(--accent); text-shadow: 4px 4px 0 var(--hot), -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 6px 6px 0 #000; }
.brand span { color: var(--accent); }
.brand .beta { display: inline-block; vertical-align: top; margin-left: 10px; font-size: 10px; line-height: 1; letter-spacing: .08em; color: #1a1400; background: #5ddc6a; padding: 5px 6px 4px; border: 2px solid #000; box-shadow: 2px 2px 0 #000; text-shadow: none; transform: rotate(-6deg); position: relative; top: 4px; }
/* leaderboard medals */
ol.board li.medal1 { border-color: #ffd23f; background: linear-gradient(90deg, rgba(255, 210, 63, .22), var(--well) 70%); }
ol.board li.medal2 { border-color: #d6dce4; background: linear-gradient(90deg, rgba(214, 220, 228, .2), var(--well) 70%); }
ol.board li.medal3 { border-color: #e2924f; background: linear-gradient(90deg, rgba(226, 146, 79, .22), var(--well) 70%); }
ol.board li.medal1 .rank { color: #ffd23f; } ol.board li.medal2 .rank { color: #d6dce4; } ol.board li.medal3 .rank { color: #e2924f; }
/* podium celebration + trophy room */
.podium { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 20, .86); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.podium-box { position: relative; z-index: 2; background: var(--panel); border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 20px 18px; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.podium-box h2 { margin: 0; font: 400 20px/1.4 var(--display); }
.podium-box p { margin: 0; font-size: 21px; color: var(--muted); }
.podium-box .enter { font: 400 10px var(--display); background: var(--accent); color: var(--accent-ink); border: 3px solid #000; padding: 0 16px; min-height: 44px; cursor: pointer; }
.podium-trophy { width: 120px; height: 150px; animation: trophy-pop .7s cubic-bezier(.2, 1.6, .4, 1) both, trophy-bob 2.4s ease-in-out .7s infinite; filter: drop-shadow(4px 4px 0 #000); }
@keyframes trophy-pop { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes trophy-bob { 50% { transform: translateY(-6px); } }
.confetti { position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset -2px -2px 0 rgba(0,0,0,.25); animation: confetti-fall linear forwards; z-index: 1; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(540deg); } }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; width: 100%; }
.trophy-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: var(--well); border: 2px solid var(--line); min-height: 44px; position: relative; }
.trophy-btn:hover, .trophy-btn:focus-visible { border-color: var(--accent); outline: none; }
.trophy-btn svg { width: 46px; height: 58px; }
.trophy-btn .tlabel { font: 400 7px var(--display); color: var(--muted); white-space: nowrap; }
.trophy-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--well); border: 2px solid var(--accent); padding: 6px 10px; font-size: 19px; white-space: nowrap; box-shadow: 3px 3px 0 #000; }
.trophy-count { font: 400 9px/1.6 var(--display); color: var(--muted); }
.trophy-empty-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.trophy-empty { display: flex; gap: 8px; justify-content: center; }
.trophy-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: var(--well); border: 2px dashed var(--line); width: 66px; }
.trophy-slot svg { width: 46px; height: 58px; }
.trophy-slot .lock { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font: 400 16px var(--display); color: var(--muted); }
.trophy-empty-h { font: 400 12px/1.5 var(--display) !important; color: var(--ink) !important; }
@media (prefers-reduced-motion: reduce) { .podium-trophy, .confetti { animation: none; } .confetti { display: none; } }
.top::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
.sub { order: 4; width: 100%; max-width: max(160px, calc(50% - var(--u) * 26 - 16px)); font: 400 19px/1.1 var(--body); color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; }
.modes { display: flex; gap: 6px; }
.modes button { font: 400 10px var(--display); color: var(--muted); background: var(--well); border: 3px solid #000; padding: 10px 10px; cursor: pointer; min-height: 44px; }
.modes button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.menu-btn { margin-left: auto; order: 2; width: 48px; height: 48px; display: grid; place-items: center; background: var(--well); color: var(--accent); border: 3px solid #000; box-shadow: 3px 3px 0 #000; cursor: pointer; padding: 0; }
.acc-top { margin-left: auto; order: 2; width: 48px; height: 48px; min-width: 48px; display: grid; place-items: center; padding: 0; background: var(--well); color: var(--accent); border: 3px solid #000; box-shadow: 3px 3px 0 #000; cursor: pointer; font: 400 12px/1 var(--display); position: relative; }
.acc-top[hidden] { display: none; }
.acc-top:not([hidden]) + .menu-btn { margin-left: 0; }
.acc-top:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.acc-top .acc-dot { display: none; }
.acc-top.in .acc-dot { display: block; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; background: #5ddc6a; border: 2px solid #000; }
@media (max-width: 420px) { .top:has(.acc-top:not([hidden])) { column-gap: 8px; } .top:has(.acc-top:not([hidden])) .brand { font-size: 28px; } .top:has(.acc-top:not([hidden])) .brand .beta { margin-left: 6px; } .acc-top:not([hidden]), .acc-top:not([hidden]) + .menu-btn { width: 42px; min-width: 42px; height: 42px; } }
@media (max-width: 370px) { .top:has(.acc-top:not([hidden])) .brand { font-size: 24px; } }
.menu-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.menu-btn[aria-expanded="true"] svg rect[fill="#0a0920"] { fill: var(--accent); }
.menu-btn:focus-visible, .menu-item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.menu { position: absolute; z-index: 6; top: 70px; right: max(16px, env(safe-area-inset-right, 0px)); width: 248px; max-width: calc(100vw - 32px); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 12px; }
.menu .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid #000; }
.menu .modes button { border: 0; min-height: 40px; }
.menu .modes button + button { border-left: 3px solid #000; }
.menu-row { display: flex; align-items: center; gap: 10px; font: 400 10px var(--display); color: var(--ink); background: var(--well); border: 2px solid var(--line); padding: 6px 10px; min-height: 40px; cursor: pointer; text-align: left; }
.menu-row:hover, .menu-tile:hover { filter: brightness(1.2); }
.menu-row:focus-visible, .menu-tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.menu-row .q { width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid var(--muted); color: var(--muted); font: 400 9px var(--display); flex: none; }
#soundBtn .sw { margin-left: auto; width: 40px; height: 22px; border: 2px solid #000; background: var(--good); display: flex; justify-content: flex-end; padding: 2px; box-sizing: border-box; flex: none; }
#soundBtn .sw i { width: 14px; height: 14px; background: var(--well); display: block; }
#soundBtn.off .sw { background: var(--line); justify-content: flex-start; } #soundBtn.off .sw i { background: var(--muted); }
#soundBtn .note { flex: none; color: var(--accent); } #soundBtn.off .note { color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: 400 8px/1.3 var(--display); color: var(--ink); background: var(--well); border: 2px solid var(--line); padding: 12px 6px; min-height: 72px; cursor: pointer; text-align: center; }
.menu-tile .mi { width: 26px; height: 26px; }
#goArch[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.arch-btn { font: 400 9px var(--display); color: var(--accent-ink); background: var(--accent); border: 3px solid #000; padding: 8px 10px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.arch-btn small { font-size: 8px; }
.tut { position: absolute; z-index: 7; background: var(--cream); color: #1a1838; border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font: 400 22px/1.15 var(--body); --ax: 50%; }
.tut p { margin: 0; }
.tut::after { content: ""; position: absolute; left: var(--ax); bottom: -12px; width: 18px; height: 18px; background: var(--cream); border: 3px solid #000; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.tut.below::after { bottom: auto; top: -12px; transform: translateX(-50%) rotate(-135deg); }
.tut-step { font: 400 8px/1.4 var(--display); color: #b81f33; }
.tut-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-btn { font: 400 10px var(--display); color: var(--accent-ink); background: var(--accent); border: 3px solid #000; padding: 10px 12px; min-height: 40px; cursor: pointer; }
.tut-btn.ghost { background: transparent; color: #1a1838; }
.tut-btn:focus-visible { outline: 3px solid #1a1838; outline-offset: 2px; }
.menu-lbl { font: 400 8px var(--display); color: var(--muted); letter-spacing: .1em; }
.menu-item { font: 400 10px var(--display); color: var(--ink); background: var(--well); border: 3px solid #000; padding: 10px; min-height: 44px; cursor: pointer; text-align: left; }
.menu-item:hover, .menu .modes button:hover { filter: brightness(1.2); }

/* things built into the machine's front, placed by script in machine pixels (--u = one machine pixel) */
.mo { position: absolute; z-index: 1; }
.plate { background: var(--cream); color: #1a1838; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  padding: 0 calc(var(--u) * 1.2); font: 400 calc(var(--u) * 5)/0.95 var(--body); overflow-wrap: anywhere; }
.plate .lbl { white-space: nowrap; font: 400 max(7px, calc(var(--u) * 1.6))/1.3 var(--display); color: #b81f33; margin-bottom: calc(var(--u) * 0.7); }
.plate .what { text-wrap: balance; }
.hl { font-family: var(--display); color: #b81f33; font-size: .62em; }
.panel { display: flex; align-items: center; justify-content: space-around; text-align: center; line-height: 1; }
.panel.shake, .screen.no { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pn-cell { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 1); }
.pn-num { font: 400 calc(var(--u) * 5.6)/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.pn-num.secs { color: var(--hot); } .pn-num.count { color: var(--good); }
.pn-num.low { animation: blink .5s steps(2) infinite; }
.pn-lbl.think { color: var(--accent); font-size: max(9px, calc(var(--u) * 2.2)); letter-spacing: .1em; }
.pn-lbl { font: 400 max(7px, calc(var(--u) * 1.7))/1 var(--display); color: var(--muted); }
.pn-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 1); text-align: center;
  font: 400 max(9px, calc(var(--u) * 2.6))/1.5 var(--display); color: var(--accent); background: var(--well); }
.pn-btn:hover, .pn-btn:focus-visible { background: #1d1a4d; }
.pn-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pn-stack { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--u) * 1.5); }
.pn-play { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 1.4); }
.pn-row2 { display: flex; justify-content: space-around; }
.pn-row2:has(> :nth-child(3)) .pn-num { font-size: calc(var(--u) * 4.6); }
.pn-num.total { color: var(--accent); }
.pn-lbl.tot { color: var(--accent); }
.pn-bonus { font: 400 max(7px, calc(var(--u) * 1.8))/1 var(--display); color: #ffd23f; text-align: center; }
.pn-skip { all: unset; box-sizing: border-box; cursor: pointer; align-self: center; font: 400 max(8px, calc(var(--u) * 1.9))/1 var(--display); color: #1a1400; background: #ffd23f;
  border: max(2px, calc(var(--u) * 0.4)) solid #000; padding: calc(var(--u) * 0.9) calc(var(--u) * 1.6); }
.pn-skip:hover, .pn-skip:focus-visible { background: #ffe680; }
.pn-skip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pn-num.bonus { color: #ffd23f; }
.panel.inbonus { box-shadow: inset 0 0 0 calc(var(--u) * 0.6) #ffd23f, 0 0 calc(var(--u) * 3) rgba(255, 210, 63, .6); }
.pn-row { display: flex; align-items: baseline; justify-content: center; gap: calc(var(--u) * 1.2); }
.pn-btn.small { height: auto; padding: calc(var(--u) * 1) 0; font-size: max(8px, calc(var(--u) * 2)); border-top: 2px solid var(--line); }
.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.screen { display: flex; align-items: center; gap: calc(var(--u) * 1.2); padding: 0 calc(var(--u) * 1.5); cursor: text; }
.screen:focus-within { box-shadow: inset 0 0 0 calc(var(--u) * 0.5) var(--accent); }
.screen.ok { box-shadow: inset 0 0 0 calc(var(--u) * 0.5) var(--good); }
.screen.no { box-shadow: inset 0 0 0 calc(var(--u) * 0.5) var(--bad); }
.screen .prefix { font: 400 calc(var(--u) * 2.6) var(--display); color: var(--accent); }
input#guess { flex: 1; min-width: 0; height: 100%; font: 400 max(18px, calc(var(--u) * 6)) var(--body); color: #fff; background: transparent; border: 0; padding: 0; caret-color: var(--accent); }
input#guess:focus { outline: none; }
input#guess::placeholder { color: var(--muted); }
.scr-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; min-height: calc(var(--u) * 13); text-align: center; color: var(--accent); }
.scr-btn:hover, .scr-btn:focus-visible { background: #1d1a4d; }
.scr-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pn-msg { font: 400 max(9px, calc(var(--u) * 2.6))/1.5 var(--display); color: var(--accent); text-align: center; }
.scrmsg { width: 100%; text-align: center; font: 400 max(8px, calc(var(--u) * 2.1))/1.3 var(--display); color: var(--accent); }
.pops { pointer-events: none; overflow: hidden; }
.pop { position: absolute; left: 50%; top: 25%; transform: translateX(-50%); white-space: nowrap; font: 400 calc(var(--u) * 5.5)/1 var(--body); color: var(--c, #fff); text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; animation: rise 1.1s ease-out forwards; }
.pop.bad { color: var(--bad); }
.pop.wait { color: #d6d2ee; }
.pop.lidpop { top: 2%; font: 400 calc(var(--u) * 4)/1 var(--display); }
/* rarity flash, about two thirds of the way up the glass */
.r1 { --c: #b8b4c8; --i: #1a1838; } .r2 { --c: #5ddc6a; --i: #0b2e12; } .r3 { --c: #7cc8ff; --i: #06263d; } .r4 { --c: #b06cff; --i: #ffffff; } .r5 { --c: #ffd23f; --i: #3a2600; }
.rar.r5, .leg.r5 { animation-name: rarpop, glow; animation-duration: 1s, .5s; animation-timing-function: ease-out, ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: forwards, none; }
.leg.r5 { animation: glow .8s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 #000, 0 0 calc(var(--u, 4px) * 1.5) #ffd23f; } to { box-shadow: 0 0 0 #000, 0 0 calc(var(--u, 4px) * 5) #ffe680; } }
.rar { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 0.7);
  padding: calc(var(--u) * 1.1) calc(var(--u) * 1.8); background: var(--c); color: var(--i); border: max(2px, calc(var(--u) * 0.5)) solid #000; box-shadow: calc(var(--u) * 0.7) calc(var(--u) * 0.7) 0 #000;
  font: 400 max(8px, calc(var(--u) * 2.3))/1 var(--display); white-space: nowrap; animation: rarpop 1s ease-out forwards; }
.rar .pips { font-size: max(7px, calc(var(--u) * 1.7)); letter-spacing: calc(var(--u) * 0.4); }
@keyframes rarpop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 24% { transform: translate(-50%, -50%) scale(1); } 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.rar { z-index: 2; }
.spk { z-index: 1; position: absolute; left: 50%; top: 47%; width: calc(var(--u) * 1.2); height: calc(var(--u) * 1.2); background: var(--c); box-shadow: 0 0 0 max(1px, calc(var(--u) * .3)) #000; animation: spk .8s ease-out forwards; }
@keyframes spk { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); } }
.rar.r5.legend { font-size: max(10px, calc(var(--u) * 3.4)); padding: calc(var(--u) * 1.6) calc(var(--u) * 2.6); animation-duration: 1.9s, .35s; }
.spk.gold { width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); animation-duration: 1.4s; }
.flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 35%, rgba(255, 230, 128, .85), rgba(255, 210, 63, .35) 35%, rgba(255, 210, 63, 0) 70%); animation: flash .85s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.leg { background: var(--c); color: var(--i); font: 400 9px var(--display); padding: 5px 7px; border: 2px solid #000; }
@keyframes rise { from { opacity: 1; transform: translate(-50%, 40px); } to { opacity: 0; transform: translate(-50%, 0); } }
.p1 { --c: #c9c5da; } .p2 { --c: #5ddc6a; } .p3 { --c: #7cc8ff; } .p4 { --c: #c79bff; } .p5 { --c: #ffd23f; }

/* the floor carries on below the machine; the page stands on it */
.floor { background: #b37a43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' shape-rendering='crispEdges'%3E%3Crect width='24' height='6' fill='%23c48a50'/%3E%3Crect y='6' width='24' height='1' fill='%236b4423'/%3E%3Crect y='7' width='24' height='6' fill='%23b37a43'/%3E%3Crect y='13' width='24' height='1' fill='%236b4423'/%3E%3Crect width='1' height='6' fill='%236b4423'/%3E%3Crect x='12' y='7' width='1' height='6' fill='%236b4423'/%3E%3C/svg%3E") var(--tx, 0px) 0 / calc(var(--tw, 32px) * 3) calc(var(--th, 28px) * 2); image-rendering: pixelated; min-height: 60vh; }
.wrap { max-width: 560px; margin: 0 auto; padding-block: 28px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 22px; }
.card { background: var(--panel); border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font: 400 9px/1.6 var(--display); color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; text-transform: uppercase; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.k { background: var(--well); border: 2px solid var(--line); padding: 2px 6px; font: 400 21px/1.1 var(--body); display: inline-flex; align-items: center; gap: 7px; }
.k.miss { background: transparent; border-style: dashed; color: var(--muted); }
.k.got { border-color: var(--good); color: var(--good); }
details.review { background: var(--well); border: 2px solid var(--line); }
details.review summary { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
details.review summary::-webkit-details-marker { display: none; }
details.review summary::after { content: "▼"; font: 400 9px var(--display); color: var(--accent); grid-column: 3; justify-self: end; display: none; }
details.review summary .n { font: 400 12px var(--display); color: var(--muted); }
details.review summary .q { min-width: 0; overflow-wrap: anywhere; }
details.review summary .r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
details.review[open] summary { border-bottom: 2px solid var(--line); color: var(--accent); }
details.review summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.review-body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
input.ans-search { width: 100%; font: 400 24px var(--body); color: #fff; background: var(--bg); border: 3px solid var(--line); padding: 8px 12px; min-height: 48px; }
input.ans-search:focus { outline: none; border-color: var(--accent); }
input.ans-search::placeholder { color: var(--muted); }
.rgroup { display: flex; flex-direction: column; gap: 8px; }
.rtab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
button.k.rtab { background: var(--well); border: 2px solid var(--line); padding: 2px 6px; font: 400 21px/1.1 var(--body); color: var(--ink); }
button.k.rtab.on { border-color: var(--accent); }
.rtab:hover .leg, .rtab:focus-visible .leg { filter: brightness(1.15); }
.rtab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rbreak { flex-basis: 100%; height: 0; }
.rhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 19px; }
.k.wrong { background: transparent; border: 0; color: var(--bad); text-decoration: line-through; padding: 2px 2px; }
.k.wrong .flag { font: 400 8px/1 var(--display); color: var(--accent); background: var(--well); border: 2px solid var(--line); padding: 6px 7px; min-height: 30px; cursor: pointer; text-decoration: none; }
.k.wrong .flag:hover:not(:disabled) { border-color: var(--accent); }
.k.wrong .flag:disabled { color: var(--good, #5dffb0); cursor: default; }
.btn { font: 400 13px/1.4 var(--display); color: var(--accent-ink); background: var(--accent); border: 3px solid #000; box-shadow: inset -4px -4px 0 #c99a00, inset 4px 4px 0 #fff2a8; padding: 16px 14px; min-height: 60px; cursor: pointer; width: 100%; text-transform: uppercase; }
.btn:active { box-shadow: inset 4px 4px 0 #c99a00; }
.btn:focus-visible, .modes button:focus-visible, .linkish:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.linkish { background: none; border: 0; color: var(--accent); font: 400 21px var(--body); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.rounds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rounds li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--well); border: 2px solid var(--line); }
.rounds .n { font: 400 12px var(--display); color: var(--muted); }
.rounds .q { min-width: 0; overflow-wrap: anywhere; }
.rounds .q.hid { color: var(--muted); letter-spacing: .3em; }
.rounds .r { font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 12px; height: 12px; display: inline-block; box-shadow: 0 0 0 2px #000; }
.tier { display: inline-flex; align-items: center; font: 400 11px var(--display); padding: 8px 12px; color: #121035; text-transform: uppercase; border: 3px solid #000; }
.big { font: 400 44px/1 var(--display); text-align: center; color: var(--good); }
.big small { display: block; font: 400 21px var(--body); color: var(--muted); margin-top: 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }
p { margin: 0; }
h2 { font: 400 12px/1.6 var(--display); margin: 0; color: var(--accent); text-transform: uppercase; }
.fold-head { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.fold-head.eyebrow { justify-content: flex-start; flex-wrap: nowrap; } .fold-head.eyebrow > span:nth-child(2) { white-space: nowrap; } .fold-head.eyebrow > span:first-child { min-width: 0; } .fold-head.eyebrow > span:nth-child(2) { margin-left: auto; }
.fold-head:not(.eyebrow) > .fold-btn { margin-left: auto; }
.fold-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: var(--well); color: var(--accent); border: 2px solid var(--line); font: 400 16px/1 var(--body); cursor: pointer; }
.fold-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fold-btn span { display: block; transition: transform .15s; } .card.folded .fold-btn span { transform: rotate(-90deg); }
.card.folded > :not(.fold-head) { display: none !important; }
#boardCard > .eyebrow > span:first-child, #yestCard > .eyebrow > span:first-child { font: 400 12px/1.6 var(--display); color: var(--accent); } /* same title style as How to play */
h3 { font: 400 9px var(--display); color: var(--muted); margin: 0; text-transform: uppercase; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 19px; color: var(--muted); }
.scale span { display: inline-flex; align-items: center; gap: 5px; }
ol.board { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
ol.board li { display: grid; grid-template-columns: minmax(26px, auto) 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; background: var(--well); border: 2px solid var(--line); }
ol.board .rank { font: 400 11px var(--display); color: var(--muted); }
ol.board li.top10 .rank { color: #7cc8ff; }
ol.board li.zone { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 2px; white-space: nowrap; }
ol.board li.zone .zl { flex: 1; min-width: 12px; border-top: 2px dashed rgba(255, 210, 63, .7); }
ol.board li.zone .zt { font: 400 8px var(--display); color: var(--accent); letter-spacing: .06em; }
ol.board li.zone .zcup { display: inline-flex; }
.board-more { align-self: center; margin-top: 6px; font-size: 21px; }
.board-more-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; }
.board-more-row:not(:has(.board-more:not([hidden]))) { display: none; }
ol.board .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
ol.board .rtop { display: flex; align-items: center; gap: 10px; }
ol.board .tiers { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; font: 400 9px var(--display); color: var(--ink); }
ol.board .tchip { display: inline-flex; align-items: center; gap: 2px; }
ol.board .tchip.zero { opacity: .4; }
ol.board .tchip i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #000; display: inline-block; }
ol.board .who { min-width: 0; font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; } /* long names wrap instead of being cut off */
ol.board .who em { font-style: normal; color: var(--muted); margin-left: 6px; white-space: nowrap; }
ol.board .sq { font-size: 12px; letter-spacing: 1px; }
ol.board li.head { background: none; border: 0; padding: 0 12px; }
ol.board li.head span { font: 400 7px var(--display); color: var(--muted); letter-spacing: .08em; }
ol.board .gb-h, ol.board .gb { min-width: 64px; text-align: right; }
ol.board .sc-h, ol.board .sc { min-width: 48px; text-align: right; }
ol.board .gb { font: 400 13px var(--display); color: var(--ink); display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
ol.board .gb.none::before { display: none; }
ol.board .gb::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #fff 0 15%, #ff6fa0 18% 60%, #c2185b 100%); box-shadow: 0 0 0 1px #000; }
ol.board .sc { font: 400 13px var(--display); color: var(--good); }
.note { font-size: 19px; color: var(--muted); }
.nick { display: flex; flex-direction: column; gap: 8px; }
.nick label { font: 400 9px/1.6 var(--display); color: var(--accent); text-transform: uppercase; }
.nick-row { display: flex; gap: 8px; }
.nick-row input { flex: 1; min-width: 0; font: 400 24px var(--body); color: #fff; background: var(--well); border: 3px solid var(--line); padding: 8px 12px; min-height: 48px; }
.nick-row input:focus { outline: none; border-color: var(--accent); }
.nick-row .enter { font: 400 10px var(--display); background: var(--accent); color: var(--accent-ink); border: 3px solid #000; padding: 0 14px; cursor: pointer; }
ol.board li.me { border-color: var(--accent); }
.lg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs[hidden], .lg-bar[hidden], .lg-foot[hidden], .lg-lines[hidden] { display: none; }
.lg-tab { flex: none; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 9px/1 var(--display); text-transform: uppercase; color: var(--ink); background: var(--well); border: 2px solid var(--line); padding: 0 10px; min-height: 36px; cursor: pointer; }
.lg-tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: #000; }
.lg-tab.add { color: var(--accent); border-style: dashed; border-color: var(--accent); }
.lg-tab:focus-visible, .lg-bar { display: flex; flex-direction: column; gap: 8px; }
.lg-gap { margin: 0; font-size: 21px; color: var(--ink); }
ol.board li.lg-out { opacity: .55; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; }
.lg-foot .enter { font: 400 10px var(--display); background: var(--accent); color: var(--accent-ink); border: 3px solid #000; padding: 0 14px; min-height: 44px; cursor: pointer; }
.lg-lines { display: flex; flex-direction: column; gap: 6px; }
.lg-line { font: 400 20px/1.25 var(--body); color: var(--ink); text-align: center; background: var(--well); border: 2px solid var(--line); padding: 8px 10px; cursor: pointer; }
.lg-line b { color: var(--accent); font-weight: 400; }
.lg-input { font: 400 24px var(--body); color: #fff; background: var(--well); border: 3px solid var(--line); padding: 8px 12px; min-height: 48px; width: 100%; box-sizing: border-box; }
.lg-input:focus { outline: none; border-color: var(--accent); }
.lg-link { font-size: 18px; }
.lg-label { font: 400 9px/1.6 var(--display); color: var(--accent); text-transform: uppercase; margin-bottom: -6px; }
.lg-invited { color: var(--muted); text-align: center; }
.gate-box h2.lg-big { font-size: 18px; text-align: center; overflow-wrap: anywhere; }
.lg-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.lg-members li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 21px; background: var(--well); border: 2px solid var(--line); padding: 2px 10px; overflow-wrap: anywhere; }
.lg-members em { font-style: normal; color: var(--muted); }
.lg-members .linkish { font-size: 18px; padding: 6px 0; flex: none; }
#yestCard[hidden] { display: none; }
.yest-list { display: flex; flex-direction: column; gap: 6px; }
.yest-item { background: var(--well); border: 2px solid var(--line); }
.yest-item.open { border-color: var(--accent); }
.yest-q { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--ink); font: 400 22px/1.15 var(--body); text-align: left; padding: 8px 10px; min-height: 44px; cursor: pointer; }
.yest-q:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.yest-chev { color: var(--muted); flex: none; } .yest-item.open .yest-chev { color: var(--accent); }
.yest-body { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.yest-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 1.3fr) 3.2em; gap: 8px; align-items: center; font-size: 20px; }
.yest-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yest-bar { height: 10px; background: var(--line); display: block; } .yest-bar i { display: block; height: 100%; }
.yest-pc { text-align: right; color: var(--muted); }
.yest-note { margin: 2px 0 0; font-size: 18px; color: var(--muted); } .yest-note b { font-weight: 400; }
.pct { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--well); border: 2px solid var(--line); padding: 12px; }
.pct[hidden] { display: none; }
.pct-big { font: 400 16px/1.4 var(--display); color: var(--accent); }
.spr-wrap { width: 100%; margin-top: 6px; }
.spr-hill { display: block; overflow: visible; }
.spr-l { position: relative; height: 20px; font-size: 18px; color: var(--muted); margin-top: 2px; } .spr-l span { position: absolute; top: 0; transform: translateX(-50%); } .spr-l span:first-child { transform: none; }
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(5,4,20,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sv-box .sv-opt { width: 100%; }
.gate-box { background: var(--panel); border: 3px solid #000; box-shadow: 6px 6px 0 #000; padding: 18px 16px; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.gate-box h2 { margin: 0; font: 400 14px/1.5 var(--display); color: var(--accent); }
.acc-box input[type=email], .acc-box .acc-code { font: 400 24px var(--body); color: #fff; background: var(--well, #0a0920); border: 3px solid var(--line, #2f2a6e); padding: 8px 12px; min-height: 48px; width: 100%; box-sizing: border-box; }
.acc-box .acc-code { font: 400 22px var(--display); letter-spacing: 6px; text-align: center; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 20px; cursor: pointer; }
.acc-check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.acc-small { font-size: 18px; color: var(--muted); margin: 0; } .acc-small a { color: var(--accent); }
.acc-email { color: #fff; word-break: break-all; }
.acc-card { background: var(--well, #0a0920); border: 2px solid var(--good); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 20px; }
.acc-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-danger { color: var(--bad); } .acc-box .acc-del { background: var(--bad); color: #000; }
.acc-shelf { display: flex; gap: 8px; justify-content: center; } .acc-shelf svg { width: 48px; height: 60px; }
.gate-box.acc-box > .enter { align-self: stretch; } .acc-box .enter { font: 400 11px var(--display); background: var(--accent); color: var(--accent-ink); border: 3px solid #000; padding: 0 16px; min-height: 48px; cursor: pointer; }
.acc-box .enter:disabled { opacity: .6; cursor: default; }
.gate-box h3 { margin: 6px 0 0; font: 400 10px/1.5 var(--display); color: var(--accent); }
.gate-box p { margin: 0; font-size: 20px; }
.gate-msg:empty { display: none; }
.gate-msg { color: #ff8a8a; }
.gate-box textarea { font: 400 22px/1.2 var(--body); color: #fff; background: var(--well); border: 3px solid var(--line); padding: 8px 12px; resize: vertical; min-height: 120px; }
.gate-box textarea:focus { outline: none; border-color: var(--accent); }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fb-count { color: var(--muted); font-size: 18px; }
.gate-box .enter { font: 400 10px var(--display); background: var(--accent); color: var(--accent-ink); border: 3px solid #000; padding: 0 14px; cursor: pointer; min-height: 44px; }
.gate-box .enter:disabled { opacity: .6; cursor: default; }
.gate-box > .enter { align-self: flex-start; }
.fb-item { background: var(--well); border: 2px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.fb-item .meta { color: var(--muted); font-size: 17px; }
.fb-item .text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 20px; }
textarea#shareBox { width: 100%; font: 400 20px var(--body); background: var(--well); color: var(--ink); border: 2px solid var(--line); padding: 10px; min-height: 110px; }
@media (max-width: 600px) { .sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .screen.no, .panel.shake, .pn-num.low, .blink, .pop, .rar, .flash { animation: none; } .pop, .spk, .flash { display: none; } }

body { margin: 0; }
/* Everythingle additions */
.unl-cta{display:flex;flex-direction:column;align-items:center;gap:10px;margin:14px 0 4px;padding:14px 12px;border:2px dashed currentColor;border-radius:8px}
.unl-cta p{margin:0}
header.top{padding-left:calc(16px + var(--site-logo-space,0px))}
.ev-mwm{z-index:2;display:flex;align-items:center;justify-content:center;font-family:"VT323",monospace;color:#ffc2d4;white-space:nowrap;pointer-events:none;user-select:none;letter-spacing:.02em;text-shadow:0 1px 0 rgba(120,0,30,.45)}
.ev-wm{position:absolute;right:10px;bottom:6px;z-index:6;font-family:"VT323",monospace;font-size:16px;color:#efeaff;opacity:.75;pointer-events:none;letter-spacing:.5px}
