/* Page layout: top bar, rocket slots, then three columns (module palette,
   the rocket on its launch pad, the flight plan). Mobile stacks them. */

.app {
  display: grid;
  gap: var(--gap);
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.noscript {
  padding: 40px;
  text-align: center;
}

/* Top bar */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(202, 115, 159, 0.4));
}
.brand__eyebrow {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.mode {
  justify-self: center;
  width: min(460px, 100%);
}
.mode__hint {
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 12px;
  text-align: center;
}
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools .segmented {
  min-width: 108px;
}

/* Rocket slots */
.slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.slot {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  background: var(--btn);
  box-shadow: var(--bevel);
  overflow: hidden;
}
.slot__pick {
  padding: 5px 14px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.slot__pick:hover {
  background: var(--btn-hover);
  color: var(--ink);
}
.slot.is-active {
  background: var(--pink);
}
.slot.is-active .slot__pick {
  color: #fff;
}
.slot__reset {
  display: grid;
  place-items: center;
  width: 28px;
  border: 0;
  background: none;
  color: var(--ink-mute);
  cursor: pointer;
}
.slot__reset svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.slot__reset:hover {
  color: var(--pink-hi);
}
.slots__spacer {
  flex: 1;
}

/* Three-column workspace */
.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(360px, 460px);
  gap: var(--gap);
  align-items: start;
}

/* Panels: the game's side-screen windows */
.panel {
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px 6px;
  border-bottom: 2px solid var(--outline);
  background: var(--panel-head);
}
.panel--pink > .panel__head {
  background: var(--pink-head);
}
.panel__title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
.panel__body > *,
.plan__section > * {
  min-width: 0;
}

/* Module palette */
.palette {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}
.palette .panel__body {
  overflow-y: auto;
}
.group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--panel-line), transparent);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}
.card {
  position: relative;
  display: grid;
  grid-template-rows: 64px auto auto;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px 8px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--btn);
  box-shadow: var(--bevel);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.12s, box-shadow 0.12s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.card:hover {
  background: var(--btn-hover);
}
.card.is-selected,
.card.has-count {
  background: var(--pink);
}
.card.is-selected .card__meta {
  color: #f1d6e3;
}
.card__img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s;
}
.card:hover .card__img {
  transform: translateY(-2px) scale(1.04);
}
.card__name {
  font-size: 13px;
  line-height: 1.2;
}
.card__meta {
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.25;
}
.card__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 22px;
  padding: 1px 6px;
  border: 2px solid var(--outline);
  border-radius: 11px;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.card__dlc {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(99, 201, 216, 0.18);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--btn);
  box-shadow: var(--bevel);
}
.card-row.has-count {
  background: #5a4258;
}
.card-row.has-count .card-row__meta {
  color: #e0c3d2;
}
.card-row img {
  width: 56px;
  height: 44px;
  object-fit: contain;
}
.card-row__text {
  display: grid;
  min-width: 0;
}
.card-row__name {
  font-size: 13.5px;
  line-height: 1.2;
}
.card-row__meta {
  color: var(--ink-mute);
  font-size: 11.5px;
}
.rows {
  display: grid;
  gap: 6px;
}

