:root{--bg: #0b0e12;--fg: #fff;--muted: #8a919e;--line: #232a35;--line-strong: #3b4452;--fill: rgba(255, 255, 255, .05);--glass: rgba(11, 14, 18, .62);--pink: #ff4f8b;--yellow: #ffd23f;--green: #2ee59d;--blue: #4c8dff;--purple: #9b5cff;--orange: #ff8a3d;--display: "Bebas Neue", Impact, sans-serif;--body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--fg)}body{font-family:var(--body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}body:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:50;opacity:.035;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}button,input{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--fg);outline-offset:3px}h1,h2,h3,p{margin:0}ul,ol{list-style:none;margin:0;padding:0}.display{font-family:var(--display);font-weight:400;letter-spacing:.01em}.muted{color:var(--muted)}.error{min-height:1.6em;margin-top:16px}.shell{position:relative;z-index:1;min-height:100dvh;display:flex;flex-direction:column}.top{display:flex;justify-content:space-between;align-items:center;padding:20px 24px}.top>.btn{margin-left:auto}.brand{font-family:var(--display);font-size:28px;color:var(--fg);text-decoration:none;letter-spacing:.03em}.brand span{color:var(--muted);margin-left:0}.banner{margin:0 24px;padding:10px 16px;border:1px dashed var(--line-strong);border-radius:12px;font-size:14px}.main{width:100%;max-width:880px;margin:0 auto;padding:24px 24px 72px}.hero{font-size:clamp(72px,16vw,168px);line-height:.88;margin:24px 0 20px}.hero.sm{font-size:clamp(56px,11vw,112px)}.lede{max-width:34em;color:#cfd4dc;margin-bottom:32px}.section-title{font-family:var(--display);font-weight:400;font-size:32px;letter-spacing:.03em;margin:40px 0 12px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border-radius:999px;border:1px solid var(--fg);background:var(--fg);color:#000;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.btn:hover:not(:disabled){background:#d9d9d9}.btn:disabled{opacity:.4;cursor:not-allowed}.btn.ghost{background:transparent;color:var(--fg);border-color:var(--line-strong)}.btn.ghost:hover:not(:disabled){background:transparent;border-color:var(--fg)}.btn.sm{min-height:38px;padding:0 16px;font-size:14px}.btn.big{min-height:56px;padding:0 40px;font-size:18px;margin-top:32px}.field{margin-bottom:20px;max-width:360px}.field-label{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}.input{width:100%;min-height:48px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:transparent}.input:focus{outline:none;border-color:var(--fg)}.input.code{font-family:var(--display);font-size:30px;letter-spacing:.25em;text-align:center;padding:0 0 0 .25em}.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--fill);display:flex;flex-direction:column;gap:12px;align-items:flex-start}.card h2{font-size:20px;font-weight:600}.card .btn{margin-top:auto}.join-row{display:flex;gap:10px;width:100%;margin-top:auto}.join-row .input{flex:1;min-width:0}.room-code{font-size:clamp(88px,22vw,200px);line-height:.9;letter-spacing:.12em;margin:4px 0 16px -.04em}.slots{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.slot{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 16px;border:1px solid var(--line-strong);border-radius:16px}.slot.empty{border-style:dashed;border-color:var(--line)}.slot.off{opacity:.45}.avatar{position:relative;width:36px;height:36px;border-radius:50%;border:1px solid var(--fg);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:20px;line-height:1;flex:none}.slot-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{border:1px solid var(--line-strong);border-radius:999px;padding:0 10px;font-size:12px;color:var(--muted)}.settings{display:flex;flex-wrap:wrap;gap:24px 40px;margin-top:32px}.topic-setting{display:flex;flex-direction:column;min-width:220px}.topic-dialog{display:flex;flex-direction:column;gap:18px;width:min(560px,calc(100% - 32px));height:min(80vh,640px);max-height:min(80vh,640px);overflow:hidden;padding:28px;border:1px solid var(--line-strong);border-radius:20px;background:var(--bg);color:var(--fg)}.topic-dialog:not([open]){display:none}.topic-dialog::backdrop{background:#000000b8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.topic-dialog-head{display:flex;flex:none;align-items:center;justify-content:space-between}.topic-dialog-head h2{font-family:var(--display);font-size:30px;font-weight:400}.topic-close{width:36px;height:36px;border:1px solid var(--line-strong);border-radius:50%;background:transparent;color:var(--fg);font-size:24px;line-height:1;cursor:pointer}.topic-options{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;min-height:0;overflow-y:auto;scrollbar-width:none}.topic-options::-webkit-scrollbar{display:none}.topic-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:64px;padding:12px 16px;border:1px solid var(--line-strong);border-radius:14px;background:var(--fill);color:var(--fg);text-align:left;cursor:pointer}.topic-option-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.topic-check{display:grid;flex:none;width:22px;height:22px;place-items:center;border:1px solid var(--line-strong);border-radius:50%;color:#000}.topic-check.on{border-color:var(--yellow);background:var(--yellow)}.topic-check svg{width:14px;height:14px}.topic-option small{color:var(--muted);font-size:12px}.topic-option:hover,.topic-option.on{border-color:var(--yellow);background:#ffd23f24}.topic-done{flex:none;width:100%;margin:0}.game-start{position:relative;width:fit-content}.start-hint{position:absolute;top:calc(100% + 8px);left:0;width:max-content;max-width:min(360px,calc(100vw - 32px));margin:0}.lobby-waiting{margin-top:32px}.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:999px;padding:3px}.seg button{min-width:48px;min-height:38px;border:0;border-radius:999px;background:transparent;cursor:pointer}.seg button.on{background:var(--fg);color:#000;font-weight:600}.seg button:disabled{cursor:default}.seg button:disabled:not(.on){color:var(--muted)}.progress-row{display:flex;justify-content:space-between;font-size:14px}.clock-wrap{margin:8px 0 28px}.clock{font-size:clamp(110px,26vw,220px);line-height:.85;font-variant-numeric:tabular-nums}.clock.small{font-size:clamp(56px,11vw,96px)}.bar{height:4px;border-radius:4px;background:var(--line);overflow:hidden;margin-top:12px}.bar-fill{height:100%;background:var(--fg);transition:width .1s linear}.question{font-size:clamp(24px,4.6vw,40px);font-weight:600;line-height:1.2;max-width:24em;margin-bottom:28px}.options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.opt{display:grid;grid-template-columns:36px 1fr auto;gap:14px;align-items:center;min-height:76px;padding:14px 18px;text-align:left;background:transparent;border:1px solid var(--line-strong);border-radius:18px;cursor:pointer;transition:border-color .15s,background .15s}.opt:hover:not(:disabled){border-color:var(--fg)}.opt:disabled{cursor:default}.opt-key{width:34px;height:34px;border-radius:50%;border:1px solid var(--line-strong);display:grid;place-items:center;font-family:var(--body);font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.opt-text{font-weight:500}.mark{font-size:22px;font-weight:600}.mark svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.pickers{grid-column:1 / -1;font-size:12px;opacity:.8}.opt.picked{border:2px solid var(--fg);background:#ffffff17}.opt.right{background:var(--fg);color:#000;border-color:var(--fg)}.opt.right .opt-key{border-color:#000}.opt.wrong{border-style:dashed;border-color:#9a9a9a}.opt.wrong .opt-text{text-decoration:line-through}.opt.dim{opacity:.45}.status{margin-top:20px;min-height:1.6em}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:flex;align-items:center;gap:10px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px}.chip.you{border-color:var(--fg)}.chip.off{opacity:.4}.chip .dot{font-size:10px}.chip .delta{color:var(--muted)}.board{display:grid;gap:8px}.row{display:grid;grid-template-columns:56px 1fr auto 72px;gap:12px;align-items:center;padding:10px 18px;border:1px solid var(--line);border-radius:18px}.row.you{border-color:var(--line-strong)}.row.first{background:var(--fg);color:#000;border-color:var(--fg)}.rank{font-size:44px;line-height:1}.row-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub{font-size:14px;opacity:.7}.row-score{text-align:right;font-variant-numeric:tabular-nums}.podium{display:grid;grid-template-columns:repeat(var(--n, 3),1fr);gap:12px;align-items:end;max-width:calc(var(--n, 3) * 33.4%);margin:0 auto 16px}.pod{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;min-width:0}.pod-name{font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pod.you .pod-name{text-decoration:underline;text-underline-offset:4px}.pod-score{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums}.pod-sub{font-size:13px;color:var(--muted)}.pod-block{width:100%;margin-top:10px;border:1px solid var(--line-strong);border-bottom:0;border-radius:18px 18px 0 0;display:grid;place-items:center;line-height:1}.pod.r1 .pod-block{height:190px;font-size:96px;background:var(--fg);color:#000;border-color:var(--fg)}.pod.r2 .pod-block{height:140px;font-size:72px}.pod.r3 .pod-block{height:104px;font-size:56px}.review{display:grid;gap:8px}.rev{border:1px solid var(--line);border-radius:16px;padding:0 18px;overflow:hidden}.rev[open]{border-color:var(--line-strong);padding-bottom:18px;background:#ffffff06}.rev summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;cursor:pointer;list-style:none}.rev summary::-webkit-details-marker{display:none}.rev-q{display:flex;align-items:flex-start;gap:12px;min-width:0;font-weight:600}.rev-index{display:grid;flex:none;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--line);color:var(--yellow);font-size:13px}.rev-count{padding:5px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;white-space:nowrap}.rev-correct{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(46,229,157,.28);border-radius:12px;background:#2ee59d14;font-size:14px}.rev-correct>span:last-child{display:grid;gap:2px;min-width:0}.rev-correct small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.rev-correct-icon{display:grid;flex:none;width:28px;height:28px;place-items:center;border-radius:50%;background:var(--green);color:#04140d}.rev-correct-icon svg{width:17px;height:17px}.rev-list{display:grid;gap:8px}.rev-list li{display:grid;grid-template-columns:minmax(100px,.35fr) minmax(0,1fr) 28px;align-items:center;gap:12px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#ffffff06;font-size:14px}.rev-name{min-width:0;overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.rev-pick{min-width:0;overflow-wrap:anywhere}.rev-mark{display:grid;width:26px;height:26px;place-items:center;border-radius:50%}.rev-mark svg{width:16px;height:16px}.rev-list li.ok{border-color:#2ee59d33}.rev-list li.ok .rev-mark{background:#2ee59d29;color:var(--green)}.rev-list li.bad{border-color:#ff4f8b33}.rev-list li.bad .rev-mark{background:#ff4f8b29;color:var(--pink)}.rev-name{font-weight:600;overflow:hidden;text-overflow:ellipsis}.rev-mark{text-align:right}.final-waiting{margin:40px 0 0}@media(max-width:640px){.podium{max-width:100%;gap:8px}.pod-score{font-size:20px}.top{padding:16px}.main{padding:16px 16px 56px}.home-actions,.options,.slots{grid-template-columns:1fr}.row{grid-template-columns:40px 1fr auto}.row-sub{display:none}.rev summary{grid-template-columns:1fr;gap:8px}.rev-list li{grid-template-columns:minmax(72px,.4fr) minmax(0,1fr) 26px;gap:8px;padding:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.sh{animation:none!important}}.bg{position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;overflow:hidden;pointer-events:none}.bg:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse 70% 60% at 50% 40%,#0b0e12bd,#0b0e1200 78%)}.sh{position:absolute;opacity:.62;transform:rotate(var(--r0, 0deg));animation:drift 18s ease-in-out infinite alternate;will-change:transform}@keyframes drift{0%{transform:translateZ(0) rotate(var(--r0, 0deg))}to{transform:translate3d(var(--dx, 28px),var(--dy, -36px),0) rotate(var(--r1, 18deg))}}.s1{width:clamp(170px,28vw,360px);aspect-ratio:1;border-radius:50%;background:var(--pink);top:-9%;left:-7%;--dx: 40px;--dy: 30px}.s2{width:clamp(120px,18vw,250px);aspect-ratio:1;border-radius:50%;border:clamp(16px,2.4vw,32px) solid var(--yellow);top:9%;right:-5%;animation-duration:24s;--dx: -30px;--dy: 24px}.s3{width:clamp(110px,16vw,220px);aspect-ratio:1;border-radius:28%;background:var(--blue);bottom:8%;left:2%;--r0: 18deg;--r1: 78deg;animation-duration:26s}.s4{width:clamp(120px,17vw,240px);aspect-ratio:1;background:var(--green);clip-path:polygon(50% 0,100% 100%,0 100%);bottom:-3%;right:4%;--r0: -12deg;--r1: 22deg;animation-duration:21s}.s5{width:clamp(150px,22vw,300px);height:clamp(52px,7vw,92px);border-radius:999px;background:var(--purple);top:46%;right:-6%;--r0: -24deg;--r1: -8deg;animation-duration:28s}.s6{width:clamp(60px,8vw,110px);aspect-ratio:1;border-radius:50%;background:var(--orange);bottom:16%;left:46%;animation-duration:20s;--dx: 36px;--dy: -22px}.s7{width:clamp(70px,9vw,120px);aspect-ratio:1;border-radius:50%;border:clamp(10px,1.4vw,18px) solid var(--blue);top:20%;left:12%;animation-duration:23s;--dx: 20px;--dy: 34px}.s8{width:clamp(56px,7vw,96px);aspect-ratio:1;border-radius:24%;background:var(--yellow);top:62%;left:-2%;--r0: 30deg;--r1: -20deg;animation-duration:19s}.card,.slot,.opt,.chip,.row,.rev,.seg,.btn.ghost.topic-trigger,.top>.btn.ghost,.banner,.input{background-color:var(--glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand span{color:var(--pink)}.btn:hover:not(:disabled){background:var(--yellow);border-color:var(--yellow)}.input:focus{border-color:var(--yellow)}.room-code{color:var(--yellow)}.bar-fill{background:linear-gradient(90deg,var(--yellow),var(--pink))}.seg button.on{background:var(--yellow)}.chip.you,.row.you{border-color:var(--yellow)}.chip .delta{color:var(--green);font-weight:600}.slot:nth-child(6n+1) .avatar{background:var(--pink)}.slot:nth-child(6n+2) .avatar{background:var(--yellow)}.slot:nth-child(6n+3) .avatar{background:var(--blue)}.slot:nth-child(6n+4) .avatar{background:var(--green)}.slot:nth-child(6n+5) .avatar{background:var(--purple)}.slot:nth-child(6n+6) .avatar{background:var(--orange)}.slot .avatar{color:#000;border-color:transparent}.opt:hover:not(:disabled){border-color:var(--yellow)}.opt-key{border-color:transparent;color:#000}.opt:nth-child(1) .opt-key{background:var(--pink)}.opt:nth-child(2) .opt-key{background:var(--yellow)}.opt:nth-child(3) .opt-key{background:var(--blue)}.opt:nth-child(4) .opt-key{background:var(--green)}.opt.picked{border-color:var(--yellow);background-color:#ffd23f2e}.opt.right{background-color:var(--green);border-color:var(--green);color:#04140d}.opt.right .opt-key{background:#04140d;color:var(--green)}.opt.wrong{border-color:var(--pink);background-color:#ff4f8b33}.pod-block{color:#000}.pod.r1 .pod-block{background:var(--yellow);border-color:var(--yellow)}.pod.r2 .pod-block{background:var(--blue);border-color:var(--blue)}.pod.r3 .pod-block{background:var(--orange);border-color:var(--orange)}.pod.r1 .pod-score{color:var(--yellow)}
