* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
}

#webcam {
  display: none;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#status {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: #aaa;
  z-index: 100;
  text-align: center;
  pointer-events: none;
}

#toggleControls {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

#toggleControls:hover {
  background: rgba(255, 255, 255, 0.2);
}

#controls {
  position: fixed;
  top: 48px;
  right: 12px;
  z-index: 150;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  width: 240px;
  backdrop-filter: blur(12px);
  transition: opacity 0.3s, transform 0.3s;
}

#controls.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

#controls h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.control-row label {
  font-size: 0.8rem;
  color: #ccc;
}

.control-row input[type="range"] {
  width: 100px;
  accent-color: #FFB347;
}

.control-row .val {
  font-size: 0.75rem;
  color: #888;
  min-width: 32px;
  text-align: right;
}

.control-row input[type="checkbox"] {
  accent-color: #FFB347;
}

#fullscreenBtn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

#fullscreenBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hint {
  margin-top: 10px;
  font-size: 0.7rem;
  color: #555;
  text-align: center;
}
