/* Shared geometry for the ordinary world and cartridge field surfaces. */
body.gameShell main>header nav,
.platinum-native-view .journey-menu-panel,
.journey-region .journey-menu-panel{
 box-sizing:border-box!important;position:absolute!important;left:auto!important;
 right:max(18px,env(safe-area-inset-right))!important;top:max(70px,calc(env(safe-area-inset-top) + 54px))!important;bottom:auto!important;
 width:320px!important;max-width:calc(100% - 24px)!important;max-height:calc(100dvh - 90px)!important;
 overflow:auto!important;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;
 margin:0!important;padding:16px!important;background:#102b3de8!important;color:#f4f8fc!important;
 border:1px solid #b6def32e!important;border-radius:20px!important;box-shadow:0 18px 60px #0006!important;
 backdrop-filter:blur(16px);z-index:20!important;touch-action:pan-y;
}
body.gameShell main>header nav{right:0!important;top:54px!important;max-width:calc(100vw - 24px)!important;display:none}
body.gameShell.menuOpen main>header nav{display:grid}
/* Native views can be embedded in a shorter shell than the browser viewport. */
.platinum-native-view .journey-menu-panel,.journey-region .journey-menu-panel{
 max-height:min(calc(100% - max(70px,calc(env(safe-area-inset-top) + 54px)) - 18px),calc(100dvh - 90px))!important;
}
.journey-menu-panel>h2{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.journey-menu-panel>.pt-choice-grid{display:contents}
body.gameShell main>header nav button,
.platinum-native-view .journey-menu-panel button,
.journey-region .journey-menu-panel button{
 box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;min-height:48px!important;
 padding:10px!important;margin:0!important;font:13px system-ui!important;text-align:center!important;
 border-radius:12px!important;background:#24485b!important;border:1px solid #a6c9dd42!important;color:#f4f8fc!important;
 cursor:pointer;line-height:1.3!important;
}
.journey-menu-panel button:disabled,body.gameShell main>header nav button:disabled{opacity:.45;cursor:default}
.journey-menu-panel button:focus-visible,body.gameShell main>header nav button:focus-visible{outline:3px solid #f2d88c;outline-offset:2px}
.journey-menu-panel button small{font-size:10px!important;margin-top:5px!important}
body.gameShell main>header nav [hidden]{display:none!important}
body.gameShell main>header nav #toggleSettings{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.platinum-native-view .pt-menu,.journey-region .ss-menu{
 right:max(18px,env(safe-area-inset-right))!important;top:max(16px,env(safe-area-inset-top))!important;
 display:flex;align-items:center;gap:9px;min-height:44px!important;min-width:0!important;padding:9px 16px!important;
 border-radius:24px!important;background:#102b3de8!important;border:1px solid #b6def32e!important;
 box-shadow:0 4px 20px #06172444;font:750 12px system-ui!important;color:#fff!important;
}
.platinum-native-view .pt-place,.journey-region .ss-place{
 left:max(18px,env(safe-area-inset-left))!important;top:max(16px,env(safe-area-inset-top))!important;
 max-width:calc(100% - 135px)!important;border:1px solid #b6def32e!important;background:#102b3de8!important;
 border-radius:16px!important;padding:11px 16px!important;box-shadow:0 4px 24px #06172422!important;backdrop-filter:blur(12px);
}
.platinum-native-view .pt-place small,.journey-region .ss-place small{font-size:9px!important;letter-spacing:1.7px!important;color:#a7d1e5!important}
.platinum-native-view .pt-place strong,.journey-region .ss-place strong{font-size:20px!important;letter-spacing:-.4px!important;color:#fff!important;margin:0!important}
.platinum-native-view .pt-place span,.journey-region .ss-place span{font-size:10px!important;color:#c0d8e3!important}
/* Native surfaces use the same corners as the shared world HUD. */
.platinum-native-view .pt-mode,.journey-region .ss-mode{left:auto;right:145px!important;top:16px!important;bottom:auto!important;padding:8px 12px!important;border-radius:20px!important;font:600 11px/1.2 system-ui!important;background:#123637e8!important;color:#c5ece0!important}
.platinum-native-view .pt-partner,.journey-region .ss-partner{left:18px!important;bottom:18px!important;max-width:calc(100% - 36px)!important;display:flex;align-items:center;gap:8px;padding:5px 11px!important;border-radius:18px!important;font:700 12px system-ui!important;background:#102b3de8!important;border:1px solid #b6def32e!important;min-height:54px!important}
.platinum-native-view .pt-partner img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
@media(pointer:coarse){.platinum-native-view .pt-partner,.journey-region .ss-partner{top:112px!important;bottom:auto!important;left:14px!important;padding:5px 9px!important;min-height:36px!important;font-size:10px!important}.platinum-native-view .pt-partner img,.journey-region .ss-partner img{width:26px!important;height:26px!important}}
@media(max-width:600px){
 .platinum-native-view .journey-menu-panel,.journey-region .journey-menu-panel{right:12px!important;top:max(66px,calc(env(safe-area-inset-top) + 54px))!important;max-height:min(calc(100% - max(66px,calc(env(safe-area-inset-top) + 54px)) - 12px),calc(100dvh - 90px))!important}
 .platinum-native-view .pt-menu,.journey-region .ss-menu{right:12px!important;top:max(12px,env(safe-area-inset-top))!important;padding:8px 12px!important}
 .platinum-native-view .pt-place,.journey-region .ss-place{left:12px!important;top:max(12px,env(safe-area-inset-top))!important;padding:9px 12px!important;max-width:calc(100% - 112px)!important}
 .platinum-native-view .pt-place strong,.journey-region .ss-place strong{font-size:16px!important}
 .platinum-native-view .pt-place span,.journey-region .ss-place span{display:none!important}
 .platinum-native-view .pt-mode,.journey-region .ss-mode{right:100px!important;top:12px!important;font-size:10px!important;padding:6px 9px!important;max-width:112px}
}
