body:has(.opening-film[open]) { overflow: hidden; }

.opening-film {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #041d2b;
  color: #f4fbff;
}

.opening-film::backdrop { background: transparent; }

.opening-stage,
.opening-products,
.opening-product-frame,
.opening-product-frame img,
.opening-cloth { position: absolute; inset: 0; }

.opening-stage {
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 45%, #123a53, #072b41 51%, #041e2d 84%);
}

.opening-products {
  --reveal-x: 50%;
  --reveal-y: 50%;
  --reveal-radius: 0px;
  mask-image: radial-gradient(circle at var(--reveal-x) var(--reveal-y), #000 max(0px, calc(var(--reveal-radius) - 19vmin)), transparent var(--reveal-radius));
}

.opening-product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.opening-cloth {
  display: block;
  width: 100%;
  height: 100%;
}

.opening-brand {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 7%;
  width: min(26vw, 425px);
  height: auto;
  margin-top: calc(-0.18 * min(26vw, 425px));
  filter: brightness(0) invert(1);
  opacity: 0;
}

@media (max-aspect-ratio: 8/5) {
  .opening-product-frame {
    inset: 23% 0 7%;
    mask-image: linear-gradient(transparent, #000 15%, #000 86%, transparent);
  }

  .opening-brand {
    top: 13%;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: min(60vw, 310px);
    margin-top: 0;
  }
}

.opening-skip {
  position: absolute;
  z-index: 2;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  padding: 10px 17px;
  min-height: 44px;
  border: 1px solid #d2f2ff70;
  border-radius: 100px;
  color: #fff;
  background: #082337e8;
  font-size: 13px;
  white-space: nowrap;
}

.opening-skip:hover { background: #124360; }
.opening-skip:focus-visible { outline-color: #bfe7f4; }

.opening-caption {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 5vw, 74px);
  bottom: max(33px, calc(env(safe-area-inset-bottom) + 16px));
  padding: 4px 8px;
  border-radius: 3px;
  background: #041d2bd9;
  color: #e1f2f6;
  font-size: 11px;
}

.opening-progress {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 8vw, 150px);
  right: clamp(20px, 8vw, 150px);
  bottom: max(17px, env(safe-area-inset-bottom));
  height: 2px;
  background: #e2f8ff35;
}

.opening-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #c5f1ff;
  transform: scaleX(0);
  transform-origin: left;
}

.opening-replay {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
}

.opening-replay:hover { border-color: var(--line); background: var(--surface); }

@media (max-width: 700px) {
  .opening-skip { right: max(14px, env(safe-area-inset-right)); }
}

@media (max-aspect-ratio: 3/4) {
  .opening-product-frame {
    top: auto;
    bottom: 14%;
    height: min(62%, 108vw);
    mask-image: linear-gradient(transparent, #000 12%, #000 89%, transparent);
  }

  .opening-brand {
    top: clamp(66px, 18%, 185px);
  }
}



