:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(11, 18, 32, 0.78);
  --panel-strong: rgba(16, 26, 45, 0.95);
  --line: rgba(134, 184, 255, 0.2);
  --text: #f5f7fb;
  --muted: #aab8cd;
  --blue: #4fb4ff;
  --cyan: #56f0d8;
  --red: #ff6d8a;
  --gold: #ffd36e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.minecraft-route body,
.zomboid-route body {
  background: #071009;
}

.minecraft-route #starfield,
.minecraft-route .hero,
.minecraft-route .tabs,
.minecraft-route .footer,
.zomboid-route #starfield,
.zomboid-route .hero,
.zomboid-route .tabs,
.zomboid-route .footer {
  display: none;
}

.minecraft-route main,
.zomboid-route main {
  width: 100%;
  padding: 0;
}

.minecraft-route .tab-panel,
.zomboid-route .tab-panel {
  display: none;
}

.minecraft-route #minecraft,
.zomboid-route #zomboid {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, #10213d 0, transparent 34%), linear-gradient(135deg, #05070d 0%, #101322 50%, #05070d 100%);
  color: var(--text);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.hero {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: end;
  padding: 68px 0 24px;
}

.kicker, .eyebrow {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.9;
  margin-bottom: 18px;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); margin-bottom: 8px; }
h3 { margin-bottom: 10px; }
.lede {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.countdown-panel, .telemetry, .apod, .launch-card, .news-card, .planet-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.mc-card {
  border: 4px solid #1f1207;
  background:
    linear-gradient(45deg, rgba(79, 132, 42, 0.18) 25%, transparent 25% 50%, rgba(79, 132, 42, 0.18) 50% 75%, transparent 75%),
    #2f2116;
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
  border-radius: 0;
}

.countdown-panel {
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.countdown-panel h2 {
  font-size: 1.2rem;
  min-height: 54px;
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
}

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

.metrics span, .status-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  min-width: 0;
}

.metrics b {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 10px;
  z-index: 20;
  overflow-x: auto;
}

button {
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.tab, .ghost {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tab.active, .ghost:hover {
  border-color: rgba(86, 240, 216, 0.45);
  background: rgba(86, 240, 216, 0.14);
}

main { padding: 28px 0 56px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 18px 0;
}

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

.launch-cockpit {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 180, 255, 0.28);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(3, 8, 16, 0.42), rgba(3, 8, 16, 0.92)),
    url("/static/img/earth-window.jpg") center top / cover no-repeat;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.72), 0 30px 90px rgba(0,0,0,0.35);
}

.launch-cockpit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.74), transparent 28%, transparent 72%, rgba(0,0,0,0.78)),
    repeating-linear-gradient(90deg, rgba(86,240,216,0.06) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(86,240,216,0.035) 0 1px, transparent 1px 54px);
  pointer-events: none;
}

.launch-cockpit > * {
  position: relative;
  z-index: 1;
}

.cockpit-head h2 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(79,180,255,0.5);
}

.cockpit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.cockpit-actions .ghost {
  border-color: rgba(86, 240, 216, 0.28);
  background: rgba(3, 12, 22, 0.7);
  box-shadow: inset 0 0 18px rgba(86, 240, 216, 0.08);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}

.mission-stack,
.cockpit-telemetry,
.main-screen {
  border: 1px solid rgba(86, 240, 216, 0.22);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(14px);
}

.mission-stack,
.cockpit-telemetry {
  padding: 14px;
}

.panel-title {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#missionQueue {
  display: grid;
  gap: 8px;
}

.mission-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-height: 62px;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(79, 180, 255, 0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.mission-button.active {
  border-color: rgba(255, 211, 110, 0.75);
  background: rgba(255, 211, 110, 0.12);
}

.mission-button span {
  color: var(--gold);
  font-weight: 900;
}

.mission-button strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-button em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.main-screen {
  padding: 14px;
  min-width: 0;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 0 8px rgba(0,0,0,0.22), inset 0 0 40px rgba(86,240,216,0.12);
}

.screen-frame iframe,
.screen-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.screen-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.75)), url("/static/img/earth-window.jpg") center / cover no-repeat;
  text-align: center;
}

.screen-placeholder span {
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 900;
}

.screen-placeholder strong {
  max-width: 90%;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.selected-briefing {
  padding-top: 16px;
}

.selected-briefing h3 {
  font-size: clamp(1.3rem, 3vw, 2.3rem);
}

.selected-briefing p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.cockpit-telemetry dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.cockpit-telemetry div {
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.cockpit-telemetry dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.cockpit-telemetry dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cockpit-telemetry dd#statTminus {
  color: var(--gold);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.manifest-head {
  margin-top: 28px;
}

.launch-card, .news-card, .planet-card {
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
}

.launch-card img, .news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #121a29;
}

.card-body { padding: 14px; }
.card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
}
.card-body p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.chip {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(79, 180, 255, 0.12);
  color: #d7ecff;
  font-size: 0.78rem;
}

#earthMap {
  height: 70vh;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0b1220;
}

.orbit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.orbit-stage {
  position: relative;
  min-width: 0;
  border-radius: 8px;
  background: #01030a;
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
}

#orbitCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #01030a;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

#orbitCanvas:active {
  cursor: grabbing;
}

