:root {
  --bg0: #05060a;
  --bg1: #070914;
  --panel: rgba(10, 12, 20, 0.72);
  --panel2: rgba(10, 12, 20, 0.52);
  --text: rgba(245, 248, 255, 0.92);
  --muted: rgba(245, 248, 255, 0.64);
  --gold: #ffd45a;
  --blue: #4db2ff;
  --amber: var(--gold);
  --cyan: var(--blue);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  --radius: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: radial-gradient(1200px 780px at 16% 8%, rgba(77, 178, 255, 0.16), transparent 62%),
    radial-gradient(980px 600px at 86% 14%, rgba(255, 212, 90, 0.12), transparent 60%),
    radial-gradient(1100px 720px at 44% 100%, rgba(77, 178, 255, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow: hidden;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.55px;
}

.muted {
  color: var(--muted);
}

/* ---------- Background FX ---------- */

.fx-stars,
.fx-nebula,
.fx-grid,
.fx-scan,
.fx-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-stars {
  z-index: -5;
  opacity: 0.92;
  background-image: radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.62) 45%, transparent 46%),
    radial-gradient(1px 1px at 76% 12%, rgba(255, 255, 255, 0.56) 45%, transparent 46%),
    radial-gradient(1px 1px at 52% 64%, rgba(255, 255, 255, 0.48) 45%, transparent 46%),
    radial-gradient(1px 1px at 22% 78%, rgba(255, 255, 255, 0.42) 45%, transparent 46%),
    radial-gradient(2px 2px at 60% 34%, rgba(255, 255, 255, 0.28) 38%, transparent 39%),
    radial-gradient(2px 2px at 30% 52%, rgba(255, 255, 255, 0.24) 38%, transparent 39%),
    radial-gradient(2px 2px at 86% 74%, rgba(255, 255, 255, 0.18) 38%, transparent 39%);
  filter: drop-shadow(0 0 12px rgba(77, 178, 255, 0.12));
  animation: star-drift 16s linear infinite;
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-2.2%, 1.6%, 0);
  }
}

.fx-nebula {
  z-index: -4;
  opacity: 0.65;
  background: radial-gradient(520px 420px at 20% 20%, rgba(77, 178, 255, 0.12), transparent 70%),
    radial-gradient(680px 520px at 80% 16%, rgba(255, 212, 90, 0.10), transparent 72%),
    radial-gradient(880px 720px at 60% 90%, rgba(77, 178, 255, 0.08), transparent 74%);
  mix-blend-mode: screen;
}

.fx-grid {
  z-index: -3;
  opacity: 0.14;
  background-image: repeating-linear-gradient(0deg, rgba(77, 178, 255, 0.28), rgba(77, 178, 255, 0.28) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(90deg, rgba(255, 212, 90, 0.20), rgba(255, 212, 90, 0.20) 1px, transparent 1px, transparent 78px);
  transform: perspective(1200px) rotateX(55deg) translateY(18%);
  transform-origin: 50% 100%;
  filter: blur(0.1px);
  animation: grid-warp 8.6s ease-in-out infinite;
}

@keyframes grid-warp {
  0%,
  100% {
    transform: perspective(1200px) rotateX(55deg) translateY(18%);
  }
  50% {
    transform: perspective(1200px) rotateX(58deg) translateY(16%);
  }
}

.fx-scan {
  z-index: -2;
  opacity: 0.28;
  background: linear-gradient(180deg, transparent 0%, rgba(77, 178, 255, 0.12) 40%, transparent 70%);
  transform: translateY(-60%);
  animation: scan 6.4s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-60%);
  }
  50% {
    transform: translateY(60%);
  }
}

.fx-vignette {
  z-index: -1;
  background: radial-gradient(900px 520px at 50% 35%, transparent 40%, rgba(0, 0, 0, 0.45) 82%, rgba(0, 0, 0, 0.72) 100%);
}

/* ---------- Intro ---------- */

.intro {
  display: none;
}

body.js .intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
  background: radial-gradient(1000px 700px at 50% 40%, rgba(77, 178, 255, 0.16), rgba(0, 0, 0, 0.86) 60%);
  backdrop-filter: blur(8px);
  transition: opacity 650ms ease;
}

