/* Desktop-only: original Shutdown nine-slice sidebars touch the top edge.
 * The mobile-web overlay and its keyboard-safe layout remain authoritative. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #game{
  --shell-sidebar-width:clamp(288px,21vw,360px);--shell-left:var(--shell-sidebar-width);--shell-right:var(--shell-sidebar-width);--shell-top:50px;
  position:relative!important;display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #game .premium-world-layout,
 body:not(.mobile-web) #game .premium-world-layout.chat-collapsed{
  box-sizing:border-box!important;grid-row:1!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;display:grid!important;
  grid-template-columns:var(--shell-left) minmax(0,1fr) var(--shell-right)!important;
  grid-template-rows:minmax(0,1fr)!important;gap:0!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #game .premium-world-layout.chat-collapsed{
  grid-template-columns:var(--shell-left) minmax(0,1fr) 48px!important;
 }
 body:not(.mobile-web) #game .premium-left-rail,
 body:not(.mobile-web) #game .premium-right-rail{
  box-sizing:border-box!important;grid-row:1!important;min-width:0!important;min-height:0!important;
  /* Child panels already own the PNG frames; the outer frame consumed another 12px. */
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  border:0!important;border-image:none!important;
  border-radius:0!important;background-color:#192135!important;box-shadow:none!important;
  align-self:stretch!important;
 }
 body:not(.mobile-web) #game .premium-left-rail{
  grid-column:1!important;display:flex!important;flex-direction:column!important;
  gap:0!important;overflow-x:hidden!important;overflow-y:auto!important;
  scrollbar-gutter:auto!important;
 }
 body:not(.mobile-web) #game .premium-right-rail{
  grid-column:3!important;overflow:hidden!important;gap:0!important;
 }
 body:not(.mobile-web) #game .premium-world-column{
  grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important;
  height:auto!important;margin:var(--shell-top) 0 0!important;align-self:stretch!important;
 }
 body:not(.mobile-web) #game .premium-topbar{
  box-sizing:border-box!important;position:absolute!important;z-index:35!important;
  top:0!important;left:var(--shell-left)!important;right:var(--shell-right)!important;
  grid-row:auto!important;display:grid!important;align-items:center!important;
  grid-template-columns:minmax(0,1fr) 46px!important;
  column-gap:3px!important;gap:3px!important;width:auto!important;
  height:var(--shell-top)!important;min-height:var(--shell-top)!important;max-height:var(--shell-top)!important;
  margin:0!important;padding:3px 5px!important;border:6px solid transparent!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 6px / 0 stretch!important;
  border-radius:0!important;background-color:#192135!important;overflow:visible!important;box-shadow:none!important;
 }
 body:not(.mobile-web) #game.chat-is-collapsed.chat-is-collapsed .premium-topbar{right:48px!important}
 /* The login/logo asset stays available elsewhere, but the desktop world header
  * has no brand cell: all that width belongs to the menu. */
 body:not(.mobile-web) #game .premium-topbar>.hud-brand{display:none!important}
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav{
  grid-column:1!important;grid-row:1!important;display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:2px!important;
  padding:0!important;min-width:0!important;width:100%!important;height:100%!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:3px!important;gap:3px!important;flex:none!important;
  transform:none!important;transition:none!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item::after{
  border-width:4px!important;border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item:is(:hover,:focus,.active,[aria-pressed="true"])::after{
  border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>.hud-nav-icon{
  flex:0 0 19px!important;width:19px!important;height:19px!important;
  min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;
  background-size:19px 19px!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>span:last-child{
  display:block!important;min-width:0!important;max-width:calc(100% - 22px)!important;
  font:700 10px/12px Arial,sans-serif!important;text-overflow:ellipsis!important;
 }
 body:not(.mobile-web) #game .premium-topbar>.hud-top-meta{
  box-sizing:border-box!important;grid-column:2!important;grid-row:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-width:0!important;border:0!important;overflow:visible!important;
 }
 body:not(.mobile-web) #game .premium-topbar .account-head{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;overflow:visible!important;
 }
 body:not(.mobile-web) #game .premium-topbar .account-head::before{display:none!important}
 body:not(.mobile-web) #game .premium-statusbar{
  grid-row:2!important;width:100%!important;min-height:27px!important;margin:0!important;
  border-width:5px!important;border-image-width:5px!important;
 }
 body:not(.mobile-web) #game .premium-world-layout.chat-collapsed .premium-right-rail{padding:0!important}
}
@media screen and (min-width:901px) and (max-width:1350px){
 body:not(.mobile-web) #game{--shell-sidebar-width:288px}
 body:not(.mobile-web) #game .premium-topbar{grid-template-columns:minmax(0,1fr) 42px!important}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>span:last-child{display:none!important}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>.hud-nav-icon{
  flex-basis:20px!important;width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;
 }
}
/* Account popup: one actual character portrait; original RPG UV plates for each action. */
body:not(.mobile-web) #game .account-trigger{
 position:relative!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;
 flex:0 0 36px!important;width:36px!important;height:36px!important;
 min-width:36px!important;min-height:36px!important;max-width:36px!important;
 padding:2px!important;margin:0!important;overflow:hidden!important;
 border:4px solid transparent!important;
 border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
 background-color:#1d263d!important;transform:none!important;transition:none!important;
}
body:not(.mobile-web) #game .account-trigger:is(:hover,:focus-visible,[aria-expanded="true"]){
 border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;transform:none!important;
}
body:not(.mobile-web) #game .account-trigger #account-avatar{
 display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;
}
body:not(.mobile-web) #game .account-trigger .account-avatar-fallback{
 position:absolute;inset:0;display:grid;place-items:center;color:#f1d4a3;font-size:17px;
}
body:not(.mobile-web) #game .account-trigger.has-portrait .account-avatar-fallback{display:none!important}
body:not(.mobile-web) #game .account-trigger .account-caret{
 position:absolute;right:0;bottom:0;font:700 8px/9px Arial,sans-serif;color:#ffe0a0;
 background:#1b243a;pointer-events:none;
}
body:not(.mobile-web) #game .account-menu[hidden]{display:none!important}
body:not(.mobile-web) #game .account-menu{
 box-sizing:border-box;position:absolute;z-index:70;right:0;top:calc(100% + 5px);
 width:188px;min-width:188px;margin:0;padding:5px!important;
 display:flex;flex-direction:column;gap:2px;border:7px solid transparent!important;
 border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 7px / 0 stretch!important;
 background-color:#192135!important;box-shadow:0 9px 22px #0d111c99!important;
}
body:not(.mobile-web) #game .account-menu-name{
 display:block;min-width:0;padding:5px 7px 7px!important;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap;color:#ffe0a0;font:700 12px/15px Arial,sans-serif!important;
}
body:not(.mobile-web) #game .account-menu button{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;width:100%!important;height:32px!important;min-height:32px!important;
 padding:4px 7px!important;margin:0!important;border:4px solid transparent!important;
 border-image:url("../login/button.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
 border-radius:0!important;background-color:#1e2941!important;color:#f5e7d7!important;
 font:700 12px/15px Arial,sans-serif!important;text-align:left!important;
 transform:none!important;transition:none!important;
}
body:not(.mobile-web) #game .premium-topbar .account-menu :is(#game-sound,#logout){
 width:100%!important;max-width:none!important;min-width:0!important;min-height:32px!important;
}
body:not(.mobile-web) #game .account-menu button:is(:hover,:focus-visible){
 border-image-source:url("../login/button-active.png?v=cabare-uv-1")!important;transform:none!important;
}
body:not(.mobile-web) #game .account-menu-icon{
 flex:0 0 18px;width:18px;height:18px;background-position:center;
 background-size:contain;background-repeat:no-repeat;image-rendering:pixelated;
}
body:not(.mobile-web) #game .account-menu-icon-profile{background-image:url("../GameIcon/icons/user.png?v=9")}
body:not(.mobile-web) #game .account-menu-icon-settings{background-image:url("../GameIcon/icons/gear.png?v=9")}
body:not(.mobile-web) #game .account-menu-icon-logout{background-image:url("../GameIcon/icons/right-from-bracket.png?v=9")}

