:root {
  color-scheme: dark;
  --void: #06090f;
  --hull: #0c121c;
  --panel: rgba(12, 20, 32, 0.72);
  --stroke: rgba(57, 210, 192, 0.22);
  --stroke-strong: rgba(57, 210, 192, 0.45);
  --cyan: #39d2c0;
  --cyan-dim: #1a7a70;
  --amber: #f0a030;
  --amber-dim: #8a5a18;
  --rose: #e85a6b;
  --ice: #c8d6e5;
  --muted: #6b7c8f;
  --glow: 0 0 24px rgba(57, 210, 192, 0.18);
  --temp-glow: 0 0 40px rgba(57, 210, 192, 0.25);
  --row-rule: rgba(57, 210, 192, 0.08);
  --gas-cell: rgba(0, 0, 0, 0.22);
  --gas-border: rgba(57, 210, 192, 0.1);
  --bar-track: rgba(57, 210, 192, 0.1);
  --aqi-track: rgba(57, 210, 192, 0.12);
  --earth-fill: rgba(24, 70, 100, 0.6);
  --earth-glow: drop-shadow(0 0 12px rgba(57, 210, 192, 0.35));
  --btn-hover: rgba(57, 210, 192, 0.08);
  --scan-line: rgba(0, 0, 0, 0.06);
  --scan-opacity: 0.35;
  --font-display: "Oxanium", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dayside LEO — high-albedo station readout */
[data-theme="light"] {
  color-scheme: light;
  --void: #c5d8e8;
  --hull: #e4eef6;
  --panel: rgba(248, 252, 255, 0.78);
  --stroke: rgba(12, 88, 98, 0.22);
  --stroke-strong: rgba(12, 88, 98, 0.42);
  --cyan: #0b7a6e;
  --cyan-dim: #096358;
  --amber: #b86a12;
  --amber-dim: #8f520e;
  --rose: #c03448;
  --ice: #0d1b28;
  --muted: #4a6274;
  --glow: 0 0 18px rgba(11, 122, 110, 0.16);
  --temp-glow: 0 0 28px rgba(11, 122, 110, 0.18);
  --row-rule: rgba(12, 88, 98, 0.1);
  --gas-cell: rgba(255, 255, 255, 0.55);
  --gas-border: rgba(12, 88, 98, 0.12);
  --bar-track: rgba(12, 88, 98, 0.12);
  --aqi-track: rgba(12, 88, 98, 0.14);
  --earth-fill: rgba(90, 160, 190, 0.55);
  --earth-glow: drop-shadow(0 0 10px rgba(11, 122, 110, 0.3));
  --btn-hover: rgba(11, 122, 110, 0.1);
  --scan-line: rgba(13, 27, 40, 0.03);
  --scan-opacity: 0.45;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ice);
  font-family: var(--font-mono);
  background: var(--void);
  overflow-x: hidden;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1.2px 1.2px at 8% 12%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 22% 48%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 41% 18%, rgba(200, 240, 255, 0.7), transparent),
    radial-gradient(1px 1px at 63% 72%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 78% 28%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 91% 61%, rgba(200, 240, 255, 0.45), transparent),
    radial-gradient(1px 1px at 15% 81%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 8%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 33% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 70% 90%, rgba(255, 255, 255, 0.5), transparent),
    linear-gradient(180deg, #04070c 0%, #0a1420 55%, #0b1824 100%);
  animation: drift 120s linear infinite;
  transition: opacity 0.45s var(--ease);
}

[data-theme="light"] .starfield {
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(180, 220, 240, 0.7), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(140, 190, 210, 0.45), transparent 55%),
    linear-gradient(180deg, #a8c8dc 0%, #c5d8e8 40%, #d4e4f0 100%);
  animation: none;
}

@keyframes drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 40px -80px, -30px 50px, 20px -40px, -50px 30px, 35px 60px,
      -20px -30px, 15px 40px, -40px 20px, 25px -50px, -15px 35px, 0 0;
  }
}

.earth-limb {
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -35%;
  height: 55vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(24, 90, 120, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 85%, rgba(57, 210, 192, 0.12), transparent 65%);
  filter: blur(2px);
  animation: limb-pulse 8s ease-in-out infinite;
}

