:root {
  color-scheme: dark;
  --cyan: #4df4ff;
  --cyan-dim: rgba(77, 244, 255, 0.28);
  --green: #70ffb8;
  --amber: #ffb14d;
  --cream: #d9cfac;
  --ink: #020814;
  --panel: rgba(3, 13, 27, 0.76);
  --panel-deep: rgba(1, 7, 17, 0.9);
  --text: #f1fbff;
  --muted: rgba(241, 251, 255, 0.64);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
}

button,
input {
  font: inherit;
}

#unity-container {
  position: fixed;
  inset: 0;
  background: #000;
  visibility: hidden;
}

body.is-game-launched #unity-container {
  visibility: visible;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  outline: none;
}

.orbitale-loader {
  --terminal-bottom: clamp(24px, 4vh, 42px);
  --terminal-height: clamp(118px, 15vh, 148px);
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 177, 77, 0.16), transparent 24%),
    radial-gradient(circle at 18% 24%, rgba(180, 75, 255, 0.2), transparent 36%),
    radial-gradient(circle at 82% 28%, rgba(77, 244, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #030715 0%, #07132a 48%, #160b32 100%);
  transition: opacity 520ms ease, visibility 520ms ease;
  z-index: 20;
}

.orbitale-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.space-scene,
.vfx-canvas,
.scene-haze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.space-scene {
  z-index: 0;
}

.vfx-canvas {
  z-index: 5;
}

.vfx-canvas.is-disabled {
  display: none;
}

.scene-haze {
  z-index: 6;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: scanDrift 8s linear infinite;
}

.foreground-platforms {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
  perspective: 1000px;
}

.fg-platform {
  --sprite-x: 0px;
  --sprite-y: 0px;
  --sprite-w: 180px;
  --sprite-h: 100px;
  --sprite-scale: 0.72;
  position: absolute;
  display: block;
  width: calc(var(--sprite-w) * var(--sprite-scale));
  height: calc(var(--sprite-h) * var(--sprite-scale));
  background-image: url("assets/orbitale-platforms.png");
  background-repeat: no-repeat;
  background-size: calc(1536px * var(--sprite-scale)) calc(1024px * var(--sprite-scale));
  background-position: calc(var(--sprite-x) * var(--sprite-scale) * -1) calc(var(--sprite-y) * var(--sprite-scale) * -1);
  image-rendering: auto;
  opacity: var(--platform-opacity, 0.42);
  filter:
    saturate(0.88)
    brightness(0.82)
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 12px rgba(77, 244, 255, 0.12));
  transform:
    translate3d(0, 0, var(--platform-depth, 0))
    rotateX(var(--platform-tilt, 0deg))
    rotateZ(var(--platform-rotate, 0deg));
}

.fg-platform-a {
  --sprite-x: 1030px;
  --sprite-y: 44px;
  --sprite-w: 460px;
  --sprite-h: 118px;
  --sprite-scale: 0.48;
  --platform-opacity: 0.36;
  --platform-tilt: 8deg;
  --platform-rotate: -2deg;
  left: 52%;
  top: 24%;
}

.fg-platform-b {
  --sprite-x: 50px;
  --sprite-y: 174px;
  --sprite-w: 170px;
  --sprite-h: 112px;
  --sprite-scale: 0.74;
  --platform-opacity: 0.48;
  --platform-tilt: 6deg;
  --platform-rotate: 3deg;
  left: 4%;
  bottom: 18%;
}

.fg-platform-c {
  --sprite-x: 548px;
  --sprite-y: 312px;
  --sprite-w: 155px;
  --sprite-h: 108px;
  --sprite-scale: 0.62;
  --platform-opacity: 0.34;
  --platform-tilt: 10deg;
  --platform-rotate: -7deg;
  right: 5%;
  top: 53%;
}

.fg-platform-d {
  --sprite-x: 764px;
  --sprite-y: 548px;
  --sprite-w: 142px;
  --sprite-h: 80px;
  --sprite-scale: 0.56;
  --platform-opacity: 0.28;
  --platform-tilt: 12deg;
  --platform-rotate: 9deg;
  left: 37%;
  top: 62%;
}

