/* The transparent overhead sprite leaves the full button available for touch. */
.carrier-token {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--hull-side, 50px);
  height: var(--hull-side, 50px);
  background: url("art/carriers-overhead.webp") var(--paint-x, 0%) center / 600% 100% no-repeat;
  font-style: normal;
  pointer-events: none;
}
.carrier-token[data-paint="1"] { --paint-x: 20%; }
.carrier-token[data-paint="2"] { --paint-x: 40%; }
.carrier-token[data-paint="3"] { --paint-x: 60%; }
.carrier-token[data-paint="4"] { --paint-x: 80%; }
.carrier-token[data-paint="5"] { --paint-x: 100%; }

/* The count is printed on the deck itself, including while moving. */
:is(#queues, #slots, #queue-plan, .flight-mothership) .carrier-token > .carrier-value {
  all: unset;
  color: #fff;
  font: 900 var(--hull-font, 25px)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  -webkit-text-stroke: .13em #122638;
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 #122638;
}

#queues .queue > .unit,
#slots .slot > .unit,
#queue-plan .plan-ship,
.flight-mothership {
  display: grid;
  place-items: center;
  container-type: size;
}
:is(#queues, #slots, #queue-plan) .carrier-token {
  --hull-side: min(98cqw, 97cqh, 70px);
  --hull-font: clamp(16px, min(39cqw, 39cqh), 28px);
}
#queues .queue > .unit::before,
#queue-plan .plan-ship::before { display: none; }
#queues .queue > .unit:not(button) .carrier-token,
#queue-plan .plan-ship:not(.is-next) .carrier-token { opacity: .78; }
#queues .queue > .unit:nth-child(3) .carrier-value { visibility: hidden; }
#queues .queue > button:active:not(:disabled) .carrier-token { transform: translateY(2px); }
#queues .queue > .coach-choice::after { display: none; }
#queues .queue > .coach-choice .carrier-token {
  filter: drop-shadow(0 0 2px #ffdc83);
}

/* Inset circular landing guides are distinct from the ships that occupy them. */
#slots .slot {
  display: grid;
  place-items: center;
  container-type: size;
  background: none;
  filter: none;
}
#slots .slot::before {
  content: '';
  display: block;
  position: static;
  inset: auto;
  transform: none;
  box-sizing: border-box;
  width: min(84cqw, 84cqh, 58px);
  height: auto;
  aspect-ratio: 1.45;
  border-radius: 50%;
  border: 2px solid #638293;
  border-bottom-color: #3f6077;
  background: radial-gradient(ellipse, #203749 50%, #345569 52% 60%, #577b8c 62% 64%, #2c465a 67%);
  box-shadow: 0 2px 1px #122b3d;
}
#slots .slot > .unit {
  inset: 0;
  width: 100%;
  height: 100%;
}
#slots .slot.dispatching::after { display: none; }
.flight-mothership .carrier-token { --hull-side: 100%; --hull-font: 26px; }

/* Keep board and controls anchored as the last ship flies out. */
.toy-gui .game-shell #queues.all-launched {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  background: none;
  border-color: transparent;
  box-shadow: none;
}
#queues.all-launched::before, #queues.all-launched::after { display: none; }
.hangar-beacons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #20394b;
  box-shadow: inset 0 1px 2px #0b2232, 0 1px #758e984d;
  pointer-events: none;
}
.hangar-beacons > i {
  width: 11px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 30%, #c5f6ef, #69bebc 58%, #3d797f);
  box-shadow: 0 0 0 2px #132d40;
}