body.js.intro-done .intro {
  opacity: 0;
  pointer-events: none;
}

.intro-inner {
  width: min(720px, calc(100vw - 48px));
  padding: 26px 26px 22px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 212, 90, 0.22);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(500px 240px at 20% 0%, rgba(77, 178, 255, 0.22), transparent 60%),
    radial-gradient(520px 260px at 90% 0%, rgba(255, 212, 90, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.55));
  opacity: 0.95;
  pointer-events: none;
}

.intro-inner > * {
  position: relative;
  z-index: 1;
}

.intro-kicker {
  font-size: 12px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.78);
}

.intro-title {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 7px;
  font-weight: 780;
  text-transform: uppercase;
  line-height: 1.04;
  color: rgba(255, 212, 90, 0.98);
  text-shadow: 0 0 18px rgba(255, 212, 90, 0.22), 0 0 40px rgba(77, 178, 255, 0.10);
  animation: intro-pulse 1.85s ease-in-out infinite;
}

@keyframes intro-pulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.15) brightness(1.08);
  }
}

.intro-sub {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1px;
}

.intro-meter {
  margin-top: 18px;
}

.intro-meter-track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.intro-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 178, 255, 0.88), rgba(255, 212, 90, 0.96));
  box-shadow: 0 0 22px rgba(77, 178, 255, 0.18);
}

.intro-hint {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---------- Layout ---------- */

.layout {
  height: 100%;
  padding: clamp(18px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(77, 178, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255, 212, 90, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 48px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.12;
}

.brand-tag {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.62);
}

.hud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
}

.hud-chip {
  padding: 10px 12px;
  min-width: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.hud-label {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.58);
}

.hud-value {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 1px;
}

.content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
}

.left,
.right {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.wide {
  flex: 1;
  min-height: 0;
}

/* ---------- Frame / Panels ---------- */

.frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(580px 260px at 12% 0%, rgba(77, 178, 255, 0.16), transparent 60%),
    radial-gradient(520px 260px at 92% 0%, rgba(255, 212, 90, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 0;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  background:
    linear-gradient(var(--amber) 0 0) top left / 18px 2px no-repeat,
    linear-gradient(var(--amber) 0 0) top left / 2px 18px no-repeat,
    linear-gradient(var(--amber) 0 0) top right / 18px 2px no-repeat,
    linear-gradient(var(--amber) 0 0) top right / 2px 18px no-repeat,
    linear-gradient(var(--cyan) 0 0) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--cyan) 0 0) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--cyan) 0 0) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--cyan) 0 0) bottom right / 2px 18px no-repeat;
}

.frame > * {
  position: relative;
  z-index: 2;
}

.panel-title {
  padding: 16px 18px 10px;
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.74);
}

/* ---------- Reveal ---------- */

body.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
}

body.js.ui-ready .reveal {
  animation: reveal-in 720ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: calc(var(--reveal, 0) * 110ms);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- Hero / Holo ---------- */

.hero {
  padding: 18px;
}

.hero-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 760;
  color: rgba(255, 212, 90, 0.92);
}

.hero-status {
  font-size: 13.5px;
  color: rgba(245, 248, 255, 0.70);
}

.hero-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.holo {
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(77, 178, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 260px at 10% 0%, rgba(77, 178, 255, 0.12), transparent 64%),
    radial-gradient(520px 260px at 92% 0%, rgba(255, 212, 90, 0.08), transparent 66%);
  pointer-events: none;
}

.holo-head {
  padding: 14px 14px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.holo-label {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.72);
}

.holo-code {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: rgba(245, 248, 255, 0.66);
}

.holo-art {
  position: relative;
  padding: 10px 10px 12px;
}

.holo-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(77, 178, 255, 0.10) 40%, transparent 70%);
  opacity: 0.22;
  transform: translateY(-60%);
  animation: holo-scan 5.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-scan {
  0%,
  100% {
    transform: translateY(-60%);
  }
  50% {
    transform: translateY(60%);
  }
}