.fg-platform-e {
  --sprite-x: 682px;
  --sprite-y: 694px;
  --sprite-w: 168px;
  --sprite-h: 120px;
  --sprite-scale: 0.44;
  --platform-opacity: 0.3;
  --platform-rotate: -14deg;
  right: 22%;
  top: 34%;
}

.fg-platform-f {
  --sprite-x: 1086px;
  --sprite-y: 844px;
  --sprite-w: 114px;
  --sprite-h: 94px;
  --sprite-scale: 0.52;
  --platform-opacity: 0.38;
  --platform-rotate: 4deg;
  left: 23%;
  top: 39%;
}

.fg-platform-g {
  --sprite-x: 338px;
  --sprite-y: 48px;
  --sprite-w: 165px;
  --sprite-h: 92px;
  --sprite-scale: 0.5;
  --platform-opacity: 0.26;
  --platform-tilt: 6deg;
  --platform-rotate: -5deg;
  left: 7%;
  top: 10%;
}

.fg-platform-h {
  --sprite-x: 766px;
  --sprite-y: 48px;
  --sprite-w: 250px;
  --sprite-h: 110px;
  --sprite-scale: 0.46;
  --platform-opacity: 0.32;
  --platform-tilt: 8deg;
  --platform-rotate: 3deg;
  right: 6%;
  top: 18%;
}

.fg-platform-i {
  --sprite-x: 766px;
  --sprite-y: 48px;
  --sprite-w: 250px;
  --sprite-h: 110px;
  --sprite-scale: 0.42;
  --platform-opacity: 0.38;
  --platform-tilt: 8deg;
  --platform-rotate: -3deg;
  left: 12%;
  bottom: 20%;
}

.fg-platform-j {
  --sprite-x: 920px;
  --sprite-y: 314px;
  --sprite-w: 150px;
  --sprite-h: 100px;
  --sprite-scale: 0.54;
  --platform-opacity: 0.28;
  --platform-tilt: 10deg;
  --platform-rotate: 8deg;
  right: 17%;
  top: 45%;
}

.fg-platform-k {
  --sprite-x: 1180px;
  --sprite-y: 692px;
  --sprite-w: 120px;
  --sprite-h: 86px;
  --sprite-scale: 0.42;
  --platform-opacity: 0.4;
  --platform-rotate: 15deg;
  left: 61%;
  bottom: 20%;
}

.fg-platform-l {
  --sprite-x: 50px;
  --sprite-y: 174px;
  --sprite-w: 170px;
  --sprite-h: 112px;
  --sprite-scale: 0.5;
  --platform-opacity: 0.36;
  --platform-tilt: 6deg;
  --platform-rotate: -5deg;
  left: 2%;
  top: 54%;
}

.fg-platform-n {
  --sprite-x: 1166px;
  --sprite-y: 846px;
  --sprite-w: 96px;
  --sprite-h: 94px;
  --sprite-scale: 0.58;
  --platform-opacity: 0.34;
  --platform-rotate: -3deg;
  right: 3%;
  bottom: 10%;
}

.power-gate,
.media-module,
.score-module,
.pilot-terminal {
  position: absolute;
  --panel-accent: 77, 244, 255;
  --panel-accent-2: 112, 255, 184;
  --panel-cut: 18px;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(180deg, rgba(10, 23, 42, 0.5), rgba(0, 5, 13, 0.4) 48%, rgba(1, 13, 23, 0.54)),
    radial-gradient(circle at 12% 0%, rgba(var(--panel-accent), 0.12), transparent 36%),
    radial-gradient(circle at 104% 100%, rgba(var(--panel-accent-2), 0.08), transparent 44%),
    rgba(0, 6, 15, 0.34);
  border: 0;
  border-radius: 0;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(var(--panel-accent), 0.08),
    inset 0 0 0 1px rgba(183, 242, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(var(--panel-accent), 0.08);
  clip-path: polygon(var(--panel-cut) 0, 100% 0, 100% calc(100% - var(--panel-cut)), calc(100% - var(--panel-cut)) 100%, 0 100%, 0 var(--panel-cut));
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  backdrop-filter: blur(16px) saturate(1.12);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.power-gate::before,
.media-module::before,
.score-module::before,
.pilot-terminal::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  clip-path: none;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--panel-accent), 0.78), rgba(var(--panel-accent-2), 0.4), transparent 78px) 18px 0 / 116px 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(var(--panel-accent), 0.42), rgba(var(--panel-accent-2), 0.32)) right bottom / 116px 1px no-repeat,
    linear-gradient(180deg, rgba(var(--panel-accent), 0.48), transparent 70px) 0 18px / 1px 90px no-repeat,
    linear-gradient(180deg, transparent, rgba(var(--panel-accent-2), 0.36)) right calc(100% - 108px) / 1px 90px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px);
  opacity: 0.62;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 42px rgba(var(--panel-accent), 0.035);
}

