*{box-sizing:border-box}:root{--ink:#222942;--muted:#737c91;--line:#e2e6ef;--panel:#fff;--indigo:#5f61e8;--indigo-dark:#4648ba;--coral:#ff6f5c;--teal:#16b89a;--gold:#f2aa3c;--shadow:0 18px 54px rgba(39,49,81,.13)}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:#eef2f8}button,input{font:inherit;color:inherit}.app-shell{width:100vw;height:100vh;display:grid;grid-template-rows:66px minmax(0,1fr);background:linear-gradient(135deg,#fbfcff,#edf1f7)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(255,255,255,.93);border-bottom:1px solid rgba(69,82,117,.12);backdrop-filter:blur(14px);z-index:5}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,var(--indigo),#9b9cf7);color:#fff;font:800 23px/1 Manrope,sans-serif;box-shadow:0 8px 20px rgba(89,98,230,.28);transform:rotate(-4deg)}.brand p,.kicker,.section-heading p{margin:0;text-transform:uppercase;letter-spacing:.13em;font-size:9px;font-weight:800;color:var(--indigo)}h1,h2,h3,p{margin-top:0}h1{font:800 20px/1.05 Manrope,sans-serif;margin:3px 0 0}.top-actions{display:flex;gap:8px}.button{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer;transition:.2s transform,.2s box-shadow}.button:hover{transform:translateY(-1px)}.button:focus-visible,.preset-grid button:focus-visible,.mode-toggle button:focus-visible,.text-button:focus-visible,.close-button:focus-visible,.challenge-options button:focus-visible,input:focus-visible,.drag-point:focus-visible{outline:3px solid rgba(89,98,230,.34);outline-offset:2px}.ghost{background:#eeeefe;color:var(--indigo-dark)}.ghost[aria-pressed=true]{background:var(--indigo);color:#fff}.quiet{background:#f0f2f6;color:#5e687d}.workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 378px;gap:14px;padding:14px}.stage,.controls{min-height:0;border-radius:22px;background:var(--panel);border:1px solid rgba(92,104,137,.12);box-shadow:var(--shadow)}.stage{position:relative;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:linear-gradient(145deg,#fff,#fafaff)}.stage-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 24px 5px}.stage-heading h2{font:800 clamp(18px,2vw,27px)/1.2 Manrope,sans-serif;margin:4px 0 0}.angle-badge{min-width:92px;padding:8px 12px;border-radius:12px;background:#eff0ff;text-align:center;color:var(--indigo-dark)}.angle-badge small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.angle-badge strong{font:800 20px Manrope,sans-serif}.circle-scene{min-height:0;position:relative;margin:0 18px 8px;border:1px solid #e7eaf2;border-radius:20px;background:radial-gradient(circle at 76% 16%,rgba(95,97,232,.13),transparent 35%),linear-gradient(180deg,#fcfcff,#f2f4fa);overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto}.circle-scene svg{display:block;width:100%;height:100%;min-height:0;touch-action:none;user-select:none}.grid-lines path{fill:none;stroke:#e7e9f2;stroke-width:1}.axis{stroke:#8790a6;stroke-width:2}.axis-arrow{fill:#8790a6}.unit-disc{fill:url(#circleFill);stroke:#6063e6;stroke-width:4}.tick-labels{fill:#7e879c;font:700 14px "DM Sans",sans-serif}.angle-arc{fill:none;stroke:var(--gold);stroke-width:7;stroke-linecap:round}.radius-line{stroke:#3f4866;stroke-width:5;stroke-linecap:round}.projection{stroke-width:6;stroke-linecap:round;stroke-dasharray:9 8}.projection.cosine{stroke:var(--coral)}.projection.sine{stroke:var(--teal)}.right-angle{fill:none;stroke:#8d95a8;stroke-width:2}.point-halo{fill:rgba(255,111,92,.2)}.drag-point{fill:var(--coral);stroke:#fff;stroke-width:4;filter:url(#pointShadow);cursor:grab}.drag-point:active{cursor:grabbing}.dynamic-labels rect{fill:#fff;stroke:#dfe3ec;stroke-width:1}.dynamic-labels text{fill:#313951;font:800 13px "DM Sans",sans-serif;text-anchor:middle}.theta-label{fill:#aa741d!important;font-size:18px!important}.legend{display:flex;justify-content:center;gap:24px;padding:7px 12px 11px;color:var(--muted);font-size:10px;font-weight:700}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:20px;height:4px;border-radius:99px}.cos-key{background:var(--coral)}.sin-key{background:var(--teal)}.identity-strip{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin:0 18px 18px;padding:11px 16px;border-radius:15px;background:#293253;color:#fff}.identity-strip span{display:block;color:#c2c7e3;font-size:8px;text-transform:uppercase;letter-spacing:.09em;font-weight:800}.identity-strip strong{display:block;margin-top:3px;font:700 clamp(11px,1.3vw,15px) Manrope,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity-strip>i{color:#8993be;font-style:normal}.controls{display:flex;flex-direction:column;overflow:hidden}.control-section{padding:16px 18px;border-bottom:1px solid #eceef4}.section-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px}.section-heading>span{width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:#eef0ff;color:var(--indigo);font-size:10px;font-weight:800}.section-heading h2{font:800 13px Manrope,sans-serif;margin:2px 0 0}.slider-label{display:flex;justify-content:space-between;font-size:11px;font-weight:700}.slider-label output{min-width:58px;padding:3px 8px;border-radius:8px;background:#eff0ff;color:var(--indigo-dark);text-align:center;font-weight:800}input[type=range]{width:100%;accent-color:var(--indigo);margin:13px 0 10px;cursor:pointer}.preset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.preset-grid button{border:1px solid #e0e3ec;border-radius:9px;padding:7px 3px;background:#f7f8fb;color:#626b80;font-size:9px;font-weight:800;cursor:pointer}.preset-grid button.active{background:var(--indigo);border-color:var(--indigo);color:#fff}.mode-toggle{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:12px;background:#eff1f6}.mode-toggle button{border:0;border-radius:9px;padding:8px;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}.mode-toggle button.active{background:#fff;color:var(--indigo-dark);box-shadow:0 4px 14px rgba(44,55,88,.1)}.value-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.value-card{min-width:0;border-radius:15px;padding:11px 12px;border:1px solid #e4e7ef;background:#fff}.value-card span,.value-card b,.value-card small{display:block}.value-card span{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:7px;font-weight:800}.value-card b{margin-top:2px;font-size:10px}.value-card strong{display:block;margin:5px 0 2px;font:800 18px Manrope,sans-serif;white-space:nowrap}.value-card small{font-size:9px;color:var(--muted)}.cosine-card{border-top:4px solid var(--coral)}.cosine-card strong{color:#d55747}.sine-card{border-top:4px solid var(--teal)}.sine-card strong{color:#118b76}.quadrant-card{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px;padding:9px 11px;border-radius:12px;background:linear-gradient(135deg,#f0f1ff,#f7f8ff)}.quadrant-card span{display:block;color:var(--indigo);font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.quadrant-card strong{font-size:10px}.quadrant-card p{max-width:135px;margin:0;text-align:right;color:var(--muted);font-size:8px;line-height:1.35}.notice{padding:11px 13px;border-radius:14px;background:#fff8e9;border:1px solid #f2e4c7}.notice span,.prompt-card>span{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#a36b16;font-weight:800}.notice p{margin:4px 0 0;color:#6d614f;font-size:10px;line-height:1.45}.prompt-card{margin:11px 18px 15px;padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,#293152,#454d7c);color:#fff}.prompt-card>span{color:#c3c8ef}.prompt-card p{font-size:10px;line-height:1.4;margin:4px 0 7px}.text-button{border:0;background:transparent;padding:0;color:var(--indigo);font-size:10px;font-weight:800;cursor:pointer}.prompt-card .text-button{color:#c8cbff}.prompt-card #revealText{color:#d8dbef;font-size:8px}.challenge-card{position:absolute;inset:82px 34px 34px;z-index:4;display:grid;align-content:center;justify-items:center;text-align:center;padding:28px;border:1px solid rgba(89,98,230,.16);border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 20px 70px rgba(37,48,82,.2);backdrop-filter:blur(16px)}.challenge-card h3{font:800 clamp(23px,2.5vw,34px)/1.2 Manrope,sans-serif;margin:7px 0}.challenge-card>p:nth-of-type(2){color:var(--muted);font-size:14px}.close-button{position:absolute;right:15px;top:12px;border:0;background:#f0f2f6;width:32px;height:32px;border-radius:10px;color:#697286;font-size:20px;cursor:pointer}.challenge-options{width:min(520px,100%);display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0}.challenge-options button{border:2px solid #e2e5ee;border-radius:13px;background:#f8f9fc;padding:12px 9px;font-weight:800;cursor:pointer}.challenge-options button.selected{border-color:var(--indigo);background:#eff0ff}.challenge-options button.correct{border-color:var(--teal);background:#ecfbf7}.challenge-options button.incorrect{border-color:var(--coral);background:#fff1ef}.feedback{min-height:22px;margin:8px 0;font-size:11px;font-weight:700}.feedback.correct{color:#10856d}.feedback.try{color:#c05245}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 340px}.stage-heading{padding-left:18px}.circle-scene{margin-left:10px;margin-right:10px}}
@media(max-width:700px){.app-shell{grid-template-rows:56px minmax(0,1fr)}.topbar{padding:0 11px}.brand-mark{width:32px;height:32px;font-size:18px}.brand p{display:none}h1{font-size:16px}.button{padding:8px 10px;font-size:10px}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,58%) minmax(0,42%);padding:7px;gap:7px}.stage,.controls{border-radius:16px}.stage-heading{padding:9px 12px 3px}.stage-heading h2{font-size:13px}.angle-badge{min-width:65px;padding:5px 7px}.angle-badge strong{font-size:14px}.angle-badge small{font-size:6px}.circle-scene{margin:0 7px 5px;border-radius:13px}.circle-scene svg{min-height:0}.legend{gap:12px;padding:2px 5px 5px;font-size:7px}.legend i{width:13px}.identity-strip{margin:0 7px 7px;padding:7px 9px;gap:5px;border-radius:10px}.identity-strip span{font-size:5px}.identity-strip strong{font-size:8px}.controls{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);align-items:stretch}.control-section{padding:8px 9px;border-bottom:0}.angle-control{border-right:1px solid #eceef4}.section-heading{margin-bottom:5px}.section-heading>span{width:18px;height:18px;font-size:7px}.section-heading h2{font-size:9px}.section-heading p{font-size:6px}.slider-label{font-size:7px}.slider-label output{min-width:43px;font-size:8px;padding:2px 5px}input[type=range]{margin:6px 0 5px}.preset-grid{gap:3px}.preset-grid button{padding:5px 1px;font-size:7px;border-radius:6px}.mode-toggle button{padding:5px;font-size:7px}.value-cards{gap:4px;margin-top:5px}.value-card{padding:6px;border-radius:9px}.value-card span{font-size:5px}.value-card b{font-size:7px}.value-card strong{font-size:11px;margin:2px 0}.value-card small{font-size:6px}.quadrant-card{margin-top:5px;padding:5px 6px}.quadrant-card span{font-size:5px}.quadrant-card strong{font-size:7px}.quadrant-card p{font-size:5px;max-width:75px}.notice-section,.prompt-card{display:none}.challenge-card{inset:47px 12px 12px;padding:14px}.challenge-card h3{font-size:19px}.challenge-card>p:nth-of-type(2){font-size:10px}.challenge-options{gap:5px}.challenge-options button{padding:8px 4px;font-size:9px}.feedback{font-size:8px;min-height:15px}.dynamic-labels text{font-size:12px}}
@media(max-width:420px){.top-actions .ghost span{display:none}.stage-heading h2{font-size:11px}.legend{justify-content:space-around}.control-section{padding:6px 7px}.preset-grid button{padding:4px 1px}.value-card strong{font-size:10px}}
@media(min-width:701px) and (max-height:700px){.app-shell{grid-template-rows:56px minmax(0,1fr)}.topbar{padding:0 18px}.brand-mark{width:34px;height:34px}.brand h1{font-size:17px}.workspace{padding:9px;gap:9px}.stage-heading{padding:10px 18px 3px}.circle-scene{margin-bottom:5px}.legend{padding:3px 8px 6px}.identity-strip{margin-bottom:10px;padding:7px 12px}.control-section{padding:9px 13px}.section-heading{margin-bottom:6px}input[type=range]{margin:7px 0 5px}.preset-grid button{padding:5px 2px}.value-cards{margin-top:6px}.value-card{padding:7px 9px}.value-card strong{margin:2px 0;font-size:15px}.quadrant-card{margin-top:5px;padding:6px 8px}.notice{padding:7px 9px}.prompt-card{margin:6px 13px 8px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}