:root{font-family:Inter,"Helvetica Neue",Arial,"Noto Sans JP",sans-serif;color:#172238;background:#e7ecf2;font-synthesis:none;--blue:#245bff}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;border:1px solid #c8d1df;background:#ffffffb8;color:#263650;border-radius:13px;min-height:44px;touch-action:manipulation}button:hover{background:#fff}button:active{transform:translateY(1px)}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #245bff;outline-offset:3px}a{color:inherit;text-decoration:none}header{position:absolute;z-index:3;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:space-between;padding:24px 32px;font-size:11px;letter-spacing:.12em}header a{font-weight:800}header a span{font-weight:400;color:#7a879c}header button{font-size:11px;padding:0 15px;background:#fff8}header button span{display:inline-grid;place-items:center;background:#253957;color:white;border-radius:50%;width:17px;height:17px;margin-left:7px}.app{max-width:1440px;margin:auto;position:relative}.stage{height:min(76vh,790px);min-height:530px;position:relative;isolation:isolate}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.title{position:absolute;top:105px;left:6%;pointer-events:none}.title p:first-child{font-size:9px;letter-spacing:.22em;color:#687b95;margin:0 0 13px}.title h1{font-size:clamp(28px,3.8vw,52px);font-weight:600;letter-spacing:.06em;line-height:1.2;margin:0}.subtitle{font-size:11px;color:#6c7d96;letter-spacing:.08em;margin-top:16px}.stage-info{position:absolute;right:6%;top:112px;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.stage-info>span{font-size:11px;color:#536883;letter-spacing:.16em}.stage-info select{max-width:210px;border:0;background:#fff9;color:#243e64;border-radius:8px;padding:9px;font-size:11px}.view{position:absolute;right:6%;bottom:64px;display:flex;gap:6px}.view button{width:37px;min-height:37px;font-size:16px;border-color:#ffffff90;box-shadow:0 4px 12px #61789510}.mode{position:absolute;bottom:25px;left:6%;font-size:9px;color:#6f819c;letter-spacing:.04em}.goal{position:absolute;bottom:70px;left:6%;display:flex;gap:20px;font-size:10px;letter-spacing:.12em}.goal span:first-child{color:var(--blue);font-weight:700}.controls{position:relative;display:flex;gap:12px;justify-content:center;align-items:center;padding:0 24px;margin-top:-6px}.movement{display:flex;gap:6px}.movement button{width:54px;height:54px;border-radius:15px;font-size:21px;background:#f9fbff;box-shadow:0 5px 16px #485d7a0c}.action{height:54px;padding:0 20px;background:#245bff;color:white;border:0;font-size:12px;font-weight:600;letter-spacing:.05em;box-shadow:0 8px 20px #245bff20}.action:hover{background:#1647dc}.action kbd{font-size:10px;background:#ffffff24;border-radius:4px;padding:4px;margin-left:8px}.status{max-width:760px;margin:20px auto 0;padding:0 24px;display:flex;gap:16px;align-items:center;justify-content:space-between}.status p{font-size:11px;color:#576b87;line-height:1.7;margin:0;min-height:34px}.status>div{display:flex;gap:5px;flex-shrink:0}.status button{min-height:34px;font-size:10px;padding:0 10px;background:transparent;border-color:#bdc9d9}.result{max-width:680px;margin:25px auto;padding:25px;background:var(--blue);color:white;border-radius:20px;box-shadow:0 16px 55px #245bff20;text-align:center}.result>p{font-size:10px;letter-spacing:.2em}.result h2{font-size:24px;font-weight:500}.result div{font-size:12px;margin:15px}.result button{padding:0 25px;border:0}.guide{max-width:720px;margin:30px auto;padding:25px;background:#f8faffc9;border-radius:20px;font-size:12px;line-height:1.9}.guide h2{font-size:17px;font-weight:600}.guide li{margin:10px 0}.guide p{font-size:11px;color:#697a91}.guide label{display:flex;gap:8px;align-items:center}footer{text-align:center;font-size:8px;letter-spacing:.18em;color:#8794a7;padding:27px 15px}[hidden]{display:none!important}@media(max-width:650px){header{padding:17px 18px}.stage{height:68vh;min-height:460px;max-height:620px}.title{left:20px;top:86px}.title p:first-child{font-size:8px;margin-bottom:10px}.title h1{font-size:29px}.subtitle{font-size:10px;margin-top:10px}.stage-info{right:18px;top:180px;gap:7px}.stage-info select{max-width:158px;font-size:10px}.stage-info>span{font-size:9px}.goal{left:20px;bottom:63px;gap:12px;font-size:8px}.view{right:18px;bottom:15px;gap:4px}.view button{min-height:34px;width:34px}.mode{left:20px;bottom:27px;font-size:8px;max-width:150px}.controls{padding:0 12px;gap:8px}.movement{gap:4px}.movement button{width:42px;height:48px;border-radius:12px}.action{padding:0 12px;height:48px;font-size:11px}.action kbd{display:none}.status{padding:0 18px;flex-direction:column;gap:10px;margin-top:17px;text-align:center}.status p{min-height:25px}.result,.guide{margin:24px 15px}.result h2{font-size:21px}footer{padding:20px 8px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Software projection reserves a bounded diorama between HUD and controls. */
@media(max-width:650px){.stage.software{min-height:560px;height:74vh;max-height:680px}}
