:root {
  --canvas: #000000;
  --surface: #10171b;
  --surface-raised: #172329;
  --surface-strong: #20333a;
  --line: #37535d;
  --line-soft: rgba(99, 225, 224, 0.14);
  --text: #f7ffff;
  --muted: #b9cbcd;
  --cyan: #63e1e0;
  --lime: #c5ff59;
  --amber: #ffd35a;
  --danger: #ff846f;
  --focus: #e8ff75;
  --focus-shadow: rgba(232, 255, 117, 0.4);
  --curve-on: cubic-bezier(0.6, 0, 0.4, 1);
  --curve-press: cubic-bezier(0.68, 0, 0.29, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--text);
}

body,
button {
  font-family: "Avenir Next", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button {
  color: inherit;
}

.app-root {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 8px;
  overflow: hidden;
  background: #000000;
}

.app-root::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: 0.22;
}

.screen {
  position: relative;
  z-index: 1;
  width: 584px;
  height: 584px;
}

.screen[hidden] {
  display: none;
}

.static-surface,
.interactive {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.instrument-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 9px 14px;
  border-radius: 18px 18px 6px 6px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(99, 225, 224, 0.22);
  font-family: "Avenir Next Condensed", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.eyebrow,
.brand-name,
.section-code,
.response-kicker,
.connection-status,
.response-status,
.gesture-hint,
.metric-card span,
.posture-state,
.threshold-track span,
.rail-action {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.brand-name {
  color: var(--text);
  font-family: "Avenir Next Condensed", "SF Pro Display", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.connection-status,
.response-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.connection-status[data-source="glasses"] {
  color: var(--amber);
  background: rgba(255, 211, 90, 0.08);
}

.connection-status[data-source="ble"] {
  color: var(--cyan);
  background: rgba(99, 225, 224, 0.08);
}

.connection-status[data-source="idle"] {
  color: var(--muted);
}

.connection-status[data-source="dual"],
.connection-status[data-source="demo"],
.response-status.complete {
  color: var(--lime);
  background: rgba(197, 255, 89, 0.08);
}

.status-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.monitor-stack {
  display: grid;
  grid-template-rows: 190px 76px 48px 88px;
  gap: 10px;
  margin-top: 10px;
}

.posture-panel {
  position: relative;
  overflow: hidden;
  padding: 16px 20px;
  border-radius: 6px 28px 6px 6px;
  background:
    radial-gradient(circle at 88% 72%, rgba(99, 225, 224, 0.12), transparent 31%),
    var(--surface);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.posture-panel::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -56px;
  width: 132px;
  height: 132px;
  border: 18px solid rgba(99, 225, 224, 0.07);
  border-radius: 50%;
}

.posture-panel[data-status="caution"] {
  border-color: rgba(255, 211, 90, 0.75);
}

.posture-panel[data-status="bad"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(255, 132, 111, 0.12), 0 0 22px rgba(255, 132, 111, 0.18);
}

.posture-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-code,
.response-kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.posture-state {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(185, 203, 205, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.posture-state.good { color: var(--lime); background: rgba(197, 255, 89, 0.1); }
.posture-state.caution { color: var(--amber); background: rgba(255, 211, 90, 0.1); }
.posture-state.bad { color: var(--danger); background: rgba(255, 132, 111, 0.1); }

.angle-readout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  height: 93px;
  margin-top: 2px;
}

.angle-readout strong {
  font-family: "Avenir Next Condensed", "SF Pro Display", system-ui, sans-serif;
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
}

.angle-readout span {
  margin: 11px 0 0 8px;
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
}

.coach-cue {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.sensor-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 6px 16px 6px 6px;
}

.metric-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.metric-card strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--text);
  font-family: "Avenir Next Condensed", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: pre-line;
}

.threshold-track {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(197, 255, 89, 0.1) 0 40%, rgba(255, 211, 90, 0.1) 40% 75%, rgba(255, 132, 111, 0.1) 75%),
    var(--surface);
}

.threshold-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 12px currentColor;
  transition: width 180ms ease, background-color 180ms ease;
}

.posture-panel[data-status="caution"] ~ .threshold-track .threshold-fill { background: var(--amber); }
.posture-panel[data-status="bad"] ~ .threshold-track .threshold-fill { background: var(--danger); }

