/* v246：先行版（限定配布）のエンド演出。battle.html と movies.html（先行版タブのプレビュー）で共用。配布版は build-dist.js が data/ に入れる */
.pv-fade { position: fixed; inset: 0; z-index: 9600; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.pv-fade.on { opacity: 1; pointer-events: auto; }
.pv-end { position: fixed; inset: 0; z-index: 9550; background: #000; opacity: 0; transition: opacity .9s ease; cursor: default; overflow: hidden; }
.pv-end.on { opacity: 1; }
.pv-screen { position: absolute; inset: 0; overflow: hidden; }
.pv-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pv-screen i { position: absolute; inset: 0; pointer-events: none; display: none; }
.fx-sepia .pv-screen video { filter: sepia(.9) saturate(1.15) contrast(1.06) brightness(.9); }
.fx-faded .pv-screen video { filter: saturate(.32) contrast(.8) brightness(1.08) sepia(.22); }
.fx-crt .pv-screen video { filter: contrast(1.18) saturate(1.25) brightness(.95); }
.fx-all .pv-screen video { filter: sepia(.7) saturate(.6) contrast(1.12) brightness(.92); }
.fx-faded .pv-grain, .fx-all .pv-grain, .fx-sepia .pv-grain { display: block; opacity: .16; mix-blend-mode: overlay; background: repeating-radial-gradient(circle at 17% 33%, rgba(255,255,255,.9) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 64%, rgba(0,0,0,.9) 0 1px, transparent 1px 4px); animation: pvGrain .18s steps(2) infinite; }
.fx-faded .pv-vig, .fx-sepia .pv-vig, .fx-crt .pv-vig, .fx-all .pv-vig { display: block; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.72) 100%); }
.fx-faded .pv-screen { animation: pvFlick 3.2s infinite; }
.fx-crt .pv-scan, .fx-all .pv-scan { display: block; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 1px, transparent 1px 3px); }
.fx-crt .pv-roll, .fx-all .pv-roll { display: block; inset: auto 0 auto 0; height: 22%; top: -22%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07), transparent); animation: pvRoll 5.5s linear infinite; }
.fx-crt .pv-screen, .fx-all .pv-screen { border-radius: 2.2% / 3.2%; box-shadow: inset 0 0 90px rgba(0,0,0,.85); animation: pvFlick 4s infinite; }
.fx-crt .pv-screen video, .fx-all .pv-screen video { transform: scale(1.012); }
@keyframes pvGrain { 0% { transform: translate(0, 0); } 50% { transform: translate(-1.5%, 1%); } 100% { transform: translate(1%, -1.5%); } }
@keyframes pvRoll { to { top: 100%; } }
@keyframes pvFlick { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: .9; } 49% { opacity: 1; } 82% { opacity: .95; } }
.pv-band { position: absolute; left: 0; right: 0; top: 50%; z-index: 2; transform: translate(-100%, -50%); padding: clamp(12px, 2.2vh, 24px) 0; text-align: center; background: rgba(8, 6, 12, .78); border-top: 2px solid rgba(255, 255, 255, .28); border-bottom: 2px solid rgba(255, 255, 255, .28); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pv-end.band .pv-band { transform: translate(0, -50%); }
.pv-band b { font: 900 clamp(24px, 4.2vw, 58px)/1.2 var(--f-talk, sans-serif); color: #fff; letter-spacing: .14em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }

/* チャートのプレビュー用（画面に固定しない版） */
.pv-demo { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 6px; }
.pv-demo .pv-band { transform: translate(0, -50%); }
.pv-demo .pv-band b { font-size: clamp(14px, 2vw, 26px); }