.power-gate::after,
.media-module::after,
.score-module::after,
.pilot-terminal::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--panel-accent), 0.9), rgba(var(--panel-accent-2), 0.55), transparent 72%);
  background-repeat: no-repeat;
  opacity: 0.7;
}

.power-gate {
  top: clamp(18px, 3vh, 34px);
  left: 50%;
  z-index: 55;
  width: clamp(420px, 46vw, 720px);
  height: clamp(58px, 7vh, 76px);
  transform: translateX(-50%);
  --panel-cut: 14px;
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.07), transparent 18%, transparent 82%, rgba(112, 255, 184, 0.06)),
    linear-gradient(180deg, rgba(7, 19, 34, 0.46), rgba(0, 6, 14, 0.42)),
    rgba(0, 7, 16, 0.28);
}

.power-gate::after {
  left: 42px;
  right: 42px;
  bottom: 8px;
  height: 4px;
  background-position: left center, right center;
  background-size: 44px 4px, 38px 3px;
}

.power-fill-rail {
  position: absolute;
  left: 96px;
  right: 96px;
  top: 50%;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(77, 244, 255, 0.48);
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.08), transparent 24%, rgba(112, 255, 184, 0.06)),
    rgba(0, 5, 14, 0.72);
  transform: translateY(-50%);
  box-shadow: inset 0 0 20px rgba(77, 244, 255, 0.2);
}

.power-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77, 244, 255, 0.36), rgba(77, 244, 255, 0.98), rgba(112, 255, 184, 0.95), rgba(255, 177, 77, 0.9));
  box-shadow: 0 0 22px rgba(77, 244, 255, 0.9), 0 0 36px rgba(112, 255, 184, 0.44);
  transition: width 160ms ease-out;
}

.power-sparks {
  position: absolute;
  inset: -90% 0;
  opacity: 0.58;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(112, 255, 184, 0.72) 0 1px, transparent 2px);
  background-size: 47px 31px, 73px 43px;
  animation: sparkRun 900ms linear infinite;
}

.power-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(242, 253, 255, 0.94);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 14px rgba(77, 244, 255, 0.48);
  pointer-events: none;
}

#load-percent {
  color: var(--green);
  min-width: 42px;
  text-align: right;
}

.media-module {
  --panel-transform: rotateY(4deg) rotateX(0.8deg) translateZ(24px);
  --panel-cut: 24px;
  --panel-accent: 77, 244, 255;
  --panel-accent-2: 255, 177, 77;
  z-index: 30;
  left: clamp(34px, 5.8vw, 112px);
  top: clamp(130px, 17vh, 188px);
  width: clamp(390px, 31vw, 560px);
  aspect-ratio: 16 / 10;
  transform: var(--panel-transform);
  animation: moduleFloat 5.8s ease-in-out infinite;
  filter: drop-shadow(22px 28px 34px rgba(0, 0, 0, 0.34));
  box-shadow:
    16px 26px 64px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(77, 244, 255, 0.08),
    inset 0 0 0 1px rgba(183, 242, 255, 0.16),
    inset 0 0 26px rgba(77, 244, 255, 0.035);
}

.media-module:hover {
  --panel-transform: rotateY(2deg) rotateX(0.35deg) translateZ(42px);
  filter: drop-shadow(24px 32px 42px rgba(0, 0, 0, 0.38));
  box-shadow:
    18px 30px 76px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(77, 244, 255, 0.16),
    inset 0 0 0 1px rgba(126, 246, 255, 0.35),
    inset 0 0 30px rgba(77, 244, 255, 0.06);
}

.media-module::before,
.score-module::before {
  transform: translateZ(18px);
}

.media-module::after {
  left: 18px;
  bottom: 16px;
  width: 74px;
  height: 2px;
  background-size: 74px 2px;
  background-position: left center;
  transform: translateZ(34px);
}

