:root{--night:#1a2140;--night-2:#232c55;--night-3:#2f3a6b;--thread-white:#eef0f6;--thread-red:#d2263a;--thread-green:#1f9e6e;--thread-gold:#e6b53e;--muted:#a9b0cf;--display:"Unbounded", system-ui, sans-serif;--body:"Golos Text", system-ui, sans-serif;--radius-button:14px}*{box-sizing:border-box}html,body{background:var(--night);color:var(--thread-white);margin:0}body{font-family:var(--body);-webkit-tap-highlight-color:transparent;font-size:18px;line-height:1.45}button,input{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--thread-gold);outline-offset:2px}.app{flex-direction:column;min-height:100dvh;display:flex}.page{width:100%;max-width:560px;padding:16px 16px calc(24px + env(safe-area-inset-bottom));flex-direction:column;flex:1;gap:16px;margin:0 auto;display:flex}.stitch{background-color:var(--night);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3l-6 6M3 13l6 6M9 13l-6 6' stroke='%23d2263a'/%3E%3Cpath d='M13 8l6 6M19 8l-6 6' stroke='%23eef0f6'/%3E%3Cpath d='M25 3l6 6M31 3l-6 6M25 13l6 6M31 13l-6 6' stroke='%23d2263a'/%3E%3Cpath d='M35 8l6 6M41 8l-6 6' stroke='%231f9e6e'/%3E%3C/g%3E%3C/svg%3E");background-position:50%;background-repeat:repeat-x;flex:none;height:22px}h1,h2,.display{font-family:var(--display);margin:0;font-weight:800;line-height:1.15}h1{font-size:30px}h2{font-size:22px}.muted{color:var(--muted)}.small{font-size:15px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.spacer{flex:1}.btn{border:2px solid var(--night-3);border-radius:var(--radius-button);background:var(--night-2);text-align:left;cursor:pointer;width:100%;min-height:56px;padding:12px 16px;font-weight:500;transition:background-color .12s,border-color .12s,transform 80ms}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--thread-red);border-color:var(--thread-red);text-align:center;font-weight:700}.btn.quiet{text-align:center;background:0 0}.btn.picked{border-color:var(--thread-gold);background:#3a3a4f}.btn.correct{border-color:var(--thread-green);background:#164d42}.btn.wrong{border-color:var(--thread-red);background:#4a1d2c}.btn .letter{font-family:var(--display);color:var(--thread-gold);margin-right:12px;font-weight:800}.field{flex-direction:column;gap:6px;display:flex}.field input{border-radius:var(--radius-button);border:2px solid var(--night-3);background:var(--night-2);min-height:56px;padding:12px 16px;font-size:20px}.field input.code{font-family:var(--display);letter-spacing:.2em;text-transform:uppercase}.error{color:#ff8a97;font-weight:500}.tabs{grid-template-columns:1fr 1fr;gap:8px;display:grid}.tabs .btn{text-align:center}.room-code{font-family:var(--display);letter-spacing:.12em;color:var(--thread-gold);font-size:48px;font-weight:800}.people{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.people li{border-bottom:1px dashed var(--night-3);align-items:center;gap:10px;padding:8px 0;display:flex}.dot{background:var(--thread-green);border-radius:50%;flex:none;width:10px;height:10px}.dot.off{background:var(--muted);opacity:.5}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:2px solid var(--night-3);cursor:pointer;background:0 0;border-radius:999px;min-height:44px;padding:8px 14px}.chip.on{border-color:var(--thread-gold);background:var(--night-2)}.modes{gap:8px;display:grid}.question-text{font-size:24px;font-weight:700;line-height:1.3}.answers{gap:10px;margin-top:auto;display:grid}.banner{background:var(--thread-gold);color:var(--night);text-align:center;padding:6px;font-weight:700}.points{font-family:var(--display);color:var(--thread-gold)}.table{border-collapse:collapse;width:100%}.table td{border-bottom:1px dashed var(--night-3);padding:8px 0}.table td:last-child{text-align:right;font-family:var(--display)}.ladder{font-family:var(--display);flex-direction:column-reverse;gap:2px;margin:0;padding:0;font-size:14px;list-style:none;display:flex}.ladder li{color:var(--muted);border-radius:6px;justify-content:space-between;padding:3px 10px;display:flex}.ladder li.safe{color:var(--thread-gold)}.ladder li.done{color:var(--thread-white)}.ladder li.current{background:var(--thread-red);color:var(--thread-white)}.bars{grid-template-columns:repeat(4,1fr);align-items:end;gap:8px;height:90px;display:grid}.bars div{background:var(--thread-green);border-radius:6px 6px 0 0;min-height:4px}.tv,.tv .page{max-width:1100px;font-size:28px}.tv .question-text{font-size:48px}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
