:root{--panel:url('../assets/ui-panel.webp');--button:url('../assets/ui-button.webp')}:is(#game,#title,#cinema) button{border-image-source:var(--button)!important;border-image-slice:45 fill!important;border-image-width:14px!important;background:#d19a43;border-radius:5px}:is(#game,#title,#cinema) button:is(.secondary,.synergy,.unitcard,.slot,.choice,#ranking),.panel,[style*="assets/ui-panel.webp"]{border-image-source:var(--panel)!important;border-image-slice:60 fill!important;background:#103d4d;border-radius:5px}.panel{border-image-width:18px!important}[style*="assets/ui-button.webp"]{border-image-source:var(--button)!important;border-image-slice:45 fill!important}:is(#game,#title,#cinema) button:is(.secondary,.synergy,.unitcard,.slot,.choice,#ranking){border-image-width:12px!important}.modal{border-image-width:22px!important}#stats{border-image-width:12px!important;background:#194c59}#game{background:linear-gradient(#d7efedbb,#c9e8e3aa),url('../assets/arena-bg.webp') center/cover}#game:has(#overlay.open)>:is(#hud,#left,#shop,#bench,#labels,#boardhint){visibility:hidden!important}.external #game>:is(#hud,#left,#shop,#bench,#labels,#boardhint){visibility:hidden!important}body:has(#overlay.open) #subtitle,.external #subtitle{visibility:hidden}.modal h1{position:relative}.choice{transition:transform .12s,filter .12s}.choice:hover{transform:translateY(-5px);filter:brightness(1.25)}#shop{padding:18px}.unitcard{padding:10px 14px}.shopCards{flex:1;justify-content:flex-start}.unitcard{max-height:100px}.helpBtn{min-width:44px}.synergy{padding:5px 10px}.modal p{color:#d7e9e1}#left .muted{color:#24515a}#titleActions button{padding:10px 25px}#boardhint{background:#e9f5e9d9;padding:3px 6px;border-radius:4px}#subtitle{z-index:60;left:20%;right:29%;bottom:105px}.hpbar{height:6px}.battleInfo .tag{font-size:14px;line-height:1.5;padding:0 6px}#toast{z-index:80}#bench .benchTitle{display:none}#cinema[style*="block"]~#subtitle{bottom:22px;left:22%;right:22%}.mobileXP{display:none}button[data-sozo-ui="pause"]{border-image:none!important;background:#143b4d!important}
@media(max-height:520px){#shop{padding:8px;width:calc(28.5% - 17px)}#world{right:28.5%}#bench{right:29%}#boardhint{right:29%}.unitcard{padding:5px 8px;max-height:48px;gap:4px}.unitcard .portrait{width:22px;height:28px;font-size:20px}.unitcard .cost{font-size:15px;min-width:21px}.cardText strong{font-size:14px;white-space:nowrap}.cardText small{font-size:12px;white-space:nowrap}.unitcard .cardText{overflow:hidden}.unitcard .cardText strong,.unitcard .cardText small{overflow:hidden;text-overflow:ellipsis}.synergy{padding:4px;gap:3px}.synergy .emblem{width:18px;font-size:21px}.synergy .syntext{font-size:14px}.synergy b{font-size:12px}#fight{font-size:14px;padding:4px 2px}#fight img{display:none}.shopControls button{font-size:14px}.shopControls button small{display:block;font-size:12px;line-height:12px}.shopControls .wide{grid-column:1/-1}#stats{gap:9px}#boardhint{font-size:12px;bottom:57px;line-height:1.15}.choice{padding:14px}.choice small{font-size:14px}.helpgrid p{font-size:12px}.modal .tag{padding-top:3px}#titleActions button{padding:6px 20px}#subtitle{bottom:23px;left:20%;right:29%}}
