/* feature:mobile-landscape-bootstrap | first touch web client.
 * Entire layer is gated by JS device detection: desktop style/geometry is unchanged.
 * Reuse current RPG PNG/UV art, original world canvas and real game dialog content. */
body.mobile-web{
 overflow:hidden!important;
 width:100%;height:100dvh;overscroll-behavior:none;
 margin:0!important;
 background:#09070d!important;
 -webkit-tap-highlight-color:transparent;
 font-family:Arial,sans-serif!important;
}
body.mobile-web :is(#game,#login){overscroll-behavior:contain;}
body.mobile-web #game:not(.hidden),
body.mobile-web #login:not(.hidden){
 box-sizing:border-box!important;
 position:fixed!important;inset:0!important;left:0!important;top:0!important;
 transform:none!important;
 width:100dvw!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 min-width:0!important;min-height:0!important;
 margin:0!important;overflow:hidden!important;
 aspect-ratio:auto!important;background:#100d14!important;
}
body.mobile-web #game:not(.hidden){
 display:flex!important;flex-direction:column!important;
 border:4px solid transparent!important;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
}
body.mobile-web #game .premium-topbar{
 box-sizing:border-box!important;
 position:relative!important;flex:0 0 clamp(31px,7.3dvh,43px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:clamp(31px,7.3dvh,43px)!important;
 min-height:0!important;max-height:none!important;
 margin:0!important;padding:1px 8px!important;gap:0!important;
 border:5px solid transparent!important;
 border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 overflow:hidden!important;background:#271a24!important;
}
body.mobile-web #game .premium-topbar>.brand{
 flex:0 1 auto!important;display:flex!important;justify-content:center!important;
 min-width:0!important;height:100%!important;margin:0!important;padding:0!important;
 border:0!important;border-image:none!important;background:transparent!important;
}
body.mobile-web #game .premium-topbar>.brand .shutdown-header-logo{
 display:block!important;width:auto!important;max-width:min(48dvw,220px)!important;
 height:clamp(24px,5.3dvh,32px)!important;object-fit:contain!important;
}
body.mobile-web #game .premium-topbar>.brand .shutdown-header-edition{display:none!important;}
body.mobile-web #game .premium-topbar>.hud-global-nav,
body.mobile-web #game .premium-topbar>.hud-top-meta{display:none!important;}
body.mobile-web #game .premium-world-layout,
body.mobile-web #game .premium-world-layout.chat-collapsed{
 box-sizing:border-box!important;
 position:relative!important;flex:1 1 auto!important;
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;
 width:100%!important;height:auto!important;min-height:0!important;
 max-width:100%!important;margin:0!important;padding:0!important;gap:0!important;
 overflow:hidden!important;
}
body.mobile-web #game .premium-left-rail{display:none!important;}
body.mobile-web #game .premium-world-column{
 position:relative!important;grid-column:1!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;margin:0!important;
 padding:0!important;overflow:hidden!important;border:0!important;
 border-image:none!important;background:#0a080e!important;
}
body.mobile-web #game .premium-world-column::before{display:none!important;}
body.mobile-web #game .premium-location-bar{
 box-sizing:border-box!important;flex:0 0 clamp(27px,6.5dvh,36px)!important;
 width:100%!important;height:clamp(27px,6.5dvh,36px)!important;
 min-height:0!important;margin:0!important;padding:1px 7px!important;
 border:5px solid transparent!important;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 background:#261a23!important;overflow:hidden!important;
}
body.mobile-web #game .premium-location-bar .location-copy{
 min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;
 display:flex!important;gap:7px!important;align-items:center!important;
}
body.mobile-web #game .premium-location-bar .location-copy .eyebrow{
 color:#e7c58d!important;font:700 12px/16px Arial,sans-serif!important;
}
body.mobile-web #game .premium-location-bar .location-copy h2{
 margin:0!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 color:#f8e9d7!important;font:700 12px/17px Arial,sans-serif!important;
}
body.mobile-web #game .premium-location-bar .toolbar-actions{
 flex:0 0 auto!important;gap:4px!important;margin-left:4px!important;
}
body.mobile-web #game .premium-location-bar .toolbar-actions :is(#coords,.hud-coordinate-icon,.hud-separator,kbd){display:none!important;}
body.mobile-web #game .premium-location-bar .toolbar-actions :is(.icon-button,.premium-atlas-button){
 box-sizing:border-box!important;height:24px!important;min-height:0!important;
 min-width:26px!important;margin:0!important;padding:0 5px!important;
 border:4px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 4px / 0 stretch!important;
 background:transparent!important;color:#ffe1aa!important;font:700 12px Arial,sans-serif!important;
}
body.mobile-web #game .premium-location-bar #zoom-value{font:700 12px Arial,sans-serif!important;color:#ffe2ac!important;}
body.mobile-web #game .premium-location-bar #atlas-button>span{display:none!important;}
body.mobile-web #game .premium-viewport{
 position:relative!important;flex:1 1 auto!important;
 width:100%!important;height:auto!important;
 min-width:0!important;min-height:0!important;
 overflow:hidden!important;touch-action:manipulation;
}
body.mobile-web #game #world-canvas{
 display:block!important;width:100%!important;height:100%!important;
 image-rendering:pixelated!important;touch-action:manipulation;
}
body.mobile-web #game :is(.premium-key-dock,.premium-statusbar,.map-source){display:none!important;}
body.mobile-web #game .viewport-top-left{
 max-width:42%;pointer-events:none;
}
body.mobile-web #game .viewport-top-left>*{pointer-events:auto;}
body.mobile-web #game .sky-widget{max-width:100%;min-height:0!important;}
/* Chat becomes an on-demand real HUD panel, never a third column squeezing the world. */
body.mobile-web #game .premium-right-rail{display:none!important;}
body.mobile-web #game.mobile-rail-open .premium-right-rail{
 box-sizing:border-box!important;position:absolute!important;z-index:9!important;
 top:0!important;right:0!important;bottom:0!important;left:auto!important;
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 width:min(53%,340px)!important;height:100%!important;
 min-width:0!important;min-height:0!important;max-width:none!important;
 margin:0!important;padding:0!important;gap:0!important;
 overflow:hidden!important;box-shadow:-9px 0 20px #0009!important;
}
body.mobile-web #game.mobile-rail-open .premium-right-rail > :is(.hud-minimap-panel,.hud-missions-panel){
 display:none!important;
}
body.mobile-web #game.mobile-rail-open .premium-right-rail > .premium-chat-panel{
 grid-column:1!important;grid-row:1!important;
 display:flex!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;margin:0!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel #chat-body{
 display:flex!important;flex:1 1 auto!important;min-height:0!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-header{display:flex!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-rail{display:none!important;}
body.mobile-web #game.mobile-rail-open #chat-messages{min-height:0!important;}
body.mobile-web #game.mobile-rail-open #chat-input{font-size:16px!important;min-width:0!important;}
/* Original UI is still the content of each window. Outer size stays stable, inner body scrolls. */
body.mobile-web #modal[open],
body.mobile-web #audio-dialog[open]{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 width:min(95dvw,950px)!important;height:min(90dvh,570px)!important;
 max-width:95dvw!important;max-height:90dvh!important;min-width:0!important;min-height:0!important;
 margin:auto!important;overflow:hidden!important;
}
body.mobile-web #modal > .modal-header,
body.mobile-web #audio-dialog > .modal-header{flex:0 0 auto!important;min-width:0!important;}
body.mobile-web #modal > #modal-body,
body.mobile-web #audio-dialog > .audio-body{
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
}
body.mobile-web #battle-dialog.battle-window-solid{
 box-sizing:border-box!important;
 width:min(96dvw,1100px)!important;height:min(92dvh,720px)!important;
 max-width:96dvw!important;max-height:92dvh!important;
 min-width:0!important;min-height:0!important;
 --battle-header-height:clamp(38px,11dvh,58px);
 --battle-controls-height:clamp(114px,37dvh,210px);
 border-width:6px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head{
 padding:2px 8px!important;gap:5px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-head h2{font-size:clamp(12px,2.5dvh,17px)!important;}
body.mobile-web #battle-dialog.battle-window-solid .battle-controls.text-box{
 gap:5px!important;padding:4px!important;border-width:5px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-message{
 font-size:clamp(12px,2.5dvh,16px)!important;padding:8px 16px!important;border-width:7px!important;
}
body.mobile-web #battle-dialog.battle-window-solid .battle-choice-panel{padding:3px!important;border-width:5px!important;}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd,
body.mobile-web #battle-dialog.battle-window-solid .battle-menu .move-button{padding:2px 5px!important;border-width:5px!important;gap:4px!important;}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd strong{font-size:12px!important;}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd small{display:none!important;}
body.mobile-web #battle-dialog.battle-window-solid .battle-command-icon{width:23px;height:23px;}
body.mobile-web #battle-dialog.battle-window-solid .battle-cmd-glyph{width:23px;height:23px;}
body.mobile-web #login:not(.hidden){display:block!important;overflow-y:auto!important;overscroll-behavior:contain;}
body.mobile-web #login .login-story{display:none!important;}
body.mobile-web #login .login-side{
 width:min(100%,550px)!important;max-width:550px!important;
 min-height:0!important;height:auto!important;max-height:none!important;
 padding:12px 18px!important;margin:auto!important;gap:8px!important;
}
body.mobile-web #login .login-panel{margin:0!important;}
body.mobile-web #login .login-panel h2{font-size:20px!important;}
body.mobile-web #login .segmented{margin:7px 0!important;}
body.mobile-web #login label{margin:6px 0 2px!important;}
body.mobile-web #login input{padding:8px!important;font-size:16px!important;}
body.mobile-web #login .connection-card{padding:4px 8px!important;}
/* Physical joystick and buttons, independent PNGs with native 9-slice UV. */
body.mobile-web .mobile-touch{
 position:absolute;inset:0;z-index:7;
 display:flex;align-items:flex-end;justify-content:space-between;
 padding:0 max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));
 pointer-events:none;user-select:none;-webkit-user-select:none;
}
body.mobile-web .mobile-touch[hidden]{display:none!important;}
body.mobile-web .mobile-move{
 display:flex;flex-direction:column;align-items:center;gap:1px;
 flex:0 0 auto;pointer-events:none;
}
body.mobile-web .mobile-stick{
 --stick-x:0px;--stick-y:0px;
 position:relative;display:grid;place-items:center;pointer-events:auto;
 width:clamp(78px,25dvh,120px);height:clamp(78px,25dvh,120px);
 flex:0 0 auto;box-sizing:border-box;border:7px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 7px / 0 stretch!important;
 border-radius:0!important;background:#241720e8!important;
 touch-action:none;overscroll-behavior:none;
}
body.mobile-web .mobile-stick-ring{
 position:absolute;inset:17%;border:3px solid transparent;
 border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 3px / 0 stretch;
 pointer-events:none;
}
body.mobile-web .mobile-stick-thumb{
 position:relative;display:block;pointer-events:none;
 width:47%;height:47%;min-width:34px;min-height:34px;
 border:5px solid transparent;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch;
 transform:translate3d(var(--stick-x),var(--stick-y),0);
 transition:transform 45ms linear;
}
body.mobile-web .mobile-stick.is-moving .mobile-stick-thumb{filter:brightness(1.12);}
body.mobile-web .mobile-move-label{
 color:#ffe0ac;font:700 12px/16px Arial,sans-serif;
 text-shadow:1px 1px 0 #100a10;letter-spacing:.08em;
}
body.mobile-web .mobile-actions{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:clamp(2px,.8dvh,5px);width:clamp(156px,38dvw,258px);
 max-height:100%;pointer-events:none;
}
body.mobile-web .mobile-action{
 box-sizing:border-box!important;min-width:0!important;
 width:100%!important;height:clamp(43px,11.8dvh,59px)!important;
 margin:0!important;padding:2px!important;
 display:flex!important;flex-direction:column;justify-content:center;align-items:center;
 gap:0!important;flex:none!important;
 border:5px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
 background:#21171de9!important;background-image:none!important;
 border-radius:0!important;box-shadow:none!important;
 pointer-events:auto;touch-action:manipulation;
 color:#ffe7bd!important;white-space:nowrap;
}
body.mobile-web .mobile-action:active,
body.mobile-web .mobile-action:is(:focus-visible,[aria-expanded="true"]){
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
 background:#3b2732!important;
}
body.mobile-web .mobile-action-interact{
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
}
body.mobile-web .mobile-action img{
 display:block;width:clamp(19px,4dvh,26px);height:clamp(19px,4dvh,26px);
 max-width:100%;object-fit:contain;pointer-events:none;
}
body.mobile-web .mobile-action span{
 color:#f5e0ba!important;font:700 12px/13px Arial,sans-serif!important;
 text-shadow:1px 1px 0 #100a10!important;pointer-events:none;
}
body.mobile-web .mobile-orientation{display:none!important;}
body.mobile-web.mobile-portrait .mobile-orientation{
 display:grid!important;position:fixed!important;inset:0!important;z-index:10000!important;
 place-items:center!important;padding:22px!important;overflow:auto!important;
 background:#0d0912!important;
}
body.mobile-web .mobile-rotate-card{
 display:flex;flex-direction:column;align-items:center;gap:12px;
 width:min(100%,420px);padding:20px;
 text-align:center;border:10px solid transparent;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 10px / 0 stretch;
 background-color:#211620;color:#fbe8c9;
}
body.mobile-web .mobile-rotate-symbol{font:700 64px/64px Arial,sans-serif;color:#f0c785;}
body.mobile-web .mobile-rotate-card h2{font:700 24px/29px Arial,sans-serif!important;color:#ffe2ac!important;}
body.mobile-web .mobile-rotate-card p{font:400 16px/1.45 Arial,sans-serif!important;color:#f3dfc5!important;}
body.mobile-web .mobile-rotate-card button{
 min-height:46px;padding:5px 16px;
 border:7px solid transparent;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 7px / 0 stretch;
 background:#3b2630;color:#fff0cd;font:700 15px/22px Arial,sans-serif;
}
body.mobile-web .mobile-rotate-card small{font:400 13px/1.35 Arial,sans-serif;color:#d4bfa6;}
@media (max-height:370px){
 body.mobile-web #game .premium-topbar{flex-basis:29px!important;height:29px!important;}
 body.mobile-web #game .premium-location-bar{flex-basis:25px!important;height:25px!important;}
 body.mobile-web .mobile-actions{width:min(35dvw,190px);}
 body.mobile-web .mobile-action{height:41px!important;}
 body.mobile-web .mobile-stick{width:74px;height:74px;}
}
@media (prefers-reduced-motion:reduce){
 body.mobile-web .mobile-stick-thumb{transition:none!important;}
}

/* Chat has a close control ABOVE the sliding panel, so the action strip never blocks typing. */
body.mobile-web #game .premium-world-layout>.mobile-chat-close{
 display:none!important;
}
body.mobile-web #game.mobile-rail-open .mobile-touch .mobile-move,
body.mobile-web #game.mobile-rail-open .mobile-touch .mobile-actions{display:none!important;}
body.mobile-web #game.mobile-rail-open .premium-world-layout>.mobile-chat-close{
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 position:absolute!important;top:3px!important;right:3px!important;z-index:12!important;
 width:36px!important;height:34px!important;min-width:36px!important;
 margin:0!important;padding:0!important;border:5px solid transparent!important;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
 background:#3b2630!important;color:#fff1d2!important;
 font:700 22px/22px Arial,sans-serif!important;touch-action:manipulation;
}


/* Mobile landscape second pass — true 16:9 world canvas.
 * The existing main menu is opened by the top-right PNG button; desktop
 * navbar and location toolbar do not reserve any height in the world. */
body.mobile-web #game:not(.hidden){
 border:0!important;border-image:none!important;padding:0!important;
}
body.mobile-web #game:not(.hidden)::after{
 content:"";display:block;position:absolute;inset:0;z-index:8;pointer-events:none;
 box-sizing:border-box;border:4px solid transparent;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 / 4px / 0 stretch;
}
body.mobile-web #game .premium-topbar{display:none!important;}
body.mobile-web #game .premium-world-layout,
body.mobile-web #game .premium-world-layout.chat-collapsed{
 flex:1 1 auto!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;
 padding:0!important;margin:0!important;
}
body.mobile-web #game .premium-world-column{
 position:relative!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 border:0!important;border-image:none!important;
}
body.mobile-web #game .premium-viewport{
 position:absolute!important;inset:0!important;flex:none!important;
 width:100%!important;height:100%!important;min-width:0!important;
 min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;
}
body.mobile-web #game #world-canvas{
 display:block!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;
 image-rendering:pixelated!important;
}
body.mobile-web #game .premium-location-bar{
 position:absolute!important;z-index:6!important;
 top:max(7px,env(safe-area-inset-top))!important;
 left:max(8px,env(safe-area-inset-left))!important;
 right:auto!important;bottom:auto!important;
 width:max-content!important;max-width:min(48%,310px)!important;
 height:32px!important;min-height:0!important;max-height:32px!important;
 flex:none!important;padding:1px 8px!important;margin:0!important;
 border:5px solid transparent!important;
 border-image:url("../login/frame.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
 background:#261a23dd!important;box-shadow:none!important;
 pointer-events:auto;
}
body.mobile-web #game .premium-location-bar .toolbar-actions{display:none!important;}
body.mobile-web #game .premium-location-bar .location-copy{
 min-width:0!important;width:100%!important;overflow:hidden!important;
}
body.mobile-web #game .premium-location-bar .location-copy :is(.eyebrow,h2){
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 font-size:12px!important;line-height:16px!important;
}
body.mobile-web #game .viewport-top-left{
 top:clamp(43px,10dvh,54px)!important;left:max(8px,env(safe-area-inset-left))!important;
 max-width:42%!important;
}
/* The original Menu + Map buttons are moved above the game; other touch controls
 * keep their own space in bottom corners. Neither alters the world layout. */
