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

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

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.panel {
  position: relative;
  width: min(100vw, 50dvh * 16 / 9);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

/* Wide screens: side by side */
@media (min-aspect-ratio: 16/9) {
  #app { flex-direction: row; }
  .panel { width: min(50vw, 100dvh * 16 / 9); }
}

#video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#camCanvas, #overlay, #scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Mint-green "night vision" look of the webcam panel */
#camCanvas {
  filter: grayscale(1) sepia(1) hue-rotate(105deg) saturate(2.4) brightness(1.08) contrast(1.15);
}

.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ff7be5;
  backdrop-filter: blur(4px);
}

#intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(40, 10, 50, 0.75), rgba(0, 0, 0, 0.92));
  z-index: 10;
  padding: 20px;
}
#intro.hidden { display: none; }

.card {
  max-width: 420px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(15, 8, 20, 0.85);
  border: 1px solid rgba(255, 80, 220, 0.3);
  box-shadow: 0 0 60px rgba(255, 40, 200, 0.15);
}
.card h1 {
  font-size: 28px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #ff4fd8, #9b6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card p { color: #bbb; margin-bottom: 14px; }
.card ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.card li b { color: #ff7be5; }
.card small { color: #888; }

.buttons { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  font: inherit;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #ff3fcf, #8a4bff);
  color: #fff;
  font-weight: 600;
}
button.ghost { background: transparent; border: 1px solid #555; color: #ccc; font-weight: 500; }
button:disabled { opacity: 0.5; cursor: wait; }
.status { margin-top: 12px; margin-bottom: 0 !important; font-size: 13px; color: #ff9ad0 !important; min-height: 1em; }