.telemetry { padding: 18px; }
.speedometer {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.speedometer span { display: block; color: var(--muted); }
.speedometer strong { font-size: 1.45rem; color: var(--cyan); }

.sat-object-info {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(86,240,216,0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(86,240,216,0.08), rgba(255,255,255,0.035)),
    rgba(0,0,0,0.18);
}

.sat-object-info span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sat-object-info strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.sat-object-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.orbit-speed-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(2, 7, 18, 0.62);
}

.orbit-canvas-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;
  width: min(620px, calc(100% - 24px));
  margin: 0 auto;
  box-shadow: 0 14px 34px rgba(0,0,0,0.42), inset 0 0 18px rgba(86,240,216,0.06);
  backdrop-filter: blur(12px);
}

.orbit-speed-controls button {
  min-height: 42px;
  border: 1px solid rgba(86,240,216,0.24);
  border-radius: 6px;
  background: rgba(86,240,216,0.1);
  color: #eaffff;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.orbit-speed-controls button:hover {
  background: rgba(86,240,216,0.2);
}

.orbit-speed-controls strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

#orbitResetSpeed {
  grid-column: auto;
}

.orbit-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #01030a;
}

.orbit-stage:fullscreen #orbitCanvas {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.orbit-stage:fullscreen .orbit-canvas-controls {
  bottom: 20px;
}

body.orbit-mobile-fullscreen {
  overflow: hidden;
}

.orbit-stage.mobile-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  background: #01030a;
}

.orbit-stage.mobile-fullscreen #orbitCanvas {
  width: 100vw;
  height: 100dvh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.orbit-stage.mobile-fullscreen .orbit-canvas-controls {
  bottom: max(8px, env(safe-area-inset-bottom));
}

.sls-launch-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: min(320px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(255,211,110,0.34);
  border-radius: 8px;
  background: rgba(2, 7, 18, 0.72);
  box-shadow: 0 14px 34px rgba(0,0,0,0.42), inset 0 0 18px rgba(255,211,110,0.08);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 220ms ease, width 220ms ease, padding 220ms ease;
  transform-origin: top left;
}

.sls-launch-panel.auto-hidden {
  width: 82px;
  padding: 9px 10px;
  opacity: 0.38;
  transform: translateY(-2px);
}

.sls-launch-panel.auto-hidden:hover,
.sls-launch-panel.auto-hidden:focus-within {
  width: min(320px, calc(100% - 24px));
  padding: 12px;
  opacity: 1;
}

.sls-launch-panel span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sls-launch-panel strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(1.2rem, 4vw, 2rem);
  line-height: 1;
}

.sls-launch-panel.auto-hidden span {
  font-size: 0.68rem;
}

.sls-launch-panel.auto-hidden strong {
  margin-top: 2px;
  font-size: 1rem;
}

.sls-launch-panel.auto-hidden .sls-telemetry,
.sls-launch-panel.auto-hidden .sls-view-controls {
  display: none;
}

.sls-launch-panel.auto-hidden:hover .sls-telemetry,
.sls-launch-panel.auto-hidden:hover .sls-view-controls,
.sls-launch-panel.auto-hidden:focus-within .sls-telemetry,
.sls-launch-panel.auto-hidden:focus-within .sls-view-controls {
  display: grid;
}

.sls-telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 0;
}

.sls-telemetry div {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.045);
}

.sls-telemetry dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sls-telemetry dd {
  margin: 2px 0 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sls-view-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.sls-launch-panel button {
  min-height: 34px;
  border: 1px solid rgba(255,211,110,0.36);
  border-radius: 6px;
  background: rgba(255,211,110,0.1);
  color: #fff7dc;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.sls-launch-panel button.active {
  background: rgba(255,211,110,0.24);
  color: var(--gold);
  box-shadow: inset 0 0 18px rgba(255,211,110,0.12);
}

.orbit-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #01030a;
}

.orbit-stage:-webkit-full-screen #orbitCanvas {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.video-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.video-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,211,110,0.42);
  border-radius: 8px;
  color: var(--gold);
  text-decoration: none;
  background: rgba(255,211,110,0.08);
}

.news-card a {
  color: inherit;
  text-decoration: none;
}

.planet-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
}
.planet-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.planet-card { padding: 16px; }
.planet-card strong { color: var(--gold); }
.apod { padding: 16px; }
.apod img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
}

.minecraft-panel {
  font-family: "Trebuchet MS", Inter, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 22px;
  border: 1px solid rgba(141, 255, 102, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 9, 5, 0.2), rgba(4, 9, 5, 0.86) 42%, rgba(4, 9, 5, 0.94)),
    url("/static/img/minecraft-treehouse.png") center / cover no-repeat;
}

.minecraft-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.68)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 8px);
  pointer-events: none;
}

.minecraft-panel > * {
  position: relative;
  z-index: 1;
}

.minecraft-panel .section-head {
  min-height: 190px;
  align-items: start;
  padding-top: 42px;
}

.mc-title {
  display: inline-block;
  padding: 10px 14px 12px;
  border: 4px solid #1f1207;
  background:
    linear-gradient(180deg, rgba(141, 255, 102, 0.18), rgba(20, 52, 18, 0.82)),
    repeating-linear-gradient(90deg, #6f4b2a 0 12px, #4c331e 12px 24px);
  color: #f7ffe8;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 0.95;
  text-shadow: 4px 4px 0 #111, 0 0 18px rgba(141,255,102,0.5);
  box-shadow: inset -5px -5px 0 rgba(0,0,0,0.28), inset 5px 5px 0 rgba(255,255,255,0.12), 0 16px 34px rgba(0,0,0,0.4);
}

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

.mc-card {
  padding: 18px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mc-status-badge {
  position: relative;
  margin-top: 24px;
  min-width: min(360px, 100%);
  border: 4px solid #1f1207;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.72), rgba(11, 18, 9, 0.92)),
    repeating-linear-gradient(90deg, rgba(141,255,102,0.08) 0 2px, transparent 2px 9px);
  color: #f4efd8;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(141,255,102,0.12), 0 14px 26px rgba(0,0,0,0.35);
  overflow: hidden;
}

.mc-status-badge::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: #ffd36e;
  box-shadow: 0 0 12px #ffd36e;
  vertical-align: -1px;
}

.mc-status-badge::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(141,255,102,0.22), transparent);
  animation: mc-scan 1.5s linear infinite;
}

