:root {
  --bg: #050806;
  --panel: rgba(8, 13, 11, 0.78);
  --panel-strong: rgba(6, 10, 8, 0.94);
  --text: #f6fbf7;
  --muted: rgba(246, 251, 247, 0.68);
  --quiet: rgba(246, 251, 247, 0.46);
  --line: rgba(255, 255, 255, 0.15);
  --green: #45ef86;
  --green-soft: rgba(69, 239, 134, 0.18);
  --brand-yellow: #f5c200;
  --brand-yellow-bright: #fff0a0;
  --brand-yellow-glow: rgba(255, 240, 160, 0.72);
  --yellow: #ffe04d;
  --danger: #ff6b6b;
  --guide-dim-opacity: 0.60;
  --guide-dim-blur: 1.2px;
  --capture-check-duration: 960ms;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: Pretendard, "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #050806;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.hidden {
  display: none !important;
}

.orbit-demo {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orbit-stage {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(8px, 1.3vh, 13px);
  padding:
    calc(14px + var(--safe-top))
    clamp(18px, 5vw, 28px)
    calc(16px + var(--safe-bottom));
  overflow: hidden;
}

.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%, transparent 70%, rgba(0, 0, 0, 0.44)),
    radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.50) 100%);
}

.orbit-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 44%, black 0 24%, transparent 60%);
}

.orbit-topbar {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: clamp(18px, 5vw, 28px);
  right: clamp(18px, 5vw, 28px);
  width: auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: start;
}

.orbit-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(4, 7, 6, 0.52);
  color: rgba(246, 251, 247, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.orbit-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.orbit-control {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: var(--text);
  background: rgba(5, 8, 6, 0.56);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.orbit-control:active {
  transform: scale(0.94);
}

.orbit-control.is-retry svg {
  transform: rotate(-40deg);
}

.orbit-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.orbit-copy-top {
  width: 100%;
  display: flex;
  justify-content: center;
}

.orbit-copy-top p {
  min-width: 96px;
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(69, 239, 134, 0.24);
  background: rgba(69, 239, 134, 0.12);
  color: rgba(235, 255, 241, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.orbit-camera {
  position: relative;
  align-self: center;
  width: min(84vw, 360px, 53dvh);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: #020403;
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.orbit-camera::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 9;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.44),
    0 0 22px rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.orbit-camera::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(0, 0, 0, var(--guide-dim-opacity));
  opacity: 0;
  transition: opacity 220ms ease;
}

.orbit-camera.is-guide-visible::after,
.orbit-camera.is-capture-confirmed::after {
  backdrop-filter: blur(var(--guide-dim-blur));
  opacity: 1;
}

.orbit-camera video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1) scale(1.1);
  transform-origin: center;
  background: #020403;
}

.camera-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.camera-glass {
  position: absolute;
  inset: 4px;
  z-index: 11;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
}

.orbit-guide-asset {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: none;
  filter:
    brightness(2.35)
    contrast(1.32)
    drop-shadow(0 0 11px rgba(255, 255, 255, 0.52))
    drop-shadow(0 0 2px rgba(0, 0, 0, 0.55));
}

.orbit-guide-asset.is-visible {
  opacity: 1;
  visibility: visible;
}

.orbit-guide-asset.is-confirmation-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.orbit-guide {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ring-progress,
.ring-hold-progress,
.ring-alert,
.capture-check,
.torus-shadow,
.torus-back,
.torus-front,
.torus-front-belly,
.guide-trail,
.guide-flow,
.guide-flow-cut,
.guide-dots,
.avatar-mouth {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ring-progress {
  stroke: var(--green);
  stroke-width: 8.8;
  filter:
    drop-shadow(0 0 15px rgba(69, 239, 134, 0.96))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
  transition: none;
}

.ring-hold-progress {
  opacity: 0;
  stroke: var(--brand-yellow-bright);
  stroke-width: 8.2;
  filter:
    drop-shadow(0 0 14px var(--brand-yellow-glow))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
  transition: none;
}

.ring-alert {
  opacity: 0;
  stroke: var(--danger);
  stroke-width: 8.0;
  stroke-dasharray: 2.8 3.8;
  stroke-dashoffset: 0;
  pointer-events: none;
  filter:
    drop-shadow(0 0 14px rgba(255, 43, 85, 0.82))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
}

.orbit-camera.is-action-alert .ring-alert {
  animation: orbitAlertPulse 820ms ease-in-out infinite;
}

.capture-check {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5.2;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.34))
    drop-shadow(0 0 14px rgba(69, 239, 134, 0.42));
}

.orbit-camera.is-capture-confirmed .capture-check {
  opacity: 1;
  transform: none;
}

.motion-guide {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: none;
}

.orbit-camera.is-guide-visible .motion-guide {
  opacity: 1;
}

.orbit-camera.is-capture-confirmed .motion-guide,
.orbit-camera.is-capture-confirmed .ring-hold-progress,
.orbit-camera.is-guide-visible.is-guide-asset-active .motion-guide,
.orbit-camera.is-guide-asset-active .capture-check {
  opacity: 0 !important;
  transition: none;
}

.torus-shadow {
  opacity: 0.34;
  stroke: rgba(0, 0, 0, 0.82);
  stroke-width: 7.2;
  filter: blur(1.8px);
}

.torus-back-wide {
  opacity: 0.16;
  stroke: rgba(255, 255, 255, 0.70);
  stroke-width: 7.4;
  filter: blur(0.55px);
}

.torus-back {
  opacity: 0.52;
  stroke: url(#torusBackGradient);
  stroke-width: 2.65;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.10));
}

