/* BAM Arena v3. No zoom. All dimensions use real CSS pixels. */
body:has(#app.duel-on){background:radial-gradient(ellipse at 50% 15%,#182940,#080d19 70%)!important;color:#eef4ff!important;--fg:#eef4ff;--muted:#a1b3cb;--line:#2d435e;--panel:#131e30;--panel-2:#1b2a40;--accent:#e8c47f;--me:#72d9ff;--rival:#ff8bac;overflow-x:hidden}
body:has(#app.duel-on) > header,body:has(#app.duel-on) .ux-banner,body:has(#app.duel-on) .ux-strip,body:has(#app.duel-on) .credits2,body:has(#app.duel-on) [class^="lw-"]{display:none!important}
#app.duel-on{--c:clamp(80px,calc((100dvh - 340px)/3),142px);--hand-w:clamp(75px,calc((100dvh - 340px)/3),130px);display:grid!important;grid-template-columns:minmax(155px, .84fr) minmax(0,4fr) minmax(220px,1.12fr)!important;gap:12px!important;align-items:start!important;max-width:1800px!important;width:100%!important;margin:0 auto!important;padding:12px!important;min-height:100dvh!important}
#app.duel-on .duel-left{display:flex;gap:10px;min-width:0}
#app.duel-on .box{background:linear-gradient(155deg,#172437,#101a2a)!important;border:1px solid #30445d!important;border-radius:13px!important;box-shadow:0 8px 22px #0003!important;padding:12px!important;gap:8px!important;color:#eef4ff!important}
#app.duel-on .duel-left small,#app.duel-on .duel-side h2{color:#79d9f7!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
#app.duel-on .duel-left b{font-size:16px;color:#edf4ff}
#app.duel-on .note{color:#b3c4d9!important;line-height:1.45}
#app.duel-on .arena-wrap{zoom:1!important;min-height:0!important;height:auto!important;overflow:hidden;border:1px solid #52647e!important;border-radius:18px!important;box-shadow:0 12px 40px #0006;animation:none!important;position:relative;isolation:isolate}
#app.duel-on .arena{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;background:linear-gradient(160deg,#30243a 0%,#152339 45%,#102d3c 100%)!important;border:0!important;border-radius:0!important;overflow:visible!important}
#app.duel-on .side{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:5px!important;padding:8px 12px!important;min-height:0!important;background:repeating-linear-gradient(135deg,transparent 0 27px,#b9c9ff08 28px 29px)!important;border:0!important;overflow:visible!important}
#app.duel-on .side.tb::before{opacity:.12!important} #app.duel-on .side.tb::after{opacity:.1!important}
#app.duel-on .side.active{box-shadow:inset 0 0 25px #72d9ff13!important}
#app.duel-on .corner-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;width:100%;gap:8px;min-width:0}
#app.duel-on .profile{position:relative!important;inset:auto!important;flex:0 0 auto;display:grid!important;grid-template-columns:36px auto;grid-template-rows:auto auto auto;column-gap:7px;row-gap:0;align-items:center;width:auto!important;text-align:left;padding:0!important}
#app.duel-on .pf-pic{grid-row:1/4;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;font-size:18px!important;border-radius:9px}
#app.duel-on .pf-name{font-size:10px!important;max-width:110px;color:#c6d5e9!important;grid-column:2}
#app.duel-on .pf-life{font-size:17px!important;line-height:1.1;grid-column:2}
#app.duel-on .lifebar{grid-column:2;width:clamp(48px,7vw,110px)!important;height:5px!important;margin:2px 0 0!important}
#app.duel-on .deck{position:static!important;flex:none;font-size:10px!important;line-height:1.1;min-width:36px;gap:2px}
#app.duel-on .deck .back{width:25px!important;aspect-ratio:2/3!important;font-size:12px!important}
#app.duel-on .back{background:linear-gradient(140deg,#202e4b,#0c1428)!important;border:1px solid #8e7953!important;color:#e8c47f!important;border-radius:4px!important;box-shadow:0 3px 5px #0005}
#app.duel-on .side.rival .row-hand{min-height:0!important;height:33px!important;gap:3px;align-items:center;padding:0!important}
#app.duel-on .side.rival .row-hand .back{width:21px!important;height:30px!important;aspect-ratio:2/3!important}
#app.duel-on .evo-panel{display:flex!important;flex:1 1 0;min-width:0;flex-wrap:wrap;gap:3px 8px!important;background:none!important;border:0!important;padding:0!important;width:auto!important;color:#e6e6f9!important}
#app.duel-on .evo-line{gap:4px!important;flex-wrap:wrap!important;font-size:10px!important;width:100%;line-height:1.2}
#app.duel-on .evo-line strong{flex:0 1 auto;color:#e8c47f;font-size:12px;white-space:nowrap}
#app.duel-on .evo-meter{min-width:14px;height:4px;flex:1 1 20px}
#app.duel-on .evo-panel .evo-ultimate{font-size:10px!important;min-height:23px!important;padding:3px 6px!important;background:#322651!important;color:#e3d5ff!important;border:1px solid #7963aa!important;max-width:100%;white-space:normal;line-height:1.15}
#app.duel-on .row-slots{display:grid!important;grid-template-columns:clamp(34px,5vw,70px) repeat(3,minmax(0,1fr)) clamp(34px,5vw,70px)!important;gap:7px!important;align-items:center!important;justify-content:stretch!important;width:100%!important;margin:0!important;padding:0!important}
#app.duel-on .col{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:3px!important;min-width:0;padding:5px 2px!important;border:1px solid #3a506a!important;border-radius:12px;background:linear-gradient(180deg,#142239b8,#0d1b2d9e);position:relative}
#app.duel-on .col:nth-child(2){border-color:#9a736b66!important}#app.duel-on .col:nth-child(3){border-color:#5d9ab466!important}#app.duel-on .col:nth-child(4){border-color:#9474bd66!important}
#app.duel-on .evo-lane{font-size:9px!important;line-height:1.1!important;letter-spacing:.035em;color:#d6c6a0;white-space:nowrap}
#app.duel-on .row-slots .big{width:var(--c)!important;height:auto!important;aspect-ratio:2/3!important;--z:1!important}
#app.duel-on .slot.big{background:radial-gradient(ellipse,#354c6c22,#14223777)!important;border:1px dashed #6885a7!important;color:#a6bdd6!important;font-size:11px!important;border-radius:7px!important}
#app.duel-on .slot.can{border:1px solid #7ce6ff!important;background:#2b658b66!important;box-shadow:0 0 12px #72d9ff33}
#app.duel-on .row-slots .small{width:min(100%,calc(var(--c) + 20px))!important;height:22px!important;aspect-ratio:auto!important;--z:1!important;flex:none;border:1px solid #58718e!important;border-radius:5px!important;background:#263b52!important;font-size:10px!important;color:#cfe3f5!important;overflow:hidden}
#app.duel-on .row-slots .small.dcard .art{inset:0 auto 0 0;width:31%;height:100%}#app.duel-on .row-slots .small.dcard .art img{object-position:50% 25%}
#app.duel-on .row-slots .small.dcard :is(.frame,.rar,.tipo,.cid,.skl,.st,.evo-cost,.card-brand,.card-name,.card-sub,.card-type,.card-effect,.card-bonus){display:none!important}
#app.duel-on .row-slots .small.dcard .stats{inset:0 3px 0 33%;height:100%;padding:0!important;display:flex;justify-content:center;align-items:center;background:none!important;font:700 11px system-ui!important}
#app.duel-on .row-slots .small.dcard .stats span{position:static!important;width:auto!important;font:inherit!important}
#app.duel-on .gslot{width:100%!important;max-width:70px!important;aspect-ratio:4/5!important;align-self:center!important;border:1px dashed #6885a7!important;border-radius:9px!important;background:#122236a0!important;font-size:9px!important;padding:3px!important}
#app.duel-on .gslot svg{width:34%!important}#app.duel-on .gslot.filled img{opacity:.7}
#app.duel-on .undo-wrap{max-width:100%;flex:none;position:relative}#app.duel-on .undo{z-index:8}
#app.duel-on .band{display:flex!important;justify-content:center!important;min-height:45px!important;height:45px!important;padding:0 10px!important;background:linear-gradient(90deg,transparent,#0b1628aa,transparent)!important;border:0!important;position:relative}
#app.duel-on .band::before,#app.duel-on .band::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#8195b1)}#app.duel-on .band::after{transform:rotate(180deg)}
#app.duel-on .bam-btn{position:relative;flex:none;min-width:140px;min-height:42px!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;padding:3px 25px!important;font:900 22px/1 Georgia,serif!important;letter-spacing:.2em;background:linear-gradient(135deg,#fce8b6,#c49a50 50%,#ffdf93)!important;color:#14223a!important;filter:drop-shadow(0 0 9px #f4cd7266);border:0!important}
#app.duel-on .bam-btn small{display:block;font:700 7px/1.2 system-ui;letter-spacing:.13em;margin-top:2px}
#app.duel-on .timer{position:absolute;right:14px;top:3px;font-size:11px;z-index:1}
#app.duel-on .side.me .row-hand{min-height:0!important;height:calc(var(--hand-w)*1.5 + 8px)!important;align-items:flex-end!important;gap:6px!important;padding:5px 5px 0!important;justify-content:center!important;overflow:visible!important}
#app.duel-on .side.me .row-hand .dcard{width:var(--hand-w)!important;height:auto!important;aspect-ratio:2/3!important;--z:1!important;margin:0!important;transform:none!important}
#app.duel-on .side.me .row-hand .dcard:hover,#app.duel-on .side.me .row-hand .dcard.sel{transform:translateY(-7px) scale(1.04)!important;z-index:5;box-shadow:0 0 16px #72d9ff88}
#app.duel-on .duel-side{max-height:calc(100dvh - 24px);overflow:auto;scrollbar-width:thin;min-width:0}
#app.duel-on .detail{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0;padding:0!important}
#app.duel-on .detail .dcard{width:min(100%,205px)!important;align-self:center;aspect-ratio:2/3!important;--z:1!important}
#app.duel-on .detail b{font:700 16px/1.2 Georgia,serif!important;color:#f5f5ff!important}
#app.duel-on .detail p{margin:4px 0!important;font-size:12px!important;overflow-wrap:anywhere;line-height:1.35!important}
#app.duel-on .log{max-height:100px;overflow:auto;gap:4px;font-size:11px;color:#adbed4}
#app.duel-on .duel-side .btn{min-height:34px!important;background:#1f3047!important;color:#edf5ff!important;border:1px solid #435a77!important;padding:6px 9px!important;font-size:11px!important}
#app.duel-on .duel-side .row{gap:6px}
/* Card component: match the approved 2:3 frame; all text is live, never baked into a static picture. */
#app .premium-card{aspect-ratio:2/3!important;container-type:inline-size;isolation:isolate;border:0!important;border-radius:5px!important;background:#10172a!important;box-shadow:0 4px 12px #0007;color:#fff!important;overflow:hidden}
#app .premium-card .art{position:absolute;left:5%;top:15.67%;width:90%;height:47.17%;overflow:hidden;z-index:0}
#app .premium-card .art img{position:static;width:100%;height:100%;object-fit:cover;object-position:center 13%;display:block}
#app .premium-card .frame{position:absolute;inset:0;width:100%;height:100%;z-index:2;object-fit:fill;pointer-events:none}
#app .premium-card :is(.rar,.evo-cost,.card-brand,.card-name,.card-sub,.card-type,.skl,.card-effect,.card-bonus,.cid,.stats){position:absolute;z-index:3;margin:0;padding:0;overflow:hidden;background:none!important;border:0!important;text-align:center;line-height:1.05;white-space:nowrap;pointer-events:none;text-overflow:ellipsis;box-shadow:none!important}
#app .premium-card .card-brand{top:2.7%;left:18%;width:64%;font:800 2.9cqw/1 system-ui;color:#f4e3b5}
#app .premium-card .card-name{top:6.8%;left:18%;width:64%;font:700 5.4cqw/1 Georgia,serif}
#app .premium-card .card-sub{top:13%;left:21%;width:58%;font:700 2.8cqw/1 system-ui;color:#152542}
#app .premium-card .rar{top:6.6%;left:auto;right:3%;width:13%;font:700 5.5cqw/1 Georgia,serif;color:#fff}
#app .premium-card .evo-cost{top:7.6%;right:auto;left:3%;width:13%;font:700 6cqw/1 Georgia,serif;color:white}
#app .premium-card .card-type{top:18.3%;right:6%;width:27%;font:700 3.6cqw/1 system-ui}
#app .premium-card .tipo{display:none!important}
#app .premium-card .st{top:21%;left:7%;width:14%;z-index:4;font-size:6cqw;opacity:.9}
#app .premium-card .skl{top:64%;left:6%;width:88%;bottom:auto;font:700 4.5cqw/1 Georgia,serif;color:#fff}
#app .premium-card .card-effect{top:68%;left:7%;width:86%;height:6.8%;white-space:normal;text-align:left;font:400 3.25cqw/1.15 system-ui;color:#e9f4ff}
#app .premium-card .card-bonus{top:76%;left:7%;width:86%;height:5.5%;white-space:normal;text-align:left;font:600 3.2cqw/1.15 system-ui;color:#13243b}
#app .premium-card .stats{inset:88% 0 auto;display:block!important;height:8%;overflow:visible;font:700 7.6cqw/1 Georgia,serif;color:#fff}
#app .premium-card .stats span{position:absolute;top:15%;width:24%;text-align:center;line-height:1;font-size:inherit;color:#fff}
#app .premium-card .stats span:first-child{left:2%}#app .premium-card .stats span:last-child{right:2%}#app .premium-card .stats span.up{color:#91ffc3}#app .premium-card .stats span.down{color:#ffb4bc}
#app .premium-card .cid{top:96%;left:30%;width:40%;font:600 2.6cqw/1 system-ui;color:#dce6f6}
#app .premium-card.SSR::after{opacity:.35}#app .premium-card:hover::after{opacity:.65}
#app.duel-on .clash .dcard{width:clamp(100px,17vw,200px)!important;aspect-ratio:2/3!important}
@media(min-width:1100px) and (min-height:900px){#app.duel-on{--c:clamp(100px,calc((100dvh - 365px)/3),150px);--hand-w:clamp(95px,calc((100dvh - 365px)/3),142px)}#app.duel-on .side{padding:12px 14px!important;gap:7px!important}}
@media(max-width:1099px){#app.duel-on{grid-template-columns:minmax(0,1fr) minmax(200px,28%)!important;--c:clamp(78px,11vw,120px);--hand-w:clamp(70px,11vw,108px)}#app.duel-on .duel-left{display:none!important}}
@media(max-width:680px){#app.duel-on{grid-template-columns:minmax(0,1fr)!important;--c:clamp(63px,19vw,94px);--hand-w:clamp(51px,16vw,80px);padding:5px!important;gap:8px!important}#app.duel-on .side{padding:6px 4px!important;gap:4px!important}#app.duel-on .row-slots{grid-template-columns:31px repeat(3,minmax(0,1fr)) 31px!important;gap:3px!important}#app.duel-on .col{padding:3px 1px!important}#app.duel-on .evo-lane{font-size:7px!important}#app.duel-on .evo-line{font-size:8px!important}#app.duel-on .evo-line strong{font-size:10px!important}#app.duel-on .profile{grid-template-columns:26px auto;column-gap:3px}#app.duel-on .pf-pic{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}#app.duel-on .pf-life{font-size:14px!important}#app.duel-on .deck{min-width:25px}#app.duel-on .deck .back{width:19px!important}#app.duel-on .duel-side{max-height:none;overflow:visible}#app.duel-on .side.me .row-hand{gap:3px!important}#app.duel-on .detail .dcard{width:190px!important}}
@media(prefers-reduced-motion:reduce){#app .premium-card::before,#app .premium-card::after,#app.duel-on .bam-btn,#app.duel-on .slot,#app.duel-on .side{animation:none!important;transition:none!important}}
