.spectrum-page {
  background: radial-gradient(1200px 700px at 80% -20%, #1a1a1a 0%, #0b0b0b 60%);
}

body.spectrum-run-active {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.spectrum-main {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding: 18px 0 28px;
  gap: 16px;
}

.spectrum-shell {
  display: grid;
  gap: 16px;
}

.spectrum-toolbar {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel);
  box-shadow: none;
}

.spectrum-toolbar-layout {
  display: block;
}

.spectrum-branding {
  display: grid;
  align-content: center;
  gap: 12px;
}

.spectrum-branding h1 {
  margin: 10px 0 6px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.spectrum-branding p {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 14px;
}

.toolbar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toolbar-chip .material-symbols-outlined {
  font-size: 15px;
  color: #7cffb2;
}

.prelaunch-shell {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.launch-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.launch-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--panel);
  transition: border-color 180ms ease, background 180ms ease;
}

.launch-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: #f2fff8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.launch-step-copy {
  display: grid;
  gap: 4px;
}

.launch-step-copy strong {
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.launch-step-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.launch-step.is-active {
  border-color: rgba(124, 255, 178, 0.38);
  background: linear-gradient(180deg, rgba(124, 255, 178, 0.07), rgba(255, 255, 255, 0.02));
}

.launch-step.is-active .launch-step-number {
  border-color: rgba(124, 255, 178, 0.44);
  background: rgba(124, 255, 178, 0.12);
  color: #cffff1;
}

.launch-step.is-done {
  border-color: rgba(126, 216, 255, 0.2);
  background: rgba(126, 216, 255, 0.04);
}

.launch-step.is-done .launch-step-number {
  border-color: rgba(126, 216, 255, 0.28);
  color: #d9f7ff;
}

.shell-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

[data-guidance] {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.guided-active {
  border-color: rgba(124, 255, 178, 0.34) !important;
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.12) inset;
}

.guided-done {
  border-color: rgba(126, 216, 255, 0.16) !important;
}

.shell-strip,
.shell-section {
  display: grid;
  gap: 10px;
}

.shell-strip {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--panel);
  box-shadow: none;
}

.shell-strip-input {
  border-color: rgba(124, 255, 178, 0.2);
  background:
    linear-gradient(180deg, rgba(124, 255, 178, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.panel-song-input {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124, 255, 178, 0.07) 0%, rgba(124, 255, 178, 0) 48%),
    linear-gradient(180deg, rgba(11, 25, 20, 0.98), rgba(8, 14, 13, 0.98)),
    var(--panel);
}

.panel-quick-picks {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(126, 216, 255, 0.07) 0%, rgba(126, 216, 255, 0) 52%),
    linear-gradient(180deg, rgba(11, 16, 26, 0.98), rgba(9, 12, 18, 0.98)),
    var(--panel);
}

.shell-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.deck-note,
.panel-kicker {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-strip-head,
.shell-section-head {
  display: grid;
  gap: 6px;
}

.shell-card-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.section-badge .material-symbols-outlined {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7cffb2;
  font-size: 16px;
  box-shadow: none;
}

.shell-strip-head p,
.shell-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.overlay-kicker,
.loader-stage-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.shell-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.song-read-btn {
  min-width: 150px;
  justify-content: center;
}

.mix-field {
  display: grid;
  gap: 7px;
}

.mix-field span,
.share-field span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4d4d4;
}

.mix-input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 15px 16px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.mix-input:focus {
  outline: 0;
  border-color: rgba(124, 255, 178, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.22);
}

.shell-inline-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shell-inline-hints span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-inline-hints .material-symbols-outlined {
  font-size: 15px;
  color: #7ed8ff;
}

.overlay-queue {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.quick-pick-groups {
  display: grid;
  gap: 10px;
}

.queue-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

#recent-picks-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.panel-quick-picks .queue-group:last-child {
  background: linear-gradient(180deg, rgba(126, 216, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.queue-group-label {
  color: #deefff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.queue-track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.overlay-track-list {
  overflow: visible;
  padding-bottom: 0;
}

.queue-card {
  appearance: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--panel-2);
  display: inline-block;
  color: #effff6;
  text-align: center;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  inline-size: clamp(108px, 14vw, 140px);
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.queue-card:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 255, 178, 0.28);
  background: rgba(124, 255, 178, 0.04);
}

.queue-card:focus-visible {
  outline: 0;
  border-color: rgba(124, 255, 178, 0.42);
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.18) inset;
}

