:root {
  --fg: #f6f8ff;
  --muted: rgba(230, 238, 255, 0.68);
  --line: rgba(210, 232, 255, 0.18);
  --panel: rgba(2, 8, 15, 0.58);
  --panel-strong: rgba(3, 10, 19, 0.82);
  --accent: #ffaa40;
  --accent-2: #61ddff;
  --crawl-yellow: #ffd44f;
  --progress: 8%;
  --projection-start: 78%;
  --jump-scene: 0;
  --jump-opacity: 0.08;
  --jump-blur: 7px;
  --jump-brightness: 1.14;
  --jump-stars: 1;
  --outro-stars: 0;
  --outro-black: 0;
  --intro-bumper-delay-ms: 9000ms;
  --intro-bumper-ms: 8000ms;
  --intro-crawl-delay-ms: 17000ms;
  --intro-crawl-travel-ms: 90000ms;
  --intro-crawl-start-y: 58vh;
  --intro-crawl-end-y: -470vh;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--fg);
  font-family: "Aptos Display", "Segoe UI", Verdana, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  box-shadow: inset 0 4px 0 #000, inset 0 -4px 0 #000;
}

[data-intro="crawl"] body::before,
[data-intro="fade"] body::before,
[data-intro="jump"] body::before {
  display: none;
}

#render-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  opacity: 0;
  touch-action: none;
  transition: opacity 1800ms ease, filter 1800ms ease;
}

[data-intro="done"] #render-canvas {
  opacity: var(--scene-fade, 1);
}

[data-intro="jump"] #render-canvas {
  opacity: var(--jump-opacity);
  filter: blur(var(--jump-blur)) brightness(var(--jump-brightness));
}

#neural-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1600ms ease, filter 1600ms ease;
}

[data-intro="done"] #neural-backdrop {
  opacity: 0;
}

[data-intro="jump"] #neural-backdrop {
  opacity: calc(var(--jump-opacity) * 0.65);
}

.outro-stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: var(--outro-stars, 0);
  transition: opacity 120ms linear;
}

.outro-black {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: #000;
  opacity: var(--outro-black, 0);
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 24%, rgba(53, 118, 255, 0.09), transparent 30%),
    radial-gradient(circle at 38% 48%, rgba(40, 208, 255, 0.055), transparent 28%),
    radial-gradient(circle at 56% 74%, rgba(255, 168, 54, 0.1), transparent 34%),
    linear-gradient(115deg, transparent 0 38%, rgba(63, 146, 255, 0.028) 42%, transparent 48% 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1200ms ease, filter 1200ms ease;
}

[data-intro] .ambient-glow {
  opacity: 1;
}

[data-phase="projected"] .ambient-glow {
  opacity: 0.82;
  filter: hue-rotate(24deg) saturate(1.22);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 22%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.72));
  transition: opacity 900ms ease;
}

[data-intro] .grain {
  opacity: 1;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.026;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 1px);
  background-size: 6px 6px;
  mix-blend-mode: screen;
}

.overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}

[data-intro="done"] .overlay {
  opacity: var(--scene-fade, 1);
}

[data-intro="crawl"] .overlay,
[data-intro="fade"] .overlay,
[data-intro="prestart"] .overlay,
[data-intro="jump"] .overlay {
  opacity: 0;
}

.start-gate {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(97, 221, 255, 0.035), transparent 30%),
    #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

[data-intro="prestart"] .start-gate {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.start-gate::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  opacity: 1;
  pointer-events: none;
  animation: start-loader-spin 900ms linear infinite;
  transition: opacity 360ms ease;
}

[data-start-ready="1"] .start-gate::after {
  opacity: 0;
}

.start-presentation {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(88px, 9vw, 132px);
  height: clamp(88px, 9vw, 132px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    opacity 700ms ease,
    transform 700ms ease;
}

[data-start-ready="1"] .start-presentation {
  opacity: 1;
  transform: scale(1);
}

.start-presentation:hover,
.start-presentation:focus-visible {
  background: transparent;
}

.start-presentation:disabled {
  cursor: default;
}

.start-presentation svg {
  width: 64%;
  height: 64%;
  margin-left: 8%;
  fill: currentColor;
  filter: none;
}

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

.intro-sequence {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
  perspective: 980px;
  perspective-origin: 50% 52%;
  transition: opacity 900ms ease;
}

[data-intro="crawl"] .intro-sequence,
[data-intro="fade"] .intro-sequence,
[data-intro="prestart"] .intro-sequence,
[data-intro="jump"] .intro-sequence {
  opacity: 1;
  pointer-events: auto;
}

[data-intro="prestart"] .intro-sequence {
  pointer-events: none;
}

[data-intro="jump"] .intro-sequence {
  background: transparent;
}

[data-intro="done"] .intro-sequence,
[data-capture="1"] .intro-sequence,
[data-smoke="1"] .intro-sequence {
  display: none;
}

.intro-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 120ms linear;
}