.mc-status-badge.online::before {
  background: #8dff66;
  box-shadow: 0 0 14px #8dff66;
}

.mc-status-badge.offline::before {
  background: #ff6d6d;
  box-shadow: 0 0 14px #ff6d6d;
}

.mc-status-badge.loading::before {
  animation: mc-blink 0.65s steps(2, end) infinite;
}

@keyframes mc-scan {
  to { transform: translateX(360%); }
}

@keyframes mc-blink {
  50% { opacity: 0.25; }
}

.mc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: -1;
}

.mc-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(32, 57, 17, 0.78), rgba(10, 20, 12, 0.55)),
    url("/static/img/minecraft-blossom.png") center / cover no-repeat;
  min-height: 320px;
}

.mc-card:nth-child(2) {
  background:
    linear-gradient(rgba(16, 11, 7, 0.72), rgba(16, 11, 7, 0.8)),
    url("/static/img/minecraft-forest.png") center / cover no-repeat;
}

.mc-card:nth-child(3),
.mc-card:nth-child(5) {
  background:
    linear-gradient(rgba(13, 8, 6, 0.78), rgba(13, 8, 6, 0.84)),
    url("/static/img/minecraft-treehouse.png") center / cover no-repeat;
}

.mc-card:nth-child(4) {
  background:
    linear-gradient(rgba(5, 5, 8, 0.64), rgba(5, 5, 8, 0.86)),
    url("/static/img/minecraft-warden.jpg") center / cover no-repeat;
}

.mc-label {
  display: inline-block;
  padding: 6px 8px;
  margin-bottom: 10px;
  background: #111;
  color: #8dff66;
  border: 2px solid #6b6b6b;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.78rem;
}

.mc-hero h3 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  margin-bottom: 8px;
  text-shadow: 3px 3px 0 #111;
}

.mc-card p,
.mc-steps,
.mc-stats {
  color: #f4efd8;
}

.mc-counter {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 18, 9, 0.94), rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(90deg, rgba(141,255,102,0.06) 0 2px, transparent 2px 8px);
  border: 4px solid #12170d;
  box-shadow:
    inset 0 0 0 3px rgba(141,255,102,0.16),
    inset 0 -18px 40px rgba(0,0,0,0.46),
    0 18px 38px rgba(0,0,0,0.38);
}

.mc-counter strong {
  display: block;
  color: #b9ff72;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(141,255,102,0.72), 3px 3px 0 #061003;
}

.mc-counter span {
  display: block;
  margin-top: 12px;
  color: #f4efd8;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mc-clock-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mc-clock-rack div {
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(141,255,102,0.14), transparent 36%),
    linear-gradient(180deg, #10170e, #030603);
  border: 4px solid #12170d;
  box-shadow:
    inset 0 0 0 3px rgba(141,255,102,0.15),
    inset 0 0 28px rgba(141,255,102,0.1),
    0 18px 38px rgba(0,0,0,0.34);
}

.mc-clock-rack span {
  display: block;
  color: #8dff66;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.mc-clock-rack strong {
  display: block;
  margin-top: 4px;
  color: #b9ff72;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(141,255,102,0.8), 2px 2px 0 #061003;
}

.mc-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mc-stats div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

.mc-stats dt {
  color: #8dff66;
  font-weight: 900;
}

.mc-stats dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.mc-system-card {
  background:
    linear-gradient(rgba(7, 13, 8, 0.82), rgba(5, 8, 5, 0.9)),
    url("/static/img/minecraft-forest.png") center / cover no-repeat;
}

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

.mc-system-grid div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(9, 18, 8, 0.92), rgba(0, 0, 0, 0.78)),
    repeating-linear-gradient(90deg, rgba(141,255,102,0.06) 0 2px, transparent 2px 8px);
  border: 3px solid #1f1207;
  box-shadow:
    inset 0 0 0 2px rgba(141,255,102,0.12),
    inset -4px -4px 0 rgba(0,0,0,0.24);
}

.mc-system-grid span {
  color: #8dff66;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-system-grid strong {
  color: #f4efd8;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 #061003;
}

.mc-steps {
  margin: 0;
  padding-left: 24px;
  line-height: 1.55;
}

.mc-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  padding: 0 14px;
  background: #3f9f38;
  color: white;
  border: 3px solid #1d5c19;
  text-decoration: none;
  font-weight: 900;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.22), inset 3px 3px 0 rgba(255,255,255,0.15);
}

.mc-video-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(rgba(5, 5, 8, 0.68), rgba(5, 5, 8, 0.86)),
    url("/static/img/minecraft-warden.jpg") center / cover no-repeat;
}

.mc-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mc-video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #1f1207;
  background: #000;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.22), 0 12px 28px rgba(0,0,0,0.28);
}

