/* Card reveals belong to the board, leaving the field visible. */
.played-face {
 position:fixed; z-index:252; margin:0; width:clamp(120px,16vh,170px);
 transform:translate(-50%,-50%); pointer-events:none;
 animation:playedFaceIn .16s ease-out both;
}
.played-face img {display:block;width:100%;aspect-ratio:5/7;border-radius:7px;box-shadow:0 6px 18px #07121bb8}
.played-face figcaption {position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:5px;white-space:nowrap;color:#edfbff;background:#123045ed;padding:3px 9px;border-radius:4px;font-size:12px}
.played-face.enemy figcaption {color:#ffe2cf}
.field-effect {position:fixed;z-index:258;pointer-events:none;transform:translate(-50%,-100%);background:#0b2939;color:#c4fff0;border:1px solid #7fedcd;border-radius:5px;padding:6px 9px;white-space:nowrap;font:bold 13px sans-serif;animation:effectLift .65s ease-out}
.effect-target {outline:3px solid #87fbd0;outline-offset:2px;filter:drop-shadow(0 0 9px #74e7c28a)}
@keyframes playedFaceIn {from{opacity:.2;translate:0 6px;scale:.93}to{opacity:1;translate:0 0;scale:1}}
@keyframes effectLift {from{translate:0 9px;opacity:.7}to{translate:0 -5px;opacity:1}}
.player-mat {grid-template-columns:clamp(168px,15vw,212px) minmax(0,1fr) 49px;grid-template-rows:17px minmax(88px,1fr) 101px;gap:3px 7px}
.enemy-mat {grid-template-rows:17px 101px minmax(88px,1fr)}
.protection,.enemy-mat .protection {display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-items:center;gap:5px}
.zone-label {font-size:11px;color:#d5eaf9;text-align:center}
.base-zone .unit-wrap,.base-zone .empty-base {width:clamp(62px,5.8vw,90px);max-width:none!important;margin:auto}
.base-zone .empty-base {height:auto;aspect-ratio:5/7;display:grid;place-items:center}
.shield-zone {min-height:0;align-self:center}
.shield-stack {width:clamp(65px,6vw,91px);height:calc(clamp(91px,8.4vw,127px) + 25px);min-height:0;flex:none}
.shield {width:100%;height:auto;aspect-ratio:5/7}
.resource-zone {align-self:stretch;background:#142c3a99;padding:3px 7px}
.resource-heading {position:relative;height:32px;min-height:32px;gap:7px;justify-content:space-between;white-space:nowrap}
.resource-line {height:60px;min-height:0;gap:8px}
.resources {max-width:none;gap:5px;align-items:center}
.resource {width:52px;flex:0 1 52px;height:58px;min-width:22px;font-size:20px}
.resource-deck {width:32px;height:48px}
.fixed-resource-controls {position:absolute;top:4px;right:8px;display:flex;align-items:center;gap:5px;z-index:2}
.fixed-resource-controls button {min-height:27px;padding:4px 9px;font-size:11px}
.choosing-payment .resource-heading {justify-content:flex-start;padding-right:150px}
.payment-progress {font-size:10px}
.choosing-payment .resource-heading>span {font-size:0}
.choosing-payment .resource-heading b {font-size:10px}
@media(max-width:740px){
 .player-mat {grid-template-columns:88px minmax(0,1fr) 26px;grid-template-rows:15px minmax(72px,1fr) 116px;gap:2px}
 .enemy-mat {grid-template-rows:15px 116px minmax(72px,1fr)}
 .protection,.enemy-mat .protection{display:flex;flex-direction:column;justify-content:center;gap:9px}
 .enemy-mat .protection {flex-direction:column-reverse}
 .base-zone .unit-wrap,.base-zone .empty-base{width:53px}
 .shield-stack{width:55px;height:94px}.shield-zone{flex:none}.player-mat{--shield-step:4px}
 .zone-label {font-size:9px;margin-bottom:2px}
 .resource-zone{padding:2px 3px}.resource-heading{height:27px;min-height:27px}.resource-line{height:80px;gap:4px}
 .resources {grid-auto-rows:37px;gap:3px}.resource{width:100%;min-width:0;height:37px;font-size:12px;padding:0}
 .resource-deck {width:18px;height:31px}.fixed-resource-controls{top:2px;right:2px;gap:3px}
 .fixed-resource-controls button,.fixed-resource-controls .primary{min-width:0;font-size:9px;min-height:23px;padding:3px 6px}
 .choosing-payment .resource-heading>span{display:none}.choosing-payment .resource-heading{padding-right:0}
 .payment-progress{font-size:9px}.played-face{width:112px}
}
@media(max-height:680px) and (min-width:741px){.player-mat{grid-template-rows:15px minmax(65px,1fr) 88px}.enemy-mat{grid-template-rows:15px 88px minmax(65px,1fr)}.resource{height:48px}.resource-line{height:49px}.shield-stack{height:110px}}
@media(prefers-reduced-motion:reduce){.played-face,.field-effect{animation:none}}

.hangar{width:min(1120px,100%);margin:0 auto;padding:clamp(25px,5vh,58px) 24px}
.hangar-title,.launch-bar,.loadout header{display:flex;align-items:center;gap:12px}
.hangar-title{justify-content:space-between;margin-bottom:22px}.hangar-title h1{margin:0;font-size:clamp(25px,3vw,38px);letter-spacing:-1px}
.hangar-title a{font-size:13px;color:#acdbef}.loadout-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.loadout{--team:#85dbff;border:1px solid #7294ad55;border-top:3px solid var(--team);border-radius:9px;background:linear-gradient(140deg,#1d3c54,#112638);padding:22px;min-width:0}
.enemy-loadout{--team:#ffb49a;background:linear-gradient(140deg,#303543,#192a38)}
.side-marker{width:9px;height:9px;background:var(--team);transform:rotate(45deg)}.loadout h2{font-size:17px;margin:0}
.loadout select,.launch-bar select{background:#0d1f2f;color:#e3f3fa;border:1px solid #708c9c88;border-radius:5px;padding:10px;font:inherit}
.loadout select{width:100%;margin:16px 0 20px;font-size:13px}
.loadout-preview{display:grid;grid-template-columns:minmax(90px,32%) 1fr;gap:19px;align-items:center}
.loadout-art,.random-art{width:100%;aspect-ratio:5/7;object-fit:cover;border-radius:6px;box-shadow:0 5px 14px #0006}
.random-art{display:grid;place-items:center;background:repeating-linear-gradient(130deg,#354552 0 2px,#192733 2px 12px);border:2px solid #687887}.random-art span{display:grid;place-items:center;border:1px solid #718697;border-radius:50%;width:50%;aspect-ratio:1;font:700 38px monospace;color:#b9cddd}
.loadout-info small{display:block;font-size:11px;color:var(--team)}.loadout-info h3{font-size:clamp(17px,2vw,26px);margin:7px 0;line-height:1.4;overflow-wrap:anywhere}
.loadout-info p{color:#b3c9d6;line-height:1.6;font-size:12px}.loadout-info button{font-size:12px;padding:7px 10px;margin-top:7px}
.launch-bar{margin:18px 0;padding:16px 20px;background:#142b40;border:1px solid #789db43b;border-radius:8px;justify-content:flex-end;flex-wrap:wrap}
.launch-bar label{margin-right:auto;font-size:12px}.launch-bar select{padding:7px;margin-left:6px}.launch-bar button{font-size:13px}
@media(max-width:700px){.hangar{padding:20px 12px}.loadout-grid{grid-template-columns:1fr;gap:10px}.loadout{padding:13px}.loadout select{margin:8px 0}.loadout-preview{grid-template-columns:68px 1fr;gap:11px}.loadout-info p{margin:4px 0}.loadout-info h3{font-size:17px;margin:3px 0}.loadout header h2{font-size:14px}.launch-bar{padding:10px;gap:7px}.launch-bar button{font-size:11px}.hangar-title{margin-bottom:12px}}

.effect-options {display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 15px}
.effect-options label {display:flex;align-items:center;gap:6px;min-height:35px;padding:6px 10px;border:1px solid #60809780;border-radius:5px;background:#142b3c;cursor:pointer}
.effect-options label:has(:checked){border-color:#91e5f7;color:#b8f6ff}
#effect-form fieldset {border:0;padding:0;min-width:0;margin:12px 0}#effect-form legend{font-weight:700}
#effect-form .choice-source{margin:9px 0 15px}#effect-form .choice-source p{white-space:pre-line}
#effect-form button {margin:3px}.looked-cards{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.looked-cards>div{display:grid;gap:3px;width:98px;font-size:11px;color:#d2e3ee}
.looked-cards img{width:100%;border-radius:4px}.looked-cards input{width:40px}
.mat-heading b{max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:450px){
 .own-mat:has(.three-resource-rows){grid-template-rows:15px minmax(65px,1fr) 142px}
 .enemy-mat:has(.three-resource-rows){grid-template-rows:15px 142px minmax(65px,1fr)}
 .resource-zone .resources{grid-template-columns:repeat(5,minmax(0,1fr))}
 .three-resource-rows .resource-line{height:106px}
 .three-resource-rows .resources{grid-auto-rows:33px}
 .three-resource-rows .resource{height:33px}
}
