/* ============================================================
   skin-reveal.css — visuals around the WebGL canvas: background,
   gold glow, vignette, portrait frame accents, before/after
   badges, and the outro scrim. The face motion + transformation
   itself is rendered in WebGL (js/gl-renderer.js).
   ============================================================ */

/* Portrait framing accents (thin gold corner marks). */
.sr-frame::before,
.sr-frame::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.9;
}
.sr-frame::before {
  top: -8px;
  inset-inline-end: -8px;
  border-top: 2px solid var(--sr-gold);
  border-inline-end: 2px solid var(--sr-gold);
}
.sr-frame::after {
  bottom: -8px;
  inset-inline-start: -8px;
  border-bottom: 2px solid var(--sr-gold);
  border-inline-start: 2px solid var(--sr-gold);
}

/* Background — near-black, matching the portrait's own backdrop so the
   image blends in with no visible box/edge. Warmth comes only from the
   gold glow (.sr-bg-glow) at the very centre. */
.sr-bg {
  background: var(--sr-hero-bg);
}

/* Gold glow — intensifies as the skin brightens (opacity set by JS). */
.sr-bg-glow {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(212, 175, 55, 0.28) 0%,
    rgba(212, 175, 55, 0.08) 34%,
    transparent 64%
  );
  opacity: 0.12;
  mix-blend-mode: screen;
}

/* Vignette for cinematic depth. */
.sr-vignette {
  background: radial-gradient(
    circle at 50% 45%,
    transparent 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Soft scrim behind the outro copy — guarantees contrast over the face. */
.sr-content::before {
  content: "";
  position: absolute;
  inset: -35% -32% -60% -32%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 62%,
    rgba(12, 10, 8, 0.78) 0%,
    rgba(12, 10, 8, 0.5) 42%,
    rgba(12, 10, 8, 0) 74%
  );
}

/* Badges. */
.sr-badge {
  border-radius: 2px;
  line-height: 1;
  transition: opacity 0.35s ease;
}
.sr-badge--before {
  color: var(--sr-gold);
  border: 1px solid var(--sr-gold);
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
}
.sr-badge--after {
  color: var(--sr-black);
  background: var(--sr-gold);
}

/* noscript fallback poster. */
.sr-noscript {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.sr-noscript img {
  width: min(320px, 70vw);
  border-radius: var(--sr-radius);
  box-shadow: var(--sr-shadow);
}
.sr-noscript h2 { font-weight: 300; font-size: 1.6rem; color: var(--sr-cream); }
.sr-noscript p { color: #b8b1a6; }
