:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #61716d;
  --paper: #fbfaf7;
  --line: #d9ded8;
  --teal: #246a69;
  --coral: #e76f51;
  --gold: #b58b31;
  --leaf: #667b4f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.15);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", "Space Grotesk", monospace;
  --font-digital: "E1234", "Share Tech Mono", "IBM Plex Mono", monospace;
}

@font-face {
  font-family: "E1234";
  src: url("../fonts/E1234.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: var(--site-cursor, default);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href],
button,
select,
summary,
[role="button"] {
  cursor: pointer;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
[contenteditable="true"] {
  cursor: text;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.08);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  gap: 16px;
}

.brand-mark {
  display: block;
  height: 101px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(18px);
  width: 124px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a,
.site-nav-button {
  background: transparent;
  border: 0;
  color: #31403c;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav-button:hover,
.site-nav-button:focus-visible {
  color: var(--coral);
}

.cursor-control {
  align-items: center;
  color: #31403c;
  cursor: pointer;
  display: flex;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.cursor-control span {
  text-transform: uppercase;
}

.cursor-control select {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 231, 220, 0.88)),
    var(--paper);
  border: 1px solid rgba(49, 64, 60, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  min-height: 34px;
  min-width: 136px;
  padding: 7px 28px 7px 12px;
}

.cursor-control::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #31403c;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  left: 9px;
  position: absolute;
  right: 9px;
  transition: transform 180ms ease;
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.hero {
  margin-top: 72px;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: right center;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 18, 16, 0.78) 0%, rgba(10, 18, 16, 0.52) 36%, rgba(10, 18, 16, 0.1) 74%),
    linear-gradient(0deg, rgba(23, 32, 29, 0.32), rgba(23, 32, 29, 0.06));
  inset: 0;
  position: absolute;
}

.hotzone {
  background: transparent;
  border: 0;
  cursor: default;
  opacity: 0;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  transform: translateZ(0);
  transition: opacity 220ms ease;
  z-index: 1;
}

.hotzone::before,
.hotzone::after {
  border-radius: 999px;
  content: "";
  inset: -14px;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.hotzone::before {
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 244, 166, 0.32) 50%, transparent 62%),
    radial-gradient(circle, rgba(255, 244, 166, 0.1), transparent 64%);
  filter: blur(5px);
  mask-image: radial-gradient(ellipse, #000 0%, rgba(0, 0, 0, 0.72) 36%, transparent 74%);
  transform: translateX(62%);
}

.hotzone::after {
  background: radial-gradient(ellipse, rgba(255, 244, 166, 0.16) 0%, rgba(255, 244, 166, 0.06) 42%, transparent 76%);
  filter: blur(6px);
}

.hotzone.is-effect-active {
  opacity: 1;
}

.hotzone.is-effect-fading {
  opacity: 0;
  transition: opacity var(--hotzone-effect-fade, 240ms) ease-out;
}

.hotzone.is-effect-forward {
  animation: hotzone-effect-pulse var(--hotzone-effect-pass, 1s) ease-in-out 1 both;
}

.hotzone.is-effect-forward::before {
  animation: hotzone-effect-sweep-forward var(--hotzone-effect-pass, 1s) ease-in-out 1 both;
  opacity: 1;
}

.hotzone.is-effect-forward::after {
  animation: hotzone-effect-ring var(--hotzone-effect-pass, 1s) ease-in-out 1 both;
  opacity: 1;
}

.hotzone:focus-visible {
  outline: none;
}

.hotzone.is-effect-active:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 244, 166, 0.34);
}

.hotzone-toast {
  background: rgba(8, 10, 9, 0.86);
  border: 1px solid rgba(255, 244, 166, 0.46);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: #fff4a6;
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  max-width: min(320px, calc(100vw - 24px));
  min-width: min(230px, calc(100vw - 24px));
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  text-transform: uppercase;
  transform: translate(-50%, -100%);
  white-space: pre-line;
  width: max-content;
  z-index: 4;
}

@keyframes hotzone-effect-pulse {
  0%,
  100% {
    background: radial-gradient(ellipse, rgba(255, 244, 166, 0.02), transparent 72%);
    box-shadow: none;
  }

  45% {
    background: radial-gradient(ellipse, rgba(255, 244, 166, 0.08), transparent 76%);
    box-shadow: none;
  }

  62% {
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 78%);
    box-shadow: none;
  }
}

@keyframes hotzone-effect-sweep-forward {
  0% {
    transform: translateX(62%);
  }

  100% {
    transform: translateX(-70%);
  }
}

@keyframes hotzone-effect-ring {
  0%,
  100% {
    transform: scale(0.84);
  }

  50% {
    transform: scale(1.22);
  }
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: clamp(70px, 9vh, 104px) clamp(20px, 7vw, 88px) 13vh;
  position: relative;
}

.launch-window-panel {
  align-items: end;
  display: grid;
  gap: 8px;
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  top: 24px;
  transform: scale(0.5);
  transform-origin: top right;
  z-index: 2;
}

.launch-panel-title {
  color: #ff6b5f;
  display: none;
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 700;
  justify-self: center;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 45, 36, 0.48);
  text-transform: uppercase;
}

.launch-panel-controls {
  display: inline-flex;
  gap: 6px;
  justify-self: end;
  position: absolute;
  right: -42px;
  top: 3px;
  z-index: 3;
}

.launch-panel-control {
  align-items: center;
  background: #080a09;
  border: 1px solid rgba(255, 96, 82, 0.56);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: #ff6b5f;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  width: 38px;
}

.launch-panel-control:hover,
.launch-panel-control:focus-visible {
  background: #111312;
  border-color: rgba(255, 96, 82, 0.72);
  color: #ff2d24;
}

.launch-panel-control span {
  border: 2px solid currentColor;
  display: block;
  height: 16px;
  width: 16px;
}

.launch-panel-control.close span {
  border: 0;
  height: 12px;
  position: relative;
  width: 12px;
}

.launch-panel-control.close span::before,
.launch-panel-control.close span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 5px;
  width: 12px;
}

.launch-panel-control.close span::before {
  transform: rotate(45deg);
}

.launch-panel-control.close span::after {
  transform: rotate(-45deg);
}

.launch-panel-control.close {
  display: none;
}

body.has-maximized-conditions {
  overflow: hidden;
}

body.has-maximized-conditions::after {
  background: #040707;
  content: "";
  inset: 0;
  position: fixed;
  z-index: 90;
}

.launch-window-panel.is-maximized {
  align-items: center;
  gap: 16px;
  left: 50% !important;
  position: fixed;
  right: auto !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(var(--conditions-scale, 1)) !important;
  transform-origin: center center !important;
  z-index: 100;
}

.launch-window-panel.is-maximized .launch-panel-title {
  display: block;
}

.launch-window-panel.is-maximized .launch-panel-controls {
  right: -40px;
  top: -4px;
}

.launch-window-panel.is-maximized .launch-panel-control.close {
  display: inline-flex;
}

.launch-status-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-right: 38px;
}

.stardate-bezel {
  align-items: center;
  background:
    linear-gradient(145deg, #343230, #080a09 58%, #1f1f1d);
  border: 1px solid rgba(255, 96, 82, 0.38);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.3);
  color: #ff6b5f;
  display: flex;
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  gap: 10px;
  justify-self: end;
  letter-spacing: 0;
  margin-right: 0;
  padding: 10px 18px;
  text-transform: uppercase;
}

.stardate-bezel time {
  color: #ff2d24;
  font-family: var(--font-digital);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  min-width: 7.8ch;
  text-align: right;
  text-shadow:
    0 0 8px rgba(255, 45, 36, 0.85),
    0 0 20px rgba(255, 45, 36, 0.42);
}