.torus-front-wide {
  opacity: 0.10;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 6.2;
  filter: none;
}

.torus-front-belly {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 7.6;
  filter: none;
}

.torus-front {
  opacity: 0.92;
  stroke: url(#torusFrontGradient);
  stroke-width: 5.0;
  filter: none;
}

.guide-rail {
  opacity: 0.38;
}

.guide-trail {
  opacity: 0;
  stroke: url(#guideFlowGradient);
  stroke-width: 1.45;
  stroke-dasharray: 2.1 2.35;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.14));
}

.guide-flow {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.guide-flow-cut {
  stroke: #000;
  stroke-width: 3.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-dots {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.50));
  pointer-events: none;
}

.guide-dots path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.46;
  stroke-dasharray: 5.8 7.2;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: none;
  will-change: opacity;
}

.avatar-halo {
  fill: transparent;
  opacity: 0;
}

.guide-avatar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0.98;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.18));
}

.guide-avatar.is-left {
  animation: none;
}

.guide-avatar.is-right {
  animation: none;
}

.avatar-head {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.90);
  stroke-width: 1.72;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.avatar-front-features,
.avatar-eye-dot,
.avatar-mouth {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.avatar-front-features {
  opacity: 1;
}

.avatar-eye-dot {
  fill: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.22));
}

.avatar-mouth {
  fill: rgba(255, 255, 255, 0.96);
  stroke: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.22));
}

.orbit-demo[data-visual-performance="balanced"] .guide-trail,
.orbit-demo[data-visual-performance="balanced"] .guide-dots,
.orbit-demo[data-visual-performance="balanced"] .guide-avatar,
.orbit-demo[data-visual-performance="balanced"] .avatar-eye-dot,
.orbit-demo[data-visual-performance="balanced"] .avatar-mouth,
.orbit-demo[data-visual-performance="low"] .guide-avatar,
.orbit-demo[data-visual-performance="low"] .avatar-eye-dot,
.orbit-demo[data-visual-performance="low"] .avatar-mouth {
  filter: none;
}

.orbit-demo[data-visual-performance="balanced"] .torus-shadow,
.orbit-demo[data-visual-performance="balanced"] .torus-back-wide,
.orbit-demo[data-visual-performance="low"] .torus-shadow,
.orbit-demo[data-visual-performance="low"] .torus-back-wide,
.orbit-demo[data-visual-performance="low"] .guide-trail,
.orbit-demo[data-visual-performance="low"] .guide-flow,
.orbit-demo[data-visual-performance="low"] .guide-dots {
  display: none;
}

.orbit-demo[data-visual-performance="balanced"] .torus-back,
.orbit-demo[data-visual-performance="low"] .torus-back {
  filter: none;
}

.orbit-demo[data-visual-performance="low"] .torus-front {
  stroke-width: 4.2;
}

.guide-avatar.is-left .avatar-mouth {
  transform-origin: 28% 50%;
}

.guide-avatar.is-right .avatar-mouth {
  transform-origin: 72% 50%;
}

.camera-status {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 12;
  max-width: calc(100% - 30px);
  transform: translateX(-50%);
  pointer-events: none;
}

.debug-status {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 77, 0.32);
  background: rgba(50, 38, 0, 0.58);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.orbit-instruction {
  width: min(100%, 390px);
  min-height: 104px;
  margin-top: clamp(8px, 1.35vh, 14px);
  display: grid;
  align-content: start;
  text-align: center;
}

.orbit-instruction h1,
.orbit-instruction p {
  margin: 0;
}

.orbit-instruction h1 {
  min-height: 2.3em;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  transform-origin: center;
}