[data-intro="crawl"] .intro-stars-canvas,
[data-intro="fade"] .intro-stars-canvas {
  animation: intro-stars-fade 7000ms ease both;
}

[data-intro="prestart"] .intro-stars-canvas {
  opacity: 0;
}

[data-intro="jump"] .intro-stars-canvas {
  opacity: var(--jump-stars);
}

.intro-bumper {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: #fbfdff;
  font-family: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", "Fira Code", Consolas, monospace;
  font-size: clamp(0.58rem, 1.42vw, 1.48rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.045em;
  text-align: left;
  white-space: pre;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.86),
    0 0 13px rgba(97, 221, 255, 0.34),
    0 0 26px rgba(255, 213, 110, 0.12);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: intro-bumper var(--intro-bumper-ms) ease var(--intro-bumper-delay-ms) both;
  will-change: opacity, transform, filter;
}

.intro-crawl {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(1840px, 92vw);
  height: 126vh;
  overflow: visible;
  color: var(--crawl-yellow);
  font-family: "Aptos Display", "Segoe UI", Verdana, sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 7.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.045em;
  text-align: center;
  text-shadow: 0 0 16px rgba(255, 180, 64, 0.22);
  transform: translate(-50%, -2%) rotateX(53deg);
  transform-origin: 50% 48%;
  opacity: 1;
  transition: opacity 3600ms ease;
}

.intro-crawl-track {
  transform: translateY(var(--intro-crawl-start-y));
  will-change: transform;
  animation: intro-crawl var(--intro-crawl-travel-ms) linear var(--intro-crawl-delay-ms) forwards;
}

.intro-crawl h1 {
  margin: 0 0 0.72em;
  color: var(--crawl-yellow);
  font-size: 1.18em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-crawl p {
  margin: 0 0 0.64em;
  text-align: justify;
  text-justify: inter-character;
  text-wrap: balance;
}

.intro-final {
  color: var(--crawl-yellow);
  text-align: center;
}

[data-intro="jump"] .intro-crawl {
  opacity: 0;
}

[data-intro="jump"] .intro-bumper,
[data-intro="fade"] .intro-bumper,
[data-intro="prestart"] .intro-bumper,
[data-intro="done"] .intro-bumper {
  display: none;
}

[data-intro="prestart"] .intro-crawl {
  opacity: 0;
  pointer-events: none;
}

[data-intro="fade"] .intro-crawl {
  opacity: 0;
}

.intro-skip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  border-color: rgba(255, 213, 110, 0.36);
  background: rgba(4, 11, 18, 0.48);
  color: #ffe486;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    border-color 240ms ease,
    background 240ms ease;
  backdrop-filter: blur(14px);
}

[data-intro-skip-ready="1"] .intro-skip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-control {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 6px 3px 4px;
  border: 1px solid rgba(210, 232, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(2, 8, 15, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.32);
  opacity: 0.78;
  pointer-events: auto;
  transition:
    right 900ms ease,
    bottom 900ms ease,
    left 900ms ease,
    opacity 600ms ease,
    transform 900ms ease,
    background 600ms ease;
  backdrop-filter: blur(16px) saturate(1.16);
}

.music-control:hover,
.music-control:focus-within {
  opacity: 1;
}

[data-intro="done"] .music-control {
  right: 254px;
  bottom: 142px;
  left: auto;
  gap: 8px;
  min-height: 34px;
  padding: 5px 9px 5px 6px;
  opacity: 0.92;
}

[data-capture="1"] .music-control,
[data-intro="prestart"] .music-control,
[data-smoke="1"] .music-control {
  display: none;
}

.music-mute {
  display: grid;
  place-items: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-color: rgba(210, 232, 255, 0.14);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(1, 7, 13, 0.42);
  box-shadow: inset 0 0 12px rgba(97, 221, 255, 0.04);
}

.music-mute svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

[data-audio-muted="1"] .music-mute,
[data-audio-blocked="1"] .music-mute {
  color: rgba(255, 170, 64, 0.94);
}

.music-volume {
  width: 46px;
  height: 12px;
}

.music-volume::-webkit-slider-runnable-track {
  height: 3px;
  background:
    linear-gradient(90deg, rgba(97, 221, 255, 0.52), rgba(255, 170, 64, 0.48)),
    rgba(210, 232, 255, 0.12);
}

.music-volume::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -4px;
}

.music-volume::-moz-range-track,
.music-volume::-moz-range-progress {
  height: 3px;
}

.music-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
}

[data-intro="done"] .music-mute {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
}

