@font-face {
  font-family: "OPL Noto SC"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Noto Sans CJK SC Bold"), local("Noto Sans SC Bold"), url("/static/fonts/noto-sans-sc-bold.woff2") format("woff2");
}
.opening-frame { position: relative; overflow: hidden; container-type: size; color: #f5f1e8; }
.opening-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4.15cqh; padding: 3cqh 4cqw 4.8cqh; box-sizing: border-box;
  background: #0e1b17; perspective: 120cqw;
}
.opening-badge {
  position: relative; height: min(44.45cqh, 70cqw); max-width: 58%; min-height: 0;
  transform-style: preserve-3d;
}
.opening-badge img { display: block; height: 100%; max-width: 100%; object-fit: contain; backface-visibility: hidden; }
.opening-badge-back { position: absolute; inset: 0; width: 100%; transform: rotateY(180deg); }
.opening-words { max-width: 100%; text-align: center; font-weight: 700; line-height: 1.12; letter-spacing: -.018em;
  font-size: min(calc(var(--opening-size) * 100cqw / 1920), calc(var(--opening-size) * 100cqh / 1080), var(--fit-width), var(--fit-height)); }
.opening-words[data-font=noto] { transform: scaleX(.87); }
.opening-line { overflow-wrap: anywhere; }
.opening-art[data-background="transparent"] { background: transparent; }
@container (orientation: portrait) {
  .opening-words { font-size: min(calc(var(--opening-size) * 100cqw / 1080), calc(var(--opening-size) * 100cqh / 1920), var(--fit-width), var(--fit-height)); }
}