/* feature:desktop-server-footer — physical PNG/UV bottom dock; native 96px
 * Shutdown frame/slot sources use 24px nine-slice UV margins. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #game .premium-statusbar{
  box-sizing:border-box!important;grid-row:2!important;flex-shrink:0!important;
  display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(0,auto)!important;
  align-items:center!important;gap:5px!important;width:100%!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:0!important;padding:3px 6px!important;overflow:hidden!important;
  border:5px solid transparent!important;
  border-image:url("../login/frame-active.png?v=cabare-uv-1") 24 fill / 5px / 0 stretch!important;
  border-radius:0!important;background-color:#192135!important;box-shadow:none!important;
  color:#f5e7d7!important;
 }
 body:not(.mobile-web) #game .premium-statusbar > :is(.hud-footer-presence,.hud-footer-world,.hud-footer-performance){
  box-sizing:border-box!important;display:flex!important;align-items:center!important;min-width:0!important;
  height:28px!important;min-height:28px!important;max-height:28px!important;
  margin:0!important;padding:0 7px!important;overflow:hidden!important;
  border:4px solid transparent!important;
  border-image:url("../login/slot.png?v=cabare-uv-1") 24 fill / 4px / 0 stretch!important;
  border-radius:0!important;background-color:#1d263d!important;
  font:700 11px/16px Arial,sans-serif!important;white-space:nowrap!important;
  letter-spacing:0!important;
 }
 body:not(.mobile-web) #game .premium-statusbar .hud-footer-presence{
  gap:7px!important;justify-content:flex-start!important;color:#f5e7d7!important;
 }
 body:not(.mobile-web) #game .hud-footer-presence .status-dot{
  flex:0 0 7px!important;width:7px!important;height:7px!important;
 }
 body:not(.mobile-web) #game .hud-footer-presence #world-title{
  display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#f5e7d7!important;font:700 11px/16px Arial,sans-serif!important;
 }
 body:not(.mobile-web) #game .hud-footer-presence #population{
  display:block!important;flex:0 0 auto!important;min-width:0!important;
  margin:0!important;padding:1px 5px!important;color:#ffe0a0!important;
  font:700 11px/16px Arial,sans-serif!important;font-variant-numeric:tabular-nums!important;
 }
 body:not(.mobile-web) #game .hud-footer-presence #latency{
  display:block!important;flex:0 0 auto!important;font:700 11px/16px Arial,sans-serif!important;
  font-variant-numeric:tabular-nums!important;color:#dac6b2!important;
 }
 body:not(.mobile-web) #game .hud-footer-world{
  justify-content:center!important;color:#dfc7b0!important;
 }
 body:not(.mobile-web) #game .hud-footer-world .status-notice{
  display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;
  font:700 11px/16px Arial,sans-serif!important;
 }
 body:not(.mobile-web) #game .hud-footer-world .status-notice b{
  color:#41d684!important;flex:0 0 auto!important;font-size:10px!important;
 }
 body:not(.mobile-web) #game .hud-footer-world #world-status{
  display:block!important;min-width:0!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;color:#dfc7b0!important;
 }
 body:not(.mobile-web) #game .premium-statusbar #render-status.hud-footer-performance{
  justify-content:flex-end!important;color:#ffe0a0!important;
  font:700 11px/16px Arial,sans-serif!important;font-variant-numeric:tabular-nums!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
 }
}
