:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203c49;background:#e8f1ed;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 15% 0%,#fcf7e8,transparent 55%),#e8f1ed}button,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #3aaad1;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}.header{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1660px;margin:auto;padding:18px 32px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#173c4d}.brand svg{width:49px;height:49px}.brand strong{display:block;font-size:24px;letter-spacing:-.7px}.brand small{display:block;font-size:12px;color:#69818a;margin-top:2px}.header-tools{display:flex;align-items:center;gap:9px}.header select,.small-button{background:#fffdf5;border:1px solid #d4dfd9;border-radius:12px;padding:10px 12px;color:#2e525e;font-size:14px;box-shadow:0 3px 0 #d2ded6}.local-pill{font-size:12px;color:#698078;margin-right:12px}.layout{max-width:1660px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;padding:4px 32px 24px}.arena-panel{background:#fffdf7;border:1px solid #d3ded4;border-radius:24px;box-shadow:0 8px 0 #cad9ce,0 20px 40px #38544a0a;overflow:hidden;min-width:0}.arena-header{display:flex;align-items:center;justify-content:space-between;padding:20px 26px 16px;gap:15px}.eyebrow{color:#719080;font-size:11px;font-weight:800;letter-spacing:1.8px}h1{font-size:28px;letter-spacing:-1px;line-height:1.2;margin:5px 0 0}h2{font-size:23px;letter-spacing:-.5px;line-height:1.2;margin:9px 0 12px}p{font-size:14px;line-height:1.65;margin:0;color:#68818a}.objective{display:flex;align-items:center;gap:16px;background:#edf4eb;padding:10px 18px;border-radius:14px;font-size:12px;font-weight:700}.objective strong{font-size:24px;color:#243e42;white-space:nowrap}.muted{color:#8da392;font-size:17px}.arena{position:relative;height:clamp(480px,calc(100dvh - 220px),850px);min-height:480px;isolation:isolate;overflow:hidden;background:#afd9d3}canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.view-tools{position:absolute;left:18px;bottom:18px;display:flex;align-items:center;gap:3px;box-shadow:0 3px 0 #85aea5;border-radius:12px;overflow:hidden}.view-tools button{border:0;background:#fffdf4ed;color:#2b525a;padding:10px 13px;font-size:17px;font-weight:700}.view-tools #zoomFit{font-size:12px}.arena-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 25px;color:#77908d;font-size:11px}.legend{display:flex;gap:7px;align-items:center;white-space:nowrap}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.blue{background:#2794df}.red{background:#ef6d4b}.legend .red{margin-left:10px}.sidebar{display:flex;flex-direction:column;gap:16px}.card{padding:23px;background:#fffdf5;border:1px solid #d6dfd5;border-radius:20px;box-shadow:0 5px 0 #d2dfd3}.stats{display:flex;justify-content:space-between;border-top:1px solid #e4e9dc;border-bottom:1px solid #e4e9dc;padding:16px 0;margin:20px 0}.stats div{display:flex;flex-direction:column;gap:6px}.stats span{color:#8b9e92;font-size:11px}.stats strong{font-size:23px}.stats strong.good{font-size:19px;color:#3b9472}.primary{display:block;width:100%;border:2px solid #dc9422;background:linear-gradient(#ffdc72,#ffc443);color:#66421a;text-shadow:0 1px #ffe9a4;font-size:17px;font-weight:850;border-radius:14px;padding:13px 16px;box-shadow:0 5px 0 #bd7f23,inset 0 2px 0 #fff5b1;transition:transform .1s,box-shadow .1s}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #bd7f23}.secondary{border:0;background:transparent;color:#638693;padding:15px 10px 4px;text-decoration:underline;text-underline-offset:4px}.key-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.key-grid div{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#eef3e9;border-radius:9px}.key-grid b{font-size:24px;color:#47867a}kbd{font:600 12px ui-monospace,SFMono-Regular,monospace;color:#3e6067;white-space:nowrap}.key-line{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:12px;color:#6e8586}.key-line kbd{border:1px solid #cfddcf;border-bottom-width:3px;padding:5px 7px;background:#f7f9f0;border-radius:7px}.small{font-size:12px}.toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:650;margin:18px 0}.toggle input{width:18px;height:18px;accent-color:#3a9c84}.loading,.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#eaf3e9f5;z-index:8;text-align:center;padding:24px}.loader{width:40px;height:40px;border:5px solid #cfdfd0;border-top-color:#dbac37;border-radius:50%;animation:spin 1s linear infinite}.overlay{background:#24423670;backdrop-filter:blur(5px)}.dialog{background:#fffdf4;border:3px solid #fff6d8;box-shadow:0 8px 0 #536d52,0 25px 90px #19272b40;width:min(400px,100%);border-radius:25px;padding:30px}.dialog h2{font-size:31px}.dialog p{margin:12px 0 22px}.dialog .eyebrow{color:#aa852b}.notice{position:absolute;left:50%;top:18px;transform:translateX(-50%);padding:10px 18px;background:#fff9eaf0;border-radius:30px;box-shadow:0 4px 0 #8cae9a60;white-space:nowrap;font-size:13px;font-weight:700;pointer-events:none;opacity:0;transition:opacity .15s}.notice.show{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.touch-controls{display:none}button,input,select{-webkit-tap-highlight-color:transparent}.touch-pad{display:grid;grid-template-columns:48px 48px;gap:6px}.touch-pad button,.touch-fire{background:#fff8de;border:2px solid #81a59b;border-radius:13px;color:#2f6d67;font-size:26px;font-weight:800;min-height:48px;box-shadow:0 4px 0 #739188;touch-action:none}.touch-fire{font-size:15px;background:#ffca53;color:#745021;border-color:#d59b39;width:100px;height:100px;box-shadow:0 4px 0 #b77a28;border-radius:50%}.touch-controls{justify-content:space-between;padding:0 12px;gap:20px}.touch-pad button:active,.touch-fire:active{transform:translateY(2px);box-shadow:none}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1700px){.arena{height:850px}}@media(max-width:1150px){.layout{grid-template-columns:minmax(0,1fr) 260px;padding:4px 18px 22px;gap:15px}.header{padding:16px 20px}.card{padding:18px}.local-pill{display:none}h1{font-size:25px}.objective{gap:8px;padding:8px 10px}.arena-footer{padding:15px}.arena-footer #cameraHint{max-width:220px;text-align:right}}@media(max-width:800px){.layout{grid-template-columns:1fr;gap:16px;padding:0 12px 24px}.header{padding:14px 16px}.brand strong{font-size:19px}.brand svg{width:39px;height:39px}.header-tools{gap:6px}.small-button,.header select{font-size:12px;padding:9px}.header #sound{display:none}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optics{grid-column:1/-1}.arena{height:62dvh;min-height:420px}.arena-header{padding:16px}.arena-footer{padding:12px}.arena-footer #cameraHint{display:none}.touch-controls{display:flex;grid-row:2}.sidebar{grid-row:3}.arena-header h1{font-size:22px}.objective>span:first-child{display:none}}@media(max-width:480px){.brand small{font-size:10px}.brand strong{font-size:17px}.header{gap:7px;padding:12px}.header select{max-width:92px}.header-tools{gap:5px}.header .small-button{padding:9px 7px}.sidebar{grid-template-columns:1fr}.optics{grid-column:auto}.controls{display:none}.arena{height:54dvh;min-height:370px}.arena-header h1{font-size:20px}.objective strong{font-size:20px}.arena-header{padding:14px}.arena-panel{border-radius:18px}.view-tools{bottom:12px;left:12px}.view-tools button{padding:8px 11px}.arena-footer{font-size:10px}.touch-controls{padding:0 15px}.brand svg{width:33px;height:33px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}

/* Classic top-down directional pad. */
.touch-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:5px}.touch-pad button{min-height:44px;padding:0}.touch-pad [data-dir="3"]{grid-column:2;grid-row:1}.touch-pad [data-dir="2"]{grid-column:1;grid-row:2}.touch-pad [data-dir="0"]{grid-column:3;grid-row:2}.touch-pad [data-dir="1"]{grid-column:2;grid-row:3}