/* The rocket on its gantry */
.gantry {
  position: sticky;
  top: 12px;
}
.gantry .panel__body {
  padding: 0;
}
.pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 520px;
  max-height: calc(100vh - 140px);
  padding: 28px 16px 0;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(18, 18, 31, 0) 70%, rgba(18, 18, 31, 0.6)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    radial-gradient(400px 300px at 50% 100%, rgba(251, 176, 59, 0.14), transparent 70%);
}
.stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack__item {
  position: relative;
  display: flex;
  justify-content: center;
  animation: dock 0.28s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.stack__item img {
  width: auto;
  height: calc(var(--tiles, 3) * 26px);
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
}
.stack__item:hover img {
  filter: drop-shadow(0 0 6px rgba(232, 111, 160, 0.7));
}
.stack__remove {
  position: absolute;
  top: 50%;
  right: -34px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.12s;
}
.stack__item:hover .stack__remove,
.stack__remove:focus-visible {
  opacity: 1;
}
@keyframes dock {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
}
.launchpad {
  width: min(320px, 100%);
  height: 18px;
  margin-top: 2px;
  border: 2px solid var(--outline);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(-45deg, var(--warn) 0 12px, #2a2b3d 12px 24px);
  box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.3), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.pad__empty {
  margin: auto;
  color: var(--ink-mute);
  text-align: center;
}
.ruler {
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 14px;
  width: 36px;
  pointer-events: none;
}
.ruler__limit {
  position: absolute;
  left: 0;
  right: -400px;
  bottom: calc(var(--h) * 26px + 18px);
  border-top: 2px dashed var(--bad);
  color: var(--bad);
  font-size: 11px;
}
.ruler__limit span {
  position: absolute;
  top: -18px;
  left: 0;
  white-space: nowrap;
}
.gantry__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 2px solid var(--outline);
  background: var(--panel-raised);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 2px solid var(--outline);
  border-radius: 14px;
  background: var(--panel-deep);
  color: var(--ink-soft);
  font-size: 12.5px;
}
.chip b {
  color: var(--ink);
  font-size: 14px;
}
.chip.is-bad b {
  color: var(--bad);
}

/* Flight plan */
.plan .panel__body {
  gap: 16px;
}
.plan__section {
  display: grid;
  gap: 10px;
}
.label {
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.big small {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
}
.big.is-bad {
  color: var(--bad);
  font-size: 32px;
}
.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 12px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: rgba(244, 74, 71, 0.16);
  box-shadow: inset 4px 0 0 var(--bad);
  color: var(--ink-soft);
  font-size: 13.5px;
}
.verdict svg {
  fill: var(--bad);
  margin-top: 2px;
}
.verdict.is-good {
  background: rgba(26, 186, 0, 0.14);
  box-shadow: inset 4px 0 0 var(--good);
}
.verdict.is-good svg {
  fill: var(--good);
}
.verdict.is-warn {
  background: rgba(251, 176, 59, 0.14);
  box-shadow: inset 4px 0 0 var(--warn);
}
.verdict.is-warn svg {
  fill: var(--warn);
}
.loads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}
.load {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel-raised);
}
.load img {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.load__name {
  color: var(--ink-mute);
  font-size: 12px;
}
.load__value {
  font-size: 18px;
  font-weight: 700;
}
.load__value small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}
.tanks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tank {
  position: relative;
  display: grid;
  justify-items: center;
  width: 72px;
  padding: 6px 4px 6px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel-deep);
  font-size: 12px;
  overflow: hidden;
}
.tank img {
  width: 46px;
  height: 40px;
  object-fit: contain;
}
.tank__gauge {
  position: absolute;
  inset: auto 0 0 0;
  height: calc(var(--fill) * 100%);
  background: linear-gradient(0deg, rgba(202, 115, 159, 0.5), rgba(135, 69, 102, 0.15));
  z-index: 0;
}
.tank > :not(.tank__gauge) {
  position: relative;
  z-index: 1;
}
.tank b {
  font-size: 13px;
}

.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.breakdown td {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.breakdown td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.breakdown tr.is-minus td:last-child {
  color: var(--bad);
}
.breakdown tr.is-total td {
  border-bottom: 0;
  padding-top: 8px;
  font-size: 15px;
}
.breakdown tr.is-total td:last-child {
  color: var(--good);
}

/* Chart */
.chart {
  width: 100%;
  height: auto;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel-deep);
}
.chart__grid line {
  stroke: rgba(255, 255, 255, 0.07);
}
.chart__grid text,
.chart__axis {
  fill: var(--ink-mute);
  font-size: 11px;
  font-family: var(--font-body);
}
.chart__line {
  fill: none;
  stroke: var(--pink-active);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.chart__area {
  fill: rgba(202, 115, 159, 0.16);
}
.chart__target {
  stroke: var(--warn);
  stroke-dasharray: 6 5;
  stroke-width: 1.5;
}
.chart__target-label,
.chart__peak-label {
  fill: var(--ink-soft);
  font-size: 11px;
  font-family: var(--font-body);
}
.chart__peak {
  fill: var(--good);
  stroke: var(--space-0);
  stroke-width: 2;
}
.chart__marker {
  fill: #fff;
  stroke: var(--pink);
  stroke-width: 3;
}
.chart__marker-line {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-dasharray: 3 4;
}

/* Base-game starmap ladder: one rung per 10,000 km, planets on their rungs */
.ladder {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(260px 180px at 80% 0%, rgba(130, 70, 150, 0.35), transparent 70%),
    linear-gradient(180deg, #171728, #1f1f35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.rung {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.rung:hover {
  background: rgba(255, 255, 255, 0.05);
}
.rung.is-reachable::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--good);
}
.rung.is-target {
  background: var(--pink);
  box-shadow: inset 0 0 0 2px var(--outline);
  color: var(--ink);
}
.rung__km {
  font-weight: 700;
  font-size: 13px;
}
.rung__planets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rung__planets img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.rung__rocket {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.rung:not(.is-reachable) .rung__planets img {
  filter: grayscale(0.7) brightness(0.7);
}

/* Spaced Out hex rings */
.hexmap {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  height: auto;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, #26264a, #15152a 75%);
}
.hexmap__hex {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}
.hexmap__hex.is-range {
  fill: rgba(26, 186, 0, 0.2);
  stroke: rgba(26, 186, 0, 0.5);
}
.hexmap__hex.is-return {
  fill: rgba(99, 201, 216, 0.22);
  stroke: rgba(99, 201, 216, 0.45);
}
.hexmap__hex.is-target {
  fill: rgba(202, 115, 159, 0.75);
  stroke: var(--pink-hi);
  stroke-width: 2;
}
.hexmap__home {
  fill: var(--warn);
}
.hexmap text {
  fill: var(--ink-soft);
  font-size: 11px;
  font-family: var(--font-body);
}

.warnings {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--panel-raised);
}
.stat__label {
  color: var(--ink-mute);
  font-size: 12px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}
