/* Expose idle rules; mouse preview and click selection share one lift. */
.game-shell{grid-template-columns:minmax(0,1fr)}
.topbar{min-width:0}.relic-hotbar{min-width:30px;flex:1 1 0}
.battle-controls{--hand-visible:176px;--hand-raise:36px}
.battle-controls .hand .card{top:calc(100% - var(--hand-visible))!important}
.battle-controls .hand .card:is(.selected,.desktop-preview),
.battle-controls .hand .card:is(.selected,.desktop-preview):hover{
 transform:translateX(calc(-50% + var(--fan-x,0px) + var(--focus-shift,0px))) translateY(calc(-1 * var(--hand-raise))) rotate(0deg) scale(1.06)!important;
 transform-origin:center bottom;z-index:90;filter:drop-shadow(0 0 6px #f6cc7b);cursor:grab;
}
@media(orientation:landscape) and (min-height:551px){
 .game-shell{grid-template-rows:60px minmax(0,1fr) 190px!important}
 .scene-background{bottom:-190px}
 .energy-area,.turn-actions{bottom:84px}
}
@media(orientation:portrait) and (min-height:681px){
 .battle-controls{--hand-visible:173px}
 .combatants{bottom:104px}
 .energy-area{bottom:179px}.turn-actions{bottom:181px}
}
@media(orientation:portrait) and (max-height:680px){
 .battle-controls{--hand-visible:136px}
 .combatants{bottom:88px}
 .energy-area{bottom:134px}.turn-actions{bottom:127px}
}
@media(orientation:landscape) and (min-height:351px) and (max-height:550px){
 .battle-controls{--hand-visible:132px;--hand-raise:48px}
 .battle-controls .hand .card{width:110px!important;height:151px!important}
 .combatants{inset:24px 12% 75px}
 .arena .hero{width:110px}.arena .enemy,.arena .enemy.wisp{width:95px}
 .arena .enemy.warden,.arena .enemy.sovereign{width:110px}
 .enemy[data-enemy-id=fr_ash_moth]{transform:none}
 .energy-area{bottom:28px}.turn-actions{bottom:34px}
}
@media(orientation:landscape) and (max-height:350px){
 .battle-controls{--hand-visible:95px;--hand-raise:52px}
 .battle-controls .hand .card{width:100px!important;height:138px!important}
 .combatants{bottom:30px}
 .energy-area{bottom:18px}.turn-actions{bottom:19px}
}