.media-video {
  position: absolute;
  left: 8%;
  top: 12%;
  z-index: 2;
  width: 84%;
  height: 72%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(3, 14, 31, 0.42), rgba(0, 3, 9, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(174, 236, 255, 0.24),
    inset 0 0 24px rgba(77, 244, 255, 0.07),
    0 0 16px rgba(77, 244, 255, 0.055),
    10px 14px 28px rgba(0, 0, 0, 0.28);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transform: translateZ(34px);
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.media-video.is-pending {
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(3, 14, 31, 0.18), rgba(0, 3, 9, 0.58)),
    url("https://i.ytimg.com/vi/abWVJmsSxrY/hqdefault.jpg") center / cover no-repeat,
    linear-gradient(180deg, rgba(3, 14, 31, 0.42), rgba(0, 3, 9, 0.72));
}

.media-video.is-pending iframe {
  opacity: 0;
  pointer-events: none;
}

.media-video::before,
.media-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.media-video::before {
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.14), transparent 12%, transparent 88%, rgba(255, 177, 77, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 18%, transparent 78%, rgba(77, 244, 255, 0.08));
  mix-blend-mode: screen;
  opacity: 0.64;
}

.media-video::after {
  inset: 10px;
  border: 1px solid rgba(174, 236, 255, 0.15);
  opacity: 0.55;
}

.media-module:hover .media-video {
  box-shadow:
    inset 0 0 0 1px rgba(126, 246, 255, 0.42),
    inset 0 0 28px rgba(77, 244, 255, 0.11),
    0 0 22px rgba(77, 244, 255, 0.13),
    12px 16px 32px rgba(0, 0, 0, 0.32);
  filter: brightness(1.04);
}

.media-video iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.screen-vfx {
  position: absolute;
  left: 8%;
  top: 12%;
  z-index: 3;
  width: 84%;
  height: 72%;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: screen;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(255, 255, 255, 0.24) 48%, transparent 52% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px);
  transform: translateZ(42px);
  animation: screenFlicker 3s steps(2, end) infinite;
}

.score-module {
  --panel-transform: rotateY(-4deg) rotateX(0.8deg) translateZ(26px);
  --panel-cut: 22px;
  --panel-accent: 112, 255, 184;
  --panel-accent-2: 77, 244, 255;
  z-index: 34;
  right: clamp(38px, 6.8vw, 132px);
  top: clamp(120px, 15vh, 176px);
  width: clamp(330px, 22vw, 420px);
  height: clamp(430px, 58vh, 560px);
  transform: var(--panel-transform);
  animation: moduleFloat 6.2s ease-in-out infinite reverse;
  filter: drop-shadow(-22px 28px 36px rgba(0, 0, 0, 0.36));
  box-shadow:
    -16px 26px 64px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(112, 255, 184, 0.07),
    inset 0 0 0 1px rgba(183, 242, 255, 0.16),
    inset 0 0 26px rgba(77, 244, 255, 0.035);
}

.score-module:hover,
.score-module:focus-within {
  --panel-transform: rotateY(-2deg) rotateX(0.35deg) translateZ(44px);
  filter: drop-shadow(-24px 32px 42px rgba(0, 0, 0, 0.4));
  box-shadow:
    -18px 30px 76px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(112, 255, 184, 0.13),
    inset 0 0 0 1px rgba(126, 246, 255, 0.32),
    inset 0 0 30px rgba(77, 244, 255, 0.06);
}

.score-module::after {
  right: 18px;
  bottom: 16px;
  width: 74px;
  height: 2px;
  background-size: 74px 2px;
  background-position: right center;
  transform: translateZ(34px);
}

.score-content {
  position: absolute;
  inset: 34px 34px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: var(--text);
  transform: translateZ(36px);
}

.score-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  bottom: 0;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(1, 6, 15, 0.82));
}

.score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(174, 236, 255, 0.12);
  box-shadow: 0 1px 0 rgba(112, 255, 184, 0.08);
}

.score-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(77, 244, 255, 0.44);
}

#score-state {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(112, 255, 184, 0.46);
}

.score-list {
  display: grid;
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  margin-top: 11px;
  padding: 1px 10px 20px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(77, 244, 255, 0.68) rgba(1, 9, 19, 0.62);
  scrollbar-width: thin;
  touch-action: pan-y;
  mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%);
}