[data-theme="light"] .earth-limb {
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(70, 140, 170, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 90%, rgba(255, 255, 255, 0.35), transparent 60%);
}

@keyframes limb-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scan-line) 2px,
    var(--scan-line) 4px
  );
  opacity: var(--scan-opacity);
}

.frame {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

/* —— Mast —— */
.mast {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--stroke);
  animation: fade-down 0.7s var(--ease) both;
}

.mast__theme {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--stroke-strong);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  box-shadow: var(--glow);
}

.theme-toggle__opt {
  padding: 0.4rem 0.55rem;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle[aria-pressed="false"] .theme-toggle__opt--dark,
.theme-toggle[aria-pressed="true"] .theme-toggle__opt--light {
  color: var(--cyan);
  background: var(--btn-hover);
}

.theme-toggle[aria-pressed="false"] .theme-toggle__opt--light,
.theme-toggle[aria-pressed="true"] .theme-toggle__opt--dark {
  color: var(--muted);
}

.mast__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.mast__mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  position: relative;
  box-shadow: var(--glow);
  flex-shrink: 0;
}

.mast__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--cyan-dim);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.mast__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--amber);
}

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

.mast__callsign {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.mast__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  letter-spacing: 0.08em;
  color: var(--ice);
}

.mast__clock time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.status-pill--standby {
  border-color: var(--amber-dim);
  color: var(--amber);
  animation: blink 1.4s steps(2) infinite;
}

.status-pill--live {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: var(--glow);
  animation: none;
}

.status-pill--error {
  border-color: var(--rose);
  color: var(--rose);
  animation: blink 0.8s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.45;
  }
}

/* —— Coords —— */
.coords {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: flex-end;
  padding: 0.65rem 0;
  animation: fade-down 0.7s var(--ease) 0.08s both;
}

.coords__value {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.coords__item--wide .coords__value {
  font-size: 0.95rem;
  max-width: 28ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-ghost {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--stroke-strong);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-ghost:hover {
  background: var(--btn-hover);
  box-shadow: var(--glow);
}

.btn-ghost:active {
  transform: translateY(1px);
}

/* —— Grid —— */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
  flex: 1;
  animation: fade-up 0.8s var(--ease) 0.15s both;
}

.panel {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--stroke);
  padding: 1rem 1.1rem 1.15rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
  opacity: 0.7;
}

.panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  opacity: 0.7;
}

.panel--hero {
  grid-column: span 5;
}

.panel--aq {
  grid-column: span 3;
}

.panel--gas {
  grid-column: span 8;
}

.panel--orbit {
  grid-column: span 4;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.panel__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.panel__tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* Hero temp */
.hero-temp {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.hero-temp__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
  text-shadow: var(--temp-glow);
}

.hero-temp__unit {
  margin-top: 0.45rem;
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.station-voice {
  margin: -0.15rem 0 1rem;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-wrap: pretty;
}

.station-voice::before {
  content: "▸ ";
  opacity: 0.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0;
}

/* Cabin caution */
.caution {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--amber);
  background: rgba(240, 160, 48, 0.08);
  box-shadow: 0 0 20px rgba(240, 160, 48, 0.12);
  animation: fade-down 0.45s var(--ease) both;
}

.caution[hidden] {
  display: none;
}

.caution--severe {
  border-color: var(--rose);
  background: rgba(232, 90, 107, 0.1);
  box-shadow: 0 0 20px rgba(232, 90, 107, 0.14);
}

.caution__tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
  white-space: nowrap;
}

.caution--severe .caution__tag {
  color: var(--rose);
}

.caution__text {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ice);
  line-height: 1.4;
}

/* Hourly strip */
.hourly {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--row-rule);
}

.hourly__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.hourly__legend {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hourly__strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke-strong) transparent;
}

.hourly__cell {
  flex: 0 0 2.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.15rem;
  border: 1px solid transparent;
}

.hourly__cell--now {
  border-color: var(--stroke-strong);
  background: var(--btn-hover);
}

