/* ===== HP bars (js/hpbar.js): 0 classic, 1 Fighter, 2 Crystal, 3 Energy. The bar's own box (.bs-hp .bar, .hpbar) keeps its size; .hb clears its old look ===== */
.hb { --c1:#2fcf86; --c2:#6af0b3; --dmg:#ffb347; --heal:#4ade9a; --ghost:#e8253f; --hghost:#d4ffe9; background:none !important; border:0 !important; overflow:visible !important; border-radius:0 !important; box-shadow:none !important; }
.hb .num { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:700 12px var(--display); letter-spacing:.08em; color:#fff; text-shadow:0 1px 2px #000, 0 0 8px rgba(0,0,0,.9); pointer-events:none; z-index:6; transition:color .3s; white-space:nowrap; }
.hb .num.d { color:var(--dmg); } .hb .num.h { color:var(--heal); }
.hb .fx { position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; z-index:7; }
.hb .pt { position:absolute; left:0; top:0; pointer-events:none; }
.hb.shake { animation:hbShake .35s linear; } .hb.shake2 { animation:hbShake2 .5s linear; }
@keyframes hbShake { 0%,100% { transform:none } 20% { transform:translate(-4px,1px) } 40% { transform:translate(3px,-1px) } 60% { transform:translate(-2px,1px) } 80% { transform:translate(1px,0) } }
@keyframes hbShake2 { 0%,100% { transform:none } 12% { transform:translate(-8px,2px) } 26% { transform:translate(7px,-2px) } 40% { transform:translate(-5px,1px) } 56% { transform:translate(4px,-1px) } 72% { transform:translate(-2px,1px) } 86% { transform:translate(1px,0) } }
.hb.mid { --c1:#e8a516; --c2:#fbd24a; } .hb.low { --c1:#e8384a; --c2:#ff7a86; }          /* green, yellow at half, red at a quarter, as before */

/* 1 Fighter: angled bar with notches; the lost part waits in gold, then drains */
.hb1 { filter:drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.hb1 .track { position:absolute; inset:0; clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); background:linear-gradient(#1c1b2b,#0b0b12); overflow:hidden; }
.hb1.right .track { transform:scaleX(-1); }
.hb1 .ticks { position:absolute; inset:0; z-index:4; background:repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0,0,0,.5) calc(10% - 2px) 10%); }
.hb1 .fill, .hb1 .ghost { position:absolute; left:0; top:0; bottom:0; width:100%; }
.hb1 .ghost { background:var(--ghost); z-index:1; }
.hb1 .fill { z-index:2; background:linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 45%, rgba(0,0,0,.25)), linear-gradient(90deg, var(--c1), var(--c2)); overflow:hidden; }
.hb1 .fill::after { content:''; position:absolute; inset:0; background:linear-gradient(105deg, transparent 42%, rgba(255,255,255,.6) 50%, transparent 58%); background-size:300% 100%; animation:hbShim 3.4s linear infinite; mix-blend-mode:overlay; }
@keyframes hbShim { from { background-position:150% 0 } to { background-position:-150% 0 } }
.hb1 .flash { position:absolute; inset:0; background:#fff; opacity:0; z-index:5; }
.hb1.low .fill { animation:hbLow .9s ease-in-out infinite; } @keyframes hbLow { 50% { filter:brightness(1.7) } }

/* 2 Crystal: ten crystals; one that empties shatters and stays cracked */
.hb2 .cells { position:absolute; inset:0; display:flex; gap:4px; filter:drop-shadow(0 0 5px color-mix(in srgb, var(--c1) 70%, transparent)) drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.hb2.right .cells { flex-direction:row-reverse; }
.hb2 .cell { flex:1; position:relative; clip-path:polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%); background:linear-gradient(#22203a,#0d0c18); }
.hb2 .cf { position:absolute; left:0; top:0; bottom:0; width:100%; transition:width .25s ease-out, filter .3s; background:linear-gradient(160deg, rgba(255,255,255,.75) 0 18%, rgba(255,255,255,0) 19% 55%, rgba(255,255,255,.18) 56% 62%, rgba(255,255,255,0) 63%), linear-gradient(180deg, var(--c2), var(--c1) 70%, color-mix(in srgb, var(--c1) 60%, #000)); }
.hb2.right .cf { left:auto; right:0; }
.hb2 .cf::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size:300% 100%; background-position:150% 0; animation:hbGlint 4.5s ease-in-out infinite; animation-delay:var(--dl); mix-blend-mode:overlay; }
@keyframes hbGlint { 0%,70% { background-position:150% 0 } 100% { background-position:-150% 0 } }
.hb2 .cell.pop .cf { animation:hbPop .45s ease-out; } @keyframes hbPop { 0% { filter:brightness(3) } 100% { filter:none } }
.hb2 .cell.brk { animation:hbBrk .3s ease-out; } @keyframes hbBrk { 0% { filter:brightness(4) } 100% { filter:none } }
.hb2 .cell.cracked::after { content:''; position:absolute; inset:0; background:linear-gradient(118deg, transparent 46%, rgba(255,255,255,.22) 47% 49%, transparent 50%), linear-gradient(62deg, transparent 58%, rgba(255,255,255,.14) 59% 60%, transparent 61%); }
.hb2.low .cells { animation:hbLowC .9s ease-in-out infinite; }
@keyframes hbLowC { 50% { filter:drop-shadow(0 0 12px #ff3b55) drop-shadow(0 3px 6px rgba(0,0,0,.6)) } }

/* 3 Energy: light flowing in a glass tube with a burning front edge */
.hb3 .track { position:absolute; inset:0; border-radius:999px; background:linear-gradient(#0b0b14,#16152a); border:1px solid rgba(255,255,255,.18); box-shadow:inset 0 2px 6px rgba(0,0,0,.8), 0 0 18px color-mix(in srgb, var(--c1) 35%, transparent); overflow:hidden; }
.hb3.right .track { transform:scaleX(-1); }
.hb3 .fill, .hb3 .ghost { position:absolute; left:0; top:0; bottom:0; width:100%; border-radius:999px; }
.hb3 .ghost { background:linear-gradient(90deg, rgba(255,240,220,.15), rgba(255,200,140,.85)); opacity:0; }
.hb3 .fill { overflow:hidden; background:linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%), linear-gradient(90deg, color-mix(in srgb, var(--c1) 70%, #000), var(--c1) 55%, var(--c2)); }
.hb3 .fill::before, .hb3 .fill::after { content:''; position:absolute; inset:0; mix-blend-mode:screen; }
.hb3 .fill::before { background:radial-gradient(ellipse 45px 130% at 50% 60%, rgba(255,255,255,.38), transparent 70%); background-size:170px 100%; animation:hbFlow1 2.2s linear infinite; }
.hb3 .fill::after { background:radial-gradient(ellipse 70px 120% at 50% 30%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 70%); background-size:260px 100%; animation:hbFlow2 3.6s linear infinite; }
@keyframes hbFlow1 { to { background-position:170px 0 } } @keyframes hbFlow2 { to { background-position:260px 0 } }
.hb3 .edge { position:absolute; top:-3px; bottom:-3px; width:4px; margin-left:-2px; border-radius:4px; background:#fff; box-shadow:0 0 6px 2px var(--c2), 0 0 16px 4px var(--c1); animation:hbFlick .18s steps(2) infinite; z-index:5; }
@keyframes hbFlick { 50% { opacity:.75 } }
.hb3 .edge.flare { animation:hbFlare .5s ease-out; } @keyframes hbFlare { 0% { transform:scaleY(1.9); box-shadow:0 0 10px 5px #fff, 0 0 30px 10px var(--dmg) } }
.hb3 .edge.gone { opacity:0; }
.hb3 .wave { position:absolute; top:0; bottom:0; width:80px; left:-80px; background:linear-gradient(90deg, transparent, rgba(160,255,200,.85), transparent); mix-blend-mode:screen; opacity:0; }
.hb3.low .track { animation:hbLowV .9s ease-in-out infinite; }
@keyframes hbLowV { 50% { box-shadow:inset 0 2px 6px rgba(0,0,0,.8), 0 0 26px #ff3b55 } }

/* the effects lab opens straight into the lab: no loading screen, title or menu */
html.lab #loader, html.lab #title { display:none !important; }

/* 4 Framed (the default): a metal frame with pointed ends, the fill ends in a point too */
.hb4 { filter:drop-shadow(0 0 6px rgba(150,160,255,.22)) drop-shadow(0 3px 8px rgba(0,0,0,.65)); }
.hb4 .frame { position:absolute; inset:0; clip-path:polygon(12px 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,12px 100%,0 50%); background:linear-gradient(180deg,#f1f3fa 0%,#8b91a8 22%,#2f3347 52%,#a9afc2 80%,#555a70 100%); }
.hb4 .track { position:absolute; inset:2px; clip-path:polygon(11px 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,11px 100%,0 50%); background:linear-gradient(#06070f,#15172b); }
.hb4 .track::after { content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(255,255,255,.07), inset 0 4px 8px rgba(0,0,0,.7); pointer-events:none; }
.hb4 .lane { position:absolute; left:3px; right:3px; top:3px; bottom:3px; }          /* the fill runs right into both pointed ends, with an even thin gap to the frame */
.hb4 .fill, .hb4 .ghost { position:absolute; left:0; top:0; bottom:0; width:100%; clip-path:polygon(8px 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,8px 100%,0 50%); }
.hb4 .ghost { background:var(--ghost); }
.hb4 .fill { background:linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 48%, rgba(0,0,0,.12) 52%, rgba(0,0,0,.2)), linear-gradient(90deg, var(--c1), var(--c2)); filter:drop-shadow(0 0 6px color-mix(in srgb, var(--c1) 60%, transparent)); }
.hb4 .fill::after { content:''; position:absolute; inset:0; background:linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%); background-size:300% 100%; animation:hbShim 3.6s linear infinite; mix-blend-mode:overlay; }
.hb4 .flash { position:absolute; inset:0; background:#fff; opacity:0; }
.hb4.low .fill { animation:hbLow .9s ease-in-out infinite; }
.hb4 .num { font-size:13px; letter-spacing:.1em; }

/* ===== battle scene: framed HP plates (name, stage, element badge, numbers), move badges beside the cards, VS between them ===== */
.bs-hp { top:14px; width:590px; height:126px; padding:16px 34px 0 32px; z-index:6; filter:drop-shadow(0 10px 20px rgba(0,0,0,.6)); --ec:#8d86ff; }
.bs-hp.l { left:20px; } .bs-hp.r { right:20px; left:auto; }
.bs-hp::before, .bs-hp::after { content:''; position:absolute; z-index:-1; clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px); }
.bs-hp::before { inset:0; background:linear-gradient(90deg, var(--ec), transparent 12%), linear-gradient(180deg,#f3f5fb 0%,#8c92a8 20%,#30344a 50%,#a3a9bd 78%,#4d5267 100%); }
.bs-hp.r::before { background:linear-gradient(270deg, var(--ec), transparent 12%), linear-gradient(180deg,#f3f5fb 0%,#8c92a8 20%,#30344a 50%,#a3a9bd 78%,#4d5267 100%); }
.bs-hp::after { inset:3px; clip-path:polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px); background:radial-gradient(ellipse 60% 120% at 0% 100%, color-mix(in srgb, var(--ec) 16%, transparent), transparent 70%), linear-gradient(180deg,#141628,#080912 70%); }
.bs-hp.r::after { background:radial-gradient(ellipse 60% 120% at 100% 100%, color-mix(in srgb, var(--ec) 16%, transparent), transparent 70%), linear-gradient(180deg,#141628,#080912 70%); }
.bs-hp .bh-top { display:flex; align-items:center; gap:14px; height:40px; }
.bs-hp .bn, .bs-hp.r .bn { font:800 31px var(--display); letter-spacing:.07em; color:#fff; margin:0; text-align:left; text-shadow:0 2px 6px rgba(0,0,0,.7); white-space:nowrap; }
.bs-hp .bs-lv { font:600 13px var(--display); letter-spacing:.16em; color:#b6b9cc; padding:5px 12px; border-radius:7px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.13); }
.bs-hp .bs-lv:empty { display:none; }
.bs-hp .bs-num { margin-left:auto; font:700 22px var(--display); letter-spacing:.05em; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.7); white-space:nowrap; transition:color .3s; }
.bs-hp .bs-num.d { color:#ffb347; } .bs-hp .bs-num.h { color:#4ade9a; }
.bs-hp .bh-row { position:relative; margin-top:10px; height:36px; display:flex; align-items:center; }
.bs-hp .bar { flex:1; height:30px; margin-left:50px; }
.bs-hp .bar > span, .bs-hp .bar .num { display:none; }
.bs-hp .bs-el { position:absolute; left:-6px; top:50%; width:58px; height:52px; transform:translateY(-50%); z-index:8; clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background:linear-gradient(180deg,#f3f5fb,#8c92a8 30%,#2c3044 55%,#a3a9bd 85%,#4d5267); filter:drop-shadow(0 0 8px var(--ec)); }
.bs-hp .bs-el::before { content:''; position:absolute; inset:3px; clip-path:inherit; background:radial-gradient(ellipse 70% 70% at 50% 50%, color-mix(in srgb, var(--ec) 40%, #0b0c18), #0b0c18 80%); }
.bs-hp .bs-el::after { content:''; position:absolute; inset:3px; clip-path:inherit; box-shadow:inset 0 0 0 2px var(--ec); opacity:.85; }
.bs-hp .bs-el i { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:1; font-style:normal; font-size:24px; }
.bs-hp .bs-el i :is(img,canvas), .bs-hp .bs-el i svg { width:30px; height:30px; filter:drop-shadow(0 0 6px var(--ec)); }

/* the move each beast picked sits beside its card */
.bs-pick { top:300px !important; width:150px !important; flex-direction:column; justify-content:center; text-align:center; gap:6px; padding:14px 10px 13px !important; }
.bs-pick.l { left:14px !important; } .bs-pick.r { left:1116px !important; }
.bs-pick span { align-items:center; } .bs-pick small { white-space:normal; text-align:center; line-height:1.3; }

/* VS: a slash of light with metal letters; it slams in when the scene opens, shimmers while you wait and steps aside when the moves fly */
#bs-vs { position:absolute; left:640px; top:440px; width:0; height:0; z-index:4; pointer-events:none; transition:opacity .35s, transform .35s; }
#battle.fight #bs-vs { opacity:0; transform:scale(.85); }
#bs-vs .vs-beam { position:absolute; left:-3px; top:-210px; width:6px; height:420px; transform:rotate(16deg); background:linear-gradient(180deg, transparent, rgba(185,168,255,.9) 25%, #fff 50%, rgba(185,168,255,.9) 75%, transparent); box-shadow:0 0 18px 4px rgba(106,77,255,.75); animation:vsBeam 2.4s ease-in-out infinite; }
#bs-vs .vs-beam.b2 { left:22px; top:-150px; width:2px; height:300px; opacity:.6; animation-delay:-1.2s; box-shadow:0 0 10px 2px rgba(106,77,255,.6); }
@keyframes vsBeam { 0%,100% { filter:brightness(1) } 50% { filter:brightness(1.6) } 52% { filter:brightness(.8) } 54% { filter:brightness(1.5) } }
#bs-vs .vs-flare { position:absolute; left:-240px; top:-1px; width:480px; height:2px; background:linear-gradient(90deg, transparent, rgba(185,168,255,.8) 35%, #fff 50%, rgba(185,168,255,.8) 65%, transparent); opacity:0; }
#bs-vs .vs-t { position:absolute; left:0; top:0; transform:translate(-50%,-52%); font:italic 800 104px/1 var(--display); letter-spacing:-.02em; padding:0 10px; color:transparent; background:linear-gradient(180deg,#ffffff 0%,#ece8ff 34%,#9c8cff 50%,#3d2bd6 51%,#7f6bff 70%,#d9d0ff 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-stroke:1.5px rgba(255,255,255,.75); filter:drop-shadow(0 0 14px rgba(106,77,255,.9)) drop-shadow(0 5px 0 #12093f); }
#bs-vs .vs-t::after { content:attr(data-t); position:absolute; inset:0; padding:0 10px; background:linear-gradient(100deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%); background-size:300% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-stroke:0; animation:vsSheen 2.8s linear infinite; }
@keyframes vsSheen { from { background-position:150% 0 } to { background-position:-150% 0 } }
#bs-vs .vs-sp { position:absolute; left:0; top:0; width:2px; height:12px; border-radius:2px; background:linear-gradient(#fff, rgba(185,168,255,0)); box-shadow:0 0 6px #b9a8ff; opacity:0; animation:vsSp 2.2s linear infinite; }
#bs-vs .vs-sp:nth-of-type(5) { animation-delay:-.4s; --dx:-18px; } #bs-vs .vs-sp:nth-of-type(6) { animation-delay:-.9s; --dx:14px; } #bs-vs .vs-sp:nth-of-type(7) { animation-delay:-1.3s; --dx:-6px; } #bs-vs .vs-sp:nth-of-type(8) { animation-delay:-1.7s; --dx:24px; } #bs-vs .vs-sp:nth-of-type(9) { animation-delay:-2s; --dx:-26px; }
@keyframes vsSp { 0% { opacity:0; transform:translate(calc(var(--dx,0px) + 50px), 170px) rotate(16deg) } 15% { opacity:1 } 100% { opacity:0; transform:translate(calc(var(--dx,0px) - 50px), -170px) rotate(16deg) } }
#bs-vs.in .vs-t { animation:vsSlam .6s cubic-bezier(.2,1.5,.35,1) both; }
#bs-vs.in .vs-beam { animation:vsBeamIn .45s ease-out both, vsBeam 2.4s ease-in-out .45s infinite; }
#bs-vs.in .vs-flare { animation:vsFlare .7s ease-out .18s both; }
@keyframes vsSlam { 0% { opacity:0; transform:translate(-50%,-52%) scale(3); filter:blur(10px) brightness(3) } 60% { opacity:1; filter:blur(0) brightness(1.8) drop-shadow(0 0 30px #b9a8ff) } 100% { opacity:1; transform:translate(-50%,-52%) scale(1) } }
@keyframes vsBeamIn { 0% { transform:rotate(16deg) scaleY(0); filter:brightness(3) } 100% { transform:rotate(16deg) scaleY(1) } }
@keyframes vsFlare { 0% { opacity:1; transform:scaleX(.1) } 40% { opacity:1; transform:scaleX(1) } 100% { opacity:0; transform:scaleX(1.3) } }
.hb .fill, .hb .ghost { left:0 !important; right:auto !important; }          /* the old rule that anchored the Rival's fill to the right doesn't apply to these bars */
.hb .num { text-shadow:0 0 2px #000, 0 0 2px #000, 0 1px 3px #000, 0 0 10px rgba(0,0,0,.9); }
.hb.low .ghost { --ghost:#ff9aa6; }          /* on a red bar the lost part shows as a lighter red so it still stands out */
.hb.low .fill, .hb.low .cells, .hb.low .track { animation:none !important; }          /* no pulsing at low HP (user): the red colour says it */
.hb4 .num { line-height:1; padding-top:2px; }          /* Oxanium's capitals sit high in their line box: nudged to the true middle */

/* VS needle beams (user 2026-10-09): the slash lines taper to sharp points instead of ending as glowing rectangles;
   the glow lives inside the needle shape (a wide soft gradient clipped to a long thin rhombus), so nothing boxy shows.
   The italic VS leans right, so its box sits a little left to look centred between the two cards. */
#bs-vs .vs-beam { left:-13px; width:26px; box-shadow:none; clip-path:polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:linear-gradient(90deg, transparent 8%, rgba(106,77,255,.55) 32%, rgba(200,188,255,.95) 46%, #fff 50%, rgba(200,188,255,.95) 54%, rgba(106,77,255,.55) 68%, transparent 92%); }
#bs-vs .vs-beam.b2 { left:17px; width:12px; box-shadow:none; }
#bs-vs .vs-flare { top:-6px; height:12px; clip-path:polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  background:linear-gradient(180deg, transparent 10%, rgba(185,168,255,.7) 40%, #fff 50%, rgba(185,168,255,.7) 60%, transparent 90%); }
#bs-vs .vs-t { left:-14px; }

/* VS art (user 2026-10-11, "Centered Violet Lightning VS Overlay", black made transparent: assets/ui/battle-vs.webp): it replaces the drawn beams and letters.
   The bolt strikes down from the top, the VS slams in, then a brighter copy flickers over it like live current */
#bs-vs .vs-beam, #bs-vs .vs-flare, #bs-vs .vs-t { display:none; }
#bs-vs .vs-art { position:absolute; left:-228px; top:-318px; width:440px; height:660px; max-width:none; }
#bs-vs .vs-live { mix-blend-mode:plus-lighter; opacity:0; animation:vsLive 2.6s steps(1) infinite; }
#bs-vs.in .vs-art:not(.vs-live) { animation:vsArtIn .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes vsArtIn { 0% { clip-path:inset(0 0 100% 0); transform:scale(1.25); filter:brightness(2.6) } 35% { clip-path:inset(0 0 0 0); filter:brightness(2.2) } 100% { clip-path:inset(0 0 0 0); transform:scale(1); filter:brightness(1) } }
@keyframes vsLive { 0% { opacity:.15 } 8% { opacity:.5 } 10% { opacity:.1 } 31% { opacity:.35 } 33% { opacity:.05 } 52% { opacity:.6 } 54% { opacity:.2 } 56% { opacity:.55 } 60% { opacity:.1 } 78% { opacity:.3 } 80% { opacity:.08 } }
.calm #bs-vs .vs-live { animation:none; }
/* VS smaller and behind the attacks (user 2026-10-11): z-index auto keeps it in DOM order, so #bs-pixi (inserted later) draws over it */
#bs-vs { z-index:auto; }
#bs-vs .vs-art { left:-155px; top:-217px; width:300px; height:450px; }
/* no flashes on the VS (user 2026-10-11): the plus-lighter flicker copy is off; the Pixi lightning runs behind the art */
#bs-vs .vs-live { display:none; }

/* the user's banner art (2026-10-11): BATTLE START, ROUND 1-5, BEAST DEFEATED as pictures, kept modest in size; the first-strike line stays under ROUND */
#banner.art { top:236px; padding:14px 0; background:radial-gradient(ellipse 40% 58% at 50% 48%, rgba(7,6,16,.9), rgba(7,6,16,.72) 55%, transparent 82%); -webkit-mask-image:none; mask-image:none; }
#banner.art .bt { line-height:0; }
#banner.art .bn-art { height:150px; width:auto; display:inline-block; }
#banner.art .bn-art[src*="battle-start"] { height:120px; }   /* user 2026-10-11: BATTLE START letters the same size as ROUND 1 */
#banner.art.show .bn-art { animation:bnIn .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes bnIn { from { transform:scale(1.3); opacity:0; filter:brightness(2.4); } 60% { filter:brightness(1.3); } }
#banner.art .bs { margin-top:4px; } #banner.rnd.art .rb-f { margin-top:2px; }
.calm #banner.art.show .bn-art { animation:none; }

/* CLASH! banner (user art 2026-10-12): slams in over a PixiJS burst (js/clashfx.js) */
#banner.clash .bn-art { height:190px; }
#banner.clash.show .bn-art { animation:clashIn .55s cubic-bezier(.2,1.5,.35,1) both; }
@keyframes clashIn { 0% { transform:scale(1.9); opacity:0; filter:brightness(2.4); } 45% { transform:scale(.94); opacity:1; } 60% { transform:translateX(-6px) scale(1.02); } 75% { transform:translateX(5px); } 100% { transform:none; filter:none; } }
#banner .clash-fx { position:absolute; left:50%; top:50%; width:1200px; height:560px; transform:translate(-50%,-50%); z-index:-1; pointer-events:none; }
.calm #banner.clash.show .bn-art { animation:none; }
/* the VS stays between the two beasts during the fight (user 2026-10-12) */
#battle.fight #bs-vs { opacity:1; transform:none; }

/* clash reveal: each pick wears its move's colour (Strike red, Technique green, Special violet): tinted card, solid colour badge with a white icon, colour name (user 2026-10-20) */
.bs-pick { background:color-mix(in srgb, var(--pc) 24%, rgba(8,6,20,.82)) !important; border:2px solid var(--pc) !important; border-top-width:7px !important; opacity:1 !important; }
.bs-pick .pk-ic { width:56px; height:56px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--pc); box-shadow:0 0 18px color-mix(in srgb, var(--pc) 65%, transparent); }
.bs-pick .pk-ic :is(img,canvas).mi { width:32px !important; height:32px !important; object-fit:contain; filter:brightness(0) invert(1) !important; }
.bs-pick b { font-size:15px !important; filter:brightness(1.5) !important; }
.bs-pick small { font-size:13px !important; font-weight:600 !important; color:#fff !important; }

/* move reveal banner: Name [icon] VS [icon] Name, each half in its move colour */
#banner.atk .bt { display:flex; align-items:center; justify-content:center; gap:26px; line-height:1.1; }
#banner .bv { --pc:#fff; display:flex; align-items:center; gap:16px; }
#banner .bv[data-mv="0"] { --pc:#ff6b7a; } #banner .bv[data-mv="1"] { --pc:#4ade9a; } #banner .bv[data-mv="2"] { --pc:#8d86ff; }
#banner .bv b { font:700 50px var(--display); letter-spacing:-.02em; color:var(--pc); filter:brightness(1.25); text-shadow:0 0 22px color-mix(in srgb, var(--pc) 55%, transparent); }
#banner .bv .pk-ic { width:92px; height:92px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--pc); box-shadow:0 0 30px color-mix(in srgb, var(--pc) 70%, transparent); }
#banner .bv .pk-ic :is(img,canvas).mi { width:54px !important; height:54px !important; margin:0; object-fit:contain; filter:brightness(0) invert(1); }
#banner .bv-vs { font:700 30px var(--display); font-style:normal; letter-spacing:.2em; color:#fff; opacity:.9; }

/* the two side badges are gone: the move being played shows in the middle while that beast attacks */
.bs-pick { display:none !important; }
#bs-now { position:absolute; left:640px; top:228px; transform:translateX(-50%); width:230px; display:flex; flex-direction:column; align-items:center; gap:5px; padding:12px 12px 11px; text-align:center; border-radius:14px; z-index:7; pointer-events:none; opacity:0; --pc:#fff;
  background:color-mix(in srgb, var(--pc) 24%, rgba(8,6,20,.86)); border:2px solid var(--pc); border-top-width:7px; box-shadow:0 0 30px color-mix(in srgb, var(--pc) 55%, transparent); transition:opacity .2s; }
#bs-now.on { opacity:1; animation:nowIn .3s var(--ease, ease-out) both; }
@keyframes nowIn { from { transform:translateX(-50%) scale(.8); } to { transform:translateX(-50%) scale(1); } }
#bs-now[data-mv="0"] { --pc:#ff6b7a; } #bs-now[data-mv="1"] { --pc:#4ade9a; } #bs-now[data-mv="2"] { --pc:#8d86ff; }
#bs-now span { display:flex; flex-direction:column; align-items:center; }
#bs-now b { font:700 15px var(--display); letter-spacing:.2em; color:var(--pc); filter:brightness(1.5); }
#bs-now small { font:600 14px var(--ui); color:#fff; }
#bs-now .pk-ic { width:56px; height:56px; border-radius:50%; background:var(--pc); display:flex; align-items:center; justify-content:center; }
#bs-now .pk-ic :is(img,canvas).mi { width:32px; height:32px; object-fit:contain; filter:brightness(0) invert(1); }

/* the middle move marker is just the icon: it pops in and fades away, subtle (user 2026-10-22) */
#bs-now { width:auto; padding:0; background:none !important; border:0 !important; box-shadow:none !important; gap:0; top:300px; }
#bs-now span { display:none; }
#bs-now .pk-ic { width:64px; height:64px; opacity:.9; box-shadow:0 0 22px color-mix(in srgb, var(--pc) 60%, transparent); }
#bs-now .pk-ic :is(img,canvas).mi { width:36px; height:36px; }
#bs-now.on { animation:nowPop 1.1s ease-out both; opacity:0; }
@keyframes nowPop { 0% { opacity:0; transform:translateX(-50%) scale(.55); } 18% { opacity:1; transform:translateX(-50%) scale(1.08); } 32% { transform:translateX(-50%) scale(1); } 100% { opacity:0; transform:translateX(-50%) scale(1) translateY(-14px); } }

/* battle plate numbers: HP left big, max small; a defeated beast's plate greys out and says KNOCKED OUT */
.bs-hp .bs-num b { font-size:28px; font-weight:800; }
.bs-hp .bs-num small { font-size:15px; font-weight:600; opacity:.6; letter-spacing:.04em; }
.bs-hp .bs-num b.ko { font-size:20px; letter-spacing:.16em; color:#ff5468; }
.bs-hp.ko { filter:grayscale(.75) brightness(.8) drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.bs-hp.ko .bn { color:#9a9db0; }

/* clash on the board (2026-10-23): the sprites sit over the board's own cards, so the scene's plates, picks, VS and floor stay away */
#battle.onboard .bs-hp, #battle.onboard .bs-pick, #battle.onboard #bs-vs, #battle.onboard #bs-floor { display:none !important; }
#battle.onboard .spr { object-fit:fill; filter:drop-shadow(0 8px 12px rgba(0,0,0,.5)); }

/* the board's HP bar when its beast is shattered (same look as the battle plate) */
.hpbar.hb-ko { filter:grayscale(.75) brightness(.85); }
.hpbar.hb-ko .num, .hpbar.hb-ko span { color:#ff5468; letter-spacing:.14em; }

.sup .cn :is(img,canvas).mi.tx { height:1.15em; width:auto; vertical-align:-.22em; margin-right:.25em; }
.sup span :is(img,canvas).mi.tx, .scd-ab :is(img,canvas).mi.tx, .pk-w :is(img,canvas).mi.tx { height:1.15em; width:auto; vertical-align:-.22em; margin-right:.25em; }

/* move words in text: coloured badge with the white icon, word in the move colour */
.mvc { display:inline-flex; align-items:center; justify-content:center; width:1.45em; height:1.45em; border-radius:50%; vertical-align:-.08em; margin-right:.3em; font-style:normal; background:var(--mc); }
.mvc :is(img,canvas).mi.tx { height:.9em !important; width:auto; margin:0 !important; vertical-align:0 !important; filter:brightness(0) invert(1); }
.mvc.c0 { --mc:#ff6b7a; } .mvc.c1 { --mc:#4ade9a; } .mvc.c2 { --mc:#8d86ff; }
.mvw.c0 { color:#ff8a96; } .mvw.c1 { color:#6df0b4; } .mvw.c2 { color:#a9a4ff; }
.mvw { font-weight:700; white-space:nowrap; }
