/* The field owns the action. The desktop sidebar is the player's collection. */
.game-layout{grid-template-columns:190px minmax(0,1fr) 320px;gap:24px;max-width:1630px}
.game-layout>.inventory-section{width:100%;min-width:0;margin:0;padding:0 0 0 22px;border-top:0;border-left:1px solid var(--line);max-height:calc(100svh - 135px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#586566 transparent}
.game-layout>.inventory-section>header{display:block;margin-bottom:20px}
.game-layout>.inventory-section h2{font-size:26px;margin:7px 0}
.game-layout>.inventory-section h2 small{font-size:10px;margin-left:8px}
.game-layout>.inventory-section>header p{font-size:10px;line-height:1.7;margin-top:10px}
.game-layout>.inventory-section .eyebrow{font-size:7px;letter-spacing:1.7px}
.game-layout>.inventory-section .inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
.game-layout>.inventory-section .inventory-item{max-width:none}
.game-layout>.inventory-section .inventory-actions{gap:5px;margin-top:7px}
.game-layout>.inventory-section .inventory-actions .btn{font-size:9px;padding:6px 3px;min-height:31px}
.game-layout>.inventory-section .card-stats{font-size:29px}
.game-layout>.inventory-section .card-latin{font-size:12px}
.game-layout>.inventory-section .card-status,.game-layout>.inventory-section .card-stats small{font-size:6px}
.game-layout>.inventory-section .merge-note{font-size:8px}
.board-center{display:flex;flex-direction:column;padding:3% 3% 2%;overflow:hidden}
.arena-viewport{position:relative;flex:1;min-height:0;width:100%;display:flex;container-type:size}
.arena-scene{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;position:relative}
.arena-exit{position:absolute;inset:0;pointer-events:none;z-index:5}
.arena-scene .center-heading{margin:0 0 8px}
.arena-scene .center-heading h2{font-size:clamp(16px,4.4cqw,25px);margin:4px 0}
.arena-scene .duel-arena{margin:auto;width:min(86%,calc((100cqh - 80px)*1.28 + 32px));max-width:390px;gap:10px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
.arena-scene .single-guardian{width:min(34%,calc((100cqh - 60px)*.64));max-width:170px}
.arena-scene .card-stats{font-size:clamp(16px,6.4cqw,35px)}
.arena-scene .card-latin{font-size:clamp(6px,2.3cqw,12px)}
.arena-scene .card-status{font-size:clamp(4px,1.2cqw,6px)}
.arena-scene .card-stats small{font-size:clamp(4px,1.1cqw,6px)}
.arena-scene .fighter-role{font-size:clamp(6px,2cqw,10px);min-height:14px;margin-bottom:4px}
.arena-scene .health-track{margin-top:5px}
.arena-scene .health-label{font-size:7px;margin-top:4px}
.arena-controls{position:relative;width:100%;flex-shrink:0;margin-top:12px;padding-top:10px;border-top:1px solid #a49a6d20;z-index:6}
.arena-controls .action-buttons{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:stretch;gap:8px;margin:0;width:100%;min-width:0}
.arena-controls .action-buttons .btn{flex:1 1 0;min-width:0;max-width:none;width:0;min-height:44px;height:44px;padding:8px 6px;font-size:11px;line-height:1.2;white-space:nowrap}
.arena-controls .action-buttons .btn.text{border:1px solid var(--line);background:#101a2030}
.arena-controls .auto-battle-note{flex:1 1 0;min-width:0;align-self:center;border:0;background:none;padding:0;text-align:center;font-size:10px;color:var(--muted)}
.arena-turn{text-align:center;font-size:11px;color:var(--muted);padding:8px;margin:0}
.encounter-pair .encounter-attacker{z-index:1;animation:reveal-attacker calc(700ms * var(--motion)) cubic-bezier(.2,.65,.2,1) calc(550ms * var(--motion)) both}
.encounter-pair .encounter-guardian{z-index:2;animation:reveal-guardian calc(700ms * var(--motion)) cubic-bezier(.2,.65,.2,1) calc(550ms * var(--motion)) both}
.encounter-pair .versus{animation:reveal-versus calc(350ms * var(--motion)) ease calc(1000ms * var(--motion)) both}
@keyframes reveal-attacker{0%{opacity:0;transform:translateX(calc(50% + var(--pair-offset,20px))) rotate(0) scale(.96)}25%{opacity:1}65%{transform:translateX(-4%) rotate(-4deg)}100%{opacity:1;transform:translateX(0) rotate(0)}}
@keyframes reveal-guardian{0%{transform:translateX(calc(-50% - var(--pair-offset,20px)))}65%{transform:translateX(4%) rotate(3deg)}100%{transform:translateX(0) rotate(0)}}
@keyframes reveal-versus{from{opacity:0}to{opacity:1}}
.drag-ghost[data-merge-hint]:after{content:attr(data-merge-hint);position:absolute;inset:auto -15px -48px;padding:8px;color:#e7ddc4;background:#101a20;border:1px solid #867a56;font:10px/1.4 'Segoe UI',sans-serif;white-space:normal;text-align:center}
@media(min-width:1500px){.game-layout{grid-template-columns:215px minmax(0,1fr) 350px;gap:35px}.game-layout>.inventory-section{padding-left:25px}}
@media(min-width:1051px) and (max-height:800px){.game-layout{grid-template-columns:170px minmax(0,1fr) 290px;gap:18px;padding:15px 20px}.game-layout>.inventory-section{max-height:calc(100svh - 105px);padding-left:15px}.arena-controls{margin-top:8px;padding-top:7px}}
@media(max-width:1050px){
 .game-layout{display:flex;max-width:780px;gap:18px;padding:18px 20px}
 .game-layout>.inventory-section{max-width:600px;max-height:none;overflow:visible;border-left:0;border-top:1px solid var(--line);padding:22px 0 0;margin:0}
 .game-layout>.inventory-section .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}
 .board-zone{width:100%;max-width:600px}
}
@media(max-width:620px){
 .game-layout{padding:12px;gap:15px}
 .game-layout>.inventory-section .inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 .game-layout>.inventory-section .inventory-actions .btn{font-size:10px;min-height:38px}
 .game-layout>.inventory-section h2{font-size:25px}.game-layout>.inventory-section>header p{font-size:10px}
 .arena-controls{margin-top:7px;padding-top:6px}
 .arena-controls .action-buttons{gap:5px}
 .arena-controls .action-buttons .btn{min-height:36px;height:36px;font-size:clamp(8px,2.4vw,10px);padding:6px 2px}
 .arena-controls .auto-battle-note{font-size:8px}
 .arena-turn{font-size:9px;padding:6px}
 .arena-scene .center-heading{margin-bottom:4px}.arena-scene .center-heading h2{font-size:14px}
 .arena-scene .duel-arena{gap:6px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);width:min(90%,calc((100cqh - 65px)*1.28 + 28px))}
 .arena-scene .encounter-pair{width:min(90%,calc((100cqh - 42px)*1.28 + 28px))}
 .arena-scene .health-label{font-size:6px}.arena-scene .health-track{height:2px;margin-top:3px}
 .arena-scene .single-guardian{width:min(37%,calc((100cqh - 50px)*.64))}
 .encounter-pair{--pair-offset:14px}
}
@media(prefers-reduced-motion:reduce){.encounter-pair .fighter,.encounter-pair .versus{animation:none}}

.arena-scene .card-stats span{min-width:0}
