/* Sword-duel art and finite, non-blocking combat effects. */
.game{position:relative}.arena{isolation:isolate}.enemy-art{background-image:url('assets/duelists.jpg');background-position-y:26%;filter:contrast(1.04) saturate(.85)}.stage-1 .enemy-art{background-position-y:30%}.stage-2 .enemy-art{background-position-y:24%}.arena-mark{display:none}.enemy-info,.intent{z-index:4}.vignette{background:linear-gradient(#07121bb5,transparent 36%,#08121be6 100%)}.arena:after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #b4d8df22;box-shadow:inset 0 0 28px #0008;z-index:6}.combo{z-index:5;right:17px;top:65px}.combo b{font-size:47px}.combo.on{text-shadow:0 0 16px #12232e,0 0 26px #b4f8ff77}.duel-caption{position:absolute;bottom:42px;left:0;right:0;text-align:center;color:#d3dfdc8c;font:8px Georgia,serif;letter-spacing:3px;pointer-events:none}.player-steel{position:absolute;bottom:15px;left:-12px;right:-12px;height:95px;pointer-events:none;opacity:.72;z-index:2}.player-steel svg{width:100%;height:100%;overflow:visible}.player-steel .steel-left{fill:url(#steel-cyan);stroke:#b9edef;stroke-width:.6}.player-steel .steel-right{fill:url(#steel-gold);stroke:#f3d4a2;stroke-width:.6}.player-steel .guard{fill:#192e39;stroke:#b5b99c;stroke-width:1.2}.combat-fx{z-index:7;overflow:visible;--blade:#a7f8ff;--blade-dim:#2f9bac}.combat-fx.right{--blade:#ffe4a1;--blade-dim:#d78837}.combat-fx.active{display:block}.combat-fx>i{display:none!important}.blade-arcs{position:absolute;inset:-28% -12%;width:124%;height:156%;overflow:visible;filter:drop-shadow(0 0 7px var(--blade))}.blade-arcs path{fill:none;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:blade-draw .48s cubic-bezier(.12,.8,.2,1) both}.blade-arcs .aura{stroke:var(--blade-dim);stroke-width:23;opacity:.38}.blade-arcs .edge{stroke:var(--blade);stroke-width:8}.blade-arcs .core{stroke:#fffef0;stroke-width:2.5}.arc-second{display:none;transform:translate(500px,0) scaleX(-1)}.right .arc-first{transform:translate(500px,0) scaleX(-1)}.alternate .arc-second,.special .arc-second{display:block}.alternate .arc-second path{animation-delay:.08s}.alternate .arc-second .edge{stroke:#ffe4ac}.alternate .arc-second .aura{stroke:#d78837}.alternate .arc-second .core{stroke:#fffef0}.right.alternate .arc-second{transform:none}.right.alternate .arc-second .edge{stroke:#a7f8ff}.right.alternate .arc-second .aura{stroke:#2f9bac}.special .blade-arcs{inset:-50% -25%;width:150%;height:200%}.special .blade-arcs path{animation-duration:.72s;stroke-width:10}.special .blade-arcs .core{stroke-width:3}.special .blade-arcs .aura{stroke-width:35}.special .arc-second path{animation-delay:.1s}.impact-bloom{position:absolute;width:160px;height:160px;left:calc(50% - 80px);top:calc(50% - 80px);border-radius:50%;background:radial-gradient(circle,#fffbdcbd, var(--blade) 4%,transparent 65%);animation:blade-bloom .45s ease-out both;mix-blend-mode:screen}.impact-ring{position:absolute;inset:16% 28%;border:2px solid var(--blade);border-radius:50%;animation:blade-ring .5s ease-out both;box-shadow:0 0 12px var(--blade),inset 0 0 12px var(--blade)}.metal-sparks{position:absolute;inset:0;overflow:visible}.metal-sparks span{position:absolute;left:50%;top:48%;width:var(--length);height:2px;border-radius:50%;background:#ffedba;box-shadow:0 0 5px #ffc16e;animation:steel-spark .5s ease-out both;animation-delay:var(--lag)}.combat-fx strong{z-index:3;top:31%;font-size:43px;letter-spacing:1px;color:#fff6df;text-shadow:0 2px 5px #000,0 0 18px #295466;animation:hit-number .6s ease-out both}.combat-fx.special strong{font-size:25px;top:20%}.strike .enemy-art{animation:steel-recoil .28s ease-out}.strike .player-steel{animation:player-cut .24s ease-out}.defeated .enemy-art{filter:grayscale(.8) contrast(1.2);opacity:.24}.finisher{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden;display:none;--blade:#b6ffff}.finisher.active{display:block}.finisher-veil{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,#18384433,#02080fcc);animation:finisher-veil .95s ease-out both}.finisher-core{position:absolute;left:50%;top:40%;width:min(110vw,620px);aspect-ratio:1;transform:translate(-50%,-50%)}.finisher-core svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 12px #a9e6ea)}.finisher-core path{fill:none;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:ultimate-cut .8s ease-out both}.finisher-core .edge{stroke:#a5edee;stroke-width:10}.finisher-core .gold{stroke:#ffdda0;animation-delay:.09s}.finisher-core .core{stroke:#ffffed;stroke-width:2.5}.finisher-core .core.gold{stroke:#ffffed}.finisher-circle{position:absolute;inset:14%;border:2px solid #deebd9;border-radius:50%;animation:ultimate-ring .85s .12s ease-out both;box-shadow:0 0 22px #b5e7dd}.finisher-caption{position:absolute;top:62%;left:10px;right:10px;text-align:center;color:#fff2ce;text-shadow:0 2px 10px #000,0 0 22px #85c5ce;animation:finisher-title .95s ease-out both}.finisher-caption small{display:block;font:10px Georgia,serif;letter-spacing:5px;margin-bottom:12px}.finisher-caption strong{font-family:'Yu Mincho',serif;font-weight:500;font-size:38px;letter-spacing:8px}.finisher-caption span{display:block;font:13px Georgia,serif;letter-spacing:4px;margin-top:12px}.unleashed .arena{animation:duel-quake .4s .12s ease-out}.dialog-logo{position:relative}.dialog-logo:before{content:'';display:block;position:absolute;inset:-28px -24px -15px;background:linear-gradient(#0c182966,#10171fe8),url('assets/duelists.jpg') 0% 35%/300% auto no-repeat;z-index:-1;border-radius:10px}.dialog-logo{isolation:isolate}.dialog-logo svg{stroke:#d8f5ee;filter:drop-shadow(0 0 12px #7fd5db88)}
@keyframes blade-draw{0%{stroke-dashoffset:1;opacity:0}12%{opacity:1}48%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-.12;opacity:0}}
@keyframes blade-bloom{0%{scale:.05;opacity:0}24%{scale:.8;opacity:.65}100%{scale:1.8;opacity:0}}
@keyframes blade-ring{0%{scale:.1;opacity:0}22%{opacity:.8}100%{scale:2.4;opacity:0}}
@keyframes steel-spark{0%{opacity:0;transform:rotate(var(--angle)) translateX(3px) scaleX(.4)}12%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--reach)) scaleX(.15)}}
@keyframes hit-number{0%{opacity:0;transform:scale(1.5) translateY(5px)}20%{opacity:1;transform:scale(1) translateY(0)}70%{opacity:1}100%{opacity:0;transform:scale(.92) translateY(-26px)}}
@keyframes steel-recoil{20%{transform:translate(5px,-2px) scale(1.045);filter:brightness(1.5)}45%{transform:translate(-4px,1px) scale(1.02)}100%{transform:none}}
@keyframes player-cut{0%{transform:translateY(10px)}40%{transform:translateY(-14px) scale(1.08)}100%{transform:none}}
@keyframes ultimate-cut{0%{stroke-dashoffset:1;opacity:0}15%{opacity:1}40%{stroke-dashoffset:0;opacity:1}70%{opacity:1}100%{stroke-dashoffset:-.15;opacity:0}}
@keyframes ultimate-ring{0%{scale:.2;opacity:0}20%{opacity:.7}100%{scale:2.2;opacity:0}}
@keyframes finisher-veil{0%{opacity:0}18%,65%{opacity:1}100%{opacity:0}}
@keyframes finisher-title{0%{opacity:0;transform:translateY(12px)}26%,70%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-6px)}}
@keyframes duel-quake{20%{transform:translate(-4px,2px)}40%{transform:translate(4px,-2px)}60%{transform:translate(-2px,1px)}100%{transform:none}}
@media(max-height:850px) and (max-width:699px){.arena{height:210px}.enemy-art{background-position-y:26%}}
@media(prefers-reduced-motion:reduce){.blade-arcs,.impact-bloom,.impact-ring,.metal-sparks,.finisher,.player-steel{display:none!important}.strike .enemy-art,.unleashed .arena{animation:none!important;filter:none}.combat-fx strong{animation:none!important;opacity:1;font-size:28px}.combat-fx.special strong{font-size:23px}}
