.practice-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;align-items:start}
#hex-map{position:sticky;top:12px;padding:12px;border:1px solid #41584e;border-radius:14px;background:#101d19;align-self:start}
#hex-map strong:empty,.hex-equation:empty{display:none}
#hex-map strong{display:block;font-size:13px;color:#b8cbbf;text-align:center}
#hex-map svg{display:block;width:100%;max-height:225px}
.hex-cell rect{fill:#20352d;stroke:#486355;stroke-width:.4}.hex-cell text{fill:#dcebe1;font:7px monospace}
.hex-start rect{stroke:#adbbff;stroke-width:1}.hex-end rect{fill:#285d40;stroke:#a8ffba;stroke-width:1}
.hex-path{fill:none;stroke:#edc47f;stroke-width:1;stroke-dasharray:1;stroke-dashoffset:1;animation:hex-draw .22s ease-out forwards}
.hex-wrap{stroke:#adbbff}.hex-stop{fill:none;stroke:#ffd477;stroke-width:.8;opacity:0;animation:hex-stop .3s ease-out forwards}
.hex-equation{text-align:center;font:17px monospace;color:#a8ffba;min-height:24px}.hex-caption{font-size:12px;line-height:1.5;color:#b8cbbf;min-height:54px;margin:8px 0 0}
@keyframes hex-draw{to{stroke-dashoffset:0}}@keyframes hex-stop{to{opacity:1}}
@media(max-width:520px){.practice-layout{grid-template-columns:minmax(0,1fr) 128px;gap:8px}#hex-map{padding:6px}#hex-map svg{max-height:150px}.hex-equation{font-size:13px}#response{max-width:100%;box-sizing:border-box}#prompt{font-size:30px;margin:28px 0}.scoreboard{flex-wrap:wrap;gap:8px}}
@media(prefers-reduced-motion:reduce){.hex-path{animation:none;stroke-dashoffset:0}.hex-stop{animation:none;opacity:1}}

.practice-layout:has(.hex-connected){grid-template-columns:minmax(0,1fr) 240px}
#hex-map.hex-connected svg{max-height:320px}
.hex-bank-boundary{fill:none;stroke:#688b77;stroke-width:.5;stroke-dasharray:2 2}
.hex-carry{stroke:#ffa973;stroke-width:1.2}
.hex-connected .hex-cell text{font-size:6px}
.hex-step-label{fill:#edc47f;font:7px monospace}
.hex-arrow{fill:none;stroke:#edc47f;stroke-width:1}
@media(max-width:600px){.practice-layout:has(.hex-connected){grid-template-columns:minmax(0,1fr) 165px;gap:8px}#hex-map.hex-connected{padding:5px}#hex-map.hex-connected svg{max-height:260px}}

#hex-map.hex-signed svg{max-height:560px}
.hex-zero-boundary{fill:none;stroke:#adbbff;stroke-width:1}
@media(max-width:600px){#hex-map.hex-signed svg{max-height:440px}}
