
/* Flight deck: shared typography, clear controls and compact phone layout. */
.garage{width:min(1080px,96vw)!important;max-width:none!important;max-height:94dvh;padding:24px!important;color:#e5edf5;background:radial-gradient(ellipse at 20% 15%,#1c303b,#0a101a 65%)!important;border:1px solid #4a626e!important;border-radius:18px!important;box-shadow:0 30px 120px #000d}
.garage::backdrop{background:#030914d9;backdrop-filter:blur(8px)}
.garage .shop-header{border-bottom:1px solid #ffffff18;padding-bottom:16px;margin-bottom:16px}.garage h2{font-size:30px;margin:2px 0}.garage .eyebrow{font-size:10px;letter-spacing:2px;color:#8baab7;margin:0 0 8px}.garage-body{display:grid;grid-template-columns:1fr 1.12fr;gap:28px}.garage h3{font-size:23px;margin:10px 0 6px}.garage p{color:#a9bcc9;font-size:12px;line-height:1.5}.garage-preview{position:relative;height:245px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--accent) 13%,#101923),#0b1018 70%);border:1px solid #8eaeb92a;border-radius:12px;overflow:hidden}.garage-preview>img{height:195px;max-width:90%;object-fit:contain;z-index:2}.bay-grid{position:absolute;inset:45% -30% -30%;background:linear-gradient(#42667540 1px,transparent 1px),linear-gradient(90deg,#42667540 1px,transparent 1px);background-size:28px 28px;transform:perspective(200px) rotateX(45deg)}.bay-ring{position:absolute;width:210px;height:50px;border:1px solid var(--accent);border-radius:50%;bottom:18px;opacity:.4}.bay-label{position:absolute;top:12px;left:14px;font-size:8px;letter-spacing:2px;color:#8dabb5}.garage #garageSpec{font-size:9px;letter-spacing:1px;margin-top:13px}.garage button{font:700 12px 'Neon Sans',sans-serif;min-height:42px;border:1px solid #48616f;border-radius:8px;background:#182934;color:#d9ecf3;cursor:pointer;touch-action:manipulation}.garage button:hover:not(:disabled){background:#254453;border-color:#9ce9d2}.garage button:disabled{opacity:.45;cursor:default}.garage .garage-primary{width:100%;background:#b0f6d5;color:#0b2625;border-color:#b0f6d5}.fleet-label{font-size:10px!important;letter-spacing:1.5px;margin-top:20px!important}.garage .ship-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.garage .fleet-tile{display:flex;align-items:center;flex-direction:column;padding:8px 4px;background:#101a23;min-width:0}.fleet-tile img{height:66px;width:85%;object-fit:contain}.fleet-tile strong{font-size:10px;margin-top:6px}.fleet-tile span{font-size:8px;letter-spacing:1px;color:#9cafbb;margin-top:5px}.garage .fleet-tile[data-selected=true]{border-color:var(--accent);background:#1a3038}.weapon-path{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:22px 0}.weapon-stage{border:1px solid #35404e;border-radius:8px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#7e93a4;background:#0d1721}.weapon-stage>span{font-size:9px}.weapon-stage strong{font-size:9px}.weapon-stage small{font-size:9px;margin-top:6px;white-space:nowrap}.weapon-stage[data-active=true]{border-color:#b0f6d5;background:#1d3837;color:#d7fff0}.weapon-stage[data-done=true]{border-color:#446958;color:#b0ccb8}.upgrade-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #ffffff12;padding:17px 0}.upgrade-row>div{min-width:0}.upgrade-row strong{font-size:13px}.upgrade-row strong span{color:#83a8b8;margin-left:8px;font-size:11px}.upgrade-row small{display:block;color:#8ca5b4;font-size:10px;line-height:1.6;margin-top:5px}.upgrade-row button{flex:0 0 130px}.garage-foot{display:block;color:#7a91a3;font-size:10px;margin-top:12px}.test-tools{border:1px dashed #bd9b4a;border-radius:8px;padding:10px;display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.test-tools[hidden]{display:none}.test-tools button{padding:5px 10px;flex:1}.test-tools label{display:flex;align-items:center;gap:8px;color:#ffe1a3;font-size:11px}.test-tools input{accent-color:#b0f6d5;width:17px;height:17px}.garage #shopNotice{min-height:36px;color:#b0f6d5;margin:12px 0 0}.garage .shop-test-note{padding:8px 10px;background:#59431b44;color:#f6d795;font-size:10px;border-radius:5px}.garage .shop-close{min-height:34px;width:34px;height:34px}.garage .coin-pill{font-size:12px}.garage button:focus-visible{outline:2px solid #b0f6d5;outline-offset:3px}
@media(max-width:700px){.garage{padding:16px!important;width:96vw!important}.garage-body{grid-template-columns:1fr;gap:24px}.garage-preview{height:185px}.garage-preview>img{height:155px}.garage .ship-grid{grid-template-columns:repeat(3,1fr)}.fleet-tile img{height:60px}.garage h2{font-size:25px}.garage .shop-header-tools{gap:6px}.garage .coin-pill{font-size:10px}.garage-workbench h3{font-size:21px}.weapon-path{margin:14px 0}.upgrade-row button{flex-basis:120px}.weapon-stage strong{font-size:8px}}

.ship-test .shop-trigger .coin-pill,.ship-test .shop-header-tools .coin-pill{display:inline-flex}
.garage .shop-header-tools{display:flex;align-items:center;gap:14px}

@media(max-width:799px){.web-app .compact-tools{flex-wrap:wrap}.web-app #testBadgeHome{order:3;flex-basis:100%}.web-app #testBadgeHome:empty{display:none}}

.weapon-icon {
  --energy:#74dfeb;
  width:32px;
  height:32px;
  margin:7px 0 6px;
  color:var(--energy);
}
.weapon-icon.stage-1 { --energy:#80c9ff; }
.weapon-icon.stage-2 { --energy:#a6adff; }
.weapon-icon.stage-3 { --energy:#d49eff; }
.weapon-icon.stage-4 { --energy:#ffd390; }
.pulse-shell { fill:currentColor; opacity:.7; }
.pulse-core { fill:#f4fffc; }
.pulse-charge { fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:1.2; }
.weapon-stage[data-active=true] .weapon-icon { filter:drop-shadow(0 0 5px var(--energy)); }
.upgrade-detail { display:flex; align-items:center; gap:10px; }
.system-icon {
  width:34px; height:34px; flex:0 0 34px; padding:4px;
  color:#93e9df; border:1px solid #466477; border-radius:8px; background:#142431;
  fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
@media(max-width:420px) {
  .upgrade-detail { gap:7px; }
  .system-icon { width:28px; height:28px; flex-basis:28px; padding:3px; }
}

.garage .fleet-tile { position:relative; }
.fleet-rank {
  position:absolute; top:6px; left:7px;
  color:var(--accent); font-size:8px; letter-spacing:.06em;
}
.garage #garageAbility { margin-top:-5px; color:#a9e4d9; }
.pulse-tail { fill:currentColor; opacity:.32; }
.pulse-shell { stroke:currentColor; stroke-width:1; fill:#203848; opacity:1; }
.pulse-core { fill:#f4fffc; }


.purchase-dialog {
  box-sizing: border-box;
  width: min(19rem, calc(100% - 2rem));
  min-height: 10.5rem;
  padding: 1rem;
  border: 1px solid #3d655e;
  border-radius: 1rem;
  background: #101e2a;
  color: #f2fff9;
  text-align: center;
  box-shadow: 0 14px 32px #0009;
}
.purchase-dialog::backdrop { background: #030914ad; }
.purchase-dialog h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.purchase-dialog p { margin: .55rem 0 .85rem; min-height: 2rem; color: #c4d9df; font-size: .84rem; line-height: 1.25; }
.purchase-actions { display: flex; justify-content: center; gap: .5rem; }
.purchase-actions button { width: auto; min-width: 4rem; min-height: 2.5rem; padding: .4rem .65rem; font-size: .77rem; }
.purchase-actions button[hidden] { display: none; }
#equipShip:not(:disabled):active, .upgrade-row button:not(:disabled):active {
  background: #6ef6c9;
  color: #081b1e;
  transform: translateY(1px);
}