.launch-instrument-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.launch-direction-toggle {
  align-items: center;
  background:
    linear-gradient(145deg, #363533, #080a09 58%, #1f1f1d);
  border: 1px solid rgba(255, 96, 82, 0.38);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: 14px 42px 14px;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 108px;
}

.launch-direction-toggle img {
  display: block;
  filter:
    drop-shadow(0 0 8px rgba(255, 96, 82, 0.65))
    drop-shadow(0 0 16px rgba(255, 96, 82, 0.35));
  height: 28px;
  object-fit: contain;
  transform: scaleX(1);
  transition: transform 180ms ease;
  width: 42px;
}

.launch-direction-toggle.is-return img {
  transform: scaleX(-1);
}

.planet {
  align-self: center;
  border-radius: 50%;
  display: block;
  height: 14px;
  justify-self: center;
  width: 14px;
}

.planet.earth {
  background:
    radial-gradient(circle at 30% 30%, #e9fbff 0 10%, transparent 11%),
    radial-gradient(circle at 64% 38%, #5cd37d 0 13%, transparent 14%),
    radial-gradient(circle at 38% 66%, #5cd37d 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #2a8dff, #0b2e8a 72%);
  box-shadow: 0 0 12px rgba(60, 156, 255, 0.8);
}

.planet.mars {
  background:
    radial-gradient(circle at 32% 32%, #ffc09a 0 10%, transparent 11%),
    radial-gradient(circle at 58% 55%, #7d2419 0 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, #e2522f, #7f1d18 74%);
  box-shadow: 0 0 12px rgba(255, 82, 47, 0.78);
}

.launch-clock-bezel {
  background:
    linear-gradient(145deg, #3d3935 0%, #0a0d0c 46%, #24231f 100%);
  border: 1px solid rgba(255, 96, 82, 0.42);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 -10px 22px rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(0, 0, 0, 0.36);
  color: #ff2d24;
  cursor: pointer;
  min-width: 314px;
  padding: 18px 24px 16px;
  text-align: center;
}

.launch-clock-bezel:focus-visible {
  outline: 3px solid rgba(255, 107, 95, 0.42);
  outline-offset: 5px;
}

.launch-window-panel.is-maximized .launch-clock-bezel {
  cursor: default;
}

.launch-clock-bezel p {
  color: #ff6b5f;
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.launch-time {
  display: block;
  font-family: var(--font-digital);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow:
    0 0 8px rgba(255, 45, 36, 0.85),
    0 0 20px rgba(255, 45, 36, 0.42);
}

.launch-time span {
  display: block;
  min-width: 10.8ch;
  text-align: right;
}

.launch-time-labels {
  color: #ff6b5f;
  display: grid;
  font-family: var(--font-code);
  font-size: 0.64rem;
  font-weight: 700;
  grid-template-columns: repeat(4, 1fr);
  justify-content: stretch;
  column-gap: 14px;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 8px;
  opacity: 0.82;
  text-transform: uppercase;
  width: 100%;
}


.telescope-widget {
  align-items: center;
  background:
    linear-gradient(145deg, #252d2a 0%, #070a09 62%, #171f1b 100%);
  border: 1px solid rgba(144, 235, 160, 0.36);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.34);
  color: #b9ffc5;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-code);
  font-size: 0.66rem;
  font-weight: 700;
  gap: 8px;
  justify-self: end;
  letter-spacing: 0;
  min-height: 47px;
  padding: 10px 14px 10px 11px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.telescope-widget:hover,
.telescope-widget:focus-visible {
  border-color: rgba(185, 255, 197, 0.72);
  filter: brightness(1.12);
  outline: none;
}

.telescope-widget-eyepiece {
  background:
    radial-gradient(circle at 45% 45%, #f1fff1 0 7%, transparent 8%),
    radial-gradient(circle at 50% 50%, #da5036 0 22%, #6b1d17 23% 48%, #040707 49%);
  border: 1px solid rgba(185, 255, 197, 0.52);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(185, 255, 197, 0.24);
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.telescope-widget-label {
  color: #ff6b5f;
  line-height: 1;
}

body.has-telescope-open {
  overflow: hidden;
}

.telescope-popup {
  align-items: center;
  background: rgba(2, 5, 5, 0.88);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: clamp(14px, 4vw, 42px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 120;
}

.telescope-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.telescope-window {
  --telescope-projection-green: 28, 168, 70;
  background:
    linear-gradient(145deg, #1d2622 0%, #070b0a 58%, #151b17 100%);
  border: 1px solid rgba(185, 255, 197, 0.28);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.58);
  color: #d8ffe0;
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto;
  max-height: none;
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px);
  width: min(760px, calc(100vw - 28px));
}

.telescope-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.telescope-header p,
.telescope-header h2 {
  margin: 0;
}

.telescope-header p {
  color: #81bf90;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.telescope-header h2 {
  color: #edfff1;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: 0;
}

.telescope-overlay-toggle {
  align-items: center;
  background: #070a09;
  border: 1px solid rgba(var(--telescope-projection-green), 0.42);
  border-radius: 999px;
  color: rgba(var(--telescope-projection-green), 0.9);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0;
  margin-left: auto;
  padding: 9px 13px;
  position: relative;
  text-transform: uppercase;
}

.telescope-overlay-toggle input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.telescope-overlay-toggle span {
  border: 1px solid rgba(var(--telescope-projection-green), 0.64);
  border-radius: 3px;
  box-shadow: inset 0 0 7px rgba(var(--telescope-projection-green), 0.12);
  display: inline-block;
  height: 13px;
  position: relative;
  width: 13px;
}

.telescope-overlay-toggle span::after {
  border-bottom: 2px solid rgba(var(--telescope-projection-green), 0.96);
  border-left: 2px solid rgba(var(--telescope-projection-green), 0.96);
  content: "";
  height: 4px;
  left: 2px;
  opacity: 0;
  position: absolute;
  top: 2px;
  transform: rotate(-45deg);
  width: 8px;
}

.telescope-overlay-toggle:has(input:checked) {
  border-color: rgba(var(--telescope-projection-green), 0.72);
  box-shadow:
    0 0 12px rgba(var(--telescope-projection-green), 0.18),
    inset 0 0 0 1px rgba(var(--telescope-projection-green), 0.08);
  color: rgba(var(--telescope-projection-green), 0.98);
}

.telescope-overlay-toggle:has(input:checked) span::after {
  opacity: 1;
}

.telescope-overlay-toggle:hover,
.telescope-overlay-toggle:focus-within {
  border-color: rgba(var(--telescope-projection-green), 0.82);
  outline: none;
}

.telescope-close {
  background: #070a09;
  border: 1px solid rgba(185, 255, 197, 0.44);
  border-radius: 50%;
  color: #b9ffc5;
  cursor: pointer;
  flex: 0 0 auto;
  height: 38px;
  position: relative;
  width: 38px;
}

.telescope-close::before,
.telescope-close::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 11px;
  position: absolute;
  top: 18px;
  width: 16px;
}

.telescope-close::before {
  transform: rotate(45deg);
}

.telescope-close::after {
  transform: rotate(-45deg);
}

.telescope-stage {
  --mars-disk-size: 80%;
  --mars-phase-offset: 18%;
  --mars-axis-tilt: 0deg;
  --mars-surface-x: 50%;
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(86, 117, 93, 0.12), transparent 53%),
    #000;
  border: 1px solid rgba(185, 255, 197, 0.24);
  border-radius: 6px;
  display: grid;
  height: auto;
  justify-items: center;
  justify-self: center;
  overflow: hidden;
  position: relative;
  width: min(100%, max(120px, calc(100dvh - 145px)));
}

.telescope-mars-picture {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset -18px 0 36px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(213, 77, 47, 0.22);
  display: block;
  filter: blur(0.35px);
  overflow: hidden;
  position: relative;
  transform: rotate(var(--mars-axis-tilt));
  width: var(--mars-disk-size);
  z-index: 4;
}

.telescope-mars-picture::after {
  background:
    radial-gradient(ellipse at var(--mars-phase-offset) 50%, rgba(0, 0, 0, 0) 0 42%, rgba(0, 0, 0, 0.38) 66%, rgba(0, 0, 0, 0.76) 100%);
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.telescope-mars-picture::before {
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 236, 174, 0.24), rgba(230, 181, 91, 0.18) 48%, rgba(126, 74, 34, 0.04) 82%);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.telescope-mars {
  display: block;
  filter: blur(0.35px) sepia(0.18) saturate(0.88) contrast(0.95) brightness(1.04);
  height: 100%;
  object-fit: cover;
  object-position: var(--mars-surface-x) 50%;
  transform: scale(1.004);
  width: 100%;
}

.telescope-reticle {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 7;
}

.telescope-telemetry {
  bottom: 12px;
  color: rgba(255, 107, 95, 0.9);
  display: flex;
  font-family: var(--font-code);
  font-size: clamp(0.54rem, 1.35vw, 0.68rem);
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  left: 13px;
  letter-spacing: 0;
  line-height: 1.15;
  pointer-events: none;
  position: absolute;
  right: 13px;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.8);
  z-index: 9;
}

.telescope-telemetry > span {
  display: grid;
  gap: 2px;
}

.telescope-telemetry-distance {
  justify-items: end;
  margin-left: auto;
  text-align: right;
}

.telescope-telemetry time,
.telescope-telemetry output {
  color: #ff2d24;
  font-family: var(--font-code);
  font-size: clamp(0.62rem, 1.55vw, 0.78rem);
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 10px rgba(255, 45, 36, 0.32);
}

.reticle-line,
.reticle-ring,
.reticle-ticks {
  pointer-events: none;
  position: absolute;
}

.reticle-line {
  background: rgba(var(--telescope-projection-green), 0.76);
  box-shadow: 0 0 9px rgba(var(--telescope-projection-green), 0.48);
}

.reticle-line.horizontal {
  height: 1px;
  left: 0;
  right: 0;
  top: 50%;
}

.reticle-line.vertical {
  bottom: 0;
  left: 50%;
  top: 0;
  width: 1px;
}

.reticle-ring {
  border: 1px solid rgba(var(--telescope-projection-green), 0.58);
  border-radius: 50%;
  height: 13%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13%;
}

.reticle-ticks.horizontal {
  background:
    linear-gradient(rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 22% 50% / 1px 20px no-repeat,
    linear-gradient(rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 34% 50% / 1px 14px no-repeat,
    linear-gradient(rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 66% 50% / 1px 14px no-repeat,
    linear-gradient(rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 78% 50% / 1px 20px no-repeat;
  height: 30px;
  left: 0;
  right: 0;
  top: calc(50% - 15px);
}

.reticle-ticks.vertical {
  background:
    linear-gradient(90deg, rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 50% 22% / 20px 1px no-repeat,
    linear-gradient(90deg, rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 50% 34% / 14px 1px no-repeat,
    linear-gradient(90deg, rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 50% 66% / 14px 1px no-repeat,
    linear-gradient(90deg, rgba(var(--telescope-projection-green), 0.82), rgba(var(--telescope-projection-green), 0.82)) 50% 78% / 20px 1px no-repeat;
  bottom: 0;
  left: calc(50% - 15px);
  top: 0;
  width: 30px;
}

.telescope-moon-body,
.telescope-moon-label {
  left: var(--moon-x, 50%);
  pointer-events: none;
  position: absolute;
  top: var(--moon-y, 50%);
}

.telescope-moon-body {
  --moon-size: 4px;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 254, 226, 1) 0 24%, rgba(244, 232, 184, 0.94) 42%, rgba(158, 142, 108, 0.62) 72%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 4px rgba(255, 248, 204, 0.66),
    0 0 9px rgba(238, 229, 190, 0.32);
  display: block;
  filter: blur(0.45px);
  height: var(--moon-size);
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(var(--moon-scale, 1));
  width: var(--moon-size);
  z-index: 5;
}

.telescope-moon-body.is-behind-mars {
  z-index: 2;
}

.telescope-moon-body.phobos {
  --moon-size: 9px;
}

.telescope-moon-body.deimos {
  --moon-size: 6.5px;
  opacity: 0.78;
}

.telescope-moon-label {
  color: rgba(226, 255, 121, 0.88);
  display: block;
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.98))
    drop-shadow(0 0 4px rgba(21, 54, 20, 0.76));
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  height: auto;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(21, 54, 20, 0.88);
  transform: translate(6px, -82%);
  white-space: nowrap;
  width: auto;
  z-index: 9;
}

.telescope-moon-label[hidden] {
  display: none;
}

.telescope-moon-label::before {
  content: attr(data-moon-label);
}

.telescope-moon-label.deimos {
  font-size: 11px;
}

.telescope-satellite {
  --satellite-duration: 6.5s;
  --satellite-elapsed: 0s;
  animation: telescopeSatellitePass var(--satellite-duration) linear both;
  animation-delay: calc(var(--satellite-elapsed) * -1);
  height: 22px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-18%, -50%) rotate(-18deg);
  width: 48px;
  z-index: 6;
}

.telescope-satellite[hidden] {
  display: none;
}

.telescope-satellite span,
.telescope-satellite span::before,
.telescope-satellite span::after {
  background: rgba(0, 0, 0, 0.94);
  display: block;
  position: absolute;
}

.telescope-satellite span {
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.48);
  height: 6px;
  left: 19px;
  top: 8px;
  width: 10px;
}

.telescope-satellite span::before,
.telescope-satellite span::after {
  content: "";
  height: 12px;
  top: -3px;
  width: 13px;
}

.telescope-satellite span::before {
  left: -16px;
}

.telescope-satellite span::after {
  right: -16px;
}

@keyframes telescopeSatellitePass {
  from {
    left: -10%;
    top: 37%;
  }

  to {
    left: 110%;
    top: 61%;
  }
}

.telescope-site-overlay {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

.telescope-site-overlay[hidden] {
  display: none;
}

.telescope-site-marker {
  --marker-opacity: 1;
  color: rgba(226, 255, 121, 0.92);
  filter:
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.98))
    drop-shadow(0 0 4px rgba(21, 54, 20, 0.76));
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 500;
  left: var(--marker-x);
  opacity: calc(var(--marker-opacity) * 0.82);
  position: absolute;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(21, 54, 20, 0.88);
  top: var(--marker-y);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.telescope-site-marker[hidden] {
  display: none;
}

.telescope-site-symbol {
  display: block;
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
}

.telescope-site-label {
  left: var(--label-x, 6px);
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  text-transform: uppercase;
  top: var(--label-y, -7px);
}

.telescope-site-marker[data-type="lander"] .telescope-site-symbol,
.telescope-site-marker[data-type="habitat"] .telescope-site-symbol {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
  height: 0;
  width: 0;
}

.telescope-site-marker[data-type="rover"] .telescope-site-symbol {
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 8px 1px no-repeat;
}

.telescope-site-marker[data-type="crash-site"] .telescope-site-symbol {
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
}

.telescope-site-marker[data-type="crash-site"] .telescope-site-symbol::before,
.telescope-site-marker[data-type="crash-site"] .telescope-site-symbol::after {
  background: currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.telescope-site-marker[data-type="crash-site"] .telescope-site-symbol::before {
  height: 1px;
  width: 8px;
}

.telescope-site-marker[data-type="crash-site"] .telescope-site-symbol::after {
  height: 8px;
  width: 1px;
}

.telescope-site-marker[data-type="geological-feature"] .telescope-site-symbol {
  border: 1px solid currentColor;
  border-radius: 50%;
}

.telescope-site-marker[data-type="helicopter"] .telescope-site-symbol,
.telescope-site-marker[data-type="sample-depot"] .telescope-site-symbol,
.telescope-site-marker[data-type="artifact"] .telescope-site-symbol {
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.telescope-occlusion {
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  color: #d8ffe0;
  display: grid;
  gap: 8px;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  z-index: 5;
}

.telescope-occlusion[hidden] {
  display: none;
}

.telescope-occlusion strong {
  color: #ffb7a8;
  font-family: var(--font-code);
  text-transform: uppercase;
}

.launch-window-panel.is-flashing .launch-clock-bezel {
  animation: launchPulse 900ms steps(2, end) infinite;
}

.launch-window-panel.is-urgent .launch-clock-bezel {
  animation-duration: 360ms;
}

@keyframes launchPulse {
  50% {
    border-color: rgba(255, 45, 36, 0.95);
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.08),
      inset 0 -10px 22px rgba(255, 255, 255, 0.04),
      0 20px 44px rgba(0, 0, 0, 0.36),
      0 0 34px rgba(255, 45, 36, 0.6);
    filter: brightness(1.25);
  }
}

.eyebrow {
  color: var(--coral);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc2ad;
}

.conditions-page {
  background: #050807;
  min-height: 100vh;
  overflow: hidden;
}

.conditions-screen {
  align-items: center;
  display: grid;
  isolation: isolate;
  justify-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.conditions-screen-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.conditions-screen-overlay {
  background:
    linear-gradient(0deg, rgba(5, 8, 7, 0.74), rgba(5, 8, 7, 0.26)),
    radial-gradient(circle at 50% 50%, rgba(231, 111, 81, 0.18), rgba(5, 8, 7, 0.82) 70%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.conditions-panel {
  position: relative;
  right: auto;
  top: auto;
  transform: scale(1);
  transform-origin: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 22px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.4rem);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-button > span {
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
}

.icon-button.mail > span {
  border: 2px solid currentColor;
  border-radius: 3px;
  height: 14px;
  width: 18px;
}

.icon-button.mail > span::before,
.icon-button.mail > span::after {
  border-top: 2px solid currentColor;
  content: "";
  position: absolute;
  top: 3px;
  width: 11px;
}

.icon-button.mail > span::before {
  left: 0;
  transform: rotate(34deg);
}

.icon-button.mail > span::after {
  right: 0;
  transform: rotate(-34deg);
}

.icon-button.chat > span {
  border: 2px solid currentColor;
  border-radius: 999px;
  height: 17px;
  width: 20px;
}

.icon-button.chat > span::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  bottom: -4px;
  content: "";
  height: 7px;
  position: absolute;
  right: 2px;
  transform: rotate(24deg);
  width: 7px;
}

.button.secondary-dark {
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary-dark:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 76px);
}

.section-heading {
  max-width: 780px;
}

.section-copy,
.about-inner p,
.contact-panel p,
.site-footer {
  color: var(--muted);
}

.section-copy {
  font-size: 1.06rem;
  max-width: 560px;
}

.home-accordion {
  background: #fbfaf7;
}

.accordion-panel {
  background: #fbfaf7;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.accordion-panel:last-child {
  border-bottom: 1px solid var(--line);
}

.accordion-title {
  align-items: center;
  background: #fbfaf7;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0;
  min-height: 72px;
  padding: 0 clamp(20px, 6vw, 76px);
  text-align: left;
  width: 100%;
}

.accordion-title:hover,
.accordion-title:focus-visible {
  color: var(--coral);
  outline: none;
}

.accordion-title > span:last-child {
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: block;
  height: 12px;
  margin-left: 18px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 12px;
}

.accordion-panel.is-open .accordion-title > span:last-child {
  transform: rotate(225deg);
}

.accordion-body[hidden] {
  display: none;
}

.product-feature-panel {
  background: #20302b;
  color: var(--white);
}

.product-feature-panel .accordion-title {
  background: #20302b;
  color: var(--white);
}

.product-feature-inner {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  padding: clamp(42px, 7vw, 78px) clamp(20px, 6vw, 76px);
}

.product-feature-inner h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.product-feature-inner .section-copy {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
}

.product-feature-list {
  display: grid;
  gap: 10px;
}

.product-feature-list span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 14px 16px;
  text-transform: uppercase;
}

.home-accordion .about-band {
  padding: 0;
}

.home-accordion .about-band .accordion-title {
  background: var(--teal);
  color: var(--white);
}

.home-accordion .about-inner {
  padding: clamp(42px, 7vw, 78px) clamp(20px, 12vw, 148px);
}

.home-accordion .contact {
  padding-top: clamp(42px, 7vw, 78px);
  padding-bottom: clamp(42px, 7vw, 78px);
}

.about-band {
  background: var(--teal);
  color: var(--white);
  padding: clamp(72px, 10vw, 132px) clamp(20px, 12vw, 148px);
}

.about-inner {
  max-width: 1180px;
}

.about-layout {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
}

.about-copy {
  max-width: 720px;
}

.about-callouts {
  align-content: start;
  display: grid;
  gap: clamp(26px, 4vw, 38px);
}

.about-inner .eyebrow {
  color: #f9c9b9;
}


.about-inner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.about-footnote {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(0.86rem, 1.7vw, 1rem);
  font-style: italic;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 16px;
  position: relative;
}

.about-footnote button {
  background: transparent;
  border: 0;
  color: #f9c9b9;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.satire-note {
  background: #fbfaf7;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  font-size: 0.94rem;
  font-style: italic;
  margin: 10px 0 0;
  max-width: min(520px, 88vw);
  padding: 12px 14px;
  position: relative;
  z-index: 1;
}

.about-inner .satire-note p {
  color: var(--ink);
  font-size: 0.94rem;
  margin: 0;
  padding-right: 28px;
}

.satire-note[hidden] {
  display: none;
}

.satire-note-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(23, 32, 29, 0.32);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
}

.satire-note-close span {
  display: block;
  height: 12px;
  position: relative;
  width: 12px;
}

.satire-note-close span::before,
.satire-note-close span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 5px;
  width: 12px;
}

.satire-note-close span::before {
  transform: rotate(45deg);
}

.satire-note-close span::after {
  transform: rotate(-45deg);
}

.about-callout {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: clamp(24px, 4vw, 36px);
}

.about-callout h3 {
  color: var(--white);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  margin-bottom: 10px;
}

.about-callout .button {
  margin-top: 22px;
}

.contact {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 42px);
}

.contact-panel a {
  color: var(--teal);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel p {
  margin: 16px 0 0;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-form label {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
}

.signup-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.signup-row input {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  min-height: 50px;
  min-width: 0;
  padding: 0 16px;
}

.signup-row input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(36, 106, 105, 0.16);
}

.signup-row .button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.signup-row .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.signup-status {
  color: var(--muted);
  min-height: 1.5em;
}

.signup-form.has-success .signup-status {
  color: var(--teal);
}

.signup-form.has-error .signup-status {
  color: #a63c2d;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 12px clamp(16px, 5vw, 56px);
}

.war-game-open .site-footer,
.wide-game-open .site-footer {
  background: rgba(251, 250, 247, 0.94);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 35;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  grid-column: 2;
  justify-content: center;
}

.footer-brand {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  grid-column: 1;
  justify-self: start;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-legal-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--coral);
}

.preferences-popup {
  align-items: end;
  background: rgba(10, 18, 16, 0.2);
  display: grid;
  inset: 0;
  justify-items: end;
  opacity: 0;
  padding: clamp(16px, 4vw, 36px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 36;
}

.preferences-popup[hidden] {
  display: none;
}

.preferences-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.preferences-window {
  background: #fbfaf7;
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-rows: auto auto;
  max-width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
  width: 100%;
}

.preferences-popup.is-visible .preferences-window {
  transform: translateY(0) scale(1);
}

.preferences-header {
  align-items: center;
  background: var(--teal);
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 14px 12px 16px;
}

.preferences-header div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.preferences-header h2 {
  font-size: 1rem;
  line-height: 1.1;
  margin: 0;
}

.preferences-status-dot {
  background: #f6c85f;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(246, 200, 95, 0.85);
  display: block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.preferences-body {
  padding: 18px;
}

.preferences-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.preferences-close span {
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.preferences-close span::before,
.preferences-close span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 6px;
  width: 14px;
}

.preferences-close span::before {
  transform: rotate(45deg);
}

.preferences-close span::after {
  transform: rotate(-45deg);
}

.social-icon {
  align-items: center;
  background: #eef0ec;
  border: 1px solid #d2d8d0;
  border-radius: 999px;
  color: #31403c;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 34px;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--white);
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-1px);
}

.social-icon span {
  display: block;
  position: relative;
}

.social-icon img {
  display: block;
  pointer-events: none;
}

.social-icon.x {
  background: #000;
  border-color: #000;
}

.social-icon.x:hover,
.social-icon.x:focus-visible {
  background: #000;
  border-color: var(--coral);
}

.social-icon.x img {
  height: 17px;
  width: 17px;
}

.social-icon.facebook {
  background: var(--white);
}

.social-icon.facebook img {
  height: 24px;
  width: 24px;
}

.social-icon.twitter img {
  border-radius: 50%;
  height: 26px;
  object-fit: cover;
  width: 26px;
}

.social-icon.contribute span {
  border: 2px solid currentColor;
  border-radius: 50%;
  height: 17px;
  width: 17px;
}

.social-icon.contribute span::before,
.social-icon.contribute span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.social-icon.contribute span::before {
  height: 2px;
  width: 9px;
}

.social-icon.contribute span::after {
  height: 9px;
  width: 2px;
}

.social-icon.bell img {
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.social-icon.log span {
  border: 2px solid currentColor;
  border-radius: 2px;
  height: 18px;
  width: 15px;
}

.social-icon.log span::before,
.social-icon.log span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 3px;
  position: absolute;
  width: 7px;
}

.social-icon.log span::before {
  top: 5px;
}

.social-icon.log span::after {
  top: 10px;
}

.social-icon.game img {
  height: 22px;
  width: 28px;
}

.twitter-ghost-bubble {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 190px;
  padding: 12px 14px;
  position: fixed;
  text-align: center;
  z-index: 32;
}

.footer-ghost-bubble {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.18);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 700;
  max-width: min(320px, calc(100vw - 24px));
  min-width: 190px;
  padding: 12px 14px;
  position: fixed;
  text-align: center;
  z-index: 32;
}

.twitter-ghost-bubble[hidden],
.footer-ghost-bubble[hidden] {
  display: none;
}

.game-menu-bubble {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.18);
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  position: fixed;
  z-index: 42;
}

.game-menu-bubble[hidden] {
  display: none;
}

.game-menu-bubble button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  text-transform: uppercase;
}

.game-menu-bubble button:hover,
.game-menu-bubble button:focus-visible {
  background: #edf3ef;
  border-color: #c8d3cb;
  color: var(--coral);
  outline: none;
}

.sound-control {
  position: relative;
}

.sound-toggle {
  align-items: center;
  background: #eef0ec;
  border: 1px solid #d2d8d0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 34px;
}

.game-sound-control .sound-toggle {
  background: #121411;
  border-color: #747765;
}

.sound-toggle span,
.sound-toggle span::before {
  background: #1f7a4d;
  display: block;
  position: absolute;
}

.game-sound-control .sound-toggle span,
.game-sound-control .sound-toggle span::before {
  background: #58ff74;
}

.sound-toggle span {
  border-radius: 2px 0 0 2px;
  height: 10px;
  transform: translateX(-3px);
  width: 5px;
}

.sound-toggle span::before {
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
  content: "";
  height: 15px;
  left: 5px;
  top: -2px;
  width: 10px;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: var(--white);
  border-color: var(--coral);
  outline: none;
  transform: translateY(-1px);
}

.sound-panel {
  background: rgba(8, 10, 9, 0.94);
  border: 1px solid rgba(88, 255, 116, 0.38);
  border-radius: 8px;
  bottom: 48px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  color: #b7ffbf;
  display: grid;
  font-family: var(--font-code);
  font-size: 0.76rem;
  gap: 8px;
  width: min(220px, calc(100vw - 24px));
  padding: 10px 42px 10px 12px;
  position: absolute;
  text-transform: uppercase;
  z-index: 45;
}

.sound-panel[hidden] {
  display: none;
}

.sound-switch,
.sound-volume {
  align-items: center;
  display: grid;
  gap: 8px;
}

.sound-panel-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(183, 255, 191, 0.42);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 22px;
}

.sound-panel-close:hover,
.sound-panel-close:focus-visible {
  border-color: rgba(183, 255, 191, 0.72);
  outline: none;
}

.sound-panel-close span,
.sound-panel-close span::before {
  background: #b7ffbf;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  width: 11px;
}

.sound-panel-close span {
  transform: rotate(45deg);
}

.sound-panel-close span::before {
  transform: rotate(90deg);
}

.sound-switch {
  cursor: pointer;
  grid-template-columns: auto 1fr;
}

.sound-switch input {
  appearance: none;
  background: #7b837d;
  border: 1px solid rgba(183, 255, 191, 0.58);
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  height: 15px;
  margin: 0;
  place-content: center;
  pointer-events: none;
  width: 15px;
}

.sound-switch input::before {
  border-bottom: 2px solid #d9ffe0;
  border-right: 2px solid #d9ffe0;
  content: "";
  height: 8px;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
  width: 4px;
}

.sound-switch input:checked {
  background: #536058;
}

.sound-switch input:checked::before {
  opacity: 1;
}

.sound-switch input:focus-visible {
  outline: 2px solid rgba(183, 255, 191, 0.52);
  outline-offset: 2px;
}

.sound-volume input {
  accent-color: #58ff74;
}

.sound-volume input {
  width: 100%;
}

.sound-volume input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.twitter-ghost-bubble.is-error {
  animation: twitter-error-flash 520ms steps(2, end) infinite;
  background: #b91c1c;
  border-color: #ff7b7b;
  color: var(--white);
}

@keyframes twitter-error-flash {
  50% {
    background: #fbfaf7;
    color: #b91c1c;
  }
}

.products-page {
  padding-top: 72px;
}

.product-grid {
  scroll-margin-top: 84px;
}

.products-hero {
  align-items: start;
  background:
    linear-gradient(120deg, rgba(36, 106, 105, 0.9), rgba(23, 32, 29, 0.92)),
    url("../images/hero-mars-rover.webp") center / cover;
  color: var(--white);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 560px;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 76px);
}

.products-hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
}

.products-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 640px;
}

.detail-page {
  padding-top: 72px;
}

.product-section {
  background: #fbfaf7;
  padding: clamp(72px, 9vw, 112px) clamp(20px, 7vw, 88px);
}

.product-header {
  max-width: 880px;
}

.product-title {
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
}

.legal-title {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.9;
}

.legal-block .feature-group h2 {
  color: var(--teal);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.product-subtitle {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 14px;
}

.product-tagline {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 10px;
  text-transform: uppercase;
}

.product-block {
  display: grid;
  gap: 22px;
  margin-top: clamp(36px, 6vw, 64px);
  max-width: 980px;
}

.mascot-profile {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  max-width: 1160px;
}

.mascot-profile .product-block {
  margin-top: clamp(36px, 6vw, 64px);
}

.mascot-portrait {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: clamp(42px, 7vw, 82px);
  padding: clamp(16px, 3vw, 28px);
}

.mascot-portrait img {
  display: block;
  image-rendering: auto;
  width: 100%;
}

.product-block > h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.feature-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.05);
  padding: clamp(22px, 4vw, 34px);
}

.feature-group h3,
.product-notes h3 {
  color: var(--teal);
  margin-bottom: 12px;
}

.feature-group ul {
  color: var(--muted);
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.feature-group p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.feature-group p + p,
.feature-group p + ul,
.feature-group ul + p {
  margin-top: 14px;
}

.infographic-panel {
  margin-top: clamp(28px, 5vw, 52px);
  max-width: 980px;
}

.infographic-panel summary {
  display: inline-flex;
  list-style: none;
}

.infographic-panel summary::-webkit-details-marker {
  display: none;
}

.infographic-media {
  background: var(--white);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 22px;
  max-width: 100%;
  padding: clamp(8px, 2vw, 18px);
  position: relative;
}

.infographic-media img {
  display: block;
  max-width: 100%;
}

.infographic-media.is-zoomable img {
  cursor: zoom-in;
}

.infographic-media.is-zoomable:hover .product-zoom-control {
  opacity: 1;
}

.product-notes {
  background: #edf3ef;
  border: 1px solid #c8d3cb;
  border-radius: 8px;
  margin-top: clamp(28px, 5vw, 52px);
  max-width: 980px;
  padding: clamp(24px, 4vw, 36px);
}

.product-notes p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.mascot-footnote {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.86rem;
  font-weight: 700;
  margin: clamp(22px, 4vw, 34px) 0 0;
  max-width: 980px;
}

.mascot-footnote a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.cart-panel {
  background: rgba(251, 250, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 24px;
}

.cart-heading,
.cart-total,
.cart-line,
.product-buy {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.cart-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.cart-heading h2 {
  font-size: 1.4rem;
  margin: 0;
}

.cart-heading span,
.empty-cart,
.cart-line span,
.product-info span {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 106px;
  padding: 18px 0;
}

.cart-line {
  align-items: center;
  border-bottom: 1px solid #eef0ec;
  display: grid;
  font-size: 0.94rem;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 10px;
}

.cart-quantity {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.cart-quantity button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-code);
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.cart-quantity button:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.cart-total {
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  padding-top: 16px;
}

.checkout-button {
  margin-top: 20px;
  width: 100%;
}

.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(42px, 7vw, 76px);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.06);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: var(--white);
  position: relative;
}

.product-image-frame {
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.product-image {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.product-media.is-zoomable .product-image {
  cursor: zoom-in;
}

.availability-badge {
  cursor: zoom-in;
  height: clamp(28px, 12%, 44px);
  position: absolute;
  right: 12px;
  top: 12px;
  transform: rotate(20deg);
  width: auto;
  z-index: 5;
}

.availability-badge:focus-visible {
  outline: 3px solid rgba(36, 106, 105, 0.26);
  outline-offset: 3px;
}

.product-image-nav,
.product-zoom-control {
  align-items: center;
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font-code);
  font-size: 1rem;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  position: absolute;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 36px;
}

.product-image-nav {
  opacity: 0.86;
  top: 50%;
  transform: translateY(-50%);
}

.product-image-nav.previous {
  left: 12px;
}

.product-image-nav.next {
  right: 12px;
}

.product-image-nav:hover,
.product-image-nav:focus-visible,
.product-zoom-control:hover,
.product-zoom-control:focus-visible {
  background: var(--white);
  opacity: 1;
}

.product-image-count {
  background: rgba(23, 32, 29, 0.76);
  border-radius: 999px;
  bottom: 12px;
  color: var(--white);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  left: 50%;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  transform: translateX(-50%);
}

.product-zoom-control {
  opacity: 0;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.product-zoom-control::before,
.product-zoom-control::after {
  content: "";
  display: block;
  position: absolute;
}

.product-zoom-control::before {
  border: 3px solid currentColor;
  border-radius: 50%;
  height: 12px;
  left: 9px;
  top: 8px;
  width: 12px;
}

.product-zoom-control::after {
  background: currentColor;
  border-radius: 999px;
  height: 3px;
  left: 21px;
  top: 22px;
  transform: rotate(45deg);
  width: 9px;
}

.product-zoom-control:focus-visible {
  opacity: 1;
}

.catalog-status {
  color: var(--muted);
  font-size: 1rem;
  grid-column: 1 / -1;
  margin: 0;
}

.product-art {
  aspect-ratio: 5 / 3;
  position: relative;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
}

.product-art.dust {
  background: linear-gradient(135deg, #c55231, #efb56f);
}

.product-art.dust::before {
  background: rgba(255, 244, 220, 0.6);
  border-radius: 50%;
  filter: blur(12px);
  height: 72px;
  left: 20%;
  top: 32%;
  width: 160px;
}

.product-art.soup {
  background: linear-gradient(135deg, #20302b, #739f95);
}

.product-art.soup::before {
  background: #f6c85f;
  border: 10px solid #f8efe0;
  border-radius: 50%;
  height: 86px;
  left: calc(50% - 53px);
  top: calc(50% - 53px);
  width: 86px;
}

.product-art.rock {
  background: linear-gradient(135deg, #783d2b, #d56f3e);
}

.product-art.rock::before {
  background: #4e332b;
  border-radius: 36% 64% 42% 58%;
  box-shadow: 28px 18px 0 #8e5841;
  height: 76px;
  left: 34%;
  top: 34%;
  transform: rotate(-14deg);
  width: 116px;
}

.product-art.air {
  background: linear-gradient(135deg, #e8f4f5, #f2c9a8);
}

.product-art.air::before {
  border: 4px solid rgba(23, 32, 29, 0.22);
  border-radius: 12px 12px 28px 28px;
  height: 104px;
  left: calc(50% - 42px);
  top: 28px;
  width: 84px;
}

.product-art.light {
  background: linear-gradient(135deg, #263547, #e3a344);
}

.product-art.light::before {
  background: #ffe9a6;
  border-radius: 50%;
  box-shadow: 0 0 45px #ffe9a6;
  height: 72px;
  left: calc(50% - 36px);
  top: 36px;
  width: 72px;
}

.product-art.stickers {
  background: linear-gradient(135deg, #f1d190, #e76f51);
}

.product-art.stickers::before,
.product-art.stickers::after {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(23, 32, 29, 0.12);
  height: 78px;
  top: 42px;
  width: 108px;
}

.product-art.stickers::before {
  left: 25%;
  transform: rotate(-10deg);
}

.product-art.stickers::after {
  right: 23%;
  transform: rotate(12deg);
}

.product-info {
  padding: 22px;
}

.product-info p {
  color: var(--coral);
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-info h2 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.product-info span {
  display: block;
  min-height: 0;
}

.product-description-panel {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 16px;
}

.product-description-panel[hidden] {
  display: none;
}

.product-description-body {
  color: var(--muted);
  display: grid;
  font-size: 0.94rem;
  gap: 12px;
  margin-top: 14px;
}

.product-description-body h3,
.product-description-body h4 {
  color: var(--ink);
  margin: 0;
}

.product-description-body p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  margin: 0;
  text-transform: none;
}

.product-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.product-version {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 12px;
}

.product-version[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.product-buy {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.product-buy,
.product-accessory {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.product-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-description-toggle {
  min-height: 40px;
  padding-inline: 14px;
}

.product-accessories {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.product-accessories h3 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0;
}

.product-accessory {
  align-items: start;
}

.product-accessory div {
  display: grid;
  gap: 4px;
}

.product-accessory span {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-accessory-action {
  flex: 0 0 auto;
}

.product-accessory .button {
  padding-inline: 14px;
}

.product-accessory.is-discontinued strong,
.product-accessory.is-discontinued span {
  color: #8a918c;
}

.discontinued-badge {
  background: #e5e4df;
  border: 1px solid #c9cbc5;
  border-radius: 999px;
  color: #636a65;
  display: inline-flex;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 34px;
  padding: 9px 12px 0;
  text-transform: uppercase;
}

.product-buy strong,
.cart-total strong,
.cart-line strong {
  font-family: var(--font-code);
  font-weight: 700;
}

.checkout-popup {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: center;
  left: 50%;
  opacity: 0;
  padding: 26px 34px 24px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.checkout-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-popup p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  max-width: 560px;
  text-align: center;
}

.chat-popup {
  align-items: end;
  background: rgba(10, 18, 16, 0.22);
  display: grid;
  inset: 0;
  justify-items: end;
  opacity: 0;
  padding: clamp(16px, 4vw, 36px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 35;
}

.chat-popup[hidden] {
  display: none;
}

.chat-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.chat-window {
  background: var(--white);
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-rows: auto minmax(220px, 46vh) auto;
  max-height: min(680px, calc(100vh - 32px));
  max-width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
  width: 100%;
}

.chat-popup.is-visible .chat-window {
  transform: translateY(0) scale(1);
}

.chat-header {
  align-items: center;
  background: var(--teal);
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 16px 14px 18px;
}

.chat-header div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.chat-header h2 {
  font-size: 1rem;
  line-height: 1.1;
  margin: 0;
}

.chat-status-dot {
  background: #78d7a1;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(120, 215, 161, 0.9);
  display: block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.chat-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.chat-close span {
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.chat-close span::before,
.chat-close span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 6px;
  width: 14px;
}

.chat-close span::before {
  transform: rotate(45deg);
}

.chat-close span::after {
  transform: rotate(-45deg);
}

.chat-messages {
  background: #f4f3ef;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
  max-width: 86%;
  padding: 10px 12px;
}

.chat-message.bot {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  justify-self: start;
}

.chat-message.user {
  background: var(--coral);
  color: var(--white);
  justify-self: end;
}

.chat-form {
  background: var(--white);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.chat-form label {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chat-input-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-input-row input {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 600 0.96rem/1 var(--font-body);
  min-height: 44px;
  min-width: 0;
  padding: 0 15px;
}

.chat-input-row input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(36, 106, 105, 0.16);
}

.chat-input-row button {
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
}

.qlog-popup {
  align-items: center;
  background: rgba(10, 18, 16, 0.42);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: clamp(16px, 4vw, 36px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 35;
}

.qlog-popup[hidden] {
  display: none;
}

.qlog-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.qlog-window {
  background: #fbfaf7;
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(720px, calc(100vh - 32px));
  max-width: min(720px, calc(100vw - 32px));
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
  width: 100%;
}

.qlog-popup.is-visible .qlog-window {
  transform: translateY(0) scale(1);
}

.qlog-header {
  align-items: center;
  background: var(--teal);
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 16px 14px 18px;
}

.qlog-header div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.qlog-header h2 {
  font-size: 1rem;
  line-height: 1.1;
  margin: 0;
}

.qlog-status-dot {
  background: #f6c85f;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(246, 200, 95, 0.85);
  display: block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.qlog-list {
  display: grid;
  gap: 12px;
  max-height: min(620px, calc(100vh - 112px));
  overflow-y: auto;
  padding: clamp(16px, 3vw, 24px);
}

.qlog-entry {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 29, 0.05);
  padding: 16px;
}

.qlog-entry time {
  color: var(--coral);
  display: block;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.qlog-entry p,
.qlog-loading {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.lander-popup {
  align-items: start;
  background: rgba(4, 7, 7, 0.76);
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  overflow-y: hidden;
  padding: clamp(14px, 4vw, 36px);
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 36;
}

.lander-popup[hidden] {
  display: none;
}

.lander-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lander-popup.is-wide-view {
  align-items: stretch;
  background: #020403;
  inset: 0 0 64px;
  justify-items: stretch;
  padding: 0;
  z-index: 28;
}

.lander-popup.is-wide-view .lander-monitor {
  align-self: stretch;
  height: 100%;
  max-height: none;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  transform: none;
  width: 100%;
}

.lander-popup.is-wide-view .lander-monitor-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: none;
  min-height: 0;
  padding: 0;
  position: relative;
}

.lander-popup.is-wide-view .lander-monitor-header {
  justify-content: flex-end;
  left: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 6;
}

.lander-popup.is-wide-view .lander-monitor-header > div:first-child {
  display: none;
}

.lander-popup.is-wide-view .lander-header-controls {
  pointer-events: auto;
}

.lander-popup.is-wide-view .lander-screen {
  border: 0;
  border-radius: 0;
  height: 100%;
  min-height: 0;
}

.lander-popup.is-wide-view .lander-close,
.lander-popup.is-wide-view .lander-popout,
.lander-popup.is-wide-view .game-sound-control .sound-toggle {
  background: rgba(0, 17, 0, 0.78);
  border-color: rgba(51, 255, 102, 0.46);
  color: #58ff74;
}

.lander-page {
  background:
    radial-gradient(circle at 50% 34%, rgba(51, 255, 102, 0.12), transparent 42%),
    #050706;
  min-height: 100vh;
}

.lander-standalone {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 48px);
}

.lander-monitor {
  max-height: calc(100dvh - clamp(28px, 8vw, 72px));
  max-width: min(940px, 96vw);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
  width: 100%;
}

.lander-popup.is-visible .lander-monitor {
  transform: translateY(0) scale(1);
}

.lander-monitor.standalone {
  margin: 0 auto;
  max-height: none;
  transform: none;
}

.lander-monitor-shell {
  background:
    linear-gradient(145deg, #5a5c50, #1f211d 50%, #0d0f0d);
  border: 1px solid #797a6b;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 -28px 50px rgba(0, 0, 0, 0.38),
    0 32px 80px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
  padding: clamp(16px, 3vw, 30px);
}

.lander-monitor-header {
  align-items: center;
  color: #d9ddcf;
  display: flex;
  font-family: var(--font-code);
  gap: 16px;
  justify-content: space-between;
  padding: 0 8px 14px;
  text-transform: uppercase;
}

.lander-monitor-header div {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.lander-header-controls {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.lander-header-controls .sound-panel {
  bottom: auto;
  display: grid;
  top: 46px;
}

.lander-header-controls .sound-panel[hidden] {
  display: none;
}

.lander-monitor-header h1,
.lander-monitor-header h2 {
  font-family: var(--font-code);
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.lander-power-light {
  background: #33ff66;
  border-radius: 999px;
  box-shadow:
    0 0 10px rgba(51, 255, 102, 0.9),
    0 0 22px rgba(51, 255, 102, 0.5);
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.lander-close,
.lander-home-link,
.lander-popout {
  align-items: center;
  background: #121411;
  border: 1px solid #747765;
  border-radius: 999px;
  color: #d9ddcf;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
}

.lander-close {
  padding: 0;
  width: 34px;
}

.lander-close:hover,
.lander-close:focus-visible,
.lander-home-link:hover,
.lander-home-link:focus-visible,
.lander-popout:hover,
.lander-popout:focus-visible {
  border-color: #33ff66;
  color: #33ff66;
}

.lander-popout[hidden] {
  display: none;
}

.lander-close span {
  display: block;
  height: 14px;
  position: relative;
  width: 14px;
}

.lander-close span::before,
.lander-close span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 6px;
  width: 14px;
}

.lander-close span::before {
  transform: rotate(45deg);
}

.lander-close span::after {
  transform: rotate(-45deg);
}

.lander-screen {
  background:
    linear-gradient(rgba(51, 255, 102, 0.05) 50%, rgba(0, 17, 0, 0.05) 50%),
    radial-gradient(circle at 50% 48%, #012b10, #001100 72%);
  background-size: 100% 4px, auto;
  border: 12px solid #111510;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px rgba(51, 255, 102, 0.18),
    inset 0 0 38px rgba(51, 255, 102, 0.18),
    inset 0 0 120px rgba(0, 0, 0, 0.82);
  height: min(620px, calc(100dvh - 150px));
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.lander-screen::after {
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.34));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

@media (max-width: 760px), (max-height: 700px) {
  .lander-popup {
    align-items: stretch;
    padding: 0;
  }

  .lander-monitor {
    height: 100dvh;
    max-height: none;
    max-width: none;
    transform: none;
    width: 100vw;
  }

  .lander-popup.is-visible .lander-monitor {
    transform: none;
  }

  .lander-monitor-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: 100%;
    max-height: none;
    padding: 0;
    position: relative;
  }

  .lander-monitor-header {
    justify-content: flex-end;
    left: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 6;
  }

  .lander-monitor-header > div:first-child {
    display: none;
  }

  .lander-header-controls {
    pointer-events: auto;
  }

  .lander-header-controls .sound-panel {
    right: 42px;
    top: 42px;
  }

  .lander-close,
  .lander-popout,
  .game-sound-control .sound-toggle {
    background: rgba(0, 17, 0, 0.78);
    border-color: rgba(51, 255, 102, 0.46);
    color: #58ff74;
  }

  .lander-screen {
    border: 2px solid rgba(51, 255, 102, 0.38);
    border-radius: 0;
    height: 100dvh;
    min-height: 0;
  }
}

.lander-terminal {
  color: #33ff66;
  font-family: "Courier New", Consolas, var(--font-code);
  font-size: clamp(0.9rem, 2.4vw, 1.12rem);
  height: 100%;
  line-height: 1.35;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 26px);
  position: relative;
  text-shadow:
    0 0 7px rgba(51, 255, 102, 0.72),
    0 0 20px rgba(51, 255, 102, 0.28);
  white-space: pre-wrap;
  z-index: 1;
}

.tic-tac-toe-terminal {
  align-content: start;
  color: #33ff66;
  display: grid;
  font-family: "Courier New", Consolas, var(--font-code);
  height: 100%;
  overflow-y: hidden;
  padding: clamp(16px, 4vw, 30px);
  place-items: center;
  position: relative;
  text-align: center;
  z-index: 1;
}

.tic-tac-toe-terminal[hidden] {
  display: none;
}

.shooting-gallery-terminal {
  align-content: center;
  color: #33ff66;
  display: grid;
  font-family: "Courier New", Consolas, var(--font-code);
  gap: clamp(10px, 1.8vw, 16px);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  overflow-y: hidden;
  padding: clamp(10px, 2vw, 18px);
  position: relative;
  text-align: center;
  text-shadow:
    0 0 7px rgba(51, 255, 102, 0.62),
    0 0 20px rgba(51, 255, 102, 0.22);
  z-index: 1;
}

.shooting-gallery-terminal[hidden] {
  display: none;
}

.fractal-terminal {
  color: #33ff66;
  font-family: "Courier New", Consolas, var(--font-code);
  height: 100%;
  overflow: hidden;
  position: relative;
  text-shadow:
    0 0 7px rgba(51, 255, 102, 0.62),
    0 0 20px rgba(51, 255, 102, 0.22);
  z-index: 1;
}

.fractal-terminal[hidden] {
  display: none;
}

.fractal-standalone-page {
  background: #010603;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.fractal-fullscreen {
  height: 100vh;
  width: 100vw;
}

.fractal-home-link {
  align-items: center;
  background: rgba(3, 16, 7, 0.86);
  border: 1px solid rgba(51, 255, 102, 0.48);
  border-radius: 999px;
  color: #d9ffdd;
  display: inline-flex;
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
  position: fixed;
  right: 14px;
  text-transform: uppercase;
  top: 14px;
  z-index: 5;
}

.fractal-home-link:hover,
.fractal-home-link:focus-visible {
  border-color: #f6c85f;
  color: #f6c85f;
}

.fractal-game {
  background:
    radial-gradient(circle at 52% 44%, rgba(51, 255, 102, 0.1), transparent 34%),
    linear-gradient(180deg, #031006, #010603 62%, #050302);
  color: #c9ffd0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.fractal-game.is-rendering,
.fractal-game.is-rendering * {
  cursor: wait !important;
}

.fractal-canvas {
  background: #010603;
  cursor: grab;
  display: block;
  height: 100%;
  outline: 0;
  touch-action: none;
  width: 100%;
}

.fractal-canvas.is-dragging {
  cursor: grabbing;
}

.fractal-panel {
  background: rgba(3, 16, 7, 0.88);
  border: 1px solid rgba(51, 255, 102, 0.5);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 10px;
  left: clamp(10px, 2vw, 18px);
  max-height: calc(100% - 26px);
  overflow-y: auto;
  padding: 12px;
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  width: min(265px, calc(100% - 24px));
  z-index: 2;
}

.fractal-panel[hidden] {
  display: none;
}

.fractal-panel-heading {
  align-items: center;
  color: #f6c85f;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1;
  text-transform: uppercase;
}

.fractal-icon-button {
  align-items: center;
  aspect-ratio: 1;
  background: #111610;
  border: 1px solid rgba(51, 255, 102, 0.42);
  border-radius: 6px;
  color: #c9ffd0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  width: 28px;
}

.fractal-field {
  display: grid;
  gap: 5px;
}

.fractal-field span {
  color: #a8dfac;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fractal-field output {
  color: #f6c85f;
  font-size: 0.76rem;
}

.fractal-field select,
.fractal-field input[type="range"] {
  accent-color: #33ff66;
  width: 100%;
}

.fractal-field select {
  background: #08150a;
  border: 1px solid rgba(51, 255, 102, 0.48);
  border-radius: 6px;
  color: #e2ffe4;
  font: inherit;
  min-height: 32px;
  padding: 4px 8px;
}

.fractal-field select option {
  background: #08150a;
  color: #e2ffe4;
}

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

.fractal-actions button,
.fractal-restore,
.fractal-stop {
  background: #101710;
  border: 1px solid rgba(51, 255, 102, 0.5);
  border-radius: 6px;
  color: #d9ffdd;
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 32px;
  text-transform: uppercase;
}

.fractal-actions button:hover,
.fractal-actions button:focus-visible,
.fractal-restore:hover,
.fractal-restore:focus-visible,
.fractal-stop:hover,
.fractal-stop:focus-visible,
.fractal-icon-button:hover,
.fractal-icon-button:focus-visible {
  border-color: #f6c85f;
  color: #f6c85f;
}

.fractal-readout {
  color: #89d98e;
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

.fractal-restore,
.fractal-stop {
  left: clamp(10px, 2vw, 18px);
  padding: 0 12px;
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  z-index: 3;
}

.fractal-stop {
  background: #1b0b07;
  border-color: rgba(231, 111, 81, 0.72);
  color: #ffd0c1;
}

.fractal-restore[hidden],
.fractal-stop[hidden],
.fractal-hint[hidden] {
  display: none;
}

.fractal-hint {
  background: rgba(3, 16, 7, 0.78);
  border: 1px solid rgba(51, 255, 102, 0.34);
  border-radius: 6px;
  bottom: 12px;
  color: #c9ffd0;
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  left: 50%;
  margin: 0;
  max-width: min(520px, calc(100% - 24px));
  padding: 8px 10px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2;
}

.fractal-standalone-page .fractal-panel {
  width: min(285px, calc(100% - 24px));
}

@media (max-width: 700px) {
  .fractal-home-link {
    min-height: 30px;
    right: 10px;
    top: 10px;
  }

  .fractal-panel {
    max-height: min(420px, calc(100% - 22px));
    width: min(245px, calc(100% - 22px));
  }
}

.shooting-gallery-terminal h3 {
  color: #33ff66;
  font-family: inherit;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  line-height: 1.1;
  margin: 0;
}

.shooting-gallery-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  cursor: default;
  user-select: none;
  text-align: center;
}

.shooting-gallery-hud div {
  background: rgba(0, 17, 0, 0.78);
  border: 1px solid rgba(51, 255, 102, 0.32);
  border-radius: 4px;
  color: rgba(202, 255, 212, 0.9);
  font-size: clamp(0.9rem, 2.4vw, 1.18rem);
  font-weight: 700;
  min-height: 38px;
  min-width: clamp(118px, 15vw, 168px);
  padding: 8px 10px;
  text-transform: uppercase;
  cursor: default;
}

.shooting-gallery-hud div[hidden] {
  display: none;
}

.shooting-gallery-stage {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 42%, rgba(51, 255, 102, 0.08), transparent 50%),
    #030b08;
  border: 2px solid rgba(51, 255, 102, 0.55);
  box-shadow:
    inset 0 0 24px rgba(51, 255, 102, 0.16),
    0 0 18px rgba(51, 255, 102, 0.12);
  align-self: center;
  height: auto;
  max-width: min(100%, calc((100dvh - 210px) * 16 / 9));
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: min(100%, 780px);
}

.shooting-gallery-canvas {
  cursor: none;
  display: block;
  height: 100%;
  width: 100%;
}

.shooting-gallery-canvas:focus-visible {
  outline: 2px solid rgba(202, 255, 212, 0.82);
  outline-offset: -5px;
}

@media (max-width: 680px) {
  .shooting-gallery-stage {
    max-width: min(100%, calc((100dvh - 190px) * 16 / 9));
  }
}

.tic-tac-toe-terminal h3 {
  color: #33ff66;
  font-family: inherit;
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0;
  margin: 0 0 8px;
  text-shadow: 0 0 15px rgba(51, 255, 102, 0.8);
}

.tic-tac-toe-subtitle {
  color: rgba(51, 255, 102, 0.7);
  margin: 0 0 20px;
}

.tic-tac-toe-board {
  display: grid;
  gap: clamp(7px, 2vw, 12px);
  grid-template-columns: repeat(3, clamp(64px, min(18vw, 15dvh), 110px));
  margin: 8px auto 22px;
}

.tic-tac-toe-cell {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: rgba(10, 42, 10, 0.92);
  border: 3px solid #33ff66;
  box-shadow: inset 0 0 20px rgba(51, 255, 102, 0.26);
  color: #33ff66;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: clamp(2.9rem, 12vw, 5.1rem);
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-shadow: 0 0 12px rgba(51, 255, 102, 0.75);
}

.tic-tac-toe-cell:hover,
.tic-tac-toe-cell:focus-visible {
  background: rgba(15, 58, 15, 0.95);
  outline: none;
}

.tic-tac-toe-mark {
  align-items: center;
  display: inline-flex;
  height: 78%;
  justify-content: center;
  position: relative;
  width: 78%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="2"] .tic-tac-toe-mark {
  image-rendering: pixelated;
  text-shadow: none;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="2"] .tic-tac-toe-mark[data-player="colonist"] {
  background:
    linear-gradient(#33ff66, #33ff66) 28% 32% / 18% 18% no-repeat,
    linear-gradient(#33ff66, #33ff66) 72% 32% / 18% 18% no-repeat,
    linear-gradient(#33ff66, #33ff66) 50% 72% / 58% 13% no-repeat;
  filter: drop-shadow(0 0 8px rgba(51, 255, 102, 0.7));
  height: 100%;
  width: 100%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="2"] .tic-tac-toe-mark[data-player="dusty"] {
  background:
    linear-gradient(#33ff66, #33ff66) 34% 40% / 10% 20% no-repeat,
    linear-gradient(#33ff66, #33ff66) 66% 40% / 10% 20% no-repeat;
  border: 3px solid #33ff66;
  height: 40%;
  margin-bottom: 22%;
  box-shadow:
    inset 0 0 0 7px rgba(51, 255, 102, 0.08),
    0 0 13px rgba(51, 255, 102, 0.54);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="2"] .tic-tac-toe-mark[data-player="dusty"]::before {
  background: #33ff66;
  content: "";
  height: 18%;
  left: 36%;
  position: absolute;
  right: 36%;
  top: calc(100% + 3px);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark,
.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark,
.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark {
  filter: drop-shadow(0 0 9px rgba(51, 255, 102, 0.62));
  text-shadow: none;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="colonist"] {
  background:
    radial-gradient(circle at 50% 36%, rgba(51, 255, 102, 0.22) 0 17%, transparent 18%),
    linear-gradient(115deg, transparent 0 18%, #33ff66 19% 24%, transparent 25%),
    linear-gradient(245deg, transparent 0 18%, #33ff66 19% 24%, transparent 25%);
  border: 4px solid #33ff66;
  border-radius: 48% 48% 42% 42%;
  height: 72%;
  transform: perspective(120px) rotateX(12deg);
  width: 58%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="colonist"]::before {
  border-bottom: 12px solid #33ff66;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  bottom: -16px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="dusty"] {
  background:
    linear-gradient(#33ff66, #33ff66) 50% 8% / 4px 26% no-repeat,
    radial-gradient(circle at 50% 5%, #33ff66 0 5%, transparent 6%),
    linear-gradient(90deg, transparent 0 18%, #33ff66 19% 24%, transparent 25% 75%, #33ff66 76% 81%, transparent 82%),
    linear-gradient(#33ff66, #33ff66) 50% 48% / 42% 5px no-repeat;
  border: 4px solid #33ff66;
  border-radius: 6px;
  height: 46%;
  margin-bottom: 20%;
  width: 55%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="dusty"]::before,
.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="dusty"]::after {
  border-left: 3px solid #33ff66;
  border-top: 3px solid #33ff66;
  bottom: -36%;
  content: "";
  height: 32%;
  position: absolute;
  width: 24%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="dusty"]::before {
  left: 18%;
  transform: skewX(-22deg);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="3"] .tic-tac-toe-mark[data-player="dusty"]::after {
  right: 18%;
  transform: scaleX(-1) skewX(-22deg);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="colonist"] {
  background:
    linear-gradient(#33ff66, #33ff66) 50% 50% / 30% 72% no-repeat,
    radial-gradient(circle at 50% 18%, #33ff66 0 14%, transparent 15%),
    linear-gradient(135deg, transparent 0 43%, #33ff66 44% 57%, transparent 58%) 15% 67% / 32% 32% no-repeat,
    linear-gradient(45deg, transparent 0 43%, #33ff66 44% 57%, transparent 58%) 85% 67% / 32% 32% no-repeat;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="colonist"]::before {
  background:
    linear-gradient(#33ff66, #33ff66) 35% 100% / 7% 22% no-repeat,
    linear-gradient(#33ff66, #33ff66) 50% 100% / 7% 28% no-repeat,
    linear-gradient(#33ff66, #33ff66) 65% 100% / 7% 22% no-repeat;
  bottom: -11%;
  content: "";
  height: 34%;
  left: 0;
  position: absolute;
  right: 0;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="dusty"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(51, 255, 102, 0.15) 0 18%, transparent 19%),
    linear-gradient(22deg, transparent 0 37%, #33ff66 38% 43%, transparent 44%) 16% 50% / 50% 78% no-repeat,
    linear-gradient(-22deg, transparent 0 37%, #33ff66 38% 43%, transparent 44%) 84% 50% / 50% 78% no-repeat;
  border: 3px solid #33ff66;
  border-radius: 50%;
  height: 58%;
  width: 58%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="dusty"]::before,
.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="dusty"]::after {
  background: #33ff66;
  content: "";
  height: 8%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  width: 56%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="dusty"]::before {
  transform: rotate(35deg);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="4"] .tic-tac-toe-mark[data-player="dusty"]::after {
  transform: rotate(145deg);
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="colonist"] {
  background:
    radial-gradient(circle at 30% 34%, transparent 0 8%, #33ff66 9% 12%, transparent 13%),
    radial-gradient(circle at 62% 62%, transparent 0 10%, #33ff66 11% 14%, transparent 15%),
    linear-gradient(28deg, transparent 0 30%, #33ff66 31% 35%, transparent 36% 62%, #33ff66 63% 67%, transparent 68%);
  border: 4px solid #33ff66;
  border-radius: 50%;
  height: 72%;
  width: 72%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="dusty"] {
  background:
    linear-gradient(#33ff66, #33ff66) 50% 30% / 7% 22% no-repeat,
    linear-gradient(#33ff66, #33ff66) 34% 42% / 14% 12% no-repeat,
    linear-gradient(#33ff66, #33ff66) 66% 42% / 14% 12% no-repeat,
    linear-gradient(#33ff66, #33ff66) 50% 64% / 58% 12% no-repeat;
  border: 3px solid #33ff66;
  border-radius: 8px 8px 14px 14px;
  height: 46%;
  margin-bottom: 18%;
  width: 72%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="dusty"]::before,
.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="dusty"]::after {
  background:
    radial-gradient(circle, #33ff66 0 36%, transparent 37%) left center / 38% 100% no-repeat,
    radial-gradient(circle, #33ff66 0 36%, transparent 37%) right center / 38% 100% no-repeat,
    linear-gradient(#33ff66, #33ff66) center / 100% 20% no-repeat;
  bottom: -28%;
  content: "";
  height: 20%;
  position: absolute;
  width: 42%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="dusty"]::before {
  left: 4%;
}

.tic-tac-toe-terminal[data-tic-tac-toe-level="5"] .tic-tac-toe-mark[data-player="dusty"]::after {
  right: 4%;
}

.tic-tac-toe-status {
  color: #33ff66;
  font-size: clamp(0.88rem, min(2.6vw, 2.4dvh), 1.2rem);
  margin-bottom: 18px;
  min-height: 2.6em;
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.72);
}

.tic-tac-toe-status p {
  margin: 0 0 12px;
}

.tic-tac-toe-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tic-tac-toe-choice {
  background: #030603;
  border: 2px solid #33ff66;
  color: #33ff66;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 82px;
  padding: 8px 14px;
  text-transform: uppercase;
}

.tic-tac-toe-reset {
  background: #030603;
  border: 2px solid #33ff66;
  color: #33ff66;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 16px;
  text-transform: uppercase;
}

.tic-tac-toe-reset:hover,
.tic-tac-toe-reset:focus-visible,
.tic-tac-toe-choice:hover,
.tic-tac-toe-choice:focus-visible {
  background: #33ff66;
  color: #001100;
  outline: none;
}

.chess-terminal {
  align-items: center;
  box-sizing: border-box;
  color: #33ff66;
  display: flex;
  flex-direction: column;
  font-family: "Courier New", Consolas, var(--font-code);
  height: 100%;
  overflow-y: hidden;
  padding: clamp(14px, 3vw, 26px);
  position: relative;
  text-align: center;
  z-index: 1;
}

.chess-layout {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: start;
  width: 100%;
}

.chess-panel,
.chess-board-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.chess-board-panel {
  width: 100%;
}

@media (max-height: 820px) {
  .lander-popup,
  .tic-tac-toe-terminal,
  .shooting-gallery-terminal,
  .chess-terminal {
    overflow-y: auto;
  }
}

@media (max-height: 700px) {
  .tic-tac-toe-terminal {
    padding: 12px;
  }

  .tic-tac-toe-terminal h3 {
    font-size: clamp(1rem, 3vw, 1.35rem);
    margin-bottom: 4px;
  }

  .tic-tac-toe-subtitle {
    margin-bottom: 10px;
  }

  .tic-tac-toe-board {
    gap: 7px;
    grid-template-columns: repeat(3, clamp(56px, min(16vw, 13dvh), 92px));
    margin: 4px auto 12px;
  }

  .tic-tac-toe-status {
    margin-bottom: 10px;
    min-height: 2.2em;
  }

  .tic-tac-toe-reset {
    padding: 8px 14px;
  }
}

.chess-terminal[hidden] {
  display: none;
}

.chess-terminal h3 {
  color: #33ff66;
  font-family: inherit;
  font-size: clamp(1.05rem, 3.2vw, 1.7rem);
  letter-spacing: 0;
  margin: 0 0 6px;
  text-shadow: 0 0 15px rgba(51, 255, 102, 0.8);
}

.chess-level-control {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0 0 clamp(12px, 2.6vw, 18px);
}

.chess-level-button,
.chess-level-select {
  background: transparent;
  border: 1px solid rgba(51, 255, 102, 0.55);
  color: rgba(51, 255, 102, 0.7);
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  max-width: 100%;
  padding: 6px 10px;
}

.chess-level-button:hover,
.chess-level-button:focus-visible,
.chess-level-select:focus-visible {
  border-color: #33ff66;
  color: #33ff66;
  outline: none;
}

.chess-level-select {
  background: #001100;
}

.chess-level-button[hidden],
.chess-level-select[hidden] {
  display: none;
}

.chess-board {
  aspect-ratio: 1 / 1;
  border: 3px solid #33ff66;
  box-shadow:
    inset 0 0 30px rgba(51, 255, 102, 0.18),
    0 0 24px rgba(51, 255, 102, 0.18);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  flex: 0 0 auto;
  margin: 0 auto clamp(12px, 2.8vw, 18px);
  max-width: 100%;
  touch-action: none;
  width: min(100%, 500px, max(230px, calc(100dvh - 560px)));
}

.chess-cell {
  align-items: center;
  border: 1px solid rgba(51, 255, 102, 0.28);
  display: flex;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  position: relative;
}

.chess-cell.is-light {
  background: rgba(7, 38, 12, 0.94);
}

.chess-cell.is-dark {
  background: rgba(0, 17, 0, 0.96);
}

.chess-cell.is-selected {
  box-shadow: inset 0 0 0 3px rgba(202, 255, 202, 0.72);
}

.chess-cell.is-legal-target {
  box-shadow: inset 0 0 0 3px rgba(51, 255, 102, 0.58);
}

.chess-cell.is-legal-target::after {
  background: rgba(51, 255, 102, 0.72);
  box-shadow: 0 0 10px rgba(51, 255, 102, 0.72);
  content: "";
  height: 18%;
  position: absolute;
  width: 18%;
}

.chess-cell.is-capture-target {
  box-shadow: inset 0 0 0 3px rgba(202, 255, 202, 0.86);
}

.chess-cell.is-computer-move .chess-piece {
  animation: chess-computer-flash 720ms steps(2, end) 2;
}

.chess-piece {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 90%;
  justify-content: center;
  line-height: 1;
  position: relative;
  user-select: none;
  width: 90%;
  z-index: 1;
}

.chess-piece::before {
  background: currentColor;
  content: "";
  display: block;
  height: 94%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  width: 94%;
}

.chess-piece-king::before {
  mask-image: url("../images/chess/king.svg");
  -webkit-mask-image: url("../images/chess/king.svg");
}

.chess-piece-queen::before {
  mask-image: url("../images/chess/queen.svg");
  -webkit-mask-image: url("../images/chess/queen.svg");
}

.chess-piece-knight::before {
  mask-image: url("../images/chess/knight.svg");
  -webkit-mask-image: url("../images/chess/knight.svg");
}

.chess-piece-bishop::before {
  mask-image: url("../images/chess/bishop.svg");
  -webkit-mask-image: url("../images/chess/bishop.svg");
}

.chess-piece-rook::before {
  mask-image: url("../images/chess/rook.svg");
  -webkit-mask-image: url("../images/chess/rook.svg");
}

.chess-piece-pawn::before {
  mask-image: url("../images/chess/pawn.svg");
  -webkit-mask-image: url("../images/chess/pawn.svg");
}

.chess-cell.is-white-piece .chess-piece {
  filter:
    drop-shadow(0 0 7px rgba(239, 255, 238, 0.46))
    drop-shadow(0 0 13px rgba(51, 255, 102, 0.26));
  color: #efffee;
}

.chess-cell.is-black-piece .chess-piece {
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.78));
  color: #1ac94c;
}

.chess-status {
  color: #33ff66;
  font-size: clamp(0.84rem, 2.4vw, 1.05rem);
  margin-bottom: 14px;
  min-height: 2.4em;
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.72);
}

.chess-reset {
  background: #030603;
  border: 2px solid #33ff66;
  color: #33ff66;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 14px;
  text-transform: uppercase;
}

.chess-reset:hover,
.chess-reset:focus-visible {
  background: #33ff66;
  color: #001100;
  outline: none;
}

.chess-message-popup {
  background: rgba(0, 17, 0, 0.94);
  border: 2px solid #33ff66;
  box-shadow:
    inset 0 0 20px rgba(51, 255, 102, 0.16),
    0 0 30px rgba(51, 255, 102, 0.2);
  color: #33ff66;
  display: grid;
  gap: 16px;
  left: 50%;
  max-width: min(520px, calc(100% - 44px));
  padding: clamp(16px, 3vw, 24px);
  place-items: center;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 10px rgba(51, 255, 102, 0.72);
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 4;
}

.chess-message-popup[hidden] {
  display: none;
}

.chess-message-popup p {
  margin: 0;
}

.chess-message-close {
  background: #030603;
  border: 2px solid #33ff66;
  color: #33ff66;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  text-transform: uppercase;
}

.chess-message-close:hover,
.chess-message-close:focus-visible {
  background: #33ff66;
  color: #001100;
  outline: none;
}

@media (max-height: 760px) {
  .chess-terminal {
    padding: 12px;
  }

  .chess-terminal h3 {
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    margin-bottom: 4px;
  }

  .chess-level-control {
    gap: 6px;
    margin-bottom: 10px;
  }

  .chess-level-button,
  .chess-level-select {
    padding: 5px 8px;
  }

  .chess-board {
    margin-bottom: 10px;
    width: min(100%, 430px, max(210px, calc(100dvh - 500px)));
  }

  .chess-status {
    font-size: clamp(0.78rem, 2.1vw, 0.95rem);
    margin-bottom: 10px;
    min-height: 2.1em;
  }

  .chess-reset {
    padding: 7px 12px;
  }
}

@media (min-aspect-ratio: 13 / 8) and (max-height: 780px) {
  .chess-terminal {
    overflow-y: hidden;
    padding: clamp(10px, 2dvh, 14px);
  }

  .chess-layout {
    display: grid;
    gap: clamp(12px, 2vw, 22px);
    grid-template-columns: minmax(130px, 1fr) minmax(250px, min(54dvh, 500px)) minmax(130px, 1fr);
    justify-content: center;
    justify-items: center;
  }

  .chess-panel {
    aspect-ratio: 1 / 1;
    background: rgba(0, 17, 0, 0.58);
    border: 1px solid rgba(51, 255, 102, 0.34);
    box-shadow:
      inset 0 0 18px rgba(51, 255, 102, 0.08),
      0 0 16px rgba(51, 255, 102, 0.08);
    justify-content: center;
    max-height: min(34dvh, 190px);
    min-height: 122px;
    padding: clamp(10px, 1.4vw, 16px);
    width: min(100%, 190px);
  }

  .chess-terminal h3 {
    font-size: clamp(0.92rem, 1.4vw, 1.18rem);
    line-height: 1.05;
    margin-bottom: clamp(8px, 1.5dvh, 12px);
  }

  .chess-level-control {
    margin: 0;
  }

  .chess-level-button,
  .chess-level-select {
    font-size: clamp(0.72rem, 1.2vw, 0.86rem);
    line-height: 1.25;
    padding: 6px 8px;
  }

  .chess-board-panel {
    width: min(100%, 500px);
  }

  .chess-board {
    margin: 0;
    width: min(100%, 500px, calc(100dvh - 198px));
  }

  .chess-status {
    font-size: clamp(0.76rem, 1.3vw, 0.95rem);
    line-height: 1.25;
    margin-bottom: clamp(10px, 1.8dvh, 16px);
    min-height: 0;
  }

  .chess-reset {
    font-size: clamp(0.74rem, 1.2vw, 0.86rem);
    padding: 8px 10px;
  }
}

@keyframes chess-computer-flash {
  0%,
  100% {
    background: rgba(51, 255, 102, 0.12);
    color: #33ff66;
  }

  50% {
    background: #33ff66;
    color: #001100;
    text-shadow: none;
  }
}

.lander-input-line {
  align-items: center;
  display: flex;
  gap: 8px;
}

.lander-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #33ff66;
  color: #33ff66;
  font: inherit;
  outline: none;
  width: 120px;
}

.image-zoom-overlay {
  align-items: center;
  background: rgba(10, 18, 16, 0.82);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  position: fixed;
  z-index: 40;
}

.image-zoom-overlay[hidden] {
  display: none;
}

.image-zoom-image {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  max-height: min(88vh, 920px);
  max-width: min(92vw, 1100px);
  object-fit: contain;
  padding: clamp(12px, 2vw, 24px);
}

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

.badge-zoom-preview {
  background: transparent;
  border: 0;
  cursor: zoom-out;
  left: 50%;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
}

.badge-zoom-preview img {
  animation: badge-spin 6s linear infinite;
  display: block;
  max-height: min(72%, 340px);
  max-width: min(72%, 340px);
}

.badge-zoom-preview:focus-visible {
  outline: none;
}

.image-zoom-close {
  background: var(--white);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  top: clamp(16px, 4vw, 34px);
}

.rover-head {
  background: #d9d1c3;
  border: 3px solid #3a332d;
  border-radius: 18px;
  height: 76px;
  position: relative;
  width: 132px;
}

.rover-head::before {
  background: #3a332d;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 32px;
  position: absolute;
  right: 32px;
  top: 50px;
}

.rover-head::after {
  background: #3a332d;
  content: "";
  height: 26px;
  left: calc(50% - 2px);
  position: absolute;
  top: -29px;
  width: 4px;
}

.rover-eye {
  background: #17201d;
  border-radius: 50%;
  box-shadow: inset 4px 4px 0 #78b8c5;
  height: 24px;
  position: absolute;
  top: 21px;
  width: 24px;
}

.rover-eye.left {
  left: 30px;
}

.rover-eye.right {
  right: 30px;
}

.rover-neck {
  background: #3a332d;
  bottom: -22px;
  height: 22px;
  left: calc(50% - 4px);
  position: absolute;
  width: 8px;
}

.war-game {
  background: #020403;
  inset: 0 0 52px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 28;
}

.war-game[hidden] {
  display: none;
}

.war-game.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.war-mini-hud {
  background: rgba(0, 8, 0, 0.84);
  border: 1px solid rgba(51, 255, 102, 0.72);
  color: #33ff66;
  cursor: pointer;
  font-family: "Courier New", Consolas, var(--font-code);
  font-size: 0.76rem;
  font-weight: 700;
  left: 50%;
  padding: 7px 10px;
  position: fixed;
  text-shadow: 0 0 9px rgba(51, 255, 102, 0.72);
  top: 82px;
  transform: translateX(-50%);
  z-index: 34;
}

.war-mini-hud[hidden] {
  display: none;
}

.war-mini-hud[data-defcon="4"],
.war-mini-hud[data-defcon="5"] {
  border-color: rgba(255, 69, 56, 0.82);
  color: #ff4538;
  text-shadow: 0 0 12px rgba(255, 69, 56, 0.82);
}

.war-viewport {
  background: #020403;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.war-viewport img {
  filter: contrast(1.08) saturate(0.9);
  height: 100%;
  object-fit: cover;
  object-position: var(--mars-surface-x) 50%;
  width: 100%;
}

.war-scanline {
  background:
    linear-gradient(rgba(51, 255, 102, 0.08) 50%, rgba(0, 0, 0, 0.06) 50%),
    radial-gradient(circle at 50% 48%, transparent 54%, rgba(0, 0, 0, 0.48));
  background-size: 100% 4px, auto;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.war-hud {
  align-items: center;
  color: #33ff66;
  display: grid;
  font-family: "Courier New", Consolas, var(--font-code);
  gap: 8px;
  justify-items: center;
  left: 50%;
  position: absolute;
  text-shadow: 0 0 12px rgba(51, 255, 102, 0.86);
  top: clamp(12px, 3vw, 26px);
  transform: translateX(-50%);
  z-index: 2;
}

.war-hud[hidden] {
  display: none;
}

.war-timer-box {
  align-items: center;
  background: rgba(0, 8, 0, 0.76);
  border: 2px solid rgba(51, 255, 102, 0.72);
  display: inline-flex;
  justify-content: center;
  min-height: clamp(54px, 9vw, 76px);
  min-width: min(42vw, 280px);
  padding: 6px clamp(24px, 4vw, 44px);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.war-timer-box strong {
  font-size: clamp(2rem, 8vw, 5.8rem);
  line-height: 0.95;
  user-select: none;
  -webkit-user-select: none;
}

.war-timer-box strong::selection {
  background: transparent;
}

.war-hud:has(span[data-defcon="4"]) .war-timer-box strong,
.war-hud:has(span[data-defcon="5"]) .war-timer-box strong {
  color: #ff4538;
  text-shadow: 0 0 15px rgba(255, 69, 56, 0.8);
}

.war-hud span {
  background: rgba(0, 8, 0, 0.78);
  border: 1px solid rgba(51, 255, 102, 0.58);
  font-size: clamp(0.9rem, 2.8vw, 1.4rem);
  font-weight: 700;
  padding: 6px 12px;
}

.war-timer-box button {
  background: rgba(0, 8, 0, 0.82);
  border: 1px solid rgba(255, 69, 56, 0.72);
  color: #ff4538;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.5rem, 1.35vw, 0.68rem);
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  position: absolute;
  bottom: 5px;
  right: 5px;
  z-index: 3;
}

.war-timer-box button:hover,
.war-timer-box button:focus-visible {
  background: #ff4538;
  color: #1b0201;
  outline: none;
}

.war-timer-box button[hidden] {
  display: none;
}

.war-hud span[data-defcon="0"],
.war-hud span[data-defcon="1"] {
  color: #33ff66;
}

.war-hud span[data-defcon="2"],
.war-hud span[data-defcon="3"] {
  color: #e1ff64;
}

.war-hud span[data-defcon="4"],
.war-hud span[data-defcon="5"] {
  color: #ff4538;
  text-shadow: 0 0 15px rgba(255, 69, 56, 0.8);
}

.war-close {
  background: rgba(0, 8, 0, 0.76);
  border: 1px solid rgba(51, 255, 102, 0.62);
  color: #33ff66;
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
}

.war-confirm {
  background: rgba(0, 8, 0, 0.88);
  border: 2px solid #33ff66;
  box-shadow:
    inset 0 0 24px rgba(51, 255, 102, 0.16),
    0 0 34px rgba(0, 0, 0, 0.6);
  color: #33ff66;
  display: grid;
  font-family: "Courier New", Consolas, var(--font-code);
  gap: 16px;
  left: 50%;
  max-width: min(88vw, 520px);
  padding: clamp(18px, 4vw, 34px);
  place-items: center;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.war-confirm[hidden] {
  display: none;
}

.war-confirm h2,
.war-confirm p {
  margin: 0;
}

.war-confirm h2 {
  font-family: inherit;
  font-size: clamp(1.1rem, 4vw, 2rem);
  letter-spacing: 0;
}

.war-confirm p,
.war-confirm label {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.war-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.war-confirm button,
.war-confirm input {
  background: #020403;
  border: 2px solid #33ff66;
  color: #33ff66;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
}

.war-confirm button {
  cursor: pointer;
  font-weight: 700;
}

.war-confirm-label {
  display: grid;
  gap: 8px;
}

.war-game.is-flaring::before {
  animation: war-flare 520ms steps(2, end) infinite;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.86), rgba(255, 51, 35, 0.76) 18%, transparent 48%),
    rgba(255, 0, 0, 0.28);
  content: "";
  inset: 0 0 52px;
  mix-blend-mode: screen;
  pointer-events: none;
  position: fixed;
  z-index: 31;
}

.war-blast-message {
  align-items: center;
  background: #000;
  color: #ffdfcf;
  display: none;
  font-family: "Courier New", Consolas, var(--font-code);
  font-size: clamp(1.5rem, 7vw, 5rem);
  font-weight: 700;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  position: fixed;
  text-shadow: 0 0 20px rgba(255, 69, 56, 0.88);
  z-index: 60;
}

.war-blast-message img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.war-blast-hint {
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 223, 207, 0.62);
  bottom: clamp(18px, 4vw, 42px);
  display: none;
  font-size: clamp(0.88rem, 3vw, 1.4rem);
  padding: 10px 14px;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.war-game.is-blast .war-blast-message {
  display: flex;
}

.war-game.show-blast-hint .war-blast-hint {
  display: block;
}

.war-thanks {
  align-items: center;
  background: #020403;
  color: #33ff66;
  display: none;
  font-family: "Courier New", Consolas, var(--font-code);
  font-size: clamp(1.2rem, 5vw, 3rem);
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  text-align: center;
  text-shadow: 0 0 16px rgba(51, 255, 102, 0.82);
  z-index: 60;
}

.war-game.is-thanks .war-thanks {
  display: flex;
}

.war-neutralized {
  animation: war-saved 900ms steps(2, end) 4;
  font-size: clamp(1rem, 4vw, 1.7rem);
  font-weight: 700;
  padding-top: 22px;
  position: relative;
}

.war-neutralized p {
  margin: 0;
}

.war-neutralized-close {
  align-items: center;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #33ff66;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -8px;
  top: -10px;
  width: 28px;
}

.war-neutralized-close span,
.war-neutralized-close span::before,
.war-neutralized-close span::after {
  display: block;
  position: relative;
}

.war-neutralized-close span::before,
.war-neutralized-close span::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: -6px;
  position: absolute;
  top: -1px;
  width: 12px;
}

.war-neutralized-close span::before {
  transform: rotate(45deg);
}

.war-neutralized-close span::after {
  transform: rotate(-45deg);
}

@keyframes war-flare {
  50% {
    opacity: 0.22;
  }
}

@keyframes war-saved {
  50% {
    color: #efffee;
    text-shadow: 0 0 18px rgba(239, 255, 238, 0.9);
  }
}

@media (orientation: portrait) and (pointer: coarse) {
  .war-viewport {
    height: 100vw;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: calc(100vh - 52px);
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 45px rgba(23, 32, 29, 0.12);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 10px 20px 22px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 72px;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav-button {
    display: flex;
    padding: 14px 0;
    text-align: left;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: clamp(68px, 10vh, 92px);
  }

  .launch-window-panel {
    right: 20px;
    top: 20px;
    transform: scale(0.5);
    transform-origin: top right;
  }

  .contact,
  .products-hero,
  .mascot-profile,
  .product-feature-inner,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .mascot-portrait {
    margin-top: 0;
    max-width: 260px;
  }

  .footer-brand {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    height: 86px;
    transform: translateY(15px);
    width: 105px;
  }

  .hero {
    margin-top: 64px;
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 18, 16, 0.7), rgba(10, 18, 16, 0.28) 45%, rgba(10, 18, 16, 0.78));
  }

  .hero-content {
    padding-bottom: 9vh;
    padding-top: clamp(82px, 14vh, 112px);
  }

  .launch-window-panel {
    left: auto;
    right: 12px;
    top: 14px;
    transform: scale(0.38);
    transform-origin: top right;
  }

  .button {
    width: 100%;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .products-page {
    padding-top: 64px;
  }

  .products-hero {
    min-height: auto;
  }

  .product-grid {
    padding-inline: 20px;
  }
}


@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: none;
  }

  .telescope-window {
    width: calc(100vw - 48px);
  }

  .telescope-stage {
    width: min(100%, max(120px, calc(100dvh - 165px)));
  }
}

@media (max-width: 520px) {
  .telescope-popup {
    padding: 8px;
  }

  .telescope-window {
    gap: 10px;
    padding: 10px;
    width: calc(100vw - 16px);
  }

  .telescope-header {
    gap: 10px;
  }

  .telescope-header p {
    font-size: 0.58rem;
  }

  .telescope-header h2 {
    font-size: 1.25rem;
  }

  .telescope-close {
    height: 34px;
    width: 34px;
  }

  .telescope-stage {
    width: min(100%, max(110px, calc(100dvh - 155px)));
  }
}