.holo-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.holo-grid path {
  stroke: rgba(77, 178, 255, 0.12);
  stroke-width: 1;
}

.holo-draw .line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
}

.holo-draw .line.thin {
  stroke-width: 1.6;
  opacity: 0.75;
}

.holo-draw .line.cyan {
  stroke: rgba(77, 178, 255, 0.82);
  filter: drop-shadow(0 0 10px rgba(77, 178, 255, 0.10));
}

.holo-draw .line.amber {
  stroke: rgba(255, 212, 90, 0.88);
  filter: drop-shadow(0 0 12px rgba(255, 212, 90, 0.10));
}

.holo-draw .pip {
  opacity: 0;
  transform: scale(0.85);
}

.holo-draw .pip.cyan {
  fill: rgba(77, 178, 255, 0.92);
}

.holo-draw .pip.amber {
  fill: rgba(255, 212, 90, 0.96);
}

.holo-draw .fill-ship {
  fill: url(#ship);
  opacity: 0;
}

body.js.ui-ready .holo-draw .line {
  animation: draw 2.1s ease forwards;
  animation-delay: 420ms;
}

body.js.ui-ready .holo-draw .line.thin {
  animation-delay: 560ms;
}

body.js.ui-ready .holo-draw .fill-ship {
  animation: fade-in 900ms ease forwards;
  animation-delay: 980ms;
}

body.js.ui-ready .holo-draw .pip {
  animation: pip-in 520ms ease forwards;
  animation-delay: 1280ms;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 0.45;
  }
}

@keyframes pip-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.holo-footer {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.telemetry {
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 212, 90, 0.16);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tele-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tele-k {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.tele-v {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 212, 90, 0.92);
}

.segbar {
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  gap: 4px;
  padding: 6px 0 2px;
}

.segbar .seg {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.segbar .seg.is-on {
  background: linear-gradient(90deg, rgba(77, 178, 255, 0.88), rgba(255, 212, 90, 0.92));
  border-color: rgba(255, 212, 90, 0.22);
  box-shadow: 0 0 18px rgba(77, 178, 255, 0.12);
  transform: translateY(-0.5px);
}

.segbar[data-mode="indeterminate"] .seg {
  animation: seg-pulse 1.3s ease-in-out infinite;
}

@keyframes seg-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 178, 255, 0.88), rgba(255, 212, 90, 0.94));
  box-shadow: 0 0 22px rgba(77, 178, 255, 0.18);
  transition: width 220ms ease;
}

.progress-track[data-mode="indeterminate"] .progress-fill {
  width: 44%;
  animation: indeterminate 1.1s ease-in-out infinite;
}

@keyframes indeterminate {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(40%);
  }
  100% {
    transform: translateX(210%);
  }
}

.progress-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 22%, transparent 46%);
  opacity: 0.55;
  transform: translateX(-80%);
  animation: shine 2.5s ease-in-out infinite;
}

@keyframes shine {
  0%,
  35% {
    transform: translateX(-80%);
    opacity: 0;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(80%);
    opacity: 0;
  }
}

