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

html, body { width: 100%; height: 100%; }

body {
  background: #000;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Full-screen WebGL canvas */
#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Energy balls canvas — floats above WebGL, screen-blend so balls illuminate the pattern */
#balls-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* Camera preview inside the panel */
#cam-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
}
#cam-panel.visible { display: flex; }

#cam-preview {
  position: relative;
  width: 100%;
  height: 155px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: #111;
}

#video {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#overlay {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  transform: scaleX(-1);
}

/* Reflection buttons (also styled as pbtn in panel) */
.btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.60);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-align: center;
  user-select: none;
}
.btn:hover  { background: rgba(255,255,255,0.12); color: #fff; }
.btn.active { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.70); color: #fff; }
