.starship {
  --star-cream: #fff9f2;
  --star-blush: #fff0f7;
  --star-ink: #2b1b54;
  --star-plum-soft: #5c458a;
  --star-coral: #ff6b95;
  --star-coral-deep: #d43d6b;
  --star-gold: #ffd154;
  --star-gold-deep: #df8b00;
  --star-lilac-line: #e4d1ff;
  color: #fff8fd;
  background: linear-gradient(180deg, #1b1e54 0%, #2f2975 54%, #4a358a 100%);
  font-family:
    "Nunito",
    "Fredoka",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Rounded",
    "Hiragino Maru Gothic ProN",
    "PingFang HK",
    "Noto Sans TC",
    sans-serif;
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  box-sizing: border-box;
}

.starship [hidden] {
  display: none !important;
}

.starship button,
.starship select {
  font: inherit;
  min-height: 56px;
  min-width: 56px;
  border: 2px solid #ffd4e8;
  border-radius: 18px;
  padding: 6px 12px;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.starship button {
  background: linear-gradient(180deg, #fffdf9 0%, #ffeaf4 100%);
  color: var(--star-ink);
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(102, 54, 145, 0.35);
}

.starship button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(102, 54, 145, 0.35);
}

.starship button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.starship select {
  background: #ffffff;
  color: var(--star-ink);
  font-weight: 800;
  border-color: var(--star-lilac-line);
}

.starship button:focus-visible,
.starship select:focus-visible {
  outline: 3px solid #ffd66b;
  outline-offset: 2px;
}

/* ---------------- TOP BAR ---------------- */
.starship-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  contain: layout style;
}

.starship-bar > button {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: clamp(15px, 0.95rem, 20px);
  line-height: 1.1;
}

.starship-bar > .math-profile-button {
  flex: 0 1 auto;
  min-width: 56px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, #f5f0ff 0%, #e5daff 100%);
  border-color: #cbb5ff;
}

.starship-bar strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: clamp(14px, 0.95rem, 19px);
  color: #fff3d6;
}

.starship.is-playing .starship-bar strong {
  display: none;
}

/* ---------------- CANDY STORYBOOK HUD ---------------- */
/* Reserve stable HUD geometry for empty and populated feedback. */
.starship-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 5px 10px;
  border-radius: 16px;
  background: rgba(255, 244, 252, 0.11);
  border: 1.5px solid rgba(255, 214, 240, 0.26);
  flex-shrink: 0;
  contain: layout style;
}

.starship-hud [data-hp],
.starship-hud [data-level],
.starship-hud [data-feedback] {
  display: block;
  min-width: 0;
  /* Fixed single-line rows: text appearing, vanishing or overflowing must never
     reflow the HUD, because the stage canvas below is flex:1 and any height
     change resizes the whole scene (and scrolls iPhone Safari). */
  height: 1.32em;
  min-height: 1.32em;
  max-height: 1.32em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(12px, 0.8rem, 18px);
  line-height: 1.28;
}

