/* The main HUD in the gothic theme (mockup 05-interface-inicial; Work-ID 20261018-reskin-a-theme-hud-6e52). Desktop only: the phone keeps its own overlay layout (ui/mobile/mobile.css) and only
   inherits the colours of the shared tokens. Everything here repaints or re-places the existing elements; no element, id or handler is added or removed (the header gains a brand block, which is
   decoration). Every control keeps ONE authored box in every state (AGENTS.md): states only change colours, an inset shadow or a background layer. The older sheets (uv-*.css, desktop-shell.css)
   fix the layout with !important, so these rules use the same selectors and come after them. */
.hud-emblem,.hud-brand-copy{display:none}
@media screen and (min-width:901px){
 body:not(.mobile-web) #game{--shell-top:106px;--shell-sidebar-width:clamp(288px,19vw,350px);background:var(--sg-void)!important}
 /* ---- the header: the castle under the blood moon, the brand at the left, the nine entries, the account at the right ---------------------------------------------------- */
 body:not(.mobile-web) #game .premium-topbar{
  left:0!important;right:0!important;top:0!important;height:var(--shell-top)!important;min-height:var(--shell-top)!important;max-height:var(--shell-top)!important;
  grid-template-columns:var(--shell-left) minmax(0,1fr) 112px!important;grid-template-rows:minmax(0,1fr) 46px!important;gap:0 8px!important;align-items:end!important;
  padding:0 10px 7px 0!important;border:0!important;border-image:none!important;border-radius:0!important;
  background:linear-gradient(90deg,#111623 0,#11162300 16%,#11162300 84%,#111623 100%),url("header-art.webp?v=sg-1") center top/auto 72px no-repeat,linear-gradient(180deg,#1a2337 0,#131928 60%,#101522 100%)!important;
  box-shadow:inset 0 -1px 0 #0d111c,inset 0 -3px 0 var(--sg-edge),inset 0 -4px 0 #0d111c,0 4px 16px #0d111ccc!important;
 }
 body:not(.mobile-web) #game.chat-is-collapsed.chat-is-collapsed .premium-topbar{right:0!important}
 body:not(.mobile-web) #game .premium-topbar>.hud-brand{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;grid-column:1!important;grid-row:1 / 3!important;align-self:stretch!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;height:auto!important;
  min-width:0!important;margin:0!important;padding:6px 8px 8px 14px!important;overflow:hidden!important;
 }
 body:not(.mobile-web) #game .premium-topbar>.hud-brand>img,body:not(.mobile-web) #game .premium-topbar>.hud-brand>small.shutdown-header-edition{display:none!important}
 body:not(.mobile-web) #game .hud-emblem{
  display:block;flex:0 0 76px;width:76px;height:76px;background:var(--sg-emblem) center/cover no-repeat;border-radius:50% 50% 46% 46%/42% 42% 58% 58%;
  box-shadow:0 0 0 2px #0d111c,0 0 0 3px var(--sg-gold-lo),0 0 18px #673c4066;
 }
 body:not(.mobile-web) #game .hud-brand-copy{display:grid;gap:3px;min-width:0}
 body:not(.mobile-web) #game .hud-brand-copy small{display:block;color:var(--sg-gold-hi);font:700 12px/14px Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;text-shadow:0 1px 0 #0d111c}
 body:not(.mobile-web) #game .hud-brand-copy strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:700 21px/24px Arial,sans-serif;text-shadow:0 2px 0 #0d111c}
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav{
  grid-column:2!important;grid-row:2!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:6px!important;height:44px!important;align-self:end!important;
  padding:0!important;overflow:visible!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item{
  height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 var(--sg-nav-pad,8px)!important;margin:0!important;gap:9px!important;border:0!important;border-image:none!important;border-radius:3px!important;
  background:linear-gradient(180deg,#171f32 0,#121826 100%)!important;box-shadow:var(--sg-frame-soft)!important;color:var(--sg-text)!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item::after{display:none!important}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>.hud-nav-icon{
  flex:0 0 22px!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important;
  background-size:22px 22px!important;color:#ffe5a8!important;font-size:19px!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>span:last-child{font:700 13px/16px Arial,sans-serif!important;letter-spacing:.04em!important;max-width:calc(100% - 32px)!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item:is(:hover:not(:disabled),:focus,:focus-visible,:active,.pad-focus,.active,[aria-pressed="true"]){
  padding:0 var(--sg-nav-pad,8px)!important;border:0!important;margin:0!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item:is(:hover:not(:disabled),:focus-visible,.pad-focus){
  background:linear-gradient(180deg,#212c46 0,#141b2b 100%)!important;box-shadow:var(--sg-frame),inset 0 -2px 0 var(--sg-red-hi)!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item:is(.active,[aria-pressed="true"],#hud-menu-button){
  background:linear-gradient(180deg,#c85a4f 0,#ac363a 100%)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #ff7a88,inset 0 -3px 0 #212a3e,0 0 14px #c44c4577!important;
 }
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item.hud-nav-arena{background:linear-gradient(180deg,#171f32 0,#121826 100%)!important}
 body:not(.mobile-web) #game .premium-topbar>.hud-top-meta{grid-column:3!important;grid-row:2!important;justify-content:flex-end!important;height:44px!important;align-self:end!important}
 body:not(.mobile-web) #game .account-trigger{
  flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;padding:3px!important;border:0!important;border-image:none!important;border-radius:3px!important;
  background:linear-gradient(180deg,#1c253c,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo),0 0 10px #f3c96b30!important;
 }
 body:not(.mobile-web) #game .account-trigger:is(:hover,:focus-visible,[aria-expanded="true"]){box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold),0 0 14px #f3c96b66!important}
 body:not(.mobile-web) #game .account-menu{border:0!important;border-image:none!important;border-radius:3px!important;background:var(--sg-surface)!important;box-shadow:var(--sg-frame),0 10px 26px #0d111ccc!important}
 body:not(.mobile-web) #game .account-menu button{border:0!important;border-image:none!important;border-radius:2px!important;background:#161d2e!important;box-shadow:inset 0 0 0 1px #1f273a!important}
 body:not(.mobile-web) #game .account-menu button:is(:hover,:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px var(--sg-gold-lo)!important}

 /* ---- the rails start under the header ---------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .premium-world-layout{margin-top:var(--shell-top)!important;height:calc(100% - var(--shell-top))!important}
 body:not(.mobile-web) #game .premium-world-column{margin-top:0!important}
 body:not(.mobile-web) #game .premium-left-rail,body:not(.mobile-web) #game .premium-right-rail{background:transparent!important;padding:8px 6px 6px!important;gap:8px!important}
 body:not(.mobile-web) #game .premium-right-rail{display:flex!important;flex-direction:column!important}
 body:not(.mobile-web) #game .premium-world-column{padding:8px 4px 6px!important;gap:8px!important}

 /* ---- panels: the dark framed box with corner gems and a heading with a round icon ------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .premium-panel,body:not(.mobile-web) #game .premium-location-bar,body:not(.mobile-web) #game .premium-viewport{
  border:0!important;border-image:none!important;border-radius:4px!important;background:var(--sg-gems),var(--sg-surface)!important;box-shadow:var(--sg-frame)!important;
 }
 body:not(.mobile-web) #game .premium-panel-heading{
  display:flex!important;align-items:center!important;gap:10px!important;min-height:40px!important;padding:6px 12px!important;border:0!important;border-image:none!important;background:transparent!important;
  color:var(--sg-text)!important;font:700 14px/18px Arial,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;box-shadow:0 1px 0 #1f273a!important;
 }
 body:not(.mobile-web) #game .premium-panel-heading>strong{color:var(--sg-text)!important;font:inherit!important}
 body:not(.mobile-web) #game .premium-panel-heading>.premium-heading-icon{
  display:grid!important;place-items:center!important;flex:0 0 26px!important;width:26px!important;height:26px!important;border-radius:50%!important;background-color:#171f31!important;
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important;color:var(--sg-gold-hi)!important;font-size:13px!important;
 }
 body:not(.mobile-web) #game .premium-panel-heading>span:not(.hud-online-badge){margin-left:auto!important;color:var(--sg-text)!important;font:700 13px/16px Arial,sans-serif!important;letter-spacing:.06em!important}
 body:not(.mobile-web) #game .hud-panel-action{
  margin-left:auto!important;height:28px!important;padding:0 12px!important;border:0!important;border-image:none!important;border-radius:2px!important;background:#141a2a!important;
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639!important;color:var(--sg-text)!important;font:700 12px/16px Arial,sans-serif!important;
 }
 body:not(.mobile-web) #game .hud-panel-action:is(:hover,:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}

 /* ---- the trainer card ---------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .trainer-card>.premium-panel-heading{display:none!important}
 body:not(.mobile-web) #game .trainer-card{padding:10px 10px 8px!important;display:grid!important;gap:8px!important}
 body:not(.mobile-web) #game .trainer-portrait-shell{
  border:0!important;border-image:none!important;border-radius:3px!important;background:#07030a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639,0 0 10px #673c4040!important;
 }
 body:not(.mobile-web) #game .trainer-identity-copy h2,body:not(.mobile-web) #game #passport-name{color:#fff!important;font:700 16px/20px Arial,sans-serif!important;text-shadow:0 1px 0 #0d111c}
 body:not(.mobile-web) #game .trainer-role{color:var(--sg-muted)!important;font:700 11px/14px Arial,sans-serif!important;letter-spacing:.1em!important}
 body:not(.mobile-web) #game .trainer-xp-track{background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;border-radius:2px!important;overflow:hidden}
 body:not(.mobile-web) #game .trainer-xp-fill{background:linear-gradient(90deg,#ac363a,#cf7666)!important;box-shadow:0 0 8px #74444888!important}
 body:not(.mobile-web) #game .trainer-stats{gap:8px!important}
 body:not(.mobile-web) #game .trainer-stats>div{
  border:0!important;border-image:none!important;border-radius:3px!important;background:linear-gradient(180deg,#161d2e,#09040a)!important;box-shadow:var(--sg-frame-soft)!important;
  display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;column-gap:8px!important;align-items:center!important;padding:6px 8px!important;
 }
 body:not(.mobile-web) #game .trainer-stats>div::before{content:"";grid-row:1 / 3;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 50% 38%,#ffe9a0 0 24%,#e0a53a 26% 64%,#2c3852 66% 100%);box-shadow:0 0 0 1px #0d111c,0 0 8px #f3c96b55}
 body:not(.mobile-web) #game .trainer-stats>div:nth-child(2)::before{background:linear-gradient(180deg,#c85a4f 0 46%,#171f31 46% 54%,#f3f0ea 54% 100%);box-shadow:0 0 0 1px #0d111c,0 0 0 2px #fff3,0 0 8px #673c4055}
 body:not(.mobile-web) #game .trainer-stats>div>span{grid-column:2;color:var(--sg-gold)!important;font:700 11px/13px Arial,sans-serif!important;letter-spacing:.1em!important}
 body:not(.mobile-web) #game .trainer-stats>div>strong{grid-column:2;color:#fff!important;font:700 13px/16px Arial,sans-serif!important}

 /* ---- the party list ---------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .party-panel{display:flex!important;flex-direction:column!important;gap:6px!important;padding-bottom:8px!important;min-height:0!important}
 body:not(.mobile-web) #game .party-panel #party-list{display:grid!important;gap:6px!important;padding:0 8px!important}
 body:not(.mobile-web) #game .party-card,body:not(.mobile-web) #game .party-empty{
  border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#151c2d,#08040a)!important;box-shadow:var(--sg-frame-soft)!important;
 }
 body:not(.mobile-web) #game .party-card.lead{box-shadow:var(--sg-frame)!important}
 body:not(.mobile-web) #game .party-card:is(:hover,:focus-visible){background:linear-gradient(180deg,#1a2236,#121826)!important;box-shadow:var(--sg-frame)!important}
 body:not(.mobile-web) #game .party-card .party-name strong{color:#fff!important;font:700 15px/18px Arial,sans-serif!important}
 body:not(.mobile-web) #game .party-card .party-name span,body:not(.mobile-web) #game .party-card .party-meta span:last-child{color:var(--sg-text)!important;font:700 11px/14px Arial,sans-serif!important}
 body:not(.mobile-web) #game .party-card .party-meta span:first-child{color:var(--sg-green)!important;font:700 13px/16px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #game .party-card .party-meta .lead-label{color:var(--sg-red-hi)!important}
 body:not(.mobile-web) #game .party-card.fainted .party-meta span:first-child{color:var(--sg-red-hi)!important}
 body:not(.mobile-web) #game .hud-wide-command{
  margin:0 8px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:var(--sg-frame-soft)!important;
  color:var(--sg-text)!important;font:700 13px/16px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #game .hud-wide-command:is(:hover:not(:disabled),:focus-visible){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:var(--sg-frame)!important}
 body:not(.mobile-web) #game .hud-wide-command kbd{border:0!important;border-radius:2px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #5c3639!important;color:var(--sg-text)!important}

 /* ---- the location bar and the map frame -------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .premium-location-bar{min-height:60px!important;padding:6px 14px!important;display:flex!important;align-items:center!important}
 body:not(.mobile-web) #game .premium-location-bar .location-copy{position:relative;padding-left:58px;min-height:42px;display:grid;align-content:center}
 body:not(.mobile-web) #game .premium-location-bar .location-copy::before{
  content:"";position:absolute;left:0;top:50%;width:44px;height:44px;margin-top:-22px;border-radius:50%;box-shadow:0 0 0 1px #0d111c,0 0 0 2px var(--sg-gold-lo),0 0 12px #673c4055;
  background:linear-gradient(180deg,#c85a4f 0 44%,#141b2b 44% 56%,#f3f0ea 56% 100%);
 }
 body:not(.mobile-web) #game .premium-location-bar .location-copy::after{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:#f3f0ea;box-shadow:0 0 0 3px #141b2b}
 body:not(.mobile-web) #game #map-region{color:var(--sg-gold-hi)!important;font:700 12px/14px Arial,sans-serif!important;letter-spacing:.14em!important}
 body:not(.mobile-web) #game #map-name{color:#fff!important;font:700 23px/26px Arial,sans-serif!important;margin:0!important;text-shadow:0 2px 0 #0d111c}
 body:not(.mobile-web) #game .premium-atlas-button{
  border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-edge-hi),0 0 10px #c44c4540!important;
  color:var(--sg-text)!important;font:700 13px/16px Arial,sans-serif!important;letter-spacing:.06em!important;text-transform:uppercase!important;
 }
 body:not(.mobile-web) #game .premium-atlas-button:is(:hover:not(:disabled),:focus-visible){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold),0 0 12px #f3c96b44!important}
 body:not(.mobile-web) #game .premium-viewport{padding:6px!important;background:#050205!important}
 body:not(.mobile-web) #game .toolbar-actions .icon-button{border:0!important;border-image:none!important;border-radius:2px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game .toolbar-actions .icon-button:is(:hover:not(:disabled),:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}

 /* ---- the right rail: minimap, missions, chat -------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .hud-minimap,body:not(.mobile-web) #game .hud-missions-list,body:not(.mobile-web) #game .chat-log,body:not(.mobile-web) #game .chat-messages{
  border:0!important;border-image:none!important;border-radius:3px!important;background:#06030a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;
 }
 body:not(.mobile-web) #game .hud-minimap-tools button{border:0!important;border-image:none!important;border-radius:3px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game .hud-minimap-tools button:is(:hover:not(:disabled),:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}
 body:not(.mobile-web) #game .hud-minimap-label span{border:0!important;border-image:none!important;border-radius:3px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game .chat-panel .chat-header{border:0!important;border-image:none!important;background:transparent!important;box-shadow:0 1px 0 #1f273a!important;min-height:40px!important}
 body:not(.mobile-web) #game .chat-panel .chat-title{color:var(--sg-text)!important;font:700 14px/18px Arial,sans-serif!important;letter-spacing:.08em!important}
 body:not(.mobile-web) #game .chat-panel .chat-caption{color:var(--sg-muted)!important}
 body:not(.mobile-web) #game .chat-tab{border:0!important;border-image:none!important;border-radius:2px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game .chat-tab.selected{background:linear-gradient(180deg,#28324a,#1a2337)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important;color:var(--sg-gold-hi)!important}
 body:not(.mobile-web) #game .chat-tab:is(:hover:not(:disabled),:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}
 body:not(.mobile-web) #game #chat-form input{border:0!important;border-image:none!important;border-radius:3px!important;background:#06030a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;color:var(--sg-text)!important}
 body:not(.mobile-web) #game #chat-form input:focus{box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}
 body:not(.mobile-web) #game #chat-form button{border:0!important;border-image:none!important;border-radius:3px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important}
 body:not(.mobile-web) #game #chat-form button[type="submit"]{background:linear-gradient(180deg,#c85a4f,#ac363a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #ff7a88!important}

 /* ---- the status bar ----------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game .premium-statusbar{
  border:0!important;border-image:none!important;border-radius:0!important;background:linear-gradient(180deg,#141b2b,#050205)!important;box-shadow:inset 0 1px 0 var(--sg-edge),inset 0 2px 0 #0d111c!important;
  color:var(--sg-muted)!important;min-height:30px!important;
 }
 body:not(.mobile-web) #game .premium-statusbar .pill{border:0!important;border-image:none!important;background:transparent!important;color:var(--sg-muted)!important;box-shadow:none!important}
}
@media screen and (min-width:901px) and (max-height:760px){
 body:not(.mobile-web) #game{--shell-top:84px}
 body:not(.mobile-web) #game .premium-topbar{grid-template-rows:minmax(0,1fr) 40px!important}
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav,body:not(.mobile-web) #game .premium-topbar>.hud-top-meta{height:40px!important}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item{height:40px!important;min-height:40px!important;max-height:40px!important}
 body:not(.mobile-web) #game .hud-emblem{flex-basis:56px;width:56px;height:56px}
 body:not(.mobile-web) #game .hud-brand-copy strong{font-size:17px;line-height:20px}
 body:not(.mobile-web) #game .premium-location-bar{min-height:52px!important}
 body:not(.mobile-web) #game #map-name{font-size:19px!important;line-height:22px!important}
}
@media screen and (min-width:901px) and (max-width:1750px){
 body:not(.mobile-web) #game .trainer-stats>div>strong{font-size:12px!important;white-space:nowrap!important}
 body:not(.mobile-web) #game .trainer-stats>div{grid-template-columns:24px minmax(0,1fr)!important;column-gap:6px!important;padding:6px!important}
 body:not(.mobile-web) #game .trainer-stats>div::before{width:22px!important;height:22px!important}
}
@media screen and (min-width:901px) and (max-width:1350px){
 body:not(.mobile-web) #game .trainer-stats>div{grid-template-columns:minmax(0,1fr)!important;padding:5px 7px!important}
 body:not(.mobile-web) #game .trainer-stats>div::before{display:none!important}
 body:not(.mobile-web) #game .trainer-stats>div>span,body:not(.mobile-web) #game .trainer-stats>div>strong{grid-column:1!important}
 body:not(.mobile-web) #game .trainer-stats>div>strong{font-size:12px!important;white-space:nowrap!important}
 body:not(.mobile-web) #game{--sg-nav-pad:4px}
 body:not(.mobile-web) #game .hud-brand-copy small{display:none}
}

/* ---- A/B recheck of mockup 05 (Work-ID 20261018-ab-recheck-d69d): what the first pass left out. The castle art over the whole header, the brand in its own plate, the nine entries in a tray, the gear and the close
   button at the right, light line icons, a ring around the whole window, the slot numbers gone from the party cards, the right rail in the picture's proportions and a quiet footer with the emblem. The gear is
   the account menu's own button (Trainer card, Settings, Log out stay in its menu); the X asks the Menu's "Do you really want to quit?". Every control keeps ONE authored box in every state (AGENTS.md). */
@media screen and (min-width:901px){
 /* the ring: a black rim, a red line, a dark gap, an inner glow, and a gem in each corner; it paints over nothing that takes a click */
 body:not(.mobile-web) #game::after{
  content:"";position:fixed;left:0;top:0;right:0;bottom:0;z-index:40;pointer-events:none;
  box-shadow:inset 0 0 0 2px #0d111c,inset 0 0 0 4px #62393d,inset 0 0 0 6px #161d2e,inset 0 0 0 7px #28324a,inset 0 0 34px #673c4066;
  background:radial-gradient(circle at 10px 10px,#ff8a98 0 2px,#c44c45 3px 5px,#0d111c 6px 7px,transparent 8px) top left/20px 20px no-repeat,
   radial-gradient(circle at 10px 10px,#ff8a98 0 2px,#c44c45 3px 5px,#0d111c 6px 7px,transparent 8px) top right/20px 20px no-repeat,
   radial-gradient(circle at 10px 10px,#ff8a98 0 2px,#c44c45 3px 5px,#0d111c 6px 7px,transparent 8px) bottom left/20px 20px no-repeat,
   radial-gradient(circle at 10px 10px,#ff8a98 0 2px,#c44c45 3px 5px,#0d111c 6px 7px,transparent 8px) bottom right/20px 20px no-repeat;
 }
 body:not(.mobile-web) #game.hidden::after{display:none}
 /* the header: the castle over the whole bar, the moon near the middle */
 body:not(.mobile-web) #game .premium-topbar{
  background:linear-gradient(90deg,#111623 0,#111623e0 17%,#11162300 38%,#11162300 80%,#111623cc 100%),url("header-art.webp?v=sg-1") 200px -8px/auto 124px no-repeat,linear-gradient(180deg,#1a2337 0,#131928 60%,#101522 100%)!important;
 }
 body:not(.mobile-web) #game .premium-topbar>.hud-brand{margin:6px 0 6px 10px!important;border-radius:4px!important;background:linear-gradient(90deg,#141b2bf2,#111623a6)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639,0 0 14px #673c4033!important}
 body:not(.mobile-web) #game .hud-emblem{flex-basis:84px;width:84px;height:84px;box-shadow:0 0 0 2px #0d111c,0 0 0 3px var(--sg-gold-lo),0 0 0 6px #161d2e,0 0 0 7px #5c3639,0 0 20px #673c4088}
 body:not(.mobile-web) #game .hud-brand-copy small{font-size:14px;line-height:16px;letter-spacing:.2em}
 body:not(.mobile-web) #game .hud-brand-copy strong{display:flex;align-items:center;gap:8px;font:700 24px/28px Arial,sans-serif}
 body:not(.mobile-web) #game .hud-brand-copy strong::before{content:"";flex:0 0 22px;height:17px;background:var(--sg-gold);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M3 18L2 7l5 4 5-8 5 8 5-4-1 11zM4 20h16v2H4z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M3 18L2 7l5 4 5-8 5 8 5-4-1 11zM4 20h16v2H4z%22/%3E%3C/svg%3E") center/contain no-repeat}
 body:not(.mobile-web) #game .hud-brand-copy strong::after{content:"\2726";flex:0 0 auto;color:var(--sg-gold);font-size:13px}
 /* the tray of the nine entries, with a small chevron at each end */
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav{
  position:relative;height:54px!important;align-self:end!important;align-items:center!important;margin-bottom:-3px;padding:5px 26px!important;border-radius:4px!important;
  background:linear-gradient(180deg,#141b2bee,#07030af2)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639,0 0 16px #673c4044!important;
 }
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav::before,body:not(.mobile-web) #game .premium-topbar>.hud-global-nav::after{
  content:"";position:absolute;top:50%;width:10px;height:16px;margin-top:-8px;background:var(--sg-chevron) center/contain no-repeat;pointer-events:none;
 }
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav::before{left:8px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16'%3E%3Cpath d='M8 2L2 8l6 6' fill='none' stroke='%23ffe5a8' stroke-width='2'/%3E%3C/svg%3E")}
 body:not(.mobile-web) #game .premium-topbar>.hud-global-nav::after{right:8px}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>.hud-nav-icon{filter:grayscale(1) sepia(.3) brightness(1.9) contrast(1.05)}
 body:not(.mobile-web) #game .premium-topbar .hud-global-nav>.hud-nav-item>span:last-child{font-size:13px!important;letter-spacing:.03em!important}
 /* the gear (the account menu's button) and the close button */
 body:not(.mobile-web) #game .premium-topbar>.hud-top-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;height:48px!important;margin-bottom:0!important}
 body:not(.mobile-web) #game .account-head{display:flex!important;flex:0 0 auto}
 body:not(.mobile-web) #game .account-trigger,body:not(.mobile-web) #game .hud-exit-button{
  position:relative;display:grid!important;place-items:center!important;flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;padding:0!important;border:0!important;border-image:none!important;border-radius:4px!important;
  background:linear-gradient(180deg,#1c253c,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo),inset 0 0 0 4px #161d2e,0 0 12px #f3c96b30!important;
 }
 body:not(.mobile-web) #game .hud-exit-button{display:grid!important}
 body:not(.mobile-web) #game .account-trigger:is(:hover,:focus-visible,[aria-expanded="true"]),body:not(.mobile-web) #game .hud-exit-button:is(:hover,:focus-visible){box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold),inset 0 0 0 4px #161d2e,0 0 16px #f3c96b66!important}
 body:not(.mobile-web) #game .account-trigger>:is(canvas,.account-avatar-fallback){display:none!important}
 body:not(.mobile-web) #game .account-trigger::after,body:not(.mobile-web) #game .account-trigger>.account-caret{display:none!important}
 body:not(.mobile-web) #game .account-head{width:48px!important;min-width:48px!important;margin:0!important}
 body:not(.mobile-web) #game .account-trigger::before,body:not(.mobile-web) #game .hud-exit-button::before{content:"";display:block;width:26px;height:26px;background:var(--sg-gold-hi)}
 body:not(.mobile-web) #game .account-trigger::before{-webkit-mask:url("../GameIcon/icons/gear.png?v=10") center/contain no-repeat;mask:url("../GameIcon/icons/gear.png?v=10") center/contain no-repeat}
 body:not(.mobile-web) #game .hud-exit-button::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M4.7 3.3L12 10.6l7.3-7.3 1.4 1.4L13.4 12l7.3 7.3-1.4 1.4L12 13.4l-7.3 7.3-1.4-1.4L10.6 12 3.3 4.7z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M4.7 3.3L12 10.6l7.3-7.3 1.4 1.4L13.4 12l7.3 7.3-1.4 1.4L12 13.4l-7.3 7.3-1.4-1.4L10.6 12 3.3 4.7z%22/%3E%3C/svg%3E") center/contain no-repeat}
 /* the party cards: no slot numbers, a bigger picture, the status in the picture's teal */
 body:not(.mobile-web) #game .party-panel #party-list>:is(.party-card,.party-empty)::before{display:none!important}
 body:not(.mobile-web) #game .party-panel #party-list>:is(.party-card,.party-empty){padding-left:10px!important}
 body:not(.mobile-web) #game .party-panel #party-list>.party-card .party-icon{width:clamp(34px,76cqh,52px)!important;height:clamp(34px,76cqh,52px)!important;max-width:52px!important;max-height:52px!important}
 body:not(.mobile-web) #game .party-card .party-meta span:first-child{color:#35e0c8!important}
 body:not(.mobile-web) #game .party-card.lead .party-meta span:first-child{color:var(--sg-red-hi)!important}
 body:not(.mobile-web) #game .party-card .hp-track{height:7px!important;border-radius:4px!important}
 /* the trainer card: the portrait, the bar and the name in the picture's sizes */
 body:not(.mobile-web) #game .trainer-xp-track{height:11px!important}
 body:not(.mobile-web) #game .trainer-identity-copy h2,body:not(.mobile-web) #game #passport-name{font-size:18px!important;line-height:22px!important}
 /* the headings of the rails: a gold-ringed round icon in light line colours */
 body:not(.mobile-web) #game .premium-panel-heading>.premium-heading-icon{filter:grayscale(1) sepia(.3) brightness(1.8)}
 /* the right rail in the picture's proportions: a short minimap, a short missions list, a tall chat */
 body:not(.mobile-web) #game .premium-world-layout:not(.chat-collapsed):not(.chat-expanded) .premium-right-rail{grid-template-rows:clamp(190px,25dvh,250px) clamp(120px,16dvh,150px) minmax(0,1fr)!important}
 /* the footer: no boxes, the emblem in the middle */
 body:not(.mobile-web) #game .premium-statusbar{position:relative;background:linear-gradient(180deg,#111623,#050205)!important;box-shadow:inset 0 1px 0 #28324a!important}
 body:not(.mobile-web) #game .premium-statusbar>*{background:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important}
 body:not(.mobile-web) #game .premium-statusbar::before{content:"";position:absolute;left:50%;top:-22px;width:58px;height:58px;margin-left:-29px;background:var(--sg-emblem) center/contain no-repeat;pointer-events:none;filter:drop-shadow(0 0 8px #673c4099)}
 body:not(.mobile-web) #game .hud-footer-presence{justify-content:flex-start!important;gap:18px!important}
 body:not(.mobile-web) #game .hud-footer-presence #world-title{flex:0 1 auto!important}
 body:not(.mobile-web) #game .hud-footer-world{padding-left:50px!important}
 /* feature:ui-scale: the minimap's collapse button (a chevron in its heading) folds the panel to the header; the rail gives the room to the missions and the chat */
 body:not(.mobile-web) #game .premium-panel-heading>.hud-minimap-collapse{flex:0 0 24px;width:24px!important;height:24px!important;min-width:24px!important;margin:0 0 0 10px!important;padding:0!important;border:0!important;border-image:none!important;border-radius:3px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #af373a!important}
 body:not(.mobile-web) #game .hud-minimap-collapse::before{content:"";display:block;width:12px;height:12px;margin:auto;background:var(--sg-gold-hi);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M2 15l10-10 10 10-2 2-8-8-8 8z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M2 15l10-10 10 10-2 2-8-8-8 8z%22/%3E%3C/svg%3E") center/contain no-repeat}
 body:not(.mobile-web) #game .hud-minimap-collapse[aria-expanded="false"]::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M2 9l2-2 8 8 8-8 2 2-10 10z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M2 9l2-2 8 8 8-8 2 2-10 10z%22/%3E%3C/svg%3E") center/contain no-repeat}
 body:not(.mobile-web) #game .hud-minimap-collapse:is(:hover:not(:disabled),:focus-visible){background:#1c253c!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-lo)!important}
 body:not(.mobile-web) #game .hud-minimap-panel.collapsed>.hud-minimap{display:none!important}
 body:not(.mobile-web) #game .hud-minimap-panel.collapsed{height:auto!important;min-height:0!important}
 body:not(.mobile-web) #game .premium-world-layout:not(.chat-collapsed):not(.chat-expanded) .premium-right-rail.rail-minimap-collapsed.rail-minimap-collapsed.rail-minimap-collapsed{grid-template-rows:auto clamp(120px,16dvh,150px) minmax(0,1fr)!important}
}
@media screen and (min-width:901px) and (max-height:760px){
 body:not(.mobile-web) #game .hud-emblem{flex-basis:60px;width:60px;height:60px}
 body:not(.mobile-web) #game .premium-topbar>.hud-brand{margin:4px 0 4px 8px!important}
 body:not(.mobile-web) #game .hud-brand-copy strong{font-size:19px;line-height:22px}
}
