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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#webcam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hidden - we draw it to canvas instead */
  visibility: hidden;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

#status {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  padding: 12px 28px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 1s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#instructions {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: opacity 2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