body.mobile-web #game #mobile-touch{
 position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;
 align-items:flex-end!important;overflow:visible!important;
}
body.mobile-web #game .mobile-top-controls{
 position:absolute;top:max(7px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));
 z-index:3;display:flex;flex-direction:row;align-items:center;gap:5px;
 pointer-events:none;
}
body.mobile-web #game .mobile-top-controls>.mobile-action{
 box-sizing:border-box!important;pointer-events:auto!important;
 display:flex!important;flex-direction:row!important;gap:3px!important;
 width:clamp(60px,10dvw,94px)!important;height:36px!important;
 min-width:0!important;min-height:36px!important;max-height:36px!important;
 padding:1px 5px!important;
 border:5px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
}
body.mobile-web #game .mobile-top-controls>.mobile-action img{
 width:21px!important;height:21px!important;flex:none!important;
}
body.mobile-web #game .mobile-top-controls>.mobile-action span{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font:700 12px/14px Arial,sans-serif!important;
}
body.mobile-web #game .mobile-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:clamp(102px,24dvw,160px)!important;gap:4px!important;
 pointer-events:none!important;
}
body.mobile-web #game .mobile-actions>.mobile-action{
 height:clamp(45px,11.8dvh,59px)!important;min-width:0!important;
 pointer-events:auto!important;
}
body.mobile-web #game.mobile-rail-open .mobile-top-controls{display:none!important;}
@media(max-height:340px){
 body.mobile-web #game .mobile-top-controls>.mobile-action{height:30px!important;min-height:30px!important;max-height:30px!important;}
 body.mobile-web #game .mobile-actions>.mobile-action{height:39px!important;}
 body.mobile-web #game .mobile-stick{width:69px;height:69px;}
}


