
body.mobile-game{background:#edb477;margin:0;padding:0;color:#654124;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}.mobile-game main{max-width:720px;margin:0 auto;padding:118px 10px 84px;display:block;box-sizing:border-box}.mobile-game main>.classic-game-header,.mobile-game main>.classic-game-header .bravio-brand,.mobile-game main>.toolbar,.mobile-game main>.wallet,.mobile-game main>footer{display:none!important}.mobile-game main>.toolbar.mobile-open{display:flex!important;flex-wrap:wrap;margin:15px 0}.mobile-hud{position:fixed;top:0;left:0;right:0;z-index:60;display:flex;justify-content:space-between;align-items:center;padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px;background:linear-gradient(#62472c,#432f20);box-shadow:0 2px 5px #38231166;color:#ffe3a0;min-height:48px}.mobile-hud button{padding:4px 7px;background:transparent;border:0;box-shadow:none;min-height:44px;color:#ffe6a6;font-size:13px}.mobile-hud #mobileHome{display:flex;gap:7px;align-items:center;max-width:48%;text-align:left}.mobile-hud #mobileHome span{max-width:100px;overflow:hidden;text-overflow:ellipsis}.mobile-hud img{width:30px;height:42px;object-fit:contain}.mobile-hud #mobileCurrencies{display:flex;gap:2px}.mobile-game #attemptsBar{position:fixed;top:calc(65px + env(safe-area-inset-top,0px));left:8px;right:8px;z-index:59;max-width:none;margin:0;padding:4px;gap:3px;box-sizing:border-box}.mobile-game #attemptsBar button{font-size:10px;min-height:32px;padding:3px}.mobile-game #navigation{position:fixed;bottom:0;left:0;right:0;z-index:70;display:flex;justify-content:space-around;padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));margin:0;border:0;border-top:2px solid #c19855;background:linear-gradient(#765335,#49321f);border-radius:0;gap:2px}.mobile-game #navigation>button{flex:1;display:flex;align-items:center;flex-direction:column;justify-content:center;background:none;border:0;box-shadow:none;color:#e8cc92;padding:5px 0;min-height:53px;border-radius:8px}.mobile-game #navigation>button.active{background:#b5823b;color:#fff4c5}.mobile-game #navigation>button>span{font:24px Georgia,serif;line-height:25px}.mobile-game #navigation small{font-size:10px;display:block;margin-top:3px}.mobile-game #extraNavigation{position:absolute;bottom:calc(70px + env(safe-area-inset-bottom,0px));left:10px;right:10px;max-height:65dvh;overflow:auto;border:2px solid #ad854b;border-radius:14px;background:#fff0c9;padding:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;box-shadow:0 -8px 25px #44291855}.mobile-game #extraNavigation:not([hidden]){display:grid}.mobile-game #extraNavigation button,.mobile-game #extraNavigation a{font-size:12px;padding:14px 7px;text-align:center;min-height:46px}.mobile-game .page,.mobile-game #battle{scroll-margin-top:120px}.mobile-game .classic-cell-heading{display:flex;flex-wrap:wrap;gap:8px;padding:12px;align-items:center}.mobile-game .classic-cell-heading h2{font-size:22px;margin:0}.mobile-game .classic-record{font-size:11px}.mobile-game .classic-cell-frame{display:flex;flex-direction:column;padding:10px}.mobile-game .classic-cell-main{min-width:0}.mobile-game .classic-save-note{display:none}.mobile-game .classic-stage-grid{display:flex;flex-direction:column;gap:12px}.mobile-game .classic-fighter-column{order:-1;display:block}.mobile-game .classic-body-stats{display:grid;grid-template-columns:42% 1fr;align-items:center}.mobile-game #portrait{max-width:135px;max-height:225px;width:100%;height:auto;object-fit:contain}.mobile-game #levelTitle{font-size:23px;margin:8px 0}.mobile-game .classic-stat-column{min-width:0}.mobile-game .classic-arsenal{width:100%;max-width:none}.mobile-game .classic-arsenal #perks{width:100%}.mobile-game .classic-cell-sidebar{display:grid;grid-template-columns:1fr 1fr;width:auto;gap:10px;margin-top:16px}.mobile-game .classic-cell-sidebar>div,.mobile-game .classic-cell-sidebar>button{width:auto;margin:0}.mobile-game .classic-cell-sidebar .classic-local{display:none}.mobile-game .classic-feature-card img{height:80px;max-height:80px}.mobile-game .classic-feature-card strong{font-size:17px}.mobile-game .classic-cell-sidebar #cellEvents{grid-column:1/-1}.mobile-game .classic-arena-copy{font-size:13px}.mobile-game .panel{padding:15px;border-radius:12px}.mobile-game h2{font-size:24px}.mobile-game h3{font-size:19px}.mobile-game button{touch-action:manipulation;min-height:44px}.mobile-game .rivals{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-game .weapon-grid,.mobile-game .pet-grid,.mobile-game .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-game .tower-layout{display:flex;flex-direction:column}.mobile-game .tower-floors{max-height:42dvh}.mobile-game .tower-preview{max-width:none}.mobile-game .cell-chronicle{margin-top:12px}.mobile-settings{max-width:85vw;width:340px;background:#fff1cb;border:2px solid #b78d4f;border-radius:15px;padding:20px;color:#634226}.mobile-settings button{display:block;width:100%;margin:10px 0}.mobile-settings::backdrop{background:#21180dcc}#mobileConnection{position:fixed;bottom:75px;left:12px;right:12px;z-index:100;background:#823b2c;color:#fff3c8;border:1px solid #efba70;padding:14px;border-radius:10px;text-align:center}
.mobile-game.mobile-fighting main{max-width:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}.mobile-fighting .mobile-hud,.mobile-fighting #attemptsBar,.mobile-fighting #navigation,.mobile-fighting #wallet,.mobile-fighting #worldBanner,.mobile-fighting #gameAlerts,.mobile-fighting #notice{display:none!important}.mobile-fighting #battle{border:0;border-radius:0;margin:0;padding:0;background:#392817;min-height:100dvh;position:relative;color:#ffebba;scroll-margin-top:0}.mobile-fighting #battle>.row{position:absolute;top:4px;left:8px;right:8px;z-index:4;display:flex;gap:6px;align-items:center;background:#3d2b18d9;border-radius:8px;padding:4px}.mobile-fighting #battleTitle{font-size:13px;margin:0;flex:1;color:#ffe2a0}.mobile-fighting #battle>.row button{font-size:10px;min-height:32px;padding:5px 8px}.mobile-fighting #fightcanvas{display:flex;justify-content:center;align-items:center;height:100dvh;position:relative}.mobile-fighting #fightcanvas canvas{max-width:100%;max-height:100dvh;width:auto!important;height:auto!important;aspect-ratio:5/3;object-fit:contain}.mobile-fighting #status{position:absolute;bottom:7px;left:10px;right:160px;z-index:4;font-size:12px;background:#3d2b18e6;border-radius:5px;padding:7px;margin:0}.mobile-fighting #backBattle{position:absolute;bottom:7px;right:10px;z-index:5;min-height:38px;font-size:12px;max-width:145px}.mobile-fighting #rotateHint{position:absolute;top:55px;left:10px;right:10px;z-index:5;text-align:center;font-size:12px;color:#ffdfa3}@media(orientation:landscape){.mobile-fighting #rotateHint{display:none}}@media(prefers-reduced-motion:reduce){.mobile-game *{scroll-behavior:auto!important}}

.mobile-game .skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-game .draft-grid,.mobile-game .gem-shop-grid,.mobile-game .shop-grid{grid-template-columns:1fr}.mobile-game .weapon-card,.mobile-game .skill-card,.mobile-game .pet-card{min-width:0}.mobile-game dialog{max-width:calc(100vw - 24px);box-sizing:border-box;max-height:85dvh;overflow:auto}.mobile-game .tower-chapters button{font-size:11px;padding:7px;min-width:0}.mobile-game .tower-detail{width:auto;min-width:0}.mobile-game #mobileConnection button{background:#fff1be;color:#704127;margin-top:9px;border:1px solid #ca9857;border-radius:6px;min-height:40px}

.mobile-game #navigation{top:auto!important;height:auto!important;min-height:0!important;max-height:calc(76px + env(safe-area-inset-bottom,0px));flex-direction:row;box-sizing:border-box}.mobile-game #extraNavigation{top:auto!important;height:auto!important}

.mobile-game main{padding-top:calc(124px + env(safe-area-inset-top,0px))}.mobile-game #navigation small{color:inherit;opacity:1;font-weight:600}

/* Reserve real space for playback controls: never cover fighter health. */
.mobile-fighting #battle{display:grid;grid-template-rows:44px minmax(0,1fr) 50px;height:100dvh;min-height:0}
.mobile-fighting #battle>.row{position:static;grid-row:1;margin:0;padding:4px 10px;border-radius:0}
.mobile-fighting #fightcanvas{grid-row:2;height:100%;min-height:0;overflow:hidden}
.mobile-fighting #fightcanvas canvas{max-height:calc(100dvh - 94px);max-width:100%;height:100%!important;width:auto!important}
.mobile-fighting #status{bottom:4px;max-height:38px;overflow:auto;font-size:11px}
.mobile-fighting #backBattle{bottom:4px}
.mobile-game #extraNavigation:not([hidden]){display:grid!important;visibility:visible!important;z-index:100;min-height:150px}
.mobile-game #mobileAvatar[hidden]{display:none}
