/* Mobile presentation ONLY. Every rule requires the touch-only root class.
   Do not put desktop overrides or battle rules in this file. */
html.battlemon-mobile { font-size: 16px; width: 100%; height: 100%; overscroll-behavior: none; }
html.battlemon-mobile body { position: fixed; top: var(--mobile-offset-top,0px); left: 0; width: 100%; height: var(--mobile-app-height,100dvh); overflow: hidden; -webkit-tap-highlight-color: transparent; }
/* Allow scrolling, but block pinch and double-tap zoom across the mobile game. */
html.battlemon-mobile, html.battlemon-mobile body { touch-action: pan-x pan-y; }
html.battlemon-mobile :is(button,[role="button"],a,input,select) { touch-action: manipulation; }
html.battlemon-mobile :is(input,select,textarea) { font-size: 16px; }
html.battlemon-mobile button { min-height: 44px; }
html.battlemon-mobile .main-container { padding: .5rem max(.5rem,env(safe-area-inset-right)) .5rem max(.5rem,env(safe-area-inset-left)); min-height: 0; }
html.battlemon-mobile .navbar { flex-wrap: nowrap; min-height: 3.5rem; gap: .375rem; padding: max(.375rem,env(safe-area-inset-top)) max(.5rem,env(safe-area-inset-right)) .375rem max(.5rem,env(safe-area-inset-left)); }
html.battlemon-mobile .navbar .nav-left { flex: 1; min-width: 0; }
html.battlemon-mobile .navbar .nav-center { display: none; }
html.battlemon-mobile .navbar .nav-right { flex: 0 0 auto; gap: .375rem; flex-wrap: nowrap; }
html.battlemon-mobile .trainer-header-pill { max-width: 9rem; min-height: 44px; padding: .25rem .5rem; }
html.battlemon-mobile #headerTrainerName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
html.battlemon-mobile .navbar .btn-icon { width: 42px; min-width: 42px; height: 44px; }
html.battlemon-mobile #btnQuickMusicToggle, html.battlemon-mobile .currency-sub { display: none; }
html.battlemon-mobile .currency-pill { min-height: 44px; padding: .375rem .5rem; gap: .25rem; font-size: .85rem; }
html.battlemon-mobile .currency-pill .mobile-info-trigger { display: none; }
html.battlemon-mobile .bottom-game-nav { justify-content: flex-start; gap: .375rem; padding: .375rem max(.5rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom)) max(.5rem,env(safe-area-inset-left)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
html.battlemon-mobile .bottom-game-nav::-webkit-scrollbar { display: none; }
html.battlemon-mobile .bottom-game-nav > :first-child { margin-inline-start: auto; }
html.battlemon-mobile .bottom-game-nav > :last-child { margin-inline-end: auto; }
html.battlemon-mobile .bottom-nav-tab { flex: 1 0 2.75rem; max-width: 6.5rem; min-width: 44px; height: 3.55rem; min-height: 3.55rem; flex-direction: column; gap: .25rem; padding: .375rem .25rem; }
html.battlemon-mobile .bottom-nav-tab .tab-icon { width: 1.3rem; height: 1.3rem; }
html.battlemon-mobile .bottom-nav-tab :is(.tab-label,.center-tab-label) { font-size: 0; }
html.battlemon-mobile .bottom-nav-tab :is(.tab-label,.center-tab-label)::after { content: attr(data-mobile-label); font-size: .65rem; }
html.battlemon-mobile .bottom-nav-tab.center-tower-tab { flex: 1.2 0 3.2rem; min-width: 3.2rem; height: 3.55rem; min-height: 3.55rem; transform: none; }
html.battlemon-mobile .bottom-nav-tab.center-tower-tab .center-icon { width: 1.3rem; height: 1.3rem; }
html.battlemon-mobile .bottom-nav-tab .center-tab-label { font-size: 0; }
html.battlemon-mobile .nav-btn-home { position: static; flex-shrink: 0; align-self: flex-start; margin: 0; }
/* Exit stays reachable without covering the navigation or the battle controls. */
html.battlemon-mobile #btnReturnToMainMenu { display: none !important; }
html.battlemon-mobile .mobile-profile-exit { width: 100%; margin-top: .75rem; border: 1px solid #e85e6b; border-radius: .625rem; background: #562432; color: #fecaca; font-weight: 800; }
html.battlemon-mobile .in-home-screen .mobile-profile-exit { display: none; }
html.battlemon-mobile .screen { min-height: 0; }
html.battlemon-mobile :is(#towerScreen,#squadScreen,#shopScreen,#casualScreen,#trainingSetupScreen,#huntsScreen) { overflow-y: auto; overscroll-behavior-y: contain; }
html.battlemon-mobile .tower-hub-layout { display: flex; flex-direction: column; gap: .75rem; height: auto; overflow: visible; flex: 0 0 auto; }
html.battlemon-mobile .tower-challenger-panel { order: 0; min-height: 0; height: auto; overflow: hidden; }
html.battlemon-mobile .tower-squad-shop-panel { order: 1; height: auto; overflow: visible; }
html.battlemon-mobile .tower-map-panel { order: 2; min-height: 0; height: auto; }
html.battlemon-mobile .challenger-card { padding: .875rem; gap: .75rem; }
html.battlemon-mobile .challenger-sector-banner { gap: .5rem; font-size: .62rem; }
html.battlemon-mobile .challenger-profile { gap: .75rem; }
html.battlemon-mobile .trainer-avatar-frame { width: 5.5rem; height: 6rem; flex: 0 0 5.5rem; }
html.battlemon-mobile .challenger-name { font-size: 1.35rem; overflow-wrap: anywhere; }
html.battlemon-mobile .challenger-quote { font-size: .75rem; padding: .5rem .625rem; }
html.battlemon-mobile .challenger-team-section .section-mini-label { font-size: 0; }
html.battlemon-mobile .challenger-team-section .section-mini-label::before { content: 'EQUIPE DO OPONENTE'; font-size: .6rem; }
html.battlemon-mobile .challenger-team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
html.battlemon-mobile .challenger-actions { gap: .625rem; }
html.battlemon-mobile .btn-tower-fight { width: 100%; min-width: 0; min-height: 3.5rem; }
html.battlemon-mobile .tower-fight-label { font-size: 1rem; }
html.battlemon-mobile .tower-map-header-row { flex-wrap: wrap; gap: .5rem; }
html.battlemon-mobile .tower-floors-list { max-height: none; overflow: visible; }
html.battlemon-mobile .lobby-squad-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .375rem; }
html.battlemon-mobile .lobby-squad-card { min-width: 0; flex-direction: column; align-items: center; padding: .5rem .25rem; gap: .25rem; }
html.battlemon-mobile .lobby-squad-card > img { width: 4rem; height: 4rem; }
html.battlemon-mobile .lsc-info { width: 100%; }
html.battlemon-mobile .lsc-top { flex-direction: column; gap: .125rem; }
html.battlemon-mobile .lsc-name { font-size: .7rem; }
html.battlemon-mobile .lsc-hp-text { font-size: .55rem; }
html.battlemon-mobile .tower-backpack-grid { max-height: 17rem; overflow-y: auto; }
/* Team and Pokédex: one scroll owner per list, readable controls and touch details. */
html.battlemon-mobile .squad-lock-banner { flex: 0 0 auto; flex-wrap: wrap; padding: .625rem; gap: .5rem; }
html.battlemon-mobile .squad-lock-info { font-size: .7rem; }
html.battlemon-mobile .squad-split-layout { display: flex; flex-direction: column; height: auto; min-height: 0; flex: 0 0 auto; overflow: visible; gap: .75rem; }
html.battlemon-mobile .squad-right-slots-col { order: 0; height: auto; min-height: 0; flex: 0 0 auto; overflow: visible; }
html.battlemon-mobile .squad-left-picker { order: 1; height: 34rem; min-height: 24rem; }
html.battlemon-mobile .squad-right-header { flex-wrap: wrap; gap: .625rem; }
html.battlemon-mobile .squad-right-actions { display: flex; flex-wrap: wrap; width: 100%; gap: .375rem; }
html.battlemon-mobile .squad-right-actions button { font-size: .7rem; padding-inline: .625rem; }
html.battlemon-mobile #btnSquadStartBattle { flex: 1; }
html.battlemon-mobile .squad-vertical-slots-list { height: auto; flex: 0 0 auto; overflow: visible; gap: .625rem; }
html.battlemon-mobile .squad-slot-rect { height: auto; min-height: 6rem; padding: .625rem; flex: 0 0 auto; }
html.battlemon-mobile .slot-rect-main { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; flex: none; }
html.battlemon-mobile .slot-rect-tag { font-size: .65rem; }
html.battlemon-mobile .slot-poke-profile { width: 100%; gap: .625rem; }
html.battlemon-mobile .slot-poke-img { width: 5rem; height: 5rem; }
html.battlemon-mobile .slot-poke-name { font-size: 1rem; max-width: none; }
html.battlemon-mobile .slot-moves-section { width: 100%; height: auto; }
html.battlemon-mobile .squad-slot-rect:not(.active-slot) .slot-moves-section { display: none; }
html.battlemon-mobile .slot-moves-grid { grid-template-columns: minmax(0,1fr); }
html.battlemon-mobile .slot-move-card { min-height: 4rem; padding-right: 2.5rem; }
html.battlemon-mobile .clean-filter-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
html.battlemon-mobile .clean-filter-bar .search-input-wrapper { grid-column: 1/-1; }
html.battlemon-mobile .clean-filter-bar :is(input,select) { width: 100%; min-width: 0; min-height: 44px; }
html.battlemon-mobile .type-filter-bar { flex-wrap: wrap; overflow: visible; height: auto; gap: .25rem; }
html.battlemon-mobile :is(.type-filter-pill,.type-filter-chip) { min-width: 36px; min-height: 36px; padding: .375rem; }
html.battlemon-mobile :is(.clean-poke-grid,.pokedex-cards-grid) { grid-template-columns: repeat(auto-fill,minmax(6rem,1fr)); gap: .5rem; }
html.battlemon-mobile .pokedex-header-banner { padding: .75rem; }
html.battlemon-mobile .pokedex-clean-wrapper { min-height: 0; }
html.battlemon-mobile :is(.dedicated-shop-grid,.shop-items-grid) { display: block; height: auto; overflow: visible; }
html.battlemon-mobile .dedicated-shop-grid { display: flex; justify-content: center; width: 100%; }
html.battlemon-mobile .dedicated-shop-wrapper { height: auto; flex: 0 0 auto; overflow: visible; padding: .75rem; }
html.battlemon-mobile .shop-category-col { height: auto; overflow: visible; padding: .625rem; margin-inline: auto; }
html.battlemon-mobile .shop-items-vertical-list { flex: none; overflow: visible; }
html.battlemon-mobile .shop-item-row { display: grid; grid-template-columns: minmax(0,1fr) 4.5rem; min-height: 7rem; max-height: none; padding: .625rem; gap: .5rem; align-items: center; }
html.battlemon-mobile .shop-item-left { min-width: 0; gap: .5rem; }
html.battlemon-mobile .shop-item-left > div { min-width: 0; }
html.battlemon-mobile .shop-item-title { font-size: .8rem; white-space: normal; overflow-wrap: anywhere; }
html.battlemon-mobile .shop-item-desc { font-size: .68rem; white-space: normal; max-width: none; overflow-wrap: anywhere; margin-top: .25rem; }
html.battlemon-mobile .shop-item-actions { min-width: 0; flex: 0 0 auto; padding-top: 1.5rem; }
html.battlemon-mobile .owned-qty-badge { font-size: .55rem; }
/* Compact mobile catalogue with the original outer margins. */
html.battlemon-mobile #shopScreen .dedicated-shop-wrapper { width: 100%; padding: .375rem; }
html.battlemon-mobile #shopScreen .shop-category-col { padding: .25rem; max-width: 44rem; }
html.battlemon-mobile #shopScreen .category-header { display: none; }
html.battlemon-mobile #shopScreen .shop-hero-header > div:first-child { width: 100%; min-width: 0; }
html.battlemon-mobile #shopScreen .shop-title-toolbar { gap: .375rem; }
html.battlemon-mobile #shopScreen .shop-title-toolbar h2 { font-size: .85rem; line-height: 1.4; }
html.battlemon-mobile #shopScreen .shop-filter-control select { max-width: 7.5rem; padding-inline: .25rem; font-size: .65rem; }
html.battlemon-mobile #shopScreen .panel-subtitle { display: none; }
html.battlemon-mobile #shopScreen .shop-balance-pill { font-size: .75rem; padding: .25rem .5rem; }
html.battlemon-mobile #shopScreen .shop-items-vertical-list { padding: 0; gap: .375rem; }
html.battlemon-mobile #shopScreen .shop-item-row { min-height: 4.5rem; grid-template-columns: minmax(0,1fr) 4.5rem; padding: .5rem; gap: .375rem; background: #111c2d; }
html.battlemon-mobile #shopScreen .shop-item-desc { display: none; }
html.battlemon-mobile #shopScreen .shop-item-title { font-size: .72rem; line-height: 1.4; }
html.battlemon-mobile #shopScreen .shop-item-icon { width: 1.25rem; flex: 0 0 1.25rem; font-size: 1.15rem; }
html.battlemon-mobile #shopScreen .shop-item-icon svg { width: 100%; height: 1.25rem; }
html.battlemon-mobile .shop-item-title > .mobile-info-trigger { position: static; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: .375rem; vertical-align: middle; }
html.battlemon-mobile .shop-item-title > .mobile-info-trigger svg { width: .9rem; height: .9rem; }
html.battlemon-mobile #shopScreen .shop-item-actions { padding-top: 0; gap: .25rem; }
/* Battle shell: the original panels and handlers are reused, never duplicated. */
html.battlemon-mobile #battleScreen { overflow-y: auto; }
html.battlemon-mobile .battle-arena-card { flex: 0 0 auto; height: auto; min-height: 100%; padding: .375rem; gap: .5rem; overflow: visible; }
html.battlemon-mobile .arena-top-bar { grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: auto; min-height: 3rem; gap: .375rem; padding-bottom: .375rem; position: relative; }
html.battlemon-mobile .arena-match-info { grid-column: 1; grid-row: 1; min-width: 0; }
html.battlemon-mobile .arena-round-tag { font-size: .6rem; padding: .5rem .375rem; letter-spacing: 0; white-space: normal; }
html.battlemon-mobile .arena-quick-controls { grid-column: 3; grid-row: 1; gap: .25rem; }
html.battlemon-mobile .btn-speed-toggle { font-size: .6rem; padding: .25rem; }
html.battlemon-mobile .btn-flee-arena { font-size: .65rem; padding: .375rem .5rem; }
html.battlemon-mobile .arena-unlock-slot { position: relative; grid-column: 2; grid-row: 1; justify-self: center; align-self: center; width: min(100%,var(--mobile-round-width,12rem)); height: var(--mobile-round-height,2.5rem); z-index: 12; pointer-events: none; }
html.battlemon-mobile .pokemon-unlock-toast { width: 100%; max-width: 100%; height: 100%; max-height: 100%; min-height: 0; padding: .2rem .375rem; gap: .25rem; }
html.battlemon-mobile .unlock-toast-sprite { width: 1.5rem; height: 1.5rem; flex-basis: 1.5rem; }
html.battlemon-mobile .unlock-toast-badge { font-size: clamp(.35rem,3.2cqw,.52rem); }
html.battlemon-mobile .unlock-toast-title { font-size: .65rem; }
html.battlemon-mobile .duel-stage { flex: 0 0 auto; height: clamp(18rem,36svh,25rem); min-height: 0; padding: 0; overflow: hidden; }
html.battlemon-mobile .duel-sides-grid { display: block; position: relative; height: 100%; width: 100%; }
html.battlemon-mobile .battle-side { position: absolute; inset: 0; display: block; pointer-events: none; }
html.battlemon-mobile .battle-side :is(button,.mobile-info-trigger) { pointer-events: auto; }
html.battlemon-mobile .pokeidle-hud-card { position: absolute; width: 52%; max-width: 15rem; padding: .375rem .5rem; margin: 0; z-index: 6; border-width: 1px; }
html.battlemon-mobile .player-hud { left: .5rem; top: .5rem; right: auto; bottom: auto; }
html.battlemon-mobile .enemy-hud { right: .5rem; bottom: .5rem; left: auto; top: auto; }
html.battlemon-mobile .hud-trainer-row { flex-wrap: nowrap; gap: .25rem; }
html.battlemon-mobile .hud-trainer-tag { max-width: 75%; font-size: .46rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.battlemon-mobile .hud-top { margin: .2rem 0; gap: .25rem; }
html.battlemon-mobile .hud-pokemon-name { font-size: .8rem; }
html.battlemon-mobile .hud-level-pill { font-size: .6rem; padding: .125rem .25rem; }
html.battlemon-mobile .hud-meta-row { min-height: 0; margin-bottom: .2rem; }
html.battlemon-mobile .small-pills .type-badge { font-size: .5rem; padding: .125rem .25rem; }
html.battlemon-mobile .hud-hp-numbers { font-size: .6rem; }
html.battlemon-mobile .team-pokeballs-row { gap: 2px; }
html.battlemon-mobile .team-pokeballs-row > * { width: 6px; height: 6px; }
html.battlemon-mobile .stadium-pedestal { position: absolute; margin: 0; width: 53%; max-width: 18rem; height: 54%; min-height: 0; }
html.battlemon-mobile .player-pedestal { bottom: 2%; left: 1%; width: 58%; height: 54%; }
html.battlemon-mobile .enemy-side-right .enemy-pedestal { right: 1%; top: 12%; width: 58%; height: 54%; margin: 0; }
html.battlemon-mobile .duel-sprite { width: 10.5rem; height: 10.5rem; max-height: 100%; max-width: 100%; }
/* Both sprites share the same anchor relative to their platform surface. */
html.battlemon-mobile :is(.player-base,.enemy-base) { height: 3.125rem; }
html.battlemon-mobile :is(.player-sprite-pos,.enemy-sprite-pos) { position: absolute; left: 50%; bottom: -1rem; margin: 0; translate: -50% 0; }
html.battlemon-mobile .enemy-sprite-pos { bottom: -.125rem; }
html.battlemon-mobile .trainer-stage-sprite { width: 3.5rem; height: 3.5rem; right: .375rem; bottom: 1.5rem; }
html.battlemon-mobile .battle-vs-center { display: flex; position: absolute; left: 50%; top: 50%; z-index: 7; width: auto; transform: translate(-50%,-50%); pointer-events: none; }
html.battlemon-mobile .battle-vs-center .vs-pixel-badge { width: clamp(3.25rem,13vw,5rem); filter: drop-shadow(0 .15rem .3rem #050817cc); }
html.battlemon-mobile .mobile-battle-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .375rem; }
html.battlemon-mobile .mobile-battle-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 3.2rem; border: 1px solid #334968; border-radius: .625rem; background: #152238; color: #93acc6; font: 800 .65rem var(--font-pixel-ui); }
html.battlemon-mobile .mobile-battle-tabs svg { width: 1.15rem; height: 1.15rem; }
html.battlemon-mobile .mobile-battle-tabs [aria-selected="true"] { color: #ffe291; border-color: #fbbf24; background: linear-gradient(140deg,#63451b,#2c2930); box-shadow: inset 0 1px #ffffff15,0 0 .6rem #fbbf2420; }
html.battlemon-mobile .battle-dashboard-controls { display: block; height: auto; min-height: 12rem; }
html.battlemon-mobile :is(.moves-command-panel,.tactical-side-panel,.combat-console-panel) { display: none; min-height: 0; height: auto; padding: .625rem; }
html.battlemon-mobile #battleScreen[data-mobile-pane="moves"] .moves-command-panel { display: flex; }
html.battlemon-mobile #battleScreen:is([data-mobile-pane="party"],[data-mobile-pane="bag"]) .tactical-side-panel { display: flex; }
html.battlemon-mobile #battleScreen[data-mobile-pane="party"] .tactical-section:nth-child(2),html.battlemon-mobile #battleScreen[data-mobile-pane="bag"] .tactical-section:first-child { display: none; }
html.battlemon-mobile #battleScreen[data-mobile-pane="log"] .combat-console-panel { display: flex; height: 13rem; }
html.battlemon-mobile .moves-grid-modern { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
html.battlemon-mobile .move-card-btn { min-height: 5.5rem; padding: .625rem .5rem; padding-right: 1.8rem; gap: .625rem; }
html.battlemon-mobile .m-top-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
html.battlemon-mobile .m-name { font-size: .85rem; }
html.battlemon-mobile .move-pp-tag { font-size: .65rem; }
html.battlemon-mobile .m-meta { flex-wrap: wrap; gap: .25rem; }
html.battlemon-mobile .m-type-pill { font-size: .5rem; }
html.battlemon-mobile .m-cat-tag { font-size: .5rem; }
html.battlemon-mobile .m-power-text { font-size: .6rem; }
html.battlemon-mobile .m-eff-badge { font-size: .5rem; }
html.battlemon-mobile .battle-party-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
html.battlemon-mobile .battle-bag-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
html.battlemon-mobile .bag-item-btn { min-height: 3rem; padding-right: 2.5rem; }
html.battlemon-mobile .player-fainted-action-container { z-index: 10; width: 100%; }
html.battlemon-mobile .btn-pokemon-fainted-red { min-width: 0; width: 100%; padding: .375rem; }
html.battlemon-mobile .fainted-btn-main { font-size: .6rem; gap: .25rem; }
/* Touch details use the original tooltip contents in a dismissible bottom sheet. */
html.battlemon-mobile .mobile-info-host { position: relative; }
html.battlemon-mobile .mobile-direct-info { touch-action: manipulation; }
html.battlemon-mobile .mobile-info-trigger { position: absolute; top: .2rem; right: .2rem; width: 32px; height: 32px; z-index: 8; display: grid; place-items: center; border: 1px solid #5e83ac; border-radius: 50%; background: #0a1b2ee8; color: #9bd8ff; font: 800 .85rem var(--font-clean); cursor: pointer; }
html.battlemon-mobile .mobile-info-trigger:active { background: #245580; }
html.battlemon-mobile .mobile-info-trigger svg { width: 1.15rem; height: 1.15rem; }
html.battlemon-mobile .mobile-info-trigger:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
html.battlemon-mobile .mobile-info-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 19990; background: #020817b3; backdrop-filter: blur(3px); }
html.battlemon-mobile .mobile-sheet { display: block !important; position: fixed !important; top: calc(var(--mobile-offset-top,0px) + var(--mobile-app-height,100dvh) / 2) !important; left: 50% !important; right: auto !important; bottom: auto !important; translate: -50% -50%; width: min(36rem,calc(100vw - 1rem)) !important; max-width: 36rem !important; margin: 0; max-height: min(78dvh,calc(var(--mobile-app-height,100dvh) - 1rem)) !important; overflow-y: auto; z-index: 20000 !important; pointer-events: auto !important; padding-top: 3rem; border: 1px solid #5da7d5; border-radius: 1rem; box-shadow: 0 1rem 3rem #0009; animation: mobileSheetIn .2s ease-out; }
html.battlemon-mobile .mobile-sheet-close { position: absolute; right: .5rem; top: .375rem; width: 40px; height: 40px; min-height: 40px; color: #badfff; border: 1px solid #437398; border-radius: .625rem; background: #172d43; font-size: 1.6rem; }
html.battlemon-mobile .mobile-sheet-close:active { box-shadow: 0 0 1rem #38bdf888; }
@keyframes mobileSheetIn { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
/* Chat and overlays resize with the on-screen keyboard. */
html.battlemon-mobile .chat-room { width: 100%; height: 100%; border-radius: .75rem; }
html.battlemon-mobile .chat-room-header { padding: .75rem .5rem; gap: .5rem; }
html.battlemon-mobile .chat-room-heading h2 { font-size: 1.1rem; }
html.battlemon-mobile .chat-room-heading p { font-size: .7rem; }
html.battlemon-mobile .chat-room-channel { padding: .5rem; gap: .25rem; }
html.battlemon-mobile .chat-room-channel small { font-size: .55rem; }
html.battlemon-mobile .chat-room-presence { font-size: .6rem; padding: .375rem; }
html.battlemon-mobile .chat-room .chat-messages-container { padding: .75rem .5rem; gap: .75rem; overscroll-behavior: contain; }
html.battlemon-mobile .chat-room .chat-msg-content { max-width: 83%; }
html.battlemon-mobile .chat-room .chat-msg-bubble { font-size: .8rem; overflow-wrap: anywhere; }
html.battlemon-mobile .chat-room .chat-input-bar { padding: .5rem; gap: .375rem; }
html.battlemon-mobile .chat-room .chat-input-field { font-size: 16px; min-height: 44px; padding: .625rem; }
html.battlemon-mobile .btn-chat-send > span { display: none; }
html.battlemon-mobile.mobile-keyboard-open :is(.bottom-game-nav,#btnReturnToMainMenu) { display: none !important; }
html.battlemon-mobile.mobile-keyboard-open .chat-room-header { display: none; }
html.battlemon-mobile .trainer-profile-popover,html.battlemon-mobile #homeTrainerProfileAnchor .trainer-profile-popover { position: fixed; left: .5rem; right: .5rem; top: max(4rem,env(safe-area-inset-top)); width: auto; max-width: 32rem; margin-inline: auto; max-height: calc(var(--mobile-app-height,100dvh) - 5rem); overflow-y: auto; }
html.battlemon-mobile .modal-backdrop { top: var(--mobile-offset-top,0px); bottom: auto; height: var(--mobile-app-height,100dvh); padding: max(.5rem,env(safe-area-inset-top)) max(.5rem,env(safe-area-inset-right)) max(.5rem,env(safe-area-inset-bottom)) max(.5rem,env(safe-area-inset-left)); }
html.battlemon-mobile .modal-card { max-height: calc(var(--mobile-app-height,100dvh) - 1rem); }
html.battlemon-mobile .leaderboard-card { width: 100%; }
html.battlemon-mobile .lb-team-tooltip:popover-open { inset: auto .5rem max(.75rem,env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 1rem); margin-inline: auto; transform: none; pointer-events: auto; }
html.battlemon-mobile .lb-row { padding-inline: .375rem; }
html.battlemon-mobile .starter-lab-card .starter-choice-card { min-height: 7.75rem; }
html.battlemon-mobile .starter-lab-card .starter-choice-card > img { width: 4.25rem; height: 4.25rem; }
html.battlemon-mobile .starter-lab-card .starter-hero-title { font-size: .9rem; }
html.battlemon-mobile #starterSelectionModal .starter-lab-card { max-width: none; }
html.battlemon-mobile .starter-lab-card .starter-actions-footer button { min-height: 44px; }
html.battlemon-mobile .starter-lab-card .starter-slots-showcase { width: min(16rem,100%); }
html.battlemon-mobile #characterCreationModal .char-create-card { max-height: calc(var(--mobile-app-height,100dvh) - 1rem); }
html.battlemon-mobile .char-create-header { padding: .75rem; }
html.battlemon-mobile .char-create-title { font-size: 1rem; }
html.battlemon-mobile .char-avatars-grid { grid-template-columns: repeat(auto-fill,minmax(4.25rem,1fr)); }
/* Training keeps click-to-select as a full alternative to dragging. */
html.battlemon-mobile .training-builder { height: auto; flex: 0 0 auto; overflow: visible; padding: .625rem; }
html.battlemon-mobile .training-builder-layout { display: flex; flex-direction: column; flex: none; overflow: visible; }
html.battlemon-mobile .training-team-editor { display: flex; flex-direction: column; order: 0; height: auto; min-height: 0; overflow: visible; flex: 0 0 auto; }
html.battlemon-mobile .training-catalog-panel { order: 1; flex: 0 0 25rem; height: 25rem; min-height: 25rem; }
html.battlemon-mobile .training-builder-footer { position: sticky; bottom: 0; flex-direction: column; align-items: stretch; padding: .75rem .25rem; background: #0e1829; z-index: 10; }
html.battlemon-mobile .training-member { min-height: 13rem; }
html.battlemon-mobile .training-move-field select { min-height: 44px; font-size: .75rem; }
html.battlemon-mobile .training-builder-header { flex-wrap: wrap; }
html.battlemon-mobile .training-catalog-tools { grid-template-columns: minmax(0,1fr) 7.5rem; }
html.battlemon-mobile .training-catalog-grid { grid-template-columns: repeat(auto-fill,minmax(5.5rem,1fr)); }
html.battlemon-mobile .training-hub .casual-options-grid { display: flex; flex-direction: column; overflow: visible; }
html.battlemon-mobile .training-hub { flex: 0 0 auto; height: auto; overflow: visible; }
/* Home keeps the existing art, with mobile-only typography and spacing. */
html.battlemon-mobile body.in-home-screen :is(.main-container,#homeScreen,.game-title-screen) { height: var(--mobile-app-height,100dvh) !important; min-height: 0 !important; }
html.battlemon-mobile .title-logo-block { width: 100%; padding-inline: .75rem; }
html.battlemon-mobile .battlemon-pixel-logo { font-size: clamp(1.6rem,7vw,3.2rem); }
html.battlemon-mobile .title-play-wrapper { width: min(90vw,28rem); }
html.battlemon-mobile .title-quick-social-row { gap: .5rem; }
html.battlemon-mobile .title-quick-social-row .btn-title-aux { width: auto; flex: 1; padding-inline: .5rem; font-size: .7rem; }
html.battlemon-mobile .home-profile-anchor { top: max(.75rem,env(safe-area-inset-top)); left: max(.75rem,env(safe-area-inset-left)); }
html.battlemon-mobile .title-footer-tagline { font-size: .55rem; bottom: calc(2rem + env(safe-area-inset-bottom)); }
html.battlemon-mobile .title-footer-version { bottom: max(.625rem,env(safe-area-inset-bottom)); right: .75rem; }
html.battlemon-mobile .ambient-sparks-container { display: none; }
@media (orientation: landscape) {
  html.battlemon-mobile .navbar { min-height: 2.75rem; padding-top: .2rem; padding-bottom: .2rem; }
  html.battlemon-mobile .bottom-game-nav { padding-top: .2rem; padding-bottom: max(.2rem,env(safe-area-inset-bottom)); justify-content: flex-start; }
  html.battlemon-mobile .bottom-nav-tab,html.battlemon-mobile .bottom-nav-tab.center-tower-tab { flex-direction: row; flex-basis: 5.5rem; min-width: 0; height: 3.05rem; min-height: 3.05rem; }
  html.battlemon-mobile .battle-arena-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(17rem,1fr); grid-template-rows: auto auto minmax(0,1fr); min-height: 100%; height: auto; align-content: start; }
  html.battlemon-mobile .arena-top-bar { grid-column: 1/-1; grid-row: 1; }
  html.battlemon-mobile .duel-stage { grid-column: 1; grid-row: 2/4; height: max(13rem,calc(var(--mobile-app-height,100dvh) - 12rem)); }
  html.battlemon-mobile .mobile-battle-tabs { grid-column: 2; grid-row: 2; gap: .25rem; }
  html.battlemon-mobile .mobile-battle-tabs button { min-height: 2.75rem; flex-direction: row; gap: .25rem; }
  html.battlemon-mobile .battle-dashboard-controls { grid-column: 2; grid-row: 3; min-height: 0; }
  html.battlemon-mobile .move-card-btn { min-height: 4.4rem; padding-block: .375rem; gap: .25rem; }
  html.battlemon-mobile .move-card-btn { min-height: 3.7rem; }
  html.battlemon-mobile .m-top-row { display: block; }
  html.battlemon-mobile :is(.m-eff-badge,.m-cat-tag) { display: none; }
  html.battlemon-mobile .m-meta { flex-wrap: nowrap; }
  html.battlemon-mobile .m-name { font-size: .75rem; }
  html.battlemon-mobile .duel-sprite { width: 9rem; height: 9rem; }
  html.battlemon-mobile .pokeidle-hud-card { width: 55%; padding: .25rem .375rem; }
  html.battlemon-mobile .hud-meta-row { display: none; }
  html.battlemon-mobile .hud-pokemon-name { font-size: .7rem; }
  html.battlemon-mobile .tower-hub-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; }
  html.battlemon-mobile .tower-challenger-panel { grid-column: 1; grid-row: 1/3; }
  html.battlemon-mobile .tower-squad-shop-panel { grid-column: 2; }
  html.battlemon-mobile .tower-map-panel { grid-column: 2; }
  html.battlemon-mobile .starter-lab-card .starters-cards-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  html.battlemon-mobile .training-builder-layout { flex-direction: row; }
  html.battlemon-mobile .training-team-editor { flex: 1; min-width: 0; }
  html.battlemon-mobile .training-catalog-panel { flex: 1; min-width: 0; }
  html.battlemon-mobile .title-logo-block { transform: scale(.8); }
  html.battlemon-mobile .title-career-summary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.battlemon-mobile .mobile-sheet { animation: none; }
}

/* Touch controls: familiar icons, generous targets and compact content. */
.mobile-filter-toggle { display: none; }
html.battlemon-mobile .mobile-icon-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  min-width: 44px; min-height: 44px; padding: .5rem; font-size: .75rem !important; line-height: 1.3; white-space: normal;
}
html.battlemon-mobile .mobile-icon-action > svg { display: none; }
html.battlemon-mobile .mobile-icon-action::before {
  content: ''; display: block; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem;
  background: currentColor; mask: var(--mobile-action-icon) center / contain no-repeat;
  -webkit-mask: var(--mobile-action-icon) center / contain no-repeat;
}
html.battlemon-mobile .mobile-icon-action:active { filter: brightness(1.25); }
html.battlemon-mobile #btnToggleSpeed #speedText { display: inline !important; font-size: .8rem; }
html.battlemon-mobile :is(#btnToggleSpeed,#btnFlee).mobile-icon-action { min-height: 36px; min-width: 36px; padding: .25rem .375rem; gap: .25rem; font-size: .6rem !important; }
html.battlemon-mobile :is(#btnToggleSpeed,#btnFlee).mobile-icon-action::before { width: 1rem; height: 1rem; flex-basis: 1rem; }
html.battlemon-mobile #btnFlee.mobile-icon-action { font-size: 0 !important; width: 36px; padding: .25rem; gap: 0; }
html.battlemon-mobile #btnToggleSpeed #speedText { font-size: .65rem; }
html.battlemon-mobile .bottom-game-nav { gap: .25rem; padding-inline: max(.375rem,env(safe-area-inset-left)) max(.375rem,env(safe-area-inset-right)); }
html.battlemon-mobile .bottom-game-nav > .bottom-nav-tab {
  flex: 1 1 0; min-width: 0; max-width: 5rem; height: 3.55rem; min-height: 3.55rem; flex-direction: column;
  margin-inline: 0; padding: .375rem; position: relative;
}
html.battlemon-mobile .bottom-game-nav { justify-content: center; }
html.battlemon-mobile .bottom-nav-tab :is(.tab-label,.center-tab-label) { display: block; }
html.battlemon-mobile .bottom-nav-tab :is(.tab-label,.center-tab-label)::after { font-size: .55rem; }
html.battlemon-mobile .bottom-nav-tab :is(.tab-icon,.center-icon) { width: 1.5rem; height: 1.5rem; }
html.battlemon-mobile .center-tab-content { gap: .25rem; }
html.battlemon-mobile .center-tab-badge { position: absolute; right: .125rem; top: .125rem; font-size: .5rem; }
html.battlemon-mobile .tab-lock-indicator { position: absolute; top: .1875rem; right: .1875rem; bottom: auto; width: .7rem; height: .7rem; }
html.battlemon-mobile .mobile-battle-tabs button { min-height: 44px; padding: .5rem; }
html.battlemon-mobile .mobile-battle-tabs button span { display: block; font-size: .65rem; }
html.battlemon-mobile .mobile-battle-tabs svg { width: 1.5rem; height: 1.5rem; }
html.battlemon-mobile .battle-arena-card { min-height: 0; align-content: start; }
html.battlemon-mobile .battle-dashboard-controls { min-height: 0; }
html.battlemon-mobile .squad-left-picker { height: auto; min-height: 0; overflow: visible; }
html.battlemon-mobile #squadPickerGrid { flex: none; max-height: 28rem; min-height: 8rem; overflow-y: auto; }
html.battlemon-mobile .squad-left-picker .clean-filter-bar { grid-template-columns: minmax(0,1fr) 44px; }
html.battlemon-mobile .squad-left-picker .search-input-wrapper { min-width: 0; }
html.battlemon-mobile #squadCollectionSelect { grid-column: 1; font-size: .8rem; }
html.battlemon-mobile .mobile-filter-toggle { display: grid; place-items: center; color: #a7daff; background: #14283f; border: 1px solid #3d658b; border-radius: .5rem; }
html.battlemon-mobile .mobile-filter-toggle svg { width: 1.5rem; height: 1.5rem; }
html.battlemon-mobile .mobile-filter-toggle[aria-expanded="true"] { color: #ffda70; border-color: #fbbf24; }
html.battlemon-mobile .squad-left-picker:not(.mobile-filters-expanded) :is(#squadGenSelect,#squadTypeFilterBar) { display: none; }
html.battlemon-mobile .squad-left-picker.mobile-filters-expanded :is(#squadGenSelect) { grid-column: 1/-1; }
html.battlemon-mobile .picker-panel-title,html.battlemon-mobile #squadSectionTitle { font-size: .75rem; }
html.battlemon-mobile .squad-lock-info { line-height: 1.4; }
html.battlemon-mobile .training-builder-header p { display: none; }
html.battlemon-mobile .training-builder-footer { gap: .5rem; }
html.battlemon-mobile #btnConfirmTrainingBattle { flex: 1 1 auto; }

/* Battle sizing follows the usable viewport instead of fixed desktop dimensions. */
html.battlemon-mobile button { text-align: center; }
html.battlemon-mobile :is(.btn-sub-tower,.btn-pokecenter,.btn-pixel-primary,.btn-pixel-secondary,.btn-battle-end) { align-items: center; justify-content: center; }
html.battlemon-mobile #battleScreen { --bu: var(--mobile-battle-unit,14px); }
html.battlemon-mobile #battleScreen .battle-arena-card { padding: calc(var(--bu) * .35); gap: calc(var(--bu) * .4); }
html.battlemon-mobile #battleScreen .arena-top-bar { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: calc(var(--bu) * .35); min-height: calc(var(--bu) * 2.75); align-items: center; }
html.battlemon-mobile #battleScreen .arena-match-info { justify-content: center; }
html.battlemon-mobile #battleScreen .arena-round-tag { width: 100%; min-width: 0; justify-content: center; text-align: center; font-size: calc(var(--bu) * .58); line-height: 1.35; padding: calc(var(--bu) * .35); }
html.battlemon-mobile #battleScreen .arena-round-tag::before { font-size: calc(var(--bu) * .75); flex-shrink: 0; }
html.battlemon-mobile #battleScreen .arena-quick-controls { align-items: center; justify-content: center; gap: calc(var(--bu) * .3); }
html.battlemon-mobile #battleScreen :is(#btnToggleSpeed,#btnFlee) { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 36px; height: 36px; margin: 0; border-radius: .5rem; line-height: 1; }
html.battlemon-mobile #battleScreen #btnToggleSpeed { font-size: calc(var(--bu) * .55) !important; gap: calc(var(--bu) * .2); padding: calc(var(--bu) * .3); }
html.battlemon-mobile #battleScreen #btnToggleSpeed #speedText { font-size: calc(var(--bu) * .65); }
html.battlemon-mobile #battleScreen #btnFlee { width: 36px; min-width: 36px; padding: 0; }
html.battlemon-mobile #battleScreen #btnFlee::before { margin: 0; width: 18px; height: 18px; flex-basis: 18px; }
html.battlemon-mobile #battleScreen .duel-stage { height: clamp(215px,calc(var(--mobile-battle-room,650px) * .43),320px); }
html.battlemon-mobile #battleScreen .pokeidle-hud-card { width: 47%; padding: calc(var(--bu) * .35); }
html.battlemon-mobile #battleScreen .hud-pokemon-name { font-size: calc(var(--bu) * .8); }
html.battlemon-mobile #battleScreen .hud-level-pill { font-size: calc(var(--bu) * .6); }
html.battlemon-mobile #battleScreen .duel-sprite { width: calc(var(--bu) * 10); height: calc(var(--bu) * 10); }
html.battlemon-mobile #battleScreen .mobile-battle-tabs { gap: calc(var(--bu) * .35); }
html.battlemon-mobile #battleScreen .mobile-battle-tabs button { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: calc(var(--bu) * .3); padding: .25rem; min-height: 44px; }
html.battlemon-mobile #battleScreen .mobile-battle-tabs svg { width: calc(var(--bu) * 1.15); height: calc(var(--bu) * 1.15); flex-shrink: 0; }
html.battlemon-mobile #battleScreen .mobile-battle-tabs span { font-size: calc(var(--bu) * .65); text-align: center; }
html.battlemon-mobile #battleScreen .moves-grid-modern { gap: calc(var(--bu) * .4); }
html.battlemon-mobile #battleScreen .move-card-btn { min-width: 0; min-height: calc(var(--bu) * 6); padding: calc(var(--bu) * .45); gap: calc(var(--bu) * .4); text-align: center; }
html.battlemon-mobile #battleScreen .m-top-row { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-inline: 1.5rem; gap: .2rem; }
html.battlemon-mobile #battleScreen .move-card-btn > .mobile-info-trigger { width: 24px; height: 24px; top: .25rem; right: .25rem; }
html.battlemon-mobile #battleScreen .move-card-btn > .mobile-info-trigger svg { width: 1rem; height: 1rem; }
html.battlemon-mobile #battleScreen .m-name { font-size: calc(var(--bu) * .85); text-align: center; white-space: normal; overflow-wrap: anywhere; }
html.battlemon-mobile #battleScreen .m-meta { justify-content: center; gap: calc(var(--bu) * .3); }
html.battlemon-mobile #battleScreen :is(.m-type-pill,.m-cat-tag,.m-power-text,.move-pp-tag,.m-eff-badge) { font-size: calc(var(--bu) * .6); }
html.battlemon-mobile #battleScreen :is(.moves-command-panel,.tactical-side-panel,.combat-console-panel) { padding: calc(var(--bu) * .5); }
html.battlemon-mobile #battleScreen :is(.bag-item-btn,.battle-party-switch-btn) { text-align: center; align-items: center; justify-content: center; }
@media (orientation: landscape) {
  html.battlemon-mobile #battleScreen .battle-arena-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: calc(var(--bu) * .4); }
  html.battlemon-mobile #battleScreen .duel-stage { height: max(200px,calc(var(--mobile-battle-room,290px) - 52px)); }
  html.battlemon-mobile #battleScreen .move-card-btn { min-height: calc(var(--bu) * 5.25); gap: .2rem; }
  html.battlemon-mobile #battleScreen .m-name { font-size: calc(var(--bu) * .75); }
}

/* Arena contents scale together against the arena's own width AND height. */
html.battlemon-mobile #battleScreen .duel-stage { container-type: size; }
html.battlemon-mobile #battleScreen .duel-sides-grid { --au: clamp(9px,min(3cqw,4.5cqh),12px); }
html.battlemon-mobile #battleScreen .pokeidle-hud-card { width: 41%; max-width: 13rem; padding: calc(var(--au) * .4); border-radius: calc(var(--au) * .8); }
html.battlemon-mobile #battleScreen .player-hud { top: 3%; left: 3%; }
html.battlemon-mobile #battleScreen .enemy-hud { bottom: 3%; right: 3%; }
html.battlemon-mobile #battleScreen .hud-pokemon-name { font-size: calc(var(--au) * .95); }
html.battlemon-mobile #battleScreen .hud-trainer-tag { font-size: max(7px,calc(var(--au) * .65)); }
html.battlemon-mobile #battleScreen .hud-top { gap: calc(var(--au) * .3); margin: calc(var(--au) * .2) 0; }
html.battlemon-mobile #battleScreen .hud-level-pill { font-size: max(7px,calc(var(--au) * .7)); padding: calc(var(--au) * .15) calc(var(--au) * .25); }
html.battlemon-mobile #battleScreen :is(.type-badge,.status-pill,.buff-tag) { font-size: max(7px,calc(var(--au) * .65)); padding: calc(var(--au) * .15) calc(var(--au) * .25); }
html.battlemon-mobile #battleScreen .hud-meta-row { margin-bottom: calc(var(--au) * .2); }
html.battlemon-mobile #battleScreen .hud-hp-track { height: calc(var(--au) * .55); margin-bottom: calc(var(--au) * .2); }
html.battlemon-mobile #battleScreen .hud-hp-numbers { font-size: max(8px,calc(var(--au) * .75)); }
html.battlemon-mobile #battleScreen .team-pokeballs-row > * { width: 5px; height: 5px; }
html.battlemon-mobile #battleScreen .player-pedestal { width: 46%; height: 45%; left: 3%; bottom: 3%; }
html.battlemon-mobile #battleScreen .enemy-side-right .enemy-pedestal { width: 46%; height: 45%; right: 3%; top: 19%; }
html.battlemon-mobile #battleScreen .duel-sprite { width: calc(var(--au) * 10); height: calc(var(--au) * 10); }
html.battlemon-mobile #battleScreen .pokemon-battle-base { bottom: calc(var(--au) * .5); }
html.battlemon-mobile #battleScreen :is(.player-base,.enemy-base) { height: calc(var(--au) * 3.125); }
html.battlemon-mobile #battleScreen .base-top-surface { height: calc(var(--au) * 2.375); }
html.battlemon-mobile #battleScreen .base-cylinder-rim { height: calc(var(--au) * 1.5); }
html.battlemon-mobile #battleScreen .base-shadow { height: calc(var(--au) * 1.5); bottom: calc(var(--au) * -.375); }
html.battlemon-mobile #battleScreen .player-sprite-pos { bottom: calc(var(--au) * -1); }
html.battlemon-mobile #battleScreen .enemy-sprite-pos { bottom: calc(var(--au) * -.125); }
html.battlemon-mobile #battleScreen .trainer-stage-sprite { width: calc(var(--au) * 3.5); height: calc(var(--au) * 3.5); right: calc(var(--au) * .375); bottom: calc(var(--au) * 1.5); }
html.battlemon-mobile #battleScreen .battle-vs-center .vs-pixel-badge { width: calc(var(--au) * 3.5); }

/* Knockout: a quiet prompt and a compact, readable replacement picker. */
html.battlemon-mobile .btn-pokemon-fainted-red { animation: none; background: #17283bed; border: 1px solid #6684a6; border-radius: .625rem; box-shadow: 0 .25rem .75rem #0006; padding: .5rem; gap: .375rem; }
html.battlemon-mobile .btn-pokemon-fainted-red:hover { transform: none; box-shadow: 0 .25rem .75rem #0006; }
html.battlemon-mobile .fainted-btn-badge { color: #fda4af; font-family: var(--font-pixel-ui); font-size: .6rem; letter-spacing: 0; text-shadow: none; line-height: 1.3; }
html.battlemon-mobile .fainted-btn-main { color: #e2ecf8; font-size: .65rem; text-shadow: none; letter-spacing: 0; }
html.battlemon-mobile .fainted-btn-arrow { color: #8ac8f3; flex-shrink: 0; }
html.battlemon-mobile #faintedSwitchModal .fainted-switch-modal-card { width: min(24rem,calc(100vw - 1.5rem)); max-height: calc(var(--mobile-app-height,100dvh) - 2rem); overflow-y: auto; background: #101a2a; border: 1px solid #405873; box-shadow: 0 1rem 3rem #0009; border-radius: .875rem; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-header { background: transparent; border-color: #2c3e55; padding: .875rem; gap: .5rem; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-title-group { min-width: 0; gap: .375rem; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-badge { font-family: var(--font-pixel-ui); font-size: .6rem; color: #fda4af; letter-spacing: .03em; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-title { font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-body { padding: .875rem; gap: .75rem; }
html.battlemon-mobile #faintedSwitchModal .fainted-modal-subtitle { font-size: .7rem; color: #9eb0c7; }
html.battlemon-mobile #faintedSwitchModal .fainted-party-choices-grid { max-height: none; overflow: visible; padding: 0; gap: .5rem; }
html.battlemon-mobile #faintedSwitchModal .fainted-choice-card { padding: .625rem .5rem; border: 1px solid #334a65; border-radius: .625rem; gap: .5rem; background: #142237; }
html.battlemon-mobile #faintedSwitchModal .fcc-left { flex: 0 0 3rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-sprite { width: 3rem; height: 3rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-middle { min-width: 0; flex: 1; }
html.battlemon-mobile #faintedSwitchModal .fcc-name-row { flex-wrap: wrap; gap: .25rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-name { font-size: .8rem; white-space: normal; overflow-wrap: anywhere; }
html.battlemon-mobile #faintedSwitchModal .fcc-level { font-size: .6rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-hp-row { flex-wrap: wrap; gap: .25rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-hp-track { min-width: 2rem; }
html.battlemon-mobile #faintedSwitchModal .fcc-hp-text { font-size: .6rem; }
html.battlemon-mobile #faintedSwitchModal .btn-send-pokemon { min-height: 40px; padding: .375rem; gap: .25rem; font-size: .6rem; color: #b9f5dc; background: #143c35; border: 1px solid #328b74; box-shadow: none; justify-content: center; }

/* Team editor: concise headers and one compact row per move. */
html.battlemon-mobile #squadScreen #btnForfeitTowerRun { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; width: auto; min-height: 34px; height: 34px; padding: .25rem .5rem; gap: .375rem; font-size: .65rem !important; white-space: nowrap; flex: 0 0 auto; }
html.battlemon-mobile #squadScreen #btnForfeitTowerRun::before { width: 1rem; height: 1rem; flex-basis: 1rem; }
html.battlemon-mobile #squadScreen #btnForfeitTowerRun:not([style*="display: none"]) { display: inline-flex !important; }
html.battlemon-mobile #squadScreen #btnSquadStartBattle { font-size: .75rem !important; white-space: nowrap; gap: 0; padding-inline: .375rem; }
html.battlemon-mobile #squadScreen #btnSquadStartBattle::before { display: none; }
html.battlemon-mobile #btnUseSwapper .mobile-info-trigger { display: none; }
html.battlemon-mobile #squadScreen .slot-rect-tag { font: 800 .75rem var(--font-pixel-ui); letter-spacing: .04em; }
html.battlemon-mobile #squadScreen .active-slot-pill { white-space: nowrap; font-size: .65rem; }
html.battlemon-mobile #squadScreen :is([data-action="cry"]) { display: none; }
html.battlemon-mobile #squadScreen .slot-moves-grid { gap: .375rem; }
html.battlemon-mobile #squadScreen .slot-move-card {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 26px;
  grid-template-rows: auto auto; align-items: center; column-gap: .375rem; row-gap: 0;
  min-height: 0; padding: .25rem .375rem; border-radius: .5rem;
  border-color: color-mix(in srgb,var(--team-move-color) 55%,#243650);
  background: color-mix(in srgb,var(--team-move-color) 8%,#111c2e);
}
html.battlemon-mobile #squadScreen .move-card-top { grid-column: 1; grid-row: 1; min-width: 0; gap: .375rem; }
html.battlemon-mobile #squadScreen .move-type-pill { width: 24px; height: 24px; padding: .2rem; display: inline-flex; align-items: center; justify-content: center; }
html.battlemon-mobile #squadScreen .move-type-pill :is(svg,img) { width: 18px; height: 18px; }
html.battlemon-mobile #squadScreen .btn-select-move {
  min-height: 32px; padding: .25rem .375rem; gap: .375rem;
  color: var(--team-move-color); border-color: color-mix(in srgb,var(--team-move-color) 75%,#3a4e65);
  background: color-mix(in srgb,var(--team-move-color) 13%,#142136); text-align: left;
}
html.battlemon-mobile #squadScreen .move-name-txt { font-size: .7rem; white-space: normal; line-height: 1.2; min-width: 0; }
html.battlemon-mobile #squadScreen .move-arrow-icon { display: none; }
html.battlemon-mobile #squadScreen .mobile-move-inline-stats { flex-shrink: 0; font-size: .52rem; font-weight: 700; color: #bac9dc; white-space: nowrap; }
html.battlemon-mobile #squadScreen .move-card-meta { grid-column: 1; grid-row: 2; justify-content: flex-end; line-height: 1.2; font-size: .55rem; }
html.battlemon-mobile #squadScreen .move-card-meta > :not(.squad-move-pp) { display: none; }
html.battlemon-mobile #squadScreen .slot-move-card > .mobile-info-trigger { position: static; grid-column: 2; grid-row: 1/3; width: 26px; height: 26px; margin: 0; align-self: center; justify-self: center; display: grid; place-items: center; color: var(--team-move-color); border-color: color-mix(in srgb,var(--team-move-color) 60%,#475569); }
html.battlemon-mobile #squadScreen .slot-move-card > .mobile-info-trigger svg { width: 1rem; height: 1rem; }
html.battlemon-mobile #squadSynergyStrip .synergy-badge-label { display: none; }
html.battlemon-mobile #squadSynergyStrip .synergy-badge { width: 28px; height: 28px; padding: .25rem; gap: 0; }
html.battlemon-mobile #squadSynergyStrip .synergy-col { gap: .25rem; }
html.battlemon-mobile #squadSynergyStrip .btn-synergy-scroll { width: 20px; min-width: 20px; height: 28px; min-height: 28px; padding: 0; border-radius: .25rem; }
html.battlemon-mobile #squadScreen .picker-panel-header { gap: .5rem; }
html.battlemon-mobile #squadScreen .picker-panel-header > div { flex: 1; min-width: 0; }
html.battlemon-mobile #squadScreen .picker-panel-header .pixel-tag { font: 800 .8rem/1.2 var(--font-pixel-ui); }
html.battlemon-mobile #squadCounterBadge { flex: 0 0 60%; width: 60%; min-width: 0; height: 2.25rem; display: flex; align-items: center; justify-content: center; padding: .1875rem .375rem; font: 800 clamp(.45rem,1.9vw,.65rem)/1 var(--font-pixel-ui); white-space: nowrap; }
html.battlemon-mobile #squadCollectionSelect { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-size: 14px 14px; background-repeat: no-repeat; background-position: right .75rem center; }

html.battlemon-mobile #squadScreen .slot-shiny-toggle { min-height: 20px; height: 20px; padding: .125rem .5rem; width: auto; min-width: 0; line-height: 1; border-radius: .375rem; }
html.battlemon-mobile #squadScreen .slot-shiny-toggle .training-shiny-label { font-size: .55rem; line-height: 1; }
html.battlemon-mobile #squadScreen .slot-move-card { grid-template-rows: auto; }
html.battlemon-mobile #squadScreen .move-card-top { min-height: 36px; align-items: center; justify-content: center; }
html.battlemon-mobile #squadScreen .btn-select-move { align-items: center; justify-content: center; }
html.battlemon-mobile #squadScreen .move-name-txt { flex: 1; text-align: center; }
html.battlemon-mobile #squadScreen .mobile-move-inline-stats { font-size: .47rem; }
html.battlemon-mobile #squadScreen .move-card-meta { display: none; }
html.battlemon-mobile #squadScreen .slot-move-card > .mobile-info-trigger { grid-row: 1; }
html.battlemon-mobile .mobile-pokemon-info-host { -webkit-touch-callout: none; user-select: none; }
html.battlemon-mobile #gameAlertModal.mobile-shiny-alert .game-alert-title-group { flex: 1; min-width: 0; }
html.battlemon-mobile #gameAlertModal.mobile-shiny-alert .game-alert-title-group > div:last-child { flex: 1; min-width: 0; }
html.battlemon-mobile #gameAlertModal.mobile-shiny-alert .game-alert-title { text-align: right; }
