/*
  XONTO Orbit app styles.
  Base shell styles stay in xonto-base.css; this file contains only Orbit UI.
*/

:root {
  --orbit-bg: #05070b;
  --orbit-ink: #f7fbff;
  --orbit-muted: #9ba9bc;
  --orbit-panel: rgba(12, 16, 23, 0.88);
  --orbit-panel-strong: rgba(18, 24, 34, 0.96);
  --orbit-line: rgba(255, 255, 255, 0.14);
  --orbit-blue: #2f80ff;
  --orbit-cyan: #68e1fd;
  --orbit-green: #71e59d;
  --orbit-yellow: #f5c85f;
  --orbit-coral: #ff6b6b;
  --orbit-mobile-control-zone: 118px;
}

.orbit-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 128, 255, 0.20), transparent 24rem),
    linear-gradient(180deg, #05070b 0%, #080b11 46%, #101014 100%);
  color: var(--orbit-ink);
}

.xonto-header {
  background: #000000;
  border-bottom-color: rgba(104, 225, 253, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.orbit-header-brand {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 56px;
}

.xonto-header__separator {
  background: rgba(104, 225, 253, 0.26);
}

.orbit-header-logo-frame {
  width: clamp(170px, 42vw, 254px);
  height: clamp(42px, 7vw, 56px);
  display: flex;
  align-items: center;
}

.orbit-header-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orbit-header-powered {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orbit-header-powered span {
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(7px);
  white-space: nowrap;
}

.orbit-header-powered__logo {
  width: clamp(74px, 18vw, 108px);
  height: 26px;
  object-fit: contain;
}

.orbit-main {
  padding-block: 0;
}

.orbit-shell {
  min-height: calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height));
  padding: clamp(14px, 2vw, 28px);
}

.orbit-stage {
  width: min(100%, 1180px);
  min-height: calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height) - 56px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, min(72vh, 760px)) minmax(280px, 340px);
  justify-content: center;
  gap: clamp(12px, 1.4vw, 18px);
  align-items: start;
}

.orbit-play {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  align-self: start;
}

.orbit-canvas-frame {
  position: relative;
  width: min(100%, 72vh, 760px);
  max-height: calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height) - 58px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #05070b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.orbit-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: manipulation;
}

