body.member-white-gold dialog#cinematic-welcome {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background: #000 !important;
  --cw-art-width: min(100%, 64vh, 680px);
  --cw-art-width: min(100%, 64dvh, 680px);
  --cw-reference: url('/app-members/cinematic-reference.jpg');
}
#cinematic-welcome::backdrop { background: transparent; }
#cinematic-welcome::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  width: var(--cw-art-width);
  aspect-ratio: 1024 / 276;
  margin-inline: auto;
  background: var(--cw-reference) center top / 100% auto no-repeat;
  /* Only the approved top ribbons are visible. The live Skip button is separate. */
  clip-path: polygon(0 0, 69.5% 0, 69.5% 6%, 45% 18%, 32% 30%, 21% 47%, 12% 64%, 6% 82%, 0 100%);
  mask-image: linear-gradient(90deg, #000 48%, transparent 69.5%);
  pointer-events: none;
}
#cinematic-welcome .cw-media {
  position: absolute;
  inset: 8.5% 0 47.5%;
  width: var(--cw-art-width);
  margin-inline: auto;
  display: grid;
  place-items: end center;
}
#cinematic-welcome .cw-frame {
  position: relative;
  width: min(88%, 44.38vh);
  width: min(88%, 44.38dvh);
  aspect-ratio: 1047921 / 1038791;
  background: #000;
}
#cinematic-welcome :is(video, .cw-poster) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#cinematic-welcome .cw-poster {
  z-index: 1;
  pointer-events: none;
}
#cinematic-welcome[data-frame="visible"] .cw-poster { visibility: hidden; }
/* This area contains only the embedded export mark on a black background. */
#cinematic-welcome .cw-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 92% 2% 2% 81%;
  background: #000;
  pointer-events: none;
}
#cinematic-welcome .cw-reference-copy {
  position: absolute;
  inset: 52.5% 0 auto;
  width: var(--cw-art-width);
  margin-inline: auto;
  aspect-ratio: 1024 / 760;
  /* Keep the crown, copy, laurels, and lower ribbons in one continuous piece. */
  background: var(--cw-reference) center bottom / 100% auto no-repeat;
}
#cinematic-welcome :is(.cw-reference-copy span, .cw-status) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body.member-white-gold #cinematic-welcome button {
  min-height: 44px;
  border: 1px solid #d7ab50 !important;
  border-radius: 999px;
  font-weight: 700;
}
body.member-white-gold #cinematic-welcome button:focus-visible {
  outline: 3px solid #fff1bb;
  outline-offset: 4px;
}
body.member-white-gold #cinematic-welcome .cw-skip {
  position: absolute;
  z-index: 4;
  inset-block-start: max(14px, env(safe-area-inset-top));
  inset-inline-end: max(14px, env(safe-area-inset-right));
  padding: 6px 14px;
  color: #211305 !important;
  background: linear-gradient(#fff4c9, #e8b752) !important;
}
#cinematic-welcome::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #fff4c6 0, #edb553a0 22%, #bd76142b 55%, transparent 76%);
}
#cinematic-welcome[data-stage="ending"] { animation: cw-reveal 1.3s ease-in-out forwards; }
#cinematic-welcome[data-stage="ending"] .cw-media { animation: cw-logo-out 1.3s ease-out forwards; }
#cinematic-welcome[data-stage="ending"]::after { animation: cw-gold 1.3s ease-in-out forwards; }
@keyframes cw-reveal { 0%, 29% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cw-logo-out { 0% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes cw-gold { 0%, 100% { opacity: 0; } 40% { opacity: .86; } }
@media (prefers-reduced-motion: reduce) {
  #cinematic-welcome[data-stage="ending"] { animation: cw-reveal 1.3s linear forwards; }
  #cinematic-welcome[data-stage="ending"]::after { animation: none; }
}