.queue-card.selected {
  border-color: rgba(124, 255, 178, 0.46);
  background: rgba(124, 255, 178, 0.08);
  box-shadow: none;
}

.shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.shell-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel);
  box-shadow: none;
}

.panel-song-overview,
.panel-song-stats {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.panel-song-overview {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 196, 92, 0.08) 0%, rgba(255, 196, 92, 0) 50%),
    linear-gradient(180deg, rgba(28, 18, 8, 0.96), rgba(16, 12, 9, 0.96)),
    var(--panel-2);
}

.panel-song-stats {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 140, 115, 0.08) 0%, rgba(255, 140, 115, 0) 55%),
    linear-gradient(180deg, rgba(24, 12, 13, 0.96), rgba(14, 10, 11, 0.96)),
    var(--panel-2);
}

.mission-help {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(218, 167, 255, 0.06) 0%, rgba(218, 167, 255, 0) 48%),
    linear-gradient(180deg, rgba(19, 12, 24, 0.98), rgba(13, 10, 17, 0.98)),
    var(--panel);
}

.mission-help-head {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-help-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mission-help-head p {
  margin: 0;
  max-width: 80ch;
  color: var(--muted);
  font-size: 13px;
}

.mission-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.mission-help-block {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 4px;
}

.mission-help-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.help-list li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.help-list strong {
  color: #f7fffb;
  font-weight: 700;
}

.shell-panel-main {
  display: grid;
  gap: 12px;
  border-color: var(--line-2);
}

.shell-panel-main > .shell-section + .shell-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-side {
  display: grid;
  gap: 12px;
}

.overlay-media {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.overlay-media.compact {
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel-2);
}

.overlay-thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.overlay-thumb.hidden {
  display: none;
}

.overlay-copy {
  display: grid;
  gap: 6px;
}

.shell-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.shell-panel > h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.shell-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.overlay-meta {
  color: var(--muted);
  font-size: 12px;
}

.overlay-current {
  display: grid;
  gap: 4px;
}

#track-source,
#status {
  display: none;
}

.overlay-current strong {
  font-size: 16px;
  color: #f7fffb;
}

.overlay-current span {
  color: var(--muted);
  font-size: 12px;
}

.game-status {
  min-height: 20px;
  color: var(--text);
  font-size: 12px;
}

.overlay-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #f1fff7;
}

.overlay-loader.hidden {
  display: none;
}

.overlay-loader-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(124, 255, 178, 0.18);
  border-top-color: rgba(124, 255, 178, 0.92);
  border-radius: 999px;
  animation: spectrum-spin 800ms linear infinite;
}

.overlay-loader-text {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.overlay-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 255, 178, 0.5), rgba(126, 216, 255, 0.94));
  box-shadow: none;
  transition: width 180ms ease;
}

.overlay-progress-track.busy i {
  background:
    linear-gradient(
      90deg,
      rgba(124, 255, 178, 0.46) 0%,
      rgba(126, 216, 255, 0.92) 50%,
      rgba(124, 255, 178, 0.46) 100%
    );
  background-size: 180px 100%;
  animation: spectrum-loader-shift 900ms linear infinite;
}

.overlay-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overlay-stage-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
}

.overlay-stage-pills span.done,
.overlay-stage-pills span.active {
  border-color: rgba(124, 255, 178, 0.32);
  color: var(--text);
  background: rgba(124, 255, 178, 0.06);
}

.overlay-stage-pills span.active {
  box-shadow: none;
}

.analysis-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analysis-grid article,
.results-grid article,
.profile-summary > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--panel-2);
  box-shadow: none;
}

.analysis-grid span,
.results-grid span,
.profile-summary span,
.challenge-stats span {
  display: block;
  color: #a7b2b8;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-grid strong,
.results-grid strong,
.profile-summary strong {
  display: block;
  margin-top: 6px;
  color: #f4fff8;
  font-size: 14px;
}

.shell-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--panel-2);
}