@media (max-width: 900px) {
  .hero, .orbit-layout, .planet-wrap, .cockpit-grid {
    grid-template-columns: 1fr;
  }
  .launch-grid, .news-grid, .video-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1180px); }
  .hero { padding-top: 36px; }
  .metrics, .launch-grid, .news-grid, .video-wall, .planet-rail {
    grid-template-columns: 1fr;
  }
  .minecraft-layout, .mc-hero {
    grid-template-columns: 1fr;
  }
  .mc-video-grid {
    grid-template-columns: 1fr;
  }
  #earthMap { min-height: 420px; }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .launch-cockpit {
    padding: 12px;
  }
  .orbit-canvas-controls {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: calc(100% - 16px);
    left: 8px;
    right: 8px;
    bottom: max(6px, env(safe-area-inset-bottom));
    padding: 6px;
  }
  .orbit-canvas-controls strong {
    display: grid;
    place-items: center;
    min-height: 32px;
    grid-column: auto;
    font-size: 0.72rem;
  }
  .orbit-speed-controls button {
    min-height: 32px;
    padding: 0 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .orbit-stage:fullscreen .orbit-canvas-controls {
    bottom: max(8px, env(safe-area-inset-bottom));
  }
  .sls-launch-panel {
    max-height: min(58vh, 430px);
    overflow: auto;
  }
  .sls-launch-panel.auto-hidden {
    width: 74px;
    max-height: 58px;
    overflow: hidden;
  }
  .sls-launch-panel.auto-hidden:focus-within {
    width: 74px;
    padding: 9px 10px;
    opacity: 0.38;
  }
  .cockpit-actions {
    justify-content: start;
  }
}

@media (hover: none), (pointer: coarse) {
  .sls-launch-panel.auto-hidden:hover,
  .sls-launch-panel.auto-hidden:focus-within {
    width: 82px;
    padding: 9px 10px;
    opacity: 0.38;
  }

  .sls-launch-panel.auto-hidden:hover .sls-telemetry,
  .sls-launch-panel.auto-hidden:hover .sls-view-controls,
  .sls-launch-panel.auto-hidden:focus-within .sls-telemetry,
  .sls-launch-panel.auto-hidden:focus-within .sls-view-controls {
    display: none;
  }
}

/* Main launch page glow-up */
body {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 109, 138, 0.2) 0, transparent 22%),
    radial-gradient(circle at 22% 0%, rgba(86, 240, 216, 0.18) 0, transparent 30%),
    linear-gradient(135deg, #03050b 0%, #0f1424 46%, #06080f 100%);
}

.hero {
  min-height: 48vh;
  align-items: center;
  padding: 48px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 34px -8vw 0;
  z-index: -1;
  border: 1px solid rgba(86,240,216,0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.1), rgba(2, 5, 10, 0.82)),
    url("/static/img/earth-window.jpg") center top / cover no-repeat;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.75), 0 35px 120px rgba(0,0,0,0.45);
  opacity: 0.94;
}

.hero-orbit {
  position: absolute;
  width: min(56vw, 620px);
  aspect-ratio: 1;
  left: -130px;
  top: 20px;
  border: 1px solid rgba(86,240,216,0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 60px rgba(86,240,216,0.16), inset 0 0 36px rgba(86,240,216,0.08);
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 58px;
  border: 1px dashed rgba(255,211,110,0.25);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 126px;
  border-color: rgba(255,109,138,0.25);
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(79,180,255,0.55), 0 16px 46px rgba(0,0,0,0.86);
}

.lede {
  color: #dcecff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-shadow: 0 4px 18px rgba(0,0,0,0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(86,240,216,0.4);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.72);
  box-shadow: inset 0 0 22px rgba(86,240,216,0.08), 0 12px 28px rgba(0,0,0,0.32);
  font-weight: 800;
}

.hero-button.primary {
  border-color: rgba(255,211,110,0.8);
  background: linear-gradient(135deg, rgba(255,211,110,0.28), rgba(255,109,138,0.16));
}

.countdown-panel {
  min-width: 0;
  overflow: hidden;
  border-color: rgba(255,211,110,0.34);
  background:
    linear-gradient(180deg, rgba(9, 17, 31, 0.92), rgba(5, 8, 14, 0.96)),
    repeating-linear-gradient(90deg, rgba(255,211,110,0.055) 0 2px, transparent 2px 10px);
  box-shadow: 0 0 0 8px rgba(255,211,110,0.04), 0 30px 95px rgba(0,0,0,0.62), inset 0 0 44px rgba(255,211,110,0.08);
}

.countdown {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255,211,110,0.7), 3px 3px 0 #04070c;
}

.launch-readout {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.launch-readout span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(86,240,216,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.launch-readout b {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.launch-strip button {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(86,240,216,0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.88), rgba(4,8,16,0.92)),
    repeating-linear-gradient(90deg, rgba(86,240,216,0.045) 0 2px, transparent 2px 11px);
  box-shadow: inset 0 0 26px rgba(86,240,216,0.06);
  text-align: left;
}

.launch-strip button:hover {
  border-color: rgba(255,211,110,0.58);
  transform: translateY(-2px);
  box-shadow: inset 0 0 26px rgba(86,240,216,0.08), 0 18px 34px rgba(0,0,0,0.28);
}

.launch-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  text-shadow: 0 0 12px rgba(86,240,216,0.65);
}

.moon-widget {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(135deg, rgba(15,22,38,0.92), rgba(5,8,16,0.94));
  box-shadow: inset 0 0 36px rgba(255,255,255,0.05), 0 18px 46px rgba(0,0,0,0.3);
}

.moon-visual {
  --moon-shadow-offset: 0%;
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.92), rgba(225,228,218,0.88) 34%, rgba(178,181,176,0.88) 62%, rgba(65,69,78,0.95) 100%);
  box-shadow: 0 0 34px rgba(219,230,255,0.45), inset -18px 0 32px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
}