/* feature:mobile-landscape-bootstrap — adaptive handset geometry & browser fullscreen.
   Never letterbox the world to 16:9: width and height track the REAL viewport.
   The unchanged renderer resizes its backing canvas from ResizeObserver. */
html:has(body.mobile-web){
 width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;
}
html:fullscreen,html:-webkit-full-screen{
 width:100%!important;height:100%!important;background:#09070d!important;
}
body.mobile-web #game:not(.hidden),
body.mobile-web #login:not(.hidden){
 position:fixed!important;inset:0!important;left:0!important;top:0!important;
 width:100dvw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
 transform:none!important;aspect-ratio:auto!important;margin:0!important;
}
body.mobile-web #game .premium-world-layout,
body.mobile-web #game .premium-world-layout.chat-collapsed,
body.mobile-web #game .premium-world-column,
body.mobile-web #game .premium-viewport,
body.mobile-web #game #world-canvas{
 max-width:none!important;max-height:none!important;
}
body.mobile-web #game .mobile-top-controls>.mobile-fullscreen-toggle{
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
}
body.mobile-web #game .mobile-top-controls>.mobile-fullscreen-toggle[aria-pressed="true"]{
 border-image-source:url("../button/rpg-control.png?v=cabare-uv-1")!important;
}
body.mobile-web #game .mobile-top-controls>.mobile-fullscreen-toggle[hidden]{
 display:none!important;
}
body.mobile-web .mobile-fullscreen-hint{
 position:absolute;inset:0;z-index:20;display:grid;place-items:center;
 padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right))
         max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
 background:#08060cbf;pointer-events:auto;overflow:auto;
}
body.mobile-web .mobile-fullscreen-hint[hidden]{display:none!important;}
body.mobile-web .mobile-fullscreen-card{
 width:min(92%,440px);max-height:100%;overflow-y:auto;
 padding:clamp(9px,3dvh,18px)!important;gap:8px!important;
}
body.mobile-web .mobile-fullscreen-card h2{
 font:700 clamp(15px,3.5dvh,23px)/1.2 Arial,sans-serif!important;
}
body.mobile-web .mobile-fullscreen-card p{
 font:400 clamp(13px,2.8dvh,16px)/1.4 Arial,sans-serif!important;
}
body.mobile-web .mobile-fullscreen-card button{
 min-height:39px;flex:0 0 auto;
}
/* Small landscape displays maintain a fixed hit target without pushing map art. */
@media(max-height:340px){
 body.mobile-web #game .mobile-top-controls>.mobile-action{
  width:clamp(49px,9dvw,76px)!important;
 }
}


/* feature:mobile-compact-dialogs — mobile-only RPG menus. Keep all gameplay
   handlers, UV texture layers and fixed outer footprints; scroll only content. */
body.mobile-web #modal[open],
body.mobile-web #audio-dialog[open]{
 width:min(94dvw,940px)!important;
 height:min(90dvh,540px)!important;
 max-width:calc(100dvw - 8px)!important;
 max-height:calc(100dvh - 8px)!important;
 min-width:0!important;min-height:0!important;
 margin:auto!important;padding:0!important;
 border-width:6px!important;overflow:hidden!important;
}
body.mobile-web #modal>.modal-header,
body.mobile-web #audio-dialog>.modal-header{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 flex:0 0 40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:2px 9px!important;gap:6px!important;
 border-width:5px!important;overflow:hidden!important;
}
body.mobile-web #modal>.modal-header>div,
body.mobile-web #audio-dialog>.modal-header>div{
 min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;
}
body.mobile-web #modal .modal-header :is(.eyebrow,#modal-eyebrow),
body.mobile-web #audio-dialog .modal-header .eyebrow{display:none!important;}
body.mobile-web #modal .modal-header h2,
body.mobile-web #audio-dialog .modal-header h2{
 margin:0!important;min-width:0!important;overflow:hidden!important;
 white-space:nowrap!important;text-overflow:ellipsis!important;
 font:700 15px/20px Arial,sans-serif!important;
}
body.mobile-web #modal #modal-close,
body.mobile-web #audio-dialog #audio-close{
 box-sizing:border-box!important;flex:0 0 32px!important;
 width:32px!important;height:30px!important;min-width:32px!important;min-height:30px!important;
 margin:0!important;padding:0!important;border-width:5px!important;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
 background:#36242d!important;color:#fff0d7!important;
 font:700 20px/20px Arial,sans-serif!important;
}
body.mobile-web #modal>#modal-body,
body.mobile-web #audio-dialog>.audio-body{
 min-width:0!important;min-height:0!important;flex:1 1 0!important;
 max-width:100%!important;max-height:none!important;
 padding:6px 8px!important;overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;
}
body.mobile-web #modal :is(button,select,input,textarea){
 max-width:100%;font-family:Arial,sans-serif!important;
}
body.mobile-web #modal :is(input,textarea),
body.mobile-web #audio-dialog :is(input,select){
 min-width:0!important;font-size:16px!important;
}
/* Main menu: readable 3-column touch shortcuts and a small, independently
   scrollable live preview. The preview retains Stay/Quit confirmations. */