.threshold-track span {
  position: absolute;
  top: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.threshold-good { left: 14px; }
.threshold-bad { right: 14px; }

.action-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.monitor-actions {
  grid-template-columns: repeat(4, 1fr);
}

.monitor-actions .rail-action {
  padding: 0 10px;
}

.monitor-actions .rail-action b {
  font-size: 13px;
  letter-spacing: 0.045em;
}

.rail-action {
  min-height: 88px;
  padding: 0 16px;
  border: 1px solid var(--cyan);
  border-radius: 6px 20px 20px 20px;
  background: var(--surface-raised);
  cursor: pointer;
  transition:
    transform 475ms var(--curve-on),
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.rail-action .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  opacity: 0.82;
}

.rail-action small {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
}

.rail-action b {
  font-family: "Avenir Next Condensed", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.photo-stack {
  display: grid;
  grid-template-rows: 224px 112px 88px;
  gap: 10px;
  margin-top: 10px;
}

.photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px 28px 6px 6px;
  background:
    linear-gradient(135deg, rgba(99, 225, 224, 0.09), transparent 42%),
    var(--surface);
}

.photo-placeholder {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.photo-placeholder strong {
  color: var(--text);
  font-size: 18px;
}

.photo-glyph {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--cyan);
  border-radius: 18px;
  color: var(--cyan);
  font-size: 32px;
}

#photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05090a;
}

#photo-preview[hidden],
.photo-placeholder[hidden],
.photo-caption[hidden] {
  display: none;
}

.photo-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(99, 225, 224, 0.36);
  border-radius: 6px 14px 6px 6px;
  background: rgba(16, 23, 27, 0.92);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.photo-caption span:last-child {
  color: var(--cyan);
}

.photo-instructions {
  padding: 14px 18px;
  border-radius: 6px 18px 6px 6px;
}

.photo-instructions p:last-child {
  margin-top: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.photo-instructions b {
  color: var(--cyan);
}

.photo-actions .rail-action {
  padding: 0 10px;
}

.photo-actions .rail-action b {
  font-size: 13px;
  letter-spacing: 0.045em;
}

.sensor-link-stack {
  display: grid;
  grid-template-rows: 138px 76px 96px 88px;
  gap: 10px;
  margin-top: 10px;
}

.sensor-link-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 6px 28px 6px 6px;
  background:
    radial-gradient(circle at 88% 30%, rgba(99, 225, 224, 0.14), transparent 34%),
    var(--surface);
}

.sensor-link-hero strong {
  margin-top: 8px;
  color: var(--text);
  font-family: "Avenir Next Condensed", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
}

.sensor-link-hero p:last-child {
  max-width: 520px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.sensor-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sensor-link-note {
  padding: 13px 18px;
  border-radius: 6px 18px 6px 6px;
}

.sensor-link-note p:last-child {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.32;
}

.sensor-link-note b {
  color: var(--cyan);
}

.sensor-actions .rail-action {
  padding: 0 10px;
}

.sensor-actions .rail-action b {
  font-size: 13px;
  letter-spacing: 0.045em;
}

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

.interactive:focus,
.coach-panel:focus {
  outline: 0;
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--focus), 0 0 22px var(--focus-shadow);
  transform: scale(0.93);
}

.interactive:focus .content {
  opacity: 1;
}

.interactive:active {
  transform: scale(0.9);
  transition-duration: 100ms;
  transition-timing-function: var(--curve-press);
}

.rail-action:focus {
  background: var(--surface-strong);
}

.rail-action[disabled] {
  color: var(--muted);
  border-color: var(--line);
  opacity: 0.58;
}

.gesture-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 32px;
  color: #879a9d;
  font-size: 9px;
  font-weight: 800;
}

.gesture-hint i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
}

.summary-stack {
  display: grid;
  grid-template-rows: 156px 76px 142px 88px;
  gap: 10px;
  margin-top: 10px;
}

.summary-hero {
  padding: 16px 20px;
  border-radius: 6px 28px 6px 6px;
  background:
    radial-gradient(circle at 86% 50%, rgba(197, 255, 89, 0.13), transparent 35%),
    var(--surface);
}

.summary-hero div {
  display: flex;
  align-items: flex-start;
  height: 88px;
}

.summary-hero strong {
  font-family: "Avenir Next Condensed", system-ui, sans-serif;
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.summary-hero div span {
  margin: 10px 0 0 8px;
  color: var(--lime);
  font-size: 25px;
  font-weight: 900;
}

.summary-hero > p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.coach-panel {
  position: relative;
  padding: 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 6px 22px 6px 6px;
  scrollbar-width: none;
  transition: transform 475ms var(--curve-on), border-color 300ms ease, box-shadow 300ms ease;
}

.coach-panel::-webkit-scrollbar { display: none; }

.coach-panel::after {
  content: "";
  position: sticky;
  bottom: -16px;
  display: block;
  width: calc(100% + 36px);
  height: 32px;
  margin: -20px -18px -16px;
  pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent);
}

.response-kicker {
  margin-bottom: 10px;
}