.hourly__hour {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hourly__temp {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
}

.hourly__precip {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.hourly__bar {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hourly__bar i {
  display: block;
  width: 6px;
  min-height: 2px;
  height: calc(var(--p) * 1%);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dim));
  box-shadow: 0 0 6px rgba(57, 210, 192, 0.35);
}

.metric-row--tight {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 0.75rem;
  margin-top: 0.5rem;
}

.metric-row dt {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.metric-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

/* Stack metrics */
.stack {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stack__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--row-rule);
  padding-bottom: 0.35rem;
}

.stack__row dt {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stack__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stack__row small {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.compass {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}

.compass__ring {
  width: 72px;
  height: 72px;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}

.compass__n {
  position: absolute;
  top: 4px;
  font-size: 0.55rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.compass__needle {
  width: 2px;
  height: 28px;
  background: linear-gradient(to top, transparent 40%, var(--cyan));
  transform-origin: bottom center;
  transition: transform 0.8s var(--ease);
  margin-bottom: 14px;
  box-shadow: 0 0 8px var(--cyan);
}

/* AQI */
.aqi {
  text-align: center;
}

.aqi__gauge {
  position: relative;
  width: 140px;
  margin: 0 auto;
}

.aqi__svg {
  width: 100%;
  display: block;
}

.aqi__track {
  fill: none;
  stroke: var(--aqi-track);
  stroke-width: 8;
  stroke-linecap: round;
}

.aqi__fill {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 1s var(--ease), stroke 0.4s;
  filter: drop-shadow(0 0 6px currentColor);
}

.aqi__num {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.aqi__label {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Gas composition */
.gas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gas {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--gas-border);
  background: var(--gas-cell);
}

.gas__top {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.gas__sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.gas__name {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.gas__readout {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.gas__val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gas__unit {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.gas__bar {
  margin-top: 0.45rem;
  height: 3px;
  background: var(--bar-track);
  overflow: hidden;
}

.gas__bar i {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  transition: width 1s var(--ease);
}

.gas__bar--ppm i {
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  box-shadow: 0 0 8px var(--amber);
}

.gas__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Celestial panel */
.astro__visuals {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.astro__sun-svg {
  width: 100%;
  display: block;
}

.astro__horizon {
  stroke: var(--stroke-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.astro__arc {
  fill: none;
  stroke: var(--stroke);
  stroke-width: 1.5;
}

.astro__sun-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 6px var(--amber));
  transition: cx 0.8s var(--ease), cy 0.8s var(--ease);
}

.astro__elev-label {
  display: block;
  text-align: center;
  margin-top: -0.15rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.astro__moon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.astro__moon-svg {
  width: 48px;
  height: 48px;
}

.astro__moon-disc {
  fill: rgba(232, 220, 180, 0.92);
}

[data-theme="light"] .astro__moon-disc {
  fill: #e8d9a8;
}

.astro__moon-shade {
  fill: rgba(6, 9, 15, 0.78);
  transition: x 0.6s var(--ease), width 0.6s var(--ease);
}

[data-theme="light"] .astro__moon-shade {
  fill: rgba(13, 27, 40, 0.55);
}

.astro__moon-ring {
  fill: none;
  stroke: var(--stroke-strong);
  stroke-width: 1;
}

.astro__moon-name {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  max-width: 12ch;
  line-height: 1.3;
}

.orbit__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin: 0.55rem 0 0;
}

.orbit__meta dt {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.orbit__meta dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  animation: fade-up 0.7s var(--ease) 0.25s both;
}

.foot p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot__err {
  color: var(--rose) !important;
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .panel--hero,
  .panel--aq,
  .panel,
  .panel--gas,
  .panel--orbit {
    grid-column: span 6;
  }

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

@media (max-width: 640px) {
  .mast {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .mast__brand {
    grid-column: 1 / -1;
  }

  .mast__clock {
    grid-column: 1 / -1;
  }

  .frame {
    padding: 1rem;
  }

  .panel--hero,
  .panel--aq,
  .panel,
  .panel--gas,
  .panel--orbit {
    grid-column: span 12;
  }

  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-ghost {
    margin-left: 0;
    width: 100%;
  }

  .coords__item--wide .coords__value {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