body.mobile-web #modal[data-view="menu"][open]{
 width:min(92dvw,900px)!important;height:min(89dvh,460px)!important;
}
body.mobile-web #modal[data-view="menu"]>.modal-header{
 flex-basis:40px!important;height:40px!important;min-height:40px!important;
 max-height:40px!important;padding:2px 9px!important;
}
body.mobile-web #modal[data-view="menu"] #modal-body{
 overflow:hidden!important;padding:5px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu{
 display:grid!important;grid-template-columns:minmax(0,57%) minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 gap:5px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="menu"] :is(.main-menu-list,.main-menu-preview){
 box-sizing:border-box!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;max-height:100%!important;
 border-width:5px!important;padding:5px!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;touch-action:pan-y;
}
body.mobile-web #modal[data-view="menu"] .main-menu-list{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-auto-rows:35px!important;align-content:start!important;
 align-items:stretch!important;gap:4px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-entry{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:1fr!important;
 min-width:0!important;min-height:35px!important;height:35px!important;
 width:100%!important;gap:4px!important;margin:0!important;padding:2px 4px!important;
 border-width:4px!important;font:700 12px/15px Arial,sans-serif!important;
 overflow:hidden!important;transform:none!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-hex{
 box-sizing:border-box!important;width:24px!important;min-width:24px!important;
 height:24px!important;min-height:24px!important;padding:2px!important;border-width:3px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-hex .main-menu-art-icon{
 display:block!important;width:18px!important;height:18px!important;min-width:0!important;
 max-width:18px!important;max-height:18px!important;object-fit:contain!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-label{
 min-width:0!important;max-height:30px!important;overflow:hidden!important;
 font:700 12px/15px Arial,sans-serif!important;
 display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 text-overflow:ellipsis!important;overflow-wrap:anywhere;
}
body.mobile-web #modal[data-view="menu"] .main-menu-count{display:none!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-preview{
 display:block!important;padding:6px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head{
 grid-template-columns:29px minmax(0,1fr) auto!important;gap:5px!important;
 min-height:36px!important;margin:0!important;padding:3px 5px!important;
 border-width:4px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head>.main-menu-hex.large{
 width:28px!important;min-width:28px!important;height:28px!important;padding:3px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head .main-menu-art-icon{
 width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head h3{
 font:700 13px/17px Arial,sans-serif!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head span:not(.main-menu-hex):not(.main-menu-soon){
 font:700 12px/15px Arial,sans-serif!important;margin:0!important;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview hr{margin:4px 0!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-copy{
 margin:2px 0 5px!important;font:400 12px/16px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-subhead{
 margin:5px 0 3px!important;font:700 12px/16px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-fact{
 min-height:26px!important;margin:0 0 3px!important;padding:3px 6px!important;
 gap:4px!important;border-width:4px!important;
 grid-template-columns:minmax(0,1fr) minmax(0,auto)!important;
 font:400 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-fact :is(span,strong){
 font:700 12px/16px Arial,sans-serif!important;min-width:0!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-team{gap:3px!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-mon{
 grid-template-columns:26px minmax(0,1fr) auto!important;
 min-height:32px!important;padding:2px 4px!important;gap:4px!important;border-width:4px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-mon img{
 width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-mon :is(.hp-track,small){display:none!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-mon strong{font-size:12px!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-items{gap:3px!important;}
body.mobile-web #modal[data-view="menu"] .main-menu-item{
 min-height:29px!important;padding:3px 5px!important;gap:4px!important;border-width:4px!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-foot{
 min-height:28px!important;margin:5px 0 0!important;padding:3px 6px!important;
 border-width:4px!important;font-size:12px!important;
}
body.mobile-web #modal[data-view="menu"] .modal-actions{
 display:flex!important;gap:5px!important;margin:6px 0 0!important;
}
body.mobile-web #modal[data-view="menu"] .modal-actions button{
 min-height:32px!important;flex:1 1 0!important;
 padding:3px 7px!important;border-width:5px!important;
 font:700 12px/17px Arial,sans-serif!important;
}
/* Bag: fixed compact triage: slim pockets + list, selected item below. */
body.mobile-web #modal[data-view="bag"] #modal-body{
 display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:4px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-shell{
 display:grid!important;flex:1 1 0!important;grid-template-rows:32px minmax(0,1fr) 66px!important;
 gap:4px!important;width:100%!important;height:100%!important;max-height:100%!important;
 min-width:0!important;min-height:0!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] :is(.bag-status,.bag-key-hints,.bag-backpack,.bag-box-title){display:none!important;}
body.mobile-web #modal[data-view="bag"] .bag-header{
 min-width:0!important;min-height:32px!important;height:32px!important;
 gap:5px!important;margin:0!important;padding:2px 5px!important;flex-wrap:nowrap!important;
 border-width:4px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-title{gap:3px!important;}
body.mobile-web #modal[data-view="bag"] .bag-title h3{font:700 13px/16px Arial,sans-serif!important;}
body.mobile-web #modal[data-view="bag"] .bag-title-icon{
 width:21px!important;height:21px!important;font-size:15px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-stats{gap:3px!important;flex-wrap:nowrap!important;min-width:0!important;}
body.mobile-web #modal[data-view="bag"] .bag-stat{
 gap:4px!important;padding:2px 5px!important;min-width:0!important;border-width:3px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-stat :is(span,strong){
 font:700 12px/16px Arial,sans-serif!important;white-space:nowrap!important;
}
body.mobile-web #modal[data-view="bag"] .bag-main{
 display:grid!important;grid-template-columns:minmax(105px,17%) minmax(0,1fr)!important;
 gap:4px!important;min-width:0!important;min-height:0!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pockets-box{
 display:flex!important;min-height:0!important;padding:3px!important;
 border-width:5px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pockets{
 display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
 gap:2px!important;min-width:0!important;min-height:0!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket{
 display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;flex:0 0 31px!important;
 width:100%!important;height:31px!important;min-height:31px!important;
 min-width:0!important;gap:3px!important;padding:1px 3px!important;border-width:4px!important;
 font:700 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket-symbol{
 width:21px!important;height:21px!important;min-width:21px!important;
 font-size:14px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket-symbol img{width:19px!important;height:19px!important;}
body.mobile-web #modal[data-view="bag"] .bag-pocket-label{
 min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket-count{display:none!important;}
body.mobile-web #modal[data-view="bag"] .bag-items-box{
 min-width:0!important;min-height:0!important;padding:3px!important;gap:3px!important;
 border-width:5px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-toolbar{min-height:28px!important;gap:4px!important;}
body.mobile-web #modal[data-view="bag"] .bag-search-wrap{min-width:0!important;flex:1 1 0!important;}
body.mobile-web #modal[data-view="bag"] .bag-search-wrap input{
 box-sizing:border-box!important;height:28px!important;min-height:28px!important;
 padding:2px 28px 2px 23px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-toolbar>select{
 flex:0 1 126px!important;width:126px!important;max-width:34%!important;
 height:28px!important;min-height:28px!important;padding:1px 3px!important;
 font-size:13px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-result-count{
 min-height:0!important;margin:0!important;font:400 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list{
 flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 gap:2px!important;overflow-y:auto!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item{
 min-height:32px!important;padding:2px 5px!important;gap:4px!important;border-width:4px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item .bag-icon{
 width:25px!important;height:25px!important;min-width:25px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail{
 display:grid!important;grid-template-columns:32px minmax(0,1fr) minmax(105px,27%)!important;
 grid-template-rows:minmax(0,1fr)!important;align-items:start!important;
 width:100%!important;height:66px!important;min-height:0!important;max-height:66px!important;
 gap:4px!important;padding:3px!important;margin:0!important;border-width:5px!important;
 overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail>.bag-icon{
 width:30px!important;height:30px!important;min-width:30px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-copy{
 min-width:0!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-name h3{font:700 12px/16px Arial,sans-serif!important;}
body.mobile-web #modal[data-view="bag"] .bag-item-description{
 margin:2px 0!important;font:400 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-side{
 grid-column:3!important;grid-row:1!important;min-width:0!important;
 align-items:stretch!important;max-height:100%!important;overflow-y:auto!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions{
 display:flex!important;flex-wrap:wrap!important;gap:3px!important;justify-content:flex-end!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions button{
 min-height:29px!important;padding:1px 4px!important;border-width:4px!important;
 font:700 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="bag"] .bag-action-menu{
 position:absolute!important;z-index:8!important;
 max-height:min(50dvh,190px)!important;overflow-y:auto!important;
}
/* Common data views: reduce internal whitespace without shrinking all text. */
body.mobile-web #modal :is(.modal-description,.mini-note){margin:3px 0!important;line-height:1.35!important;}
body.mobile-web #modal .modal-actions{
 display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:5px 0!important;
}
body.mobile-web #modal .modal-actions button{
 min-height:31px!important;padding:3px 7px!important;font-size:12px!important;
}
body.mobile-web #modal[data-view="collection"] .collection-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:5px!important;margin:5px 0!important;align-content:start!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:41px minmax(0,1fr)!important;align-items:center!important;
 gap:2px 5px!important;min-width:0!important;min-height:0!important;
 padding:4px!important;border-width:5px!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card>img{
 width:40px!important;height:40px!important;grid-column:1;grid-row:1/span 3;
 object-fit:contain!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card>:is(strong,span,.hp-track){
 min-width:0!important;grid-column:2!important;margin:0!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card>strong{
 font:700 12px/16px Arial,sans-serif!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
body.mobile-web #modal[data-view="collection"] .collection-card>span{
 font:400 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card>.row{
 grid-column:1/-1!important;display:flex!important;gap:3px!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card button{
 min-height:29px!important;padding:2px 4px!important;font:700 12px/15px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="dex"] .dex-screen,
body.mobile-web #modal[data-view="dex"] .dex-inner{
 min-width:0!important;min-height:0!important;max-height:100%!important;
}
body.mobile-web #modal[data-view="dex"] .dex-screen{height:100%!important;}
body.mobile-web #modal[data-view="dex"] .dex-scroll{
 min-height:0!important;max-height:none!important;flex:1 1 auto!important;
 overflow-y:auto!important;overscroll-behavior:contain;
}
body.mobile-web #modal[data-view="dex"] :is(.dex-summary,.dex-controls,.dex-heading){
 margin:2px 0!important;padding:3px 6px!important;gap:4px!important;
}
body.mobile-web #modal[data-view="dex"] .dex-card{
 min-height:0!important;padding:4px!important;gap:4px!important;
}
body.mobile-web #modal[data-view="journal"] .journal-summary{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:5px!important;margin:3px 0 8px!important;
}
body.mobile-web #modal[data-view="journal"] .journal-summary>div{
 padding:4px!important;min-height:0!important;
}
body.mobile-web #modal[data-view="journal"] .journal-summary strong{
 font:700 15px/19px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="journal"] .journal-summary span{
 font:400 12px/16px Arial,sans-serif!important;
}
body.mobile-web #modal[data-view="journal"] :is(.journal-region,.goal-card){margin:6px 0!important;}
body.mobile-web #modal[data-view="journal"] .badge-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;
}
body.mobile-web #modal[data-view="journal"] .badge-card{padding:5px!important;min-width:0!important;}
/* Pokemon detail: preserve a solid window, use a shorter portrait and
   independently scrolling stats so tabs do not resize the window. */
body.mobile-web #modal[data-view="pokemon"][open]{
 width:min(94dvw,940px)!important;height:min(92dvh,560px)!important;
}
body.mobile-web #modal[data-view="pokemon"]>.modal-header{
 flex:0 0 40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
}
body.mobile-web #modal[data-view="pokemon"] #modal-body{
 flex:1 1 0!important;height:0!important;min-height:0!important;
 padding:4px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="pokemon"] .pokemon-info{height:100%!important;min-height:0!important;}
body.mobile-web #modal[data-view="pokemon"] .info-head{
 flex:0 0 37px!important;height:37px!important;min-height:37px!important;max-height:37px!important;
 gap:4px!important;padding:3px 5px!important;border-width:5px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-title{
 font:700 13px/17px Arial,sans-serif!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;gap:4px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-tabs{gap:2px!important;flex:0 0 auto!important;}
body.mobile-web #modal[data-view="pokemon"] .info-tab{
 box-sizing:border-box!important;flex:0 0 32px!important;
 width:32px!important;height:30px!important;min-width:32px!important;min-height:30px!important;
 padding:2px!important;border-width:4px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-tab :is(i.fa-solid,.info-ball-icon){
 width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-grid{
 display:grid!important;flex:1 1 0!important;height:0!important;min-height:0!important;
 grid-template-columns:minmax(0,29%) minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 gap:5px!important;padding:4px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-side{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:60px clamp(70px,20dvh,108px) minmax(0,1fr)!important;
 gap:4px!important;width:100%!important;height:100%!important;min-height:0!important;
 overflow:hidden!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-namecard{
 grid-column:1!important;grid-row:1!important;min-height:0!important;
 padding:3px 5px!important;overflow-y:auto!important;border-width:5px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-portrait{
 position:relative!important;grid-column:1!important;grid-row:2!important;
 width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
 padding:0!important;border-width:5px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-item{
 grid-column:1!important;grid-row:3!important;min-height:0!important;
 padding:3px 5px!important;overflow-y:auto!important;border-width:5px!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-main{
 min-width:0!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-foot{
 flex:0 0 40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
 gap:4px!important;padding:2px 5px!important;border-width:5px!important;overflow-y:auto!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-foot-actions{gap:3px!important;}
body.mobile-web #modal[data-view="pokemon"] .info-foot-actions button{
 min-height:29px!important;padding:2px 5px!important;border-width:4px!important;
 font:700 12px/15px Arial,sans-serif!important;
}
/* Sound and chat are actual game controls; retain readable inputs when typing. */
body.mobile-web #audio-dialog .audio-body{padding:5px 9px!important;}
body.mobile-web #audio-dialog .audio-status-row{margin:3px 0!important;padding:3px!important;}
body.mobile-web #audio-dialog .audio-slider{margin:4px 0!important;gap:4px!important;}
body.mobile-web #audio-dialog .audio-options{gap:4px!important;}
body.mobile-web #game.mobile-rail-open .premium-right-rail{
 width:min(58%,380px)!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-header{
 min-height:30px!important;padding:3px 36px 3px 6px!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-tabs{gap:2px!important;padding:2px!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-tab{min-height:29px!important;padding:2px 4px!important;}
/* Very short landscape: same fixed window, independent inner scrolling. */
@media(max-height:360px){
 body.mobile-web #modal>.modal-header,
 body.mobile-web #audio-dialog>.modal-header,
 body.mobile-web #modal[data-view="menu"]>.modal-header{
  flex-basis:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;
 }
 body.mobile-web #modal[data-view="menu"] .main-menu-list{
  grid-auto-rows:33px!important;gap:3px!important;
 }
 body.mobile-web #modal[data-view="menu"] .main-menu-entry{
  min-height:33px!important;height:33px!important;
 }
 body.mobile-web #modal[data-view="pokemon"] .info-side{
  grid-template-rows:52px clamp(58px,18dvh,78px) minmax(0,1fr)!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-shell{
  grid-template-rows:30px minmax(0,1fr) 56px!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-detail{
  height:56px!important;max-height:56px!important;
 }
}
@media(max-width:640px){
 body.mobile-web #modal[data-view="menu"] .main-menu{
  grid-template-columns:minmax(0,55%) minmax(0,1fr)!important;
 }
 body.mobile-web #modal[data-view="menu"] .main-menu-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 body.mobile-web #modal[data-view="collection"] .collection-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 body.mobile-web #modal[data-view="journal"] .badge-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-stat.money{display:none!important;}
}


/* feature:mobile-mobile-hud-v5 — one quiet frame per PANEL, never one gold line
   per LIST ROW. Created for 96px 9-slice native PNG, source band 16px. */
/* Chat is a single self-contained drawer. Desktop's chat-collapsed class never
   determines mobile visibility or grid height. Keyboard uses visualViewport. */
body.mobile-web #game.mobile-rail-open .premium-right-rail{
 box-sizing:border-box!important;display:grid!important;position:absolute!important;
 z-index:15!important;inset:auto max(0px,env(safe-area-inset-right)) auto auto!important;
 top:var(--mobile-chat-top,0px)!important;
 height:min(100%,var(--mobile-chat-height,100dvh))!important;
 bottom:auto!important;left:auto!important;
 width:min(62dvw,410px)!important;max-width:calc(100% - 16px)!important;
 min-width:0!important;min-height:0!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
 padding:0!important;margin:0!important;gap:0!important;
 border:6px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 6px / 0 stretch!important;
 background-color:#1d1720!important;
 box-shadow:-5px 0 14px #0008!important;overflow:hidden!important;
}
body.mobile-web #game.mobile-rail-open .premium-right-rail>.premium-chat-panel{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 grid-column:1!important;grid-row:1!important;position:relative!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;border-image:none!important;
 box-shadow:none!important;background:transparent!important;overflow:hidden!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel>.chat-header,
body.mobile-web #game.mobile-rail-open .premium-chat-panel>#chat-body{
 box-sizing:border-box!important;display:flex!important;min-width:0!important;
 max-width:100%!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel>.chat-header{
 flex:0 0 34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;
 align-items:center!important;gap:5px!important;
 padding:2px 5px!important;border:0!important;border-bottom:1px solid #624146!important;
 background:#2a1d27!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-title{
 flex:1 1 auto!important;min-width:0!important;
 color:#ffebd5!important;font:700 12px/17px Arial,sans-serif!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-caption,
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-toggle{display:none!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel>.chat-header>#mobile-chat-close{
 box-sizing:border-box!important;position:relative!important;inset:auto!important;
 z-index:1!important;display:grid!important;place-items:center!important;flex:0 0 32px!important;
 width:32px!important;height:30px!important;min-width:32px!important;min-height:30px!important;
 margin:0!important;padding:0!important;border:5px solid transparent!important;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
 color:#fff4de!important;background-color:#37222a!important;
 font:700 20px/20px Arial,sans-serif!important;
}
body.mobile-web #game .premium-chat-panel .chat-header>#mobile-chat-close{display:none!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-header>#mobile-chat-close{display:grid!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel>#chat-body{
 flex:1 1 0!important;flex-direction:column!important;
 height:0!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-tabs{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;flex:0 0 30px!important;
 height:30px!important;min-height:30px!important;max-height:30px!important;
 padding:2px!important;gap:2px!important;background:transparent!important;
 border:0!important;border-bottom:1px solid #443038!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-tabs .chat-tab{
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-width:0!important;min-height:25px!important;height:25px!important;
 margin:0!important;padding:2px!important;border:0!important;border-image:none!important;
 font:700 11px/14px Arial,sans-serif!important;text-transform:none!important;
 color:#dbc3b2!important;background:transparent!important;box-shadow:none!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-tabs .chat-tab.selected{
 background:#583039!important;color:#fff0da!important;
 box-shadow:inset 0 -2px #be895d!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-log{
 display:flex!important;flex:1 1 0!important;height:0!important;min-height:0!important;
 min-width:0!important;overflow:hidden!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel #chat-messages{
 flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow-x:hidden!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;padding:5px 7px!important;
 font:400 12px/16px Arial,sans-serif!important;background:#1a151d!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-scroll{
 flex:0 0 19px!important;width:19px!important;min-width:19px!important;
 padding:2px!important;border-left:1px solid #453036!important;background:#1a151d!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-scroll button{
 width:16px!important;height:20px!important;min-height:0!important;
 padding:0!important;border:0!important;border-image:none!important;font-size:11px!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel #chat-form{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:29px 29px minmax(0,1fr) 30px!important;
 flex:0 0 37px!important;height:37px!important;min-height:37px!important;max-height:37px!important;
 gap:3px!important;margin:0!important;padding:3px!important;
 border:0!important;border-top:1px solid #624146!important;
 background:#261b25!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel :is(#chat-settings,#chat-link,.hud-chat-send){
 box-sizing:border-box!important;width:29px!important;height:29px!important;min-width:29px!important;
 min-height:29px!important;margin:0!important;padding:2px!important;
 border:4px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 4px / 0 stretch!important;
 background:transparent!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel #chat-input{
 box-sizing:border-box!important;min-width:0!important;width:100%!important;height:29px!important;
 min-height:29px!important;padding:3px 5px!important;
 font:400 16px/20px Arial,sans-serif!important;
 background:#18121c!important;color:#ffeedc!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-whisper-row{
 flex:0 0 auto!important;min-height:28px!important;padding:2px 4px!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-popover{
 position:absolute!important;z-index:5!important;left:4px!important;right:4px!important;
 bottom:38px!important;max-height:min(55%,180px)!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;
 background:#211922!important;padding:4px!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-popover[hidden]{display:none!important;}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-link-list{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-link-item{
 min-width:0!important;min-height:29px!important;padding:2px!important;
 border:0!important;border-image:none!important;background:#30212b!important;
 font:400 12px/16px Arial,sans-serif!important;
}
body.mobile-web #game.mobile-rail-open .premium-chat-panel .chat-link-item :is(span,strong){
 min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* Movement mode: settings is the existing Settings dialog, not a parallel UI. */
body.mobile-web .mobile-stick[hidden],
body.mobile-web #mobile-dpad[hidden]{display:none!important;}
body.mobile-web .mobile-dpad{
 box-sizing:border-box;position:relative;display:grid;flex:0 0 auto;
 grid-template-columns:repeat(3,minmax(0,1fr));
 grid-template-rows:repeat(3,minmax(0,1fr));
 grid-template-areas:". up ." "left . right" ". down .";
 width:clamp(103px,29dvh,143px);height:clamp(103px,29dvh,143px);
 padding:2px;gap:0;pointer-events:auto!important;touch-action:none;
 user-select:none;-webkit-user-select:none;
}
body.mobile-web .mobile-dpad-key{
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;
 margin:0!important;padding:0!important;
 border:5px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 5px / 0 stretch!important;
 background:#2a1d2bef!important;color:#ffe2ac!important;
 font:700 clamp(17px,5dvh,23px)/1 Arial,sans-serif!important;
 transform:none!important;transition:none!important;touch-action:none!important;
}
body.mobile-web .mobile-dpad-up{grid-area:up}
body.mobile-web .mobile-dpad-down{grid-area:down}
body.mobile-web .mobile-dpad-left{grid-area:left}
body.mobile-web .mobile-dpad-right{grid-area:right}
body.mobile-web .mobile-dpad-key.is-held,
body.mobile-web .mobile-dpad-key:active,
body.mobile-web .mobile-dpad-key:focus-visible{
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
 background:#4b2a34!important;
}
body.mobile-web #audio-dialog .mobile-controller-options{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
 min-width:0!important;margin:7px 0 3px!important;padding:7px!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#201822!important;
}
body.mobile-web #audio-dialog .mobile-controller-options legend{
 grid-column:1/-1;padding:0 5px;color:#ffe0b6!important;
 font:700 13px/18px Arial,sans-serif!important;
}
body.mobile-web #audio-dialog .mobile-controller-choice{
 box-sizing:border-box;display:flex;align-items:center;gap:5px;
 min-width:0;min-height:34px;margin:0!important;padding:3px 5px!important;
 border:4px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 4px / 0 stretch!important;
 color:#e9d5c0!important;font:700 12px/16px Arial,sans-serif!important;
}
body.mobile-web #audio-dialog .mobile-controller-choice:has(input:checked){
 border-image-source:url("./hud-panel-active.png?v=cabare-uv-1")!important;color:#fff0db!important;
}
body.mobile-web #audio-dialog .mobile-controller-choice input{
 flex:0 0 17px;width:17px;height:17px;accent-color:#d6a573;
}
body.mobile-web #audio-dialog .mobile-controller-art{
 display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;
 color:#e7b774;font:700 21px/23px Arial,sans-serif;
}
body.mobile-web #audio-dialog .mobile-controller-label{
 min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* New Bag hierarchy: one horizontal pocket strip, item list left, selected
   item/details/actions right. Independent regions, no nested golden row boxes. */
body.mobile-web #modal[data-view="bag"] .bag-shell{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,56%) minmax(0,1fr)!important;
 grid-template-rows:32px 35px minmax(0,1fr)!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 gap:5px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-header{
 grid-column:1/-1!important;grid-row:1!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#251b27!important;
}
body.mobile-web #modal[data-view="bag"] .bag-main{display:contents!important;}
body.mobile-web #modal[data-view="bag"] .bag-pockets-box{
 grid-column:1/-1!important;grid-row:2!important;
 box-sizing:border-box!important;display:block!important;min-width:0!important;min-height:0!important;
 width:100%!important;height:35px!important;overflow:hidden!important;padding:2px!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pockets{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 gap:2px!important;min-width:0!important;min-height:0!important;
 width:100%!important;height:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
 scroll-snap-type:x proximity;overscroll-behavior-x:contain;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket{
 box-sizing:border-box!important;display:flex!important;justify-content:center!important;
 flex:0 0 auto!important;align-items:center!important;gap:3px!important;
 width:auto!important;min-width:68px!important;max-width:125px!important;
 height:26px!important;min-height:26px!important;
 margin:0!important;padding:2px 6px!important;
 border:0!important;border-image:none!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;transform:none!important;
 color:#dec8b8!important;font:700 12px/16px Arial,sans-serif!important;
 scroll-snap-align:start;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket:is(.selected,[aria-selected="true"]){
 border:0!important;border-bottom:2px solid #d09e70!important;
 border-image:none!important;background:#422733!important;color:#ffebd2!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket-symbol{width:18px!important;min-width:18px!important;height:18px!important;}
body.mobile-web #modal[data-view="bag"] .bag-pocket-symbol img{width:18px!important;height:18px!important;}
body.mobile-web #modal[data-view="bag"] .bag-pocket-label{font:700 12px/16px Arial,sans-serif!important;}
body.mobile-web #modal[data-view="bag"] .bag-items-box{
 grid-column:1!important;grid-row:3!important;position:relative!important;
 box-sizing:border-box!important;display:flex!important;min-width:0!important;min-height:0!important;
 width:100%!important;height:100%!important;margin:0!important;padding:4px!important;gap:2px!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#201822!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-toolbar{
 border:0!important;border-image:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="bag"] .bag-search-wrap input{
 border:4px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 4px / 0 stretch!important;
 background:#1b151f!important;
}
body.mobile-web #modal[data-view="bag"] .bag-result-count{
 border:0!important;border-image:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list{
 display:flex!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
 flex-direction:column!important;gap:1px!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 flex:0 0 34px!important;width:100%!important;min-height:34px!important;height:34px!important;
 margin:0!important;padding:3px 6px!important;gap:6px!important;
 border:0!important;border-bottom:1px solid #5c414633!important;border-image:none!important;
 border-radius:0!important;box-shadow:none!important;transform:none!important;
 background:transparent!important;color:#f4e5d5!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item:is(.selected,[aria-selected="true"]){
 border:0!important;border-left:2px solid #d09e70!important;border-image:none!important;
 background:#462b35!important;color:#fff0de!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item .bag-icon{
 border:0!important;border-image:none!important;box-shadow:none!important;
 background:transparent!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail{
 grid-column:2!important;grid-row:3!important;
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:34px minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr) auto!important;
 width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
 min-width:0!important;margin:0!important;padding:5px!important;gap:5px!important;
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#201822!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail>.bag-icon{
 box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
 width:32px!important;height:32px!important;min-width:32px!important;
 border:0!important;border-image:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-copy{
 grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important;
 height:100%!important;max-height:100%!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 padding:0 2px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail :is(.bag-item-tags span,.bag-move,.bag-value,.bag-registered-note){
 border:0!important;border-image:none!important;box-shadow:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-side{
 grid-column:1/-1!important;grid-row:2!important;
 display:flex!important;min-width:0!important;min-height:0!important;max-height:min(43%,105px)!important;
 flex-direction:column!important;align-items:stretch!important;
 padding-top:3px!important;border-top:1px solid #694c50aa!important;
 overflow-y:auto!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions{
 display:flex!important;gap:4px!important;justify-content:flex-start!important;flex-wrap:wrap!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions button{
 box-sizing:border-box!important;min-height:30px!important;
 padding:3px 7px!important;border:4px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 4px / 0 stretch!important;
 color:#fff0d7!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions button:is(:active,:focus-visible){
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-empty{
 grid-column:1/-1!important;grid-row:1/-1!important;min-height:0!important;overflow-y:auto!important;
}
/* Quiet rows across other mobile menus; retain selected focus and a strong
   outer RPG panel instead of stacking several gold nine-slice frames. */
body.mobile-web #modal[data-view="menu"] :is(.main-menu-list,.main-menu-preview){
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-entry{
 border:0!important;border-image:none!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;transform:none!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-entry:is(.selected,[aria-current="true"]){
 border:0!important;border-image:none!important;background:#4a2b34!important;
 box-shadow:inset 2px 0 #d0a071!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-hex{
 border:0!important;border-image:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview :is(.main-menu-preview-head,.main-menu-fact,.main-menu-mon,.main-menu-item,.main-menu-foot){
 border:0!important;border-image:none!important;border-radius:0!important;
 box-shadow:none!important;background:transparent!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-preview-head{
 background:#3b2631!important;border-bottom:1px solid #79544d!important;
}
body.mobile-web #modal[data-view="menu"] .main-menu-fact,
body.mobile-web #modal[data-view="menu"] .main-menu-mon{
 border-bottom:1px solid #60424655!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card,
body.mobile-web #modal[data-view="journal"] .journal-summary>div,
body.mobile-web #modal[data-view="dex"] .dex-card{
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#211922!important;box-shadow:none!important;
}
body.mobile-web #modal[data-view="collection"] .collection-card :is(.hp-track,.row),
body.mobile-web #modal[data-view="dex"] .dex-card :is(.dex-row,.dex-name){
 border-image:none!important;box-shadow:none!important;
}
@media(max-height:340px){
 body.mobile-web #modal[data-view="bag"] .bag-shell{
  grid-template-rows:28px 30px minmax(0,1fr)!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-pockets-box{height:30px!important;}
 body.mobile-web .mobile-dpad{width:96px;height:96px;}
 body.mobile-web #game.mobile-rail-open .premium-chat-panel>.chat-header{
  flex-basis:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;
 }
}


/* Unified lower-noise treatment for the remaining mobile catalog panels.
   One textured frame for a section; its rows are separated by subtle spacing,
   never by a stack of full-size gold nine-slice borders. */
body.mobile-web #modal[data-view="pokemon"] :is(.info-namecard,.info-item,.info-box,.info-move-detail,.info-memo-nature){
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 box-shadow:none!important;background-color:#211922!important;
}
body.mobile-web #modal[data-view="pokemon"] :is(.info-row,.info-stat,.info-move-card,.info-ev-line,.info-facts dt,.info-facts dd){
 border:0!important;border-bottom:1px solid #65484755!important;
 border-image:none!important;background:#251c27!important;
 box-shadow:none!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-move-card:is(.selected,[aria-pressed="true"]){
 background:#4a2e36!important;border-left:2px solid #d4a070!important;
}
body.mobile-web #modal[data-view="pokemon"] .info-grid,
body.mobile-web #modal[data-view="pokemon"] .info-panel,
body.mobile-web #modal[data-view="pokemon"] .info-move-list{gap:4px!important;}
body.mobile-web #modal[data-view="titles"] :is(.tc-card,.tc-head,.tc-section){
 border:5px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 5px / 0 stretch!important;
 background:#211922!important;box-shadow:none!important;
}
body.mobile-web #modal[data-view="titles"] :is(.tc-line,.tc-stat,.tc-chip,.tc-title,.tc-hex,.tc-hex-in){
 border:0!important;border-image:none!important;box-shadow:none!important;
 background:transparent!important;
}
body.mobile-web #modal[data-view="titles"] .tc-title:is(.worn,.selected,[aria-pressed="true"]){
 background:#482c35!important;box-shadow:inset 2px 0 #d5a26e!important;
}
body.mobile-web #modal[data-view="titles"] :is(.tc-stats,.tc-grid,.tc-section){
 gap:5px!important;margin-top:5px!important;
}
body.mobile-web #modal[data-view="dex"] :is(.dex-controls,.dex-heading,.dex-filter,.dex-header){
 border:0!important;border-image:none!important;box-shadow:none!important;
 background:transparent!important;
}
body.mobile-web #modal[data-view="dex"] .dex-card{
 margin:0!important;border:0!important;border-bottom:1px solid #684c4a55!important;
 border-image:none!important;background:#231b25!important;
}
body.mobile-web #modal[data-view="dex"] .dex-card:is(.caught,.selected){
 border:0!important;border-left:2px solid #d5a06b!important;border-image:none!important;
 background:#462e36!important;
}
body.mobile-web #modal[data-view="journal"] :is(.goal-card,.badge-card,.goal-reward,.field-move-row){
 border:0!important;border-image:none!important;
 background:#261c28!important;box-shadow:none!important;
}
body.mobile-web #modal[data-view="journal"] :is(.goal-card,.badge-card,.field-move-row){
 border-bottom:1px solid #6b494555!important;
}
body.mobile-web #modal[data-view="journal"] .badge-card.earned{
 border:0!important;border-left:2px solid #d2a06e!important;
 border-image:none!important;background:#422d32!important;
}


/* feature:mobile-keyboard-uv-fit — viewport chat, released D-pad and responsive
   9-slice crop. Source PNG 96×96, UV corners 16 source pixels on each side. */
/* Clear the old rail's stacking/clipping: the SAME chat node is now a mobile
   body-level surface. The game map stays behind it and is never reparented. */
body.mobile-web #game .premium-right-rail,
body.mobile-web #game.mobile-rail-open .premium-right-rail{display:none!important;}
body.mobile-web #chat-panel.mobile-chat-surface{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 position:fixed!important;inset:auto!important;z-index:900!important;
 left:calc(var(--mobile-chat-x,0px) + env(safe-area-inset-left))!important;
 top:calc(var(--mobile-chat-y,0px) + env(safe-area-inset-top))!important;
 width:max(1px,calc(var(--mobile-chat-w,100dvw) - env(safe-area-inset-left) - env(safe-area-inset-right)))!important;
 height:max(1px,calc(var(--mobile-chat-h,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;border:clamp(3px,.8dvh,5px) solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 background:#1d1720!important;border-radius:0!important;clip-path:none!important;
 box-shadow:-5px 0 14px #0009!important;overflow:hidden!important;
 overscroll-behavior:contain;touch-action:auto!important;pointer-events:auto!important;
}
body.mobile-web:not(.mobile-chat-open) #chat-panel.mobile-chat-surface{display:none!important;}
body.mobile-web.mobile-chat-open #chat-panel.mobile-chat-surface{display:flex!important;}
body.mobile-web #chat-panel.mobile-chat-surface>.chat-header{
 box-sizing:border-box!important;display:flex!important;flex:0 0 32px!important;
 width:100%!important;height:32px!important;min-height:32px!important;max-height:32px!important;
 min-width:0!important;margin:0!important;padding:2px 5px!important;gap:5px!important;
 border:0!important;border-bottom:1px solid #674b47!important;
 background:#2a1d27!important;overflow:hidden!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-title{
 display:block!important;flex:1 1 auto!important;min-width:0!important;
 color:#ffe8ce!important;font:700 13px/19px Arial,sans-serif!important;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.mobile-web #chat-panel.mobile-chat-surface :is(.chat-caption,.chat-toggle,#chat-rail){display:none!important;}
body.mobile-web #chat-panel.mobile-chat-surface .chat-header>#mobile-chat-close{
 position:relative!important;inset:auto!important;display:grid!important;place-items:center!important;
 box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;height:27px!important;
 min-width:30px!important;min-height:27px!important;margin:0!important;padding:0!important;
 border:3px solid transparent!important;
 border-image:url("../button/rpg-control-active.png?v=cabare-uv-1") 12 fill / 1 / 0 stretch!important;
 color:#ffeedb!important;background:#382630!important;
 font:700 19px/20px Arial,sans-serif!important;
}
body.mobile-web #chat-panel.mobile-chat-surface>#chat-body{
 box-sizing:border-box!important;display:flex!important;flex:1 1 0!important;
 flex-direction:column!important;width:100%!important;height:0!important;
 min-width:0!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-tabs{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 box-sizing:border-box!important;flex:0 0 30px!important;height:30px!important;
 min-height:30px!important;max-height:30px!important;width:100%!important;
 margin:0!important;padding:2px!important;gap:2px!important;
 background:#231a23!important;border:0!important;border-bottom:1px solid #593d42!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-tabs>.chat-tab{
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;min-width:0!important;min-height:25px!important;height:25px!important;
 margin:0!important;padding:2px!important;border:0!important;border-image:none!important;
 font:700 11px/15px Arial,sans-serif!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;background:transparent!important;
 color:#e7cdbc!important;box-shadow:none!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-tabs>.chat-tab.selected{
 color:#ffeed6!important;background:#57333b!important;box-shadow:inset 0 -2px #c59060!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-log{
 box-sizing:border-box!important;display:flex!important;flex:1 1 0!important;
 width:100%!important;height:0!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-messages{
 display:block!important;box-sizing:border-box!important;flex:1 1 auto!important;
 min-width:0!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:5px 7px!important;overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 color:#ffecda!important;background:#1a151d!important;
 font:400 12px/17px Arial,sans-serif!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-scroll{
 display:flex!important;flex:0 0 20px!important;flex-direction:column!important;
 width:20px!important;min-width:20px!important;
 padding:2px!important;border-left:1px solid #50383c!important;background:#1a151d!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-scroll button{
 box-sizing:border-box!important;width:16px!important;height:20px!important;min-height:0!important;
 padding:0!important;border:0!important;border-image:none!important;font-size:11px!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-whisper-row{
 display:flex!important;box-sizing:border-box!important;flex:0 0 29px!important;
 width:100%!important;min-height:29px!important;max-height:29px!important;
 padding:2px 4px!important;gap:5px!important;background:#241b26!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-whisper-row[hidden]{display:none!important;}
body.mobile-web #chat-panel.mobile-chat-surface #chat-whisper-to{
 width:100%!important;min-width:0!important;height:25px!important;
 font:400 16px/20px Arial,sans-serif!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-form{
 box-sizing:border-box!important;display:grid!important;flex:0 0 39px!important;
 grid-template-columns:29px 29px minmax(0,1fr) 30px!important;
 width:100%!important;height:39px!important;min-width:0!important;min-height:39px!important;
 max-height:39px!important;margin:0!important;padding:3px!important;gap:3px!important;
 border:0!important;border-top:1px solid #634549!important;
 background:#271d27!important;align-items:center!important;overflow:hidden!important;
}
body.mobile-web #chat-panel.mobile-chat-surface :is(#chat-settings,#chat-link,.hud-chat-send){
 box-sizing:border-box!important;width:29px!important;min-width:29px!important;
 height:29px!important;min-height:29px!important;
 margin:0!important;padding:2px!important;border:3px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 1 / 0 stretch!important;
 background:transparent!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-input{
 box-sizing:border-box!important;display:block!important;min-width:0!important;
 width:100%!important;height:30px!important;min-height:30px!important;
 margin:0!important;padding:4px 6px!important;
 font:400 16px/21px Arial,sans-serif!important;
 color:#fff0dd!important;background:#16121b!important;
 border:1px solid #705650!important;border-image:none!important;
 border-radius:0!important;clip-path:none!important;
 outline-offset:-2px;pointer-events:auto!important;
 touch-action:manipulation!important;user-select:text!important;-webkit-user-select:text!important;
}
body.mobile-web #chat-panel.mobile-chat-surface #chat-input:focus{
 outline:2px solid #c69b72!important;outline-offset:-2px!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-popover{
 position:absolute!important;left:4px!important;right:4px!important;bottom:41px!important;
 top:auto!important;z-index:5!important;max-width:none!important;max-height:55%!important;
 box-sizing:border-box!important;margin:0!important;padding:4px!important;
 border:3px solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 background:#261b28!important;overflow-y:auto!important;overscroll-behavior:contain;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-popover[hidden]{display:none!important;}
body.mobile-web #chat-panel.mobile-chat-surface .chat-link-list{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-link-item{
 min-width:0!important;min-height:27px!important;
 border:0!important;border-image:none!important;background:#342530!important;
 color:#ffe7cb!important;padding:3px!important;font:400 12px/16px Arial,sans-serif!important;
}
body.mobile-web #chat-panel.mobile-chat-surface .chat-link-item :is(span,strong){
 min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.mobile-web.mobile-chat-short #chat-panel.mobile-chat-surface .chat-tabs,
body.mobile-web.mobile-chat-short #chat-panel.mobile-chat-surface .chat-scroll{display:none!important;}
body.mobile-web.mobile-chat-short #chat-panel.mobile-chat-surface>.chat-header{
 flex-basis:27px!important;height:27px!important;min-height:27px!important;max-height:27px!important;
}
body.mobile-web.mobile-chat-typing #chat-panel.mobile-chat-surface{
 box-shadow:0 -5px 18px #000a!important;
}
/* Arrows are pressed only while a pointer is held. Browser touch focus may
   remain on a button, but never retains its active texture or raised size. */
body.mobile-web .mobile-dpad-key:focus-visible:not(.is-held):not(:active){
 border-image-source:url("../button/rpg-control.png?v=cabare-uv-1")!important;
 background:#2a1d2bef!important;outline:1px solid #dcb37e!important;outline-offset:-2px!important;
}
body.mobile-web .mobile-dpad-key:not(.is-held):not(:active):focus{
 border-image-source:url("../button/rpg-control.png?v=cabare-uv-1")!important;
 background:#2a1d2bef!important;box-shadow:none!important;transform:none!important;
}
body.mobile-web .mobile-dpad-key.is-held{
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
 background:#4b2a34!important;
}
/* Backpack UV: the source slice is always 16/96; destination corner thickness
   is relative to each component's physical border, not hardcoded image pixels.
   This prevents corner collision on 28–35px rows and preserves text/controls. */
body.mobile-web #modal[data-view="bag"][open]{
 --mobile-bag-uv-edge:clamp(2px,.7dvh,4px);
 border:var(--mobile-bag-uv-edge) solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 box-sizing:border-box!important;clip-path:none!important;
}
body.mobile-web #modal[data-view="bag"] .bag-shell{
 grid-template-rows:36px 35px minmax(0,1fr)!important;
 overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] :is(.bag-header,.bag-pockets-box,.bag-items-box,.bag-detail){
 box-sizing:border-box!important;
 border:var(--mobile-bag-uv-edge,3px) solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 border-image-repeat:stretch!important;border-image-outset:0!important;
 clip-path:none!important;border-radius:0!important;min-width:0!important;min-height:0!important;
}
body.mobile-web #modal[data-view="bag"] .bag-header{
 min-height:36px!important;height:36px!important;max-height:36px!important;
 padding:1px 4px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-close{
 box-sizing:border-box!important;flex:0 0 27px!important;
 width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;
 padding:0!important;margin:0!important;line-height:18px!important;
 border:var(--mobile-bag-uv-edge,3px) solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 1 / 0 stretch!important;
 clip-path:none!important;transform:none!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pockets-box{
 height:35px!important;max-height:35px!important;min-height:35px!important;
 padding:0!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pockets{
 min-height:0!important;max-height:100%!important;height:100%!important;
 align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-pocket{
 box-sizing:border-box!important;flex:0 0 auto!important;
 min-height:26px!important;height:26px!important;max-height:26px!important;
 padding:2px 6px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-items-box{
 padding:3px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-toolbar{flex:0 0 29px!important;height:29px!important;min-height:29px!important;max-height:29px!important;}
body.mobile-web #modal[data-view="bag"] .bag-toolbar>select,
body.mobile-web #modal[data-view="bag"] .bag-search-wrap input{
 box-sizing:border-box!important;height:29px!important;min-height:29px!important;max-height:29px!important;
 border:var(--mobile-bag-uv-edge,3px) solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 background-color:#1b151e!important;clip-path:none!important;
 padding-block:1px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-search-wrap input{
 padding-left:23px!important;padding-right:27px!important;
}
body.mobile-web #modal[data-view="bag"] .bag-search-clear{
 box-sizing:border-box!important;min-height:21px!important;height:21px!important;max-height:21px!important;
 padding:0 4px!important;right:3px!important;top:4px!important;
 border:2px solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 1 / 0 stretch!important;
 clip-path:none!important;transform:none!important;
}
body.mobile-web #modal[data-view="bag"] .bag-list-item{
 box-sizing:border-box!important;width:100%!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 border-image:none!important;clip-path:none!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail{
 padding:4px!important;grid-template-columns:31px minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr) minmax(34px,auto)!important;
 gap:4px!important;overflow:hidden!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail>.bag-icon{
 width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important;
 border:0!important;border-image:none!important;clip-path:none!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-side{
 box-sizing:border-box!important;grid-column:1/-1!important;grid-row:2!important;
 min-height:34px!important;max-height:min(55%,128px)!important;overflow-y:auto!important;
 padding:3px 1px 0!important;border-top:1px solid #68464788!important;
 overscroll-behavior:contain!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions{
 display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;
 gap:4px!important;margin:0!important;min-width:0!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions button{
 box-sizing:border-box!important;flex:1 1 76px!important;min-width:0!important;
 height:auto!important;min-height:32px!important;max-height:none!important;
 padding:3px 5px!important;
 border:var(--mobile-bag-uv-edge,3px) solid transparent!important;
 border-image:url("../button/rpg-control.png?v=cabare-uv-1") 12 fill / 1 / 0 stretch!important;
 border-image-repeat:stretch!important;border-image-outset:0!important;
 border-radius:0!important;clip-path:none!important;transform:none!important;box-shadow:none!important;
 color:#ffe9d4!important;background:#2d202b!important;
 font:700 12px/16px Arial,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
body.mobile-web #modal[data-view="bag"] .bag-detail-actions button:is(:active,:focus-visible){
 border-image-source:url("../button/rpg-control-active.png?v=cabare-uv-1")!important;
}
body.mobile-web #modal[data-view="bag"] .bag-action-menu{
 box-sizing:border-box!important;position:absolute!important;inset:3px!important;
 width:auto!important;min-width:0!important;max-width:none!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:5px!important;gap:3px!important;
 border:var(--mobile-bag-uv-edge,3px) solid transparent!important;
 border-image:url("./hud-panel.png?v=cabare-uv-1") 16 fill / 1 / 0 stretch!important;
 border-radius:0!important;clip-path:none!important;
 background:#251b28!important;box-shadow:none!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
 z-index:12!important;
}
body.mobile-web #modal[data-view="bag"] .bag-action-option{
 box-sizing:border-box!important;flex:0 0 auto!important;display:flex!important;
 align-items:center!important;width:100%!important;height:auto!important;min-height:32px!important;
 margin:0!important;padding:5px 9px!important;gap:4px!important;
 border:0!important;border-image:none!important;clip-path:none!important;
 border-radius:0!important;transform:none!important;box-shadow:none!important;
 background:transparent!important;color:#ffe4d0!important;
 font:700 12px/17px Arial,sans-serif!important;white-space:normal!important;
 overflow-wrap:anywhere!important;text-align:left!important;
}
body.mobile-web #modal[data-view="bag"] .bag-action-option:is(:hover,:focus-visible,.selected){
 border:0!important;border-image:none!important;background:#51303a!important;
 box-shadow:inset 2px 0 #cd9c73!important;color:#fff0d8!important;
}
body.mobile-web #modal[data-view="bag"] .bag-action-option:is(:hover,:focus-visible)::before{
 content:none!important;display:none!important;
}
@media(max-height:340px){
 body.mobile-web #modal[data-view="bag"] .bag-shell{
  grid-template-rows:32px 31px minmax(0,1fr)!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-header{
  height:32px!important;min-height:32px!important;max-height:32px!important;padding:0 3px!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-pockets-box{
  height:31px!important;min-height:31px!important;max-height:31px!important;padding:0!important;
 }
 body.mobile-web #modal[data-view="bag"] .bag-close{
  height:24px!important;min-height:24px!important;width:24px!important;min-width:24px!important;
 }
}