.moon-visual::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(3, 6, 13, 0.78);
  transform: translateX(var(--moon-shadow-offset));
  filter: blur(1px);
  mix-blend-mode: multiply;
}

.moon-widget h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}

.moon-widget p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.45;
}

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

.moon-stats span {
  padding: 10px;
  border: 1px solid rgba(86,240,216,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.moon-stats b {
  display: block;
  color: var(--gold);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.25rem;
}

.music-widget {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(220px, 320px) 180px;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(86,240,216,0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.9), rgba(4,8,16,0.94)),
    repeating-linear-gradient(90deg, rgba(86,240,216,0.035) 0 2px, transparent 2px 12px);
  box-shadow: inset 0 0 28px rgba(86,240,216,0.06), 0 18px 42px rgba(0,0,0,0.28);
}

.music-toggle {
  min-height: 58px;
  border: 1px solid rgba(255,211,110,0.62);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,211,110,0.24), rgba(86,240,216,0.12));
  color: var(--gold);
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(255,211,110,0.12), 0 0 24px rgba(255,211,110,0.08);
}

.music-now h2 {
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.music-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.music-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(86,240,216,0.5);
}

.music-widget select {
  min-height: 44px;
  border: 1px solid rgba(86,240,216,0.24);
  border-radius: 8px;
  background: #07101d;
  color: var(--text);
  padding: 0 10px;
}

.music-volume {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.music-volume input {
  width: 100%;
  accent-color: var(--cyan);
}

.sat-preview {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 12px 0;
  border-radius: 8px;
  background: #03060d;
}

.sat-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.sat-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(86,240,216,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  text-align: left;
}

.sat-list-item:hover {
  border-color: rgba(255,211,110,0.48);
  background: rgba(255,211,110,0.08);
}

.sat-list-item span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sat-list-item strong {
  color: var(--text);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sat-list-item em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.tabs {
  background: rgba(5, 8, 14, 0.92);
}

.tab.active,
.ghost:hover {
  background: linear-gradient(135deg, rgba(86,240,216,0.18), rgba(255,211,110,0.08));
}

.launch-cockpit {
  padding: 22px;
  box-shadow: inset 0 0 95px rgba(0,0,0,0.78), 0 34px 110px rgba(0,0,0,0.48);
}

.launch-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16,26,45,0.88), rgba(6,10,18,0.96));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.launch-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,211,110,0.58);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42), 0 0 28px rgba(255,211,110,0.11);
}

.launch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,0.38));
}

.launch-card-timer {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid rgba(255,211,110,0.6);
  border-radius: 8px;
  background: rgba(2,5,10,0.78);
  color: var(--gold);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255,211,110,0.22);
}

.launch-card .card-body {
  position: relative;
  z-index: 1;
}

.loading-card {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  border-color: rgba(86,240,216,0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(86,240,216,0.14), transparent 38%),
    linear-gradient(180deg, rgba(16,26,45,0.9), rgba(6,10,18,0.98));
}

.loading-card .card-body {
  max-width: 620px;
}

.loading-orbit {
  display: inline-block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 2px solid rgba(86,240,216,0.24);
  border-top-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(86,240,216,0.22), inset 0 0 18px rgba(86,240,216,0.08);
  animation: loading-orbit-spin 1.2s linear infinite;
}

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

.mc-admin-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(rgba(7, 12, 7, 0.86), rgba(2, 4, 3, 0.94)),
    url("/static/img/minecraft-treehouse.png") center / cover no-repeat;
}

.mc-admin-login form,
.mc-admin-say,
.mc-admin-topline,
.mc-admin-actions {
  display: grid;
  gap: 10px;
}

.mc-admin-login form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.mc-admin-login label,
.mc-admin-say {
  color: #f4efd8;
  font-weight: 900;
}

.mc-admin-login label span,
.mc-admin-output span {
  display: block;
  margin-bottom: 6px;
  color: #8dff66;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.mc-admin-login input,
.mc-admin-say input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid #1f1207;
  background: #071006;
  color: #f4efd8;
  font: 900 1rem "Courier New", ui-monospace, monospace;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.08), inset -3px -3px 0 rgba(0,0,0,0.32);
}

.mc-admin-login button,
.mc-admin-actions button,
.mc-admin-say button,
.mc-admin-topline button {
  min-height: 44px;
  padding: 0 12px;
  border: 3px solid #1d5c19;
  background: #2f8f31;
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.12), inset -4px -4px 0 rgba(0,0,0,0.28);
}

.mc-admin-actions button[data-mc-action="stop"] {
  background: #9f3232;
  border-color: #5b1818;
}

.mc-admin-actions button[data-mc-action="restart"],
.mc-admin-actions button[data-mc-action="update"] {
  background: #8f6d2f;
  border-color: #5d4314;
}

.mc-admin-login p {
  margin: 12px 0 0;
  color: #f4efd8;
  font-weight: 900;
}

.mc-admin-panel {
  display: grid;
  gap: 12px;
}

.mc-admin-panel[hidden],
.mc-admin-login[hidden] {
  display: none;
}