.starship-energy {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.starship-hud [data-hp].starship-energy {
  display: flex;
}

/* Glowing golden/berry crystal star-gems instead of router bars */
.starship-energy i {
  display: inline-block;
  width: 13px;
  height: 17px;
  border-radius: 6px 6px 9px 9px;
  border: 1.5px solid rgba(235, 212, 255, 0.42);
  background: rgba(34, 24, 74, 0.55);
  box-sizing: border-box;
}

.starship-energy i.full {
  background: linear-gradient(180deg, #fff5a8 0%, #ffc93c 55%, #ff8566 100%);
  border-color: #fff9d6;
  box-shadow: 0 0 8px rgba(255, 209, 84, 0.68);
}

.starship-energy b {
  margin-left: 5px;
  color: #ffe999;
  font-weight: 800;
}

.starship-hud [data-level] {
  color: #ffe6f4;
  font-weight: 800;
}

.starship-hud [data-feedback] {
  color: #ffefa6;
  font-weight: 800;
}

/* ---------------- FULL-CANVAS STAGE ---------------- */
.starship-stage {
  position: relative;
  flex: 1 1 0;
  flex-shrink: 0;
  min-height: 248px;
  min-width: 248px;
  width: 100%;
  max-width: min(100%, 700px);
  align-self: center;
  overflow: hidden;
  overscroll-behavior: none;
  border-radius: 22px;
  border: 2px solid rgba(255, 214, 242, 0.32);
  box-shadow: 0 10px 28px rgba(15, 10, 44, 0.42);
}

.starship canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.starship canvas:active {
  cursor: grabbing;
}

/* ---------------- GAME OVER WRONG-EQUATION REVIEW CARDS ---------------- */
.starship-review-box {
  margin: 8px 0 12px;
  padding: 10px 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #f0d9ff;
  text-align: center;
}

.starship-review-label {
  margin: 0 0 8px;
  font-size: clamp(0.8rem, 2.7vw, 0.92rem);
  font-weight: 900;
  color: #4b2d83;
  line-height: 1.3;
}

.starship-review-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.starship .starship-review-chip {
  min-height: 56px;
  min-width: 56px;
  padding: 6px 8px;
  border-radius: 16px;
  font-size: clamp(0.84rem, 2.9vw, 0.98rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 0%, #fff2f8 100%);
  color: var(--star-ink);
  border: 2px solid #ffc7df;
  box-shadow: 0 3px 0 #e6a8c5;
}

.starship .starship-review-chip.is-missed {
  background: linear-gradient(180deg, #fffdf4 0%, #ffefc2 100%);
  border-color: #ffd470;
  box-shadow: 0 3px 0 #dfb043;
}

.starship .starship-review-chip.is-speaking {
  background: linear-gradient(180deg, #ffe57f 0%, #ffb732 100%);
  color: #3b1e00;
  border-color: #ff9811;
  box-shadow: 0 3px 0 #cc7400;
  transform: translateY(-1px);
}

/* ---------------- STORYBOOK SELECTION & MODAL OVERLAY ---------------- */
.starship-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: safe center;
  justify-content: center;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(95, 68, 168, 0.92) 0%,
    rgba(24, 21, 66, 0.96) 100%
  );
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
}

.starship-options {
  z-index: 41;
}

.starship-card {
  background: linear-gradient(180deg, var(--star-cream) 0%, var(--star-blush) 100%);
  color: var(--star-ink);
  border: 3px solid #ffd1e6;
  border-radius: 28px;
  padding: 16px 14px;
  text-align: center;
  width: min(32rem, 100%);
  max-width: 32rem;
  margin: auto;
  flex: 0 1 auto;
  box-sizing: border-box;
  box-shadow:
    0 16px 42px rgba(16, 10, 48, 0.48),
    inset 0 2px 0 #ffffff;
}

/* DOM order matches the visual and keyboard order of the result card. */
.starship-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.starship-result-card [data-setup],
.starship-review-box {
  width: 100%;
  box-sizing: border-box;
}

.starship-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--star-plum-soft);
  font-weight: 800;
  line-height: 1.2;
}

.starship-hero-art {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex: none;
}

.starship-hero-art img,
.starship-hero-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.starship-hero-art img { object-fit: contain; }

.starship-hero-fallback {
  display: grid;
  place-items: center;
  font-size: 64px;
  line-height: 1;
  background: var(--star-cream);
}

.starship-hero[data-mode="pause"] .starship-hero-art {
  width: 64px;
  height: 64px;
}

.starship-hero[data-mode="pause"] .starship-hero-fallback { font-size: 44px; }

.starship-hero span { color: var(--star-gold-deep); }

.starship-primary-slot { min-height: 64px; }
/* Reserve the actual font-scaled button height during its short reveal delay.
   Visibility keeps it out of hit testing and the accessibility tree. */
.starship .starship-primary-slot [data-start][hidden] {
  display: inline-block !important;
  visibility: hidden;
  pointer-events: none;
}
.starship.is-selecting .starship-primary-slot { display: none; }

.starship-card h2 {
  color: var(--star-ink);
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  font-weight: 900;
  margin: 4px 0 8px;
  line-height: 1.25;
  text-wrap: balance;
}

.starship-card p[data-message] {
  color: var(--star-plum-soft);
  font-weight: 700;
  margin: 6px 0 14px;
  line-height: 1.45;
}

.starship-card p[data-message]:empty {
  display: none;
}

/* Illustrated Hero Role Cards */
.starship-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.starship-roles button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 152px;
  padding: 10px 6px;
  border-radius: 22px;
  color: var(--star-ink);
}

