* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000;
  color: #e6e6ea;
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  height: 100%;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: #000;
}

/* Horizontal flip of the canvas only — controls stay unflipped. */
.composite {
  position: relative;
  width: 100%;
}
.composite.flipH {
  transform: scaleX(-1);
}

#glcanvas {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #111114;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.controls.idle { opacity: 0; }
.stage:hover .controls { opacity: 0.85; }

button {
  padding: 6px 12px;
  background: #2a2a32;
  color: #e6e6ea;
  border: 1px solid #44444d;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #35353f; }

#seek { width: 240px; }
#timeLabel { font-variant-numeric: tabular-nums; opacity: 0.8; }

#vid, #cam { display: none; }

/* 18+ age gate. Blocks the page until accepted; a cookie (age18=1, 365d,
   SameSite=Lax) suppresses it on return visits. The script that toggles
   visibility is inline in each entry HTML. */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-gate__card {
  max-width: 440px;
  margin: 16px;
  padding: 28px 32px;
  background: #111114;
  border: 1px solid #2a2a32;
  border-radius: 8px;
  text-align: center;
}
.age-gate__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.age-gate__title .plus { color: #ff5a5a; }
.age-gate__body {
  margin: 0 0 20px;
  color: #9a9aa3;
  font-size: 13px;
  line-height: 1.5;
}
.age-gate__btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.age-gate__btns button {
  min-width: 96px;
  padding: 9px 16px;
  font-weight: 600;
}
.age-gate__accept { background: #2a2a32; }
.age-gate__accept:hover { background: #35353f; }
.age-gate__deny { background: transparent; color: #9a9aa3; border-color: #44444d; }
.age-gate__deny:hover { background: #1b1b1f; color: #e6e6ea; }