[data-intro="done"] .music-mute svg {
  width: 15px;
  height: 15px;
}

[data-intro="done"] .music-volume {
  width: 72px;
  height: 16px;
}

[data-intro="done"] .music-volume::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -6px;
}

[data-intro="done"] .music-volume::-moz-range-thumb {
  width: 13px;
  height: 13px;
}

@keyframes intro-bumper {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -50%) scale(0.975);
  }
  31.25%,
  68.75% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes intro-stars-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes intro-crawl {
  0% {
    transform: translateY(var(--intro-crawl-start-y));
  }
  100% {
    transform: translateY(var(--intro-crawl-end-y));
  }
}

.startup-error {
  position: fixed;
  right: 28px;
  bottom: 202px;
  z-index: 4;
  display: none;
  max-width: min(560px, calc(100vw - 56px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 170, 64, 0.52);
  border-radius: 14px;
  background: rgba(20, 5, 3, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 90, 40, 0.16);
  color: #ffe6c7;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

[data-startup-error="1"] .startup-error {
  display: block;
}

.brand {
  position: fixed;
  top: 28px;
  left: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fg);
}

.brain-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: none;
}

.brand span:last-child {
  display: grid;
  gap: 7px;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand em {
  color: var(--muted);
  font-size: 0.96rem;
  font-style: normal;
}

.scene-label {
  position: fixed;
  top: 32px;
  right: 30px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 15px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.035), 0 16px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.94rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transform: translateX(0);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.5, 0, 0.85, 0.2), border-color 220ms ease;
  will-change: opacity, transform;
}

.scene-label.is-exiting {
  opacity: 0;
  transform: translateX(calc(100% + 48px));
}

