:root {
  color-scheme: dark;
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #f0f6ff;
  background: #06121e;
  --text-muted: #a2b5ca;
  --accent: #a8e2ff;
  --line: #263a50;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 22% 27%, #142d44 0%, transparent 53%),
    radial-gradient(ellipse at 80% 12%, #101e33 0%, transparent 49%),
    #06121e;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible {
  outline: 2px solid #a8e2ff;
  outline-offset: 5px;
}
.topbar {
  max-width: 1400px;
  min-height: 76px;
  margin: 0 auto;
  padding: 18px clamp(22px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-block;
  position: relative;
  width: 19px;
  height: 13px;
  margin-bottom: 5px;
  border: 1.5px solid #99d9ff;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #d6efff55, #6cbeef12);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 5px;
  width: 7px;
  height: 6px;
  border: solid #99d9ff;
  border-width: 0 1px;
  transform: skew(-15deg);
}
.camera-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
  color: #bfcbda;
  background: #07142390;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #75849a;
}
.camera-status[data-state="active"] .status-dot {
  background: #83efcf;
  box-shadow: 0 0 10px #83efcf80;
}
.camera-status[data-state="waiting"] .status-dot,
.camera-status[data-state="loading"] .status-dot { background: #f2dba3; }
.experience {
  max-width: 1200px;
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 12px clamp(22px, 4.4vw, 64px) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.29fr) minmax(320px, 1fr);
  gap: clamp(38px, 7vw, 106px);
  align-items: center;
}
.stage-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}
.stage {
  margin: 0;
  position: relative;
  isolation: isolate;
  width: min(100%, calc((100svh - 126px) * .75), 580px);
  aspect-ratio: 3 / 4;
  border: 1px solid #35516b;
  border-radius: 22px;
  overflow: hidden;
  background: #061a29;
  box-shadow: 0 28px 100px #0006, 0 0 56px #4a9ada10;
}
.stage > * {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.controls { width: min(100%, 420px); }
h1 {
  margin: 0 0 17px;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.12;
}
.intro {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
}
.primary-actions { margin: 29px 0 25px; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 51px;
  border: 1px solid #c2ebff;
  border-radius: 11px;
  padding: 0 22px;
  background: #a8e2ff;
  color: #071a2b;
  font-weight: 650;
  font-size: 15px;
  transition: background .16s ease, box-shadow .16s ease;
}
.primary:hover { background: #c7eeff; box-shadow: 0 0 24px #78c8f227; }
.camera-icon {
  position: relative;
  width: 15px;
  height: 11px;
  margin-right: 5px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.camera-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 1px;
  width: 4px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 1px;
  transform: skewY(-23deg);
}
.privacy { margin: 10px 0 0; color: var(--text-muted); font-size: 12px; }
.control-card {
  padding: 18px 19px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #0b1928c0;
}
.range-heading, .range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.range-heading { gap: 12px; font-size: 14px; }
.range-heading output {
  color: var(--accent);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.range-heading output span { font-size: 13px; margin-left: 3px; }
input[type="range"] {
  display: block;
  --fill: 100%;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 7px 0 1px;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), #304359 var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), #304359 var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 1px solid #dcf4ff;
  border-radius: 50%;
  background: #c8edff;
}
input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid #dcf4ff;
  border-radius: 50%;
  background: #c8edff;
}
input[type="range"]:disabled { cursor: default; opacity: 1; }
.range-labels, .range-help { font-size: 12px; color: var(--text-muted); }
.range-help { margin: 13px 0 0; line-height: 1.55; }
.feedback { color: #f4dbac; font-size: 13px; line-height: 1.65; margin-top: 12px; }
.tracking {
  margin-top: 19px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.camera-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #060d15;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.camera-preview video, .camera-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}
.tracking-copy p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--text-muted); }
.calibration-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.text-button {
  padding: 5px 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--accent);
  font-size: 12px;
  text-align: left;
}
.text-button:hover { text-decoration: underline; }
.text-button:disabled { color: #8497ad; text-decoration: none; }
.text-button.subtle { color: var(--text-muted); }
.noscript { margin: 24px; color: #f4dbac; }
@media (max-width: 780px) {
  .topbar { min-height: 63px; padding: 14px 20px; }
  .experience {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 29px;
    padding: 3px 20px 34px;
  }
  .stage { width: min(100%, 400px, calc((100svh - 186px) * .75)); min-width: min(100%, 250px); border-radius: 16px; }
  .controls { width: min(100%, 460px); }
  h1 { font-size: clamp(40px, 10vw, 58px); margin-bottom: 11px; }
  .intro { font-size: 15px; }
  .primary-actions { margin: 20px 0; }
}
@media (max-height: 650px) and (min-width: 781px) {
  .stage { width: min(100%, 370px); }
  .experience { padding-top: 8px; gap: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}
