:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #bad1dc;
  --cyan: #61e3e3;
  --gold: #ffd879;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #061923;
  color: var(--ink);
  font:
    16px/1.45 ui-rounded,
    system-ui,
    sans-serif;
}
video,
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
video {
  transform: scaleX(-1);
  opacity: 0.42;
}
canvas {
  touch-action: none;
}
.hidden {
  display: none !important;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 20%, #164d5dcc, #061923ee);
}
.card {
  width: min(610px, 100%);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid #7ee9e955;
  border-radius: 30px;
  background: linear-gradient(145deg, #133746f2, #081c27f5);
  box-shadow: 0 28px 90px #0008;
  text-align: center;
}
.card.compact {
  width: min(430px, 100%);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
.top select,
.settings select,
.hud select {
  padding: 10px;
  border: 1px solid #ffffff2b;
  border-radius: 12px;
  background: #0c2631;
  color: #fff;
}
.icon {
  font-size: 64px;
}
.kicker {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.card h1 {
  margin: 4px 0;
  font-size: clamp(36px, 8vw, 62px);
}
.card > p:not(.kicker) {
  color: var(--muted);
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.settings label {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.settings select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #d7ecf1;
}
.check input {
  width: 20px;
  height: 20px;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #ffffff30;
  border-radius: 15px;
  background: #173a48;
  color: #fff;
  font-weight: 850;
}
.card .primary {
  border: 0;
  background: linear-gradient(135deg, #8df4e7, #58bde2);
  color: #06212b;
}
.card small {
  display: block;
  margin-top: 18px;
  color: #9bb8c2;
}
.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff1a;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
#calibrationTime {
  display: block;
  margin: 15px;
  font-size: 45px;
}
.hud {
  position: fixed;
  z-index: 8;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid #ffffff2b;
  border-radius: 18px;
  background: #06202bd9;
  backdrop-filter: blur(12px);
}
.hud > div {
  min-width: 78px;
  text-align: center;
}
.hud span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.hud b {
  font-size: 21px;
  color: var(--gold);
}
.hud button {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff2b;
  border-radius: 12px;
  background: #123642;
  color: #fff;
}
.hud label {
  font-size: 9px;
  color: var(--muted);
}
.hud select {
  display: block;
  padding: 5px;
}
.message {
  position: fixed;
}
.balloon-note {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  padding: 7px 13px;
  border-radius: 12px;
  background: #06202bbb;
  color: #d7eef2;
  font-size: 12px;
}
@media (max-width: 600px) {
  .settings,
  .actions {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .hud {
    top: 7px;
    width: calc(100% - 12px);
    justify-content: center;
  }
  .hud > div {
    min-width: 52px;
  }
  .hud label {
    display: none;
  }
  .hud b {
    font-size: 17px;
  }
  .icon {
    font-size: 48px;
  }
}