.mc-admin-topline {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 10px;
  border: 3px solid #1f1207;
  background: rgba(0,0,0,0.54);
  color: #f4efd8;
}

.mc-admin-topline strong {
  color: #b9ff72;
}

.mc-admin-topline span {
  color: #f4efd8;
  font-family: "Courier New", ui-monospace, monospace;
}

.mc-admin-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mc-admin-say {
  grid-template-columns: 1fr auto;
}

.mc-admin-chat {
  display: grid;
  gap: 6px;
}

.mc-admin-chat > span {
  color: #8dff66;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mc-chat-log {
  max-height: 280px;
  min-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 3px solid #1f1207;
  background:
    linear-gradient(180deg, rgba(4, 10, 4, 0.96), rgba(0,0,0,0.9)),
    repeating-linear-gradient(0deg, rgba(141,255,102,0.04) 0 2px, transparent 2px 18px);
  color: #f4efd8;
  font: 800 0.9rem "Courier New", ui-monospace, monospace;
  box-shadow: inset 0 0 0 2px rgba(141,255,102,0.1);
}

.mc-chat-line {
  display: grid;
  grid-template-columns: 76px 130px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(141,255,102,0.1);
}

.mc-chat-line time {
  color: #8dff66;
  opacity: 0.78;
}

.mc-chat-line strong {
  color: #b9ff72;
  overflow-wrap: anywhere;
}

.mc-chat-line span {
  overflow-wrap: anywhere;
}

.mc-admin-output {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1.3fr);
  gap: 12px;
}

.mc-admin-output pre {
  max-height: 420px;
  min-height: 180px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
  border: 3px solid #1f1207;
  background:
    linear-gradient(180deg, rgba(4, 10, 4, 0.96), rgba(0,0,0,0.9)),
    repeating-linear-gradient(90deg, rgba(141,255,102,0.05) 0 2px, transparent 2px 9px);
  color: #b9ff72;
  font: 800 0.86rem "Courier New", ui-monospace, monospace;
  box-shadow: inset 0 0 0 2px rgba(141,255,102,0.1);
}

.zomboid-route body {
  background: #080b0a;
}

.zomboid-panel {
  border-color: rgba(255, 186, 92, 0.24);
  background:
    linear-gradient(180deg, rgba(6, 8, 7, 0.28), rgba(6, 8, 7, 0.82) 36%, rgba(6, 8, 7, 0.96)),
    url("/static/img/zomboid-hero.png") center / cover no-repeat;
}

.zomboid-panel::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.66), rgba(0,0,0,0.2) 48%, rgba(0,0,0,0.72)),
    repeating-linear-gradient(0deg, rgba(255, 208, 138, 0.025) 0 2px, transparent 2px 10px);
}

.zomboid-panel .section-head {
  min-height: 220px;
}

.zomboid-panel .mc-title {
  border-color: #291611;
  background:
    linear-gradient(180deg, rgba(255, 186, 92, 0.18), rgba(76, 35, 24, 0.84)),
    repeating-linear-gradient(90deg, #73402e 0 12px, #3b231b 12px 24px);
  color: #fff0d0;
  text-shadow: 4px 4px 0 #120807, 0 0 18px rgba(255,186,92,0.4);
}

.zomboid-panel .mc-status-badge {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.76), rgba(21, 17, 13, 0.94)),
    repeating-linear-gradient(90deg, rgba(255,186,92,0.08) 0 2px, transparent 2px 9px);
  box-shadow: inset 0 0 0 3px rgba(255,186,92,0.12), 0 14px 26px rgba(0,0,0,0.35);
}

.zomboid-panel .mc-status-badge::after {
  background: linear-gradient(90deg, transparent, rgba(255,186,92,0.2), transparent);
}

.zomboid-panel .mc-status-badge.online::before,
.zomboid-panel .mc-label,
.zomboid-panel .mc-stats dt,
.zomboid-panel .mc-system-grid span,
.zomboid-panel .mc-clock-rack span,
.zomboid-panel .mc-admin-login label span,
.zomboid-panel .mc-admin-output span,
.zomboid-panel .mc-admin-chat > span {
  color: #ffc26d;
}

.zomboid-panel .mc-status-badge.online::before {
  background: #86ef8a;
  box-shadow: 0 0 14px #86ef8a;
}

.zomboid-panel .mc-label {
  background: #130d0b;
  border-color: #65412d;
}

.zomboid-panel .mc-card::before {
  background: rgba(8, 8, 7, 0.52);
}

.zomboid-panel .mc-hero,
.zomboid-panel .pz-admin-card,
.zomboid-panel .mc-system-card,
.zomboid-panel .mc-card:nth-child(2),
.zomboid-panel .mc-card:nth-child(3),
.zomboid-panel .mc-card:nth-child(4),
.zomboid-panel .mc-card:nth-child(5),
.zomboid-panel .mc-card:nth-child(6) {
  background:
    linear-gradient(180deg, rgba(16, 15, 12, 0.76), rgba(5, 7, 6, 0.9)),
    url("/static/img/zomboid-hero.png") center / cover no-repeat;
}

.zomboid-panel .mc-counter,
.zomboid-panel .mc-clock-rack div,
.zomboid-panel .mc-system-grid div,
.zomboid-panel .mc-admin-topline,
.zomboid-panel .mc-chat-log,
.zomboid-panel .mc-admin-output pre,
.zomboid-panel .mc-admin-login input,
.zomboid-panel .mc-admin-say input {
  border-color: #291611;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.95), rgba(4, 5, 4, 0.86)),
    repeating-linear-gradient(90deg, rgba(255,186,92,0.05) 0 2px, transparent 2px 9px);
  box-shadow: inset 0 0 0 2px rgba(255,186,92,0.1), inset -4px -4px 0 rgba(0,0,0,0.24);
}