.score-list:focus {
  outline: 1px solid rgba(112, 255, 184, 0.62);
  outline-offset: 4px;
}

.score-list::-webkit-scrollbar {
  width: 7px;
}

.score-list::-webkit-scrollbar-track {
  background: rgba(1, 9, 19, 0.62);
  border-left: 1px solid rgba(77, 244, 255, 0.14);
}

.score-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(126, 246, 255, 0.72), rgba(112, 255, 184, 0.45));
  box-shadow: 0 0 10px rgba(77, 244, 255, 0.28);
}

.score-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto);
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 8px 9px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.06), transparent 34%, rgba(255, 255, 255, 0.025)),
    rgba(1, 10, 20, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(174, 236, 255, 0.11),
    inset 0 0 16px rgba(77, 244, 255, 0.025),
    0 6px 14px rgba(0, 0, 0, 0.18);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  overflow: hidden;
  transform: translateZ(8px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.score-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(77, 244, 255, 0.25), rgba(112, 255, 184, 0.75), transparent);
  opacity: 0.72;
}

.score-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.09) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 160ms ease, transform 260ms ease;
}

.score-row:first-child {
  background:
    linear-gradient(90deg, rgba(112, 255, 184, 0.11), transparent 36%, rgba(255, 177, 77, 0.04)),
    rgba(3, 18, 24, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(112, 255, 184, 0.24),
    inset 0 0 18px rgba(112, 255, 184, 0.04),
    0 0 14px rgba(112, 255, 184, 0.06);
}

.score-row:hover {
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.12), transparent 38%, rgba(112, 255, 184, 0.04)),
    rgba(4, 18, 34, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(126, 246, 255, 0.28),
    inset 0 0 20px rgba(77, 244, 255, 0.065),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(77, 244, 255, 0.08);
  transform: translateZ(18px) translateX(2px);
}

.score-row:hover::after {
  opacity: 1;
  transform: translateX(42%);
}

.score-rank {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.score-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-meta {
  margin-top: 2px;
  color: rgba(241, 251, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.score-time {
  color: var(--green);
  font-size: 14px;
  line-height: 1;
}

.score-label {
  color: rgba(126, 246, 255, 0.56);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.score-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.pilot-terminal {
  --terminal-transform: translateX(-50%);
  --panel-cut: 18px;
  --panel-accent: 77, 244, 255;
  --panel-accent-2: 255, 177, 77;
  z-index: 40;
  left: 50%;
  bottom: var(--terminal-bottom);
  width: clamp(520px, 44vw, 760px);
  height: var(--terminal-height);
  margin: 0;
  transform: var(--terminal-transform);
  box-shadow:
    0 24px 66px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(77, 244, 255, 0.08),
    inset 0 0 0 1px rgba(183, 242, 255, 0.16),
    inset 0 0 26px rgba(77, 244, 255, 0.035);
}

.pilot-terminal:hover,
.pilot-terminal:focus-within {
  --terminal-transform: translateX(-50%);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(77, 244, 255, 0.14),
    inset 0 0 0 1px rgba(126, 246, 255, 0.34),
    inset 0 0 30px rgba(77, 244, 255, 0.055);
}

.pilot-terminal::after {
  left: 18px;
  bottom: 16px;
  width: 74px;
  height: 2px;
  background-size: 74px 2px;
  background-position: left center;
}

.terminal-content {
  position: absolute;
  inset: 20px 36px 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(68px, 13%);
  grid-template-rows: 24px minmax(38px, 1fr) 20px;
  gap: 7px 12px;
  pointer-events: auto;
}

.terminal-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(77, 244, 255, 0.46);
}

.terminal-title small {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

#pseudo-input {
  position: relative;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  z-index: 3;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.06), transparent 28%, rgba(112, 255, 184, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(0, 5, 12, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(174, 236, 255, 0.18),
    inset 0 0 18px rgba(77, 244, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  outline: none;
  caret-color: var(--green);
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#pseudo-input::placeholder {
  color: rgba(241, 251, 255, 0.42);
}

#pseudo-input:focus {
  background:
    linear-gradient(90deg, rgba(77, 244, 255, 0.12), transparent 32%, rgba(112, 255, 184, 0.055)),
    linear-gradient(180deg, rgba(126, 246, 255, 0.055), transparent),
    rgba(0, 8, 18, 0.54);
  box-shadow:
    0 0 0 2px rgba(77, 244, 255, 0.08),
    inset 0 0 0 1px rgba(126, 246, 255, 0.42),
    inset 0 0 18px rgba(77, 244, 255, 0.1);
}

#save-pseudo {
  position: relative;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: rgba(224, 255, 252, 0.95);
  background:
    linear-gradient(145deg, rgba(112, 255, 184, 0.18), rgba(77, 244, 255, 0.08)),
    rgba(1, 11, 20, 0.72);
  box-shadow:
    0 0 16px rgba(77, 244, 255, 0.14),
    inset 0 0 0 1px rgba(126, 246, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(112, 255, 184, 0.18);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

#save-pseudo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  opacity: 0.36;
  transform: translateX(-120%);
  transition: transform 320ms ease;
}

#save-pseudo::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 255, 184, 0.72), transparent);
}

#save-pseudo:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 0 24px rgba(112, 255, 184, 0.22),
    inset 0 0 0 1px rgba(112, 255, 184, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#save-pseudo:hover:not(:disabled)::before {
  transform: translateX(120%);
}

.pilot-terminal.is-launch-ready #save-pseudo {
  color: rgba(231, 255, 246, 0.98);
  background:
    linear-gradient(145deg, rgba(112, 255, 184, 0.3), rgba(77, 244, 255, 0.12), rgba(255, 177, 77, 0.12)),
    rgba(1, 15, 22, 0.82);
  box-shadow:
    0 0 24px rgba(112, 255, 184, 0.24),
    0 0 34px rgba(77, 244, 255, 0.12),
    inset 0 0 0 1px rgba(112, 255, 184, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 177, 77, 0.2);
}

.pilot-terminal.is-launch-ready #save-pseudo::after {
  background: linear-gradient(90deg, transparent, rgba(255, 177, 77, 0.78), rgba(112, 255, 184, 0.82), transparent);
}

#save-pseudo:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.55);
}