.scene-label.is-entering {
  animation: scene-label-enter 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-label time {
  color: var(--accent);
}

.scene-label strong {
  color: var(--fg);
}

@keyframes scene-label-enter {
  0% {
    opacity: 0;
    transform: translateX(calc(100% + 48px));
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.flight-keys {
  position: fixed;
  left: 18px;
  bottom: 30px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 334px;
  padding: 16px 18px;
  border: 1px solid rgba(210, 232, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(97, 221, 255, 0.055), transparent 48%),
    rgba(2, 8, 15, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 30px rgba(97, 221, 255, 0.035),
    0 20px 64px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: 0.72rem;
}

.wasd {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(2, 30px);
  gap: 6px;
  align-content: center;
}

.wasd kbd:first-child {
  grid-column: 2;
  grid-row: 1;
}

.wasd kbd:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.wasd kbd:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.wasd kbd:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

kbd {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(210, 232, 255, 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(3, 12, 22, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(97, 221, 255, 0.04);
  color: var(--fg);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.key-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

.key-actions span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  white-space: nowrap;
}

.key-actions em {
  color: rgba(226, 235, 248, 0.68);
  font-style: normal;
  letter-spacing: 0.015em;
}

.key-actions kbd:first-child:not(:last-of-type) {
  margin-right: -3px;
}

.key-actions kbd {
  min-width: 30px;
  padding: 0 7px;
}

.key-actions kbd:first-child:nth-last-of-type(1) {
  min-width: 58px;
}

.controls {
  position: fixed;
  right: 236px;
  bottom: 18px;
  left: 370px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px 14px;
  border: 1px solid rgba(210, 232, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 0%, rgba(97, 221, 255, 0.1), transparent 38%),
    radial-gradient(circle at 72% 100%, rgba(255, 170, 64, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(5, 15, 27, 0.68), rgba(1, 5, 11, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -22px 56px rgba(0, 0, 0, 0.18),
    0 20px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px) saturate(1.22);
  pointer-events: auto;
}

.flight-metrics {
  position: fixed;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  width: 192px;
  padding: 16px;
  border: 1px solid rgba(210, 232, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(97, 221, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(4, 12, 22, 0.52), rgba(2, 6, 12, 0.74));
  box-shadow: inset 0 0 32px rgba(97, 221, 255, 0.05), 0 18px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  pointer-events: none;
}

.flight-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.flight-metrics em {
  color: var(--muted);
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flight-metrics strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 44%, transparent);
  white-space: nowrap;
}

.transport {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

button,
label {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

button {
  min-height: 35px;
  padding: 0 15px;
  border: 1px solid rgba(210, 232, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(2, 8, 15, 0.48);
  color: var(--fg);
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(97, 221, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.22);
}

button:hover,
button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
  background: rgba(255, 195, 95, 0.15);
  outline: none;
}

label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
}

.transport label {
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid rgba(210, 232, 255, 0.12);
  border-radius: 999px;
  background: rgba(1, 7, 13, 0.34);
}

input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#speed {
  width: 132px;
}

#scrubber {
  position: relative;
  z-index: 1;
  height: 18px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(210, 232, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

#scrubber::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 76%, white 8%) 0 var(--progress), rgba(255, 211, 146, 0.16) var(--progress) 100%),
    rgba(210, 232, 255, 0.1);
}

#speed::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, rgba(97, 221, 255, 0.58), rgba(255, 170, 64, 0.5)),
    rgba(210, 232, 255, 0.12);
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -7px;
  appearance: none;
  border: 1px solid rgba(255, 243, 216, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff8d8 0 11%, var(--accent) 34%, #d87420 100%);
  box-shadow:
    0 0 0 5px rgba(255, 170, 64, 0.08),
    0 0 20px rgba(255, 170, 64, 0.56),
    0 0 44px rgba(255, 170, 64, 0.16);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(210, 232, 255, 0.16);
  box-shadow: 0 0 14px rgba(255, 170, 64, 0.22);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 78%, white 8%);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 232, 188, 0.78);
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(255, 170, 64, 0.08),
    0 0 18px rgba(255, 170, 64, 0.48);
}

.controls::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 82px;
  left: 18px;
  height: 2px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 82%, white 6%) 0 var(--progress), rgba(255, 211, 146, 0.18) var(--progress) 100%),
    linear-gradient(90deg, rgba(97, 221, 255, 0.42) 0 var(--projection-start), rgba(255, 170, 64, 0.44) var(--projection-start) 100%),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent-2) 36%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 46%, transparent);
}

.controls::after {
  content: "Observed → projected";
  position: absolute;
  right: 18px;
  top: 58px;
  color: rgba(230, 238, 255, 0.42);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tick-rail {
  position: relative;
  display: block;
  height: 74px;
  min-width: 0;
  overflow: visible;
  padding: 18px 0 0;
}

.timeline-tick {
  position: absolute;
  top: 0;
  left: var(--tick-left);
  display: grid;
  gap: 4px;
  width: clamp(66px, 8vw, 118px);
  min-height: 43px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
  transform: translateX(-50%);
}

.timeline-tick.is-first {
  text-align: left;
  transform: translateX(0);
}

.timeline-tick.is-first::before {
  margin-left: 0;
}

.timeline-tick.is-last {
  text-align: right;
  transform: translateX(-100%);
}

.timeline-tick.is-last::before {
  margin-right: 0;
}

.timeline-tick.is-near-start {
  text-align: left;
  transform: translateX(-8px);
}

.timeline-tick.is-near-start::before {
  margin-left: 0;
}

.timeline-tick.is-near-end {
  text-align: right;
  transform: translateX(calc(-100% + 8px));
}

.timeline-tick.is-near-end::before {
  margin-right: 0;
}

.timeline-tick::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #07111d;
  box-shadow:
    0 0 0 5px rgba(2, 7, 13, 0.72),
    0 0 15px currentColor;
}

.timeline-tick span {
  color: var(--accent-2);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  opacity: 0;
}

.timeline-tick strong {
  color: var(--fg);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.12;
  opacity: 0;
  text-transform: none;
}

.timeline-tick.is-label-visible span,
.timeline-tick.is-label-visible strong {
  opacity: 1;
}

.timeline-tick.is-past {
  color: var(--accent-2);
}

.timeline-tick.is-projection {
  color: color-mix(in srgb, var(--accent) 72%, #b6c8e8 28%);
}

.timeline-tick.is-projection::before {
  border-style: dashed;
  background: rgba(27, 18, 8, 0.68);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 58%, transparent);
}

.timeline-tick.is-active {
  color: var(--accent);
  width: clamp(92px, 10vw, 156px);
}

.timeline-tick.is-active strong {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
}

[data-capture="1"] .controls {
  left: 455px;
  right: 236px;
  bottom: 14px;
  padding-top: 7px;
}

[data-capture="1"] .flight-keys {
  min-width: 256px;
  padding: 14px;
}

[data-capture="1"] .transport {
  display: none;
}

@media (max-width: 1180px) {
  .flight-keys,
  .flight-metrics {
    display: none;
  }

  .controls {
    right: 18px;
    left: 18px;
  }

  [data-intro="done"] .music-control {
    right: 36px;
  }
}

@media (max-width: 820px) {
  .brand {
    top: 18px;
    left: 18px;
  }

  .mark {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand em,
  .flight-keys,
  .flight-metrics {
    display: none;
  }

  .scene-label {
    top: auto;
    right: 16px;
    bottom: 138px;
    left: 16px;
    justify-content: space-between;
  }

  .controls {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 12px;
  }

  [data-intro="done"] .music-control {
    right: 24px;
    bottom: 138px;
  }

  .transport {
    flex-wrap: wrap;
  }

  .tick-rail {
    gap: 16px;
  }
}
