:root{color-scheme:dark;--bg:#10131a;--panel:#181d27;--panel2:#1f2531;--line:#2a3242;--ink:#e8ecf4;--mute:#97a1b6;--good:#6fe0a0;--bad:#ff7a6b;--accent:#c8382a;--accent-line:#e0574a;--ring:#ff9d8f;--amber:#e9b44c;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif;line-height:1.5}[hidden]{display:none!important}html{background:var(--bg)}body{color:var(--ink);background:var(--bg);min-height:100vh;margin:0}.cam{box-sizing:border-box;max-width:1180px;margin:0 auto;padding:16px 16px 24px}.top h1{letter-spacing:-.01em;margin:0;font-size:1.15rem;font-weight:650;line-height:1.25}.brand{align-items:center;gap:12px;display:flex}.brand .sub{color:var(--mute);font-size:.85rem;line-height:1.35}.back-link{color:var(--ink);border:1px solid var(--line);border-radius:10px;margin-left:auto;padding:6px 12px;font-size:.85rem;text-decoration:none}.how{color:var(--mute);flex-wrap:wrap;gap:2px 8px;margin:12px 0;padding:0;font-size:.9rem;line-height:1.45;list-style:none;display:flex}.how b{color:var(--ink);margin-right:2px;font-weight:650}.how li{white-space:nowrap}.how li:not(:last-child):after{content:"·";color:#5c6679;margin-left:8px}.bar{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}#mods{gap:8px;display:flex}#mods button{color:var(--ink);border:1px solid var(--line);font:inherit;cursor:pointer;background:0 0;border-radius:10px;min-height:36px;padding:7px 12px;font-size:.88rem}#mods button small{color:var(--mute)}#mods button[aria-pressed=true]{border-color:var(--accent-line);background:var(--panel2)}.score{color:var(--mute);flex:200px;font-size:.85rem}.score b{color:var(--ink);font-weight:600}.grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:16px;margin-top:16px;display:grid}.view canvas{aspect-ratio:16/9;border:1px solid var(--line);background:#0b0d12;border-radius:12px;width:100%;height:auto;display:block;box-shadow:0 8px 24px #00000059}.back{width:100%;height:auto;margin-top:8px;display:block}.back .body{fill:url(#cs-body);stroke:#3a404c;stroke-width:1px}.back .edge{fill:none;stroke:#ffffff0f;stroke-width:1px}.back .lcdbox{fill:#0a0c0b;stroke:#2d322c}.back .lcd{fill:var(--amber);white-space:pre;font:600 14px ui-monospace,Menlo,Consolas,monospace}.back .bezel{fill:#0e1014;stroke:#ffffff17;stroke-width:1px}.back .cap{fill:url(#cs-cap);stroke:#4a505c;stroke-width:1px}.back .knurl{fill:none;stroke:#0c0e12;stroke-width:3.2px;stroke-dasharray:1.1 1.1}.back .face{fill:url(#cs-face);stroke:#ffffff1a;stroke-width:.8px}.back .tick{stroke:#8d96a8;stroke-width:1px}.back .ptr{stroke:#f2efe8;stroke-width:2px;stroke-linecap:butt}.back .knob{transition:transform .25s}.back .dial.active .cap{stroke:var(--accent-line);stroke-width:1.5px}.back .dial.active .tick{stroke:var(--ink)}.back .dial{cursor:pointer}.back .dlabel{fill:var(--mute);text-anchor:middle;letter-spacing:.1em;font:650 7.5px -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif}.back .dial.active .dlabel{fill:var(--ink)}.back .mwin{fill:#0d0f13;stroke:#2a2f38}.back .arc{fill:none;stroke:#6b7385;stroke-width:1.4px}.back .zone{fill:none;stroke:var(--good);stroke-width:4px;opacity:.9}.back .mticks line{stroke:#aab2c2;stroke-width:1.2px}.back .mlab{fill:var(--mute);text-anchor:middle;font:600 7.5px -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif}.back .needle{transition:transform .25s}.back .needle line{stroke:#f2efe8;stroke-width:1.6px;stroke-linecap:round}.back .needle circle{fill:#2a2e37;stroke:#f2efe8;stroke-width:1.4px}.back .needle.ok line{stroke:var(--good)}.back .needle.ok circle{stroke:var(--good);fill:#2a2e37}.meter-read{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;height:1.4em;margin-top:4px;font-size:.9rem;line-height:1.4em;overflow:hidden}.fine{color:var(--mute);margin:8px 0 0;font-size:.85rem;line-height:1.5}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:8px;padding:16px}.meta{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px;display:flex}.meta .id{color:var(--ink);font-weight:650}.pill{text-transform:uppercase;letter-spacing:.08em;border:1px solid var(--line);color:var(--mute);border-radius:999px;padding:2px 10px;font-size:.72rem;font-weight:600}.pill.warn{color:var(--ink);border-color:#55607a}#task-text{letter-spacing:-.005em;margin:8px 0;font-size:1.1rem;font-weight:600;line-height:1.45}.rules{color:var(--mute);font-size:.9rem}.rules summary{cursor:pointer;padding:4px 0}.rules ol{margin:4px 0 0;padding-left:1.2rem}.rules li{margin:4px 0}.field{margin:0 0 8px}.field:last-child{margin-bottom:0}.lab{text-transform:uppercase;letter-spacing:.08em;color:var(--mute);margin-bottom:8px;font-size:.72rem;font-weight:600;display:block}.stepper{border-radius:10px;align-items:stretch;gap:8px;display:flex}.stepper:focus-visible,.btn:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.stepper button{background:var(--panel2);min-height:44px;color:var(--ink);border:1px solid var(--line);cursor:pointer;border-radius:10px;flex:0 0 52px;font-size:1.1rem}.stepper button:active{background:#2a3242}.stepper .val{min-width:0;color:var(--ink);border:1px solid var(--line);text-align:center;background:#0f1218;border-radius:10px;flex:auto;justify-content:center;align-items:center;padding:0 8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.05rem;font-weight:600;display:flex}.hint{color:var(--mute);justify-content:space-between;margin-top:4px;font-size:.72rem;display:flex}.num{box-sizing:border-box;width:100%;min-height:44px;color:var(--ink);border:1px solid var(--line);background:#0f1218;border-radius:10px;padding:0 12px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:1.1rem}.num::placeholder{color:var(--mute);opacity:1;font-family:inherit;font-size:.95rem}.choices{flex-wrap:wrap;gap:8px;display:flex}.choice{background:var(--panel2);min-height:44px;color:var(--ink);border:1px solid var(--line);font:inherit;cursor:pointer;border-radius:10px;flex:120px;padding:6px 12px}.choice[aria-pressed=true]{border-color:var(--accent-line);background:#2a2230;font-weight:600}.actions{align-items:center;gap:16px;margin-bottom:8px;display:flex}.keys{color:var(--mute);font-size:.8rem}.btn{font:inherit;border:1px solid var(--line);background:var(--panel2);color:var(--ink);cursor:pointer;border-radius:10px;min-height:40px;padding:8px 16px}.btn.primary{background:var(--accent);border-color:var(--accent-line);color:#fff;letter-spacing:.005em;min-width:152px;min-height:48px;font-size:1rem;font-weight:650}.btn.primary:hover{background:#d03e2f}.btn.primary:disabled{opacity:.5;cursor:default}.btn.ghost{background:0 0;min-height:36px;padding:6px 12px;font-size:.85rem}#copy{position:relative}#copy .ok{justify-content:center;align-items:center;display:none;position:absolute;inset:0}#copy.copied .lbl{visibility:hidden}#copy.copied .ok{display:flex}.feedback h3{letter-spacing:-.01em;margin:0;font-size:1.15rem;font-weight:650}.feedback.right{border-color:#2c5b48}.feedback.wrong{border-color:#6a3b3a}.feedback.right h3{color:var(--good)}.feedback.wrong h3{color:var(--bad)}.fbhead{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.feedback p{margin:8px 0;font-size:.95rem;line-height:1.5}.note{color:var(--mute)}.done h3{margin:0 0 8px;font-weight:650}code{background:#232b3a;border-radius:4px;padding:0 4px}@media (width<=880px){.brand .sub{font-size:.78rem;line-height:1.25}.back-link{white-space:nowrap;padding:6px 10px}.fine,.hint{display:none}.back{max-height:84px}.stepper button{flex-basis:48px;min-height:40px}.stepper .val{min-height:40px}.score{flex:150px;font-size:.8rem;line-height:1.3}.bar .btn.ghost{min-height:32px;padding:4px 12px;font-size:.8rem}#mods button{min-height:36px;padding:5px 12px}.lab{margin-bottom:2px;line-height:1.25}.meter-read{margin-top:2px;font-size:.85rem}.field{margin-bottom:4px}.cam{padding:8px 16px 12px}.grid{grid-template-columns:minmax(0,1fr);gap:6px;margin-top:8px}.work{order:1}.view canvas{aspect-ratio:auto;object-fit:cover;object-position:50% 62%;height:76px}.how{gap:2px 6px;margin:4px 0 6px;font-size:.8rem}.how li:not(:last-child):after{margin-left:6px}.card{margin-bottom:6px;padding:9px 14px}#task-text{margin:2px 0;font-size:1.02rem}.actions{margin-bottom:8px}.btn.primary{min-height:48px}.grid{flex-direction:column;align-items:stretch;display:flex}.work{display:contents}#task{order:1}.view{order:2}#answer{order:3}#actions{order:4}#feedback{order:3}}@media (prefers-reduced-motion:reduce){.back .knob,.back .needle{transition:none}}
