*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:radial-gradient(ellipse at 50% -30%,#24334d,#080f1e 62%);color:#eff1f0;font:16px/1.4 system-ui,sans-serif}main{max-width:860px;margin:auto;padding:0 clamp(4px,3vw,24px) 10px}button,select,a{font:inherit;color:inherit;touch-action:manipulation}button{cursor:pointer;background:#1b293d;border:1px solid #4b677b;border-radius:5px;font-weight:680;padding:.48rem .75rem}button:disabled{opacity:.46;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ffc87e;outline-offset:2px}header,.bar,.buttons,.controls,.options{display:flex;align-items:center}header{height:46px;gap:12px;justify-content:space-between;font-size:.78rem}header b,.bar span,.order small,.card small,.status{font-family:ui-monospace,monospace}header b,.order small,.bar span,.card small{letter-spacing:.11em}header a,.editions a{color:#c0d9de}header button{min-height:34px}.console{background:#0f1a2a;border:1px solid #3d5269;box-shadow:0 6px 28px #05080d79}.bar{justify-content:space-between;gap:4px;padding:7px clamp(8px,2.8vw,25px);border-bottom:1px solid #4e6579}.bar span,.bar strong{display:block}.bar span,.order small,.card small{font-size:clamp(.55rem,1.5vw,.69rem);font-weight:700;color:#a9c2d0}.bar strong{line-height:1.3;font-size:clamp(.78rem,2.5vw,1.02rem)}.arena{position:relative;width:100%;max-height:62svh;aspect-ratio:640 / 508;background:#10172b url(starfield.webp) center/cover;overflow:hidden}.arena canvas{height:100%;width:100%;display:block;touch-action:none}.order{position:absolute;top:8px;left:10px;color:#fff4d9;pointer-events:none;background:#0b1521ed;border:1px solid #64818b;border-radius:4px;padding:4px 10px}.order small,.order b{display:block}.order small{font-size:.51rem}.order b{font:bold clamp(20px,3vw,31px)/1.05 ui-monospace,monospace}.overlay{position:absolute;inset:0;display:grid;align-content:center;padding:clamp(13px,4vw,38px);background:linear-gradient(90deg,#121c30f5,#101d2de8 46%,#11182e36),url(cover.webp) right center/cover}.overlay.plain{background:linear-gradient(90deg,#0d182bf7,#0d172be8 67%,#0c122e94)}.card{max-width:29rem}.card h1{font:650 clamp(41px,7vw,79px)/.94 system-ui,sans-serif;letter-spacing:-.068em;margin:.1em 0}.card em{color:#ffb77c;font-style:normal}.card p{font-size:clamp(.77rem,2vw,1rem);max-width:43ch;margin:.6em 0}.options,.buttons{flex-wrap:wrap;gap:7px;margin:.67rem 0}.options label{font-size:.73rem;white-space:nowrap;color:#bfd0d9}.options select{font-size:.76rem;max-width:180px;min-height:31px;background:#152438;border:1px solid #5e7383;border-radius:4px}.main-action{background:#ffbd80;color:#201d22;border-color:#ffca92}.editions{font-size:.72rem}.targets,.controls{display:flex;gap:6px;justify-content:center;padding:6px}.targets{border-top:1px solid #43596c}.targets button{flex:1;padding:.25rem;line-height:1.15;min-height:39px;font:700 clamp(1rem,3.6vw,1.35rem) ui-monospace,monospace;border-color:#618594}.targets button span{font-size:.58rem;color:#a9bbc4;padding-right:5px}.targets button.active{border-color:#ffc778;background:#35414c}.controls{padding-top:0}.controls button{flex:1;min-height:40px;font-size:.84rem;touch-action:none}.controls button.held{background:#4d6680}.status{text-align:center;font-size:.72rem;color:#b1c4cc;margin:.48rem auto 0;max-width:70ch}.array-box{display:inline-grid;gap:3px;padding:8px;border:1px solid #476b7c;background:#142735}.array-box i{width:clamp(5px,1.6vw,9px);height:clamp(5px,1.6vw,9px);border-radius:50%;background:#93e1df}.array-box i.tint{background:#ffbf78}[hidden]{display:none!important}@media(max-width:570px){main{padding:0 3px 8px}header{height:39px}header b{font-size:.64rem}.arena{max-height:none;min-height:310px}.order{left:5px;top:4px;padding:3px 5px}.overlay{padding:12px}.card{max-width:100%}.card h1{font-size:clamp(37px,10vw,56px)}.options{gap:5px;margin:6px 0}.bar{min-height:44px}.controls,.targets{gap:3px;padding:4px}.controls{padding-top:0}.controls button{padding:4px;min-height:43px}.targets button{min-height:43px}.status{padding:0 6px}}@media(max-height:520px) and (orientation:landscape){main{max-width:750px}header{height:28px}.bar{padding:2px 14px}.arena{max-height:58svh}.overlay{padding:7px 17px}.card h1{font-size:32px}.card p,.card small{font-size:.7rem}.buttons,.options{margin:3px 0}.options select{min-height:23px}.main-action{padding:3px 13px}.editions{font-size:.66rem}.controls button,.targets button{min-height:27px;padding:2px}.controls,.targets{padding:2px}.status{font-size:.61rem}}