.zomboid-panel .mc-counter strong,
.zomboid-panel .mc-clock-rack strong,
.zomboid-panel .mc-system-grid strong,
.zomboid-panel .mc-admin-output pre,
.zomboid-panel .mc-admin-topline strong {
  color: #ffe0a6;
  text-shadow: 0 0 10px rgba(255,186,92,0.42), 2px 2px 0 #120807;
}

.zomboid-panel .mc-admin-login button,
.zomboid-panel .mc-admin-actions button,
.zomboid-panel .mc-admin-say button,
.zomboid-panel .mc-admin-topline button,
.zomboid-panel .mc-download {
  border-color: #6d3c25;
  background: #9b5431;
}

.zomboid-panel .mc-admin-actions button[data-pz-action="stop"] {
  background: #9f3232;
  border-color: #5b1818;
}

.zomboid-panel .mc-admin-actions button[data-pz-action="restart"],
.zomboid-panel .mc-admin-actions button[data-pz-action="update"] {
  background: #7b6b35;
  border-color: #4d421d;
}

.pz-mod-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px;
}

@media (max-width: 900px) {
  .launch-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .moon-widget {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .moon-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .music-widget {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .music-widget select,
  .music-volume {
    grid-column: 1 / -1;
  }
  .mc-admin-login form,
  .mc-admin-topline,
  .mc-admin-actions,
  .mc-admin-say,
  .mc-admin-output {
    grid-template-columns: 1fr;
  }
  .mc-chat-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pz-mod-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .launch-strip {
    grid-template-columns: 1fr;
  }
  .moon-widget,
  .moon-stats,
  .music-widget {
    grid-template-columns: 1fr;
  }
  .moon-visual {
    justify-self: center;
  }
  .hero {
    min-height: auto;
    padding-top: 28px;
  }
}

/* Project Zomboid dread dashboard */
.zomboid-route body {
  background:
    linear-gradient(180deg, rgba(2, 3, 3, 0.94), rgba(15, 8, 8, 0.96)),
    #050505;
  color: #f4e9d4;
}

.pz-page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.82) 62%, rgba(3, 4, 3, 0.96)),
    url("/static/img/zomboid-dread-hero.png") center top / cover no-repeat fixed;
}

.pz-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 22px;
  overflow: hidden;
}

.pz-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22) 48%, rgba(4, 7, 5, 0.8)),
    repeating-linear-gradient(0deg, rgba(168, 27, 27, 0.08) 0 1px, transparent 1px 7px);
}

.pz-dread-hero {
  min-height: min(74vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 22px;
  align-items: end;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 82px) 0 24px;
}

.pz-hero-copy {
  max-width: 840px;
}

.pz-kicker,
.pz-label,
.pz-live-strip span,
.pz-stat-list dt,
.pz-mod-totals span,
.pz-login-grid span,
.pz-inline-form span,
.pz-mod-form span,
.pz-admin-output span,
.pz-clock-pair span,
.pz-big-number span {
  display: block;
  color: #d1a25c;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pz-kicker {
  margin: 0 0 12px;
  color: #9ff0b3;
}

.pz-dread-hero h1 {
  margin: 0;
  max-width: 880px;
  color: #fff6e5;
  font-size: clamp(3.2rem, 10vw, 8.8rem);
  line-height: 0.88;
  font-weight: 950;
  text-shadow: 0 4px 0 #160506, 0 0 42px rgba(174, 28, 33, 0.62);
}

