:root{--bg: #111;--fg: #f5f5f5;--muted: #8a8a8a;--accent: #ffd43b;--line: #2a2a2a;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}.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}.bottom{margin-top:auto;display:flex;flex-direction:column;gap:10px}h1{font-size:40px;font-weight:800}label{display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--muted)}small{color:var(--muted);font-weight:400}input{font:inherit;font-size:22px;color:var(--fg);background:transparent;border:0;border-bottom:2px solid var(--line);padding:8px 0;outline:none}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:#111;background:var(--accent);cursor:pointer}button:disabled{opacity:.35}button.ghost{background:transparent;color:var(--muted);font-weight:500;min-height:44px}.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}.dot{width:10px;height:10px;border-radius:50%;background:var(--muted)}.dot.open{background:#51cf66}.players{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}.players li{font-size:22px;padding:12px 0;border-bottom:1px solid var(--line)}.notice{font-size:22px;margin-top:30vh;text-align:center}.error{color:#ff6b6b}.version{text-align:center;font-size:12px;color:var(--muted)}.players li.off{opacity:.4}.star{color:var(--accent)}.tag{margin-left:8px;font-size:12px;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}.config{display:flex;flex-direction:column;gap:10px}.seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--line)}.seg button{flex:1;min-height:44px;font-size:15px;border-radius:10px;background:transparent;color:var(--muted)}.seg button.on{background:var(--accent);color:#111}.banner{position:fixed;top:0;left:0;right:0;z-index:1;padding:6px;text-align:center;font-size:14px;background:var(--line)}.banner.error{background:#5c1f1f;color:#fff}.round{color:var(--muted);font-size:15px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.timer{height:6px;border-radius:3px;background:var(--line);overflow:hidden}.timer div{height:100%;background:var(--accent);transition:width .2s linear}.card{font-size:32px;font-weight:800;line-height:1.2}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pick{background:var(--line);color:var(--fg);overflow:hidden;text-overflow:ellipsis}.pick.on{background:var(--accent);color:#111;box-shadow:0 0 0 3px #fff inset}.winner{font-size:44px;font-weight:800;text-align:center;color:var(--accent);margin-top:4vh}.gain{text-align:center;font-size:28px;font-weight:800;color:#51cf66}.bars{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px}.bars li{display:grid;grid-template-columns:90px 1fr 24px;align-items:center;gap:10px;font-size:17px}.bars span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bars b{text-align:right}.bar{height:14px;border-radius:7px;background:var(--line);overflow:hidden}.bar .grow{height:100%;background:var(--accent);transform-origin:left;animation:grow .6s ease-out}.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:#111}.podium .p1 .rank{color:#111}.podium li:nth-child(2){animation-delay:.15s}.podium li:nth-child(3){animation-delay:.3s}.stats{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px;font-size:16px}.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){.pop,.bar .grow{animation:none}}
