*{box-sizing:border-box}body{margin:0;background:#f5f7f1;color:#143e37;font:16px/1.55 Arial,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #b68d23;outline-offset:4px}[hidden]{display:none!important}header,footer{padding:20px max(5vw,20px);display:flex;justify-content:space-between;align-items:center;gap:20px;background:white;border-bottom:1px solid #dbe3d6}.back{font-size:14px;font-weight:700}main{max-width:1200px;margin:auto;padding:30px 24px}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:700}.intro h1{font-size:clamp(32px,4vw,48px);line-height:1.1;letter-spacing:-.05em;margin:10px 0}.intro em{color:#8b6e1a;font-style:normal}.intro>p:last-child{color:#627469}#levels{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}#levels button{border:1px solid #c7d7c8;border-radius:12px;background:white;padding:10px 15px;color:#143e37;font-size:13px;font-weight:700}#levels button[aria-current=true]{background:#143e37;color:#fff}.lab{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid #d8e2d3;background:white;border-radius:24px;overflow:hidden}.bench{background:#153f36;color:#fff;padding:24px;display:flex;flex-direction:column;justify-content:center}.bench-head{display:flex;justify-content:space-between;gap:15px;font-size:10px;letter-spacing:.08em}.bench-head #lamp-status{color:#e8d88c}#circuit{width:100%;display:block;overflow:visible;margin-block:25px}#circuit text{text-anchor:middle;font:bold 12px Arial;fill:#d7e7dc}.wire{fill:none;stroke:#86a599;stroke-width:7;stroke-linecap:round}.flow{fill:none;stroke:#f8d361;stroke-width:5;stroke-dasharray:4 20;opacity:0}.bulb{fill:#c6d5b5;stroke:#e2c56a;stroke-width:6}.halo{opacity:0}.lit .halo{opacity:1}.lit .bulb{fill:#ffe68a}.lit .flow{opacity:1;animation:current 1.8s linear infinite}.bench-note{font-size:12px;color:#cbddd0;margin:0}.controls{padding:30px}.controls h2{font-size:25px;line-height:1.2;margin:10px 0}.controls>p:not(.eyebrow){font-size:14px;color:#52695b}fieldset{border:0;border-bottom:1px solid #e5eadd;margin:0 0 12px;padding:0 0 12px}legend{font-size:12px;font-weight:700;margin-bottom:7px}fieldset button{background:#f5f7f0;border:1px solid #cbd7c6;color:#143e37;border-radius:8px;padding:8px 11px;font-size:12px;margin:0 6px 5px 0}fieldset button[aria-pressed=true]{background:#e6edcf;border-color:#759159;box-shadow:inset 0 0 0 1px #759159}.primary{border:0;background:#d8ec8d;color:#153f36;padding:13px 18px;border-radius:10px;font-weight:700;width:100%;margin-top:10px}.text-button{border:0;background:none;color:#59735c;text-decoration:underline;font-size:12px;margin-top:20px}.progress{font-size:14px;color:#526f55}.controls #feedback{font-weight:700;color:#143e37}#quiz{border-top:1px solid #d9e3d1;margin-top:20px;padding-top:10px}#quiz h3{font-size:16px}#answers{display:grid;gap:8px}#answers button{border:1px solid #cbd7c6;background:white;color:#143e37;border-radius:9px;text-align:left;padding:10px;font-size:13px}#answers button.correct{background:#e7f0ce;border-color:#688d45}#answers button:disabled{cursor:default}#explanation{font-size:14px}footer{font-size:12px;border-top:1px solid #dbe3d6}@keyframes current{to{stroke-dashoffset:-48}}@media(max-width:800px){.lab{grid-template-columns:1fr}.bench{padding:20px}.controls{padding:24px}#circuit{max-height:320px}.bench-head{font-size:9px}header{flex-wrap:wrap}.intro>p:last-child{font-size:14px}}@media(prefers-reduced-motion:reduce){.lit .flow{animation:none}}

.circuit-stage{position:relative;margin:20px 0}.circuit-stage #circuit{margin:0}.socket{position:absolute;border:1px dashed #a7cabc;background:#123f36cc;border-radius:8px;color:white;padding:5px 8px;font-size:14px;min-height:38px}.socket.source{left:7%;top:65%}.socket.lamp{left:40%;top:39%}.socket.material{left:40%;top:87%}.socket.closed{right:1%;top:65%}.socket:focus-visible{outline:3px solid #ffe18b}.bench{background:radial-gradient(ellipse at 50% 25%,#235d50,#123b33)}fieldset button{font-size:14px;padding:10px 12px}legend,.eyebrow{font-size:14px}.bench-note{font-size:14px}.bench-head{font-size:12px}#answers button,.controls>p:not(.eyebrow){font-size:16px}.socket.accepted{animation:fit .4s ease-out}@keyframes fit{50%{background:#d8ec8d;color:#143e37;transform:scale(1.08)}}@media(prefers-reduced-motion:reduce){.socket.accepted{animation:none}}
