:root{--mint:#8df0cf;--purple:#ffcea0;--muted:#aec4ce;background:#0d202c}body{background:radial-gradient(ellipse at 90% 0,#255d6355,transparent 65%),#0d202c;color:#eef9f7}header{padding:14px 28px;background:#0c1b2bd9}.brand-icon{color:#8df0cf}.card{background:#172e3e;border-color:#6badae40}.primary{background:#8df0cf;color:#113c37;box-shadow:0 3px 0 #3b9b86}.primary:hover{background:#adffe2}.quiet,button{border-color:#6e8c9b55}.eyebrow{color:#a9d6cf}.wide{width:100%}.shape-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;margin:4px 0 24px}.shape-hero h1{font-size:clamp(42px,5vw,64px);letter-spacing:-3px;margin:12px 0}.shape-hero h1 em{font-style:normal;color:#8df0cf}.shape-hero p{color:#b6d4d6;font-size:17px}.hero-shape{max-height:210px;width:100%;filter:drop-shadow(0 10px 24px #70d7ba15)}.cards{gap:20px}.solo-entry{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.solo-entry button{min-width:210px;background:#1c3c4b;border-color:#7caba8;padding:16px}.formrow{flex-wrap:wrap}.join-button{margin-top:16px}.lesson-note{line-height:2;color:#c9e5df;margin:20px 0}.lesson-note b{color:#97f0d2}.play-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;font-size:14px;font-weight:750}.play-head>div{display:flex;align-items:center;gap:18px}.play-head #clock{font-size:26px;font-variant-numeric:tabular-nums;color:#a8f4d8}.play-head #penalty{color:#ffd5aa;font-size:13px}.play-head .quiet{min-height:38px;padding:8px 12px;font-size:12px}.shape-play{border:1px solid #6ba69a55;border-radius:24px;background:linear-gradient(130deg,#1e3b48,#152d3c);padding:20px;box-shadow:0 20px 50px #0002}.question{text-align:center;margin-bottom:12px}.question .eyebrow{font-size:9px;letter-spacing:3px}.question h2{font-size:25px;margin:8px 0;color:#f4fff9;word-break:keep-all}.question p{margin:6px auto 12px;line-height:1.55;color:#d6e9e4;max-width:650px;word-break:keep-all}.fixed-note{display:inline-block;color:#ffddb7;background:#f3bd7610;border:1px solid #e8bc7740;border-radius:20px;padding:6px 12px;font-size:12px}.shape-work{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;gap:24px;max-width:850px;margin:auto}#shape-board{display:block;width:100%;max-height:460px;aspect-ratio:1;background:radial-gradient(ellipse at 35% 20%,#f8fffb,#e4f1ed);border:1px solid #c1d9d0;border-radius:20px;touch-action:none;user-select:none;box-shadow:inset 0 0 25px #c4dcd244}.shape-grid-line{stroke:#a9c8bd;stroke-width:.8;opacity:.5}.student-shape{fill:#2bb7a72b;stroke:#178b83;stroke-width:4;stroke-linejoin:round;pointer-events:none}.shape-point{cursor:pointer;outline:none}.touch-target{fill:transparent}.shape-point:focus .touch-target{fill:#dda95b22;stroke:#c27f23;stroke-width:2}.grid-dot{fill:#8da9a1}.vertex{fill:#ffc997;stroke:#794e2c;stroke-width:2}.fixed .vertex{fill:#3e6573;stroke:#ecfff6;stroke-width:3}.active .touch-target{fill:#ffaa6529;stroke:#c2853b;stroke-width:2;stroke-dasharray:4 3}.point-letter{font-size:14px;font-weight:900;text-anchor:middle;fill:#254940;paint-order:stroke;stroke:#f1faf4;stroke-width:3;pointer-events:none}.target-region{fill:#f3bc5826;stroke:#b47b24;stroke-width:2;stroke-dasharray:5 5;pointer-events:none}.drop-preview{fill:#f4b66a55;stroke:#b77c2f;stroke-width:3;pointer-events:none}.shape-controls .mode-choice{margin:0}.mode-choice button.selected{background:#305a59;border-color:#8df0cf;color:#e8fff7}.shape-controls button{min-height:48px;font-size:13px}.shape-controls #move-help{color:#c8ddd8;line-height:1.6;font-size:13px;min-height:42px;margin:14px 0}.edit-actions{display:flex;gap:6px;flex-wrap:wrap}.edit-actions button{flex:1;padding:10px 7px;white-space:nowrap}.shape-controls #submit{width:100%;margin-top:16px;font-size:16px;min-height:54px}.combo-line{text-align:center;color:#9ae9cb;font-size:13px;padding:15px 0 0}.shape-controls .tiny{text-align:center;font-size:11px}.rematch-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}.rematch-actions #again,.rematch-actions #result-code{flex:0 1 230px}.rematch-actions strong{display:block;font-size:26px;letter-spacing:3px}#friend-end{display:block;margin:18px auto 0;font-size:12px}#success-impact{display:flex;align-items:center;gap:12px;position:fixed;top:80px;left:50%;transform:translateX(-50%);opacity:0;pointer-events:none;background:#173c35f5;color:#b4ffdf;border:1px solid #95ebcd;padding:8px 20px;border-radius:18px;z-index:20;font-weight:900}#success-impact svg{width:70px;height:70px}#success-impact.show{animation:shape-success .85s ease-out forwards}@keyframes shape-success{0%{opacity:0;translate:0 8px}15%,80%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -8px}}@media(max-width:900px){main{padding:20px}.shape-work{grid-template-columns:minmax(0,1fr) 230px;gap:18px}#shape-board{max-height:400px}.shape-play{padding:16px}.shape-hero{gap:10px}.shape-hero h1{font-size:46px}.question h2{font-size:22px}.question p{font-size:14px}}@media(max-width:600px){header{padding:10px 14px}.creator span{display:none}.shape-hero{grid-template-columns:1fr 120px;gap:4px}.shape-hero h1{font-size:38px;letter-spacing:-2px}.shape-hero p{font-size:13px}.shape-hero .eyebrow{font-size:8px;letter-spacing:1px}.hero-shape{height:130px}.shape-work{display:flex;flex-direction:column;gap:12px}.shape-controls{width:100%}#shape-board{max-height:none;width:min(100%,400px)}main{padding:14px 10px}.shape-play{padding:12px 10px;border-radius:18px}.question h2{font-size:20px;margin:5px 0}.question p{font-size:13px;margin-bottom:8px}.question .eyebrow{display:none}.fixed-note{font-size:11px;padding:4px 9px}.play-head{font-size:12px;gap:8px}.play-head>div{gap:8px}.play-head #clock{font-size:22px}.play-head .quiet{font-size:10px;padding:6px}.shape-controls #move-help{min-height:0;margin:8px 0;font-size:12px}.shape-controls .mode-choice button{min-height:44px;padding:9px}.shape-controls #submit{margin-top:10px;min-height:48px}.combo-line{padding-top:10px}.solo-entry>span{display:none}.solo-entry button{min-width:0;width:100%;margin:0}.practice-setup{padding:20px}.rematch-actions #again,.rematch-actions #result-code{flex:1;min-width:140px}.question{margin-bottom:8px}.shape-controls .tiny{margin-bottom:0}#success-impact{top:65px;width:max-content;max-width:90vw;font-size:13px}#success-impact svg{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){#success-impact.show{animation:none;opacity:1}}
@media(max-width:650px){header{flex-wrap:nowrap;gap:8px}.audio-controls{order:0;width:auto;margin-left:auto}.audio-controls label{display:none}.audio-controls button{padding:8px;min-height:44px}.brand{font-size:16px;white-space:nowrap}.creator img{width:34px;height:34px}.creator span{display:none}}
@media(min-width:601px) and (max-height:820px){main{padding:18px 24px}.shape-play{padding:14px}.question .eyebrow{display:none}.question h2{margin:5px 0;font-size:23px}.question p{margin:5px auto 8px}.fixed-note{padding:4px 10px}.shape-work{grid-template-columns:minmax(0,1fr) 260px;gap:18px}#shape-board{width:min(100%,380px);max-height:380px;justify-self:center}.play-head{margin-bottom:10px}}

.shape-point.active:not(.fixed) .touch-target { fill: #087f981a; stroke: #087f98; stroke-width: 2; stroke-dasharray: 3 4; }