#coach-text {
  margin: 0;
  padding-bottom: 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.toast {
  position: absolute;
  z-index: 10;
  top: 24px;
  left: 50%;
  width: max-content;
  max-width: 536px;
  min-height: 52px;
  padding: 14px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--focus);
  border-radius: 24px;
  background: #202a22;
  color: var(--text);
  box-shadow: 0 0 24px rgba(232, 255, 117, 0.24);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.presentation-hud {
  --hud-signal: var(--cyan);
  position: relative;
  z-index: 2;
  width: 584px;
  height: 584px;
  overflow: hidden;
  background: #000000;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(99, 225, 224, 0.24);
}

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

.presentation-hud[data-status="good"] { --hud-signal: var(--lime); }
.presentation-hud[data-status="caution"] { --hud-signal: var(--amber); }
.presentation-hud[data-status="bad"] { --hud-signal: var(--danger); }
.presentation-hud[data-status="stale"],
.presentation-hud[data-status="fit_check"] { --hud-signal: var(--amber); }

.presentation-hud[data-status="calibrating"] .hud-telemetry,
.presentation-hud[data-status="calibrating"] .hud-sensor-pair {
  visibility: hidden;
}

.camera-feed,
.camera-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.camera-feed {
  z-index: 0;
  object-fit: cover;
  background: #000000;
}

.camera-feed.mirrored {
  transform: scaleX(-1);
}

.camera-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 54% 48%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34) 88%),
    rgba(0, 13, 17, 0.16);
  pointer-events: none;
}

.camera-indicator {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.camera-indicator[hidden] {
  display: none;
}

.camera-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 132, 111, 0.9);
}

.camera-gate {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 440px;
  min-height: 190px;
  padding: 24px;
  transform: translate(-50%, -50%);
  border-radius: 8px 24px 8px 8px;
  background: rgba(16, 23, 27, 0.96);
  text-align: center;
  text-shadow: none;
}

.camera-gate[hidden] {
  display: none;
}