.orbit-hud {
  position: absolute;
  inset: 12px 12px auto;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.orbit-quickbar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid rgba(104, 225, 253, 0.20);
  border-radius: 8px;
  background: rgba(4, 7, 12, 0.58);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.orbit-quickbar[hidden] {
  display: none;
}

.orbit-command-group {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.orbit-command-group--run {
  grid-template-columns: repeat(2, 44px);
  justify-content: end;
  padding: 4px;
  border: 1px solid rgba(104, 225, 253, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 225, 253, 0.08), transparent 62%),
    rgba(4, 7, 12, 0.42);
}

.orbit-command-group--system {
  grid-template-columns: repeat(5, minmax(42px, auto));
  padding-left: 7px;
  border-left: 1px solid rgba(104, 225, 253, 0.16);
}

.orbit-command-button {
  position: relative;
  min-width: 54px;
  min-height: 44px;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 3px;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(104, 225, 253, 0.24);
  border-radius: 8px;
  color: var(--orbit-ink);
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(6, 10, 16, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.orbit-command-button--primary {
  min-width: 66px;
  min-height: 48px;
  border-color: rgba(104, 225, 253, 0.38);
  background:
    linear-gradient(135deg, rgba(104, 225, 253, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(7, 13, 21, 0.84);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.orbit-command-button--primary i {
  font-size: 0.66rem;
}

.orbit-command-button--primary span {
  font-size: 0.72rem;
}

.orbit-command-button--run {
  width: 44px;
  min-width: 44px;
  min-height: 40px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  padding: 6px 8px;
  border-color: rgba(104, 225, 253, 0.30);
}

.orbit-command-button--pause {
  min-width: 44px;
}

.orbit-command-button--restart {
  min-width: 44px;
  border-color: rgba(155, 169, 188, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 9, 15, 0.64);
}

.orbit-command-button--run .orbit-command-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orbit-command-icon--run {
  width: 18px;
  height: 18px;
}

.orbit-run-icon--play {
  display: none;
}

.orbit-run-icon--play path {
  fill: currentColor;
  stroke: none;
}

.orbit-command-button[data-run-state="paused"] .orbit-run-icon--pause {
  display: none;
}

.orbit-command-button[data-run-state="paused"] .orbit-run-icon--play {
  display: inline;
}

.orbit-command-button--system {
  min-width: 42px;
  min-height: 40px;
  grid-template-rows: 1fr;
  padding: 7px 6px 10px;
  border-color: rgba(104, 225, 253, 0.14);
  color: rgba(219, 244, 255, 0.88);
  background:
    radial-gradient(circle at 50% 16%, rgba(104, 225, 253, 0.12), transparent 58%),
    rgba(4, 7, 12, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.orbit-command-button--system::before {
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
}

.orbit-command-button--system .orbit-command-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orbit-command-button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(155, 169, 188, 0.62);
  box-shadow: 0 0 12px rgba(155, 169, 188, 0.2);
}

.orbit-command-button:hover,
.orbit-command-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(104, 225, 253, 0.72);
  background:
    linear-gradient(135deg, rgba(104, 225, 253, 0.20), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(6, 10, 16, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.orbit-command-button:active {
  transform: translateY(1px) scale(0.98);
}

.orbit-command-button:disabled {
  opacity: 0.52;
  cursor: default;
}

.orbit-command-button:disabled:hover {
  transform: none;
  border-color: rgba(104, 225, 253, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.orbit-command-button[aria-pressed="true"] {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.78);
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 52%, var(--orbit-blue) 100%);
}

.orbit-command-button[aria-pressed="true"]::before {
  background: #001a3d;
  box-shadow: 0 0 12px rgba(0, 26, 61, 0.42);
}

.orbit-command-button i {
  color: var(--orbit-cyan);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
}

.orbit-command-icon {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--orbit-cyan);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(104, 225, 253, 0.34));
  pointer-events: none;
}

.orbit-command-icon--sound path:first-child {
  fill: currentColor;
  stroke: none;
}

.orbit-command-icon--settings {
  stroke-width: 1.6;
}

.orbit-fullscreen-icon--exit {
  display: none;
}

.orbit-command-button[aria-pressed="true"] .orbit-fullscreen-icon--enter,
.orbit-icon-button--hud[aria-pressed="true"] .orbit-fullscreen-icon--enter {
  display: none;
}

.orbit-command-button[aria-pressed="true"] .orbit-fullscreen-icon--exit,
.orbit-icon-button--hud[aria-pressed="true"] .orbit-fullscreen-icon--exit {
  display: inline;
}

.orbit-command-button--toggle .orbit-command-icon {
  transform: translateY(-1px);
}

.orbit-command-button span {
  font-size: 0.68rem;
  font-weight: 900;
}

.orbit-audio-meter {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(155, 169, 188, 0.28);
}

.orbit-audio-meter b {
  width: var(--audio-level, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orbit-cyan), var(--orbit-green));
  box-shadow: 0 0 10px rgba(104, 225, 253, 0.42);
  transform-origin: left center;
}

.orbit-command-button[aria-pressed="true"] i,
.orbit-command-button[aria-pressed="true"] .orbit-command-icon {
  color: #001a3d;
}

.orbit-command-button[aria-pressed="true"] .orbit-audio-meter {
  background: rgba(0, 26, 61, 0.20);
}

.orbit-command-button[aria-pressed="true"] .orbit-audio-meter b {
  background: linear-gradient(90deg, #001a3d, rgba(0, 26, 61, 0.76));
  box-shadow: none;
}

.orbit-command-button--icon i,
.orbit-command-button--icon .orbit-command-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.orbit-command-button--toggle {
  padding-bottom: 10px;
}

.orbit-round-button {
  min-width: 52px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(104, 225, 253, 0.26);
  border-radius: 999px;
  color: var(--orbit-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(4, 7, 12, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.orbit-round-button:hover,
.orbit-round-button:focus-visible {
  border-color: rgba(104, 225, 253, 0.76);
  background:
    linear-gradient(180deg, rgba(104, 225, 253, 0.20), rgba(47, 128, 255, 0.12)),
    rgba(4, 7, 12, 0.86);
}

.orbit-round-button[aria-pressed="true"] {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.78);
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 52%, var(--orbit-blue) 100%);
}

.orbit-toggle-button {
  min-width: 66px;
  height: 48px;
  grid-template-rows: auto auto;
  gap: 3px;
}

.orbit-toggle-button span {
  line-height: 1;
}

.orbit-toggle-button i {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.18);
  color: #ffd4d4;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-toggle-button[aria-pressed="true"] i {
  background: rgba(0, 26, 61, 0.22);
  color: #001a3d;
}

.orbit-round-button:active {
  transform: translateY(1px) scale(0.98);
}

.orbit-coach,
.orbit-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 5;
  border: 1px solid rgba(104, 225, 253, 0.28);
  border-radius: 8px;
  background: rgba(4, 7, 12, 0.74);
  color: var(--orbit-ink);
  backdrop-filter: blur(14px);
}

.orbit-coach {
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.orbit-coach[hidden],
.orbit-hint[hidden] {
  display: none;
}

.orbit-coach ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--orbit-muted);
  font-size: 0.78rem;
}

.orbit-coach li::marker {
  color: var(--orbit-cyan);
  font-weight: 900;
}

.orbit-hint {
  top: 86px;
  width: fit-content;
  max-width: min(420px, calc(100% - 24px));
  padding: 8px 10px;
  color: var(--orbit-cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.orbit-pause-note {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: min(260px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(104, 225, 253, 0.34);
  border-radius: 8px;
  background: rgba(4, 7, 12, 0.76);
  color: var(--orbit-ink);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

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

.orbit-pause-note strong {
  font-family: var(--xonto-font-headline);
  font-size: clamp(1.08rem, 3.4vw, 1.48rem);
  line-height: 1.05;
}

.orbit-pause-note .orbit-link-button {
  min-height: 40px;
  padding: 8px 13px;
}

.orbit-hud div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(4, 7, 12, 0.62);
  backdrop-filter: blur(12px);
}

.orbit-hud-stat {
  min-height: 46px;
}

.orbit-mode-badge {
  grid-column: 1 / -1;
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-color: rgba(104, 225, 253, 0.22);
  background:
    linear-gradient(90deg, rgba(104, 225, 253, 0.14), transparent 58%),
    rgba(4, 7, 12, 0.58);
}

.orbit-mode-badge i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 225, 253, 0.30);
  border-radius: 50%;
  color: var(--orbit-cyan);
  background: rgba(4, 7, 12, 0.56);
  font-family: var(--xonto-font-headline);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1;
}

.orbit-mode-badge span {
  min-width: 0;
  color: var(--orbit-ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: none;
}

.orbit-mode-badge em {
  padding: 3px 6px;
  border: 1px solid rgba(104, 225, 253, 0.18);
  border-radius: 999px;
  color: var(--orbit-cyan);
  background: rgba(104, 225, 253, 0.09);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-mode-badge--daily {
  border-color: rgba(245, 200, 95, 0.22);
  background:
    linear-gradient(90deg, rgba(245, 200, 95, 0.13), transparent 58%),
    rgba(4, 7, 12, 0.58);
}

.orbit-mode-badge--daily i,
.orbit-mode-badge--daily em {
  color: var(--orbit-yellow);
  border-color: rgba(245, 200, 95, 0.30);
}

.orbit-mode-badge--training {
  border-color: rgba(113, 229, 157, 0.22);
  background:
    linear-gradient(90deg, rgba(113, 229, 157, 0.12), transparent 58%),
    rgba(4, 7, 12, 0.58);
}

.orbit-mode-badge--training i,
.orbit-mode-badge--training em {
  color: var(--orbit-green);
  border-color: rgba(113, 229, 157, 0.30);
}

.orbit-stability-strip {
  grid-column: 1 / -1;
  min-height: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-color: rgba(104, 225, 253, 0.18);
  background:
    linear-gradient(90deg, rgba(104, 225, 253, 0.10), transparent 74%),
    rgba(4, 7, 12, 0.50);
}

.orbit-stability-strip span {
  color: var(--orbit-muted);
  font-size: 0.58rem;
  white-space: nowrap;
}

.orbit-stability-strip i {
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.orbit-stability-strip b {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orbit-green), var(--orbit-yellow), var(--orbit-coral));
  box-shadow: 0 0 16px rgba(104, 225, 253, 0.20);
  transform-origin: right center;
}

.orbit-status-module {
  position: absolute;
  left: 12px;
  top: auto;
  bottom: 12px;
  z-index: 3;
  width: min(260px, calc(100% - 24px));
  padding: 14px 10px 9px;
  border: 1px solid rgba(104, 225, 253, 0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.13), transparent 56%),
    rgba(4, 7, 12, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.orbit-status-module__pilot {
  position: absolute;
  left: 10px;
  top: -9px;
  max-width: calc(100% - 20px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(104, 225, 253, 0.24);
  border-radius: 999px;
  color: var(--orbit-cyan);
  background:
    linear-gradient(90deg, rgba(47, 128, 255, 0.24), rgba(104, 225, 253, 0.08)),
    rgba(4, 7, 12, 0.92);
  box-shadow:
    0 0 14px rgba(47, 128, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-status-module__pilot span {
  flex: 0 0 auto;
  color: var(--orbit-muted);
}

.orbit-status-module__pilot strong {
  min-width: 0;
  max-width: 15ch;
  overflow: hidden;
  color: var(--orbit-ink);
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-status-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orbit-status-module__head strong {
  color: var(--orbit-ink);
  font-size: 0.72rem;
}

.orbit-status-module p:not(.orbit-eyebrow) {
  margin: 5px 0 0;
  color: var(--orbit-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.orbit-status-module__meta {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(104, 225, 253, 0.14);
}

.orbit-status-module small {
  display: block;
  color: var(--orbit-cyan);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.22;
}

.orbit-status-module small[data-orbit-assist-status] {
  color: #ffb86b;
}

.orbit-hud span,
.orbit-eyebrow {
  display: block;
  color: var(--orbit-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orbit-hud strong {
  display: block;
  color: var(--orbit-ink);
  font-family: var(--xonto-font-headline);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-hud-stat--hits strong {
  font-size: clamp(0.76rem, 1.7vw, 1.04rem);
}

.orbit-hud-stat--distance strong {
  color: var(--orbit-yellow);
}

.orbit-hud .orbit-mode-badge span {
  color: var(--orbit-ink);
  font-size: 0.72rem;
  text-transform: none;
}

.orbit-hud .orbit-stability-strip span {
  color: var(--orbit-muted);
  font-size: 0.58rem;
}

.orbit-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.14), rgba(5, 7, 11, 0.82));
}

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

.orbit-canvas-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.orbit-canvas-frame:fullscreen .orbit-canvas {
  width: 100vw;
  height: 100vh;
}

.orbit-overlay__panel {
  width: min(100%, 420px);
  max-height: calc(100% - 24px);
  padding: clamp(17px, 3.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.84);
  color: var(--orbit-ink);
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.orbit-logo-title {
  position: relative;
  margin: -2px auto 6px;
  width: min(310px, 88%);
  aspect-ratio: 825 / 260;
  overflow: visible;
  border-radius: 8px;
  line-height: 0;
}

.orbit-logo-title img,
.orbit-dialog-logo {
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(47, 128, 255, 0.16));
}

.orbit-logo-title img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.orbit-logo-title span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.orbit-claim {
  margin: 0 0 8px;
  color: var(--orbit-cyan);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 800;
}

.orbit-claim[hidden] {
  display: none;
}

.orbit-copy,
.orbit-status {
  margin: 0;
  color: var(--orbit-muted);
  line-height: 1.32;
}

.orbit-result-card {
  margin: 14px auto 0;
  width: min(100%, 350px);
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(104, 225, 253, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.20), transparent 48%),
    rgba(4, 7, 12, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.orbit-result-card[hidden] {
  display: none;
}

.orbit-result-card[data-result-tone="best"] {
  border-color: rgba(245, 200, 95, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 42px rgba(245, 200, 95, 0.18);
}

.orbit-result-card[data-result-tone="flow"] {
  border-color: rgba(113, 229, 157, 0.42);
}

.orbit-result-card__score {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.orbit-result-card__score > span,
.orbit-result-card__score > em {
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.orbit-result-card__score > span {
  color: var(--orbit-cyan);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.orbit-result-card__score > strong {
  color: var(--orbit-ink);
  font-family: var(--xonto-font-headline);
  font-size: clamp(3rem, 12vw, 5.2rem);
  line-height: 0.95;
  text-shadow: 0 0 22px rgba(104, 225, 253, 0.24);
}

.orbit-result-card__score > em {
  color: var(--orbit-muted);
  font-size: 0.62rem;
}

.orbit-result-card__verdict {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(104, 225, 253, 0.18);
  border-radius: 8px;
  background: rgba(104, 225, 253, 0.07);
  text-align: left;
}

.orbit-result-card__verdict strong,
.orbit-result-card__verdict span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.orbit-result-card__verdict strong {
  color: var(--orbit-ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.orbit-result-card__verdict span {
  color: var(--orbit-cyan);
  font-size: 0.68rem;
  font-weight: 800;
}

.orbit-result-card[data-result-tone="best"] .orbit-result-card__verdict {
  border-color: rgba(245, 200, 95, 0.52);
  background: rgba(245, 200, 95, 0.10);
}

.orbit-result-card[data-result-tone="flow"] .orbit-result-card__verdict {
  border-color: rgba(113, 229, 157, 0.42);
  background: rgba(113, 229, 157, 0.09);
}

.orbit-result-formula {
  margin: -1px 0 0;
  padding: 6px 8px;
  border: 1px solid rgba(104, 225, 253, 0.14);
  border-radius: 8px;
  color: var(--orbit-cyan);
  background: rgba(104, 225, 253, 0.055);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.orbit-result-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.orbit-result-card dl > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.orbit-result-card dt,
.orbit-result-card dd {
  margin: 0;
}

.orbit-result-card dt {
  color: var(--orbit-muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit-result-card dd {
  margin-top: 3px;
  color: var(--orbit-ink);
  font-weight: 900;
}

.orbit-score-breakdown {
  margin-top: 2px;
  display: grid;
  gap: 7px;
}

.orbit-score-breakdown ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.orbit-score-breakdown li {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.orbit-score-breakdown b,
.orbit-score-breakdown span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.orbit-score-breakdown b {
  color: var(--orbit-muted);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.orbit-score-breakdown span {
  color: var(--orbit-ink);
  font-size: 0.62rem;
  font-weight: 900;
}

.orbit-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.orbit-actions[hidden],
.orbit-actions [hidden] {
  display: none;
}

.orbit-actions--modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
}

.orbit-actions--run {
  justify-content: center;
}

.orbit-result-mode-switch {
  flex: 1 0 100%;
  width: min(100%, 224px);
  margin: -2px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.orbit-result-mode-badge {
  min-width: 0;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 8px;
  color: var(--orbit-cyan);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 9, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.orbit-result-mode-badge:hover,
.orbit-result-mode-badge:focus-visible {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.72);
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 50%, var(--orbit-blue) 100%);
  box-shadow: 0 10px 22px rgba(47, 128, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.40);
  transform: translateY(-1px);
}

.orbit-actions--secondary {
  margin-top: 10px;
}

.orbit-overlay-tools {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  justify-content: center;
  gap: 8px;
}

.orbit-button,
.orbit-icon-button,
.orbit-link-button {
  min-height: 44px;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 8px;
  color: var(--orbit-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.orbit-button {
  padding: 11px 16px;
}

.orbit-button--primary {
  color: #001a3d;
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 46%, var(--orbit-blue) 100%);
  border-color: rgba(143, 211, 255, 0.72);
  box-shadow: 0 12px 30px rgba(47, 128, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.orbit-button--hero {
  width: min(100%, 300px);
  min-height: 54px;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.orbit-button--small {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.88rem;
}

.orbit-button--mode {
  color: var(--orbit-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(5, 9, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.orbit-button--mode:hover,
.orbit-button--mode:focus-visible {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.74);
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 48%, var(--orbit-blue) 100%);
  box-shadow: 0 12px 30px rgba(47, 128, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.orbit-button--danger {
  width: 100%;
  color: #ffe9e9;
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.25), rgba(255, 107, 107, 0.12)),
    rgba(36, 8, 10, 0.76);
  border-color: rgba(255, 107, 107, 0.48);
}

.orbit-icon-button {
  min-width: 80px;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.orbit-icon-button--hud {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(104, 225, 253, 0.16);
  color: var(--orbit-cyan);
  background:
    radial-gradient(circle at 50% 16%, rgba(104, 225, 253, 0.13), transparent 58%),
    rgba(4, 7, 12, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.orbit-icon-button--hud::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(155, 169, 188, 0.54);
  box-shadow: 0 0 10px rgba(155, 169, 188, 0.22);
}

.orbit-icon-button--hud .orbit-command-icon {
  width: 20px;
  height: 20px;
}

.orbit-icon-button--hud[aria-pressed="true"] {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.78);
  background:
    linear-gradient(180deg, #94e6ff 0%, #50a5ff 52%, var(--orbit-blue) 100%);
}

.orbit-icon-button--hud[aria-pressed="true"]::before {
  background: #001a3d;
  box-shadow: 0 0 12px rgba(0, 26, 61, 0.42);
}

.orbit-icon-button--hud[aria-pressed="true"] .orbit-command-icon {
  color: #001a3d;
  filter: none;
}

.orbit-icon-button__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orbit-link-button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--orbit-cyan);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}

.orbit-button:hover,
.orbit-icon-button:hover,
.orbit-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 225, 253, 0.62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.orbit-button:active,
.orbit-icon-button:active,
.orbit-link-button:active {
  transform: translateY(1px);
}

.orbit-side {
  min-width: 0;
  display: grid;
  grid-template-rows: none;
  grid-auto-rows: max-content;
  gap: 8px;
  align-self: start;
}

.orbit-cockpit-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(104, 225, 253, 0.20);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(104, 225, 253, 0.13), transparent 64%),
    rgba(8, 12, 18, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.orbit-cockpit-strip__title {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.orbit-cockpit-strip .orbit-eyebrow {
  margin: 0;
}

.orbit-cockpit-strip strong {
  min-width: 0;
  color: var(--orbit-ink);
  font-size: 0.82rem;
  line-height: 1.05;
}

.orbit-cockpit-strip span {
  min-width: 46px;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.orbit-cockpit-strip b,
.orbit-cockpit-strip em {
  min-width: 0;
  line-height: 1;
}

.orbit-cockpit-strip b {
  color: var(--orbit-ink);
  font-size: 0.74rem;
}

.orbit-cockpit-strip em {
  color: var(--orbit-muted);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.orbit-cockpit-strip small {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--orbit-cyan);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.orbit-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--orbit-line);
  border-radius: 8px;
  background: var(--orbit-panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.20);
}

.orbit-panel--compact {
  background: var(--orbit-panel-strong);
}

.orbit-panel[hidden],
.orbit-results[hidden] {
  display: none;
}

.orbit-panel__head {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orbit-panel__head strong,
.orbit-panel__head span {
  color: var(--orbit-ink);
  font-size: 0.78rem;
}

.orbit-panel__head--tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
}

.orbit-panel__head--tabs .orbit-eyebrow {
  padding-top: 0;
  white-space: nowrap;
}

.orbit-panel--modes {
  height: 276px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.orbit-tabbar.orbit-mode-tabs {
  display: inline-grid;
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  grid-template-columns: repeat(3, max-content);
  justify-self: end;
}

.orbit-tabbar.orbit-mode-tabs button {
  min-width: 0;
  min-height: 24px;
  padding: 4px 6px;
  white-space: nowrap;
  font-size: 0.56rem;
  line-height: 1;
}

.orbit-mode-panels {
  display: grid;
  min-height: 0;
}

.orbit-mode-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  overflow: auto;
  padding: 9px;
  border: 1px solid rgba(104, 225, 253, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

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

.orbit-mode-panel--daily {
  border-color: rgba(245, 200, 95, 0.22);
  background:
    linear-gradient(135deg, rgba(245, 200, 95, 0.15), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.orbit-mode-panel--training {
  border-color: rgba(113, 229, 157, 0.22);
  background:
    linear-gradient(135deg, rgba(113, 229, 157, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.orbit-mode-panel__top {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.orbit-mode-panel__top i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 225, 253, 0.30);
  border-radius: 50%;
  color: var(--orbit-cyan);
  background: rgba(4, 7, 12, 0.52);
  font-family: var(--xonto-font-headline);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 0 24px rgba(104, 225, 253, 0.12);
}

.orbit-mode-panel--daily .orbit-mode-panel__top i,
.orbit-mode-panel--daily .orbit-mode-panel__top em,
.orbit-mode-panel--daily .orbit-mode-panel__meta em {
  color: var(--orbit-yellow);
  border-color: rgba(245, 200, 95, 0.28);
}

.orbit-mode-panel--training .orbit-mode-panel__top i,
.orbit-mode-panel--training .orbit-mode-panel__top em,
.orbit-mode-panel--training .orbit-mode-panel__meta em {
  color: var(--orbit-green);
  border-color: rgba(113, 229, 157, 0.28);
}

.orbit-mode-panel__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.orbit-mode-panel__top .orbit-eyebrow {
  margin: 0;
}

.orbit-mode-panel__top strong {
  color: var(--orbit-ink);
  font-size: 0.86rem;
  line-height: 1.1;
}

.orbit-mode-panel__top em,
.orbit-mode-panel__meta em {
  justify-self: start;
  padding: 3px 6px;
  border: 1px solid rgba(104, 225, 253, 0.18);
  border-radius: 999px;
  color: var(--orbit-cyan);
  background: rgba(104, 225, 253, 0.09);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-mode-panel > p {
  margin: 0;
  color: var(--orbit-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.orbit-mode-panel__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.orbit-mode-panel__meta span,
.orbit-mode-panel__meta strong,
.orbit-mode-panel__meta em {
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--orbit-muted);
  font-size: 0.58rem;
  font-style: normal;
  line-height: 1.18;
}

.orbit-mode-panel__meta strong {
  color: var(--orbit-ink);
  font-weight: 900;
}

.orbit-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(3, 5, 9, 0.44);
  backdrop-filter: blur(8px);
}

.orbit-settings-backdrop[hidden] {
  display: none;
}

.orbit-settings-backdrop .orbit-panel--settings {
  width: min(430px, 100%);
  height: min(480px, calc(100dvh - 28px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: 14px;
  border-color: rgba(104, 225, 253, 0.30);
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 22, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.orbit-panel--settings.is-collapsed {
  display: none;
}

.orbit-settings-head {
  align-items: start;
}

.orbit-settings-head > div {
  display: grid;
  gap: 2px;
}

.orbit-settings-intro {
  margin: 3px 0 10px;
  color: var(--orbit-muted);
  font-size: 0.72rem;
  line-height: 1.32;
}

.orbit-settings-tabs {
  width: 100%;
  margin-bottom: 10px;
}

.orbit-settings-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-right: 2px;
}

.orbit-settings-pane {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.orbit-settings-pane[hidden] {
  display: none;
}

.orbit-data-note {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(104, 225, 253, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 225, 253, 0.10), transparent 62%),
    rgba(255, 255, 255, 0.035);
}

.orbit-data-note p {
  margin: 0;
  color: var(--orbit-muted);
  font-size: 0.7rem;
  line-height: 1.34;
}

.orbit-data-note .orbit-eyebrow {
  color: var(--orbit-cyan);
}

.orbit-score-list,
.orbit-mission-list,
.orbit-recent-list {
  margin: 0;
  padding-left: 20px;
  color: var(--orbit-muted);
}

.orbit-score-list li,
.orbit-mission-list li,
.orbit-recent-list li {
  margin-block: 7px;
}

.orbit-score-list {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
  counter-reset: orbit-score;
}

.orbit-tabbar {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(104, 225, 253, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.orbit-tabbar button {
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--orbit-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.orbit-tabbar button.is-active {
  color: #001a3d;
  background: linear-gradient(180deg, #94e6ff 0%, #50a5ff 100%);
}

.orbit-score-list li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "rank score"
    "rank meta";
  align-items: center;
  gap: 1px 8px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 128, 255, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orbit-recent-list {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}

.orbit-recent-list[hidden] {
  display: none;
}

.orbit-recent-list li {
  min-height: 46px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "rank score"
    "rank meta";
  align-items: center;
  gap: 1px 8px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(104, 225, 253, 0.08), transparent 68%),
    rgba(255, 255, 255, 0.035);
}

.orbit-recent-list li b {
  grid-area: rank;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 50%;
  color: var(--orbit-cyan);
  background: rgba(4, 7, 12, 0.48);
  font-size: 0.58rem;
}

.orbit-recent-list li strong {
  grid-area: score;
  color: var(--orbit-ink);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.12;
}

.orbit-recent-list li span {
  grid-area: meta;
  color: var(--orbit-muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.orbit-recent-list li.is-empty {
  min-height: 36px;
  display: block;
  padding: 9px;
  color: var(--orbit-muted);
  font-size: 0.72rem;
  text-align: center;
}

.orbit-score-list li b {
  grid-area: rank;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 225, 253, 0.26);
  border-radius: 50%;
  color: var(--orbit-cyan);
  background: rgba(4, 7, 12, 0.48);
  font-size: 0.62rem;
  line-height: 1;
}

.orbit-score-list li strong {
  grid-area: score;
  min-width: 0;
  color: var(--orbit-ink);
  font-family: var(--xonto-font-headline);
  font-size: 0.92rem;
  line-height: 1.05;
}

.orbit-score-list li span {
  grid-area: meta;
  min-width: 0;
  color: var(--orbit-muted);
  font-size: 0.64rem;
  line-height: 1.2;
}

.orbit-score-list li:first-child:not(.is-empty) {
  border-color: rgba(245, 200, 95, 0.28);
  background:
    linear-gradient(90deg, rgba(245, 200, 95, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.orbit-score-list li:first-child:not(.is-empty) b {
  color: var(--orbit-yellow);
  border-color: rgba(245, 200, 95, 0.34);
}

.orbit-score-list li.is-empty {
  min-height: 36px;
  display: block;
  padding: 9px;
  color: var(--orbit-muted);
  font-size: 0.72rem;
  text-align: center;
}

.orbit-mission-list {
  padding-left: 0;
  list-style: none;
}

.orbit-mission-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.orbit-mission-list b {
  color: var(--orbit-ink);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.18;
}

.orbit-mission-list span {
  align-self: start;
  color: var(--orbit-cyan);
  font-size: 0.66rem;
  font-weight: 800;
}

.orbit-mission-list i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.orbit-mission-list em {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orbit-blue), var(--orbit-cyan), var(--orbit-green));
  transform-origin: left center;
}

.orbit-mission-list li.is-complete {
  border-color: rgba(113, 229, 157, 0.28);
}

.orbit-mission-list li.is-complete span {
  color: var(--orbit-green);
}

.orbit-field {
  min-width: 0;
  margin-top: 8px;
  display: grid;
  gap: 4px;
  color: var(--orbit-muted);
  font-size: 0.76rem;
}

.orbit-field--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.orbit-field-pair {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.orbit-field-pair .orbit-field {
  margin-top: 0;
}

.orbit-audio-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.orbit-field input,
.orbit-field select {
  box-sizing: border-box;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--orbit-ink);
  background: rgba(255, 255, 255, 0.08);
}

.orbit-field input[type="text"],
.orbit-field select {
  width: 100%;
  padding: 6px 8px;
}

.orbit-field select {
  color: var(--orbit-ink);
  background: rgba(8, 13, 22, 0.92);
  color-scheme: dark;
}

.orbit-field select option {
  color: #07111f;
  background: #f7fbff;
}

.orbit-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.orbit-field--range {
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.orbit-field--range > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.orbit-field--range b,
.orbit-field--range em {
  min-width: 0;
  font-style: normal;
  line-height: 1;
}

.orbit-field--range b {
  color: var(--orbit-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.orbit-field--range em {
  color: var(--orbit-cyan);
  font-size: 0.66rem;
  font-weight: 900;
}

.orbit-field input[type="range"] {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--orbit-cyan);
}

.orbit-setting-note {
  margin: 0;
  padding: 8px 9px;
  border: 1px solid rgba(104, 225, 253, 0.16);
  border-radius: 8px;
  color: var(--orbit-muted);
  background:
    linear-gradient(90deg, rgba(104, 225, 253, 0.09), transparent 72%),
    rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  line-height: 1.32;
}

.orbit-danger-zone {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 107, 107, 0.10), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.orbit-danger-zone span {
  color: var(--orbit-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.orbit-danger-link {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 8px;
  color: #ffdada;
  background: rgba(255, 107, 107, 0.10);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.orbit-danger-link:hover,
.orbit-danger-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 107, 0.66);
  background: rgba(255, 107, 107, 0.16);
}

.orbit-results {
  width: min(100%, 1500px);
  margin: 14px auto 0;
}

.orbit-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orbit-orientation,
.orbit-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 9, 0.52);
  backdrop-filter: blur(6px);
}

.orbit-orientation[hidden],
.orbit-dialog-backdrop[hidden] {
  display: none;
}

.orbit-orientation__panel,
.orbit-dialog {
  width: min(100%, 380px);
  padding: 14px;
  border: 1px solid rgba(104, 225, 253, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 225, 253, 0.10), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 22, 0.94);
  color: var(--orbit-ink);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.orbit-dialog {
  align-self: center;
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.orbit-dialog__head {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orbit-dialog__head .orbit-eyebrow {
  margin: 0;
}

.orbit-dialog__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 8px;
  color: var(--orbit-cyan);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.orbit-dialog__close:hover,
.orbit-dialog__close:focus-visible {
  border-color: rgba(104, 225, 253, 0.62);
  background: rgba(104, 225, 253, 0.10);
}

.orbit-orientation__panel h2,
.orbit-dialog h2 {
  margin: 3px 0 8px;
  color: var(--orbit-ink);
  font-family: var(--xonto-font-headline);
  font-size: clamp(1.18rem, 3.2vw, 1.55rem);
  line-height: 1.1;
}

.orbit-dialog-logo {
  width: min(202px, 74%);
  height: auto;
  max-height: 64px;
  margin: -4px auto 2px;
  border-radius: 8px;
  object-fit: contain;
}

.orbit-orientation__panel p,
.orbit-dialog p {
  margin: 0;
  color: var(--orbit-muted);
  font-size: 0.88rem;
  line-height: 1.36;
}

.orbit-dialog__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.orbit-dialog__actions .orbit-button {
  min-height: 38px;
  padding: 8px 12px;
}

.orbit-dialog [hidden] {
  display: none !important;
}

.orbit-dialog__content {
  min-height: 0;
}

.orbit-dialog__content[hidden] {
  display: none;
}

.orbit-dialog--help {
  width: min(100%, 560px);
  height: min(520px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.orbit-dialog--help .orbit-dialog-logo {
  width: min(190px, 62%);
  max-height: 56px;
}

.orbit-dialog--help h2 {
  margin: 0;
}

.orbit-dialog--help .orbit-dialog__content {
  display: grid;
  overflow: hidden;
}

.orbit-help-guide {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.orbit-help-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.orbit-help-tab {
  min-width: 0;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 8px;
  color: var(--orbit-cyan);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(5, 9, 15, 0.74);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-help-tab.is-active,
.orbit-help-tab:hover,
.orbit-help-tab:focus-visible {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.72);
  background: linear-gradient(180deg, #94e6ff 0%, #50a5ff 50%, var(--orbit-blue) 100%);
  box-shadow: 0 10px 22px rgba(47, 128, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.orbit-help-panels {
  min-height: 0;
  overflow: auto;
  padding: 1px 3px 1px 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.orbit-help-panel {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-content: start;
}

.orbit-help-panel[hidden] {
  display: none !important;
}

.orbit-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.orbit-help-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 7px;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(104, 225, 253, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(4, 7, 12, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orbit-help-card b {
  color: var(--orbit-ink);
  font-size: 0.72rem;
  line-height: 1.14;
  text-transform: uppercase;
}

.orbit-dialog .orbit-help-card p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.28;
}

.orbit-help-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  align-self: end;
}

.orbit-help-chip {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 999px;
  color: var(--orbit-cyan);
  background: rgba(4, 7, 12, 0.62);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.orbit-help-chip--blue,
.orbit-help-chip--mode {
  color: #001a3d;
  border-color: rgba(143, 211, 255, 0.62);
  background: linear-gradient(180deg, #94e6ff, var(--orbit-blue));
}

.orbit-help-chip--cyan {
  color: #02131f;
  background: linear-gradient(180deg, #8df4ff, var(--orbit-cyan));
}

.orbit-help-chip--green,
.orbit-help-chip--safe {
  color: #021a0e;
  background: linear-gradient(180deg, #a5ffcf, var(--orbit-green));
}

.orbit-help-chip--yellow,
.orbit-help-chip--clean,
.orbit-help-chip--assist {
  color: #201300;
  background: linear-gradient(180deg, #ffe39a, var(--orbit-yellow));
}

.orbit-help-chip--perfect {
  color: #001a3d;
  background: linear-gradient(180deg, #f7fbff, #68e1fd);
}

.orbit-help-chip--red,
.orbit-help-chip--miss {
  color: #2a0000;
  background: linear-gradient(180deg, #ffb0b0, var(--orbit-coral));
}

.orbit-help-orbit {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(104, 225, 253, 0.54);
  border-radius: 50%;
  color: var(--orbit-ink);
  background:
    radial-gradient(circle, rgba(247, 251, 255, 0.96) 0 12%, transparent 13%),
    rgba(4, 7, 12, 0.56);
  font-size: 0.54rem;
  font-weight: 900;
}

.orbit-help-orbit--reverse {
  border-color: rgba(155, 125, 255, 0.78);
  color: #dcd4ff;
}

.orbit-help-orbit--precision {
  border-color: rgba(245, 200, 95, 0.86);
  color: var(--orbit-yellow);
}

.orbit-help-orbit--collapse {
  border-color: rgba(255, 107, 107, 0.82);
  color: var(--orbit-coral);
}

@media (max-width: 560px) {
  .orbit-dialog--help {
    height: min(560px, calc(100dvh - 28px));
    padding: 12px;
  }

  .orbit-help-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orbit-help-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}

.xonto-legal-page {
  max-width: 72ch;
  padding-block: 24px 76px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.xonto-legal-page__eyebrow {
  margin: 0 0 10px;
  color: var(--xonto-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xonto-legal-page__meta {
  color: var(--xonto-muted);
  font-size: 0.94rem;
}

.xonto-legal-page h1 {
  margin: 0 0 22px;
  color: var(--xonto-black);
  font-family: var(--xonto-font-headline);
  font-size: 3rem;
  line-height: 1.08;
}

.xonto-legal-page h2 {
  margin: 30px 0 8px;
  color: var(--xonto-black);
  font-family: var(--xonto-font-headline);
  font-size: 1.32rem;
  line-height: 1.2;
}

.xonto-legal-page p,
.xonto-legal-page li {
  margin: 0 0 14px;
  color: var(--xonto-text);
}

.xonto-legal-page a {
  color: var(--xonto-blue);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

@media (min-width: 1121px) {
  .orbit-play {
    position: sticky;
    top: calc(var(--xonto-header-height) + clamp(14px, 2vw, 28px));
  }

  .orbit-side {
    max-height: calc(100dvh - var(--xonto-header-height) - var(--xonto-footer-min-height) - 56px);
    overflow: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(104, 225, 253, 0.42) rgba(255, 255, 255, 0.06);
  }

  .orbit-side::-webkit-scrollbar {
    width: 8px;
  }

  .orbit-side::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .orbit-side::-webkit-scrollbar-thumb {
    background: rgba(104, 225, 253, 0.42);
    border-radius: 999px;
  }
}

@media (max-width: 1120px) {
  .orbit-stage {
    grid-template-columns: minmax(320px, 1fr);
  }

  .orbit-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .orbit-cockpit-strip {
    grid-column: 1 / -1;
  }

}

@media (max-width: 760px) {
  .orbit-shell {
    padding: 6px;
  }

  .orbit-stage {
    min-height: auto;
  }

  .orbit-side {
    grid-template-columns: 1fr;
  }

  .orbit-canvas-frame {
    width: min(100%, calc(100dvh - var(--xonto-header-height) - 12px));
    max-height: none;
  }

  .orbit-body.orbit-is-playing,
  .orbit-body.orbit-is-paused {
    overflow: hidden;
  }

  .orbit-body.orbit-is-playing .xonto-header,
  .orbit-body.orbit-is-paused .xonto-header {
    display: none;
  }

  .orbit-body.orbit-is-playing .orbit-main,
  .orbit-body.orbit-is-paused .orbit-main,
  .orbit-body.orbit-is-playing .orbit-shell,
  .orbit-body.orbit-is-paused .orbit-shell {
    min-height: 100dvh;
  }

  .orbit-body.orbit-is-playing .orbit-shell,
  .orbit-body.orbit-is-paused .orbit-shell {
    padding: 0;
  }

  .orbit-body.orbit-is-playing .orbit-stage,
  .orbit-body.orbit-is-paused .orbit-stage {
    display: block;
    width: 100%;
    min-height: 100dvh;
  }

  .orbit-body.orbit-is-playing .orbit-play,
  .orbit-body.orbit-is-paused .orbit-play {
    min-height: 100dvh;
    align-items: start;
  }

  .orbit-body.orbit-is-playing .orbit-canvas-frame,
  .orbit-body.orbit-is-paused .orbit-canvas-frame {
    width: min(100vw, 56.25dvh);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .orbit-body.orbit-is-playing .orbit-side,
  .orbit-body.orbit-is-playing .orbit-results,
  .orbit-body.orbit-is-playing .xonto-footer,
  .orbit-body.orbit-is-paused .orbit-side,
  .orbit-body.orbit-is-paused .orbit-results,
  .orbit-body.orbit-is-paused .xonto-footer {
    display: none;
  }

  .orbit-settings-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .orbit-settings-backdrop .orbit-panel--settings {
    width: min(360px, calc(100vw - 16px));
    height: min(480px, calc(100dvh - 16px));
    padding: 12px;
  }

  .orbit-settings-head {
    position: sticky;
    top: -12px;
    z-index: 2;
    margin: -12px -12px 10px;
    padding: 12px;
    background: rgba(18, 24, 34, 0.96);
    backdrop-filter: blur(14px);
  }

  .orbit-field {
    margin-top: 0;
  }

  .orbit-field:first-child,
  .orbit-field-pair,
  .orbit-audio-controls,
  .orbit-field:has(select),
  .orbit-setting-note,
  .orbit-danger-zone {
    grid-column: 1 / -1;
  }

  .orbit-field--inline {
    min-height: 42px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
  }

  .orbit-side {
    grid-template-columns: 1fr;
  }

  .orbit-hud {
    inset: 8px 8px auto;
    gap: 5px;
  }

  .orbit-hud div {
    padding: 7px 7px;
  }

  .orbit-hud-stat {
    min-height: 42px;
  }

  .orbit-status-module {
    left: 8px;
    top: auto;
    bottom: var(--orbit-mobile-control-zone);
    width: min(230px, calc(100% - 16px));
    padding: 13px 8px 8px;
  }

  .orbit-status-module__pilot {
    left: 8px;
    top: -8px;
    max-width: calc(100% - 16px);
    padding: 3px 7px;
    font-size: 0.52rem;
  }

  .orbit-status-module p:not(.orbit-eyebrow) {
    font-size: 0.66rem;
  }

  .orbit-overlay {
    padding: 12px;
  }

  .orbit-overlay__panel {
    padding: 17px;
  }

  .orbit-quickbar {
    right: 8px;
    bottom: 8px;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: min(360px, calc(100% - 16px));
    max-width: calc(100% - 16px);
  }

  .orbit-command-group--run {
    grid-template-columns: repeat(2, 44px);
    justify-content: center;
  }

  .orbit-command-group--system {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
    padding-top: 6px;
    padding-left: 0;
    border-top: 1px solid rgba(104, 225, 253, 0.16);
    border-left: 0;
  }

  .orbit-command-button {
    min-width: 0;
    min-height: 42px;
    padding: 6px;
  }

  .orbit-command-button--primary {
    min-height: 46px;
  }

  .orbit-command-button--system {
    min-height: 38px;
  }

  .orbit-command-button span {
    font-size: 0.64rem;
  }

  .orbit-command-button--system span {
    font-size: 0.52rem;
  }

  .orbit-command-button i {
    font-size: 0.54rem;
  }

  .orbit-coach {
    left: 8px;
    right: 8px;
    bottom: 8px;
    align-items: flex-start;
  }

  .orbit-coach ol {
    display: grid;
    gap: 4px;
  }

  .orbit-hint {
    top: 74px;
    left: 8px;
    right: 8px;
    width: auto;
  }

  .orbit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .orbit-actions--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orbit-overlay-tools {
    grid-template-columns: repeat(5, 44px);
    justify-content: center;
  }

  .xonto-legal-page {
    padding-block: 8px 46px;
  }

  .xonto-legal-page h1 {
    margin-bottom: 18px;
    font-size: 2rem;
  }
}

@media (max-width: 820px) and (orientation: portrait) {
  .orbit-body.orbit-is-playing,
  .orbit-body.orbit-is-paused {
    overflow: hidden;
  }

  .orbit-body.orbit-is-playing .xonto-header,
  .orbit-body.orbit-is-paused .xonto-header {
    display: none;
  }

  .orbit-body.orbit-is-playing .orbit-main,
  .orbit-body.orbit-is-paused .orbit-main,
  .orbit-body.orbit-is-playing .orbit-shell,
  .orbit-body.orbit-is-paused .orbit-shell {
    min-height: 100dvh;
  }

  .orbit-body.orbit-is-playing .orbit-shell,
  .orbit-body.orbit-is-paused .orbit-shell {
    padding: 0;
  }

  .orbit-body.orbit-is-playing .orbit-stage,
  .orbit-body.orbit-is-paused .orbit-stage {
    display: block;
    width: 100%;
    min-height: 100dvh;
  }

  .orbit-body.orbit-is-playing .orbit-play,
  .orbit-body.orbit-is-paused .orbit-play {
    min-height: 100dvh;
    align-items: start;
  }

  .orbit-body.orbit-is-playing .orbit-canvas-frame,
  .orbit-body.orbit-is-paused .orbit-canvas-frame {
    width: min(100vw, 56.25dvh);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .orbit-body.orbit-is-playing .orbit-side,
  .orbit-body.orbit-is-playing .orbit-results,
  .orbit-body.orbit-is-playing .xonto-footer,
  .orbit-body.orbit-is-paused .orbit-side,
  .orbit-body.orbit-is-paused .orbit-results,
  .orbit-body.orbit-is-paused .xonto-footer {
    display: none;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  :root {
    --orbit-mobile-control-zone: 116px;
  }

  .orbit-body.orbit-is-playing .orbit-canvas-frame,
  .orbit-body.orbit-is-paused .orbit-canvas-frame {
    width: min(100vw, 56.25dvh);
    min-width: 320px;
    max-width: 100vw;
  }

  .orbit-hud {
    inset: 7px 7px auto;
    gap: 4px;
  }

  .orbit-hud div {
    padding: 6px;
  }

  .orbit-hud span,
  .orbit-hud .orbit-mode-badge span,
  .orbit-hud .orbit-stability-strip span {
    font-size: 0.56rem;
  }

  .orbit-hud strong {
    font-size: clamp(0.78rem, 3.1vw, 0.98rem);
  }

  .orbit-hud-stat--hits strong {
    font-size: clamp(0.62rem, 2.5vw, 0.76rem);
  }

  .orbit-stability-strip {
    min-height: 16px;
    gap: 6px;
    padding: 4px 6px;
  }

  .orbit-status-module {
    left: 8px;
    bottom: var(--orbit-mobile-control-zone);
    width: min(218px, calc(100% - 16px));
    padding: 13px 7px 7px;
  }

  .orbit-status-module__pilot {
    font-size: 0.5rem;
  }

  .orbit-status-module__pilot strong {
    max-width: 15ch;
  }

  .orbit-status-module__head strong,
  .orbit-status-module p:not(.orbit-eyebrow),
  .orbit-status-module small {
    font-size: 0.6rem;
    line-height: 1.18;
  }

  .orbit-status-module__meta {
    margin-top: 5px;
    padding-top: 5px;
  }

  .orbit-quickbar {
    right: 7px;
    bottom: 7px;
    gap: 5px;
    width: calc(100% - 14px);
    max-width: 360px;
    padding: 5px;
  }

  .orbit-command-group--run {
    grid-template-columns: repeat(2, 44px);
  }

  .orbit-command-group--system {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
    gap: 5px;
  }

  .orbit-command-button--primary {
    min-height: 46px;
  }

  .orbit-command-button--system {
    min-height: 38px;
    padding: 5px 4px;
  }
}

@media (max-width: 380px) {
  .orbit-hud span {
    font-size: 0.58rem;
  }

  .orbit-status-module {
    top: auto;
    bottom: var(--orbit-mobile-control-zone);
    width: calc(100% - 16px);
  }

  .orbit-panel {
    padding: 12px;
  }

  .orbit-command-button {
    min-width: 0;
  }

  .orbit-command-group--system {
    grid-template-columns: repeat(5, minmax(34px, 1fr));
  }

  .orbit-command-button--system span {
    font-size: 0.48rem;
  }

  .orbit-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-button,
  .orbit-icon-button,
  .orbit-link-button,
  .orbit-command-button,
  .orbit-danger-link {
    transition: none;
  }
}
