/* The airlock, room labels, and station controls share the same deck. */
.app[data-game="blast"] {
  padding: 0;
  width: min(100%, 1350px);
  min-height: 100svh;
}
.app[data-game="blast"]::before { display: none; }
.station {
  --deck-line: #38545d;
  --deck-ink: #c2d4d5;
  --deck-gold: #ffe2a7;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  background: #101f29;
}
.station-mast {
  position: relative;
  z-index: 8;
  padding: 8px clamp(12px, 3vw, 38px);
  border: 0;
  border-bottom: 1px solid var(--deck-line);
  border-radius: 0;
  background: linear-gradient(180deg, #1c3139, #14262d);
}
.station-mast .game-badge { display: none; }
.station .blast-map-instruments {
  z-index: 7;
  margin: 0;
  padding: 8px clamp(12px, 3vw, 38px);
  border: 0;
  border-bottom: 1px solid var(--deck-line);
  border-radius: 0;
  background: linear-gradient(165deg, #1b323a, #12262e 66%);
  box-shadow: none;
}
.station .viewport { height: clamp(340px, 62svh, 680px); }
.station .stage-footer {
  min-height: 48px;
  padding: 4px clamp(10px, 3vw, 38px);
  border: 0;
  border-top: 1px solid #2b434b;
  background: transparent;
}
.station .map-button { min-height: 44px; }
.station .room-marker.selected { box-shadow: 0 0 12px #ffe1a04f; }
.airlock-controls, .station-deck {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 6px clamp(12px, 3vw, 38px);
}
.airlock-controls {
  min-height: 44px;
  border-bottom: 1px solid var(--deck-line);
  background: repeating-linear-gradient(105deg, #2b3d41 0 7px, #26373d 7px 14px);
}
.station-deck { justify-content: space-between; background: #172b32; }
.station-action, #door-control, .station-switch, .turn-stake > summary {
  min-height: 44px;
  border: 1px solid #587178;
  border-radius: 4px;
  padding: 7px 12px;
  color: #eef7ee;
  background: #20373d;
  font: inherit;
  font-weight: 700;
}
.station-action:not(:disabled), #door-control {
  border-color: #fed797;
  color: #221b14;
  background: linear-gradient(175deg, #ffe9b7, #e8b267);
}
#door-control {
  position: absolute;
  z-index: 6;
  max-width: min(200px, 54%);
  transform: translate(-50%, -100%);
  box-shadow: 0 4px 0 #5f492f, 0 0 21px #000b;
  font-size: clamp(11px, 2.6vw, 15px);
}
#door-control::after {
  content: "";
  position: absolute;
  inset: 100% auto auto 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #e8b267;
}
.launch-command:has([hidden]), .launch-command:has([disabled]) { display: none; }
.station-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--deck-ink);
  font-size: .82rem;
}
.station-telemetry output { margin-inline-start: 5px; color: var(--deck-gold); }
.station-selectors { display: flex; flex-wrap: wrap; gap: 5px; }
.station-switch[aria-pressed="true"] {
  color: var(--deck-gold);
  border-color: #b99057;
  background: #322b1e;
}
.station-switch:disabled { opacity: .65; }
.station .turn-stake { position: relative; padding: 0; border: none; }
.station .turn-stake > summary { display: flex; align-items: center; gap: 8px; }
.station .turn-stake .charge-adjustment { padding-top: 6px; }
.station-log {
  max-width: 850px;
  min-height: 68svh;
  margin-inline: auto;
  padding: clamp(16px, 5vw, 65px);
  background: radial-gradient(ellipse at top left, #284752, #14272e 70%);
}
.station-log .sheet-heading { color: var(--deck-gold); }
.station-log [data-panel] { min-width: 95px; }
.station-log .sheet-panel { line-height: 1.65; }
.station [hidden] { display: none !important; }
@media (max-width: 600px) {
  .station-mast { padding: 3px 10px; }
  .station .blast-map-instruments { padding-inline: 8px; }
  .station .viewport { height: clamp(320px, 100vw, 470px); }
  .station-deck, .airlock-controls { gap: 3px 8px; padding-inline: 8px; }
  .station-switch { padding-inline: 7px; font-size: .82rem; }
  .station .turn-stake > summary { padding-inline: 7px; gap: 4px; font-size: .82rem; }
  .station .stage-footer { padding-inline: 5px; }
  .station .map-button { padding-inline: 6px; }
}


.station-mast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}
.station-mast .header-brand { min-width: 0; }
.station-mast .hud-demo { display: none; }
.station-mast h1 {
  margin: 0;
  color: #ffe5aa;
  font: 800 clamp(18px, 3.5vw, 23px)/1.2 var(--font-ui);
  letter-spacing: .03em;
}
.station-mast :is(.btn-lobby,.header-action-btn) {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: #eeddb9;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}
.station-mast :is(.btn-lobby,.header-action-btn):hover { border-color: #7b9692; }
.station-mast #refill {
  min-height: 44px;
  margin: 0;
  padding-inline: 8px;
}
.station-mast .hud-score strong { font-variant-numeric: tabular-nums; }
.station-mast .info-mark { margin: 0; }
.station #door-control { white-space: nowrap; }
@media (max-width: 379px) {
  .station-mast { gap: 3px; }
  .station-mast .header-zone-right { gap: 0; }
}
