/* In-page selfie camera (full-screen sheet on phones, centred dialog on desktop). */

.camera {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 22, 37, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.camera__box {
  width: 100%; max-width: 440px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--navy); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.camera__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.camera__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.camera__close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: transparent; color: #fff; font-size: 16px; cursor: pointer;
}
.camera__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #000; }
.camera__video, .camera__still { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera__video { transform: scaleX(-1); }          /* mirror like a real selfie camera */
.camera__guide {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 3px dashed rgba(224, 189, 115, .85); box-shadow: 0 0 0 999px rgba(0, 0, 0, .28);
  pointer-events: none;
}
.camera__msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: #C4CCD8; font-size: 15px; }
.camera__hint { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #AEB8C7; }
.camera__actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.camera__actions--review .btn { flex: 1; }
.camera__actions--review .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.camera__shutter {
  width: 72px; height: 72px; border-radius: 50%; cursor: pointer;
  border: 5px solid #fff; background: var(--gold); box-shadow: 0 0 0 4px rgba(198, 161, 91, .35);
  transition: transform .12s ease, opacity .2s ease;
}
.camera__shutter:active { transform: scale(.9); }
.camera__shutter:disabled { opacity: .4; cursor: default; }
.camera__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.camera__flash.is-on { animation: cameraFlash .35s ease-out; }
@keyframes cameraFlash { from { opacity: .85; } to { opacity: 0; } }

@media (max-width: 480px) {
  .camera { padding: 0; place-items: stretch; }
  .camera__box { max-width: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
}
