/* virtual:styles/main.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #0a0a1a;
  overflow: hidden;
  font-family:
    "Nunito",
    "Segoe UI",
    sans-serif;
}
#main-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
#webcam {
  position: absolute;
  bottom: 140px;
  right: 16px;
  width: 140px;
  height: 105px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0.88;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
#guide-panel {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 20, 50, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 14px 16px;
  z-index: 10;
  width: 210px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}
#guide-panel h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(140, 220, 255, 0.8);
  margin-bottom: 10px;
}
.guide-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}
.guide-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.guide-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}
.guide-text strong {
  color: rgba(180, 240, 255, 0.95);
  font-weight: 600;
}
.guide-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}
#tracking-panel {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 20, 50, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 12px 16px;
  z-index: 10;
  width: 210px;
}
#tracking-panel h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(140, 220, 255, 0.8);
  margin-bottom: 10px;
}
.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}
.track-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.track-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.track-dot.active {
  background: #4efa9a;
  box-shadow: 0 0 6px #4efa9a;
}
.track-val {
  color: rgba(180, 240, 255, 0.9);
  font-weight: 600;
  font-size: 10px;
}
.track-bar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 2px;
  width: 100%;
  overflow: hidden;
}
.track-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s;
}
#demo-notice {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 180, 50, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 200, 80, 0.3);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 10.5px;
  color: rgba(255, 220, 130, 0.9);
  letter-spacing: 0.07em;
  z-index: 10;
  pointer-events: none;
  display: none;
  text-align: center;
}
#sound-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 11;
  background: rgba(10, 20, 50, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: background 0.2s;
}
#sound-btn:hover {
  background: rgba(30, 60, 120, 0.8);
}
#loading {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      #0d1e3a 0%,
      #071020 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: white;
  gap: 14px;
  transition: opacity 0.7s;
}
#loading h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: #7de8ff;
}
#loading p {
  font-size: 11.5px;
  opacity: 0.45;
  letter-spacing: 0.12em;
}
#loading-stage {
  font-size: 11px;
  color: #5bcfff;
  letter-spacing: 0.13em;
  min-height: 16px;
}
.loader-bar {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(
      90deg,
      #3ab4ff,
      #7de8ff);
  border-radius: 3px;
  transition: width 0.45s ease;
}
.loader-wave {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(100, 200, 255, 0.3);
  border-top-color: #7de8ff;
  animation: spin 1s linear infinite;
  margin-bottom: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#lightning-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  z-index: 9;
  pointer-events: none;
  transition: background 0.05s;
}