.terminal-runner-lane {
  --runner-h: clamp(380px, 44vh, 560px);
  --runner-w: calc(var(--runner-h) * 0.375);
  --runner-foot-offset: clamp(118px, calc(12.9vh + 6px), 171px);
  position: absolute;
  left: 50%;
  bottom: calc(var(--terminal-bottom) + var(--terminal-height) - var(--runner-foot-offset));
  z-index: 48;
  width: clamp(280px, 28vw, 440px);
  height: var(--runner-h);
  overflow: visible;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0.96;
}

.terminal-runner-track {
  position: absolute;
  left: 50%;
  top: calc(100% - 46px);
  width: clamp(112px, 12vw, 180px);
  height: 3px;
  background:
    linear-gradient(90deg, transparent, rgba(77, 244, 255, 0.56), rgba(112, 255, 184, 0.4), transparent);
  box-shadow:
    0 0 12px rgba(77, 244, 255, 0.28),
    0 0 24px rgba(112, 255, 184, 0.12);
  transform: translateX(-50%);
}

.terminal-runner-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(77, 244, 255, 0.16) 0 1px, transparent 1px 18px);
  opacity: 0.58;
}

.terminal-runner-carriage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--runner-w);
  height: var(--runner-h);
  transform: translateX(-50%);
}

.terminal-runner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--runner-w);
  height: var(--runner-h);
  background-image: url("assets/orbitale-hero-run.png");
  background-repeat: no-repeat;
  background-size: calc(var(--runner-w) * 8) var(--runner-h);
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 8px rgba(77, 244, 255, 0.5))
    drop-shadow(0 7px 8px rgba(0, 0, 0, 0.65));
  animation: heroRunFrames 640ms steps(8) infinite;
}

.terminal-runner::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 10%;
  bottom: -3px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(112, 255, 184, 0.36), transparent 68%);
  filter: blur(1px);
}

#pseudo-help {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  margin: 0;
  color: rgba(241, 251, 255, 0.58);
  font-size: 11px;
  line-height: 1.3;
}

#pseudo-help.is-error {
  color: #ffc08a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes scanDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 20px; }
}

@keyframes sparkRun {
  from { transform: translateX(-30px); }
  to { transform: translateX(30px); }
}

