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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
}

#stage {
  position: fixed;
  inset: 0;
}

#video, #drawing, #overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#video {
  object-fit: cover;
  transform: scaleX(-1); /* mirror, so it feels like a mirror */
  opacity: 0.55;
}

#status {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
  transition: background 0.2s;
}
#status.drawing { background: rgba(40, 170, 90, 0.85); }
#status.cleared { background: rgba(230, 120, 30, 0.9); }

#start-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, #2b1055, #7597de);
  text-align: center;
  font-size: 26px;
}
#start-screen h1 { font-size: 64px; margin-bottom: 10px; }
#start-screen.hidden { display: none; }

#start-btn {
  margin-top: 24px;
  padding: 18px 48px;
  font-size: 30px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: #ffd23f;
  color: #2b1055;
  cursor: pointer;
}
#start-btn:disabled { opacity: 0.6; cursor: wait; }
