:root{--bg: #f4f5fb;--surface: #ffffff;--text: #1b1d2a;--muted: #5f6478;--border: #dcdff0;--accent: #4338ca;--accent-text: #ffffff;--accent-soft: #e6e5fb;--good: #137a4b;--bad: #b3261e;--gold: #b8860b;--radius: 14px;--gutter: 16px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}@media(prefers-color-scheme:dark){:root{--bg: #12131c;--surface: #1c1e2c;--text: #eceefb;--muted: #a0a5bd;--border: #2f3247;--accent: #8b87ff;--accent-text: #11121a;--accent-soft: #2a2b52;--good: #5fd39a;--bad: #ff8a80;--gold: #f2c14e}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:var(--bg)}.app{position:fixed;inset:0 0 auto 0;height:var(--app-height, 100dvh);display:flex;flex-direction:column}.screen{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:560px;margin:0 auto}.topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:max(8px,env(safe-area-inset-top)) max(var(--gutter),env(safe-area-inset-right)) 8px max(var(--gutter),env(safe-area-inset-left))}.topbar-title{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em;font-size:1.35rem;color:var(--accent)}.body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px max(var(--gutter),env(safe-area-inset-right)) 16px max(var(--gutter),env(safe-area-inset-left))}.actions{flex:0 0 auto;display:flex;flex-direction:column;gap:8px;padding:12px max(var(--gutter),env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));background:var(--bg);border-top:1px solid var(--border)}.hero{position:relative;flex:0 0 auto;height:clamp(110px,34%,340px);margin:0 var(--gutter);border-radius:var(--radius);overflow:hidden;background:#0e0f16;display:grid;place-items:center}.hero img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;display:block}.hero.compact{height:clamp(90px,22%,200px)}.hero-error{all:unset;color:#fff;padding:16px;text-align:center;cursor:pointer}.credit{position:absolute;right:8px;bottom:6px;padding:2px 8px;font-size:.75rem;color:#fff;background:#0000008c;border-radius:999px;text-decoration:none}.lede{font-size:1.05rem;color:var(--muted);margin:8px 0 20px;line-height:1.4}.hint{color:var(--muted);font-size:.95rem;margin:8px 0}.hint.bad{color:var(--bad)}.done{color:var(--good);font-weight:600;margin:12px 0 4px}.section{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:24px 0 10px}.count{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:1px 8px;margin-left:4px}.stack{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field>span{font-size:.9rem;font-weight:600}input,textarea{font:inherit;font-size:16px;color:inherit;background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:12px 14px;min-height:48px;width:100%;resize:none}input:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.code-input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.4rem;letter-spacing:.3em;text-transform:uppercase;text-align:center}.inline{display:flex;gap:8px;margin-top:8px}.quote{margin:0;padding:14px;background:var(--surface);border-left:4px solid var(--accent);border-radius:8px;overflow-wrap:anywhere}.btn{font:inherit;font-weight:600;min-height:52px;padding:0 20px;border-radius:14px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;touch-action:manipulation}.btn.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-size:1.05rem}.btn.ghost{background:transparent;min-height:44px}.btn.small{min-height:44px;padding:0 16px}.btn.link{all:unset;display:block;margin:24px auto 8px;padding:12px;color:var(--muted);text-decoration:underline;cursor:pointer}.btn:disabled,.card:disabled{opacity:.55;cursor:not-allowed}.btn:active:not(:disabled){transform:scale(.98)}.card{font:inherit;text-align:left;color:inherit;display:flex;flex-direction:column;gap:4px;width:100%;padding:16px;min-height:64px;background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);cursor:pointer;touch-action:manipulation}.card .meta{font-size:.8rem;color:var(--muted)}.game-card strong{font-size:1.15rem}.cards{display:flex;flex-direction:column;gap:10px}.vote-card{font-size:1.05rem;overflow-wrap:anywhere}.vote-card.selected{border-color:var(--accent);background:var(--accent-soft)}.vote-card.mine{border-style:dashed}.vote-card:disabled.selected{opacity:1}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{font:inherit;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface);color:var(--text);text-transform:capitalize;cursor:pointer}.chip.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.stepper{display:flex;align-items:center;gap:16px}.stepper .btn{width:56px;padding:0;font-size:1.5rem}.stepper output{min-width:40px;text-align:center;font-size:1.6rem;font-weight:700}.players,.scores,.results,.podium{list-style:none;margin:0;padding:0}.players{display:flex;flex-direction:column;gap:8px}.player{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--surface);border-radius:12px;border:1px solid var(--border)}.player.offline{opacity:.55}.player-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag{color:var(--muted);font-size:.8rem}.avatar{flex:0 0 auto;display:inline-grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;font-size:.85em}.badge{font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.badge.muted{background:var(--border);color:var(--muted)}.winner{font-size:1.2rem;font-weight:700;margin:8px 0 14px}.results{display:flex;flex-direction:column;gap:10px}.result{cursor:default}.winner-card{border-color:var(--gold)}.result-text{font-size:1.05rem;overflow-wrap:anywhere}.result-meta{display:flex;align-items:center;gap:6px;font-size:.9rem;color:var(--muted)}.points{margin-left:auto;color:var(--good)}.scores li{display:flex;justify-content:space-between;padding:10px 4px;border-bottom:1px solid var(--border)}.podium{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin-top:12px}.podium-item{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);text-align:center;overflow-wrap:anywhere}.podium-item.rank-1{padding-top:28px;padding-bottom:20px;border-color:var(--gold)}.medal{font-size:1.8rem}.banner,.conn-banner{flex:0 0 auto;padding:8px var(--gutter);text-align:center;font-size:.9rem;background:var(--accent-soft);color:var(--text)}.conn-banner{background:var(--bad);color:#fff;padding-top:max(8px,env(safe-area-inset-top))}.toast{position:fixed;left:50%;bottom:calc(110px + env(safe-area-inset-bottom));transform:translate(-50%);max-width:min(92vw,480px);padding:12px 18px;border-radius:12px;background:var(--text);color:var(--bg);font-size:.95rem;box-shadow:0 6px 24px #00000040;z-index:10}.toast.error{background:var(--bad);color:#fff}@media(prefers-reduced-motion:no-preference){.btn,.card,.chip{transition:transform .08s ease,background-color .15s ease,border-color .15s ease}}@media(max-height:460px){.topbar{min-height:40px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}.hero{height:clamp(60px,24%,340px)}.actions{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.actions .btn.ghost{display:none}.btn,.btn.primary{min-height:48px}.lede{display:none}}
