.battle::before{background-image:linear-gradient(#09150f45,#0c1a1520 48%,#0b171dcc 83%),var(--scene-background,url('assets/backgrounds/stone-clearing-v1.jpg'))}
.arena{gap:clamp(50px,17vw,280px)}
.run-label{display:block;color:#e9ce97;font-size:11px;letter-spacing:.08em;margin-bottom:3px;white-space:nowrap}.stage-name{display:block;color:#bdc9b8;font-size:8px;line-height:1.5;white-space:nowrap}.turn-marker b{display:none}.turn-marker{line-height:1.7}
.hand-badge{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;color:#f5dfad;white-space:nowrap}.hand-badge img{display:block;width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 1px 2px #0008)}.card .stats{align-items:center;min-height:25px}.card .art.painted-art{height:54px}.card .stats>span:last-child{font-size:9px;white-space:nowrap}.card>.card-name{line-height:1.4}.slot .stats{align-items:center;min-height:30px;width:100%;padding:0 3px;justify-content:space-between}.slot .hand-badge img{width:32px;height:32px}.slot .art.painted-art{height:calc(100% - 56px)}.slot .card-name{line-height:1.3}.slot .stats>span:last-child{font-size:10px}.flying-front .hand-badge img{width:24px;height:24px}.inspect-stats .hand-badge img{width:36px;height:36px}.inspect-stats{align-items:center}
.scene-curtain{position:absolute;inset:0;background:#070e0c;opacity:0;z-index:12;pointer-events:none}.boss-intro{position:absolute;inset:0;z-index:13;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#080e0dbb,transparent 75%);pointer-events:none}.boss-intro img{width:min(66%,700px);height:auto;max-height:40%;object-fit:contain;filter:drop-shadow(0 5px 22px #000b)}.battle[aria-busy=true] .scene-curtain:not([hidden]),.battle[aria-busy=true] .boss-intro:not([hidden]){pointer-events:auto}#skip-motion{z-index:15}.battle[data-stage=boss] .duel-hud{border-color:#c79567}.battle[data-stage=boss] .run-label{color:#f0b986}
@media(min-width:1500px) and (min-height:850px){.card .art.painted-art{height:80px}.card .hand-badge img{width:30px;height:30px}}
@media(max-width:760px){.arena{gap:42px}.duel-hud{grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr)}.run-label{font-size:9px}.stage-name{font-size:7px}.card .art.painted-art{height:49px}.card .hand-badge img{width:25px;height:25px}.card .stats>span:last-child{font-size:8px}.slot .hand-badge img{width:28px;height:28px}.slot .stats{min-height:27px}.slot .stats>span:last-child{font-size:9px}.slot .art.painted-art{height:calc(100% - 48px)}.boss-intro img{width:85%}}
@media(max-width:360px){.arena{gap:22px}.run-label{font-size:8px}.stage-name{font-size:6px}.duel-hud{grid-template-columns:minmax(0,1fr) 55px minmax(0,1fr)}}
@media(max-height:620px){.card .art.painted-art{height:27px}.card .hand-badge img{width:20px;height:20px}.card .stats{min-height:20px}.slot .hand-badge img{width:20px;height:20px}.slot .stats{min-height:20px}.slot .art.painted-art{height:calc(100% - 35px)}.run-label{font-size:9px}.stage-name{font-size:7px}.turn-marker{line-height:1.4}}
@media(max-height:450px) and (min-width:650px){.arena{gap:90px}.card .art.painted-art{height:18px}.card .stats{min-height:18px}.card .hand-badge img{width:18px;height:18px}.card .stats>span:last-child{font-size:8px}.slot .hand-badge img{width:18px;height:18px}.slot .stats{min-height:18px;padding:0;font-size:7px;gap:2px}.slot .stats>span:last-child{font-size:7px}.slot .art.painted-art{height:calc(100% - 31px)}.run-label{font-size:8px}.stage-name{font-size:6px}}