.pz-hero-line {
  max-width: 700px;
  margin: 22px 0 0;
  color: #dacbb1;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.pz-join-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.pz-primary-link,
.pz-login-grid button,
.pz-control-grid button,
.pz-inline-form button,
.pz-mod-form button,
.pz-operator-bar button {
  min-height: 44px;
  border: 1px solid rgba(244, 91, 69, 0.78);
  border-radius: 6px;
  background: linear-gradient(180deg, #a62e26, #5f1719);
  color: #fff6e5;
  font: 850 0.9rem Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pz-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.pz-join-row span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(159, 240, 179, 0.34);
  border-radius: 6px;
  background: rgba(2, 8, 6, 0.72);
  color: #c8f5d2;
  font-weight: 800;
  word-break: break-word;
}

.pz-signal-panel,
.pz-admin-panel,
.pz-panel,
.pz-live-strip > div {
  border: 1px solid rgba(225, 189, 124, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 20, 17, 0.88), rgba(5, 7, 6, 0.92)),
    repeating-linear-gradient(90deg, rgba(159, 240, 179, 0.04) 0 1px, transparent 1px 10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.pz-signal-panel {
  align-self: end;
  padding: 18px;
}

.pz-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid rgba(209, 162, 92, 0.36);
  border-radius: 999px;
  background: rgba(8, 10, 8, 0.82);
  color: #f0d2a0;
  font-weight: 850;
}

.pz-status-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e3b04d;
  box-shadow: 0 0 16px rgba(227, 176, 77, 0.8);
}

.pz-status-badge.online::before {
  background: #69f0a0;
  box-shadow: 0 0 18px rgba(105, 240, 160, 0.92);
}

.pz-status-badge.offline::before {
  background: #f45b45;
  box-shadow: 0 0 18px rgba(244, 91, 69, 0.86);
}

.pz-big-number {
  margin-top: 22px;
}

.pz-big-number strong {
  display: block;
  color: #fff2d6;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}

.pz-clock-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pz-clock-pair div,
.pz-mod-totals div,
.pz-operator-bar,
.pz-admin-output pre,
.pz-login-card,
.pz-login-grid input,
.pz-inline-form input,
.pz-mod-form input {
  border: 1px solid rgba(159, 240, 179, 0.18);
  border-radius: 6px;
  background: rgba(2, 6, 5, 0.72);
}

.pz-clock-pair div {
  min-height: 74px;
  padding: 12px;
}

.pz-clock-pair strong {
  display: block;
  margin-top: 8px;
  color: #b5ffc9;
  font: 900 1.08rem "Courier New", ui-monospace, monospace;
}

.pz-live-strip {
  max-width: 1480px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pz-live-strip > div {
  min-height: 92px;
  padding: 14px;
}

.pz-live-strip strong,
.pz-stat-list dd,
.pz-mod-totals strong {
  display: block;
  margin-top: 7px;
  color: #fff0d0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pz-admin-panel,
.pz-dashboard-grid {
  max-width: 1480px;
  margin: 0 auto 22px;
}

.pz-admin-panel,
.pz-panel {
  padding: 18px;
}

.pz-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pz-panel-head h2 {
  margin: 5px 0 0;
  color: #fff7e6;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.pz-panel-head > span {
  color: #9ff0b3;
  font-size: 0.9rem;
  font-weight: 750;
}

.pz-login-grid,
.pz-control-grid,
.pz-inline-form,
.pz-mod-form {
  display: grid;
  gap: 10px;
}

.pz-login-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 140px;
}

.pz-login-card {
  padding: 14px;
}

.pz-login-card p {
  margin: 12px 0 0;
  color: #d1c3aa;
}

.pz-login-grid label,
.pz-inline-form label,
.pz-mod-form label {
  min-width: 0;
}

.pz-login-grid input,
.pz-inline-form input,
.pz-mod-form input {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  color: #fff6e5;
  outline: 0;
}

.pz-login-grid input:focus,
.pz-inline-form input:focus,
.pz-mod-form input:focus {
  border-color: rgba(159, 240, 179, 0.7);
  box-shadow: 0 0 0 3px rgba(159, 240, 179, 0.14);
}

.pz-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 14px;
}

.pz-admin-grid[hidden],
.pz-login-card[hidden] {
  display: none;
}

.pz-operator-bar {
  grid-column: 1 / -1;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.pz-operator-bar strong {
  color: #b5ffc9;
}

.pz-operator-bar button {
  min-width: 104px;
  background: linear-gradient(180deg, #3c4c40, #17231b);
  border-color: rgba(159, 240, 179, 0.4);
}

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

.pz-control-grid button {
  width: 100%;
}

.pz-control-grid button[data-pz-action="stop"] {
  background: linear-gradient(180deg, #b3342d, #581215);
}

.pz-control-grid button[data-pz-action="restart"],
.pz-control-grid button[data-pz-action="update"] {
  background: linear-gradient(180deg, #8d6a2d, #4a3514);
  border-color: rgba(255, 213, 128, 0.58);
}

.pz-inline-form,
.pz-mod-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.pz-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(209, 162, 92, 0.2);
  border-radius: 6px;
  background: rgba(7, 8, 7, 0.68);
}

.pz-check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #f45b45;
}

.pz-check-row span {
  color: #d8c8ac;
  text-transform: none;
  font-size: 0.88rem;
}

.pz-mod-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) 130px;
}

.pz-admin-output {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.pz-admin-output pre {
  height: 320px;
  margin: 7px 0 0;
  padding: 12px;
  color: #d8f8db;
  overflow: auto;
  white-space: pre-wrap;
  font: 0.82rem/1.45 "Courier New", ui-monospace, monospace;
}

.pz-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pz-stat-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.pz-stat-list div {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(159, 240, 179, 0.14);
  border-radius: 6px;
  background: rgba(3, 6, 5, 0.58);
}

.pz-stat-list dt,
.pz-stat-list dd {
  margin: 0;
}

.pz-pack-panel {
  grid-column: 1 / -1;
}

.pz-mod-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pz-mod-totals div {
  min-height: 74px;
  padding: 12px;
}

.pz-mod-matrix {
  max-height: 360px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
}

.pz-mod-pill {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(209, 162, 92, 0.18);
  border-radius: 6px;
  background: rgba(8, 9, 8, 0.68);
  color: #e6d8be;
  font: 780 0.82rem/1.25 "Courier New", ui-monospace, monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .pz-dread-hero,
  .pz-admin-grid,
  .pz-admin-output {
    grid-template-columns: 1fr;
  }

  .pz-live-strip,
  .pz-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .pz-page {
    padding: 12px;
  }

  .pz-dread-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .pz-signal-panel {
    align-self: stretch;
  }

  .pz-live-strip,
  .pz-dashboard-grid,
  .pz-login-grid,
  .pz-control-grid,
  .pz-inline-form,
  .pz-mod-form,
  .pz-mod-totals,
  .pz-mod-matrix,
  .pz-clock-pair {
    grid-template-columns: 1fr;
  }

  .pz-panel-head,
  .pz-operator-bar,
  .pz-join-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pz-admin-output pre {
    height: 240px;
  }
}
