:root {
  color-scheme:dark;
  --ink:#08151c;
  --cyan:#71dce9;
  --lime:#c8f078;
  --muted:#9db6bf;
  --line:rgba(167,212,222,.22);
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--ink);
  color:#f1f8fa
}
button {
  font:inherit;
  color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation
}
button:focus-visible {
  outline:3px solid var(--lime);
  outline-offset:3px
}
button:disabled {
  opacity:.42;
  cursor:default
}
button:active:not(:disabled) {
  transform:translateY(1px);
  filter:brightness(1.2)
}
#demo {
  position:relative;
  height:100%;
  height:100dvh;
  isolation:isolate;
  overflow:hidden
}
#camera,#world,.vignette {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}
#camera {
  object-fit:cover;
  display:none
}
#camera.live {
  display:block
}
#world {
  touch-action:none
}
.vignette {
  pointer-events:none;
  background:linear-gradient(180deg,rgba(3,14,20,.55),transparent 35%,transparent 55%,rgba(3,14,20,.7));
  z-index:1
}
.topbar {
  position:absolute;
  z-index:4;
  top:calc(env(safe-area-inset-top) + 18px);
  left:20px;
  right:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none
}
.calibration {
  position:relative;
  pointer-events:auto;
  flex-shrink:0;
  margin-left:10px
}
.calibration summary {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-height:44px;
  min-width:106px;
  padding:4px 10px;
  background:rgba(8,21,28,.92);
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--cyan);
  font-size:10px;
  cursor:pointer;
  touch-action:manipulation
}
.calibration summary::-webkit-details-marker {
  display:none
}
.calibration summary:focus-visible {
  outline:3px solid var(--lime);
  outline-offset:3px
}
#fov-summary {
  font-size:14px;
  font-weight:650;
  font-variant-numeric:tabular-nums
}
.calibration-panel {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:260px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#08151c;
  box-shadow:0 8px 24px rgba(0,0,0,.35)
}
.calibration-panel p {
  margin:0 0 8px;
  font-size:11px;
  color:var(--cyan)
}
.fov-controls {
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
  gap:8px;
  text-align:center
}
.fov-controls button {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#112630;
  font-size:22px
}
#fov-value {
  font-size:20px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.calibration-panel small {
  display:block;
  margin-top:8px;
  font-size:10px;
  color:var(--muted)
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:2.2px;
  color:var(--cyan);
  margin:0 0 7px
}
h1 {
  font-size:15px;
  font-weight:650;
  letter-spacing:1.8px;
  margin:0
}
.live-dot {
  display:inline-block;
  width:5px;
  height:5px;
  background:var(--cyan);
  border-radius:50%;
  margin-left:7px
}
.prototype {
  font-size:8px;
  letter-spacing:1.5px;
  line-height:1.8;
  border-left:1px solid var(--line);
  padding-left:12px;
  color:var(--muted)
}
.telemetry {
  position:absolute;
  top:calc(env(safe-area-inset-top) + 82px);
  left:20px;
  right:20px;
  z-index:2;
  max-width:420px;
  background:rgba(8,21,28,.86);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  backdrop-filter:blur(12px);
  pointer-events:none;
  font-size:11px
}
.telemetry-head {
  display:flex;
  justify-content:space-between;
  color:var(--cyan);
  font-size:9px;
  font-weight:650;
  letter-spacing:1px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line)
}
.target-row {
  display:grid;
  grid-template-columns:22px 1fr auto;
  gap:6px;
  align-items:center;
  min-height:25px;
  color:#cbdee4;
  font-variant-numeric:tabular-nums
}
.target-row strong {
  color:var(--cyan)
}
.target-row.selected strong {
  color:var(--lime)
}
.target-row.destroyed {
  color:#86999f
}
.target-row small {
  font-size:9px;
  letter-spacing:.45px
}
.selection-line {
  display:flex;
  justify-content:space-between;
  padding-top:9px;
  border-top:1px solid var(--line);
  font-size:9px;
  letter-spacing:.8px;
  color:var(--muted)
}
.selection-line b {
  color:var(--lime);
  margin-left:5px;
  font-weight:600
}
.reticle {
  position:absolute;
  z-index:2;
  top:50%;
  left:50%;
  width:30px;
  height:30px;
  transform:translate(-50%,-50%);
  pointer-events:none;
  color:white;
  filter:drop-shadow(0 1px 3px #000)
}
.reticle:before,.reticle:after,.reticle i:before,.reticle i:after {
  position:absolute;
  content:"";
  background:currentColor
}
.reticle:before {
  height:1px;
  width:8px;
  left:0;
  top:14px
}
.reticle:after {
  height:1px;
  width:8px;
  right:0;
  top:14px
}
.reticle i:before {
  width:1px;
  height:8px;
  left:14px;
  top:0
}
.reticle i:after {
  width:1px;
  height:8px;
  left:14px;
  bottom:0
}
.reticle b {
  position:absolute;
  top:14px;
  left:14px;
  width:2px;
  height:2px;
  background:white
}
.reticle span {
  position:absolute;
  top:40px;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  letter-spacing:1.8px;
  font-size:8px;
  opacity:.75
}
#feedback {
  position:absolute;
  z-index:3;
  top:57%;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:var(--lime);
  padding:8px 13px;
  background:rgba(8,21,28,.85);
  border:1px solid var(--line);
  border-radius:6px;
  opacity:0;
  pointer-events:none
}
#feedback.visible {
  opacity:1
}
#feedback.miss {
  color:#f7bb88
}
.console {
  position:absolute;
  z-index:3;
  bottom:0;
  left:0;
  right:0;
  max-width:520px;
  margin:auto;
  padding:12px 20px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(0deg,rgba(5,16,23,.98) 60%,rgba(5,16,23,.82));
  border-top:1px solid var(--line)
}
.source-line,.heading-line {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:9px;
  letter-spacing:.8px;
  color:var(--cyan)
}
.heading-line {
  margin-top:4px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
#look-mode {
  border:1px solid var(--line);
  border-radius:5px;
  background:transparent;
  font-size:9px;
  padding:0 10px;
  min-height:44px;
  min-width:90px
}
#notice {
  font-size:10px;
  color:#b5cad2;
  line-height:1.45;
  min-height:29px;
  margin:4px 0 10px
}
.target-controls {
  display:grid;
  grid-template-columns:1fr .7fr 1fr;
  gap:8px
}
.target-controls button,.action-controls button {
  min-height:48px;
  border:1px solid var(--line);
  background:#112630;
  border-radius:9px;
  font-size:12px;
  font-weight:600
}
.action-controls {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:8px;
  margin-top:8px
}
.action-controls .fire {
  background:var(--lime);
  border-color:var(--lime);
  color:#142316;
  letter-spacing:2px;
  font-size:15px
}
.fire span {
  display:block;
  font-size:7px;
  font-weight:700;
  letter-spacing:1.2px;
  margin-top:3px
}
.boundary {
  text-align:center;
  font-size:9px;
  color:#8ba4ad;
  letter-spacing:.25px;
  margin:10px 0 0
}
.welcome {
  position:absolute;
  z-index:5;
  inset:0;
  overflow-y:auto;
  background:radial-gradient(ellipse at 80% 20%,#193e49 0,transparent 55%),linear-gradient(160deg,#102a35,#07131b 70%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:calc(22px + env(safe-area-inset-top)) 26px calc(22px + env(safe-area-inset-bottom))
}
.welcome[hidden] {
  display:none
}
.welcome-card {
  max-width:360px;
  width:100%
}
.welcome-symbol {
  font-size:64px;
  font-weight:200;
  color:var(--cyan);
  margin-bottom:28px;
  line-height:1
}
.welcome h2 {
  font-size:45px;
  font-weight:500;
  line-height:1.12;
  letter-spacing:-2px;
  margin:18px 0
}
.intro {
  font-size:14px;
  line-height:1.8;
  color:#adc6cf
}
.legend {
  display:flex;
  gap:22px;
  font-size:10px;
  margin:26px 0 32px;
  color:#c9dce3
}
.legend i {
  display:inline-block;
  width:8px;
  height:8px;
  border:1px solid;
  margin-right:7px
}
.white {
  color:white
}
.lime {
  color:var(--lime);
  transform:rotate(45deg)
}
.primary,.secondary {
  width:100%;
  min-height:54px;
  border-radius:10px;
  font-size:14px;
  font-weight:650
}
.primary {
  background:var(--lime);
  border:0;
  color:#17281e;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px
}
.primary span {
  font-size:22px
}
.secondary {
  border:1px solid var(--line);
  background:transparent;
  margin-top:10px;
  color:#d5e7eb
}
.permission-note {
  font-size:10px;
  line-height:1.7;
  color:#8daab6;
  margin:18px 0
}
@media(min-width:760px) {
  .topbar {
    left:32px;
    right:32px;
    top:28px
  }
  h1 {
    font-size:19px
  }
  .telemetry {
    left:32px;
    top:100px;
    width:300px
  }
  .console {
    bottom:18px;
    border:1px solid var(--line);
    border-radius:16px;
    padding-bottom:14px
  }
  .welcome-card {
    max-width:380px
  }
  .welcome h2 {
    font-size:54px
  }
}
@media(max-height:540px) and (orientation:landscape) {
  .topbar {
    top:calc(env(safe-area-inset-top) + 10px);
    left:calc(env(safe-area-inset-left) + 14px);
    right:calc(env(safe-area-inset-right) + 14px)
  }
  h1 {
    font-size:12px
  }
  .telemetry {
    top:60px;
    left:calc(env(safe-area-inset-left) + 14px);
    right:auto;
    width:210px;
    padding:8px 10px
  }
  .console {
    left:auto;
    right:calc(env(safe-area-inset-right) + 12px);
    bottom:10px;
    max-width:none;
    width:260px;
    border:1px solid var(--line);
    border-radius:12px;
    padding:9px 10px
  }
  .prototype {
    display:none
  }
  .source-line {
    font-size:8px
  }
  #notice {
    font-size:9px;
    min-height:26px
  }
  .target-controls button,.action-controls button {
    font-size:10px;
    min-height:44px
  }
  .boundary {
    font-size:8px
  }
  .welcome {
    padding:20px
  }
  .welcome-card {
    max-width:560px;
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:26px
  }
  .welcome-symbol {
    display:none
  }
  .welcome .eyebrow,.welcome h2,.welcome .intro,.legend {
    grid-column:1
  }
  .welcome h2 {
    font-size:35px;
    margin:10px 0
  }
  .legend {
    margin:12px 0
  }
  .welcome .primary {
    grid-column:2;
    grid-row:2;
    align-self:center
  }
  .welcome .secondary {
    grid-column:2;
    grid-row:3
  }
  .welcome .permission-note {
    grid-column:2;
    grid-row:4;
    margin:8px 0
  }
  .welcome .boundary {
    grid-column:1 / -1
  }
}