@keyframes moduleFloat {
  0%, 100% { transform: var(--panel-transform) translateY(0); }
  50% { transform: var(--panel-transform) translateY(-8px); }
}

@keyframes screenFlicker {
  0%, 100% { opacity: 0.13; }
  48% { opacity: 0.24; }
  50% { opacity: 0.08; }
}

@keyframes heroRunFrames {
  from { background-position: 0 0; }
  to { background-position: calc(var(--runner-w) * -8) 0; }
}

@media (max-width: 1180px) {
  .media-module {
    width: clamp(330px, 38vw, 460px);
    left: 24px;
  }

  .score-module {
    width: clamp(300px, 30vw, 350px);
    right: 24px;
  }

  .pilot-terminal {
    width: min(620px, calc(100vw - 44px));
  }
}

@media (max-width: 760px) {
  .orbitale-loader {
    --terminal-bottom: 12px;
    --terminal-height: 144px;
  }

  .power-gate {
    top: 16px;
    width: min(540px, calc(100vw - 28px));
    height: 68px;
  }

  .power-fill-rail {
    left: 58px;
    right: 58px;
  }

  .media-module {
    top: 104px;
    left: 50%;
    width: min(470px, calc(100vw - 28px));
    --panel-transform: translateX(-50%) translateZ(0);
    transform: var(--panel-transform);
    animation: none;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.48));
  }

  .score-module {
    top: 342px;
    left: 50%;
    right: auto;
    width: min(280px, calc(100vw - 44px));
    height: 300px;
    --panel-transform: translateX(-50%) translateZ(0);
    transform: var(--panel-transform);
    animation: none;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.5));
  }

  .score-content {
    inset: 22px 24px 20px;
  }

  .score-head h2 {
    font-size: 13px;
  }

  #score-state,
  .score-meta {
    font-size: 9px;
  }

  .score-row {
    grid-template-columns: 26px minmax(0, 1fr) minmax(54px, auto);
    gap: 5px;
    min-height: 50px;
    padding: 4px 5px;
  }

  .score-name,
  .score-value {
    font-size: 11px;
  }

  .score-time {
    font-size: 11px;
  }

  .score-label {
    font-size: 7px;
  }

  .pilot-terminal {
    --terminal-transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
  }

  .media-module:hover,
  .score-module:hover,
  .score-module:focus-within {
    --panel-transform: translateX(-50%) translateZ(0);
  }

  .pilot-terminal:hover,
  .pilot-terminal:focus-within {
    --terminal-transform: translateX(-50%);
  }

  .terminal-content {
    inset: 18px 28px 16px;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 6px 8px;
  }

  .terminal-runner-lane {
    --runner-h: clamp(280px, 38vh, 360px);
    --runner-foot-offset: clamp(88px, calc(11.2vh + 6px), 112px);
    width: 260px;
  }

  .terminal-title {
    font-size: 11px;
  }

  .terminal-title small,
  #pseudo-help {
    font-size: 9px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .orbitale-loader {
    --terminal-bottom: 14px;
    --terminal-height: 136px;
  }

  .power-gate {
    top: 12px;
    width: clamp(420px, 42vw, 660px);
    height: 58px;
  }

  .media-module {
    top: 96px;
    width: clamp(340px, 30vw, 520px);
  }

  .score-module {
    top: 90px;
    width: clamp(300px, 19vw, 350px);
    height: min(500px, calc(100vh - 178px));
  }

  .pilot-terminal {
    width: clamp(500px, 38vw, 650px);
  }

  .terminal-runner-lane {
    --runner-h: clamp(320px, 42vh, 430px);
    --runner-foot-offset: clamp(100px, calc(12.35vh + 6px), 132px);
    width: clamp(240px, 24vw, 360px);
  }
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .scene-haze {
  animation: none !important;
  opacity: 0.64;
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .power-gate,
:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .media-module,
:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .score-module,
:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .pilot-terminal {
  backdrop-filter: none !important;
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .media-module,
:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .score-module {
  animation: none !important;
  filter: none !important;
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .fg-platform {
  filter: none !important;
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .screen-vfx {
  animation: none !important;
  opacity: 0.1;
}

:where(html[data-visual-quality="perf"], html[data-visual-quality="edge-perf"]) .power-sparks {
  animation-duration: 1500ms !important;
  opacity: 0.36;
}
