/* Shared live shell: reserve the actual remaining viewport for both combat cards. */
@media(max-width:900px){
 body[data-layout=sidebar][data-combat=true] #app{height:100dvh!important;grid-template-rows:62px minmax(0,1fr)!important;overflow:hidden!important}
 body[data-combat=true] .layout-footer,body[data-combat=true] .test-banner,body[data-combat=true] .mobile-nav{display:none!important}
 body[data-layout=sidebar][data-combat=true] .main-content{padding:4px 5px 6px!important;overflow:hidden!important;min-height:0!important}
 body[data-combat=true] .view-content{height:100%;min-height:0;overflow:hidden}
 body[data-combat=true] .portrait-battle{height:100%!important;min-height:0!important;max-height:100%!important;padding:6px!important;border-width:5px;border-image-width:5px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
 body[data-combat=true] .pb-heading{margin:0!important;flex-shrink:0;gap:5px}
 body[data-combat=true] .pb-heading h1{font-size:17px;margin:1px 0;line-height:1.15}
 body[data-combat=true] .pb-heading small{display:none}
 body[data-combat=true] .pb-heading>span{font-size:11px}
 body[data-combat=true] .pb-arena{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:6px!important;flex:1!important;min-height:0!important;height:auto!important;overflow:visible!important;align-items:stretch!important}
 body[data-combat=true] .pb-exchange{display:none!important}
 body[data-combat=true] .pb-fighter{display:flex;flex-direction:column;min-height:0!important;border-width:3px;border-image-width:3px}
 body[data-combat=true] .pb-fighter>header{padding:6px!important;min-height:62px!important;flex-shrink:0}
 body[data-combat=true] .pb-fighter header small{font-size:8px}
 body[data-combat=true] .pb-fighter h2{font-size:15px!important;line-height:1.1;margin:3px 0;min-height:32px}
 body[data-combat=true] .pb-fighter header>span{font-size:10px!important}
 body[data-combat=true] .pb-portrait{flex:1!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:linear-gradient(#13150b55,#100c08aa),var(--pb-scene) center/cover;overflow:hidden!important}
 body[data-combat=true] .pb-portrait>img{height:100%!important;width:100%!important;object-fit:contain!important;object-position:center!important}
 body[data-combat=true] .pb-vitals{padding:6px!important;display:grid!important;grid-template-columns:1fr 1fr;gap:4px;flex-shrink:0}
 body[data-combat=true] .pb-vitals>div:first-child{grid-column:1/-1;margin:0!important;font-size:11px}
 body[data-combat=true] .pb-vitals b{font-size:15px!important}
 body[data-combat=true] .pb-hp{grid-column:1/-1;height:9px!important}
 body[data-combat=true] .pb-energy,body[data-combat=true] .pb-stats{font-size:10px!important;margin:0!important;min-height:18px!important;gap:3px}
 body[data-combat=true] .pb-energy b{font-size:12px!important}
 body[data-combat=true] .pb-stats .icon{width:14px;height:14px}
 body[data-combat=true] .pb-basic-note{display:none!important}
 body[data-combat=true] .pb-controls{padding:0!important;margin:0!important;min-height:40px;display:flex;align-items:center;gap:5px;flex-shrink:0}
 body[data-combat=true] .pb-controls>p{font-size:11px!important;line-height:1.2;min-height:0;margin:0;flex:1}
 body[data-combat=true] .pb-controls>div{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
 body[data-combat=true] .pb-controls button{font-size:12px!important;min-height:35px!important;padding:7px 10px!important;white-space:nowrap}
 body[data-combat=true] .pb-result{padding:5px 7px!important;margin:0!important;flex-shrink:0;max-height:88px;overflow:auto}
 body[data-combat=true] .pb-result h2{font-size:18px;margin:0}
 body[data-combat=true] .pb-result p,body[data-combat=true] .pb-result small{font-size:10px;line-height:1.2;margin:3px 0}
 body[data-combat=true] .pb-log{display:none!important}
 body[data-combat=true] .pb-projectile{z-index:8}
}
@media(max-width:900px){body[data-layout=sidebar][data-combat=true] .view-content{height:calc(100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;max-height:none!important}body[data-combat=true] .portrait-battle{height:100%!important}}
.pb-audio{position:relative;flex:none;font:14px Georgia;color:#e6c78e}.pb-audio summary{cursor:pointer;list-style:none;padding:8px 10px;border:1px solid #9b7842;background:#1d150e;min-height:35px}.pb-audio>div{position:absolute;bottom:calc(100% + 6px);right:0;width:245px;background:#21170f;border:2px solid #a27b43;padding:12px;z-index:30;box-shadow:0 4px 24px #000}.pb-audio label{display:flex;align-items:center;gap:8px;margin-top:10px}.pb-audio input{width:120px;accent-color:#cfa760}.pb-audio button{width:100%;font-size:14px!important}
