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

body {
  font-family: 'Courier New', Courier, monospace;
  background: #0b0c10;
  color: #c5c6c7;
  height: 100vh;
  overflow: hidden;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #1f2833;
  border-bottom: 2px solid #45a29e;
  z-index: 10;
}

.cam-indicator { color: #ff4d4d; font-weight: bold; animation: blink 1s infinite; }
.cam-indicator.online { color: #45a29e; animation: none; }

.timer, .score { font-size: 14px; letter-spacing: 1px; }
.score span { color: #45a29e; font-weight: bold; }

.screen { display: none; height: 100vh; width: 100vw; }
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.screen.hidden { display: none; }

#startScreen {
  background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
  text-align: center;
  padding: 40px;
}
#startScreen h1 { color: #45a29e; margin-bottom: 16px; font-size: 2rem; letter-spacing: 4px; text-transform: uppercase; }
#startScreen p { margin-bottom: 12px; line-height: 1.6; max-width: 600px; }
.note { font-size: 0.85rem; color: #888; margin-top: 24px; }

.viewfinder {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  background: #000;
  border: 4px solid #45a29e;
  box-shadow: 0 0 40px rgba(69, 162, 158, 0.2);
  overflow: hidden;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror like a mirror/webcam preview */
}

.overlay-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  margin-top: -60px; margin-left: -60px;
  border: 2px solid rgba(69, 162, 158, 0.6);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(69, 162, 158, 0.3);
}

.rec-indicator {
  position: absolute;
  top: 16px; left: 16px;
  color: #ff4d4d;
  font-weight: bold;
  font-size: 14px;
  animation: blink 0.8s infinite;
}

.controls {
  margin: 24px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: #45a29e; color: #0b0c10; }
.btn.primary:hover:not(:disabled) { background: #66fcf1; }
.btn.capture { background: #ff4d4d; color: white; font-size: 1rem; padding: 14px 32px; }
.btn.capture:hover:not(:disabled) { background: #ff6b6b; }
.btn.secondary { background: transparent; color: #c5c6c7; border: 1px solid #45a29e; }
.btn.secondary:hover:not(:disabled) { background: #45a29e; color: #0b0c10; }
.btn.ghost { background: transparent; color: #45a29e; border: 1px solid #45a29e; }
.btn.ghost:hover:not(:disabled) { background: #45a29e; color: #0b0c10; }

.evidence-gallery {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}
.evidence-gallery h3 { margin-bottom: 16px; color: #45a29e; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  justify-items: center;
}
.gallery-grid img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 2px solid #45a29e;
  background: #1f2833;
}
.empty { color: #666; font-size: 0.9rem; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
