:root{--comic:Bahnschrift,'Segoe UI',sans-serif;--neon:#55e4ef;--pink:#f679d4;--metal:#101c31;color-scheme:dark}
body{font-family:var(--comic);background:#090f20;color:#effaff}button,input{font-family:var(--comic)}
button{border:1px solid #62b8c8;border-radius:5px;background:linear-gradient(150deg,#22384f,#111c32);box-shadow:inset 0 1px #96efff22,0 3px 0 #040914;color:#eaffff;text-shadow:none;font-weight:800;letter-spacing:.02em;outline:none}
button:hover:not(:disabled){transform:none;filter:brightness(1.13);border-color:#a2f6ff;box-shadow:inset 0 0 14px #55e4ef25,0 0 12px #55e4ef35}button:active:not(:disabled){transform:none;filter:brightness(1.28)}button:focus-visible{outline:2px solid #f5a3e0;outline-offset:3px}
button.primary,.primary,.big-play{background:linear-gradient(145deg,#137e88,#163951);border-color:#70f5ee;color:#e7ffff;box-shadow:inset 0 0 15px #60ffdb25,0 4px 0 #071825}
button.gold,.gold,.sell-button{background:linear-gradient(145deg,#765930,#32253d);border-color:#deb982;color:#fff3dc}
button.selected{border-color:#e594fa;background:linear-gradient(145deg,#513466,#19334a);box-shadow:inset 0 0 0 1px #f0a4f9,0 0 14px #ce6eed35}
.world{background:linear-gradient(90deg,#06122633,#06122611),url('/assets/cyber-base.png') center/cover no-repeat}.world:before{background:linear-gradient(0deg,#070f29aa,transparent 45%)}
.hud .square,.square,.game-top .square.small{border-radius:5px;border:1px solid #70dce6;outline:0;box-shadow:inset 0 0 12px #57e4ec22,0 3px 0 #041022;background:linear-gradient(140deg,#28475e,#10263d)}
.commander,.currency{background:#0c1b32e8;border:1px solid #4dc2cd;box-shadow:0 0 15px #39d9e71c;border-radius:5px}.rank-star{background:#d3b15c;color:#142334;text-shadow:none}.xp-track{background:#050b1c}.xp-track i,.progress i{background:linear-gradient(90deg,#28bdc8,#8dfae6)}
.base-logo{font-family:var(--comic);font-weight:950;font-size:clamp(50px,6.8vw,105px);letter-spacing:-.05em;color:#e0faff;transform:none;text-shadow:3px 4px #12253e,0 0 30px #41d9f250;-webkit-text-stroke:0;left:7%;top:16%}.base-logo span{color:#e480d8}
.base-character{animation:none;transform:none;left:42%;bottom:18%;width:27%;height:64%;border:0;background:none;box-shadow:none}.base-character:hover{background:none;box-shadow:none;filter:drop-shadow(0 0 12px #6cffff70)}.base-character>.hero-art{width:100%;height:100%;object-fit:contain;animation:none;margin:0;background:none}.base-character>span{font-size:18px;background:#0a182be0;padding:8px 16px;border:1px solid #73d7db;bottom:5%}
.base-nav{gap:24px;bottom:4%;align-items:center}.nav-medallion{border-radius:8px;outline:0;border:1px solid #6bbac9;width:115px;height:110px;background:linear-gradient(145deg,#22384deb,#0a142bf0);overflow:visible;box-shadow:0 4px 0 #060b19,inset 0 0 20px #4accdf1c}.nav-medallion>canvas,.nav-medallion>.sprite{width:90px;height:90px;position:absolute;left:12px;top:-10px;transform:none}.nav-medallion strong,.play-medallion strong{font-size:15px;bottom:8px;-webkit-text-stroke:0;text-shadow:none;letter-spacing:.08em}.play-medallion{border-radius:8px;outline:none;border:2px solid #74f2e5;width:170px;height:130px;background:linear-gradient(145deg,#107e83,#15314d);font-size:52px;box-shadow:0 0 25px #50dbc631}.play-medallion strong{font-size:20px;bottom:12px}.big-badge{font-size:65px;color:#e5ba79}.base-tools .account-save{font-size:10px}.base-modes{display:none}
.game-window,.modal{background:linear-gradient(140deg,#18283feb,#0b142bef);border:1px solid #65b7c9;outline:0;box-shadow:0 20px 90px #0009,inset 0 0 25px #3e8fba12;border-radius:8px}.screen-title h1,.modal-head h2{font-family:var(--comic);-webkit-text-stroke:0;color:#e1faff;text-shadow:none;font-weight:900;letter-spacing:.02em}.modal-head{border-bottom:1px solid #5ecbd944;padding-bottom:12px}.screen-body{scrollbar-width:thin;scrollbar-color:#467787 #102133}
.start-panel,.profile-banner,.medal-board,.career-details,.crew-category,.tree-lane,.tree-detail,.hero-description,.player-slot,.code-box{background:#10223cde;border:1px solid #5caebe;border-radius:7px;box-shadow:inset 0 0 20px #2ed2e510}.start-panel{backdrop-filter:blur(12px)}
.crew-groups{grid-template-columns:repeat(3,minmax(0,1fr));height:auto;align-items:start}.crew-pair{height:auto;grid-auto-rows:220px;grid-template-rows:none}.crew-portrait{height:140px}.crew-portrait>canvas{width:100%;height:100%}.crew-tile{background:#172f45;border:1px solid #488398}.category-economy{--cat:#efb65e}.category-water{--cat:#51e5dc}
.art-portrait{display:block;object-fit:contain;background:none!important;flex-shrink:0}.evolution-art.art-portrait,.hero-art.art-portrait{background:none!important}.node-art{border:1px solid #68b7c6;border-radius:7px;background:#14263e;overflow:hidden}.node-art canvas{width:100%;height:100%;position:static}.tree-detail>.art-portrait{max-height:220px;width:100%;height:220px}.tree-node.selected .node-art{outline:2px solid #d8a1fa}.research-row{border-color:#5892a3}.tree-lane h3{color:#d3f8ff}.tree-nodes:before{background:#5ad8ed66}.tree-node strong{font-family:var(--comic);font-weight:700}
.mode-select{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:25px 5px}.mode-choice{min-height:290px;padding:24px 15px;display:flex;flex-direction:column;align-items:center;gap:18px}.mode-choice strong{font-size:28px}.mode-choice small{font-size:15px;line-height:1.6;color:#b9d4dd}.mode-emblem{font-size:64px;font-weight:900;border:2px solid #6cdee6;border-radius:50%;width:125px;height:125px;display:grid;place-items:center;box-shadow:0 0 25px #4dcde22b;color:#a0efff}.mode-emblem.duel{border-color:#f68eca;color:#ffa7cd}.mission-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px;font-size:13px;color:#839ead}.mission-nav b{color:#75eeeb;margin:0 16px}.map-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px;padding:16px 6px 20px}.map-card{aspect-ratio:1.7;border:1px solid #6bb3c5;border-radius:5px;box-shadow:0 6px 0 #050e22;overflow:visible}.map-card canvas{border-radius:4px;filter:saturate(.7) contrast(1.1)}.map-title{-webkit-text-stroke:0;top:5px;background:#07192bd9;left:5px;right:5px;padding:5px;font-family:var(--comic);font-size:16px}.map-ribbon{font-family:var(--comic);font-size:9px;background:#072438d9;bottom:8px}.map-medal-row{bottom:-12px}.map-pages{display:flex;justify-content:center;align-items:center;gap:20px;margin:12px 0}.difficulty-choices{justify-content:center;margin:18px 0}.hard-modes,.zone-choices{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:20px 0}.hard-modes small,.zone-choices h3{width:100%;text-align:center;color:#a9c9d5}.duel-guide{background:#101b35;border-left:3px solid #ef86ca;padding:16px;max-width:850px;margin:auto}.duel-guide p{line-height:1.6}.chosen-hero{background:#122943;border-color:#5695b0;border-radius:5px}.chosen-hero>.hero-art{width:100px;height:100px}.game-caption{font-size:13px;color:#a9c9d5}
.game-shell{background:#071427;--roster:230px}.game-shell.wide-roster{--roster:360px}.game-top{background:linear-gradient(180deg,#162c42,#0c1c32);border-bottom:1px solid #57cbd480}.life-value,.cash-value,.wave{-webkit-text-stroke:0;text-shadow:0 2px #000;font-family:var(--comic);font-weight:900}.game-layout{position:relative}.arena{background:radial-gradient(ellipse at center,#19344b,#081426);overflow:hidden}.battle{border:1px solid #428694;box-shadow:0 0 25px #0008}.roster{background:linear-gradient(150deg,#15273d,#0b1528);border-left:1px solid #56c6d780;padding:8px}.roster-title h2{-webkit-text-stroke:0;font:800 18px var(--comic);letter-spacing:.07em}.roster-title button{font-size:10px;min-width:67px;padding:6px 4px}.roster-pair{gap:7px}.wide-roster .roster-pair{grid-template-columns:repeat(3,minmax(0,1fr))}.roster-group>h3{background:color-mix(in srgb,var(--cat) 25%,#0d1d30);border:0;border-left:3px solid var(--cat);font:800 12px var(--comic);text-shadow:none;letter-spacing:.09em;padding:7px}.unit-button{background:linear-gradient(160deg,color-mix(in srgb,var(--cat) 16%,#102238),#101b2d);border:1px solid color-mix(in srgb,var(--cat) 55%,#314353);border-radius:5px;box-shadow:none;overflow:hidden;min-height:113px}.unit-button>.art-portrait{width:100%;height:79px}.unit-name{font:700 11px var(--comic);-webkit-text-stroke:0;line-height:1.1;text-shadow:none;min-height:22px}.unit-cost{font:900 16px var(--comic);-webkit-text-stroke:0;text-shadow:none;margin-top:4px}.unit-button.selected{outline:1px solid #ec9ce3;box-shadow:inset 0 0 15px #eaaaff2c}.unit-button.unaffordable{filter:saturate(.5);opacity:.7}.hero-button{min-height:95px}.hero-button>.hero-art{height:86px;width:80px}.hero-button>.unit-name{font-size:12px}.hero-button>.unit-cost{font-size:12px}.wave-intel{background:#0a1629;border:1px solid #36576e;padding:6px;margin:0 0 8px;font-size:10px;line-height:1.6}.wave-intel b,.wave-intel span{display:block}.wave-intel b{color:#9dd7e1}.wave-intel span{color:#edbf84}.match-tools{border-top:1px solid #4d8092;background:#0c172a}.match-tools .left{flex-wrap:wrap;gap:5px}.match-tools .left>button{font-size:12px;min-height:30px;min-width:43px;border-width:1px;border-radius:4px}.match-tools .left>.gift-button{flex:1;font-size:9px;line-height:1.4;color:#ffd494}.match-tools #wave-button{height:66px;font-size:31px;border-width:1px;border-radius:4px;box-shadow:none}.match-tools #wave-button small{font:800 11px var(--comic);letter-spacing:.07em}.side-panel{background:linear-gradient(160deg,#18344bf5,#101a31f8);border:1px solid #68c6d5;outline:none;box-shadow:0 10px 35px #0009;border-radius:7px;width:310px;z-index:15}.selected-portrait{background:#0d243ac9;border:1px solid #457b92;border-radius:5px}.selected-portrait>.art-portrait{width:150px;height:150px}.selected-portrait strong{font:850 23px var(--comic)}.selected-portrait span{font:700 10px var(--comic);color:#b5e1e8}.target-buttons button{font:750 11px var(--comic);border-width:1px;border-radius:4px;padding:8px 3px}.upgrade-button{background:linear-gradient(140deg,#173d49,#18263e);border:1px solid #54b6bb;border-radius:5px;box-shadow:none;min-height:75px}.upgrade-button>.art-portrait{width:57px;height:57px}.upgrade-button strong{font:800 14px var(--comic)}.upgrade-button small{font:12px var(--comic);line-height:1.25}.upgrade-button b{font:800 13px var(--comic);color:#8ef4dc}.upgrade-path-title{font:750 13px var(--comic);color:#a4deeb}.panel-close{border-radius:4px;outline:0;border-width:1px}.abilities{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:calc(100% - 24px);gap:8px;padding:6px 2px;bottom:14px;left:12px;scrollbar-width:thin;z-index:12}.ability-button{width:176px;height:70px;border:1px solid #589caf;border-radius:5px;background:#122840ed;box-shadow:none;display:flex;align-items:center;gap:7px;padding:6px;text-align:left;overflow:hidden;flex-shrink:0}.ability-icon{display:block;flex:0 0 48px;width:48px;height:48px;background-image:url('/assets/ability-icons.png');background-size:500% 300%;background-repeat:no-repeat}.ability-label{display:flex;flex-direction:column;gap:3px;min-width:0}.ability-label b{font:800 12px var(--comic);color:#efffff;line-height:1.1}.ability-label small{font:9px var(--comic);color:#a6cbd6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:112px}.ability-label em{font:800 9px var(--comic);color:#76f0d4;font-style:normal}.cooldown-line{position:absolute;bottom:0;left:0;right:0;height:3px;background:#e48ddc;transform-origin:left}.ability-button.source-selected{border-color:#e9acf3}.ability-button.locked{opacity:.55;filter:saturate(.4)}.match-log{font:10px var(--comic);color:#9abac8;bottom:1px}.boss-bar{background:#101b31eb;border:1px solid #f29b86;border-radius:4px;font:700 12px var(--comic)}
.audio-settings{display:grid;gap:22px}.audio-settings label{display:grid;grid-template-columns:90px 1fr;align-items:center}.audio-settings input{accent-color:#67e5dd}.audio-settings p{color:#acd5dd;font-size:13px}.hero-skill-preview>div{background:#12273f;border:1px solid #457f97}.hero-skill-preview .ability-icon{width:44px;height:44px}.hero-skill-preview b{color:#d6faff}
.modal.heroes-modal{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:linear-gradient(90deg,#071223eb,transparent 62%,#071223cc),var(--hero-bg) center/cover no-repeat;overflow:hidden}.heroes-modal>.modal-head{position:absolute;top:18px;left:340px;right:25px;border:0;z-index:2}.heroes-modal>.modal-head h2{font-size:clamp(25px,3vw,47px)}.heroes-modal>.modal-body{height:100%;overflow:hidden}.hero-exhibit{height:100%;display:grid;grid-template-columns:315px minmax(200px,1fr) 310px;gap:22px;padding:105px 25px 80px}.hero-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:125px;gap:9px;overflow:auto;align-content:start;scrollbar-width:thin;padding:8px}.hero-thumb{padding:2px 3px;background:#0b1e32da;border:1px solid #538d9d;position:relative;min-width:0}.hero-thumb .hero-art{width:100%;height:90px}.hero-thumb strong{display:block;font-size:10px;line-height:1.1}.hero-showcase{display:flex;align-items:center;justify-content:center;position:relative;min-width:0}.hero-showcase>.hero-art{width:100%;height:100%;max-height:70vh;filter:drop-shadow(0 15px 15px #0008)}.hero-role{position:absolute;top:-43px;left:0;font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:#9be7f0}.hero-roadmap{align-self:center;max-height:100%;overflow:auto;scrollbar-width:thin}.hero-roadmap>p{font-size:14px;line-height:1.5;background:#08182bc4;padding:12px}.hero-roadmap>h3{font-size:13px;letter-spacing:.08em;color:#a7e2e9}.hero-level-card{background:#0b1c32df;border:1px solid #548aa1;display:grid;grid-template-columns:48px 1fr;gap:9px;padding:10px;margin:10px 0}.hero-level-card strong{font-size:13px}.hero-level-card small{color:#f0c58e;font-size:10px;display:block;margin:4px 0}.hero-level-card p{font-size:11px;color:#bad4dd;line-height:1.4}.hero-confirm-bar{position:absolute;bottom:18px;left:340px;right:25px;display:flex;justify-content:space-between;align-items:center;gap:20px}.hero-confirm-bar small{font-size:12px;color:#9ab7c8}.hero-confirm-bar button{min-width:240px;padding:13px 20px}
.story-screen{position:fixed;inset:0;z-index:200;background:#050d1b;display:flex;align-items:center;justify-content:center}.story-screen video{width:100%;height:100%;object-fit:contain}.story-screen .story-caption{position:absolute;bottom:80px;left:8%;right:8%;padding:20px;background:#061428df;border-left:3px solid #67e8ef;font-size:20px;line-height:1.5}.story-caption h2{font-size:14px;letter-spacing:.13em;color:#80e5ed;margin:0 0 10px}.story-buttons{position:absolute;right:30px;bottom:24px;display:flex;gap:15px}.story-buttons button{padding:12px 20px}.story-play{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.story-play button{pointer-events:auto;font-size:24px;padding:22px 35px}
@media(max-width:1100px){.hero-exhibit{grid-template-columns:220px minmax(180px,1fr) 250px;padding:85px 15px 75px;gap:12px}.hero-picker{grid-template-columns:repeat(2,1fr);grid-auto-rows:115px}.heroes-modal>.modal-head{left:250px;top:15px}.hero-confirm-bar{left:250px;right:20px}.hero-role{top:-25px;font-size:12px}.game-shell{--roster:195px}.game-shell.wide-roster{--roster:300px}.side-panel{width:280px}.crew-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:520px) and (orientation:landscape){.hud{height:46px}.base-character{left:43%;height:68%;bottom:15%;width:25%}.base-logo{font-size:53px;top:20%;left:6%}.base-nav{gap:15px;bottom:4%}.nav-medallion{width:68px;height:64px}.nav-medallion>canvas{width:53px;height:53px;top:-7px;left:7px}.nav-medallion strong{font-size:9px;bottom:4px}.play-medallion{width:100px;height:78px;font-size:30px}.play-medallion strong{font-size:12px;bottom:6px}.game-top{height:43px}.game-shell{--roster:170px}.game-shell.wide-roster{--roster:270px}.side-panel{width:250px;top:5px;bottom:5px;max-height:none;transform:none;padding:6px}.selected-portrait{min-height:65px;padding:3px}.selected-portrait>.art-portrait{width:68px;height:68px}.selected-portrait strong{font-size:17px}.upgrade-button{min-height:55px}.upgrade-button>.art-portrait{width:42px;height:42px}.upgrade-button strong{font-size:11px}.upgrade-button small{font-size:9px}.target-buttons{margin:5px 0}.upgrade-lane{margin-bottom:5px}.abilities{bottom:5px;gap:5px}.ability-button{width:125px;height:52px}.ability-icon{width:34px;height:34px;flex-basis:34px}.ability-label b{font-size:9px}.ability-label small,.ability-label em{font-size:8px}.hero-exhibit{grid-template-columns:170px minmax(160px,1fr) 235px;padding:65px 12px 55px;gap:10px}.hero-picker{grid-auto-rows:92px;gap:6px}.hero-thumb .hero-art{height:64px}.hero-thumb strong{font-size:8px}.heroes-modal>.modal-head{top:8px;left:192px;right:14px}.heroes-modal>.modal-head h2{font-size:26px}.hero-role{top:-17px;font-size:10px}.hero-roadmap>p{font-size:10px;margin:0 0 6px;padding:5px}.hero-level-card{padding:5px;margin:5px 0;grid-template-columns:32px 1fr;gap:5px}.hero-level-card .ability-icon{width:32px;height:32px;flex-basis:32px}.hero-level-card p{font-size:9px}.hero-level-card strong{font-size:11px}.hero-confirm-bar{bottom:8px;left:192px;right:15px}.hero-confirm-bar small{font-size:9px}.hero-confirm-bar button{font-size:12px;min-width:180px;padding:9px}.story-screen .story-caption{font-size:14px;bottom:55px;padding:10px}.story-buttons{bottom:10px}.story-buttons button{font-size:11px;padding:9px}}
@media(max-width:650px) and (orientation:portrait){.base-logo{top:18%;left:50%;transform:translateX(-50%);font-size:57px}.base-character{left:24%;width:56%;height:45%;bottom:20%;transform:none;animation:none}.base-character>.hero-art{width:100%;height:100%}.base-character>span{font-size:12px;bottom:0}.base-nav{gap:8px;bottom:5%;width:calc(100% - 18px);flex-wrap:nowrap}.nav-medallion{width:58px;height:62px;flex-shrink:0}.nav-medallion>canvas{width:47px;height:47px;left:5px;top:-3px}.nav-medallion strong{font-size:9px;bottom:4px}.play-medallion{width:83px;height:80px;flex-shrink:0;font-size:32px}.play-medallion strong{font-size:11px;bottom:6px}.big-badge{font-size:38px}.base-tools{top:35%}.mode-select{grid-template-columns:1fr;gap:12px;padding:5px}.mode-choice{min-height:130px;display:grid;grid-template-columns:70px 1fr;gap:8px 15px;text-align:left;padding:15px}.mode-emblem{width:65px;height:65px;font-size:32px;grid-row:1/3}.mode-choice strong{font-size:22px}.mode-choice small{font-size:12px;line-height:1.4}.map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px}.map-card{aspect-ratio:1.35}.map-title{font-size:11px;padding:3px;top:2px}.map-ribbon{font-size:7px}.mission-nav{font-size:8px}.mission-nav b{margin:0 5px}.mission-nav button{font-size:10px;padding:7px}.map-pages{margin-top:15px}.difficulty-choices{gap:8px;margin:12px 0}.difficulty-choices button{font-size:13px;padding:8px}.hard-modes,.zone-choices{gap:7px;margin:10px 0}.hard-modes button,.zone-choices button{font-size:10px;padding:8px}.hard-modes small{font-size:10px}.chosen-hero>.hero-art{width:65px;height:65px}.duel-guide p{font-size:11px}.game-shell{--roster:55vw}.game-shell.wide-roster{--roster:68vw}.game-top{height:50px;gap:5px}.game-top .life-value,.game-top .cash-value{font-size:20px}.game-top .wave{font-size:19px}.game-top .square.small{width:29px;height:29px}.game-layout{display:block;position:relative;flex:1;min-height:0}.arena{position:absolute;inset:0;display:block;padding:0}.battle{position:absolute;top:0;left:0;width:100%;max-width:100%;height:60vw!important;aspect-ratio:5/3!important;margin:0;flex:none}.battle canvas{width:100%;height:100%}.roster{position:absolute;top:calc(60vw + 21px);bottom:0;right:0;width:var(--roster);padding:5px;border-top:1px solid #4a8fa3}.roster-title h2{font-size:13px}.roster-title button{font-size:8px;min-width:50px}.roster-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.wide-roster .roster-pair{grid-template-columns:repeat(3,minmax(0,1fr))}.unit-button{min-height:100px}.unit-button>.art-portrait{width:100%;height:64px}.unit-name{font-size:9px;min-height:20px}.unit-cost{font-size:13px}.hero-button{display:grid;grid-template-columns:60px 1fr;min-height:70px;padding:3px;align-items:center}.hero-button>.hero-art{width:60px;height:65px;grid-row:1/3}.hero-button>.unit-name{font-size:10px}.hero-button>.unit-cost{position:static;font-size:11px}.wave-intel{font-size:8px;padding:4px}.match-tools{padding:5px 0}.match-tools .left>button{min-width:28px;min-height:29px;font-size:10px;padding:4px}.match-tools .left>.gift-button{font-size:8px}.match-tools #wave-button{height:45px;font-size:22px}.match-tools #wave-button small{font-size:9px}.side-panel{position:absolute;left:4px;right:calc(var(--roster) + 4px);top:calc(60vw + 25px);bottom:4px;transform:none;width:auto;max-height:none;border-width:1px;padding:5px;z-index:20;overflow:auto}.selected-portrait{min-height:74px;padding:2px}.selected-portrait>.art-portrait{width:70px;height:70px}.selected-portrait strong{font-size:13px}.selected-portrait span{font-size:8px}.target-buttons{gap:2px;margin:5px 0}.target-buttons button{font-size:7px;padding:6px 1px}.tower-stats{font-size:8px}.upgrade-path-title{font-size:9px;flex-wrap:wrap;gap:2px}.upgrade-lane{margin-bottom:6px}.upgrade-button{min-height:75px;display:block;padding:3px}.upgrade-button>.art-portrait{float:left;width:35px;height:35px}.upgrade-button strong{font-size:9px}.upgrade-button small{font-size:8px;line-height:1.1;display:block}.upgrade-button b{font-size:10px}.sell-button{font-size:10px;padding:8px}.abilities{position:absolute;top:calc(60vw + 26px);bottom:5px;left:4px;width:calc(100% - var(--roster) - 8px);max-width:none;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;flex-wrap:nowrap;gap:6px;padding:0;align-items:stretch}.ability-button{width:100%;height:68px;min-height:68px;flex-shrink:0;gap:4px;padding:4px}.ability-icon{width:35px;height:35px;flex-basis:35px}.ability-label b{font-size:9px}.ability-label small{font-size:8px;max-width:88px}.ability-label em{font-size:8px}.match-log{position:absolute;top:60vw;left:5px;right:5px;bottom:auto;height:20px;display:flex;align-items:center;justify-content:center;font-size:8px;overflow:hidden}.placement-cancel{top:calc(60vw - 37px);bottom:auto;font-size:10px;z-index:30}.zone-label{font-size:8px}.boss-bar{font-size:9px;bottom:5px}.crew-groups{grid-template-columns:1fr}.crew-pair{grid-auto-rows:180px}.hero-exhibit{grid-template-columns:95px 1fr;grid-template-rows:1fr 215px;gap:8px;padding:86px 8px 64px}.hero-picker{grid-row:1/3;grid-template-columns:1fr;grid-auto-rows:93px;padding:3px;gap:7px}.hero-thumb .hero-art{height:67px}.hero-thumb strong{font-size:8px}.heroes-modal>.modal-head{left:115px;right:10px;top:15px}.heroes-modal>.modal-head h2{font-size:23px;line-height:1.05}.hero-showcase{min-height:0}.hero-showcase>.hero-art{max-height:none;height:100%;width:100%}.hero-role{top:-15px;font-size:9px;line-height:1.2}.hero-roadmap{display:grid;grid-template-columns:1fr 1fr;gap:5px;height:215px;align-content:start}.hero-roadmap>p,.hero-roadmap>h3{display:none}.hero-level-card{display:block;padding:5px;margin:0}.hero-level-card .ability-icon{width:29px;height:29px;float:left;margin-right:4px}.hero-level-card strong{font-size:9px;line-height:1.1}.hero-level-card small{font-size:8px;margin:3px 0}.hero-level-card p{font-size:8px;line-height:1.2;clear:both;padding-top:3px}.hero-confirm-bar{left:111px;right:8px;bottom:12px;display:block}.hero-confirm-bar small{display:none}.hero-confirm-bar button{width:100%;min-width:0;font-size:12px;padding:12px 5px}.story-screen video{object-fit:cover;object-position:65% center}.story-screen .story-caption{left:5%;right:5%;bottom:90px;font-size:15px;padding:13px}.story-buttons{left:5%;right:5%;bottom:25px;justify-content:space-between;gap:8px}.story-buttons button{font-size:11px;padding:12px}.story-play button{font-size:17px;padding:17px}.modal-head h2{font-size:22px}}


.career-medal{display:grid;place-items:center}.career-medal .big-badge{display:grid;place-items:center;position:absolute;inset:0 0 19px;line-height:1;margin:0;transform:none;font-family:Arial,sans-serif}.rank-star{align-items:center;line-height:1;padding:0}.avatar-button{width:60px;height:60px;padding:0;border-radius:6px;flex-shrink:0;margin-right:8px;background:#16304b}.avatar-button canvas{width:100%;height:100%}.hud{justify-content:flex-start;gap:8px}.hud-right{margin-left:auto}.commander{margin-left:6px}.avatar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.avatar-grid button{padding:5px;font-size:11px}.avatar-grid canvas{width:100%;height:130px}.campaign-choice{display:grid;grid-template-columns:1fr 1fr;gap:22px}.campaign-choice>button{min-height:340px;text-align:left;padding:25px}.campaign-choice>button>span{font-size:64px;color:#a3f8ef}.campaign-choice p{font-size:16px;line-height:1.7;color:#b8dbe7}.campaign-choice b{font-size:13px;color:#f5c988}.patrol-buttons{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:6px 0}.patrol-buttons button{font-size:10px;padding:7px 3px}.victory-fx{position:fixed;inset:0;width:100%;height:100%;z-index:90;pointer-events:none}.medal-3{--medal-light:#bba4ff;--medal-dark:#6343a1;--medal-border:#9e86de}.hero-records{max-height:260px;overflow:auto;scrollbar-width:thin}.map-medals{max-height:260px;overflow:auto;scrollbar-width:thin}
@media(max-width:650px){.avatar-button{width:39px;height:44px;margin:0}.hud{gap:4px}.commander{min-width:0;padding:6px 9px 7px 36px;margin:0;font-size:11px}.commander>.rank-star{width:40px;height:40px;left:-4px;top:0;font-size:19px}.xp-track{width:95px}.hud-right{gap:5px}.currency{font-size:17px;padding:5px}.currency b{font-size:20px}.hud .square{width:32px;height:34px;font-size:21px}.campaign-choice{grid-template-columns:1fr;gap:12px}.campaign-choice>button{min-height:190px;padding:15px}.campaign-choice>button>span{float:left;margin-right:15px;font-size:45px}.campaign-choice h2{font-size:23px}.campaign-choice p{font-size:12px;line-height:1.5}.avatar-grid{grid-template-columns:repeat(3,1fr)}.avatar-grid canvas{height:95px}.career-medal .big-badge{inset:0 0 14px}.patrol-buttons button{font-size:7px;padding:5px 1px}}

/* Commander profile and personal avatars */
.hud{position:absolute;inset:18px 24px auto;z-index:12;padding:0;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;height:auto}.hud button,.hud .currency{pointer-events:auto}.commander-dock{width:292px;max-width:60vw}.commander-card{display:flex;gap:10px;align-items:center;padding:8px;background:linear-gradient(130deg,#10243aef,#08172be8);border:1px solid #63bdc8;border-radius:7px;box-shadow:0 8px 25px #0005}.hud .avatar-button{margin:0;width:64px;height:64px;padding:0;border:1px solid #a5ecf0;border-radius:5px;overflow:hidden;flex-shrink:0}.avatar-art{display:block;width:100%;height:100%;background-image:url('/assets/avatars-v12.png');background-size:600% 400%;background-repeat:no-repeat}.commander-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;text-align:left;border:0;box-shadow:none;background:none;padding:0}.commander-info strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.commander-level{font-size:11px;color:#9cf2ed;display:flex;justify-content:space-between;gap:8px}.commander-level small{font-size:9px;color:#b0cadc}.commander-info .xp-track{width:100%;height:8px;margin:0;border:1px solid #418494;display:block;border-radius:2px;overflow:hidden}.commander-info .xp-track i{display:block;height:100%}.commander-actions{display:flex;flex-direction:column;gap:8px;margin-top:10px;width:205px}.commander-actions button{text-align:left;font-size:11px;letter-spacing:.06em;padding:10px 13px;background:#0c1d32ec}.commander-actions span{font-size:20px;display:inline-block;width:30px;vertical-align:middle;color:#8ee8ec}.hud-right{margin:0}.hud .currency{display:flex;gap:10px;align-items:center;padding:9px 17px;font-size:24px;min-width:130px;line-height:1.1}.hud .currency b{font-size:32px;color:#f6d886}.currency small{display:block;font-size:8px;letter-spacing:.15em;color:#c4af8d;margin-top:5px}.home .base-logo{top:31%;left:7%;font-size:clamp(45px,5.5vw,86px)}.base-tools{top:105px;right:24px}.avatar-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.avatar-grid button{padding:7px;display:flex;align-items:center;flex-direction:column;min-width:0}.avatar-grid .avatar-art,.avatar-grid canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.avatar-grid strong{font-size:11px;margin-top:7px}.avatar-grid small{font-size:9px;color:#9ebfca;margin-top:4px}.profile-avatar{width:110px;height:110px;flex-shrink:0;padding:0;overflow:hidden}.profile-avatar canvas{width:100%;height:100%}
@media(max-width:900px){.avatar-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.hud{inset:12px 14px auto}.commander-dock{width:265px}.home .base-logo{font-size:48px;top:36%}.commander-actions{width:175px}.commander-actions button{padding:7px 10px}}
@media(max-width:650px){.hud{inset:10px 10px auto}.commander-dock{width:230px;max-width:65vw}.commander-card{gap:7px;padding:6px}.hud .avatar-button{width:45px;height:48px}.commander-info{gap:5px}.commander-info strong{font-size:12px}.commander-level{font-size:9px}.commander-level small{font-size:7px}.hud .currency{min-width:80px;padding:8px;font-size:18px;gap:5px}.hud .currency b{font-size:23px}.currency small{font-size:6px}.commander-actions{width:152px;gap:6px;margin-top:7px}.commander-actions button{font-size:9px;padding:6px 9px}.commander-actions span{font-size:17px;width:24px}.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.avatar-grid strong{font-size:9px}.avatar-grid small{font-size:8px}.profile-avatar{width:72px;height:72px}.home .base-logo{top:34%;left:5%;font-size:37px}.base-tools{top:82px;right:12px}}
@media(max-height:500px) and (orientation:landscape){.hud{inset:8px 12px auto}.commander-dock{width:245px}.hud .avatar-button{width:42px;height:42px}.commander-info strong{font-size:12px}.commander-actions{gap:5px;margin-top:5px;width:164px}.commander-actions button{font-size:9px;padding:4px 8px}.commander-actions span{font-size:15px}.home .base-logo{top:40%;font-size:38px}}

.home .base-logo{transform:none}.base-tools{left:auto;right:24px}.base-nav .nav-medallion>.hero-art,.base-nav .nav-medallion>.evolution-art,.base-nav .nav-medallion>.sprite{inset:3px 10% auto;width:80%;height:72%;max-width:80%;margin:0;object-fit:contain}.base-nav .nav-medallion{overflow:hidden}.base-nav .career-medal .big-badge{inset:0 0 19px;display:grid;place-items:center;line-height:1}@media(max-width:650px){.home .base-logo{left:6%;top:26%;transform:none;font-size:37px}.base-tools{left:auto;right:12px;top:82px}.base-character{left:20%;width:64%;height:49%;bottom:20%}}

.base-nav .research-medal>.ability-icon{position:absolute;left:24%;top:9%;width:52%;height:59%;background-size:500% 300%}.hero-records button{background:#152b43;border:1px solid #428793}.result-stats>div,.result-metrics>span{background:#17324b;border:1px solid #5cbdc8}.target-buttons button.selected{background:linear-gradient(135deg,#286f80,#28365c);border-color:#b2f6f2;color:white;box-shadow:inset 0 0 10px #53dfdc55}

/* Unique hero locations: selection view / alternate main-menu view. */
.hero-theme-nova{--hero-bg:url('/assets/hero-neon.png')}
.home.home-theme-nova{background-image:url('/assets/home-neon.png')}
.hero-theme-flux{--hero-bg:url('/assets/flux-lab.png')}
.home.home-theme-flux{background-image:url('/assets/home-flux.png')}
.hero-theme-lyra{--hero-bg:url('/assets/hero-void.png')}
.home.home-theme-lyra{background-image:url('/assets/home-void.png')}
.hero-theme-astra{--hero-bg:url('/assets/astra-vault.png')}
.home.home-theme-astra{background-image:url('/assets/home-astra.png')}
.hero-theme-kaia{--hero-bg:url('/assets/hero-abyss.png')}
.home.home-theme-kaia{background-image:url('/assets/home-abyss.png')}
.hero-theme-kestrel{--hero-bg:url('/assets/hero-hangar.png')}
.home.home-theme-kestrel{background-image:url('/assets/home-hangar.png')}
.hero-theme-velvet{--hero-bg:url('/assets/hero-velvet-v2.png')}
.home.home-theme-velvet{background-image:url('/assets/home-velvet-v2.png')}
.hero-theme-vesper{--hero-bg:url('/assets/hero-vesper-v2.png')}
.home.home-theme-vesper{background-image:url('/assets/home-vesper-v2.png')}
.hero-theme-bastion{--hero-bg:url('/assets/hero-bastion-v2.png')}
.home.home-theme-bastion{background-image:url('/assets/home-bastion-v2.png')}
.hero-theme-volt{--hero-bg:url('/assets/hero-volt-v2.png')}
.home.home-theme-volt{background-image:url('/assets/home-volt-v2.png')}
.hero-theme-zyr{--hero-bg:url('/assets/hero-zyr-v2.png')}
.home.home-theme-zyr{background-image:url('/assets/home-zyr-v2.png')}
.hero-theme-aegis{--hero-bg:url('/assets/hero-aegis-v2.png')}
.home.home-theme-aegis{background-image:url('/assets/home-aegis-v2.png')}
.hero-theme-rivet{--hero-bg:url('/assets/hero-rivet-v2.png')}
.home.home-theme-rivet{background-image:url('/assets/home-rivet-v2.png')}
.hero-theme-orion{--hero-bg:url('/assets/hero-orion-v2.png')}
.home.home-theme-orion{background-image:url('/assets/home-orion-v2.png')}
.hero-theme-echo{--hero-bg:url('/assets/hero-echo-v2.png')}
.home.home-theme-echo{background-image:url('/assets/home-echo-v2.png')}
.hero-theme-nebula{--hero-bg:url('/assets/hero-nebula-v2.png')}
.home.home-theme-nebula{background-image:url('/assets/home-nebula-v2.png')}
.hero-theme-grom{--hero-bg:url('/assets/hero-grom-v2.png')}
.home.home-theme-grom{background-image:url('/assets/home-grom-v2.png')}
.hero-theme-nyx{--hero-bg:url('/assets/hero-nyx-v2.png')}
.home.home-theme-nyx{background-image:url('/assets/home-nyx-v2.png')}
.hero-theme-quasar{--hero-bg:url('/assets/hero-quasar-v2.png')}
.home.home-theme-quasar{background-image:url('/assets/home-quasar-v2.png')}
.hero-theme-zara{--hero-bg:url('/assets/hero-zara-v2.png')}
.home.home-theme-zara{background-image:url('/assets/home-zara-v2.png')}

/* Crew expansion: native-feeling category strip and compact target seals. */
.category-human{--category:#a36b46;--category-dark:#37271d}.category-military{--category:#79864e;--category-dark:#243328}
.unit-seals{display:flex!important;flex-flow:row wrap;gap:3px;justify-content:center;align-items:center;margin-top:4px}
.target-seal{width:23px;height:25px;flex:0 0 23px;display:inline-flex;align-items:center;justify-content:center;color:var(--seal);background:#081421;border:1px solid var(--seal);clip-path:polygon(8% 0,92% 0,100% 70%,50% 100%,0 70%);filter:drop-shadow(0 1px 2px #000)}
.target-seal svg{width:16px;height:16px;fill:currentColor}
.selected-portrait .unit-seals{width:100%}.crew-tile .unit-seals{min-height:25px}
.crew-category-tabs{display:flex;flex-shrink:0;gap:5px;overflow-x:auto;scrollbar-width:none;padding:5px 2px;max-width:100%;overscroll-behavior:contain}
.crew-category-tabs button{flex:0 0 auto;font:12px Orbit,Arial;padding:7px 9px;border:1px solid #4d7894;border-radius:4px;background:#12283d;box-shadow:none;white-space:nowrap}
.crew-category-tabs button.selected{background:#23516a;border-color:#69e3ff;color:#a4f7ff}
.crew-filter{min-width:0;flex-shrink:0}.crew-filter .crew-category-tabs button{font-size:10px;padding:6px}
.seal-guide p{display:grid;grid-template-columns:32px 1fr;gap:4px 10px;align-items:center;margin:15px 0}.seal-guide p>span:last-child{grid-column:2;font-size:13px;line-height:1.4}.seal-guide strong{font-size:18px}
@media(max-width:650px){.target-seal{width:19px;height:21px;flex-basis:19px}.target-seal svg{width:13px;height:13px}.unit-seals{gap:2px}.crew-filter .crew-category-tabs{gap:3px}.crew-filter .crew-category-tabs button{font-size:9px;padding:6px 5px}}

.volume-control{display:grid;grid-template-columns:1fr auto;gap:6px 16px;align-items:center;margin:18px 0}.volume-control output{color:#93f1ff;font-variant-numeric:tabular-nums}.audio-settings input[type=range]{grid-column:1/-1;appearance:none;-webkit-appearance:none;width:100%;height:28px;min-height:28px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline-offset:4px;cursor:pointer;box-sizing:border-box}.audio-settings input[type=range]::-webkit-slider-runnable-track{width:100%;height:8px;border:0;border-radius:4px;background:linear-gradient(to right,#67e0fa 0%,#67e0fa var(--volume),#23394d var(--volume),#23394d 100%)}.audio-settings input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;margin-top:-6px;border:2px solid #c7faff;border-radius:50%;background:#36c5e8;box-shadow:0 0 8px #39c6e950}.audio-settings input[type=range]::-moz-range-track{height:8px;border:0;border-radius:4px;background:#23394d}.audio-settings input[type=range]::-moz-range-progress{height:8px;background:#67e0fa;border-radius:4px}.audio-settings input[type=range]::-moz-range-thumb{width:16px;height:16px;border:2px solid #c7faff;border-radius:50%;background:#36c5e8}

/* A single hero home image replaces the two-layer world background. Reset all layer sizing to prevent tiled edge fragments. */
.world.home{background-size:cover;background-repeat:no-repeat;background-position:center center}

.role-groups{display:block!important}.role-groups .crew-category{width:100%;padding:10px 0 20px;border:0;background:none;box-shadow:none}.role-groups .crew-category h2{text-align:left;border-bottom:1px solid #47809a;padding:6px 10px;margin-bottom:10px;background:linear-gradient(90deg,#173448cc,transparent);font-size:23px}.role-groups h2 small{font-size:13px;color:#93b9ca}.role-groups .crew-pair{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.role-groups .crew-tile{padding:5px 8px 10px;min-width:0}.role-groups .crew-portrait{height:128px;display:flex;justify-content:center}.role-groups .crew-portrait .art-portrait{width:140px;height:128px}.role-groups .crew-tile strong{font-size:15px}.role-groups .crew-tile>span:not(.unit-seals){font-size:11px}.role-groups .crew-tile small{font-size:10px}.role-group>h3{background:#19384e!important;color:#bde9f5}.role-tabs{padding-top:0}.role-tabs button.selected{background:#4b365a;border-color:#d99de9;color:#ffe5ff}
@media(max-width:650px){.role-groups .crew-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.role-groups .crew-portrait{height:100px}.role-groups .crew-portrait .art-portrait{height:100px;width:110px}.role-groups .crew-tile strong{font-size:12px}.role-groups .crew-category h2{font-size:18px}.role-tabs button{font-size:10px}.crew-filter .role-tabs{padding-bottom:2px}}

/* Career insignia and quiet left-side shortcut buttons. */
.career-medal .career-insignia{position:absolute;left:5%;top:-9%;width:90%;height:82%;filter:drop-shadow(0 0 7px #45dce45e);transition:filter .2s,transform .2s}.career-medal:hover .career-insignia,.career-medal:focus-visible .career-insignia{filter:drop-shadow(0 0 12px #59eaffaa);transform:translateY(-3px)}.commander-actions button.icon-only{width:46px;min-width:46px;height:44px;justify-content:center;padding:5px}.commander-actions .icon-only span{font-size:25px;margin:0}
@media(max-width:650px){.commander-actions button.icon-only{width:35px;min-width:35px;height:34px}.commander-actions .icon-only span{font-size:21px}}
@media(prefers-reduced-motion:reduce){.career-medal .career-insignia{transition:none}}

/* Illustrated category cards: same component in the crew room and battle dock. */
.crew-symbol{width:25px;height:25px;flex:0 0 auto;vertical-align:middle;color:var(--crew-color,#78dfed)}
.role-area{--crew-color:#ff9969}.role-boss{--crew-color:#ff6587}.role-air{--crew-color:#62bfff}.role-support{--crew-color:#88f0b2}.role-economy{--crew-color:#ffd05f}.role-slow{--crew-color:#c4a2ff}.role-tactical{--crew-color:#c394ff}.role-aquatic,.role-water{--crew-color:#59e9e1}.role-mech{--crew-color:#f3ab57}.role-alien{--crew-color:#87e692}.role-human{--crew-color:#88bded}.role-military{--crew-color:#adbda4}.role-building{--crew-color:#bbcadc}
.role-section h2,.role-group h3{display:flex;align-items:center;gap:9px;color:var(--crew-color,#b8eef5)}.role-section h2{border-bottom-color:var(--crew-color)}.role-section .crew-pair{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
.illustrated-crew.crew-tile,.illustrated-crew.unit-button{display:flex;flex-direction:column;padding:0;min-height:0;overflow:hidden;border:2px solid var(--crew-color,#74d5e6);border-radius:7px;background:#081421;box-shadow:inset 0 0 12px #03101c;text-align:left;position:relative;isolation:isolate}.illustrated-crew:hover{transform:none;filter:brightness(1.1);box-shadow:0 0 12px color-mix(in srgb,var(--crew-color) 45%,transparent)}.illustrated-crew:focus-visible,.illustrated-crew.selected{outline:3px solid #fff2b5;outline-offset:2px}.crew-illustration{width:100%;aspect-ratio:1.32;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--crew-color) 24%,#0a1626),#091222 75%)}.crew-illustration>.art-portrait{position:absolute;inset:0;width:100%;height:100%;margin:0;transform:none;object-fit:contain}.crew-card-seals{position:absolute;right:4px;top:4px;filter:drop-shadow(0 2px 2px #000);pointer-events:none}.crew-card-seals .unit-seals{display:flex;gap:3px;justify-content:flex-end}.crew-card-footer{display:flex;align-items:center;gap:9px;width:100%;padding:9px 8px 7px;background:linear-gradient(#102738,#07121d);border-top:2px solid var(--crew-color);min-height:66px}.crew-card-footer>div{min-width:0;flex:1}.crew-card-footer .unit-name{position:static;display:block;min-height:0;color:#f2fbff;font-size:15px;font-weight:800;line-height:1.15;white-space:normal;text-transform:none;text-shadow:0 2px 1px #000}.crew-card-role{display:block;color:var(--crew-color);font-size:11px;line-height:1.2;margin-top:4px;white-space:normal}.crew-card-meta{display:flex;justify-content:space-between;gap:5px;align-items:center;padding:5px 8px;background:#091522;width:100%;font-size:10px;color:#c4d7e0}.crew-card-meta .unit-cost{position:static;font-size:11px;line-height:1.3;margin:0;padding:0;color:#ffdf8f;text-align:right}.illustrated-crew.unaffordable .unit-cost{color:#fa8e9b}.illustrated-crew:disabled{filter:saturate(.35);opacity:.65}.roster .crew-card-footer{padding:5px 4px;gap:4px;min-height:48px}.roster .crew-card-footer .crew-symbol{width:19px;height:19px}.roster .crew-card-footer .unit-name{font-size:10px;line-height:1.15}.roster .crew-card-role{font-size:8px;line-height:1.15;margin-top:3px}.roster .crew-card-meta{padding:4px;justify-content:flex-end}.roster .crew-card-meta>span{display:none}.roster .crew-card-meta .unit-cost{font-size:12px}.roster .crew-card-seals .unit-seals svg{width:14px;height:14px}.roster .crew-symbol{width:20px;height:20px}.crew-category-tabs .crew-symbol{width:15px;height:15px;margin-right:3px}
@media(max-width:650px){.role-section .crew-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crew-card-footer{padding:7px 5px;gap:5px;min-height:60px}.crew-card-footer .unit-name{font-size:12px}.crew-card-role{font-size:9px}.crew-card-meta{font-size:8px;padding:4px}.crew-card-meta .unit-cost{font-size:9px}.crew-card-footer .crew-symbol{width:21px;height:21px}.roster .crew-card-footer .crew-symbol{width:16px;height:16px}.roster .crew-card-footer .unit-name{font-size:9px}.roster .crew-card-role{font-size:7px}}

/* Full-screen field index: the world stays fixed; only the archive panes scroll. */
.index-medal>svg{position:absolute;left:17%;top:3%;width:66%;height:72%}.world.index .game-window{display:flex;flex-direction:column;overflow:hidden}.world.index .screen-body{flex:1;min-height:0;overflow:hidden;padding:8px}.index-layout{display:grid;grid-template-columns:160px minmax(220px,.9fr) minmax(350px,1.35fr);gap:12px;height:100%;min-height:0}.index-rail{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px;background:#09172ddb;border-right:1px solid #5fe2e67a}.index-emblem{width:70px;align-self:center}.index-rail h2{font-size:16px;text-align:center;margin:0 0 10px}.index-rail button{font-size:12px;padding:12px 6px;background:#18344d;border:1px solid #3d7084;border-radius:5px}.index-rail button.selected{color:#e7ffff;border-color:#6ff6e2;background:#195568;box-shadow:inset 3px 0 #9ffff3}.index-rail>small{font-size:10px;color:#9cbcc9;line-height:1.5}.index-groups{display:grid;gap:6px;margin:12px 0}.index-groups button{display:flex;justify-content:space-between;gap:5px;font-size:10px}.index-groups small{color:#92eff2}.index-roster{overflow:auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;padding:4px 8px 12px 2px;scrollbar-width:thin}.index-entry{display:flex;flex-direction:column;align-items:center;padding:4px 4px 8px;border:1px solid #486d83;border-radius:6px;background:radial-gradient(ellipse at 50% 35%,#34526a,#102034 75%);min-width:0;box-shadow:0 4px 0 #050f1e}.index-entry.selected{border-color:#a2fff3;box-shadow:0 0 14px #52d8d755,inset 0 -4px #54c7c8}.index-entry .index-art{width:100%;height:130px;object-fit:contain}.index-entry strong{font-size:12px;line-height:1.2;text-align:center;color:#f3feff}.index-entry small{font-size:9px;color:#9eb7ca;margin-top:5px}.index-detail{min-height:0;overflow:auto;background:linear-gradient(145deg,#193650d9,#13192fe8);border:1px solid #668ca1;border-radius:7px;padding:14px;scrollbar-width:thin}.enemy-detail{background:radial-gradient(ellipse at 50% 20%,#4d244c,#121c30 70%)}.index-hero-art{height:235px;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #7abbcc4a}.index-hero-art:after{content:'';position:absolute;bottom:12px;width:62%;height:22px;border:1px solid #69e8d777;border-radius:50%;box-shadow:0 0 22px #53d9ca3a;pointer-events:none}.index-hero-art .index-art{width:100%;height:100%;object-fit:contain;z-index:1}.index-detail-copy h2{font-size:28px;margin:6px 0 10px;color:#e5faff}.index-kicker{display:block;margin-top:16px;color:#74e7e3;font-size:11px;letter-spacing:.1em}.index-detail-copy p{font-size:13px;line-height:1.55;color:#c8dbe9}.index-detail-copy h3{font-size:13px;letter-spacing:.04em;color:#e7c9ff}.index-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:15px 0}.index-stats span{padding:9px 5px;border:1px solid #53748b;border-radius:4px;text-align:center;font-size:9px;background:#0d2132}.index-stats b{display:block;font-size:14px;color:#b7fbef;margin-bottom:4px}.index-counters{display:grid;grid-template-columns:1fr 1fr;gap:7px}.index-counters button{display:flex;align-items:center;gap:7px;font-size:11px;padding:7px;background:#15364b;border:1px solid #4b8d99;border-radius:4px}.index-counters svg{width:25px;height:25px;flex-shrink:0}.index-hint{font-size:11px!important;border-left:3px solid #ad88ea;padding-left:10px}.index-abilities article,.index-paths article{padding:10px 12px;margin:10px 0;background:#0d2135;border:1px solid #435e81;border-left:3px solid #9677d5;border-radius:4px}.index-abilities b{font-size:12px;color:#d8c7ff}.index-abilities p,.index-paths p{font-size:12px;margin:6px 0}.index-abilities small,.index-paths small{font-size:10px;color:#8fdbd7}.tree-lane h3>small{display:block;font-size:10px;color:#8deae4;margin-top:3px}
@media(max-width:950px){.index-layout{grid-template-columns:125px minmax(190px,.8fr) minmax(270px,1.2fr);gap:7px}.index-hero-art{height:180px}.index-entry .index-art{height:100px}.index-detail{padding:10px}.index-detail-copy h2{font-size:23px}.index-rail{padding:8px}.index-rail button{font-size:10px}}
@media(max-width:650px) and (orientation:portrait){.base-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:calc(100% - 16px);gap:4px}.base-nav .nav-medallion,.base-nav .play-medallion{width:100%;min-width:0}.base-nav .nav-medallion{height:59px}.base-nav .play-medallion{height:72px;font-size:27px}.base-nav strong{font-size:8px}.world.index .screen-body{padding:3px}.index-layout{grid-template-columns:81px minmax(0,1fr);grid-template-rows:132px minmax(0,1fr);gap:5px}.index-rail{grid-row:1/3;padding:5px;gap:5px}.index-emblem{width:45px}.index-rail h2{font-size:12px}.index-rail button,.index-groups button{font-size:8px;padding:9px 2px}.index-rail>small{font-size:8px}.index-groups{margin:5px 0}.index-roster{display:flex;overflow:auto;gap:6px;padding:2px 0 7px}.index-entry{flex:0 0 92px;min-width:0}.index-entry .index-art{height:76px}.index-entry strong{font-size:9px}.index-entry small{font-size:7px}.index-detail{grid-column:2;padding:8px}.index-hero-art{height:170px}.index-detail-copy h2{font-size:21px}.index-detail-copy p{font-size:11px}.index-stats{gap:3px}.index-stats b{font-size:10px}.index-stats span{font-size:8px;padding:7px 2px}.index-counters{grid-template-columns:1fr}.index-kicker{font-size:9px}.index-abilities article,.index-paths article{padding:7px}}

/* A single precise launch emblem, with no inherited font-symbol shadow. */
.base-nav .play-medallion{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 12px;animation:none;background:linear-gradient(150deg,#135967,#101d39);box-shadow:inset 0 1px #b2ffef55,0 0 24px #40dac431;overflow:hidden}
.play-medallion .launch-symbol{width:76px;height:76px;flex:0 1 76px;filter:drop-shadow(0 0 7px #62f4dd55);transition:filter .15s}
.base-nav .play-medallion strong{position:static;transform:none;line-height:1.2;letter-spacing:.1em;text-shadow:none;flex-shrink:0}
.base-nav .play-medallion:hover .launch-symbol{filter:drop-shadow(0 0 12px #8fffea)}
.launch-modal{width:min(1120px,94vw)}.launch-options{gap:20px}.launch-options>button{padding:0;overflow:hidden;position:relative;text-align:left;border:1px solid #579aaf;background:#0a1b2e;display:flex;flex-direction:column;min-height:0}
.launch-art{height:clamp(150px,27vh,280px);width:100%;background-size:cover;background-position:center;position:relative;border-bottom:1px solid #62acb8}
.launch-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0a1b2e,transparent 60%)}
.launch-campaign .launch-art{background-image:url('/assets/story-intro.png');background-position:center 35%}.launch-free .launch-art{background-image:url('/assets/terrain-atoll.png')}
.launch-copy{padding:18px 23px 20px;display:flex;flex:1;flex-direction:column;gap:10px}.launch-copy>small{color:#93e9ec;font-size:11px;letter-spacing:.14em}.launch-copy h2{font-size:30px}.launch-copy p{margin:0;color:#b9d1dc;line-height:1.5;font-size:14px;flex:1}.launch-copy b{font-size:12px;color:#f5c77f}.launch-copy .launch-cta{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #3f667b;margin-top:5px;padding-top:12px;color:#e4ffff;font-size:15px;letter-spacing:.06em}.launch-cta i{font-size:28px;line-height:18px;font-style:normal;color:#78f4e9}
@media(max-width:650px) and (orientation:portrait){.base-nav .play-medallion{padding:4px;gap:0}.play-medallion .launch-symbol{width:43px;height:43px;flex-basis:43px}.base-nav .play-medallion strong{font-size:8px}.launch-options{display:grid;grid-template-columns:1fr;gap:12px}.launch-options>button{display:grid;grid-template-columns:31% 1fr}.launch-art{height:100%;min-height:205px}.launch-campaign .launch-art{background-position:60% center}.launch-free .launch-art{background-position:48% center}.launch-copy{padding:13px;gap:6px}.launch-copy h2{font-size:22px}.launch-copy p{font-size:11px}.launch-copy>small{font-size:8px;letter-spacing:.06em}.launch-copy b{font-size:9px}.launch-copy .launch-cta{font-size:11px;padding-top:8px}}
@media(max-height:520px) and (orientation:landscape){.play-medallion .launch-symbol{width:44px;height:44px;flex-basis:44px}.base-nav .play-medallion{padding:4px;gap:0}.launch-art{height:90px}.launch-copy{padding:10px 15px;gap:5px}.launch-copy h2{font-size:20px}.launch-copy p{font-size:10px}.launch-copy>small,.launch-copy b{font-size:9px}.launch-copy .launch-cta{padding-top:5px;font-size:11px}.launch-options{gap:12px}.launch-modal .modal-head{margin-bottom:8px}}

.launch-free .launch-art{background:#0a1b2e}.launch-art>canvas{width:100%;height:100%;object-fit:cover}.launch-art:has(canvas):after{background:linear-gradient(0deg,#0a1b2e88,transparent 35%)}
@media(max-width:650px) and (orientation:portrait){.launch-campaign .launch-art{background-position:40% center}}

/* Long German unit names remain readable in compact two-column deployment cards. */
.crew-card-footer .unit-name,.crew-card-footer .crew-card-role{overflow-wrap:anywhere;hyphens:auto}.crew-card-footer .crew-symbol{flex-shrink:0}

@media(max-height:520px) and (orientation:landscape){.roster .hero-button{height:72px;min-height:72px;position:relative}.roster .hero-button>.hero-art{position:absolute;left:2px;top:0;width:52px;height:70px;max-height:70px}.roster .hero-button>.unit-name{position:absolute;top:8px;left:58px;width:calc(100% - 62px);font-size:11px}.roster .hero-button>.unit-cost{position:absolute;right:5px;bottom:8px;font-size:10px}.roster .wave-intel{padding:3px 6px;font-size:8px}.roster .roster-title{padding-top:3px;padding-bottom:3px}.roster .crew-card-footer{gap:3px;padding:4px 3px}.roster .crew-card-footer .crew-symbol{width:13px;height:13px}.roster .crew-card-footer .unit-name{font-size:9px}.roster .crew-card-role{font-size:7px}}

@media(max-height:520px) and (orientation:landscape){.game-shell .roster .roster-title{height:30px;min-height:30px;padding:2px 6px}.game-shell .roster .roster-title h2{font-size:14px}.game-shell .roster .roster-title>button{height:24px;min-height:24px;font-size:9px;padding:2px 6px}.game-shell .roster .crew-category-tabs{height:24px;min-height:24px;padding:2px;margin:0;gap:3px}.game-shell .roster .crew-category-tabs button{height:20px;min-height:20px;font-size:8px;padding:2px 4px}.game-shell .roster .wave-intel{min-height:27px;margin:2px 5px;padding:2px 5px}.game-shell .roster .match-tools{padding:4px;gap:4px}.game-shell .roster .match-tools .left>button{height:25px;min-height:25px;padding:2px;font-size:10px}.game-shell .roster .match-tools #wave-button{height:48px;min-height:48px;font-size:24px}.game-shell .roster .match-tools #wave-button small{font-size:9px}}

@media(max-height:520px) and (orientation:landscape){.game-shell .roster .match-tools .left{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;margin-bottom:4px}.game-shell .roster .match-tools .left>button{min-width:0}.game-shell .roster .match-tools .left>.gift-button{font-size:0;line-height:1}.game-shell .roster .gift-button::after{content:"100 ◈";font-size:9px}}

@media(max-width:650px) and (orientation:portrait){.index-groups button{min-width:0;flex-direction:column;align-items:center;gap:3px;white-space:normal;overflow-wrap:anywhere}.index-groups small{font-size:10px}.index-rail>button{min-width:0;white-space:normal;font-size:7.5px}}