.tele-stats {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tele-stat {
  padding: 10px 10px 9px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tele-stat .k {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tele-stat .v {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.current .k {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.current .v {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(245, 248, 255, 0.86);
}

.steps {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  align-items: center;
  padding: 9px 8px;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.78;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.step-t {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.step.is-done {
  opacity: 0.92;
  border-color: rgba(77, 178, 255, 0.18);
}

.step.is-done .step-dot {
  border-color: rgba(77, 178, 255, 0.65);
  box-shadow: 0 0 14px rgba(77, 178, 255, 0.10);
}

.step.is-active {
  opacity: 1;
  border-color: rgba(255, 212, 90, 0.22);
  background: radial-gradient(180px 80px at 20% 10%, rgba(255, 212, 90, 0.10), transparent 65%),
    radial-gradient(200px 90px at 90% 80%, rgba(77, 178, 255, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.step.is-active .step-dot {
  border-color: rgba(255, 212, 90, 0.95);
  box-shadow: 0 0 18px rgba(255, 212, 90, 0.12);
}

/* ---------- Lists / Commands / Dispatch ---------- */

.list {
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 212, 90, 0.10);
  border: 1px solid rgba(255, 212, 90, 0.18);
  color: rgba(255, 212, 90, 0.95);
  margin-right: 8px;
  white-space: nowrap;
}

.cmd-grid {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cmd {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(245, 248, 255, 0.92);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.cmd-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 720;
}

.cmd-sub {
  font-size: 12px;
  margin-top: 3px;
}

.dispatch {
  padding: 0 18px 18px;
}

.dispatch-item {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dispatch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.dispatch-title {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 760;
}

.dispatch-date {
  font-size: 12px;
}

.dispatch-body {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}

.gallery-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.32);
}

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 820ms ease, transform 820ms ease;
  filter: saturate(1.08) contrast(1.05);
}

.gallery-img.is-active {
  opacity: 1;
  transform: scale(1.0);
}

.gallery-scan {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 220px at 60% 40%, rgba(77, 178, 255, 0.10), transparent 65%),
    linear-gradient(180deg, transparent 0%, rgba(255, 212, 90, 0.08) 40%, transparent 70%);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateY(-50%);
  animation: gallery-scan 6.8s ease-in-out infinite;
}

@keyframes gallery-scan {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
}

.gallery-title {
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 212, 90, 0.92);
}

.gallery-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.gallery-meta {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* ---------- Server Data / Links ---------- */

.kv {
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: baseline;
}

.k {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.v {
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link {
  color: rgba(255, 212, 90, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 90, 0.30);
  padding-bottom: 2px;
}

.link:hover {
  color: rgba(77, 178, 255, 0.95);
  border-bottom-color: rgba(77, 178, 255, 0.48);
}

.link.is-disabled {
  color: rgba(245, 248, 255, 0.55);
  border-bottom-color: transparent;
  pointer-events: none;
}

/* ---------- Toggles / Tip / Footer ---------- */

.toggle-row {
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 212, 90, 0.18);
}

.toggle[aria-pressed="true"] {
  border-color: rgba(77, 178, 255, 0.30);
  background: radial-gradient(240px 120px at 20% 10%, rgba(77, 178, 255, 0.16), transparent 65%),
    radial-gradient(240px 120px at 90% 70%, rgba(255, 212, 90, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.toggle-title {
  display: block;
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.toggle-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.tip {
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}

.tip-text {
  font-size: 13px;
  line-height: 1.55;
}

.tip-meta {
  display: flex;
  justify-content: flex-end;
}

.footer-row {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Modes ---------- */

body.compact .content {
  grid-template-columns: 1fr 330px;
}

body.high-contrast {
  --panel: rgba(0, 0, 0, 0.76);
  --panel2: rgba(0, 0, 0, 0.56);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.78);
}

body.motion-off .fx-stars,
body.motion-off .fx-grid,
body.motion-off .fx-scan,
body.motion-off .gallery-scan,
body.motion-off .progress-scan,
body.motion-off .holo-art::after,
body.motion-off .intro-title {
  animation: none !important;
}

body.motion-off .gallery-img,
body.motion-off .progress-fill {
  transition: none !important;
}

body.motion-off.js .reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

body.motion-off.js.ui-ready .holo-draw .line {
  animation: none !important;
  stroke-dashoffset: 0 !important;
}

body.motion-off.js.ui-ready .holo-draw .fill-ship {
  animation: none !important;
  opacity: 0.45 !important;
}

body.motion-off.js.ui-ready .holo-draw .pip {
  animation: none !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .content {
    grid-template-columns: 1fr;
  }
  .right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .footer {
    grid-column: 1 / -1;
  }
  .hero-body {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }
  .layout {
    height: auto;
  }
  .header {
    flex-direction: column;
    align-items: stretch;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .right {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-stars,
  .fx-grid,
  .fx-scan,
  .gallery-scan,
  .progress-scan,
  .holo-art::after,
  .intro-title {
    animation: none !important;
  }
  .gallery-img,
  .progress-fill {
    transition: none !important;
  }
  body.js.ui-ready .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
