:root{font-family:ui-rounded,"Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;color:#fff7eb;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 50% 0,#66355a,#1b1429 80%)}.shell{max-width:700px;margin:0 auto;min-height:100svh;padding:12px 14px 32px;display:flex;flex-direction:column;gap:12px}.back{color:#ffe1b6;text-decoration:none;font-size:13px}.intro{text-align:center}.intro span{font-size:11px;color:#ffd1ad;letter-spacing:.14em;font-weight:900}.intro h1{font-size:clamp(26px,7vw,39px);margin:5px}.intro h1 b{color:#ffa25f}.intro p{font-size:12px;color:#e5cfe3;margin:6px}.stats{display:flex;justify-content:space-around;gap:10px}.stats>div{padding:9px;background:#ffffff16;border:1px solid #ffffff20;border-radius:12px;flex:1;text-align:center;font-size:12px}.stats strong{color:#ffd189;font-size:21px;display:block}.stage{position:relative;border-radius:24px;background:#261a38;border:2px solid #e0ab9060;overflow:hidden;width:100%;max-width:510px;margin:0 auto;aspect-ratio:1/1}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.notice{position:absolute;top:10px;left:10px;right:10px;text-align:center;color:#ffe3b6;font-weight:900;text-shadow:0 2px 3px #000;pointer-events:none;font-size:12px}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.tools button{padding:10px 2px;background:#523957;border:2px solid transparent;border-radius:13px;color:inherit;font-weight:900;font-size:12px}.tools button.selected{border-color:#ffdb92;background:#8b4755}.actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.actions button{flex:1;min-width:115px;border:1px solid #f6c8a055;border-radius:14px;background:#6b3b65;color:white;padding:13px 9px;font-weight:900}.actions button.primary{background:linear-gradient(110deg,#ffdb91,#ff8f5d);color:#2d192c;font-size:19px}#help{text-align:center;color:#d9c6de;font-size:12px;margin:0}#result{background:#382341;border:1px solid #ffbf8670;border-radius:19px;padding:12px;text-align:center}#result h2{color:#ffe2a8;margin:4px}#result p{line-height:1.65}footer{text-align:center;color:#d3bad3;font-size:12px;margin-top:auto}footer b{color:#ffde95}button:focus-visible{outline:3px solid #fff;outline-offset:2px}[hidden]{display:none!important}@media(max-width:390px){.shell{gap:9px;padding:8px}.tools button{font-size:10px}.stage{max-height:54svh;width:auto;max-width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.precision{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;background:#ffffff12;padding:10px;border-radius:14px}
.precision label{font-size:12px;font-weight:800;min-width:112px}.precision output{color:#ffcf8d}.precision input{width:100%;accent-color:#ffac63;min-height:30px}
.precision button{grid-column:1/-1;border:1px solid #ffd9a066;background:#654263;border-radius:10px;color:#fff;padding:8px}
.tools{grid-template-columns:repeat(5,1fr)}@media(max-width:480px){.tools{grid-template-columns:repeat(3,1fr)}}
