.rule{text-align:center;font-size:16px;color:var(--fg);margin:0}.switch{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;background:var(--line);color:var(--fg);text-align:left;font-size:16px}.switch small{color:var(--muted)}.switch .knob{flex:none;position:relative;width:40px;height:24px;border-radius:12px;background:var(--muted);transition:background .2s}.switch .knob:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--bg);transition:transform .2s}.switch.on .knob{background:var(--accent)}.switch.on .knob:after{transform:translate(16px)}.fun-badge{text-align:center;color:var(--accent);font-weight:700;margin:0}.custom{border:1px solid var(--line);border-radius:12px;padding:8px 12px}.custom summary{min-height:40px;display:flex;align-items:center;cursor:pointer;font-weight:700}.custom label{display:flex;flex-direction:column;gap:6px;font-size:15px;color:var(--muted)}.custom textarea{width:100%;box-sizing:border-box;min-height:120px;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;font-size:16px;resize:vertical}.custom .hint{font-size:14px;text-align:left}.qr{display:none}@media(min-width:700px){.qr{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 auto}.qr svg{width:180px;height:180px;border-radius:8px;shape-rendering:crispEdges}.qr figcaption{color:var(--muted);font-size:14px}}.banner .banner-leave{margin-left:auto;min-height:28px;padding:2px 12px;font-size:14px;background:transparent;color:var(--fg);border:1px solid var(--muted);border-radius:8px;width:auto}.fun-title{text-align:center;font-size:32px;color:var(--accent);margin-top:4vh}.stats.fun{font-size:18px}.stats.fun .pop{animation-delay:calc(var(--i, 0) * .12s + .2s)}:root{--bg: #111;--surface: #1e1e1e;--line: #2a2a2a;--fg: #f5f5f5;--muted: #a3a3a3;--accent: #ffd43b;--on-accent: #111;--ok: #51cf66;--err: #ff8787;--focus: #74c0fc;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--fg);background:var(--bg)}*{box-sizing:border-box;margin:0}body{-webkit-tap-highlight-color:transparent;background:var(--bg)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.screen{min-height:100dvh;max-width:480px;margin:0 auto;padding:24px 20px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px;animation:enter .2s ease-out}@keyframes enter{0%{opacity:0;transform:translateY(8px)}}.bottom{margin-top:auto;display:flex;flex-direction:column;gap:10px}fieldset.room{border:0;padding:0;margin:0;min-width:0}h1{font-size:40px;font-weight:800}label{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:500;color:var(--muted)}small{color:var(--muted);font-weight:400}input{font:inherit;font-size:22px;font-weight:700;color:var(--fg);background:transparent;border:0;border-bottom:2px solid var(--line);padding:8px 0}input:focus{border-color:var(--accent)}.code-input{text-transform:uppercase;letter-spacing:.3em}button{font:inherit;font-size:20px;font-weight:700;min-height:60px;border:0;border-radius:16px;color:var(--on-accent);background:var(--accent);cursor:pointer;transition:transform .08s,filter .08s;touch-action:manipulation}button:active:not(:disabled){transform:scale(.97);filter:brightness(.9)}button:disabled{opacity:.4;cursor:default}button.ghost{background:transparent;color:var(--muted);font-weight:500;min-height:48px}.room-head{display:flex;align-items:center;gap:12px}.room-head .ghost{margin-left:auto;font-size:16px}.code{font-size:36px;font-weight:800;letter-spacing:.15em}.players{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}.players li{font-size:22px;font-weight:700;padding:12px 0;border-bottom:1px solid var(--line)}.players li small{font-size:15px}.off{opacity:.4}.notice{font-size:22px;margin-top:30vh;text-align:center}.error{color:var(--err)}.version{text-align:center;font-size:12px;color:var(--muted)}.star{color:var(--accent)}.tag{margin-left:8px;font-size:14px;padding:2px 6px;border-radius:6px;background:var(--line);color:var(--muted);vertical-align:middle}.hint{text-align:center;color:var(--muted);font-size:16px}.hint.late{color:var(--err);font-weight:700}.dots i{font-style:normal;animation:blink 1.2s infinite both}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.2}40%{opacity:1}}.config{display:flex;flex-direction:column;gap:10px}.seg{display:flex;flex-wrap:wrap;gap:8px;padding:4px;border-radius:14px;background:var(--line)}.seg button{flex:1 1 28%;min-height:48px;padding:4px 8px;font-size:15px;line-height:1.2;border-radius:10px;background:transparent;color:var(--muted)}.seg button.on{background:var(--accent);color:var(--on-accent)}.banner{position:fixed;top:0;left:0;right:0;z-index:1;height:36px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:500;background:var(--surface);border-bottom:2px solid var(--accent)}.banner.ok{color:var(--ok);border-color:var(--ok)}.banner.err{color:var(--err);border-color:var(--err)}.has-banner .screen{padding-top:60px}.pulse{width:10px;height:10px;border-radius:50%;background:var(--accent);animation:pulse 1s ease-in-out infinite alternate}@keyframes pulse{to{opacity:.25}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.round{color:var(--muted);font-size:15px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.clock{display:flex;align-items:center;gap:12px}.clock span{min-width:2ch;text-align:right;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.timer{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}.timer div{height:100%;background:var(--accent);transition:width .2s linear}.clock.low .timer div{background:var(--err)}.clock.low span{color:var(--err);animation:pulse .5s ease-in-out infinite alternate}.card{font-size:32px;font-weight:800;line-height:1.2;text-wrap:balance;overflow-wrap:anywhere}.target{font-size:17px;color:var(--muted)}.target b{color:var(--accent);font-weight:800}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choices{display:flex;flex-direction:column;gap:10px}.pick{position:relative;background:var(--line);color:var(--fg);overflow:hidden;overflow-wrap:anywhere;padding:8px 12px}.grid .pick{display:flex;flex-direction:column;align-items:center;justify-content:center}.pick small{font-size:14px}.pick.on{background:var(--accent);color:var(--on-accent);box-shadow:0 0 0 3px #fff inset;opacity:1}.pick.on:after{content:" ✓"}.choices .pick{text-wrap:balance}.locked .pick{opacity:.6;pointer-events:none}.voted{position:absolute;top:6px;right:8px;width:20px;height:20px;border-radius:50%;font-size:13px;line-height:20px;text-align:center;background:var(--ok);color:var(--on-accent)}.answered{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.answered li{font-size:14px;font-weight:500;padding:4px 10px;border-radius:12px;background:var(--surface);color:var(--muted)}.answered li.done{color:var(--ok)}.lead{text-align:center;color:var(--muted);font-size:17px;margin-top:4vh}.winner{font-size:44px;font-weight:800;text-align:center;color:var(--accent);margin-top:4vh;animation:pop .5s .1s both,glow 1.2s .6s ease-out;overflow-wrap:anywhere}.lead+.winner{margin-top:0}.winner.answer{font-size:32px;line-height:1.2;text-wrap:balance}@keyframes glow{50%{text-shadow:0 0 24px var(--accent)}}.gain{text-align:center;font-size:28px;font-weight:800;color:var(--ok);animation:pop .35s ease-out both;animation-delay:calc(var(--n, 0) * .12s + .6s)}.gain.none{font-size:17px;font-weight:500;color:var(--muted)}.bars,.opts{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}.bars li,.opts li{animation:pop .35s ease-out both;animation-delay:calc(var(--i, 0) * .12s)}.bars li{display:grid;grid-template-columns:minmax(90px,35%) 1fr 24px;align-items:center;gap:10px;font-size:17px}.bars span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bars span small{display:block;font-size:14px}.bars b{text-align:right}.bars li.win span,.bars li.win b{color:var(--accent);font-weight:800}.bar{height:14px;border-radius:7px;background:var(--line);overflow:hidden}.bar .grow{height:100%;background:var(--muted);transform-origin:left;animation:grow .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i, 0) * .12s + .15s)}.bars li.win .grow{background:var(--accent)}.opts li{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:var(--surface)}.opt-head{display:flex;justify-content:space-between;gap:10px;font-size:17px;font-weight:700}.opts small{font-size:14px}.opts li.ok{box-shadow:inset 0 0 0 2px var(--ok)}.opts li.ok .opt-head{color:var(--ok)}.opts li.ok .grow{background:var(--ok)}.choices .pick small{display:block;font-size:14px;color:inherit}.field{display:flex;flex-direction:column;gap:10px}.field input{width:100%;min-height:48px}.field input:disabled{opacity:.6}.count{align-self:flex-end;font-size:14px}.count.error{align-self:center;color:var(--err)}.num{display:flex;align-items:baseline;gap:10px}.num input{flex:1;min-width:0;font-variant-numeric:tabular-nums}.num b{font-size:20px;color:var(--fg)}.opts.slow li{animation-delay:calc(var(--i, 0) * .25s)}.opts.slow~.gain{animation-delay:calc(var(--n, 0) * .25s + .4s)}.opts small b{color:var(--fg)}.opts li.maj{box-shadow:inset 0 0 0 2px var(--accent)}.opts li.maj .opt-head{color:var(--accent)}.opts li.maj .grow{background:var(--accent)}.ranks,.words{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}.ranks li,.words li,.solo li{animation:pop .35s ease-out both;animation-delay:calc(var(--i, 0) * .12s + .3s)}.ranks li{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 10px;padding:10px 12px;border-radius:12px;background:var(--surface);font-size:17px}.ranks span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.ranks b{font-variant-numeric:tabular-nums}.ranks li>small{grid-column:1 / -1;font-size:14px}.ranks li.win{box-shadow:inset 0 0 0 2px var(--accent)}.ranks li.win span,.ranks li.win b{color:var(--accent);font-weight:800}.words{align-items:center;margin-top:4vh}.words li{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.words b{font-size:calc(16px + var(--k, 2) * 5px);font-weight:800;line-height:1.1;overflow-wrap:anywhere}.words li.win b{color:var(--accent)}.words small{font-size:14px}.solo li{font-size:16px;color:var(--fg)}.podium{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px;margin-top:4vh}.podium li{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:var(--line);font-size:22px}.podium .rank{font-weight:800;color:var(--muted)}.podium .who{flex:1;font-weight:700}.podium .p1{font-size:30px;background:var(--accent);color:var(--on-accent)}.podium .p1 .rank{color:var(--on-accent)}.podium .glow{animation:glow-dark 1.2s .8s ease-out}@keyframes glow-dark{50%{text-shadow:0 0 16px #fff}}.stats{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px;font-size:16px}.stats .pop{animation-delay:.8s}.pop{animation:pop .4s ease-out both}@keyframes pop{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}@keyframes grow{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