.orbit-instruction p {
  min-height: 2.84em;
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(13px, 3.55vw, 15px);
  line-height: 1.42;
  font-weight: 750;
  text-wrap: balance;
}

.orbit-instruction.is-pop h1 {
  animation: promptPop 420ms cubic-bezier(0.2, 0.9, 0.25, 1.25);
}

.orbit-meter {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: end;
}

.orbit-meter > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(5, 8, 6, 0.50);
  backdrop-filter: blur(16px);
}

.orbit-meter > div:last-child {
  text-align: right;
}

.meter-label {
  display: block;
  margin-bottom: 2px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 850;
}

.orbit-meter strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.orbit-debug-panel {
  width: min(100%, 390px);
  max-height: min(28dvh, 220px);
  overflow: auto;
  padding: 10px 11px;
  border: 1px solid rgba(255, 224, 77, 0.24);
  border-radius: 10px;
  background: rgba(5, 8, 6, 0.78);
  color: rgba(246, 251, 247, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

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

.debug-panel-head span {
  color: rgba(255, 224, 77, 0.84);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.debug-panel-head strong {
  min-width: 0;
  color: var(--danger);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
  word-break: break-word;
}

.orbit-debug-panel.is-passing .debug-panel-head strong {
  color: var(--green);
}

.debug-gate-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 9px;
  margin: 0;
}

.debug-gate-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
}

.debug-gate-row dt,
.debug-gate-row dd {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.25;
}

.debug-gate-row dt {
  color: rgba(246, 251, 247, 0.48);
  font-weight: 800;
}

.debug-gate-row dd {
  color: rgba(246, 251, 247, 0.90);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.loading-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(5, 8, 6, 0.84);
  color: var(--text);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-layer.hidden {
  display: grid !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--green);
  animation: spin 800ms linear infinite;
}

.loading-layer span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.result-panel {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 40;
  width: min(calc(100% - 28px), 430px);
  max-height: calc(100dvh - 28px - var(--safe-top));
  overflow: auto;
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(8, 13, 11, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(20px);
}

.result-head p,
.result-head h2 {
  margin: 0;
}

.result-head p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.result-head h2 {
  margin-top: 3px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.2;
}

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

.result-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.result-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-thumb span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 850;
}

.result-quality {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
}

.quality-row {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 10px;
  align-items: start;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.quality-row dt,
.quality-row dd {
  margin: 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
}

.quality-row dt {
  color: var(--quiet);
}

.quality-row dd {
  display: grid;
  gap: 3px;
  color: var(--text);
  text-align: right;
}

.quality-row dd span:last-child {
  color: rgba(69, 239, 134, 0.86);
}

.result-retry {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #031007;
  font-weight: 900;
  cursor: pointer;
}

.orbit-demo[data-quality-blur="true"] .ring-progress {
  stroke: var(--yellow);
}

.ring-progress[data-tone="success"] {
  stroke: var(--green);
  filter:
    drop-shadow(0 0 15px rgba(69, 239, 134, 0.96))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
}

.ring-progress[data-tone="danger"] {
  stroke: var(--danger);
  filter:
    drop-shadow(0 0 15px rgba(255, 43, 85, 0.86))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.92));
}

.ring-hold-progress[data-tone="success"] {
  stroke: var(--brand-yellow-bright);
}

.orbit-demo[data-progress-tone="success"] #orbitProgressText {
  color: var(--green);
}

.orbit-demo[data-progress-tone="danger"] #orbitProgressText {
  color: var(--danger);
}

@keyframes orbitAlertPulse {
  0%,
  100% {
    opacity: 0.62;
  }
  45% {
    opacity: 0.98;
  }
}

.orbit-demo[data-phase="failed"] .ring-progress {
  stroke: var(--danger);
}

.orbit-demo[data-phase="failed"] .ring-hold-progress {
  stroke: var(--danger);
}

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

@keyframes promptPop {
  0% {
    transform: translateY(6px) scale(0.97);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-dots path {
    animation: none;
  }

  .orbit-camera.is-action-alert .ring-alert {
    animation: none;
    opacity: 0.92;
  }

}

@media (max-height: 700px) {
  .orbit-stage {
    grid-template-rows: auto auto auto auto;
    gap: 8px;
  }

  .orbit-camera {
    width: min(76vw, 310px, 46dvh);
  }

  .orbit-meter > div {
    padding: 9px 11px;
  }

  .orbit-debug-panel {
    max-height: 120px;
    padding: 8px 9px;
  }

  .debug-gate-rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .orbit-stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .orbit-camera {
    width: min(84vw, 310px, 52dvh);
  }

  .debug-status {
    font-size: 9px;
  }

  .debug-gate-rows {
    grid-template-columns: 1fr;
  }
}