.shell-actions .btn.primary {
  min-width: 220px;
  justify-content: center;
}

.share-field {
  display: grid;
  gap: 7px;
}

.challenge-panel,
.results-panel,
.loadout-panel,
.multiplayer-panel {
  display: grid;
  gap: 12px;
}

.loadout-panel-wide {
  gap: 14px;
}

.challenge-panel {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 208, 106, 0.08) 0%, rgba(255, 208, 106, 0) 48%),
    linear-gradient(180deg, rgba(29, 19, 6, 0.98), rgba(15, 11, 8, 0.98)),
    var(--panel);
}

.results-panel {
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(255, 140, 115, 0.08) 0%, rgba(255, 140, 115, 0) 48%),
    linear-gradient(180deg, rgba(25, 12, 14, 0.98), rgba(14, 10, 11, 0.98)),
    var(--panel);
}

.multiplayer-panel {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(126, 216, 255, 0.08) 0%, rgba(126, 216, 255, 0) 52%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.98), rgba(9, 11, 18, 0.98)),
    var(--panel);
}

.loadout-panel {
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(124, 255, 178, 0.07) 0%, rgba(124, 255, 178, 0) 50%),
    linear-gradient(180deg, rgba(9, 21, 18, 0.98), rgba(8, 13, 12, 0.98)),
    var(--panel);
}

.multiplayer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.multiplayer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.room-key-actions .btn {
  flex: 1 1 180px;
  justify-content: center;
}

.multiplayer-key-input {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.room-key-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(124, 255, 178, 0.2);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(124, 255, 178, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-2);
}

.room-key-label {
  color: #a7b2b8;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.room-key-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.room-roster-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.room-roster-head span,
.room-roster-head strong {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-roster {
  display: grid;
  gap: 8px;
}

.room-roster-item,
.room-roster-empty {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--panel-2);
}

.room-roster-item {
  display: grid;
  gap: 4px;
}

.room-roster-item strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.room-roster-item strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pilot-color, #7cffb2);
}

.room-roster-item span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.results-panel.defeat {
  border-color: rgba(255, 140, 115, 0.28);
  box-shadow: none;
}

.results-panel.victory {
  border-color: rgba(124, 255, 178, 0.32);
}

.results-panel.paused {
  border-color: rgba(126, 216, 255, 0.24);
  box-shadow: none;
}

.results-banner {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 140, 115, 0.12);
  border: 1px solid rgba(255, 140, 115, 0.24);
  color: #ffd4cb;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.results-banner.victory {
  background: rgba(124, 255, 178, 0.12);
  border-color: rgba(124, 255, 178, 0.24);
  color: #d8ffe8;
}

.results-banner.paused {
  background: rgba(126, 216, 255, 0.12);
  border-color: rgba(126, 216, 255, 0.24);
  color: #d8f6ff;
}

.challenge-stats {
  display: grid;
  gap: 8px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loadout-panel-wide .profile-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.loadout-block {
  display: grid;
  gap: 10px;
}

.loadout-heading {
  display: grid;
  gap: 4px;
}

.ship-grid,
.perk-grid,
.achievement-grid {
  display: grid;
  gap: 8px;
}

.ship-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.perk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loadout-panel-wide .ship-grid,
.loadout-panel-wide .perk-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loadout-panel-wide .achievement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loadout-chip {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 12px;
  background: var(--panel-2);
  color: #effff6;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.loadout-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 255, 178, 0.22);
  background: rgba(124, 255, 178, 0.04);
}

.loadout-chip:focus-visible {
  outline: 0;
  border-color: rgba(124, 255, 178, 0.42);
  box-shadow: 0 0 0 1px rgba(124, 255, 178, 0.14) inset;
}

.loadout-chip strong {
  font-size: 13px;
  line-height: 1.1;
}

.loadout-chip-media {
  display: block;
}

.ship-card-visual {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(124, 255, 178, 0.08) 0%, rgba(124, 255, 178, 0) 58%),
    linear-gradient(180deg, rgba(7, 12, 15, 0.96), rgba(10, 16, 18, 0.96));
}