.stat__value small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
}
.stat__note {
  color: var(--ink-mute);
  font-size: 11.5px;
}

/* Footer */
.footer {
  display: grid;
  gap: 6px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ink-mute);
  font-size: 12.5px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* Responsive */
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .gantry {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }
  .palette {
    position: static;
    max-height: none;
  }
  .plan {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
@media (max-width: 780px) {
  .app {
    padding: 12px 12px 24px;
  }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .mode {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .gantry,
  .plan,
  .palette {
    grid-column: 1;
    grid-row: auto;
  }
  /* On a phone the plan comes right after the palette, before the picture. */
  .plan {
    order: 2;
  }
  .gantry {
    order: 3;
  }
  .brand__eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .pad {
    min-height: 360px;
    max-height: none;
  }
  .big {
    font-size: 36px;
  }
  .brand__logo {
    width: 40px;
    height: 40px;
  }
}

/* Spaced Out: height limit drawn over the launch pad */
.pad__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(var(--max) * var(--px) * 1px + 40px);
  width: 100%;
}
.pad__limit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--max) * var(--px) * 1px + 16px);
  border-top: 2px dashed var(--so);
  color: var(--so);
  font-size: 11.5px;
  pointer-events: none;
}
.pad__limit span {
  position: absolute;
  top: -20px;
  left: 6px;
  padding: 0 4px;
  background: var(--panel);
}
.pad__limit.is-over {
  border-color: var(--bad);
  color: var(--bad);
}

.trip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.trip-row .segmented {
  flex: 1;
  min-width: 200px;
}
.pilot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.muted {
  color: var(--ink-soft);
  font-size: 13.5px;
}
.muted b {
  color: var(--ink);
}
.small {
  font-size: 12px;
  color: var(--ink-mute);
}
.stat__label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat__label .gicon {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
}
.chip .gicon {
  width: 14px;
  height: 14px;
}
details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transform: rotate(-90deg);
  transition: transform 0.15s;
}
details[open] > summary::before {
  transform: none;
}
.hexmap__hex.is-home {
  fill: rgba(251, 176, 59, 0.25);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.legend__item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 2px solid var(--outline);
  border-radius: 3px;
}
.legend__item.is-return::before {
  background: rgba(99, 201, 216, 0.6);
}
.legend__item.is-range::before {
  background: rgba(26, 186, 0, 0.6);
}
.legend__item.is-target::before {
  background: var(--pink-active);
}
.rung__planets img.is-random {
  opacity: 0.55;
  width: 24px;
  height: 24px;
}
.workspace.is-so .card.is-selected {
  background: var(--pink);
}

/* Rocket panel tools: picture or list, clear modules */
.panel__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.segmented--tiny .segmented__item {
  min-height: 24px;
  padding: 2px 10px;
  font-size: 12.5px;
}
.stack__buttons {
  position: absolute;
  top: 50%;
  right: -36px;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.12s;
}
.stack__item:hover .stack__buttons,
.stack__buttons:focus-within {
  opacity: 1;
}
.stack__btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  background: var(--btn);
  box-shadow: var(--bevel);
  color: #fff;
  cursor: pointer;
}
.stack__btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.stack__btn:hover {
  background: var(--pink);
}
@media (hover: none) {
  .stack__buttons {
    opacity: 1;
  }
}
.stack-list {
  max-height: calc(100vh - 220px);
  min-height: 300px;
  padding: 12px;
  overflow-y: auto;
}
.stack-list .rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack-list__count {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--warn);
}

/* An engine the current rocket is too tall for (the game refuses the swap) */
.card.is-blocked {
  cursor: not-allowed;
  background: var(--btn-disabled);
  opacity: 0.75;
}
.card.is-blocked:hover {
  background: var(--btn-disabled);
}
.card.is-blocked .card__img {
  filter: grayscale(0.8);
  transform: none;
}
.card__warn {
  color: #ffd6d5;
  font-size: 11px;
  line-height: 1.2;
}

/* Narrow middle column: the title and the tools wrap as whole pieces. */
.panel__head {
  flex-wrap: wrap;
  row-gap: 6px;
}
.panel__tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.segmented--tiny .segmented__item {
  white-space: nowrap;
}
.footer__studio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
}
.footer__studio img {
  width: 16px;
  height: 18px;
}
