:root{color-scheme:light;--ink:#17263d;--blue:#263bbc;--pale:#eef0ff;--paper:#f6f7fb;--line:#dce1ed;--muted:#52617a;--green:#146047;--gold:#ffdf72;--red:#a1283a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit}a{color:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5368ff;outline-offset:3px}
.top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px max(24px,calc((100vw - 1200px)/2));background:#182687;color:white;min-height:77px}.brand{display:flex;align-items:center;text-decoration:none;gap:12px;white-space:nowrap}.mark{display:grid;place-items:center;background:var(--gold);color:#182687;width:35px;height:35px;border-radius:9px;font-size:23px;font-weight:850}.brand b{font-size:15px;letter-spacing:.03em}.top{position:relative;z-index:5}.menu-button,.nav-drawer button{cursor:pointer;border-radius:9px;padding:8px 12px;font-weight:720;font-size:.9rem}.menu-button{display:inline-flex;align-items:center;gap:8px;color:white;background:#ffffff1a;border:1px solid #ffffff50;min-height:40px}.menu-button:hover,.menu-button[aria-expanded=true]{background:#ffffff33}.menu-button:focus-visible{outline-color:var(--gold)}.nav-drawer{position:absolute;top:calc(100% + 8px);right:max(12px,calc((100vw - 1200px)/2));width:min(270px,calc(100vw - 24px));display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:13px;background:white;color:var(--ink);box-shadow:0 12px 30px #17263d38}.nav-drawer a,.nav-drawer button{display:block;text-align:left;padding:10px 12px;border-radius:8px;text-decoration:none;font-size:.92rem}.nav-drawer a:hover,.nav-drawer a[aria-current],.nav-drawer button:hover{background:var(--pale);color:var(--blue)}.nav-drawer button{background:white;border:1px solid var(--line);color:var(--ink);margin-top:5px}.board .screen{padding-top:18px}.screen{max-width:1200px;margin:0 auto;padding:36px 24px 60px}.mast,.split{display:flex;justify-content:space-between;align-items:center;gap:16px}.mast{margin-bottom:24px}.eyebrow{display:block;color:var(--blue);font-size:.77rem;letter-spacing:.11em;font-weight:800;text-transform:uppercase;margin-bottom:8px}.mast h1,.hero h1{margin:0;font-weight:800;letter-spacing:-.043em;font-size:clamp(2rem,4.5vw,3.8rem);line-height:1.04}.mast p,.hero p{margin:12px 0 0;color:var(--muted)}h2{font-size:1.22rem;margin:0 0 12px;letter-spacing:-.02em}h3{margin:0;font-size:1rem}.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(255px,1fr);gap:20px;align-items:start}.stack{display:grid;gap:16px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 4px 12px #24365507}.hero{background:#202f9c;color:white;border:0;padding:clamp(24px,5vw,60px);min-height:330px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(200px,1fr);gap:22px;align-items:center}.hero .eyebrow,.hero p{color:#e4e8ff}.hero p{max-width:35ch;font-size:1.125rem}.hero .actions{margin-top:24px}.hero .btn{background:var(--gold);color:#20234f}.hero .btn.secondary{background:#ffffff1a;color:white;border-color:#ffffff60}.hero .wheel-wrap{max-width:300px;align-self:center;justify-self:center;width:100%}.below{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.below a{text-decoration:none}.below a:hover{border-color:var(--blue)}.below p,.hint,.muted{color:var(--muted)}.below p{margin:6px 0 0;font-size:.95rem}.login{max-width:465px;margin:16px auto}.login h1{font-size:2rem;margin:0 0 7px;letter-spacing:-.04em}.login .hint{margin:0 0 16px}.form{display:grid;gap:14px}.form label,.field{display:grid;gap:5px;font-weight:650;font-size:.92rem}.field span{font-size:.81rem;color:var(--muted);font-weight:500}input:not([type=radio]),select,textarea{width:100%;border:1px solid #b9c3d6;border-radius:9px;padding:9px 11px;color:var(--ink);background:#fff;min-height:42px}textarea{resize:vertical;min-height:100px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;border:1px solid transparent;border-radius:9px;padding:10px 15px;min-height:42px;background:var(--blue);color:white;font-weight:720;text-decoration:none;font-size:.91rem;white-space:nowrap}.btn.secondary{background:white;border-color:#cdd5e5;color:var(--ink)}.btn.small{font-size:.8rem;min-height:34px;padding:5px 9px}.btn.gold{background:var(--gold);color:var(--ink)}.btn:hover:not(:disabled){filter:brightness(.91)}.pill{display:inline-flex;border-radius:50px;background:var(--pale);color:#26318c;align-items:center;gap:7px;padding:6px 11px;font-size:.8rem;font-weight:750}.pill.green{background:#ddf6e8;color:var(--green)}.pill.gold{background:#fff1b7;color:#614800}
.stage{padding:0;overflow:hidden}.stage-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 21px;border-bottom:1px solid var(--line)}.round-area{padding:24px}.wait{text-align:center;background:radial-gradient(ellipse at center,#e8ebff,white 73%)}.wait h2{margin-top:20px}.wait p{margin:0 auto;color:var(--muted);max-width:37ch}.wheel-wrap{position:relative;width:min(76%,285px);margin:8px auto 0}.wheel{aspect-ratio:1;border:8px solid white;border-radius:50%;box-shadow:0 0 0 2px #cdd5ee,0 13px 25px #293a9329;background:conic-gradient(#4f61e5 0 45deg,#fecb5d 45deg 90deg,#c8b7ff 90deg 135deg,#83dfbe 135deg 180deg,#4f61e5 180deg 225deg,#fecb5d 225deg 270deg,#c8b7ff 270deg 315deg,#83dfbe 315deg);position:relative}.wheel::after{content:"";position:absolute;inset:calc(50% - 13px);border:4px solid white;border-radius:50%;background:#2132a4}.wheel span{position:absolute;font-weight:850;font-size:clamp(.65rem,2vw,1.25rem);transform:translate(-50%,-50%);color:#10183b}.wheel span:nth-child(4n+1){color:#fff}.pin{position:absolute;top:-9px;left:calc(50% - 11px);border-top:22px solid #172452;border-left:11px solid transparent;border-right:11px solid transparent;z-index:1}.task-title{color:var(--blue);font-weight:750;margin:0 0 13px}.question{font-size:clamp(1.65rem,3.8vw,3.3rem);line-height:1.12;letter-spacing:-.036em;margin:0 0 23px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.option{display:flex;align-items:center;gap:10px;min-height:62px;padding:11px 12px;border-radius:11px;border:1px solid var(--line);background:#f8f9fd;font-size:1.12rem;font-weight:650;text-align:left;color:var(--ink)}.option b{border-radius:7px;background:#e8ebff;color:#2937ae;min-width:32px;height:32px;display:grid;place-items:center}.option.chosen{border-color:var(--blue);background:#eef0ff}.option.correct{background:#ddf6e8;border-color:#87c8a9;color:#164833}.option.correct b{background:#b4e8cf;color:#164833}.option:disabled{opacity:1}.timer{font-variant-numeric:tabular-nums;font-weight:820;color:#1c287c;background:#eef0ff;border-radius:9px;padding:5px 10px;font-size:1.35rem}.timer.urgent{color:var(--red);background:#fdeef0}.answer-actions{margin-top:18px}.answer-note{margin:15px 0 0;color:var(--muted);font-weight:650}
.teams{list-style:none;padding:0;margin:0;display:grid;gap:8px}.teams li{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px 11px;border:1px solid var(--line);border-radius:9px}.teams li.turn{border-color:#b3baff;background:var(--pale)}.teams li small{display:block;margin-top:3px;color:var(--muted)}.team-name{font-weight:730;overflow-wrap:anywhere}.points{font-weight:820;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--blue)}.control{display:grid;gap:10px;grid-template-columns:minmax(0,1fr) 105px}.control .actions{grid-column:1/-1}.accounts{margin-top:14px;overflow:auto}.accounts table{width:100%;border-collapse:collapse;text-align:left}.accounts th,.accounts td{border-bottom:1px solid var(--line);padding:8px 7px}.accounts code{white-space:nowrap}.inline-note{margin:0 0 11px;color:var(--muted);font-size:.91rem}.message{min-height:1.4em;font-size:.9rem;font-weight:650}.message:empty{display:none}.message.error{color:var(--red)}.message:not(.error){color:var(--green)}details summary{font-weight:720;cursor:pointer}details form{margin-top:15px}.admin-info{font-size:.9rem;color:var(--muted);margin:0}.board .main-title{font-size:clamp(2rem,5vw,4.6rem)}.board .card{box-shadow:none}.board .stage-head{font-size:1.18rem}.board .timer{font-size:clamp(1.5rem,4vw,2.4rem)}.board .teams li{min-height:55px}.board .option{min-height:70px;font-size:clamp(1rem,2.5vw,1.65rem)}.board .screen{max-width:1500px}.board .wheel-wrap{width:min(70%,330px)}[hidden]{display:none!important}
@media(max-width:800px){.hero,.layout{grid-template-columns:1fr}.hero .wheel-wrap{width:min(70%,230px)}.below{grid-template-columns:1fr}.screen{padding:25px 15px 40px}}@media(max-width:423px){.top{padding:10px 12px;gap:8px}.brand{gap:6px}.brand b{font-size:.76rem}.mark{width:28px;height:28px;font-size:18px}.choices{grid-template-columns:1fr}.round-area,.card:not(.stage){padding:16px}.mast{align-items:flex-start}}.wheel.dense span{font-size:clamp(.42rem,1.05vw,.72rem)}.auto-control{grid-template-columns:repeat(2,minmax(95px,145px)) auto;justify-content:start;align-items:end}.teacher-teams{grid-column:2;grid-row:1}.teacher-round{grid-column:1;grid-row:1}.next-question{margin-top:16px}.next-question .btn{width:100%}.wheel-actions{margin-top:15px}.option.incorrect{background:#fdeef0;border-color:#e4a5ad;color:var(--red)}.option.incorrect b{background:#f8d7dc;color:var(--red)}.team-row-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.team-row-actions .points{margin-right:4px}.team-icon{display:grid;place-items:center;min-width:32px;min-height:32px;padding:0;border:1px solid var(--line);border-radius:7px;background:white;color:var(--blue);font-size:1.28rem;line-height:1}.team-icon.remove{color:var(--red)}.team-icon:hover{background:var(--pale)}.team-edit{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%}.team-edit input{flex:1 1 7rem;min-width:0;width:auto}#team-account{min-width:0;max-width:100%;text-overflow:ellipsis}.team-access{gap:12px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.team-login{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.team-login div{background:var(--pale);padding:10px 12px;border-radius:9px}.team-login dt{font-size:.82rem;color:var(--muted)}.team-login dd{margin:2px 0 0;font-size:1.55rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.08em}@media(max-width:500px){.auto-control{grid-template-columns:1fr 1fr}.auto-control button{grid-column:1/-1}}@media(max-width:800px){.teacher-teams,.teacher-round{grid-column:auto;grid-row:auto}}@media(prefers-reduced-motion:reduce){*,*::after{animation-duration:.01ms!important}}

.question-filters{display:grid;gap:12px}
.question-filters fieldset{margin:0;padding:0;border:0;min-width:0}
.question-filters legend{margin-bottom:7px;padding:0;font-size:.92rem;font-weight:720}
.filter-options{display:flex;flex-wrap:wrap;gap:7px}
.form .filter-option{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;min-height:36px;font-weight:600;cursor:pointer}
.form .filter-option:has(input:checked){border-color:#b3baff;background:var(--pale);color:var(--blue)}
.filter-option input[type=checkbox]{width:16px;min-height:16px;margin:0;padding:0;accent-color:var(--blue)}
.filter-count{margin:0;color:var(--muted);font-size:.9rem}
.molecule-stage{display:grid;gap:12px}
.molecule-stage>strong{font-size:clamp(1.05rem,3vw,1.65rem);color:var(--green)}
.atom-palette{display:flex;flex-wrap:wrap;gap:8px}
.atom-control,.atom-node{display:grid;place-items:center;min-height:40px;min-width:40px;border-radius:50%;font-weight:800;font-variant-numeric:tabular-nums;background:#eef0ff;border:1px solid #aeb8ef;color:#202b89}
button.atom-control:hover,button.atom-node:hover{background:#dce1ff}
.molecule-model{width:min(420px,100%);height:clamp(148px,27vw,255px);position:relative;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:#f8faff;isolation:isolate}
.molecule-model:has(.atom-node){display:block}
.molecule-model p{margin:0;padding:16px;text-align:center;color:var(--muted)}
.atom-node{position:absolute;z-index:1;transform:translate(-50%,-50%);width:clamp(30px,5vw,47px);height:clamp(30px,5vw,47px);min-height:0;min-width:0;padding:0}
.atom-node[data-element="O"]{background:#fdeef0;border-color:#e4a5ad;color:#a1283a}
.atom-node[data-element="N"]{background:#e8f0fd;border-color:#a1bbef;color:#17468b}
.atom-node[data-element="C"]{background:#e7edf4;border-color:#b3c0d0;color:#24374d}
.atom-node[data-element="S"]{background:#fff0bd;border-color:#debe57;color:#664e00}
.atom-bond{position:absolute;height:3px;background:#8897b8;border-radius:3px;transform-origin:left center}
