.battle-cinema { position:fixed; inset:0; z-index:80; pointer-events:none; overflow:hidden; contain:strict; }
.character-cutin { position:absolute; top:50%; left:0; width:100%; height:min(440px,64dvh); transform:translateY(-50%); isolation:isolate; }
.cutin-band { position:absolute; inset:15% -5% 8%; background:linear-gradient(100deg,#173d3bf2,#214e4aed 50%,#194743dd); border-block:2px solid color-mix(in srgb,var(--fx-color),#fff9dc 40%); box-shadow:0 12px 65px #163d3b55; clip-path:polygon(0 8%,100% 0,100% 91%,0 100%); opacity:0; }
.cutin-band::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(-12deg,transparent 0 35px,color-mix(in srgb,var(--fx-color),transparent 85%) 36px 37px,transparent 39px 70px); }
.cutin-band::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 38% 60%,color-mix(in srgb,var(--fx-color),transparent 40%),transparent 65%); }
.cutin-character { position:absolute; left:calc(50% - 325px); bottom:-7%; width:360px; height:117%; object-fit:contain; filter:drop-shadow(0 0 20px color-mix(in srgb,var(--fx-color),transparent 30%)) drop-shadow(0 7px 4px #0d27293d); transform-origin:50% 80%; opacity:0; }
.cutin-orbit { position:absolute; width:310px; height:310px; left:calc(50% - 140px); top:52%; color:var(--fx-color); border:1px solid currentColor; border-radius:50%; padding:43px; outline:1px dashed currentColor; outline-offset:14px; opacity:0; }
.cutin-orbit svg,.cutin-orbit img { width:100%; height:100%; fill:currentColor; }
.cutin-copy { position:absolute; left:calc(50% + 65px); right:20px; top:43%; color:#fff9e6; text-shadow:0 3px 14px #103c3a; opacity:0; }
.cutin-copy strong { display:block; font-size:clamp(30px,4vw,52px); font-weight:850; letter-spacing:.12em; }
.spell-sigil { position:absolute; width:110px; height:110px; padding:20px; color:var(--fx-color); border:2px solid currentColor; border-radius:50%; outline:1px dashed currentColor; outline-offset:8px; background:radial-gradient(ellipse,#fffaf078,transparent 75%); filter:drop-shadow(0 0 6px color-mix(in srgb,var(--fx-color),transparent 20%)); }
.spell-sigil svg,.spell-sigil img { width:100%; height:100%; fill:currentColor; }
.spell-sigil.effect-7 { border-radius:20%; background:repeating-linear-gradient(35deg,#77948555 0 6px,#d8e4d755 7px 11px); color:#83998a; }
.spell-sigil.effect-0 { border-style:dashed; }
.spell-sigil.effect-1 { border-radius:6px; border-style:dashed; }
.spell-sigil.effect-5 { border-width:3px; background:radial-gradient(ellipse,#fffce7aa,#edce7155,transparent 70%); }
.spell-mote { position:absolute; width:24px; height:24px; will-change:transform,opacity; filter:drop-shadow(0 0 4px currentColor); }
.spell-mote svg,.spell-mote img { width:100%; height:100%; fill:currentColor; }
.spell-beam { position:absolute; inset:0; width:100%; height:100%; overflow:visible; filter:drop-shadow(0 0 6px currentColor); }
.spell-beam path { fill:none; stroke:currentColor; stroke-width:4; stroke-linecap:round; stroke-dasharray:1; }
.spell-card { position:absolute; width:65px; aspect-ratio:63/88; padding:4px; background:linear-gradient(130deg,#fffaf0,var(--fx-color)); border:2px solid #397164; border-radius:6px; box-shadow:0 4px 20px #183f393b,0 0 16px var(--fx-color); will-change:transform; }
.spell-card img { position:absolute; inset:9% 4% 13%; width:92%; height:78%; object-fit:contain; }
.spell-card b { position:absolute; left:3px; top:3px; color:#fffaf0; background:#194f49; border-radius:50%; width:20px; aspect-ratio:1; text-align:center; font:700 18px/20px Georgia,serif; }
.spell-card>span { position:absolute; bottom:4px; left:4px; right:4px; color:#fffaf0; background:#194f49; border-radius:2px; text-align:center; font-size:6px; line-height:1.7; }
.spell-card.face-down { background-size:cover; background-position:center; }
.spell-caster { position:absolute; width:100px; height:140px; filter:drop-shadow(0 0 9px var(--fx-color)); }
.spell-caster img { width:100%; height:100%; object-fit:contain; }
body.cinema-active #battle-view .playing-card { cursor:default; }
#battle-view .battle-footer { justify-content:flex-end; }
#battle-view .battle-footer #result-button { margin:0 auto; }
@media(max-width:720px) {
  .character-cutin { height:min(350px,55dvh); }
  .cutin-character { left:calc(50% - 210px); width:260px; bottom:-3%; height:115%; }
  .cutin-copy { left:52%; right:8px; top:44%; }
  .cutin-copy strong { font-size:clamp(20px,5.8vw,32px); letter-spacing:.04em; }
  .cutin-orbit { width:220px; height:220px; left:32%; padding:35px; }
  .spell-sigil { width:76px; height:76px; padding:14px; }
  .spell-mote { width:19px; height:19px; }
  .spell-caster { width:80px; height:110px; }
}
@media(max-height:500px) {
  .character-cutin { height:78dvh; }
  .cutin-character { height:120%; bottom:-8%; }
  .cutin-copy strong { font-size:28px; }
}
.reduce-motion .battle-cinema { display:none; }
.reaper-slash { position:absolute; width:165px; height:165px; filter:drop-shadow(0 0 12px #c7a2ee); color:#d9b7fb; }
.reaper-slash svg { width:100%; height:100%; fill:currentColor; }
.petrify-seal { position:absolute; border-radius:16px; border:2px solid #b5c1b7; background:linear-gradient(130deg,#d7ded46b,#7f938277,#bfcbbb55); box-shadow:inset 0 0 20px #f3f3da88; }
.petrify-seal svg { width:100%; height:100%; fill:none; stroke:#f5f3dc; stroke-width:1.8; filter:drop-shadow(1px 1px 0 #4f695b); }
@media(max-width:720px) { .reaper-slash { width:110px; height:110px; } }
.battle-cinema>.vfx-canvas { z-index:3; }
.character-cutin { z-index:2; }
.spell-card,.spell-caster { z-index:4; }
.effect-clock { position:absolute; width:1px;height:1px;pointer-events:none; }
.spell-sigil { border-width:1px; border-style:solid; outline-style:solid; outline-offset:10px; background:radial-gradient(ellipse,color-mix(in srgb,var(--fx-color),transparent 85%),transparent 70%); box-shadow:0 0 25px color-mix(in srgb,var(--fx-color),transparent 78%),inset 0 0 20px color-mix(in srgb,var(--fx-color),transparent 80%); }
.spell-sigil::before { content:''; position:absolute; inset:7px; border:1px solid currentColor; border-radius:inherit; transform:rotate(28deg); opacity:.55; }
.spell-sigil::after { content:''; position:absolute; inset:-7px; background:repeating-conic-gradient(from 10deg,transparent 0deg 25deg,currentColor 26deg 27deg,transparent 28deg 30deg); mask-image:radial-gradient(ellipse,transparent 63%,#000 64% 69%,transparent 70%); opacity:.65; }
.spell-sigil>svg { opacity:.7; transform:scale(.8); }
.reaper-slash { filter:drop-shadow(0 0 4px #f9e4ff) drop-shadow(0 0 14px #b997e5); }
.reaper-slash svg { fill:#f3dbff; }
.cutin-orbit { border-style:solid; outline-style:solid; outline-color:color-mix(in srgb,var(--fx-color),transparent 50%); }
.cutin-orbit::before { content:''; position:absolute; inset:14px; border:1px dashed currentColor; border-radius:50%; transform:rotate(15deg); }
.cutin-orbit::after { content:''; position:absolute; inset:-23px; border:1px solid currentColor; border-radius:50%; opacity:.3; }
.action-cutin .cutin-character { width:420px; height:420px; left:calc(50% - 365px); bottom:-4%; }
.action-cutin .cutin-copy { left:calc(50% + 85px); }
@media(max-width:720px) {
  .action-cutin .cutin-character { width:250px; height:250px; left:calc(50% - 205px); bottom:7%; }
  .action-cutin .cutin-copy { left:61%; top:42%; }
}
.character-cutin .cutin-band { background:linear-gradient(105deg,var(--cutin-background),color-mix(in srgb,var(--cutin-background),transparent 8%) 55%,color-mix(in srgb,var(--cutin-accent),transparent 12%)); }
.cutin-atmosphere { position:absolute; inset:12% 0 5%; overflow:hidden; pointer-events:none; color:var(--fx-color); }
.cutin-token { position:absolute; width:30px; height:30px; opacity:0; filter:drop-shadow(0 0 5px var(--fx-color)); }
.cutin-token svg,.cutin-token img { width:100%; height:100%; fill:currentColor; }
.character-cutin .cutin-copy { top:46%; }
.cutin-reaper .cutin-band { clip-path:polygon(0 16%,100% 0,100% 84%,0 100%); }
.cutin-reaper .cutin-band::before { background:repeating-linear-gradient(-32deg,transparent 0 68px,#d3b2f536 69px 71px,transparent 73px 130px); }
.cutin-reaper .cutin-orbit { border-radius:15% 85% 15% 85%; }
.cutin-cyber .cutin-band { clip-path:polygon(0 8%,24% 8%,25% 0,100% 0,100% 92%,76% 92%,75% 100%,0 100%); }
.cutin-cyber .cutin-band::before { background:linear-gradient(90deg,#74e6dc20 1px,transparent 1px),linear-gradient(#74e6dc20 1px,transparent 1px); background-size:32px 32px; }
.cutin-cyber .cutin-band::after { background:repeating-linear-gradient(0deg,transparent 0 5px,#a6fff317 6px 7px); }
.cutin-cyber .cutin-orbit,.cutin-cyber .cutin-orbit::before,.cutin-cyber .cutin-orbit::after { border-radius:8px; }
.cutin-hearts .cutin-band { clip-path:ellipse(78% 49% at 50% 50%); }
.cutin-hearts .cutin-band::before { background:radial-gradient(circle at 70% 40%,#ffbed43b 0 6px,transparent 7px),radial-gradient(circle at 20% 70%,#ffbed428 0 13px,transparent 14px); background-size:110px 90px,180px 150px; }
.cutin-hearts .cutin-orbit { border-style:dotted; }
.cutin-carnival .cutin-band::before { background:repeating-conic-gradient(from 45deg,#f1c77c1f 0% 25%,transparent 0% 50%) 0 0 / 70px 70px; }
.cutin-carnival .cutin-orbit,.cutin-carnival .cutin-orbit::before { border-radius:18%; }
.cutin-summon .cutin-band::before { background:repeating-radial-gradient(ellipse at 34% 110%,transparent 0 28px,#dfb5ff2b 29px 30px,transparent 31px 48px); }
.cutin-summon .cutin-orbit { clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%); background:#c69beb14; }
.cutin-sanctuary .cutin-band { clip-path:ellipse(85% 50% at 50% 50%); }
.cutin-sanctuary .cutin-band::before { background:repeating-conic-gradient(from 5deg at 33% 50%,#fff1ba20 0deg 4deg,transparent 5deg 17deg); }
.cutin-sanctuary .cutin-orbit { border-width:3px; box-shadow:0 0 35px #ffe6a351; }
.cutin-wings .cutin-band::before { background:linear-gradient(22deg,transparent 45%,#eee9ff24 49%,transparent 51%),linear-gradient(-22deg,transparent 45%,#eee9ff24 49%,transparent 51%); }
.cutin-wings .cutin-orbit { border-radius:50% 0 50% 0; }
.cutin-gaze .cutin-band::before { background:repeating-conic-gradient(from 10deg at 35% 50%,transparent 0deg 22deg,#bdd6bf18 23deg 45deg); }
.cutin-gaze .cutin-orbit { height:175px; border-radius:75% 15%; }
.cutin-grove .cutin-band::before { background:repeating-linear-gradient(115deg,transparent 0 50px,#d8efae26 51px 53px,transparent 56px 100px); }
.cutin-grove .cutin-orbit { border-radius:5% 80% 5% 80%; }
.cutin-moon .cutin-band::before { background:radial-gradient(circle,#f8e4abbb 0 1px,transparent 2px) 0 0 / 68px 62px,radial-gradient(circle,#ded0ff77 0 1px,transparent 2px) 30px 22px / 110px 85px; }
.cutin-moon .cutin-orbit { border:0; box-shadow:inset 23px 0 0 #ecdbac60,0 0 35px #c3adeb33; }
@media(max-width:720px) { .cutin-token { width:20px; height:20px; } .cutin-gaze .cutin-orbit { height:130px; } }
@media(max-height:500px) {
  .action-cutin .cutin-character { width:82dvh; height:82dvh; left:calc(50% - 72dvh); bottom:-4%; }
}
