:root{color-scheme:dark;--ink:#f6efd8;--muted:#b7c9bd;--gold:#f5cc78;--line:#7f9d8c66;--deep:#102f37;--panel:#1d4247;--human:#c5e8ac;--rival:#ffb58d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--deep);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{min-height:44px;border:1px solid #809c8a88;border-radius:9px;padding:10px 15px;color:var(--ink);background:#2b5053;font-weight:650;cursor:pointer;line-height:1.2}button:hover:not(:disabled){background:#365f5d;border-color:#bdc9a0}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffe5a7;outline-offset:3px}button[aria-pressed=true]{border-color:#f7d78a;background:#526951}a{color:var(--gold)}.hidden,[hidden]{display:none!important}input[type=range]{width:100%;accent-color:var(--gold);height:32px;margin:0;cursor:pointer;touch-action:pan-y}input[type=checkbox]{width:25px;height:25px;accent-color:var(--gold);flex:0 0 25px}select{display:block;width:100%;min-height:46px;border:1px solid #86a59488;border-radius:7px;padding:9px 30px 9px 11px;background:#17373e;color:var(--ink);font-size:14px}label{font-size:13px;font-weight:650;line-height:1.4}label>select{margin-top:7px}.gold-button{color:#253c39;background:linear-gradient(150deg,#ffe1a0,#edbc64);border-color:#ffe9b5;box-shadow:0 3px 0 #967640}.gold-button:hover:not(:disabled){background:#ffe2a2;border-color:#fff2c5}.secondary-button{background:#204148bb;border-color:#bcc4a588}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em;color:var(--gold);margin:0 0 14px}.icon-button{padding:0;width:44px;min-width:44px;font-size:28px;background:transparent;border-color:transparent}.arcade-return{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;font-size:12px;text-decoration:none;border:1px solid var(--line);border-radius:9px}.storage-notice{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:8;width:min(600px,calc(100% - 24px));padding:12px 16px;background:#693f27;border:1px solid #e4b07b;border-radius:10px;font-size:12px;box-shadow:0 4px 25px #0005}.notice{padding:15px;background:#693f27;border:1px solid #d3a177;border-radius:9px;font-size:13px}.home-screen{min-height:100svh;background:radial-gradient(ellipse at 75% 40%,#55837655 0,transparent 55%),linear-gradient(130deg,#11313a,#20494b 75%,#31544c);padding:0 max(24px,calc((100vw - 1320px)/2));overflow:hidden}.home-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:max(28px,env(safe-area-inset-top));position:relative;z-index:1}.wordmark{font-size:26px;letter-spacing:.12em;font-weight:900;color:var(--ink);text-decoration:none}.wordmark span{display:block;font-size:8px;letter-spacing:.42em;color:var(--gold);margin-top:3px}.home-header nav{display:flex;gap:10px}.home-header nav button{background:transparent;font-size:12px;border-color:var(--line)}.home-hero{display:grid;grid-template-columns:1fr 1.15fr;gap:20px;align-items:center;min-height:580px;padding:45px 0 32px}.home-copy{position:relative;z-index:1}.home-copy h1{font:500 clamp(54px,6.2vw,88px)/1.01 Georgia,"Times New Roman",serif;letter-spacing:-.045em;margin:0 0 24px;text-shadow:0 4px 20px #0b2c3355}.home-description{font-size:17px;color:#d4dfcd;max-width:385px;line-height:1.65;margin:0 0 30px}.home-actions{display:flex;gap:12px;align-items:center}.home-actions button{min-height:56px;font-size:16px;padding:15px 23px;display:flex;align-items:center;gap:30px}.home-actions .secondary-button{font-size:13px;gap:15px}.home-footnote{color:#a9c0b2;font-size:11px;line-height:1.6;margin:22px 0 0;max-width:390px}.home-art{position:relative;height:455px;isolation:isolate}.hero-orbit{position:absolute;border:1px solid #d3dba536;border-radius:50%;width:460px;height:460px;left:7%;top:-15px}.orbit-two{width:330px;height:330px;top:45px;left:18%;border-style:dashed;opacity:.6}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;width:6px;height:6px;background:var(--gold);border-radius:50%;top:7%;left:24%;box-shadow:0 0 14px #f5d178aa}.hero-orbit:after{top:86%;left:81%}.hero-land{position:absolute;left:-10%;right:-10%;bottom:5%;height:250px;border-radius:50% 35% 48% 20%;background:linear-gradient(165deg,#81a276 0 9%,#bba46e 9% 20%,#8c7859 20% 40%,#4d6355 40% 51%,#233e3c 51%);transform:rotate(-5deg);box-shadow:0 -4px 0 #a2bc83,0 14px 40px #092a3255;clip-path:polygon(2% 34%,14% 12%,38% 5%,52% 20%,64% 0,84% 12%,98% 26%,92% 79%,74% 94%,64% 58%,49% 66%,44% 100%,15% 81%)}#hero-crew{position:absolute;width:74%;height:200px;top:-60px;left:11%;transform:rotate(5deg);display:flex;align-items:center;justify-content:center;gap:5px}#hero-crew svg{width:33%;height:160px;filter:drop-shadow(0 9px 4px #17393188)}.hero-trail{position:absolute;top:58px;left:5%;width:73%;height:145px;border-top:3px dashed #e9d597aa;transform:rotate(-20deg);border-radius:50%}.hero-impact{position:absolute;right:12%;top:55px;color:#ffe29d;font-size:70px;transform:rotate(20deg);text-shadow:0 0 40px #eecb7155}.map-stamp{position:absolute;right:0;bottom:8px;font-size:10px;letter-spacing:.2em;color:#d7dfbf;border-left:2px solid var(--gold);padding:7px 12px;transform:rotate(-5deg);line-height:1.7}.map-stamp b{font-size:9px;color:#92b3a0;font-weight:500}.home-promises{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding:18px 0 30px;gap:30px}.home-promises p{margin:0;padding:10px 0}.home-promises b{display:block;font:500 22px/1.2 Georgia,serif;margin-bottom:8px}.home-promises span{color:var(--muted);font-size:12px;line-height:1.5}
/* The field receives all remaining height; command controls may scroll on very short screens. */
.game-shell{height:100svh;display:grid;grid-template-rows:minmax(260px,1fr) auto;overflow:hidden}.battlefield{position:relative;min-height:0;overflow:hidden;background:#649998}.battlefield canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}.masthead{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(14px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));gap:12px;pointer-events:none}.brand{color:#173b42;font-size:20px;font-weight:950;letter-spacing:.1em;text-shadow:0 1px #fff6}.brand small{display:block;font-size:8px;letter-spacing:.12em;margin-top:4px}.top-actions{display:flex;gap:6px;pointer-events:auto}.top-actions button{font-size:11px;background:#143941dd;backdrop-filter:blur(6px);padding:8px 12px}.top-actions #help{width:44px;padding:0;font-size:19px}.scoreboard{position:absolute;top:15px;left:50%;transform:translateX(-50%);display:flex;align-items:start;gap:14px;width:470px;pointer-events:none}.combatant{min-width:0;flex:1;border:1px solid #abc69b88;border-radius:9px;padding:9px 11px;background:#173f47eb;color:var(--human);box-shadow:0 3px 10px #143d4222}.combatant.active{border-color:#ffedb0;box-shadow:0 0 0 1px #ffe6a333}.combatant.rival{color:var(--rival)}.combatant>div:first-child{display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center}.combatant span{font-size:8px;letter-spacing:.12em}.combatant b{font-size:13px;grid-column:1;white-space:nowrap}.combatant strong{font-size:22px;grid-column:2;grid-row:1/3;line-height:1.1}.hp-track{height:5px;background:#082730;margin-top:8px;border-radius:4px;overflow:hidden}.hp-track i{display:block;width:100%;height:100%;background:currentColor;transition:width .25s}.tank-status{display:block;font-size:9px;line-height:1.35;margin-top:6px;color:#f7dba3;min-height:12px}.tank-status:empty{display:none}.wind{text-align:center;min-width:56px;background:#e9e8cbd9;color:#23454b;padding:5px 7px;border-radius:0 0 10px 10px;margin-top:-15px;box-shadow:0 3px 10px #173c4222}.wind span{font-size:8px;letter-spacing:.12em;display:block}.wind strong{font-size:26px;line-height:1.15;display:block}.wind small{font-size:8px;display:block;white-space:nowrap}.camera-controls{position:absolute;bottom:48px;right:16px;display:flex;gap:7px}.camera-controls button{min-height:44px;background:#173c46df;backdrop-filter:blur(5px);font-size:11px;padding:7px 12px}.field-caption{position:absolute;left:0;right:0;bottom:0;display:flex;gap:15px;align-items:center;padding:12px 20px;background:linear-gradient(transparent,#173c46d9);color:#fff1cd}.field-caption span{font-size:9px;letter-spacing:.1em;white-space:nowrap}.field-caption strong{font-size:13px;font-weight:600;line-height:1.4}.error{position:absolute;z-index:4;left:15px;right:15px;top:110px;padding:13px;background:#793d2fed;border:1px solid #ffd3a7;border-radius:8px;font-size:13px}
.command-deck{position:relative;padding:10px max(22px,calc((100vw - 1350px)/2)) max(10px,env(safe-area-inset-bottom));border-top:2px solid #d6b777;background:linear-gradient(120deg,#183c43,#254a4c 70%,#193b42);max-height:58svh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.deck-top{display:flex;align-items:center;gap:15px;font-size:10px;padding-bottom:9px;line-height:1.35}.active-label{display:flex;align-items:center;gap:7px;color:var(--human);letter-spacing:.055em;font-size:10px;white-space:nowrap}.active-label i{width:7px;height:7px;border-radius:50%}#initiative{color:var(--gold);font-weight:750;white-space:nowrap}#next-turn{margin-left:auto;color:#d7e1ca;font-size:11px}.command-main{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:28px;align-items:center}.weapon-zone{min-width:0}.weapons{display:flex;gap:7px}.weapon{display:flex;flex:1;min-width:0;gap:8px;text-align:left;align-items:center;padding:8px 9px;min-height:53px;background:#24484a}.weapon[aria-pressed=true]{border-color:#f8d389;background:#496b57;box-shadow:inset 3px 0 #efd184}.weapon-icon{width:28px;flex:0 0 28px;color:#ffdea1}.weapon-icon svg{display:block;width:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.weapon strong{display:block;font-size:12px}.weapon small{display:block;margin-top:4px;font-size:9px;font-weight:500;color:#c7d7c3}.weapon-key{font-size:9px;color:#b2c9b4;margin-left:auto}.weapon:disabled small{color:#d7d0ac}#weapon-note{margin:6px 0 0;color:#d3dfcc;font-size:11px;line-height:1.45;min-height:16px}.aim-zone label{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.1em}.aim-zone output{font-size:22px;color:var(--gold);letter-spacing:-.04em}.angle-controls{display:flex;align-items:center;gap:8px}.angle-controls button{width:44px;min-width:44px;min-height:44px;padding:0;font-size:21px}.aim-zone small{font-size:9px;color:var(--muted)}.move-heading{display:flex;justify-content:space-between;gap:6px;color:#c8d8c4;font-size:9px;min-height:24px;align-items:center}.move-heading output{font-size:10px;color:var(--gold);white-space:nowrap}.move-controls{display:flex;gap:5px}.move-controls button{min-width:44px;flex:1;min-height:44px;font-size:20px;padding:6px;touch-action:none;user-select:none;-webkit-user-select:none}.move-controls #face{flex:2;font-size:11px;white-space:nowrap}.move-zone>input{height:15px}.resource-row{display:flex;align-items:center;gap:20px;border-top:1px solid #7c998355;margin-top:7px;padding-top:6px}.special-charge{min-width:195px;display:grid;grid-template-columns:100px 1fr;gap:3px 10px;align-items:center}.special-charge>span{font-size:9px;letter-spacing:.07em}.special-charge b{color:var(--gold);margin-left:7px;font-size:11px}.special-charge meter{width:100%;height:12px;accent-color:var(--gold)}.special-charge small{grid-column:1/-1;color:var(--muted);font-size:9px}.supply-zone{display:grid;grid-template-columns:130px minmax(145px,220px);gap:0 10px;align-items:center;flex:1}.supply-zone label{font-size:9px;letter-spacing:.07em}.supply-zone label b{color:var(--gold);margin-left:8px;font-size:10px}.supply-zone select{min-height:40px;font-size:11px;padding:6px 26px 6px 9px}.supply-zone small{font-size:9px;color:var(--muted);line-height:1.35}.evolution-tray{display:flex;gap:10px;align-items:center;max-width:365px}.evolution-tray button{display:grid;grid-template-columns:1fr auto;gap:4px 8px;min-width:163px;text-align:left;min-height:46px;padding:7px 10px}.evolution-tray strong{font-size:10px}.evolution-tray small{font-size:9px;color:var(--gold)}.evolution-tray meter{grid-column:1/-1;width:100%;height:5px;accent-color:var(--gold)}.evolution-tray p{font-size:9px;line-height:1.4;color:var(--muted);margin:0}.evolution-tray.selected button{background:#776339;border-color:#ffe5ab}.charge-row{display:flex;align-items:center;gap:10px;margin-top:8px}.power-zone{flex:1;min-width:0;position:relative;display:grid;grid-template-columns:60px 1fr;gap:0 8px;align-items:center}.power-label{display:flex;flex-direction:column;font-size:9px;color:#cbdac8;letter-spacing:.06em}.power-label output{color:var(--gold);font-size:21px;font-weight:800;letter-spacing:-.02em}.power-zone>input{grid-column:2;grid-row:1;height:35px}.power-gauge{grid-column:2;grid-row:2;height:4px;position:relative;background:#0c2a33;border-radius:4px;overflow:hidden;margin:0 7px}.power-gauge>i{display:block;height:100%;width:72%;background:linear-gradient(90deg,#9fd3b0,#f4c578)}.previous-power{position:absolute;top:0;bottom:0;width:3px;background:#fff7cd;box-shadow:0 0 3px #143c42}.power-zone>small{grid-column:2;font-size:9px;color:var(--muted);margin-top:4px;line-height:1.35}.set-fire-button{min-height:55px;min-width:140px;background:#376654;border:1px solid #a3c494;font-size:17px;color:#eaf4ce;line-height:1.25}.set-fire-button span{display:block;font-size:10px;font-weight:500}.fire-button{min-height:55px;min-width:125px;border:1px solid #ffe8b3;color:#2d443e;background:linear-gradient(#ffe3a1,#e3b461);box-shadow:0 3px 0 #97703b;touch-action:none;user-select:none;-webkit-user-select:none;padding:8px 12px}.fire-button span{display:block;font-size:16px;font-weight:950;letter-spacing:.08em}.fire-button small{display:block;font-size:9px;margin-top:3px}.fire-button.charging{background:#fff0b6;box-shadow:0 0 24px #edc67466;border-color:#fff4cf}.cancel-button{min-height:55px;min-width:44px;padding:0;font-size:25px}.shot-log{display:flex;gap:16px;margin-top:9px;border-top:1px solid #5f817455;padding-top:7px}.shot-log>p,.shot-log>.rival-shot-log{margin:0;flex:1;font-size:10px;line-height:1.4;display:flex;gap:8px;min-width:0}.shot-log b{color:var(--human);font-size:9px;white-space:nowrap}.shot-log .rival-shot-log>b{color:var(--rival)}.shot-log span{color:#c4d3bd}.deck-bottom{display:flex;align-items:center;gap:10px;margin-top:3px}.deck-bottom p{margin:0;flex:1;font-size:9px;line-height:1.3;color:var(--muted);max-height:0;overflow:hidden}.deck-bottom button{min-height:44px;font-size:11px}.mode-note{font-size:9px;color:#acc5b3;margin-left:auto}body[data-phase=charging] .power-label output{color:#fff5c9}body[data-phase=watching] .command-deck{border-top-color:#8da99b}
/* Setup is a finite three-step journey, with visible preview and native fallback selection. */
dialog{color:var(--ink);background:linear-gradient(145deg,#20464b,#173a41);border:1px solid #d4b575;border-radius:15px;padding:26px;width:min(650px,calc(100% - 28px));max-height:calc(100svh - 30px);overflow:auto;box-shadow:0 18px 80px #021b28aa;overscroll-behavior:contain}dialog::backdrop{background:#092a35cc;backdrop-filter:blur(7px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-heading .eyebrow{font-size:9px;margin-bottom:7px}h2{font:500 35px/1.1 Georgia,serif;margin:0;letter-spacing:-.035em}h3{font-weight:700}dialog p{font-size:13px;line-height:1.65;color:#d3dfca}dialog p b{color:#f7d690}.setup-dialog{width:min(930px,calc(100% - 30px));padding:24px 28px}.setup-dialog form{display:flex;flex-direction:column;min-height:0}.setup-steps{list-style:none;padding:0;margin:0 0 18px;display:flex;gap:10px}.setup-steps li{flex:1;padding:10px 5px;font-size:11px;border-bottom:2px solid #668d7855;color:#94b4a0}.setup-steps li.current{color:var(--gold);border-color:var(--gold);font-weight:800}.setup-steps li.done{color:#c6dcbc;border-color:#89aa87}.step-intro{margin:0 0 14px!important;font-size:13px}.crew-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.crew-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:12px;text-align:left;position:relative;background:#183b41;overflow:hidden;min-height:280px}.crew-card[aria-pressed=true]{background:linear-gradient(160deg,#49694c,#23494a);border-color:#ffe1a0;box-shadow:inset 0 0 0 1px #ffe1a04a}.crew-card svg{width:100%;height:114px;filter:drop-shadow(0 7px 3px #092f3688);overflow:visible}.crew-card strong{font-size:16px;margin:7px 0 4px;color:#f8e9c1}.crew-card .crew-role{font-size:10px;color:#edcd83;font-weight:600;margin-bottom:10px}.crew-card p{font-size:11px;line-height:1.5;margin:0 0 10px;color:#d2dfc9;flex:1}.crew-card .crew-stats{font-size:9px;font-weight:500;color:#a9c4ae;border-top:1px solid #78997744;width:100%;padding-top:8px}.crew-check{position:absolute;top:9px;right:9px;font-size:12px;color:var(--gold);opacity:0}.crew-card[aria-pressed=true] .crew-check{opacity:1}.quick-select{display:flex;align-items:center;gap:12px;margin-top:15px;color:#d3dfc9;font-size:11px}.quick-select select{margin:0;min-height:44px;max-width:300px;font-size:12px}.selection-note{font-size:11px!important;line-height:1.5!important;color:#bfd2bc!important;margin:7px 0 0}.map-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.map-card{position:relative;display:block;padding:0;overflow:hidden;background:#173b41;text-align:left;border-color:#728d7866;min-width:0}.map-card img{width:100%;height:75px;object-fit:cover;display:block;opacity:.82}.map-card span{display:block;padding:8px 8px 9px;font-size:10px;line-height:1.3}.map-card b{display:block;font-size:8px;letter-spacing:.05em;color:#dece9c;font-weight:550;margin-top:4px}.map-card[aria-pressed=true]{border-color:#ffe09d;box-shadow:0 0 0 1px #ffe09d}.map-card[aria-pressed=true] img{opacity:1}.map-preview{display:grid;grid-template-columns:175px 1fr;gap:17px;margin-top:12px;padding:12px;background:#103139aa;border:1px solid #73957955;border-radius:10px}.map-preview>img{width:100%;height:130px;object-fit:cover;border-radius:6px}.map-preview small{font-size:8px;letter-spacing:.13em;color:var(--gold)}.map-preview h3{margin:5px 0 6px;font-size:20px}.map-preview p{font-size:11px;line-height:1.5;margin:3px 0}#map-tactic{color:#f4d69b}.setup-footer{display:flex;justify-content:space-between;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #73907966}.setup-footer>button{min-width:150px}.setup-opponent-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:26px}.setup-opponent-grid label{font-size:12px}.setup-opponent-grid p{font-size:12px;line-height:1.6}.setup-opponent-grid #rival-portrait{display:block;height:130px;background:radial-gradient(ellipse at 50% 80%,#78997433,transparent 70%)}#rival-portrait svg{display:block;width:100%;height:130px}.evolution-setting{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #78977a66;background:#2e504133;border-radius:8px;margin-top:20px}.evolution-setting input{margin:0}.evolution-setting b{font-size:12px;color:#f0d59b}.evolution-setting small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#bdceb8;margin-top:3px}.setup-summary{display:flex;align-items:center;gap:10px;justify-content:center;background:#17363dc9;border-radius:8px;font-size:12px;color:var(--gold);padding:12px;margin-top:15px}.fair-play{font-size:10px!important;line-height:1.5!important;color:#a7c0aa!important;margin-bottom:0}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}.guide-grid h3{font:500 22px Georgia,serif;margin:5px 0 7px}.guide-grid p{margin:0;font-size:12px;line-height:1.6}.guide-number{font-size:10px;color:var(--gold);border:1px solid #d6bf8055;border-radius:50%;display:inline-grid;place-items:center;width:30px;height:30px}.guide-supplies{padding:13px 16px;border:1px solid #79967b66;border-radius:8px;margin-top:22px;background:#25483f88}.guide-supplies h3{font-size:14px;margin:0 0 6px}.guide-supplies p{font-size:12px;margin:0}.guide-controls{font-size:11px!important;color:#b4c9b4!important;margin:17px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 0;border-bottom:1px solid var(--line)}.setting-row b{display:block;font-size:15px}.setting-row small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px;line-height:1.5}.setting-row input{margin:0}.setting-row select{width:145px;flex-shrink:0;margin:0;font-size:12px}.setting-note{font-size:11px}.pause-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pause-actions button:first-child{grid-column:1/-1}.pause-actions button:last-child{background:transparent}.result-dialog{text-align:center;width:min(510px,calc(100% - 26px));padding:34px 28px}.result-dialog .eyebrow{margin-bottom:16px}.result-dialog h2{font-size:42px}.result-dialog>p:not(.eyebrow){font-size:13px}.result-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:24px 0}.result-stats p{margin:0;padding:13px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px}.result-stats strong{display:block;font-size:25px;color:var(--gold);font-weight:700;margin-bottom:4px}.result-actions{display:grid;gap:10px;grid-template-columns:1fr 1fr}.result-actions button:first-child{grid-column:1/-1;min-height:52px}.result-actions button{font-size:13px}.practice-tools{display:flex;gap:6px;margin-left:auto}.practice-tools button{font-size:10px;min-height:44px}
@media(min-width:1500px){.home-hero{min-height:650px}.home-art{height:500px}.hero-land{bottom:5%}.hero-orbit{width:510px;height:510px}.orbit-two{width:380px;height:380px}.command-main{gap:35px}.command-deck{padding-top:13px;padding-bottom:14px}.shot-log{padding-top:10px;margin-top:12px}}
@media(max-width:1150px){.scoreboard{top:65px;width:440px}.command-main{grid-template-columns:1.2fr 1fr .85fr;gap:18px}.weapon{gap:5px;padding:8px 7px}.weapon-icon{width:22px;flex-basis:22px}.weapon-key{display:none}.resource-row{gap:15px}.special-charge{min-width:165px}.supply-zone{grid-template-columns:115px minmax(130px,1fr)}.evolution-tray{max-width:280px}.evolution-tray p{display:none}.home-hero{grid-template-columns:1fr 1fr}.home-copy h1{font-size:67px}.home-actions{flex-wrap:wrap;gap:10px}.home-art{transform:scale(.9);transform-origin:center}.hero-orbit{left:0}.orbit-two{left:15%}.crew-card{padding:10px}.crew-card strong{font-size:15px}.crew-card p{font-size:10px}}
@media(max-width:760px){.home-screen{padding:0 22px}.home-header{padding-top:max(22px,env(safe-area-inset-top));align-items:center}.wordmark{font-size:20px}.home-header nav{gap:5px}.home-header nav button{font-size:10px;padding:7px 9px}.home-header .arcade-return{display:none}.home-hero{min-height:0;padding:40px 0 12px;grid-template-columns:1fr;gap:0}.home-copy h1{font-size:66px;margin-bottom:18px}.home-description{font-size:15px;max-width:340px;margin-bottom:22px;line-height:1.55}.home-actions{flex-wrap:nowrap}.home-actions button{font-size:14px;min-height:54px;gap:18px;padding:14px 19px}.home-actions .secondary-button{font-size:11px;gap:8px}.home-footnote{margin-top:17px;font-size:10px}.home-art{height:290px;transform:scale(.8);margin-top:-5px;transform-origin:center center}.hero-orbit{width:360px;height:360px;left:calc(50% - 180px);top:-40px}.orbit-two{width:260px;height:260px;left:calc(50% - 130px);top:10px}.hero-land{height:210px;bottom:-5%;left:-5%;right:-5%}.hero-trail{top:10px;height:120px}.hero-impact{top:7px;font-size:55px}.map-stamp{bottom:-20px}.home-promises{gap:15px;padding-top:15px;grid-template-columns:1fr}.home-promises p{padding:0;display:flex;gap:15px;align-items:baseline}.home-promises b{min-width:145px;font-size:17px;line-height:1.35;margin:0}.home-promises span{font-size:11px}.game-shell{grid-template-rows:minmax(230px,1fr) auto}.masthead{padding:10px 12px 0}.brand{font-size:16px}.brand small{font-size:7px;max-width:150px}.top-actions button{font-size:10px;padding:7px 9px}.top-actions #help{width:40px;min-height:44px}.scoreboard{top:64px;gap:9px;width:calc(100% - 24px);max-width:450px}.combatant{padding:7px 9px}.combatant b{font-size:12px}.combatant strong{font-size:21px}.combatant span{font-size:7px}.wind{min-width:48px;padding:5px 4px;margin-top:0;border-radius:9px}.wind strong{font-size:21px}.wind small{font-size:7px}.wind span{font-size:7px}.hp-track{margin-top:6px}.field-caption{padding:10px 12px;gap:10px}.field-caption span{font-size:8px}.field-caption strong{font-size:11px}.camera-controls{right:10px;bottom:44px;gap:5px}.camera-controls button{font-size:10px;min-height:44px;padding:7px 9px}.command-deck{padding:8px 12px max(8px,env(safe-area-inset-bottom));max-height:58svh}.deck-top{padding-bottom:7px;gap:8px;flex-wrap:wrap}.active-label{font-size:9px;letter-spacing:.02em}#initiative{font-size:9px;margin-left:auto}#next-turn{font-size:10px;width:100%;margin-left:0}.command-main{grid-template-columns:1fr 1fr;gap:8px 16px}.weapon-zone{grid-column:1/-1}.weapon{min-height:50px;padding:7px;gap:6px}.weapon-icon{width:22px;flex-basis:22px}.weapon strong{font-size:11px}.weapon small{font-size:8px;margin-top:3px}.weapon-key{display:none}#weapon-note{font-size:10px;min-height:26px;line-height:1.35;margin-top:4px}.aim-zone label{font-size:8px}.aim-zone output{font-size:20px}.angle-controls{gap:5px}.angle-controls button{width:44px;min-width:44px}.aim-zone small{font-size:8px}.move-heading{min-height:23px;font-size:8px}.move-heading output{font-size:8px}.move-controls #face{font-size:10px}.move-controls button{min-width:44px}.move-zone>input{height:14px}.resource-row{gap:8px 12px;flex-wrap:wrap;padding-top:7px;margin-top:6px;align-items:start}.special-charge{min-width:0;width:37%;grid-template-columns:1fr;gap:2px}.special-charge>span{font-size:8px}.special-charge b{font-size:10px}.special-charge meter{height:8px}.special-charge small{font-size:8px;line-height:1.35;max-width:130px}.supply-zone{flex:1;grid-template-columns:1fr;gap:3px;min-width:0}.supply-zone label{font-size:8px}.supply-zone label b{font-size:9px}.supply-zone select{min-height:44px;font-size:10px}.supply-zone small{font-size:8px}.evolution-tray{max-width:none;width:100%;gap:10px}.evolution-tray button{min-width:176px;min-height:44px}.evolution-tray p{display:block;font-size:8px;max-width:170px}.charge-row{gap:7px;margin-top:7px}.power-zone{grid-template-columns:44px 1fr;gap:0 4px}.power-label{font-size:8px}.power-label output{font-size:17px}.power-zone>input{height:32px}.power-zone>small{font-size:8px;line-height:1.3;margin-top:3px}.set-fire-button{min-width:80px;padding:7px 8px;font-size:16px;min-height:57px}.set-fire-button span{font-size:8px}.fire-button{min-width:81px;padding:7px;font-size:13px;min-height:57px}.fire-button span{font-size:13px}.fire-button small{font-size:8px}.cancel-button{min-width:44px;min-height:57px}.shot-log{gap:9px;margin-top:8px;padding-top:6px}.shot-log p{font-size:9px;line-height:1.4;gap:4px;display:block}.shot-log b{display:block;font-size:8px;margin-bottom:2px}.shot-log span{display:block}.mode-note{font-size:8px}.deck-bottom{margin-top:4px}.error{top:128px;font-size:11px}.setup-dialog{padding:19px 18px;width:calc(100% - 20px);max-height:calc(100svh - 20px)}.dialog-heading{gap:10px;margin-bottom:14px}h2{font-size:30px}.dialog-heading .eyebrow{font-size:8px}.setup-steps{gap:5px;margin-bottom:14px}.setup-steps li{font-size:10px;padding:9px 3px}.step-intro{font-size:12px!important;margin-bottom:12px!important}.crew-cards{grid-template-columns:1fr 1fr;gap:9px}.crew-card{padding:10px;min-height:225px}.crew-card svg{height:80px}.crew-card strong{font-size:14px;margin-top:5px}.crew-card .crew-role{font-size:9px;margin-bottom:7px}.crew-card p{font-size:10px;line-height:1.45;margin-bottom:7px}.crew-card .crew-stats{font-size:8px;padding-top:7px}.quick-select{font-size:10px;gap:10px}.quick-select select{font-size:11px;max-width:none;flex:1}.selection-note{font-size:10px!important}.map-cards{grid-template-columns:repeat(2,1fr);gap:9px}.map-card{display:grid;grid-template-columns:65px 1fr;align-items:center;min-height:61px}.map-card img{height:61px}.map-card span{font-size:10px;padding:6px}.map-card b{font-size:7px;margin-top:3px}.map-preview{grid-template-columns:1fr;gap:10px;padding:10px}.map-preview>img{height:110px}.map-preview h3{font-size:18px}.map-preview p{font-size:10px}.map-preview small{font-size:7px}.setup-footer{margin-top:16px;padding-top:14px;position:sticky;bottom:-19px;background:#1a3d43;padding-bottom:12px;z-index:1}.setup-footer>button{min-width:125px;font-size:12px}.setup-opponent-grid{grid-template-columns:1fr;gap:18px}.setup-opponent-grid #rival-portrait{float:right;width:120px;height:85px;margin-top:-25px}#rival-portrait svg{height:85px}.setup-opponent-grid label{font-size:12px}.setup-opponent-grid p{font-size:11px;line-height:1.55}.setup-opponent-grid .selection-note{padding-right:115px}.evolution-setting{padding:12px;margin-top:15px}.evolution-setting small{font-size:10px}.setup-summary{font-size:11px;gap:7px;flex-wrap:wrap}.fair-play{font-size:9px!important}.guide-grid{gap:20px 16px}.guide-grid h3{font-size:20px}.guide-grid p{font-size:11px}.guide-supplies{padding:11px 12px}.guide-supplies p{font-size:11px}.guide-controls{font-size:10px!important}dialog{padding:20px}.setting-row{gap:14px}.setting-row b{font-size:14px}.setting-row small{font-size:10px}.setting-row select{width:120px;font-size:11px}.result-dialog{padding:28px 20px}.result-dialog h2{font-size:34px}.result-stats strong{font-size:22px}.result-stats p{font-size:9px}.practice-tools{width:100%;margin:0}.practice-tools button{flex:1;font-size:10px}}
@media(max-width:365px){.home-screen{padding:0 17px}.home-header nav button{font-size:9px;padding:6px}.home-copy h1{font-size:58px}.home-actions button{padding:12px 15px;gap:12px;font-size:13px}.home-actions .secondary-button{font-size:10px}.home-art{height:260px}.home-promises b{min-width:123px;font-size:15px}.home-promises span{font-size:10px}.command-deck{padding-left:9px;padding-right:9px}.brand{font-size:14px}.brand small{font-size:6px}.top-actions{gap:4px}.top-actions button{font-size:9px;padding:6px}.top-actions #help{width:36px}.weapon-icon{display:none}.weapon strong{font-size:11px}.weapon small{font-size:8px}.command-main{gap:6px 10px}.move-controls{gap:3px}.move-controls button{min-width:41px}.angle-controls{gap:3px}.angle-controls button{min-width:41px;width:41px}.charge-row{gap:5px}.set-fire-button{min-width:70px}.fire-button{min-width:72px}.fire-button small{font-size:7px}.cancel-button{min-width:44px}.power-zone{grid-template-columns:35px 1fr}.power-label output{font-size:15px}.power-zone>small{font-size:7px}.evolution-tray button{min-width:157px}.evolution-tray p{max-width:125px}.crew-card{min-height:235px;padding:9px}.map-card{grid-template-columns:48px 1fr}.map-card span{font-size:9px}.setup-footer>button{min-width:110px}.guide-grid{grid-template-columns:1fr}}
@media(max-height:560px) and (min-width:600px) and (orientation:landscape){.game-shell{grid-template-columns:1.15fr 1fr;grid-template-rows:100svh}.command-deck{max-height:100svh;border-top:0;border-left:2px solid #d6b777;padding:8px 11px max(8px,env(safe-area-inset-bottom))}.battlefield{min-height:0}.masthead{padding:7px 9px 0}.brand{font-size:12px}.brand small{font-size:6px;max-width:80px}.top-actions{gap:3px}.top-actions button{padding:5px;min-height:40px;font-size:9px}.top-actions #help{display:none}.scoreboard{top:56px;width:calc(100% - 18px);gap:6px}.combatant{padding:5px 7px}.combatant b{font-size:10px}.combatant strong{font-size:18px}.wind{min-width:40px}.wind strong{font-size:19px}.tank-status{font-size:8px}.command-main{grid-template-columns:1fr 1fr;gap:7px 12px}.weapon-zone{grid-column:1/-1}.weapon{min-height:48px;padding:6px;gap:4px}.weapon-icon{display:none}.weapon strong{font-size:10px}.weapon small{font-size:8px}#weapon-note{font-size:9px;min-height:24px}.deck-top{flex-wrap:wrap;gap:5px;font-size:9px}.active-label{font-size:8px}#next-turn{font-size:9px;width:100%;margin-left:0}.aim-zone output{font-size:18px}.angle-controls button{min-width:40px;width:40px;min-height:44px}.angle-controls{gap:4px}.aim-zone small{font-size:7px}.move-heading{font-size:7px}.move-heading output{font-size:7px}.move-controls button{min-width:40px;font-size:18px;min-height:44px}.move-controls #face{font-size:9px}.resource-row{gap:7px;flex-wrap:wrap}.special-charge{min-width:0;width:36%;grid-template-columns:1fr;gap:2px}.special-charge>span{font-size:8px}.special-charge meter{height:8px}.special-charge small{font-size:7px}.supply-zone{grid-template-columns:1fr;min-width:0;gap:3px}.supply-zone label{font-size:8px}.supply-zone select{font-size:9px;min-height:44px}.supply-zone small{font-size:7px}.evolution-tray{width:100%}.evolution-tray button{min-width:165px;min-height:44px}.evolution-tray p{display:block;font-size:8px}.charge-row{gap:5px}.power-zone{grid-template-columns:38px 1fr;gap:0 3px}.power-label{font-size:8px}.power-label output{font-size:16px}.power-zone>small{font-size:7px}.set-fire-button{min-width:68px;min-height:54px;font-size:15px;padding:5px}.set-fire-button span{font-size:7px}.fire-button{min-width:68px;padding:6px;min-height:54px}.fire-button span{font-size:12px}.fire-button small{font-size:7px}.cancel-button{min-width:44px;min-height:54px}.shot-log{gap:10px}.shot-log>p,.shot-log>.rival-shot-log{font-size:8px;display:block}.shot-log b{font-size:8px;display:block;margin-bottom:2px}.mode-note{font-size:7px}.camera-controls{bottom:50px;right:8px;gap:5px}.camera-controls button{font-size:9px;padding:6px 9px}.field-caption{padding:9px;font-size:10px;gap:8px}.field-caption strong{font-size:10px}.home-hero{min-height:0;padding:30px 0;grid-template-columns:1fr 1fr}.home-copy h1{font-size:48px}.home-description{font-size:12px}.home-art{height:260px;transform:scale(.7)}.home-actions{flex-wrap:wrap}.home-actions button{font-size:12px;min-height:46px}.home-footnote{font-size:9px}.home-promises{grid-template-columns:1fr 1fr 1fr;gap:12px}.home-promises p{display:block}.home-promises b{min-width:0;font-size:17px;margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep the crew above the cutaway silhouette, rather than clipping the sails. */
.home-art:before{content:"";position:absolute;inset:15% -3% 5%;background:url('./art/game/coast.webp') center/cover;opacity:.18;mask-image:radial-gradient(ellipse,#000 10%,transparent 70%);z-index:-1}
#hero-crew{top:125px;left:7%;width:91%;height:210px;transform:none;z-index:2}
#hero-crew svg{height:180px}
.top-actions #help{width:44px}
@media(max-width:760px){#hero-crew{top:68px;left:2%;width:96%;height:180px}#hero-crew svg{height:153px}}
@media(max-width:365px){.move-controls button,.angle-controls button{min-width:44px;width:44px}.move-controls #face{width:auto}.move-controls{gap:2px}.angle-controls{gap:2px}.top-actions #help{width:44px}}
@media(max-height:560px) and (min-width:600px) and (orientation:landscape){.angle-controls button,.move-controls button{min-width:44px;width:44px}.move-controls #face{width:auto}}

@media(max-width:760px){.home-header{flex-wrap:wrap;gap:15px}.home-header nav{width:100%;justify-content:flex-start;gap:6px}.home-header .arcade-return{display:inline-flex;font-size:10px;padding:7px 9px}.home-header .arcade-return[hidden]{display:none}.home-hero{padding-top:30px}}

/* Short screens scroll the plan, while power and both fire controls stay reachable. */
.command-deck{display:flex;flex-direction:column;overflow:hidden}
.deck-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:3px}
.charge-row,.shot-log,.deck-bottom{flex-shrink:0}
.shot-log{max-height:58px;overflow-y:auto;scrollbar-width:thin}
@media(max-width:365px){.command-deck{max-height:60svh}.shot-log{max-height:38px}.charge-row{padding-top:4px;border-top:1px solid #7f9d8c44}}

.crew-portrait{display:block;width:100%;height:114px}.crew-portrait canvas{display:block;width:100%;height:114px;object-fit:contain;filter:drop-shadow(0 6px 3px #092f3688)}
.hero-mobile{width:33%;height:185px}.hero-mobile canvas{display:block;width:100%;height:185px;object-fit:contain;filter:drop-shadow(0 10px 3px #123c4377)}#hero-crew .hero-mobile svg{width:100%;height:185px}
#rival-portrait canvas{display:block;width:100%;height:130px;object-fit:contain}
@media(max-width:760px){.crew-portrait,.crew-portrait canvas{height:85px}.hero-mobile,.hero-mobile canvas,#hero-crew .hero-mobile svg{height:160px}#rival-portrait canvas{height:85px}}

/* Keep the tactical outcome readable in the narrow command deck. */
@media(max-width:700px){.shot-log>p,.shot-log>.rival-shot-log,.shot-log b{font-size:11px}#weapon-note{font-size:11px;line-height:1.35}.special-charge small,.supply-zone small{font-size:9px;line-height:1.35}}

/* Preview silhouettes come from the same occupied cells used in a match. */
.home-copy h1{font-size:clamp(48px,5.5vw,80px)}
.power-controls{grid-column:2;grid-row:1;display:flex;align-items:center;gap:7px;min-width:0}
.power-controls button{width:44px;min-width:44px;height:44px;padding:0;font-size:22px}
.power-controls input{min-width:0;flex:1}
.aim-coach{flex-shrink:0;border-left:2px solid #f5cc7899;padding:6px 9px;margin-top:6px;font-size:11px;line-height:1.4;background:#183a4299}
.aim-coach b,.aim-coach span,.aim-coach small{display:block}
.aim-coach b{color:#f7d78a;font-size:10px;margin-bottom:2px}
.aim-coach small{color:var(--muted);font-size:9px}
.aim-coach small:empty{display:none}
@media(max-width:760px){.home-copy h1{font-size:clamp(35px,10.5vw,48px)}.charge-row{display:grid;grid-template-columns:1fr 1fr 44px}.power-zone{grid-column:1/-1;grid-template-columns:44px 1fr}.power-controls{gap:8px}.power-gauge{margin:0 52px}.power-zone>small{display:none}.set-fire-button,.fire-button{min-width:0;min-height:48px}.cancel-button{min-height:48px}.aim-coach{font-size:11px;padding:5px 8px}.aim-coach b{font-size:10px}}
@media(max-height:560px) and (min-width:600px) and (orientation:landscape){.home-copy h1{font-size:42px}.charge-row{display:grid;grid-template-columns:1fr 1fr 44px}.power-zone{grid-column:1/-1}.power-zone>small{display:none}.power-controls{gap:5px}.aim-coach{font-size:10px;padding:4px 7px}.set-fire-button,.fire-button,.cancel-button{min-height:44px}}
@media(max-height:560px) and (min-width:600px) and (orientation:landscape){.command-main>.aim-zone,.command-main>.move-zone{grid-row:1}.command-main>.weapon-zone{grid-row:2}}
@media(max-width:365px){.combatant>div:first-child{grid-template-columns:minmax(0,1fr) auto;gap:3px 4px}.combatant b{min-width:0;font-size:10px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis}.combatant strong{font-size:18px}}
.map-thumb,#map-preview-stage{position:relative;overflow:hidden}.map-thumb{height:75px}.map-thumb img,#map-preview-stage img{display:block;width:100%;height:100%;object-fit:cover;opacity:.66}#map-preview-stage{height:130px;border-radius:6px}.map-geometry{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-geometry path{stroke-linejoin:round}
@media(max-width:700px){.map-thumb{height:61px;width:65px}#map-preview-stage{height:130px}}

/* A real carved miniature supports the same painted crews used in the match. */
.hero-land{background: url('./art/game/hero-painted.webp') center/contain no-repeat;clip-path:none;border-radius:0;box-shadow:none;transform:rotate(-4deg);height:360px;bottom:-3%;left:-13%;right:-13%;filter:drop-shadow(0 18px 22px #072d3877)}
.hero-trail{opacity:.5}.hero-impact{font-size:44px;top:40px}.hero-orbit{opacity:.55}
@media(max-width:760px){.hero-land{height:285px;bottom:-13%;left:-20%;right:-20%}}

.resource-jump{display:none}
@media(max-width:760px){
  .deck-top{position:relative;padding-right:91px;min-height:44px}
  .deck-top #initiative{display:none}
  .resource-jump{display:block;position:absolute;right:0;top:0;font-size:10px;padding:7px 9px;min-height:40px}
}

/* One reply can contain an interrupted attack, a shot and a reload. */
.rival-shot-log>div{min-width:0}.shot-log details summary{cursor:pointer;color:#edd29b;min-height:28px;align-content:center}.shot-log details p{display:block;margin:4px 0;color:#c4d3bd}.shot-log:has(details[open]){max-height:112px}.shot-log details[hidden]{display:none}
.deck-scroll>.shot-log{max-height:none;overflow:visible;flex-direction:column;padding-bottom:8px}
