/* Settlement-only battle camera: the planning board remains untouched. */
body.is-cinematic{overflow:hidden}
body.is-cinematic .game-wrap{z-index:101}
.arena-frame--cinema{
  position:fixed;inset:0;z-index:100;width:100vw;height:100dvh;min-height:280px;
  display:flex;flex-direction:column;padding:clamp(5px,.8vw,12px);
  border:0;box-shadow:inset 0 0 0 2px #568194,0 0 0 100vmax #030816;
  background:#08111f;
}
.arena-frame--cinema .arena-topbar,.arena-frame--cinema .arena-footer{
  flex:none;height:clamp(32px,5vh,48px);padding:0 clamp(14px,2.5vw,38px);
  font-size:clamp(10px,1vw,14px);letter-spacing:.12em;
  background:linear-gradient(90deg,#0c1c30,#182e41 50%,#0c1c30);
}
.arena-frame--cinema .arena-topbar{gap:20px;border-bottom:1px solid #83b8c166}
.arena-frame--cinema .arena-footer{border-top:1px solid #83b8c166}
.arena-frame--cinema .arena-topbar span:last-child,.arena-frame--cinema .arena-footer span:nth-child(2){display:inline}
.cinema-progress{margin-left:auto;color:#e9d8b3;white-space:nowrap}
.cinema-skip{flex:none;padding:7px 12px;border:1px solid #779cae;background:#13283b;color:#e7f0ef;font-weight:800;letter-spacing:.08em;cursor:pointer}
.cinema-skip:hover,.cinema-skip:focus-visible{border-color:#f2c997;background:#284254;color:#fff7dd}
.arena-frame--cinema .arena-scene{
  flex:1;min-height:0;height:auto;overflow:hidden;
  background-position:center 55%;
  box-shadow:inset 0 0 0 1px #f2d8ad2a;
}
.arena-frame--cinema .arena-scene:before{
  background:linear-gradient(180deg,#0610244d,transparent 28%,transparent 64%,#07101cc9),
    linear-gradient(90deg,#0610247d,transparent 26%,transparent 74%,#0610247d);
}
.arena-frame--cinema .arena-scene:after{
  background:radial-gradient(ellipse at center,transparent 32%,#03091485 100%);
}
.arena-frame--cinema .fighter{width:min(30vw,400px);bottom:clamp(15px,3.5vh,40px)}
.arena-frame--cinema .fighter-left{left:8%}.arena-frame--cinema .fighter-right{right:8%}
.arena-frame--cinema .fighter-art{
  display:block;width:min(30vw,380px);height:min(64vh,550px);
  filter:drop-shadow(0 12px 7px #030715cf) drop-shadow(0 0 24px #73dee670);
}
.arena-frame--cinema .fighter-right .fighter-art{
  filter:drop-shadow(0 12px 7px #030715cf) drop-shadow(0 0 24px #f88a7770);
}
.arena-frame--cinema .fighter-shadow{bottom:19px;width:55%;height:22px;filter:blur(12px)}
.arena-frame--cinema .fighter-label{font-size:clamp(11px,1.3vw,18px);padding:5px 22px;letter-spacing:.28em}
.arena-frame--cinema .versus-mark{top:51%;transition:opacity .3s}
.arena-frame--cinema .versus-mark span{font-size:clamp(45px,6vw,82px)}
.arena-frame--cinema:has(.fx-layer) .versus-mark{opacity:.18}
.arena-frame--cinema .scene-impact{animation:cinema-camera var(--fx-duration) ease-in-out both}
.cinema-vfx{position:absolute;inset:0;z-index:9;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}

.cinema-opening{position:absolute;inset:0;z-index:15;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff0d7;background:radial-gradient(ellipse,#071321bb 0,#0713216e 45%,transparent 78%);animation:cinema-open 850ms cubic-bezier(.16,1,.3,1) both;pointer-events:none}
.cinema-opening span{font-size:clamp(12px,1.4vw,19px);font-weight:900;letter-spacing:.45em;color:#8fe2df}
.cinema-opening strong{font-size:clamp(36px,7vw,100px);line-height:1.3;letter-spacing:.2em;text-shadow:0 5px 0 #502e3a,0 0 35px #f57d5d}
.cinema-opening small{font-size:clamp(12px,1.3vw,19px);letter-spacing:.22em;color:#d9e8e6}

/* Each element lends its illustrated texture to a masked glow, keeping the effect in the same visual language as the cards. */
.arena-frame--cinema .fx-layer{--focus-x:28%;z-index:10}
.arena-frame--cinema .fx-layer.from-right{--focus-x:72%}
.arena-frame--cinema .fx-layer:before{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse at var(--focus-x) 54%,var(--fx-glow) 0,transparent 42%);
  mix-blend-mode:screen;animation:cinema-ambient var(--fx-duration) ease-in-out both;
}
.arena-frame--cinema .combat-fx{top:52%;scale:2.1;filter:drop-shadow(0 0 15px var(--fx-glow));will-change:transform,opacity}
.arena-frame--cinema .combat-fx.fx-projectile.from-left{animation:cinema-flight-right var(--fx-duration) cubic-bezier(.23,.69,.26,1) both}
.arena-frame--cinema .combat-fx.fx-projectile.from-right{animation:cinema-flight-left var(--fx-duration) cubic-bezier(.23,.69,.26,1) both}
.arena-frame--cinema .combat-fx.fx-self{animation:cinema-build var(--fx-duration) cubic-bezier(.16,1,.3,1) both}
.arena-frame--cinema .fx-art,.arena-frame--cinema .fx-illumination{position:absolute;left:50%;top:50%;display:block;pointer-events:none;transform:translate(-50%,-50%)}
.arena-frame--cinema .fx-art{
  z-index:-1;width:220px;height:240px;background:var(--card-art) center/cover no-repeat;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 5%,#000b 25%,transparent 64%);
  mask-image:radial-gradient(ellipse at center,#000 5%,#000b 25%,transparent 64%);
  mix-blend-mode:screen;animation:cinema-art var(--fx-duration) ease-in-out both;
}
.arena-frame--cinema .fx-core,.arena-frame--cinema .fx-trail,.arena-frame--cinema .fx-echo,.arena-frame--cinema .fx-ring,.arena-frame--cinema .fx-particle,.arena-frame--cinema .fx-impact{display:none}
.arena-frame--cinema .self .fx-art,.arena-frame--cinema .fx-taijutsu .fx-art,.arena-frame--cinema .fx-blade .fx-art,.arena-frame--cinema .fx-shuriken .fx-art{display:none}
.arena-frame--cinema .self .fx-illumination{scale:.65;filter:blur(24px) brightness(.65)}
.arena-frame--cinema .fx-illumination{
  z-index:-2;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,var(--fx-accent) 0,var(--fx-glow) 19%,transparent 70%);
  filter:blur(18px);animation:cinema-light var(--fx-duration) ease-in-out both;
}
.arena-frame--cinema .fx-core{opacity:.82;animation:cinema-core 850ms ease-in-out infinite alternate}
.arena-frame--cinema .fx-wind .fx-core{animation:wind-spin 1s linear infinite}
.arena-frame--cinema .fx-water .fx-core{animation:water-surge 1s ease-in-out infinite alternate}
.arena-frame--cinema .fx-shadow .fx-core{animation:shadow-bind 1.1s ease-in-out infinite alternate}
.arena-frame--cinema .fx-fire .fx-core{animation:flame-flicker 850ms ease-in-out infinite alternate}
.arena-frame--cinema .fx-lightning .fx-core{animation:bolt-flicker .18s linear infinite}
.arena-frame--cinema .fx-ring{border-width:2px;width:125px;height:125px;box-shadow:0 0 14px var(--fx-glow),inset 0 0 14px var(--fx-glow);animation:cinema-ring var(--fx-duration) ease-out both}
.arena-frame--cinema .fx-particle{width:6px;height:6px;border-radius:50%;box-shadow:0 0 10px 3px var(--fx-glow);animation:cinema-particle var(--fx-duration) ease-out both}
.arena-frame--cinema .fx-echo{opacity:.6;filter:blur(2px)}
.arena-frame--cinema .fx-impact{
  top:53%;width:160px;height:160px;border:0;border-radius:50%;
  background:radial-gradient(circle,#fff 0,var(--fx-accent) 10%,var(--fx-glow) 32%,transparent 68%);
  box-shadow:0 0 30px var(--fx-glow);filter:blur(3px);
  animation:cinema-impact var(--fx-duration) cubic-bezier(.16,1,.3,1) both;
}
.arena-frame--cinema .fx-impact:before,.arena-frame--cinema .fx-impact:after{
  width:240px;height:9px;border:0;border-radius:50%;
  background:linear-gradient(90deg,transparent,var(--fx-accent),#fff,var(--fx-accent),transparent);
  box-shadow:0 0 14px var(--fx-glow);filter:blur(1px);
  clip-path:polygon(0 48%,48% 28%,100% 0,57% 65%,0 100%);
}
.arena-frame--cinema .fx-impact:after{width:210px;transform:translate(-50%,-50%) rotate(-48deg)}
.arena-frame--cinema .self .fx-impact{width:160px;height:160px;border:2px solid var(--fx-accent);border-radius:50%;background:radial-gradient(circle,var(--fx-glow),transparent 70%);animation:cinema-support var(--fx-duration) ease-out both}
.arena-frame--cinema .self .fx-impact:before,.arena-frame--cinema .self .fx-impact:after{display:none}
.arena-frame--cinema .combat-pop{top:18%;font-family:'Noto Sans SC',sans-serif;font-size:clamp(28px,4vw,60px);font-weight:900;letter-spacing:.06em;color:#fff5d7;text-shadow:0 3px 8px #07111d,0 0 16px var(--fx-glow);animation:cinema-number var(--fx-duration) cubic-bezier(.16,1,.3,1) both}
.arena-frame--cinema .self .combat-pop{animation-name:cinema-support-number}
.arena-frame--cinema .fx-cast-title{top:10%;min-width:0;padding:9px 20px;border:0;border-left:3px solid var(--fx-accent);border-bottom:1px solid var(--fx-accent);background:linear-gradient(90deg,#07111dd9,#07111d8c);box-shadow:0 0 25px #0009,0 0 15px var(--fx-glow);font-size:clamp(14px,1.8vw,25px);letter-spacing:.14em;animation:cinema-call var(--fx-duration) cubic-bezier(.16,1,.3,1) both}
.arena-frame--cinema .fx-cast-title small{font-size:.55em;letter-spacing:.03em}
.arena-frame--cinema .from-left>.fx-cast-title{left:6%}.arena-frame--cinema .from-right>.fx-cast-title{right:6%}
.arena-frame--cinema .fighter-cast{animation:cinema-lunge-left var(--fx-duration) ease-in-out both}
.arena-frame--cinema .fighter-right.fighter-cast{animation-name:cinema-lunge-right}
.arena-frame--cinema .fighter-buff{animation:cinema-buff var(--fx-duration) ease-in-out both}
.arena-frame--cinema .fighter-hit{animation:cinema-hurt-left var(--fx-duration) ease-in-out both}
.arena-frame--cinema .fighter-right.fighter-hit{animation-name:cinema-hurt-right}
.arena-frame--cinema .fighter-duel{animation:cinema-lunge-left var(--fx-duration) ease-in-out both}
.arena-frame--cinema .fighter-right.fighter-duel{animation-name:cinema-lunge-right}
.arena-frame--cinema .fighter-hit .fighter-art,.arena-frame--cinema .fighter-duel .fighter-art{animation:cinema-damage var(--fx-duration) ease-in-out both}
.arena-frame--cinema .fighter-right.fighter-hit .fighter-art,.arena-frame--cinema .fighter-right.fighter-duel .fighter-art{animation-name:cinema-damage-right}

@keyframes cinema-open{0%{opacity:0;transform:scale(1.12)}28%,72%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.97)}}
@keyframes cinema-camera{0%,62%,100%{transform:translate3d(0,0,0) scale(1)}70%{transform:translate3d(-.35%,.15%,0) scale(1.018)}73%{transform:translate3d(.25%,-.15%,0) scale(1.018)}78%{transform:translate3d(0,0,0) scale(1.008)}}
@keyframes cinema-ambient{0%,12%,100%{opacity:0}27%{opacity:.08}64%{opacity:.15}71%{opacity:.28}82%{opacity:.12}}
@keyframes cinema-flight-right{0%,13%{opacity:0;transform:translate(-50%,-50%) scale(.25)}26%{opacity:1;transform:translate(-50%,-50%) scale(.8)}38%{opacity:1;transform:translate(-50%,-50%) scale(1)}67%{opacity:1;transform:translate(calc(-50% + 44cqw),-50%) scale(1.12)}77%{opacity:.62;transform:translate(calc(-50% + 44cqw),-50%) scale(1.38)}100%{opacity:0;transform:translate(calc(-50% + 44cqw),-50%) scale(1.7)}}
@keyframes cinema-flight-left{0%,13%{opacity:0;transform:translate(-50%,-50%) scale(.25)}26%{opacity:1;transform:translate(-50%,-50%) scale(.8)}38%{opacity:1;transform:translate(-50%,-50%) scale(1)}67%{opacity:1;transform:translate(calc(-50% - 44cqw),-50%) scale(1.12)}77%{opacity:.62;transform:translate(calc(-50% - 44cqw),-50%) scale(1.38)}100%{opacity:0;transform:translate(calc(-50% - 44cqw),-50%) scale(1.7)}}
@keyframes cinema-build{0%,14%{opacity:0;transform:translate(-50%,-20%) scale(.25)}36%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-72%) scale(1.5)}}
@keyframes cinema-art{0%,17%,100%{opacity:0;transform:translate(-50%,-50%) scale(.6) rotate(-8deg)}31%{opacity:.28;transform:translate(-50%,-50%) scale(.88) rotate(-3deg)}66%{opacity:.4;transform:translate(-50%,-50%) scale(1.05) rotate(0)}79%{opacity:.65;transform:translate(-50%,-50%) scale(1.4) rotate(7deg)}}
@keyframes cinema-light{0%,12%,100%{opacity:0;transform:translate(-50%,-50%) scale(.2)}34%{opacity:.5;transform:translate(-50%,-50%) scale(.7)}66%{opacity:.75;transform:translate(-50%,-50%) scale(1)}74%{opacity:1;transform:translate(-50%,-50%) scale(1.5)}}
@keyframes cinema-core{to{opacity:.62;filter:brightness(1.4)}}
@keyframes cinema-ring{0%,22%{opacity:0;transform:translate(-50%,-50%) scale(.2)}43%{opacity:.72;transform:translate(-50%,-50%) scale(.8)}78%{opacity:.5;transform:translate(-50%,-50%) scale(1.7)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.2)}}
@keyframes cinema-particle{0%,22%{opacity:0;transform:translate(-50%,-50%) scale(.2)}45%,70%{opacity:.9}100%{opacity:0;transform:translate(calc(-50% + var(--px)),calc(-50% + var(--py))) scale(.1)}}
@keyframes cinema-impact{0%,66%{opacity:0;transform:translate(-50%,-50%) scale(.18)}71%{opacity:1;transform:translate(-50%,-50%) scale(1.3)}78%{opacity:.72;transform:translate(-50%,-50%) scale(.9)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.2)}}
@keyframes cinema-support{0%,32%{opacity:0;transform:translate(-50%,-50%) scale(.25)}52%{opacity:.8;transform:translate(-50%,-50%) scale(1.05)}79%{opacity:.7;transform:translate(-50%,-50%) scale(1.3)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@keyframes cinema-number{0%,68%{opacity:0;transform:translateY(24px) scale(.7)}75%{opacity:1;transform:translateY(0) scale(1.12)}88%{opacity:1;transform:translateY(-12px) scale(1)}100%{opacity:0;transform:translateY(-36px) scale(.96)}}
@keyframes cinema-support-number{0%,40%{opacity:0;transform:translateY(24px) scale(.7)}54%,80%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-30px) scale(.96)}}
@keyframes cinema-call{0%,10%{opacity:0;transform:translateY(12px)}20%,62%{opacity:1;transform:translateY(0)}76%,100%{opacity:0;transform:translateY(-9px)}}
@keyframes cinema-lunge-left{0%,14%,100%{transform:translateX(0)}37%,61%{transform:translateX(4vw)}73%{transform:translateX(2vw)}}
@keyframes cinema-lunge-right{0%,14%,100%{transform:translateX(0)}37%,61%{transform:translateX(-4vw)}73%{transform:translateX(-2vw)}}
@keyframes cinema-hurt-left{0%,66%,100%{transform:translateX(0)}71%{transform:translateX(-1.3vw)}76%{transform:translateX(.5vw)}}
@keyframes cinema-hurt-right{0%,66%,100%{transform:translateX(0)}71%{transform:translateX(1.3vw)}76%{transform:translateX(-.5vw)}}
@keyframes cinema-buff{0%,100%{transform:translateY(0)}40%,68%{transform:translateY(-1.5vh)}}
@keyframes cinema-damage{0%,66%,100%{transform:translateY(0);filter:brightness(1)}72%{transform:translateY(-5px);filter:brightness(2.2)}79%{transform:translateY(0);filter:brightness(1)}}
@keyframes cinema-damage-right{0%,66%,100%{transform:scaleX(-1) translateY(0);filter:brightness(1)}72%{transform:scaleX(-1) translateY(-5px);filter:brightness(2.2)}79%{transform:scaleX(-1) translateY(0);filter:brightness(1)}}

@media(max-width:700px),(orientation:landscape) and (max-height:650px){
  .arena-frame--cinema .arena-topbar,.arena-frame--cinema .arena-footer{height:30px;padding:0 10px;font-size:9px}
  .arena-frame--cinema .arena-status{display:none}
  .arena-frame--cinema .arena-footer span:nth-child(2){display:none}
  .cinema-progress{font-size:9px}
  .cinema-skip{font-size:9px;padding:5px 7px}
  .arena-frame--cinema .fighter{bottom:12px;width:28vw}
  .arena-frame--cinema .fighter-left{left:9%}.arena-frame--cinema .fighter-right{right:9%}
  .arena-frame--cinema .fighter-art{width:28vw;height:63vh}
  .arena-frame--cinema .fighter-label{padding:2px 10px;font-size:10px}
  .arena-frame--cinema .combat-fx{scale:1.28}
  .arena-frame--cinema .fx-cast-title{font-size:12px;padding:4px 8px}
  .arena-frame--cinema .fx-art{width:215px;height:220px}
  .arena-frame--cinema .fx-impact{width:110px;height:110px}
  .arena-frame--cinema .fx-impact:before,.arena-frame--cinema .fx-impact:after{width:150px}
  .arena-frame--cinema .combat-pop{font-size:29px}
}
body.motion-reduced .arena-frame--cinema .fx-layer{display:none}
body.motion-reduced .cinema-opening{animation:none;opacity:1}
.arena-frame--cinema.arena-frame--trio .fighter{width:min(27vw,360px)}
.arena-frame--cinema.arena-frame--trio .fighter-left{left:2%;bottom:3vh}
.arena-frame--cinema.arena-frame--trio .fighter-right{right:2%;bottom:3vh}
.arena-frame--cinema.arena-frame--trio .fighter-center{left:calc(50% - min(13.5vw,180px));bottom:12vh;transform:scale(.83);z-index:4}
.arena-frame--cinema.arena-frame--trio .fighter-art{width:min(26vw,350px);height:min(59vh,500px)}
.arena-frame--cinema.arena-frame--trio .versus-mark{top:70%;opacity:.45}
.trio-fx{position:absolute;inset:0;pointer-events:none;z-index:11;--glow:var(--element-color,#9cdef4)}
.trio-fx strong{position:absolute;left:var(--start-x);top:calc(var(--start-y) - 16%);transform:translate(-50%,-50%);padding:5px 12px;background:#0b172ada;border:1px solid var(--glow);color:#fff7dc;font-size:clamp(11px,1.3vw,19px);text-shadow:0 0 12px var(--glow);animation:trio-call var(--fx-duration) ease both}
.trio-fx i{position:absolute;left:var(--start-x);top:var(--start-y);width:clamp(60px,11vw,150px);height:clamp(60px,11vw,150px);border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff9 0,var(--glow) 18%,transparent 67%);box-shadow:0 0 60px 20px var(--glow);mix-blend-mode:screen;animation:trio-flight var(--fx-duration) ease-in-out both}
.trio-fx.is-support i{animation:trio-support var(--fx-duration) ease both}
.trio-fx span{position:absolute;left:var(--end-x);top:calc(var(--end-y) - 12%);transform:translate(-50%,-50%);color:#fff3d7;text-shadow:0 0 12px var(--glow),0 2px 5px #000;font-size:clamp(20px,3vw,45px);font-weight:900;animation:trio-hit var(--fx-duration) ease both}
@keyframes trio-call{0%,8%,88%,100%{opacity:0}18%,63%{opacity:1}}
@keyframes trio-flight{0%,14%{left:var(--start-x);top:var(--start-y);opacity:0;scale:.3}29%{opacity:1;scale:1}70%{left:var(--end-x);top:var(--end-y);opacity:1;scale:1.2}86%,100%{left:var(--end-x);top:var(--end-y);opacity:0;scale:2.4}}
@keyframes trio-support{0%,15%,100%{opacity:0;scale:.2}45%,76%{opacity:.8;scale:1.5}}
@keyframes trio-hit{0%,65%,100%{opacity:0;scale:.5}75%,90%{opacity:1;scale:1}}
@media(orientation:landscape) and (max-height:650px){.arena-frame--cinema.arena-frame--trio .fighter-art{width:27vw;height:62vh}.arena-frame--cinema.arena-frame--trio .fighter-center{bottom:9vh}}