.ship-preview-svg {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.loadout-chip span {
  color: #a7b2b8;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loadout-chip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.loadout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.loadout-tag,
.achievement-reward {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  color: #d8e8e2;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.unlock-note,
.achievement-progress {
  color: #a7b2b8;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loadout-chip.selected {
  border-color: rgba(124, 255, 178, 0.44);
  background: rgba(124, 255, 178, 0.06);
  box-shadow: none;
}

.loadout-chip.locked {
  border-color: rgba(255, 255, 255, 0.08);
}

.loadout-chip.locked strong {
  color: #e3efe9;
}

.loadout-chip.equipped::after,
.loadout-chip.unlocked::after {
  content: attr(data-state);
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(124, 255, 178, 0.08);
  color: var(--accent-2);
}

.loadout-chip.locked::after {
  content: attr(data-state);
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: #c9d1d4;
}

.achievement-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--panel-2);
  display: grid;
  gap: 8px;
}

.achievement-card.unlocked {
  border-color: rgba(124, 255, 178, 0.32);
  background: rgba(124, 255, 178, 0.05);
}

.achievement-card.locked {
  border-color: rgba(255, 255, 255, 0.08);
}

.achievement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.achievement-head strong {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.achievement-head span {
  color: #d1ddd7;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.achievement-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spectrum-stage-wrap {
  position: fixed;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.spectrum-stage-wrap.viewport-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.spectrum-stage-wrap:fullscreen,
.spectrum-stage-wrap:-webkit-full-screen {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
}

.spectrum-stage {
  position: relative;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 246, 184, 0.04), transparent 30%),
    #04070a;
  box-shadow: none;
}

.spectrum-stage canvas {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  background: #020407;
  cursor: crosshair;
  touch-action: none;
}

.stage-shell-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stage-shell-controls .btn {
  border-color: rgba(124, 255, 178, 0.16);
  background: rgba(5, 10, 14, 0.72);
  backdrop-filter: blur(6px);
}

.fullscreen-callout {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 7;
  transform: translateX(-50%);
  border: 1px solid rgba(124, 255, 178, 0.18);
  border-radius: 999px;
  padding: 10px 20px;
  background: rgba(4, 8, 12, 0.72);
  color: #f7fffb;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.fullscreen-callout.visible {
  opacity: 1;
}

.stage-overlay {
  background: rgba(3, 5, 8, 0.58);
  padding: 20px;
  text-align: left;
}

.spectrum-overlay-card {
  width: min(520px, 100%);
  margin: auto;
  padding: 20px;
  display: grid;
  gap: 10px;
  border-color: rgba(124, 255, 178, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 16, 23, 0.94), rgba(5, 8, 12, 0.97)),
    rgba(5, 9, 13, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stage-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), rgba(3, 5, 8, 0.72));
  pointer-events: none;
}

.spectrum-touch-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.spectrum-touch-controls button {
  background: rgba(9, 12, 17, 0.94);
  backdrop-filter: blur(4px);
}

@keyframes spectrum-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spectrum-loader-shift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 180px 0;
  }
}

@media (max-width: 1180px) {
  .launch-flow {
    grid-template-columns: 1fr;
  }

  .shell-strip-grid,
  .shell-grid,
  .mission-help-grid {
    grid-template-columns: 1fr;
  }

  .queue-card {
    font-size: 10.5px;
  }
}

@media (max-width: 820px) {
  .spectrum-main {
    width: min(100%, calc(100% - 16px));
    padding: 8px 0 14px;
  }

  .spectrum-toolbar,
  .shell-panel,
  .mission-help {
    border-radius: 18px;
    padding: 14px;
  }

  .shell-control-row,
  .overlay-media {
    grid-template-columns: 1fr;
  }

  .multiplayer-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid,
  .results-grid,
  .profile-summary,
  .ship-grid,
  .perk-grid,
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overlay-thumb {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .shell-actions {
    flex-direction: column;
  }

  .shell-actions .btn,
  .shell-control-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .spectrum-branding h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .shell-card-title,
  .shell-panel > h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .toolbar-chip-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-grid,
  .results-grid,
  .profile-summary,
  .ship-grid,
  .perk-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .stage-shell-controls {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .stage-shell-controls .btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (hover: none), (pointer: coarse) {
  .spectrum-touch-controls {
    display: grid;
  }
}
