/* Full play area with a single compact HUD. Existing game controls live in Options. */
body.adventure-layout main.game-shell{transform:none!important;border:0!important;border-radius:0!important}
body.adventure-layout #map-location{display:none!important}
body.adventure-layout .adventure-hud button{align-self:stretch;height:auto;max-height:none;min-height:0;clip-path:none}
body.adventure-layout .adventure-hud .hud-trainer{height:100%;overflow:visible}
body.adventure-layout .adventure-hud .hud-actions button{height:44px;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%)}
body.adventure-layout{background:#03090c!important;overflow:hidden}
body.adventure-layout main.game-shell{position:fixed!important;inset:8px!important;width:auto!important;height:calc(var(--game-view-height,100dvh) - 16px)!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important;--frame-gutter:0px}
body.adventure-layout main.game-shell>header,body.adventure-layout main.game-shell>.toolbar,body.adventure-layout .game-frame-ornaments,body.adventure-layout .game-atmosphere,body.adventure-layout .game-key-guide,body.adventure-layout #note,body.adventure-layout #exit-immersive-btn,body.adventure-layout #desktop-game-controls{display:none!important}
body.adventure-layout .game-viewport-frame{margin:0!important;padding:0!important;width:100%!important;height:100%!important;max-width:none!important}
body.adventure-layout #screen{width:var(--display-width)!important;height:var(--display-height)!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;border:1px solid #314f59!important;border-radius:0!important;box-shadow:none!important;background:#000!important}
body.adventure-layout #game{background:#000!important}
.adventure-hud{position:absolute;inset:0 0 auto;z-index:31;height:62px;display:flex;align-items:stretch;gap:0;color:#edf7fa;font:14px/1.2 system-ui,sans-serif;background:linear-gradient(110deg,#15252df5,#0a151bf2);border-top:2px solid #58dbf5;border-bottom:1px solid #64dfff80;box-shadow:0 6px 20px #0006;pointer-events:auto;box-sizing:border-box}
.adventure-hud>*{min-width:0;box-sizing:border-box;border-right:1px solid #416773;padding:8px 16px}
.adventure-hud button{font:inherit;color:inherit;cursor:pointer;background:transparent;border:0;border-radius:0;box-shadow:none;margin:0}
.adventure-hud button:hover{background:#3ccbf529}.adventure-hud button:focus-visible,.festival-window button:focus-visible,.festival-window a:focus-visible{outline:2px solid #ffe163;outline-offset:-3px}
.adventure-hud .hud-trainer{display:grid;grid-template-columns:48px minmax(60px,135px) minmax(36px,100px);gap:10px;align-items:center;padding:4px 14px 4px 8px;border-right:1px solid #416773;text-align:left;flex:1.5}
.hud-avatar{width:48px;height:48px;border:2px solid #addce9;border-radius:50%;background:radial-gradient(circle,#558192,#193946);image-rendering:pixelated;box-sizing:border-box}
.hud-identity strong{display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;font-size:14px;letter-spacing:.04em}.hud-identity small{display:inline-block;background:#f7d05c;color:#182024;font-size:11px;font-weight:900;padding:2px 7px;margin-top:4px;clip-path:polygon(5px 0,100% 0,calc(100% - 5px) 100%,0 100%)}
.hud-xp{height:7px;width:100%;accent-color:#57dcf7}.hud-place,.hud-climate{display:flex;flex-direction:column;justify-content:center;gap:5px}.hud-place{flex:1.2}.hud-place strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-place small,.hud-climate small{color:#adc3cd;font-size:10px}.hud-climate{min-width:128px}.hud-climate strong{font-variant-numeric:tabular-nums}.hud-money{display:flex;align-items:center;color:#ffe490;white-space:nowrap;font-size:14px;min-width:95px}
.adventure-hud .hud-actions{display:flex;gap:4px;align-items:center;padding:5px;border:0}.adventure-hud .hud-shortcut{position:relative;width:43px;height:44px;font-size:24px;color:#ccf7ff;border:1px solid #568392;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);background:linear-gradient(135deg,#24424f,#0c1820)}.adventure-hud .hud-shortcut[data-action=Menu]{color:#55dbfc;width:58px}.adventure-hud .hud-shortcut[data-action=Pokéloja]{color:#ffdd65}
body.adventure-layout #campaign-objective{top:72px!important}body.adventure-layout #party-sidebar{top:78px!important}
.hud-settings-controls{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.hud-settings-controls[hidden]{display:none!important}.hud-settings-controls .toolbar-controls{display:flex;flex-wrap:wrap;gap:8px}.hud-settings-controls .window-zoom,.hud-settings-controls #game-menu-toggle{display:none!important}
@media(max-width:1000px){.adventure-hud>*{padding:8px}.adventure-hud .hud-trainer{grid-template-columns:42px minmax(55px,110px)}.hud-avatar{width:42px;height:42px}.hud-xp{display:none}.hud-place{flex:1}.adventure-hud .hud-shortcut{width:36px}.adventure-hud .hud-shortcut[data-action=Pokédex],.adventure-hud .hud-shortcut[data-action=Bolsa]{display:none}.hud-climate{min-width:105px}.hud-money{min-width:75px;font-size:12px}}
@media(max-width:620px){body.adventure-layout main.game-shell{inset:0!important;height:var(--game-view-height,100dvh)!important}.adventure-hud{height:56px;font-size:11px}.adventure-hud .hud-trainer{grid-template-columns:32px minmax(35px,70px);gap:5px;padding:5px;flex:1}.hud-avatar{width:32px;height:32px}.hud-identity strong{font-size:10px;max-width:70px}.hud-identity small{font-size:9px;padding:1px 4px}.hud-place{max-width:108px;padding:4px}.hud-place strong{font-size:10px}.hud-place small{font-size:9px}.hud-climate{min-width:80px;padding:4px}.hud-climate strong{font-size:11px}.hud-climate small{font-size:8px}.hud-money{display:none!important}.adventure-hud .hud-actions{gap:1px;padding:3px}.adventure-hud .hud-shortcut{width:29px;height:35px;font-size:19px}.adventure-hud .hud-shortcut[data-action=Menu]{width:32px}.adventure-hud .hud-shortcut[data-action=Pokémon]{display:none}.adventure-hud .hud-shortcut[data-action=Pokéloja]{display:none}body.adventure-layout #campaign-objective{top:61px!important}}
@media(orientation:landscape) and (max-height:500px){.adventure-hud{height:45px}.hud-avatar{height:35px;width:35px}.adventure-hud .hud-trainer{grid-template-columns:35px minmax(40px,100px)}.adventure-hud .hud-shortcut{height:33px}.hud-place small{display:none}body.adventure-layout #campaign-objective{top:48px!important}}

@media(max-width:620px){body.adventure-layout .adventure-hud .hud-actions button{height:35px}}
@media(orientation:landscape) and (max-height:500px){body.adventure-layout .adventure-hud .hud-actions button{height:33px}}

body.adventure-layout .hud-settings-controls #server-presence{position:static!important;translate:none!important;visibility:visible!important;display:flex!important;max-width:100%!important;flex-wrap:wrap}body.adventure-layout .hud-settings-controls #server-presence time{display:none}

body.adventure-layout main.game-shell>.toolbar{display:none!important}body.adventure-layout .adventure-hud .hud-actions{background:none;box-shadow:none;border-radius:0;max-width:none;max-height:none;height:auto}body.adventure-layout .adventure-hud .hud-avatar{flex-shrink:0;object-fit:contain}

body.adventure-layout.emerald-game main.game-shell>.toolbar{display:none!important}body.adventure-layout :is(#screen,main.game-shell) .adventure-hud .hud-actions{background:transparent!important;box-shadow:none!important;border-radius:0!important;max-width:none!important}body.adventure-layout :is(#screen,main.game-shell) .adventure-hud strong{color:#edf7fa}body.adventure-layout :is(#screen,main.game-shell) .adventure-hud .hud-money{color:#ffe490}body.adventure-layout :is(#screen,main.game-shell) .adventure-hud .hud-xp{appearance:none;border:1px solid #486372;background:#0d1c24;border-radius:6px;overflow:hidden}body.adventure-layout :is(#screen,main.game-shell) .hud-xp::-webkit-progress-bar{background:#0d1c24}body.adventure-layout :is(#screen,main.game-shell) .hud-xp::-webkit-progress-value{background:#58d5f3}

body.adventure-layout #screen #overlay .hud-settings-controls #server-presence{display:flex!important;visibility:visible!important}body.adventure-layout .toolbar::after{content:none!important}

/* Fit within the existing HUD thickness. No arena/window selectors are changed. */
html body.adventure-layout #adventure-hud .hud-identity{min-width:0!important;}
html body.adventure-layout #adventure-hud .hud-identity strong{min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body.adventure-layout #adventure-hud .hud-identity small{flex:none!important;}
html body.adventure-layout #adventure-hud .hud-place strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body.adventure-layout #adventure-hud .hud-climate strong{letter-spacing:0!important;font-variant-numeric:tabular-nums;white-space:nowrap;}
html body.adventure-layout #adventure-hud .hud-wallet{grid-area:1/4;min-width:0;align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-right:1px solid #416773;padding:2px;}
html body.adventure-layout #adventure-hud .hud-wallet>.hud-money{display:block!important;position:static!important;min-width:0!important;max-width:100%;margin:0!important;padding:0!important;border:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}
html body.adventure-layout #adventure-hud .hud-wallet>.hud-benefits{position:static!important;display:flex;gap:1px;padding:0!important;border:0!important;transform:none!important;background:none!important;}
html body.adventure-layout #adventure-hud .hud-wallet .hud-benefit{width:16px!important;height:18px!important;min-height:18px!important;padding:1px!important;}
html body.adventure-layout #adventure-hud .hud-wallet .hud-benefit>img{width:14px!important;height:14px!important;}
html body.adventure-layout #adventure-hud .hud-wallet>.hud-benefits:not(:has(button:not([hidden]))){display:none!important;}
@container desktop-game-frame (max-width:700px){html body.adventure-layout #adventure-hud .hud-wallet{grid-area:1/8/2/10;}}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:30px 23px!important;height:56px!important;min-height:0!important;padding:0 4px!important;gap:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud>.app-hud-main{display:grid!important;grid-template-columns:minmax(56px,1fr) minmax(45px,.7fr) 48px 50px 48px!important;align-items:center!important;gap:2px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud>.app-hud-status{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-trainer{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:22px 3px!important;width:auto!important;min-width:0!important;max-width:none!important;height:28px!important;padding:0!important;border:0!important;gap:0 3px!important;align-content:center!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-avatar{grid-area:1/1/3/2!important;width:24px!important;height:24px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-identity{grid-area:1/2!important;display:flex!important;align-items:center!important;gap:2px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-identity strong{display:block!important;font:600 8px/1.2 system-ui!important;letter-spacing:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-identity small{font:600 7px/1.2 system-ui!important;margin:0!important;padding:1px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-xp{display:block!important;grid-area:2/2!important;width:100%!important;height:3px!important;margin:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-place,.hud-climate){display:flex!important;flex-direction:column!important;justify-content:center!important;gap:1px!important;min-width:0!important;max-width:none!important;width:auto!important;padding:1px 2px!important;border-right:1px solid #416773!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-place,.hud-climate) strong{display:block!important;font:600 8px/1.2 system-ui!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-place,.hud-climate) small{display:block!important;font:7px/1.2 system-ui!important;letter-spacing:0!important;white-space:nowrap!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-commerce,.hud-actions){display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;min-width:0!important;width:auto!important;padding:0!important;border:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-actions .hud-shortcut:not([data-action="Trocar personagem"]):not([data-action="Menu"]){display:none!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-shortcut,.hud-commerce-button){display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 23px!important;width:23px!important;min-width:23px!important;height:26px!important;min-height:0!important;margin:0!important;padding:2px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.community-icon,.hud-commerce-icon,.hud-commerce-art){width:19px!important;height:19px!important;flex-basis:19px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-commerce-label{display:none!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-switch-icon{font-size:19px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-money{display:none!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-benefits{position:static!important;display:flex!important;gap:1px!important;transform:none!important;border:0!important;padding:0!important;margin:0 auto 0 0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-benefit{width:15px!important;height:20px!important;min-height:0!important;padding:1px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-benefit>img{width:14px!important;height:14px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-zoom{display:flex!important;flex:none!important;gap:2px!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-zoom button{width:25px!important;min-width:0!important;height:20px!important;min-height:0!important;padding:1px!important;font:700 8px/1.2 system-ui!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #server-presence{position:relative!important;inset:auto!important;translate:none!important;transform:none!important;display:flex!important;flex:none!important;gap:3px!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #server-presence>span{width:auto!important;font:8px/1 system-ui!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #server-presence>button{width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;padding:1px!important;font-size:0!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #server-presence>button::before{content:'☷';font:14px/1 system-ui;color:#d9f8ff;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #game-volume-controls button{width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;padding:1px!important;}
html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud #game-volume-controls output{min-width:22px!important;font-size:8px!important;}
@media(orientation:landscape) and (max-height:500px){
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud{height:45px!important;grid-template-rows:23px 19px!important;}
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-trainer{height:23px!important;grid-template-rows:19px 3px!important;}
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-shortcut,.hud-commerce-button){height:22px!important;}
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-avatar){width:21px!important;height:21px!important;}
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud :is(.hud-place,.hud-climate) small{display:none!important;}
 html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud .hud-money{display:block!important;font:9px/1 system-ui!important;min-width:0!important;max-width:100px;overflow:hidden;text-overflow:ellipsis;padding:0!important;}
}

/* Use the free end of the app's existing status row for compact context. */
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-identity strong{flex:1 1 auto!important;font-size:9px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-identity small{font-size:8px!important;}
@media(orientation:portrait){
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .app-hud-status>.hud-place{display:flex!important;position:static!important;flex:0 1 46px!important;min-width:0!important;max-width:46px!important;gap:0!important;padding:0!important;border:0!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .app-hud-status>.hud-climate{display:flex!important;position:static!important;flex:0 0 40px!important;min-width:0!important;max-width:40px!important;padding:0!important;border:0!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud :is(.hud-place,.hud-climate) strong{font:600 7px/1.2 system-ui!important;letter-spacing:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud :is(.hud-place,.hud-climate) small{display:none!important;}
}

html[data-mobile-client=true]:not([data-native-client=true]) body #screen #adventure-hud.classic-mobile-hud[hidden]{display:none!important;}
