.arena{gap:clamp(28px,7vw,120px)}.enemy-side-group{height:100%;min-height:0;display:flex;align-items:center;gap:clamp(12px,2vw,32px);flex:0 1 480px;min-width:0}.enemy-side-group>.field-side{flex:0 1 190px;min-width:0;height:100%}.arena>.field-side{flex:0 1 190px;min-width:0}.opponent-figure{position:relative;width:clamp(140px,18vw,240px);min-width:0;flex:1 1 180px;margin:0;align-self:center;text-align:center;isolation:isolate}.opponent-figure::before{content:'';position:absolute;left:14%;right:14%;bottom:22px;height:15px;border-radius:50%;background:#08170bb3;filter:blur(7px);z-index:-1}.opponent-sway{transform-origin:50% 96%;animation:opponent-sway calc(var(--idle-duration,5s) * 1.3) ease-in-out infinite}.opponent-breathe{transform-origin:50% 98%;animation:opponent-breathe var(--idle-duration,5s) ease-in-out infinite}.opponent-figure img{display:block;width:100%;height:min(40dvh,360px);object-fit:contain;object-position:center bottom;filter:drop-shadow(3px 6px 7px #050e0a66);pointer-events:none}.opponent-figure figcaption{display:inline-block;font-family:serif;max-width:100%;padding:3px 10px;border:1px solid #c3ad7866;border-radius:12px;background:#14251ed9;color:#e7d5aa;font-size:12px;line-height:1.5;margin-top:6px;white-space:nowrap}.opponent-figure[data-boss=true] img{height:min(45dvh,400px)}.opponent-figure[data-boss=true] figcaption{color:#f0bd86;border-color:#cc956d}.opponent-figure[data-reaction=hurt] .opponent-reaction{animation:opponent-hurt .42s ease-out}.opponent-figure[data-reaction=attack] .opponent-reaction{animation:opponent-attack .6s ease-in-out}.opponent-figure[data-reaction=defeated]{opacity:.55;filter:saturate(.5)}.opponent-figure[data-reaction=defeated] .opponent-sway,.opponent-figure[data-reaction=defeated] .opponent-breathe{animation-play-state:paused}
@keyframes opponent-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.009,1.018)}}@keyframes opponent-sway{0%,100%{transform:translateY(0) rotate(-.35deg)}50%{transform:translateY(-2px) rotate(.35deg)}}@keyframes opponent-hurt{0%{transform:translateX(0)}25%{transform:translateX(5px)}60%{transform:translateX(-2px)}100%{transform:translateX(0)}}@keyframes opponent-attack{0%,100%{transform:translateX(0)}40%{transform:translateX(-7px)}}
@media(max-width:1050px){.arena{gap:36px}.enemy-side-group{gap:12px;flex-basis:390px}.opponent-figure{flex-basis:145px}.opponent-figure img{height:min(34dvh,300px)}.opponent-figure figcaption{font-size:11px}}
@media(max-width:760px){.arena{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:14px;padding:8px 10px 4px}.arena>.field-side{width:100%;height:100%;max-width:none;min-height:0}.enemy-side-group{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.78fr);gap:7px;width:100%;height:100%}.enemy-side-group>.field-side{width:100%;height:100%;min-height:0}.opponent-figure{width:100%;margin:0}.opponent-figure img{height:min(28dvh,220px);width:100%}.opponent-figure[data-boss=true] img{height:min(33dvh,270px)}.opponent-figure figcaption{white-space:normal;font-size:9px;line-height:1.5;padding:3px 5px;border-radius:4px}.opponent-figure::before{bottom:35px;height:8px;filter:blur(4px)}.field-label{font-size:8px;padding:2px 5px}.prepared-count{font-size:8px}.prepared-summary{gap:3px}.prepared-miniatures{min-width:19px;gap:2px}.prepared-miniatures i{width:8px;height:12px}.slot .hand-badge img{width:23px;height:23px}.slot .stats{gap:2px;padding:0 1px;font-size:8px}.slot .stats>span:last-child{font-size:8px}.slot .card-name{font-size:12px}.effect-receipt{width:100%;font-size:8px;line-height:1.4;max-height:78px}.effect-receipt strong{font-size:8px}.slot{max-height:calc(100% - 102px)}.slot .art.painted-art{height:calc(100% - 46px)}}
@media(max-width:360px){.arena{gap:9px;padding-left:8px;padding-right:8px;grid-template-columns:minmax(0,1fr) minmax(0,1.85fr)}.enemy-side-group{gap:5px;grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}.opponent-figure figcaption{font-size:8px;padding:2px}.slot .hand-badge{gap:1px;font-size:7px}.slot .hand-badge img{width:20px;height:20px}.slot .stats>span:last-child{font-size:7px}.slot .card-name{font-size:10px}.prepared-summary{flex-wrap:wrap;gap:1px}.prepared-count{font-size:7px}.prepared-miniatures{min-width:18px}.field-label{font-size:7px}.opponent-figure img{height:min(27dvh,180px)}}
@media(max-height:620px){.opponent-figure img{height:min(29dvh,190px)}.opponent-figure[data-boss=true] img{height:min(33dvh,230px)}.opponent-figure figcaption{font-size:9px;margin-top:3px;padding:2px 6px}.slot{max-height:calc(100% - 79px)}}
@media(max-height:450px) and (min-width:650px){.arena{display:flex;gap:60px}.enemy-side-group{display:flex;flex-basis:330px;gap:15px}.enemy-side-group>.field-side,.arena>.field-side{flex:0 1 145px}.opponent-figure{flex-basis:130px;max-width:150px}.opponent-figure img{height:min(28dvh,120px)}.opponent-figure[data-boss=true] img{height:min(31dvh,130px)}.opponent-figure figcaption{font-size:8px;padding:1px 6px}.slot{max-height:calc(100% - 64px)}}
/* Reserve room for the name and keep the painted figure within the arena. */
.opponent-figure{height:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.opponent-reaction{width:100%;height:min(40dvh,360px);max-height:calc(100% - 44px);min-height:0;flex-shrink:1}.opponent-sway,.opponent-breathe{height:100%;min-height:0}.opponent-figure img,.opponent-figure[data-boss=true] img{height:100%;max-height:100%}.opponent-figure figcaption{flex-shrink:0}.opponent-figure[data-boss=true] .opponent-reaction{height:min(45dvh,400px)}
@media(max-width:1050px){.opponent-reaction{height:min(34dvh,300px)}}
@media(max-width:760px){.opponent-reaction{height:min(28dvh,220px)}.opponent-figure[data-boss=true] .opponent-reaction{height:min(33dvh,270px)}}
@media(max-height:620px){.opponent-reaction{height:min(29dvh,190px)}.opponent-figure[data-boss=true] .opponent-reaction{height:min(33dvh,230px)}}
@media(max-height:450px) and (min-width:650px){.opponent-reaction{height:min(28dvh,120px)}.opponent-figure[data-boss=true] .opponent-reaction{height:min(31dvh,130px)}}
@media(prefers-reduced-motion:reduce){.opponent-sway,.opponent-breathe,.opponent-reaction{animation:none!important}}