.camera-gate p {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.camera-gate strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.camera-action {
  width: 100%;
  height: 88px;
  margin-top: 18px;
  border: 1px solid var(--cyan);
  border-radius: 6px 18px 6px 6px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.camera-action[hidden] {
  display: none;
}

body.presentation-mode .app-root::before {
  display: none;
}

body.presentation-mode .toast {
  display: none !important;
}

.hud-figure {
  position: absolute;
  z-index: 2;
  top: 78px;
  left: 18px;
  width: 348px;
  height: 432px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(99, 225, 224, 0.34));
}

.hud-anatomy-avatar,
.hud-anatomy-baseline {
  position: absolute;
  z-index: 2;
  top: 180px;
  left: 40px;
  width: 360px;
  height: 360px;
  overflow: hidden;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hud-anatomy-baseline {
  object-fit: contain;
  opacity: 0;
}

.hud-anatomy-avatar canvas,
.hud-anatomy-avatar svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.lottie-avatar-ready .hud-anatomy-avatar {
  opacity: 0.94;
}

body.lottie-avatar-ready .hud-anatomy-baseline {
  opacity: 0.2;
}

body.lottie-avatar-ready .hud-posture-figure {
  opacity: 0;
}

.hud-reference,
.hud-reference-cap,
.hud-reference-node {
  stroke: rgba(247, 255, 255, 0.86);
  stroke-width: 2;
}

.hud-reference-node {
  fill: #000000;
}

.hud-angle-arc {
  stroke: var(--hud-signal);
  stroke-width: 2;
  transition: stroke 180ms ease;
}

.hud-angle-node {
  fill: #000000;
  stroke: var(--hud-signal);
  stroke-width: 3;
  transition: stroke 180ms ease;
}

.hud-head,
.hud-face,
.hud-neck,
.hud-shoulder {
  stroke: var(--cyan);
  stroke-width: 2.2;
}

.hud-spine {
  stroke: rgba(247, 255, 255, 0.72);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
}

.hud-spine-dot {
  fill: var(--cyan);
  stroke: none;
}

.hud-posture-figure {
  --hud-lean: 0deg;
  transform: rotate(var(--hud-lean));
  transform-box: fill-box;
  transform-origin: 49% 88%;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hud-readout {
  position: absolute;
  z-index: 2;
  top: 185px;
  left: 327px;
  width: 230px;
}

.hud-angle-row {
  display: flex;
  align-items: flex-start;
  height: 88px;
}

.hud-angle-row strong {
  color: rgba(247, 255, 255, 0.96);
  font-family: "Avenir Next Condensed", "SF Pro Display", system-ui, sans-serif;
  font-size: 76px;
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1;
}

.hud-angle-row span {
  margin: 4px 0 0 7px;
  color: var(--hud-signal);
  font-size: 30px;
  font-weight: 700;
  transition: color 180ms ease;
}

.hud-state,
.hud-cue,
.hud-signature {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hud-state {
  color: var(--hud-signal);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  transition: color 180ms ease;
}

.hud-cue {
  margin-top: 9px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: rgba(247, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hud-telemetry i {
  width: 1px;
  height: 16px;
  background: rgba(247, 255, 255, 0.38);
}

.hud-telemetry strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hud-sensor-pair {
  position: absolute;
  z-index: 2;
  top: 390px;
  left: 327px;
  width: 230px;
  border-top: 1px solid rgba(99, 225, 224, 0.42);
  border-bottom: 1px solid rgba(99, 225, 224, 0.2);
  background: rgba(6, 18, 21, 0.46);
  color: rgba(247, 255, 255, 0.72);
}

.hud-sensor-pair > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
}

.hud-sensor-pair > div + div {
  border-top: 1px solid rgba(247, 255, 255, 0.12);
}

.hud-sensor-pair span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.hud-sensor-pair strong {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.hud-calibration {
  position: absolute;
  z-index: 3;
  top: 345px;
  left: 327px;
  width: 230px;
  padding: 8px 10px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(99, 225, 224, 0.5);
  border-radius: 4px 12px 4px 4px;
  background: rgba(10, 27, 31, 0.9);
}

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

.hud-calibration-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.hud-calibration-copy strong,
.hud-calibration-copy span {
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.hud-calibration-copy span {
  color: var(--hud-signal);
  font-variant-numeric: tabular-nums;
}

.hud-calibration-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(247, 255, 255, 0.16);
}

.hud-calibration-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--hud-signal);
  box-shadow: 0 0 10px rgba(99, 225, 224, 0.72);
  transition: width 120ms linear;
}

body.head-only-mode .hud-sensor-pair > div:last-child {
  display: none;
}

body.head-only-mode .hud-sensor-pair > div:first-child {
  min-height: 54px;
}

body.head-only-mode .hud-sensor-pair {
  top: 405px;
}

.hud-head-action {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 28px;
  width: 246px;
  min-height: 88px;
  padding: 0 20px;
  border: 1px solid rgba(99, 225, 224, 0.72);
  border-radius: 8px 24px 8px 8px;
  background: rgba(10, 27, 31, 0.94);
  color: var(--text);
  box-shadow: 0 0 20px rgba(99, 225, 224, 0.14);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    border-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    box-shadow 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

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

.hud-head-action .content {
  opacity: 0.8;
}

.hud-head-action:focus-visible {
  outline: none;
  transform: scale(0.9091);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(99, 225, 224, 0.44);
}

.hud-head-action:focus-visible .content {
  opacity: 1;
}

.hud-head-action:active {
  transform: scale(0.94);
}

.hud-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(99, 225, 224, 0.75);
}

.hud-correction-arrow {
  position: absolute;
  z-index: 2;
  top: 136px;
  right: 44px;
  width: 72px;
  height: 142px;
  opacity: 0.24;
  transform: rotate(-9deg) translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hud-correction-arrow[data-active="true"] {
  opacity: 1;
  transform: rotate(-9deg) translateY(0);
}

.hud-correction-arrow span {
  position: absolute;
  top: 18px;
  left: 34px;
  width: 3px;
  height: 118px;
  border-radius: 3px;
  background: linear-gradient(to top, transparent, var(--hud-signal));
  box-shadow: 0 0 9px color-mix(in srgb, var(--hud-signal) 58%, transparent);
}

.hud-correction-arrow i {
  position: absolute;
  top: 16px;
  left: 23px;
  width: 24px;
  height: 24px;
  border-top: 4px solid var(--hud-signal);
  border-left: 4px solid var(--hud-signal);
  transform: rotate(45deg);
}

.hud-signature {
  position: absolute;
  z-index: 2;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(99, 225, 224, 0.52);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.hud-lock {
  position: absolute;
  z-index: 2;
  opacity: 0.66;
}

.hud-lock::before,
.hud-lock::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(99, 225, 224, 0.5);
}

.hud-lock-top {
  top: 72px;
  left: 50%;
}

.hud-lock-top::before { width: 28px; height: 1px; left: -14px; top: 0; }
.hud-lock-top::after { width: 1px; height: 12px; left: 0; top: -11px; }

.hud-lock-left,
.hud-lock-right {
  top: 50%;
}

.hud-lock-left { left: 32px; }
.hud-lock-right { right: 32px; }
.hud-lock-left::before,
.hud-lock-right::before { width: 16px; height: 1px; top: 0; }
.hud-lock-left::after,
.hud-lock-right::after { width: 1px; height: 16px; left: 8px; top: -8px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