.starship-roles button[data-role="ship"] {
  background: linear-gradient(180deg, #eef9ff 0%, #c8e9ff 100%);
  border: 2.5px solid #82c8ff;
  box-shadow: 0 6px 0 #5aa5e6;
}

.starship-roles button[data-role="fairy"] {
  background: linear-gradient(180deg, #fff1f9 0%, #ffd5ec 100%);
  border: 2.5px solid #ffa3d5;
  box-shadow: 0 6px 0 #e376b2;
}

.starship-roles button[data-role="robot"] {
  background: linear-gradient(180deg, #fff9e6 0%, #ffe2a6 100%);
  border: 2.5px solid #ffc359;
  box-shadow: 0 6px 0 #df9624;
}

/* Preserve >= 50px computed font-size on span while showcasing 84x84 WebP sprite */
.starship-roles button span {
  font-size: 54px;
  line-height: 1;
  /* At 320px wide each card's content box is ~67px; a fixed 84px sprite overflowed into its padding and border. */
  width: min(84px, 100%);
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.starship-roles button span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 8px rgba(43, 27, 84, 0.2));
}

@keyframes starship-role-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .starship.is-selecting .starship-roles button span img {
    animation: starship-role-float 3s ease-in-out infinite;
  }
  .starship.is-selecting .starship-roles button[data-role="fairy"] span img {
    animation-delay: -1s;
  }
  .starship.is-selecting .starship-roles button[data-role="robot"] span img {
    animation-delay: -2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starship button,
  .starship select,
  .starship-hint {
    transition: none;
  }
}

.starship-roles button span.is-fallback::before {
  content: attr(data-emoji);
}

.starship-roles button strong {
  font-size: clamp(0.82rem, 2.8vw, 0.98rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--star-ink);
}

/* Only three immediate-start choices on entry; wider rows fit a phone grip. */
.starship.is-selecting .starship-card {
  width: min(38rem, 100%);
  max-width: 38rem;
  background: linear-gradient(160deg, #34306f 0%, #252052 100%);
  color: #fff8fd;
  border-color: #b8a5ef;
  box-shadow: 0 12px 32px rgba(15, 10, 44, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.starship.is-selecting .starship-card h2 {
  color: #fff0b7;
}

/* Role choices occupy their own row; shadows and focus rings need real space
   before the secondary actions, including when long labels wrap. */
.starship.is-selecting [data-setup] {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px 10px;
}

.starship.is-selecting .starship-roles {
  flex: 0 0 100%;
  min-width: 0;
}

.starship.is-selecting .starship-roles button {
  background: linear-gradient(155deg, #494583 0%, #353064 100%);
  box-shadow: 0 3px 0 rgba(12, 14, 42, 0.55);
}

.starship.is-selecting .starship-roles button strong {
  color: #fff8fd;
}

.starship.is-selecting [data-change-target],
.starship.is-selecting [data-open-math-duel],
.starship.is-selecting [data-cancel-target],
.starship.is-selecting .math-target-option {
  min-width: 0;
  min-height: 56px;
  background: #211d4b;
  color: #fff4d3;
  border-color: #a994d8;
  box-shadow: 0 3px 0 rgba(12, 14, 42, 0.55);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.starship.is-selecting [data-change-target] {
  flex: 1 1 100px;
}

.starship.is-selecting [data-open-math-duel] {
  flex: 2 1 180px;
  border-color: #ffd154;
}

.starship.is-selecting .math-target-option[aria-pressed="true"] {
  background: #ffd154;
  color: var(--star-ink);
  border-color: #fff0b7;
}

@media (orientation: portrait) {
  .starship-roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .starship-roles button {
    flex-direction: row;
    justify-content: flex-start;
    min-height: clamp(88px, 14svh, 116px);
    gap: 16px;
    padding: 12px 18px;
  }
  .starship-roles button span {
    width: min(84px, 25vw);
  }
  .starship-roles button strong {
    min-width: 0;
    font-size: 1.08rem;
    text-align: left;
    overflow-wrap: anywhere;
  }
}

/* Pause / Game Over / Options Modal Buttons */
.starship [data-overlay-back] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #462b78;
  border: 2px solid var(--star-lilac-line);
  box-shadow: 0 4px 0 #d3bcf7;
}

.starship [data-pause-options] {
  margin: 0 8px 8px 0;
  border-radius: 999px;
  background: #ffffff;
  color: #462b78;
  border: 2px solid var(--star-lilac-line);
  box-shadow: 0 4px 0 #d3bcf7;
}

.starship [data-start],
.starship [data-options-close] {
  border-radius: 999px;
  padding: 10px 24px;
  background: linear-gradient(180deg, #ff7ea5 0%, var(--star-coral) 100%);
  color: #ffffff;
  border: 2px solid #ff4d84;
  box-shadow: 0 5px 0 var(--star-coral-deep);
}

.starship [data-options-panel] label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-weight: 800;
  color: var(--star-ink);
}

/* ---------------- BOTTOM STEERING TRACKPAD BAR ---------------- */
.starship-controls {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(116, 92, 198, 0.56) 0%,
    rgba(72, 52, 145, 0.74) 100%
  );
  border: 2px solid rgba(255, 214, 240, 0.52);
  border-radius: 18px;
  padding: 8px 10px;
  min-height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.starship.is-playing .starship-controls {
  padding: 4px 8px;
}

.starship-hint {
  display: block;
  text-align: center;
  margin: 0;
  font-size: clamp(12px, 0.8rem, 16px);
  font-weight: 700;
  color: #fff2bd;
  line-height: 1.25;
  min-width: 0;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.4s;
}

.starship-hint.is-faded { opacity: 0.3; }

/* Selection state hides background chrome cleanly */
.starship.is-selecting .starship-bar,
.starship.is-selecting .starship-hud,
.starship.is-selecting canvas,
.starship.is-selecting .starship-controls {
  visibility: hidden;
}

/* ---------------- COMPACT & LANDSCAPE VIEWPORTS ---------------- */
@media (max-height: 650px) {
  .starship-card {
    padding: 12px 10px;
  }
}

@media (max-height: 500px) {
  .starship-review-box {
    margin: 6px 0 8px;
    padding: 6px 8px 8px;
  }
  .starship-review-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .starship .starship-review-chip {
    min-height: 48px;
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  .starship-roles button {
    min-height: 116px;
    padding: 6px 4px;
  }
  .starship-roles button span {
    font-size: 54px;
    width: 66px;
    height: 66px;
  }
  .starship-roles button span img {
    width: 66px;
    height: 66px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .starship.is-playing {
    display: grid;
    grid-template-columns: minmax(248px, 1fr) 224px;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-items: stretch;
    gap: 4px 8px;
    padding: 4px 8px;
  }
  .starship.is-playing .starship-bar {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .starship.is-playing .starship-stage {
    grid-column: 1;
    grid-row: 2 / 4;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
  .starship.is-playing .starship-hud {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 2px;
    padding: 6px 8px;
  }
  /* Beside the canvas the HUD no longer drives the stage height, so text may wrap. */
  .starship.is-playing .starship-hud [data-level],
  .starship.is-playing .starship-hud [data-feedback] {
    height: auto;
    max-height: none;
    min-height: 1.32em;
    white-space: normal;
  }
  .starship.is-playing .starship-controls {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    place-items: center;
  }
}

.starship .math-target-selector {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.starship .math-target-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.starship .math-target-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.starship .math-target-option:focus-visible { outline: 3px solid #ffd66b; outline-offset: 2px; }

.starship .math-target-option[aria-pressed="true"] {
  background: linear-gradient(180deg, #fff3ad 0%, #ffd154 100%);
  border-color: var(--star-gold-deep);
}

@media (max-height: 300px) and (orientation: landscape) {
  .starship .math-target-selector,
  .starship .math-target-options { gap: 4px; }
  .starship .math-target-option { min-height: 48px; padding: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .starship .math-target-option { transition: none; }
}

.starship .math-duel-hud {
  position: absolute;
  z-index: 5;
  top: max(4px, env(safe-area-inset-top));
  left: 4px;
  right: 4px;
  text-align: center;
  font-size: clamp(12px, 3vw, 16px);
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px #10103a;
  pointer-events: none;
}

.math-duel-lobby { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 12px; background: #111b35cc; }
.math-duel-lobby[hidden] { display: none; }
.math-duel-lobby-panel { max-width: 420px; max-height: 95dvh; overflow: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px; border-radius: 20px; background: #fff8e6; color: #24324a; }
.math-duel-lobby-panel h2, .math-duel-lobby-panel p { width: 100%; text-align: center; margin: 0; }
.math-duel-lobby-panel button, .math-duel-lobby-panel input { min-height: 48px; max-width: 100%; }
.math-duel-code { font-size: 1.4rem; font-weight: bold; }
.math-duel-qr { width: min(160px, 40vw); }
.math-duel-qr svg { display: block; width: 100%; }
.math-duel-hud { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.math-duel-peer-art { width: 26px; height: 26px; object-fit: contain; }
.math-duel-hud .score-pop { animation: math-duel-score-pop 650ms ease-out; }
@keyframes math-duel-score-pop { 40% { transform: scale(1.25); color: #ffe16b; } }
@media (prefers-reduced-motion: reduce) { .math-duel-hud .score-pop { animation: none; } }
.math-duel-hud [data-duel-forfeit] { pointer-events: auto; min-height: 36px; max-width: 30%; font-size: 11px; }
/* The duel score bar has its own space; canvas prompts stay below it. */
.starship.is-duel canvas { top: 40px; height: calc(100% - 40px); }
.math-duel-hud > span { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.starship .math-duel-hud [data-duel-forfeit] { min-width: 48px; min-height: 36px; padding: 4px 6px; white-space: nowrap; max-width: none; }
@media (max-width: 360px) { .math-duel-peer-art { display: none; } }
@media (max-height: 500px) and (orientation: landscape) {
  .starship.is-playing .starship-hint { max-width: 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
}

.starship-start-choice:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; flex: 0 0 100%; gap: 10px; }
.starship-start-choice button { flex: 1 1 110px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; min-height: 56px; padding: 10px 20px; border-radius: 18px; border: 1px solid #f9d875; background: #f6cd60; color: #241337; font-weight: 700; cursor: pointer; }
.starship-roles button[aria-pressed="true"] { outline: 3px solid #ffe28b; outline-offset: 3px; }
