*{box-sizing:border-box} :root{--ink:#202b43;--muted:#6e7890;--line:#dfe4ee;--panel:#fff;--canvas:#f7f8fc;--indigo:#5d62e7;--indigo-dark:#4146c7;--coral:#ff6b5d;--mint:#19b98b;--shadow:0 20px 60px rgba(31,41,69,.12)} html,body{width:100%;height:100%;margin:0;overflow:hidden} body{font-family:"DM Sans",sans-serif;color:var(--ink);background:#edf0f7}.app-shell{width:100vw;height:100vh;display:grid;grid-template-rows:68px minmax(0,1fr);background:linear-gradient(135deg,#f8f9fd 0%,#edf0f8 55%,#e9ecf6 100%)}button,input{font:inherit}button{color:inherit}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid rgba(78,92,123,.12);background:rgba(255,255,255,.88);backdrop-filter:blur(14px);z-index:10}.brand-block{display:flex;align-items:center;gap:12px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,var(--indigo),#898df5);display:grid;place-items:center;transform:rotate(-5deg);box-shadow:0 8px 20px rgba(93,98,231,.28)}.brand-mark span{position:absolute;width:19px;height:3px;background:#fff;border-radius:5px}.brand-mark span:first-child{transform:rotate(45deg)}.brand-mark span:last-child{transform:rotate(-45deg)}.eyebrow,.stage-kicker,.micro-label{margin:0;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:700;color:var(--indigo)}h1,h2,p{margin-top:0}h1{font-family:Manrope,sans-serif;font-size:20px;line-height:1.05;margin:2px 0 0;font-weight:800}.top-actions{display:flex;gap:8px}.button{border:0;border-radius:10px;padding:10px 15px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-1px)}.button:focus-visible,.segment:focus-visible,.choice:focus-visible,.text-button:focus-visible,.vertex:focus-visible{outline:3px solid rgba(93,98,231,.3);outline-offset:2px}.button-ghost{background:#eeefff;color:var(--indigo-dark)}.button-ghost[aria-pressed=true]{background:var(--indigo);color:#fff}.button-quiet{background:#f0f2f6;color:#556078}.button-primary{background:var(--indigo);color:#fff;box-shadow:0 7px 18px rgba(93,98,231,.25)}.workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;padding:14px}.stage-panel,.control-panel{min-height:0;border-radius:22px;background:var(--panel);border:1px solid rgba(99,111,144,.12);box-shadow:var(--shadow)}.stage-panel{position:relative;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);background:linear-gradient(145deg,#fff,#f8f9fd)}.stage-intro{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 22px 8px;gap:20px}.stage-intro h2{font-family:Manrope,sans-serif;font-size:clamp(16px,1.6vw,23px);margin:4px 0 0;line-height:1.25}.legend{display:flex;gap:13px;font-size:12px;color:var(--muted);white-space:nowrap}.legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.original{background:var(--indigo)}.legend-dot.image{background:var(--coral)}.plane-wrap{position:relative;min-height:0;margin:0 18px 18px;border-radius:18px;background:var(--canvas);overflow:hidden;border:1px solid #e9ebf2}.plane-wrap svg{width:100%;height:100%;display:block;touch-action:none}.plane-hint{position:absolute;top:11px;left:12px;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:9px;padding:7px 10px;font-size:11px;font-weight:600;color:var(--muted);pointer-events:none}.plane-hint span{color:var(--indigo);font-size:14px}.challenge-card{position:absolute;left:34px;right:34px;bottom:34px;max-width:520px;padding:14px 16px;background:rgba(255,255,255,.96);border:1px solid rgba(93,98,231,.18);border-radius:16px;box-shadow:0 16px 38px rgba(41,52,90,.16);backdrop-filter:blur(12px);z-index:5}.challenge-topline{display:flex;justify-content:space-between;align-items:center}.challenge-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--indigo);font-weight:800}.score-pill{font-size:10px;font-weight:700;color:#167a5e;background:#ddf8ef;padding:4px 8px;border-radius:99px}.challenge-card>p{font-size:14px;font-weight:600;margin:7px 0 10px}.challenge-actions{display:flex;gap:8px}.challenge-card .button{padding:8px 11px;font-size:12px}.feedback{display:block;min-height:18px!important;margin:6px 0 0!important;font-size:11px!important;color:var(--muted)}.feedback.correct{color:#168461}.feedback.try{color:#c15343}.success-burst{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center;font-family:Manrope,sans-serif;font-size:42px;font-weight:800;color:var(--mint);opacity:0;transform:scale(.8);transition:.25s}.success-burst.show{animation:successPop 1s ease}@keyframes successPop{0%{opacity:0;transform:scale(.7)}25%{opacity:1;transform:scale(1.08)}70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.95)}}.control-panel{overflow:hidden;display:flex;flex-direction:column;background:#fff}.control-section,.coordinates-section{padding:16px 18px;border-bottom:1px solid #eceef4}.section-heading,.coordinates-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-heading>div,.coordinates-heading>div{display:flex;align-items:center;gap:8px}.section-heading h2,.coordinates-heading h2{font-family:Manrope,sans-serif;font-size:13px;margin:0}.step-number{width:21px;height:21px;border-radius:7px;display:grid;place-items:center;background:#eff0ff;color:var(--indigo);font-size:10px;font-weight:800}.operation-badge{font-size:10px;font-weight:800;color:var(--indigo);background:#f0f1ff;border-radius:99px;padding:5px 9px}.segmented{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;background:#f2f3f8;border-radius:12px;gap:3px}.segment{border:0;background:transparent;padding:9px 3px;border-radius:9px;font-size:11px;font-weight:700;cursor:pointer;color:#717b91}.segment span{display:block;font-size:17px;margin-bottom:2px}.segment.active{background:#fff;color:var(--indigo);box-shadow:0 3px 10px rgba(32,43,67,.09)}.settings-section{padding-bottom:14px}.compact{margin-bottom:10px}.operation-controls{min-height:82px}.slider-row+.slider-row{margin-top:9px}.slider-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600}.slider-meta output{min-width:30px;text-align:center;padding:3px 7px;border-radius:7px;background:#eef0ff;color:var(--indigo);font-weight:800}input[type=range]{appearance:none;width:100%;height:4px;background:linear-gradient(90deg,#d9dded,var(--indigo));border-radius:4px;margin:8px 0 2px}input[type=range]::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border-radius:50%;background:#fff;border:5px solid var(--indigo);box-shadow:0 2px 8px rgba(40,49,90,.25);cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:#9aa2b3}.micro-label{color:#8a93a7;margin-bottom:7px}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.choice{background:#f6f7fa;border:1px solid #e7e9f0;border-radius:10px;padding:9px 4px;font-size:12px;font-weight:800;cursor:pointer}.choice small{display:block;font-size:8px;font-weight:500;color:#8992a5;margin-top:2px}.choice.active{border-color:var(--indigo);background:#f1f1ff;color:var(--indigo)}.rule-card{margin:12px 18px;padding:13px;display:grid;grid-template-columns:36px 1fr;gap:11px;background:linear-gradient(135deg,#292f55,#424978);border-radius:14px;color:#fff}.rule-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.13);font-size:20px}.rule-card p{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#bfc5e5;margin:0 0 3px}.rule-card strong{font-family:Manrope,sans-serif;font-size:13px;display:block}.rule-card span{font-size:10px;color:#d6daf0}.coordinates-section{border:0;padding-top:3px;min-height:0}.text-button{border:0;background:transparent;color:var(--indigo);font-size:9px;font-weight:700;cursor:pointer}.coordinate-table{font-size:10px;border:1px solid #e7eaf1;border-radius:10px;overflow:hidden}.coordinate-row{display:grid;grid-template-columns:.7fr 1fr 1fr;align-items:center;padding:6px 9px}.coordinate-row:nth-child(even){background:#f7f8fb}.coordinate-row span:first-child{font-weight:800}.header-row{color:#8d96a8;text-transform:uppercase;letter-spacing:.06em;font-size:8px;background:#f0f2f7!important}.coordinate-chip{font-variant-numeric:tabular-nums}.coordinate-chip.image{color:#d75046;font-weight:700}.axis{stroke:#7f899c;stroke-width:.055}.tick{stroke:#8a93a4;stroke-width:.035}.tick-label{font-size:.27px;fill:#7d8799;text-anchor:middle;dominant-baseline:middle}.axis-label{font-size:.34px;font-weight:700;fill:#596379}.original-shape{fill:rgba(93,98,231,.18);stroke:var(--indigo);stroke-width:.09;stroke-linejoin:round}.image-shape{fill:rgba(255,107,93,.2);stroke:var(--coral);stroke-width:.1;stroke-linejoin:round;filter:url(#softShadow)}.target-shape{fill:rgba(25,185,139,.08);stroke:var(--mint);stroke-width:.08;stroke-dasharray:.2 .13}.connector{stroke:#b9bfd0;stroke-width:.04;stroke-dasharray:.12 .12}.vertex{fill:#fff;stroke:var(--indigo);stroke-width:.11;cursor:grab;filter:url(#softShadow)}.vertex:active{cursor:grabbing}.image-vertex{fill:var(--coral);stroke:#fff;stroke-width:.07}.vertex-label{font-size:.32px;font-family:Manrope,sans-serif;font-weight:800;fill:var(--indigo-dark);paint-order:stroke;stroke:#fff;stroke-width:.12}.image-label{fill:#c84d43}.mirror-line{stroke:#14a980;stroke-width:.07;stroke-dasharray:.2 .15}.rotation-arc{fill:none;stroke:#9a62dd;stroke-width:.07;stroke-dasharray:.15 .1}.origin-dot{fill:#4d576c}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.control-section,.coordinates-section{padding-left:13px;padding-right:13px}.rule-card{margin-left:13px;margin-right:13px}}
@media(max-width:700px){.app-shell{grid-template-rows:56px minmax(0,1fr)}.topbar{padding:0 12px}.brand-mark{width:32px;height:32px}.eyebrow{display:none}h1{font-size:16px}.button{padding:8px 10px;font-size:11px}.workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,57%) minmax(0,43%);padding:7px;gap:7px}.stage-panel,.control-panel{border-radius:16px}.stage-intro{padding:9px 12px 4px}.stage-intro h2{font-size:13px}.stage-kicker{font-size:8px}.legend{font-size:9px;gap:8px}.plane-wrap{margin:0 8px 8px;border-radius:12px}.plane-hint{font-size:8px;padding:4px 6px;top:6px;left:6px}.control-panel{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;align-content:start;overflow:hidden}.transformation-picker{grid-column:1;padding:9px 10px}.settings-section{grid-column:2;padding:9px 10px}.section-heading{margin-bottom:6px}.section-heading h2{font-size:10px}.step-number{width:17px;height:17px;font-size:8px}.operation-badge{display:none}.segment{font-size:8px;padding:5px 1px}.segment span{font-size:13px}.operation-controls{min-height:55px}.slider-row+.slider-row{margin-top:4px}.slider-meta{font-size:8px}.slider-meta output{font-size:8px;padding:2px 4px}input[type=range]{margin:5px 0 0}.range-labels{display:none}.choice{padding:6px 2px;font-size:9px}.choice small{font-size:6px}.rule-card{grid-column:1;margin:0 5px 7px 10px;padding:8px;grid-template-columns:27px 1fr;gap:6px}.rule-icon{width:27px;height:27px;font-size:15px}.rule-card p{font-size:7px}.rule-card strong{font-size:9px}.rule-card span{font-size:7px}.coordinates-section{grid-column:2;padding:0 10px 6px 5px}.coordinates-heading{margin-bottom:5px}.coordinates-heading h2{font-size:9px}.coordinate-row{padding:3px 6px;font-size:8px}.header-row{font-size:6px}.challenge-card{left:17px;right:17px;bottom:17px;padding:9px 11px}.challenge-card>p{font-size:10px;margin:4px 0 6px}.challenge-card .button{padding:5px 8px;font-size:9px}.feedback{min-height:11px!important;font-size:8px!important;margin-top:3px!important}.success-burst{font-size:26px}}
@media(max-width:430px){.top-actions .button{padding:7px 8px}.button-ghost span{display:none}.legend{display:none}.workspace{grid-template-rows:minmax(0,55%) minmax(0,45%)}.coordinates-heading .step-number,.coordinates-heading h2{display:none}.coordinates-heading{justify-content:flex-end}.choice-grid{gap:3px}.choice small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}