
/* Reference-field HUD: source stylesheet captured from the verified visual prototype. */
      body.upi-reference-hud{--r-top:52px;--r-bottom:96px;--r-void:#02080d;--r-bg:#061019;--r-panel:#091722;--r-hover:#0d202d;
        --r-line:#183546;--r-line2:#2a5c74;--r-text:#f3f7f8;--r-muted:#91a7b4;--r-green:#46d58a;--r-cyan:#39c8dd;
        --r-gold:#f5c64e;--r-red:#ff5c66;--r-purple:#c96ff3;overflow:hidden!important;background:var(--r-void)!important}
      body.upi-reference-hud #mmo-hud-viewport{position:fixed!important;z-index:400!important;inset:0!important;display:block!important;width:100vw!important;
        height:100dvh!important;min-width:0!important;min-height:0!important;overflow:hidden!important;background:var(--r-void)!important;
        color:var(--r-text)!important;font-family:'pgreen','Consolas',monospace!important;isolation:isolate}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{position:absolute!important;z-index:1300!important;inset:0 0 auto!important;display:flex!important;
        align-items:center!important;justify-content:space-between!important;width:100%!important;height:var(--r-top)!important;min-height:var(--r-top)!important;
        padding:5px 8px!important;border:0!important;border-bottom:1px solid var(--r-line)!important;border-radius:0!important;background:var(--r-bg)!important;
        box-shadow:0 5px 18px rgb(0 0 0 / 44%)!important;box-sizing:border-box!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{position:relative!important;z-index:4!important;
        display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;height:100%!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left{flex:0 1 33%!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{flex:0 0 auto!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:42px!important;min-height:0!important;
        border:1px solid var(--r-line)!important;border-radius:7px!important;background:var(--r-panel)!important;box-sizing:border-box!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:144px!important;padding:4px 7px!important;gap:7px!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:32px!important;height:32px!important;
        flex:0 0 32px!important;border-radius:5px!important;object-fit:contain!important;image-rendering:pixelated!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img.mmo-trainer-sprite-sheet{position:absolute!important;inset:0 auto auto 0!important;width:400%!important;
        height:400%!important;max-width:none!important;object-fit:fill!important;object-position:0 0!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-info{display:flex!important;min-width:0!important;flex-direction:column!important;justify-content:center!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name{display:block!important;overflow:hidden;color:#fff!important;font:400 8px/1 'pgreen',monospace!important;text-overflow:ellipsis;white-space:nowrap}
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag{display:block!important;color:var(--r-green)!important;background:transparent!important;font:400 6px/1 'pgreen',monospace!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-progress-bar{display:block!important;height:3px!important;margin-top:5px!important;background:#163545!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-progress-fill{background:var(--r-green)!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-nav-menu,body.upi-reference-hud #mmo-hud-viewport .mmo-utility-actions,body.upi-reference-hud #mmo-hud-viewport .mmo-world-indicator,
      body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-incubators{display:none!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{display:flex!important;align-items:center!important;gap:1px!important;padding:3px 4px!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{display:flex!important;min-width:78px!important;height:30px!important;padding:0 7px!important;border:0!important;
        border-right:1px solid var(--r-line)!important;border-radius:0!important;background:transparent!important;color:#fff!important;font:400 7px/1 'pgreen',monospace!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item:last-of-type{border-right:0!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,
      body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:18px!important;height:18px!important;object-fit:contain!important;image-rendering:pixelated!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
        border:1px solid #79621d!important;border-radius:50%!important;background:#2b240c!important;color:var(--r-gold)!important;font:700 14px/1 system-ui,sans-serif!important}
      .rh-status{position:absolute;z-index:2;top:5px;left:50%;display:grid;width:min(410px,36vw);height:42px;grid-template-columns:1fr 1fr;gap:6px;transform:translateX(-50%)}
      .rh-status button{display:grid;min-width:0;grid-template-columns:29px minmax(0,1fr);align-items:center;gap:7px;padding:4px 8px;border:1px solid var(--r-line);
        border-radius:7px;background:var(--r-panel);color:var(--r-text);text-align:left;cursor:pointer}.rh-status button:hover,.rh-status button:focus-visible{border-color:var(--r-line2);background:var(--r-hover);outline:none}
      .rh-status img{width:27px;height:27px;object-fit:contain;image-rendering:pixelated}.rh-status span{display:flex;min-width:0;flex-direction:column;gap:5px}
      .rh-status small{color:var(--r-purple);font:400 5px/1 'pgreen',monospace}.rh-status strong{overflow:hidden;color:#fff;font:400 7px/1 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}
      .rh-actions{display:flex;align-items:center;gap:2px;height:42px;padding:3px;border:1px solid var(--r-line);border-radius:7px;background:var(--r-panel);box-sizing:border-box}
      .rh-actions button{display:grid;width:30px;height:30px;place-items:center;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;cursor:pointer}
      .rh-actions button:hover,.rh-actions button:focus-visible{border-color:var(--r-line2);background:var(--r-hover);outline:none}.rh-actions img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}
      body.upi-reference-hud #mmo-hud-viewport .mmo-main-body{position:absolute!important;inset:var(--r-top) 0 var(--r-bottom) 0!important;display:block!important;
        width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--r-void)!important;overflow:hidden!important}
      body.upi-reference-hud #mmo-hud-viewport .mmo-center-area,body.upi-reference-hud #mmo-hud-viewport .mmo-game-viewport-wrapper{position:absolute!important;inset:0!important;display:block!important;
        width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--r-void)!important;overflow:hidden!important}
      body.upi-reference-hud #mmo-hud-viewport #game-root,body.upi-reference-hud #mmo-hud-viewport #game-container{position:absolute!important;inset:0!important;display:block!important;width:100%!important;
        height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:var(--r-void)!important;overflow:hidden!important}
      body.upi-reference-hud #mmo-hud-viewport #game-container canvas{position:absolute!important;left:50%!important;top:50%!important;width:1152px!important;height:960px!important;
        max-width:none!important;max-height:none!important;transform-origin:center!important;image-rendering:auto!important;will-change:transform}
      body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-left,body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-right,body.upi-reference-hud #mmo-hud-viewport .mmo-frame-arrow,
      body.upi-reference-hud #mmo-hud-viewport .mmo-corner-bracket,body.upi-reference-hud .gh-col,body.upi-reference-hud .gh-top-tools,body.upi-reference-hud #upi-movable-player-hud,
      body.upi-reference-hud #idle-session-strip,body.upi-reference-hud #idle-hunt-analyzer,body.upi-reference-hud #idle-farm-indicator,
      body.upi-reference-hud #upi-game-shortcuts,body.upi-reference-hud #upi-mobile-hud,body.upi-reference-hud #upi-mobile-autohunt,body.upi-reference-hud #upi-mobile-analyzer,
      body.upi-reference-hud #btn-fullscreen,body.upi-reference-hud #player-farm-home-button,body.upi-reference-hud #upi-premium-hud,body.upi-reference-hud #upi-live-event,
      body.upi-reference-hud #mmo-hud-viewport .mmo-floating-status-controls,body.upi-reference-hud #pmk-btn{display:none!important}
      .rh-deck{position:absolute;z-index:1320;inset:auto 0 0;display:grid;grid-template-columns:minmax(180px,.9fr) minmax(250px,1.2fr) minmax(225px,1fr) minmax(132px,.62fr) minmax(145px,.7fr);
        gap:5px;width:100%;height:var(--r-bottom);padding:5px 7px;border-top:1px solid var(--r-line);background:var(--r-bg);box-shadow:0 -7px 18px rgb(0 0 0 / 44%);box-sizing:border-box}
      .rh-card{min-width:0;min-height:0;margin:0;border:1px solid var(--r-line);border-radius:7px;background:var(--r-panel);color:var(--r-text);box-shadow:inset 0 0 0 1px rgb(255 255 255 / 2%);box-sizing:border-box}
      button.rh-card{cursor:pointer}button.rh-card:hover,button.rh-card:focus-visible{border-color:var(--r-line2);background:var(--r-hover);outline:none}
      .rh-player{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:5px;padding:5px;text-align:left}.rh-player-art{display:grid;width:100%;aspect-ratio:1;place-items:center;border:1px solid #214759;border-radius:6px;background:#102635;overflow:hidden}
      .rh-player-art img{width:88%;height:88%;object-fit:contain;image-rendering:pixelated}.rh-player-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.rh-player-name{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:4px}
      .rh-player-name strong{overflow:hidden;color:#fff;font:400 clamp(7px,.72vw,10px)/1 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}.rh-player-name b{flex:none;color:var(--r-cyan);font:400 7px/1 'pgreen',monospace}
      .rh-meter{display:grid;grid-template-columns:22px minmax(24px,1fr) auto;align-items:center;gap:4px}.rh-meter small{color:var(--r-muted);font:400 5px/1 'pgreen',monospace}.rh-meter>i{display:block;height:4px;border-radius:2px;background:#173848;overflow:hidden}.rh-meter>i>em{display:block;height:100%;background:var(--r-green)}.rh-meter>i.xp>em{background:#39bde8}.rh-meter>b{min-width:29px;color:#d8e6ec;font:400 5px/1 'pgreen',monospace;text-align:right}
      .rh-team{display:grid;grid-template-rows:19px minmax(0,1fr);padding:4px}.rh-team>header{display:flex;align-items:center;justify-content:space-between;padding:0 3px}.rh-team>header strong{color:#fff;font:400 6px/1 'pgreen',monospace}.rh-team>header span{color:var(--r-gold);font:400 6px/1 'pgreen',monospace}.rh-team-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;min-height:0}
      .rh-slot{display:grid;min-width:0;min-height:0;grid-template-rows:minmax(23px,1fr) auto 3px;place-items:center;padding:2px;border:1px solid #173848;border-radius:5px;background:#0b1b26;color:#dce8ed;overflow:hidden}.rh-slot[type=button]{cursor:pointer}.rh-slot[type=button]:hover,.rh-slot[type=button]:focus-visible{border-color:var(--r-line2);background:#112a3a;outline:none}.rh-slot.is-active{border-color:#329c75;background:#102b27;box-shadow:inset 0 0 0 1px #20654f}.rh-slot>img{width:min(40px,100%);height:100%;max-height:47px;object-fit:contain;image-rendering:pixelated}.rh-slot>small{color:#b8c9d1;font:400 5px/1 'pgreen',monospace}.rh-slot>i{display:block;width:100%;height:3px;background:#173848;overflow:hidden}.rh-slot>i>em{display:block;height:100%;background:var(--r-green)}.rh-slot.is-empty{opacity:.45}.rh-slot.is-empty>img{width:15px;height:15px}
      .rh-shortcuts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:4px}.rh-shortcuts button{display:flex;min-width:0;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:3px 1px;border:1px solid #173848;border-radius:5px;background:#0b1b26;color:#c9d8df;cursor:pointer}.rh-shortcuts button:hover,.rh-shortcuts button:focus-visible{border-color:var(--r-line2);background:#112a3a;color:#fff;outline:none}.rh-shortcuts img{width:clamp(21px,2.35vw,32px);height:clamp(21px,2.35vw,32px);object-fit:contain;image-rendering:pixelated}.rh-shortcuts span{overflow:hidden;width:100%;font:400 5px/1 'pgreen',monospace;text-align:center;text-overflow:ellipsis;white-space:nowrap}
      .rh-info{display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:7px 9px;text-align:left;overflow:hidden}.rh-info>span{display:flex;width:100%;align-items:center;gap:5px;color:var(--r-muted);font:400 5px/1 'pgreen',monospace}.rh-info>span img{width:14px;height:14px;object-fit:contain;image-rendering:pixelated}.rh-info>span b{margin-left:auto;padding:3px 4px;border-radius:6px;background:#40202a;color:var(--r-red);font:400 5px/1 'pgreen',monospace}.rh-info>strong{overflow:hidden;max-width:100%;color:#fff;font:400 clamp(7px,.7vw,10px)/1 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}.rh-info>small{display:-webkit-box;overflow:hidden;color:var(--r-muted);font:400 5px/1.25 'pgreen',monospace;-webkit-box-orient:vertical;-webkit-line-clamp:2}.rh-info>em{color:var(--r-green);font:normal 400 5px/1 'pgreen',monospace}
      .rh-menu{position:fixed;z-index:99000;inset:0;display:grid;place-items:center;padding:20px;background:rgb(1 7 11 / 89%);backdrop-filter:blur(5px)}.rh-menu[hidden]{display:none!important}.rh-menu>section{display:grid;width:min(820px,calc(100vw - 32px));max-height:min(720px,calc(100dvh - 32px));grid-template-rows:auto auto minmax(0,1fr);border:1px solid var(--r-line2);border-radius:12px;background:#07141e;color:var(--r-text);box-shadow:0 24px 70px rgb(0 0 0 / 68%);overflow:hidden;font-family:'pgreen',monospace}.rh-menu header{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:11px 15px;border-bottom:1px solid var(--r-line);background:#091a26}.rh-menu header>span{display:flex;min-width:0;flex-direction:column;gap:7px}.rh-menu header small{color:var(--r-green);font:400 6px/1 'pgreen',monospace}.rh-menu header strong{color:#fff;font:400 clamp(12px,2vw,19px)/1 'pgreen',monospace}.rh-menu header>button{display:grid;width:40px;height:40px;place-items:center;padding:0;border:1px solid var(--r-line);border-radius:8px;background:#0d2331;cursor:pointer}.rh-menu header>button img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}.rh-menu-state{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border-bottom:1px solid var(--r-line);background:var(--r-line)}.rh-menu-state>span{display:flex;min-width:0;flex-direction:column;gap:6px;padding:9px 13px;background:#07141e}.rh-menu-state small{color:var(--r-muted);font:400 5px/1 'pgreen',monospace}.rh-menu-state strong{overflow:hidden;color:#fff;font:400 7px/1 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}.rh-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:0;padding:12px;overflow:auto}.rh-menu-grid>button{display:grid;min-height:100px;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;padding:11px;border:1px solid var(--r-line);border-radius:9px;background:#0a1b27;color:var(--r-text);text-align:left;cursor:pointer}.rh-menu-grid>button:hover,.rh-menu-grid>button:focus-visible{border-color:var(--r-line2);background:#102938;outline:none}.rh-menu-grid>button>img{width:43px;height:43px;object-fit:contain;image-rendering:pixelated}.rh-menu-grid>button>span{display:flex;min-width:0;flex-direction:column;gap:7px}.rh-menu-grid>button strong{color:#fff;font:400 8px/1 'pgreen',monospace}.rh-menu-grid>button small{color:var(--r-muted);font:400 5px/1.45 'pgreen',monospace}
      body.upi-reference-hud.dashboard-pokedex-open #dashboard-screen{position:fixed!important;z-index:98000!important;inset:0!important;display:block!important;width:100vw!important;height:100dvh!important;pointer-events:none!important;background:transparent!important;overflow:visible!important}
      body.upi-reference-hud.dashboard-pokedex-open #dashboard-pokedex-overlay{position:fixed!important;z-index:98001!important;inset:0!important;display:grid!important;width:100vw!important;height:100dvh!important;pointer-events:auto!important}
      @media(max-width:960px){body.upi-reference-hud{--r-top:50px;--r-bottom:102px}.rh-status{width:min(350px,35vw)}.rh-deck{grid-template-columns:minmax(150px,.8fr) minmax(220px,1.2fr) minmax(190px,1fr) 112px}.rh-chat{display:none}.rh-shortcuts span{display:none}}
      @media(max-width:720px){body.upi-reference-hud{--r-top:48px;--r-bottom:146px}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{padding:4px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:112px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:50px!important;padding:0 4px!important;font-size:6px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add,.rh-status{display:none!important}.rh-actions button{width:27px;height:27px}.rh-actions button:nth-child(2){display:none}.rh-deck{grid-template-columns:108px minmax(0,1fr);grid-template-rows:88px 44px;gap:4px;padding:5px}.rh-player{grid-column:1;grid-row:1;grid-template-columns:36px minmax(0,1fr);padding:4px}.rh-player-name b,.rh-meter>b{display:none}.rh-meter{grid-template-columns:18px minmax(16px,1fr);gap:2px}.rh-team{grid-column:2;grid-row:1}.rh-slot{grid-template-rows:minmax(22px,1fr) auto 3px}.rh-slot>small{font-size:4px}.rh-shortcuts{grid-column:1/3;grid-row:2;grid-template-columns:repeat(5,minmax(42px,1fr));gap:4px;padding:2px}.rh-shortcuts button{min-height:40px}.rh-shortcuts img{width:24px;height:24px}.rh-map,.rh-chat{display:none}.rh-menu{padding:8px}.rh-menu>section{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.rh-menu header{min-height:56px;padding:9px}.rh-menu-state{grid-template-columns:1fr 1fr}.rh-menu-state>span:nth-child(3){display:none}.rh-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}.rh-menu-grid>button{min-height:88px;grid-template-columns:36px minmax(0,1fr);gap:7px;padding:8px}.rh-menu-grid>button>img{width:32px;height:32px}.rh-menu-grid>button strong{font-size:7px}.rh-menu-grid>button small{font-size:5px}}
      @media(max-width:430px){body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:98px!important;padding:3px 4px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:28px!important;height:28px!important;flex-basis:28px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:45px!important}.rh-actions{gap:1px;padding:2px}.rh-actions button{width:25px}.rh-deck{grid-template-columns:94px minmax(0,1fr)}}
      @media(max-height:560px) and (orientation:landscape){body.upi-reference-hud{--r-top:46px;--r-bottom:84px}.rh-deck{grid-template-columns:154px minmax(210px,1.15fr) minmax(200px,1fr) 112px;padding:4px 6px}.rh-player{grid-template-columns:42px minmax(0,1fr)}.rh-chat{display:none}.rh-team{grid-template-rows:16px minmax(0,1fr)}.rh-shortcuts span{display:none}}

      .rh-support{position:absolute;z-index:1310;inset:var(--r-top) 0 var(--r-bottom);display:none;grid-template-columns:minmax(210px,1fr) minmax(480px,2fr) minmax(210px,1fr);gap:14px;padding:14px;pointer-events:none}
      body.upi-reference-hud.rh-auxiliary-screen .rh-support{display:grid}
      .rh-support-card{align-self:center;width:min(252px,100%);padding:16px;border:1px solid var(--r-line);border-radius:10px;background:linear-gradient(180deg,#0a1b27f2,#061019f2);color:var(--r-text);box-shadow:0 18px 45px rgb(0 0 0 / 38%),inset 0 0 0 1px rgb(255 255 255 / 2%);pointer-events:auto}
      .rh-support-profile{grid-column:1;justify-self:start}.rh-support-guide{grid-column:3;justify-self:end}
      .rh-support-kicker{display:block;margin-bottom:14px;color:var(--r-green);font:400 6px/1 'pgreen',monospace;letter-spacing:.08em}
      .rh-support-profile>img{display:block;width:56px;height:56px;margin-bottom:13px;object-fit:contain;image-rendering:pixelated}
      .rh-support-profile>small{display:block;margin:10px 0 5px;color:var(--r-muted);font:400 5px/1 'pgreen',monospace}
      .rh-support-profile>strong,.rh-support-profile>b{display:block;overflow:hidden;color:#fff;font:400 8px/1.25 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}
      .rh-support-card p{margin-top:15px;padding-top:13px;border-top:1px solid var(--r-line);color:var(--r-muted);font:400 5px/1.65 'pgreen',monospace}
      .rh-support-guide>div{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--r-line)}
      .rh-support-guide>div>img{width:25px;height:25px;object-fit:contain;image-rendering:pixelated}.rh-support-guide>div>span{display:flex;min-width:0;flex-direction:column;gap:5px}
      .rh-support-guide strong{color:#fff;font:400 7px/1 'pgreen',monospace}.rh-support-guide small{color:var(--r-muted);font:400 5px/1.3 'pgreen',monospace}
      @media(max-width:1040px){.rh-support{grid-template-columns:190px minmax(470px,1fr) 190px;padding:10px}.rh-support-card{padding:12px}.rh-support-profile>img{width:44px;height:44px}}
      @media(max-width:860px){.rh-support{display:none!important}}

      body.upi-reference-hud #mmo-hud-viewport #game-container canvas{transform:translate(-50%,-50%) scale(var(--rh-scale,1))!important;transform-origin:center!important}
      @media(max-width:720px){html body.upi-reference-hud #mmo-hud-viewport .mmo-main-body{position:absolute!important;inset:48px 0 146px!important;display:block!important;width:auto!important;height:auto!important;overflow:hidden!important}html body.upi-reference-hud #mmo-hud-viewport .mmo-center-area,html body.upi-reference-hud #mmo-hud-viewport .mmo-game-viewport-wrapper,html body.upi-reference-hud #mmo-hud-viewport #game-root,html body.upi-reference-hud #mmo-hud-viewport #game-container{position:absolute!important;inset:0 auto auto 0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;overflow:hidden!important}html body.upi-reference-hud .mmo-main-body>.mmo-card{display:none!important}}

/* Refinement pass: quieter topbar, live map card and canonical static party sprites. */
body.upi-reference-hud{--r-top:46px;--r-bottom:104px}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:46px!important;min-height:46px!important;padding:4px 8px!important;background:#050e15!important;box-shadow:0 4px 14px rgb(0 0 0 / 38%)!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left,
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{gap:4px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:150px!important;height:34px!important;padding:2px 4px!important;border-color:transparent!important;background:transparent!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:30px!important;height:30px!important;flex:0 0 30px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-info{gap:1px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-progress-bar{height:2px!important;margin-top:3px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:34px!important;padding:0!important;border-color:transparent!important;background:transparent!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:70px!important;height:28px!important;padding:0 6px!important;border-right-color:#17303e!important;background:transparent!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important}
.rh-status{top:6px;width:min(300px,30vw);height:34px;gap:2px}
.rh-status button{display:flex;height:34px;align-items:center;padding:3px 10px;border-color:transparent;border-radius:4px;background:transparent}
.rh-status button+button{border-left:1px solid var(--r-line)}
.rh-status button:hover,.rh-status button:focus-visible{border-color:transparent;background:#0a1923}
.rh-status span{gap:4px}.rh-status small{color:var(--r-muted)}.rh-status strong{font-size:6px}
.rh-actions{height:34px;padding:0;border-color:transparent;background:transparent}
.rh-actions button{width:28px;height:28px;border-radius:4px}.rh-actions img{width:17px;height:17px}
.rh-deck{height:104px;grid-template-columns:minmax(205px,.92fr) minmax(265px,1.12fr) minmax(245px,1.02fr) minmax(160px,.72fr) minmax(155px,.72fr);gap:5px;padding:5px 7px}
.rh-player{grid-template-columns:64px minmax(0,1fr)}
.rh-player-art img{width:96%;height:96%}
.rh-slot>img{width:min(46px,100%);max-height:54px}
.rh-slot.is-empty{opacity:.58}.rh-slot.is-empty>img{width:18px;height:18px}.rh-slot.is-empty>small{color:#728894}
.rh-map{position:relative!important;isolation:isolate;background-color:#07131c!important;background-image:var(--rh-map-image)!important;background-position:center 42%!important;background-size:cover!important}
.rh-map::before{position:absolute;z-index:-1;inset:0;border-radius:6px;background:linear-gradient(90deg,rgb(3 12 18 / 68%) 0%,rgb(3 12 18 / 32%) 58%,rgb(3 12 18 / 8%) 100%);content:""}
.rh-map>.rh-map-preview{position:absolute!important;z-index:-2!important;inset:0!important;display:block!important;width:auto!important;height:auto!important;overflow:hidden!important;border-radius:6px!important;pointer-events:none!important}
.rh-map>.rh-map-preview>img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 42%!important;image-rendering:auto!important;opacity:.88!important}
.rh-map>span,.rh-map>strong,.rh-map>small,.rh-map>em{position:relative;z-index:1;text-shadow:0 1px 2px #000}
.rh-map>span{color:#d4e2e8}.rh-map>strong{font-size:9px}.rh-map>small{color:#d7e4e9}.rh-map>em{color:#68e1a1}
.rh-shortcuts{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px;padding:4px}
.rh-shortcuts button{position:relative;gap:2px;padding:2px 1px}
.rh-shortcuts img{width:clamp(18px,1.65vw,23px);height:clamp(18px,1.65vw,23px)}
.rh-shortcuts span{font-size:4.5px}
.rh-shortcuts .rh-badge{position:absolute;z-index:2;top:2px;right:2px;display:grid;min-width:14px;height:14px;place-items:center;padding:0 3px;border:1px solid #ffad7a;border-radius:8px;background:#ef543f;color:#fff;box-shadow:0 2px 7px rgb(0 0 0 / 55%);font:400 5px/1 'pgreen',monospace}
.rh-shortcuts .rh-badge[hidden]{display:none!important}
.rh-shortcuts button.has-notice{border-color:transparent;box-shadow:none}

@media(max-width:960px){
  body.upi-reference-hud{--r-top:44px;--r-bottom:106px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:44px!important;min-height:44px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:132px!important;height:32px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:32px!important}
  .rh-status{top:5px;width:min(250px,28vw);height:32px}.rh-status button{height:32px;padding-inline:7px}
  .rh-deck{height:106px;grid-template-columns:minmax(165px,.82fr) minmax(230px,1.18fr) minmax(215px,1fr) minmax(165px,.75fr)}
  .rh-chat{display:none}
}

/* Minimal field HUD: readable UI type, borderless groups and contained content. */
body.upi-reference-hud #mmo-hud-viewport,
body.upi-reference-hud #mmo-hud-viewport *,
body.upi-reference-hud .rh-menu,
body.upi-reference-hud .rh-menu *,
body.upi-reference-hud #pmk-chat,
body.upi-reference-hud #pmk-chat *{
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,sans-serif!important;
  -webkit-font-smoothing:antialiased!important
}

body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill,
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group,
body.upi-reference-hud .rh-status .rh-hunt-status,
body.upi-reference-hud .rh-live-strip,
body.upi-reference-hud .rh-actions{
  border:0!important;background:transparent!important;box-shadow:none!important
}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{border:0!important}

/* O perfil e os recursos usam z-index 4. Em larguras intermediarias eles
   atravessavam a chave transparente do Auto Hunt e roubavam parte da hitbox. */
body.upi-reference-hud #mmo-hud-viewport .rh-status{
  z-index:6!important;
  pointer-events:auto!important;
}
body.upi-reference-hud #mmo-hud-viewport .rh-hunt-controls,
body.upi-reference-hud #mmo-hud-viewport .rh-hunt-status,
body.upi-reference-hud #mmo-hud-viewport .rh-hunt-settings{
  pointer-events:auto!important;
}
body.upi-reference-hud .rh-status .rh-hunt-status:hover,
body.upi-reference-hud .rh-status .rh-hunt-status:focus-visible,
body.upi-reference-hud .rh-actions button:hover,
body.upi-reference-hud .rh-actions button:focus-visible{border:0!important;background:rgb(255 255 255 / 6%)!important}

body.upi-reference-hud .rh-deck{
  gap:8px!important;padding:8px 10px!important;overflow:hidden!important
}
body.upi-reference-hud .rh-deck>.rh-card{
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important
}
body.upi-reference-hud button.rh-card:hover,
body.upi-reference-hud button.rh-card:focus-visible{border:0!important;background:rgb(255 255 255 / 5%)!important}

body.upi-reference-hud .rh-player-art{
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important
}
body.upi-reference-hud .rh-player-art img{width:100%!important;height:100%!important;filter:drop-shadow(0 5px 5px rgb(0 0 0 / 38%))}
body.upi-reference-hud .rh-slot,
body.upi-reference-hud .rh-shortcuts button{
  border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important
}
body.upi-reference-hud .rh-slot{position:relative!important}
body.upi-reference-hud .rh-slot-xp-gain{
  position:absolute;z-index:4;top:2px;left:50%;display:flex;min-width:max-content;flex-direction:column;align-items:center;gap:1px;
  padding:3px 5px;border-radius:5px;background:rgb(3 19 29 / 92%);box-shadow:0 3px 10px rgb(0 0 0 / 42%);color:#dfffee;
  pointer-events:none;transform:translateX(-50%);animation:rhTeamXpGain 4.15s ease-out both
}
body.upi-reference-hud .rh-slot-xp-gain b{color:#7cf5ac;font-size:11px;font-weight:850;line-height:1;white-space:nowrap}
body.upi-reference-hud .rh-slot-xp-gain small{color:#b9d7e2;font-size:8px;font-weight:750;line-height:1;white-space:nowrap}
body.upi-reference-hud .rh-slot-xp-gain.is-shared b{color:#79d8ff}
body.upi-reference-hud .rh-slot-xp-gain.is-catch-up b{color:#ffd86f}
@keyframes rhTeamXpGain{0%{opacity:0;transform:translate(-50%,7px) scale(.92)}10%,80%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-8px) scale(.96)}}
body.upi-reference-hud .rh-slot[type=button]:hover,
body.upi-reference-hud .rh-slot[type=button]:focus-visible,
body.upi-reference-hud .rh-shortcuts button:hover,
body.upi-reference-hud .rh-shortcuts button:focus-visible{border:0!important;background:rgb(255 255 255 / 6%)!important}
body.upi-reference-hud .rh-slot.is-active{border:0!important;background:rgb(51 211 153 / 10%)!important;box-shadow:none!important}
body.upi-reference-hud .rh-shortcuts button.has-notice{border:0!important;background:transparent!important;box-shadow:none!important}

body.upi-reference-hud .rh-shortcuts{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;overflow:hidden!important
}
body.upi-reference-hud .rh-shortcuts button{min-width:0!important;min-height:0!important;gap:3px!important;padding:2px 1px!important}
body.upi-reference-hud .rh-shortcuts img{width:clamp(23px,1.65vw,29px)!important;height:clamp(23px,1.65vw,29px)!important;flex:0 0 auto!important}
body.upi-reference-hud .rh-shortcuts span{
  display:block!important;overflow:hidden!important;width:100%!important;font-size:11px!important;font-weight:700!important;line-height:1.05!important;
  letter-spacing:-.01em!important;text-overflow:ellipsis!important;white-space:nowrap!important
}
body.upi-reference-hud .rh-player-name strong{font-size:14px!important;font-weight:750!important;line-height:1.1!important}
body.upi-reference-hud .rh-player-name{align-items:flex-start!important;flex-direction:column!important;justify-content:center!important;gap:3px!important}
body.upi-reference-hud .rh-player-name b,
body.upi-reference-hud .rh-meter small,
body.upi-reference-hud .rh-meter>b,
body.upi-reference-hud .rh-team>header strong,
body.upi-reference-hud .rh-team>header span,
body.upi-reference-hud .rh-slot>small{font-size:11px!important;font-weight:650!important;line-height:1.1!important}

body.upi-reference-hud .rh-map{position:relative!important;padding-right:70px!important;background-image:var(--rh-map-image)!important;background-position:center 42%!important;background-size:cover!important}
body.upi-reference-hud .rh-map>time{
  position:absolute!important;z-index:2!important;top:9px!important;right:11px!important;display:block!important;color:#dce9ee!important;
  font-size:11px!important;font-style:normal!important;font-weight:750!important;line-height:1!important;text-shadow:0 1px 2px #000!important
}
body.upi-reference-hud .rh-map>time::before{content:attr(data-time-label);color:var(--r-muted)}
body.upi-reference-hud .rh-info>span,
body.upi-reference-hud .rh-info>span b,
body.upi-reference-hud .rh-info>small,
body.upi-reference-hud .rh-info>em{font-size:11px!important;font-weight:650!important}
body.upi-reference-hud .rh-info>strong{font-size:14px!important;font-weight:750!important}
body.upi-reference-hud .rh-chat>small{display:block!important;overflow:hidden!important;width:100%!important;text-overflow:ellipsis!important;white-space:nowrap!important}

body.upi-reference-hud #pmk-chat,
body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{transform:none!important}
body.upi-reference-hud #pmk-log .ln{font-size:clamp(13px,var(--pmk-fs,14px),15px)!important;line-height:1.45!important}
body.upi-reference-hud #pmk-dock-title{font-size:13px!important;font-weight:750!important}
body.upi-reference-hud #pmk-tabs b{font-size:11px!important;font-weight:700!important}
body.upi-reference-hud #pmk-in input{font-size:14px!important}

@media(max-width:720px) and (min-height:561px){
  body.upi-reference-hud{--r-bottom:260px!important}
  body.upi-reference-hud .rh-deck{height:260px!important}
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  body.upi-reference-hud .rh-shortcuts span{font-size:10px!important}
  body.upi-reference-hud .rh-shortcuts img{width:25px!important;height:25px!important}
  body.upi-reference-hud .rh-map>time{top:6px!important;right:8px!important;font-size:10px!important}
}

@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
  body.upi-reference-hud .rh-shortcuts span{font-size:9px!important}
  body.upi-reference-hud .rh-shortcuts img{width:19px!important;height:19px!important}
  body.upi-reference-hud .rh-map>time{top:6px!important;right:6px!important;font-size:9px!important}
}

@media(min-width:1180px) and (min-height:650px){
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-deck>.rh-card{box-shadow:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts{
    height:70px!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:3px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts span{font-size:10px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts img{width:27px!important;height:27px!important}
}

/* Auto Hunt keeps the power action and its configuration side by side. */
body.upi-reference-hud .rh-status{grid-template-columns:188px minmax(0,1fr)}
body.upi-reference-hud .rh-status.is-events-empty{width:188px;grid-template-columns:188px}
body.upi-reference-hud .rh-hunt-controls{display:grid;min-width:0;height:46px;grid-template-columns:minmax(0,1fr) 42px;gap:4px}
body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status{width:100%;height:46px}
body.upi-reference-hud .rh-status .rh-hunt-settings{display:grid;width:42px;height:46px;place-items:center;padding:0;border:0;border-radius:7px;background:rgb(255 255 255 / 4%);color:#dbe8ec;cursor:pointer}
body.upi-reference-hud .rh-status .rh-hunt-settings img,
body.upi-reference-hud .rh-status .rh-hunt-settings svg{width:21px;height:21px;fill:currentColor;opacity:.88}
body.upi-reference-hud .rh-status .rh-hunt-settings:hover,
body.upi-reference-hud .rh-status .rh-hunt-settings:focus-visible{border:0;background:rgb(57 200 221 / 12%);outline:2px solid rgb(57 200 221 / 42%);outline-offset:-2px}

@media(max-width:960px) and (min-height:561px){
  body.upi-reference-hud .rh-status{grid-template-columns:164px minmax(0,1fr)}
  body.upi-reference-hud .rh-status.is-events-empty{width:164px;grid-template-columns:164px}
  body.upi-reference-hud .rh-hunt-controls{grid-template-columns:minmax(0,1fr) 36px}
  body.upi-reference-hud .rh-status .rh-hunt-settings{width:36px}
}
@media(max-width:720px) and (min-height:561px){
  body.upi-reference-hud .rh-status{grid-template-columns:146px minmax(0,1fr)}
  body.upi-reference-hud .rh-status.is-events-empty{width:146px;grid-template-columns:146px}
  body.upi-reference-hud .rh-hunt-controls{height:32px;grid-template-columns:minmax(0,1fr) 31px;gap:3px}
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status,
  body.upi-reference-hud .rh-status .rh-hunt-settings{height:32px}
  body.upi-reference-hud .rh-status .rh-hunt-settings{width:31px}
  body.upi-reference-hud .rh-status .rh-hunt-settings img,
  body.upi-reference-hud .rh-status .rh-hunt-settings svg{width:17px;height:17px}
}
@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-status{grid-template-columns:144px minmax(0,1fr)}
  body.upi-reference-hud .rh-status.is-events-empty{width:144px;grid-template-columns:144px}
  body.upi-reference-hud .rh-hunt-controls{height:42px;grid-template-columns:minmax(0,1fr) 36px;gap:3px}
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status,
  body.upi-reference-hud .rh-status .rh-hunt-settings{height:42px}
  body.upi-reference-hud .rh-status .rh-hunt-settings{width:36px}
}

@media(max-width:720px){
  body.upi-reference-hud{--r-top:42px;--r-bottom:226px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:42px!important;min-height:42px!important;padding:3px 5px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:36px!important;height:34px!important;padding:2px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-info{display:none!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:30px!important;height:30px!important;flex-basis:30px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:32px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:49px!important;height:28px!important;padding:0 3px!important}
  .rh-actions{height:32px}.rh-actions button{width:26px;height:26px}.rh-actions button:nth-child(2){display:none}
  .rh-deck{height:226px;grid-template-columns:112px minmax(0,1fr);grid-template-rows:78px 78px 52px;gap:4px;padding:5px}
  .rh-player{grid-column:1;grid-row:1;grid-template-columns:40px minmax(0,1fr)}
  .rh-team{grid-column:2;grid-row:1}
  .rh-shortcuts{grid-column:1/3;grid-row:2}
  .rh-shortcuts button{min-height:0}.rh-shortcuts img{width:18px;height:18px}.rh-shortcuts span{display:block;font-size:4px}.rh-shortcuts .rh-badge{top:1px;right:1px;min-width:12px;height:12px;padding:0 2px;font-size:4px}
  .rh-map{display:grid!important;grid-column:1/3;grid-row:3;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:1fr 1fr;align-content:center;gap:1px 8px;padding:6px 9px}
  .rh-map>span{grid-column:1;grid-row:1/3;align-self:center;width:auto;font-size:5px}.rh-map>span img{width:20px;height:20px}
  .rh-map>strong{grid-column:2;grid-row:1;align-self:end;font-size:8px}.rh-map>small{grid-column:2;grid-row:2;align-self:start}
  .rh-map>em{grid-column:3;grid-row:1/3;align-self:center;font-size:5px}
  .rh-chat{display:none!important}
  html body.upi-reference-hud #mmo-hud-viewport .mmo-main-body{inset:42px 0 226px!important}
}

@media(max-width:430px){
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:34px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:45px!important}
  .rh-deck{grid-template-columns:102px minmax(0,1fr)}
  .rh-map{grid-template-columns:auto minmax(0,1fr);gap:1px 7px}.rh-map>em{display:none}
}

@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud{--r-top:42px;--r-bottom:88px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:42px!important;min-height:42px!important}
  .rh-deck{height:88px;grid-template-columns:160px minmax(220px,1.15fr) minmax(220px,1fr) 150px;grid-template-rows:1fr;padding:4px 6px}
  .rh-player{grid-column:auto;grid-row:auto;grid-template-columns:46px minmax(0,1fr)}
  .rh-team{grid-column:auto;grid-row:auto}.rh-shortcuts{grid-column:auto;grid-row:auto}.rh-map{display:flex!important;grid-column:auto;grid-row:auto}.rh-chat{display:none!important}
  html body.upi-reference-hud #mmo-hud-viewport .mmo-main-body{inset:42px 0 88px!important}
}

/* OLED chat: compact DOM panel at the right edge, never a full-map overlay. */
body.upi-reference-hud #mmo-hud-viewport #mmo-floating-status-stack,
body.upi-reference-hud #mmo-hud-viewport .mmo-floating-status-stack,
body.upi-reference-hud #mmo-hud-viewport .mmo-floating-status-controls,
body.upi-reference-hud #pmk-mini,
body.upi-reference-hud #pmk-bg{display:none!important}

body.upi-reference-hud #mmo-chat-dock{position:fixed!important;z-index:12175!important;inset:0!important;display:block!important;width:auto!important;height:auto!important;pointer-events:none!important}
body.upi-reference-hud #pmk-chat,
body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{
  position:fixed!important;z-index:12180!important;top:auto!important;right:7px!important;bottom:calc(var(--r-bottom) + 7px)!important;left:auto!important;
  width:min(350px,calc(100vw - 14px))!important;height:min(360px,calc(100dvh - var(--r-top) - var(--r-bottom) - 14px))!important;max-height:none!important;
  grid-template-rows:50px minmax(0,1fr) auto 40px!important;padding:7px!important;border:1px solid var(--r-line2)!important;border-radius:9px!important;
  transform:none!important;background:linear-gradient(180deg,#091a26 0,#061019 58px,#040b11 100%)!important;color:var(--r-text)!important;
  box-shadow:0 16px 46px rgb(0 0 0 / 72%),inset 0 0 0 1px rgb(255 255 255 / 3%)!important;box-sizing:border-box!important;pointer-events:auto!important;
  font-family:'pgreen','Consolas',monospace!important;overflow:visible!important;user-select:none!important
}
body.upi-reference-hud.chat-open #pmk-chat,
body.upi-reference-hud.chat-open #mmo-chat-dock>#pmk-chat.pmk-docked{display:grid!important}

body.upi-reference-hud #pmk-head{display:grid!important;min-width:0!important;grid-template-columns:minmax(0,1fr) auto 28px!important;grid-template-rows:23px 24px!important;align-items:center!important;gap:3px 6px!important;border-bottom:1px solid var(--r-line)!important}
body.upi-reference-hud #pmk-dock-title{display:block!important;grid-column:1!important;grid-row:1!important;color:#fff!important;font:400 7px/1 'pgreen',monospace!important;letter-spacing:.04em!important}
body.upi-reference-hud #pmk-dock-title::after{margin-left:7px;color:var(--r-muted);content:attr(data-trainers-label);font-size:5px;letter-spacing:0}
body.upi-reference-hud #pmk-connection{display:flex!important;min-width:72px!important;height:20px!important;grid-column:2!important;grid-row:1!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:0 6px!important;border:1px solid #245542!important;border-radius:5px!important;background:#071712!important;color:#63dba1!important;font:400 5px/1 'pgreen',monospace!important;letter-spacing:0!important}
body.upi-reference-hud #pmk-connection img{width:10px!important;height:10px!important;object-fit:contain!important;image-rendering:pixelated!important}
body.upi-reference-hud #pmk-close{display:grid!important;width:26px!important;height:22px!important;grid-column:3!important;grid-row:1!important;place-items:center!important;padding:0!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1d29!important;cursor:pointer!important}
body.upi-reference-hud #pmk-close:hover,body.upi-reference-hud #pmk-close:focus-visible{border-color:var(--r-line2)!important;background:#102a39!important;outline:none!important}
body.upi-reference-hud #pmk-close img{width:11px!important;height:11px!important;object-fit:contain!important;image-rendering:pixelated!important}

body.upi-reference-hud #pmk-tabs{display:flex!important;min-width:0!important;grid-column:1/4!important;grid-row:2!important;align-items:end!important;gap:3px!important;padding:0!important;overflow-x:auto!important;scrollbar-width:none!important}
body.upi-reference-hud #pmk-tabs b{--rh-channel:var(--r-cyan);position:relative!important;flex:0 0 auto!important;padding:5px 7px 4px!important;border:1px solid #173848!important;border-radius:4px 4px 0 0!important;background:#081722!important;color:#8fa7b3!important;box-shadow:none!important;text-shadow:none!important;opacity:1!important;font:400 5px/1 'pgreen',monospace!important;letter-spacing:0!important;cursor:pointer!important}
body.upi-reference-hud #pmk-tabs b[data-ch="local"]{--rh-channel:#55d5a0}body.upi-reference-hud #pmk-tabs b[data-ch="trade"]{--rh-channel:#f5c64e}
body.upi-reference-hud #pmk-tabs b[data-ch="advertising"]{--rh-channel:#6ed9a4}body.upi-reference-hud #pmk-tabs b[data-ch="rmt"]{--rh-channel:#c96ff3}
body.upi-reference-hud #pmk-tabs b[data-ch="whisper"]{--rh-channel:#ec7bb1}body.upi-reference-hud #pmk-tabs b[data-ch="sys"]{--rh-channel:#a7bac4}
body.upi-reference-hud #pmk-tabs b.on{padding-top:5px!important;border-color:color-mix(in srgb,var(--rh-channel) 60%,#173848)!important;background:#0d2431!important;color:#fff!important;box-shadow:inset 0 2px 0 var(--rh-channel)!important;filter:none!important}
body.upi-reference-hud #pmk-tabs b .dot{top:2px!important;right:2px!important;width:5px!important;height:5px!important;background:var(--r-gold)!important;box-shadow:0 0 5px var(--r-gold)!important}

body.upi-reference-hud #pmk-box{min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:#040b11!important;box-shadow:none!important;overflow:hidden!important}
body.upi-reference-hud #pmk-log{height:100%!important;min-height:0!important;padding:8px 29px 8px 7px!important;overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#244b5c #07131c!important}
body.upi-reference-hud #pmk-log .ln{padding:3px 0!important;color:#9bdcea!important;font-size:clamp(8px,var(--pmk-fs,11px),12px)!important;line-height:1.45!important;text-shadow:0 1px 1px #000!important}
body.upi-reference-hud #pmk-log .ln b{color:#f2f7f8!important}body.upi-reference-hud #pmk-log .ln .tm{color:#637d89!important;font-size:.72em!important}
body.upi-reference-hud #pmk-scr{right:4px!important;top:6px!important;bottom:6px!important}
body.upi-reference-hud #pmk-scr button{display:grid!important;width:21px!important;height:21px!important;place-items:center!important;padding:0!important;border:1px solid #1b4052!important;border-radius:4px!important;background:#0b1d29!important;box-shadow:none!important;color:#b8cbd4!important;text-shadow:none!important}
body.upi-reference-hud #pmk-scr button:hover,body.upi-reference-hud #pmk-scr button:focus-visible{border-color:var(--r-cyan)!important;background:#102d3a!important;outline:none!important}
body.upi-reference-hud #pmk-scr img{width:9px!important;height:9px!important;object-fit:contain!important;filter:brightness(1.7)!important}

body.upi-reference-hud #pmk-attach{max-width:100%!important;margin:4px 0 0!important;padding:4px 6px!important;border:1px solid #245542!important;border-radius:5px!important;background:#071712!important;font-size:8px!important}
body.upi-reference-hud #pmk-in{display:flex!important;height:36px!important;align-items:stretch!important;gap:4px!important;margin-top:4px!important;padding-top:4px!important;border-top:1px solid var(--r-line)!important}
body.upi-reference-hud #pmk-in .gear,body.upi-reference-hud #pmk-in .pokemon{display:grid!important;flex:0 0 28px!important;width:28px!important;place-items:center!important;padding:0!important;border:1px solid #1b4052!important;border-radius:5px!important;background:#0b1d29!important;color:#b8cbd4!important;box-shadow:none!important;text-shadow:none!important;font:400 7px/1 'pgreen',monospace!important}
body.upi-reference-hud #pmk-in .pokemon .ball{width:17px!important;height:17px!important}
body.upi-reference-hud #pmk-in input{height:30px!important;min-width:0!important;padding:0 8px!important;border:1px solid #1b4052!important;border-radius:5px!important;background:#03090e!important;color:#eef7fa!important;box-shadow:none!important;font:400 8px/1.2 'pgreen',monospace!important}
body.upi-reference-hud #pmk-in input::placeholder{color:#708894!important}body.upi-reference-hud #pmk-in input:focus{border-color:var(--r-cyan)!important;box-shadow:0 0 0 2px rgb(57 200 221 / 12%)!important}
body.upi-reference-hud #pmk-in .send{min-width:58px!important;padding:0 8px!important;border:1px solid #2c966b!important;border-radius:5px!important;background:#0e704f!important;color:#f4fff9!important;box-shadow:none!important;text-shadow:none!important;font:400 6px/1 'pgreen',monospace!important;letter-spacing:0!important}
body.upi-reference-hud #pmk-in .send:hover,body.upi-reference-hud #pmk-in .send:focus-visible{border-color:#61d99d!important;background:#11835e!important;outline:none!important}
body.upi-reference-hud #pmk-set,body.upi-reference-hud #pmk-picker{border-color:var(--r-line2)!important;border-radius:7px!important;background:#061019!important;color:var(--r-text)!important;box-shadow:0 14px 42px rgb(0 0 0 / 75%)!important}

.rh-actions button{position:relative}.rh-actions .rh-action-badge{position:absolute;top:-2px;right:-2px;display:grid;min-width:12px;height:12px;place-items:center;padding:0 2px;border:1px solid #ffad7a;border-radius:7px;background:#ef543f;color:#fff;box-shadow:0 2px 6px rgb(0 0 0 / 58%);font:400 4px/1 'pgreen',monospace}.rh-actions .rh-action-badge[hidden]{display:none!important}
.rh-actions button.has-notice{background:transparent}.rh-actions button.is-open{border-color:#2c966b;background:#0d2b24}
.rh-actions [data-rh-action="pip"] svg{width:20px;height:20px;fill:none;stroke:#d6ecf8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rh-actions [data-rh-action="pip"].is-active{color:#8fd2ff!important;background:rgb(73 164 224 / 13%)!important}
.rh-actions [data-rh-action="pip"]:disabled{opacity:.38;cursor:not-allowed}

@media(max-width:720px){
  body.upi-reference-hud .rh-actions button:nth-child(2){display:grid!important}
  body.upi-reference-hud #pmk-chat,body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{right:6px!important;bottom:calc(var(--r-bottom) + 6px)!important;width:calc(100vw - 12px)!important;height:min(320px,calc(100dvh - var(--r-top) - var(--r-bottom) - 12px))!important;padding:6px!important;grid-template-rows:48px minmax(0,1fr) auto 38px!important}
  body.upi-reference-hud #pmk-in input{font-size:16px!important}
  body.upi-reference-hud #pmk-in .send{min-width:54px!important}
}

@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud #pmk-chat,body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{top:calc(var(--r-top) + 5px)!important;right:6px!important;bottom:auto!important;width:min(420px,66vw)!important;height:calc(100dvh - var(--r-top) - var(--r-bottom) - 10px)!important;min-height:210px!important;grid-template-rows:45px minmax(0,1fr) auto 36px!important}
  body.upi-reference-hud #pmk-tabs b{padding-inline:6px!important;font-size:4.5px!important}
}

/* Legibility + unified Phaser DOM shell. This block intentionally owns the
   final cascade so breakpoints reorganize content instead of shrinking it. */
body.upi-reference-hud{--r-top:58px;--r-bottom:132px}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:var(--r-top)!important;min-height:var(--r-top)!important;padding:6px 9px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:188px!important;height:46px!important;padding:4px 7px!important;border-color:var(--r-line)!important;background:#081620!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:38px!important;height:38px!important;flex:0 0 38px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name{font-size:11px!important;line-height:1.08!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag{font-size:9px!important;line-height:1.1!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-progress-bar{height:4px!important;margin-top:5px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:46px!important;padding:2px 3px!important;border-color:var(--r-line)!important;background:#081620!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:88px!important;height:38px!important;padding:0 8px!important;font-size:10px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:23px!important;height:23px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;font-size:15px!important}

.rh-status{top:6px;left:50%;display:grid!important;width:min(760px,48vw);height:46px;grid-template-columns:138px minmax(0,1fr);gap:6px;transform:translateX(-50%)}
.rh-status .rh-hunt-status{display:grid;height:46px;grid-template-columns:32px minmax(0,1fr);gap:8px;padding:5px 9px;border:1px solid var(--r-line);border-radius:7px;background:#081620}
.rh-status .rh-hunt-status img{width:30px;height:30px}.rh-status .rh-hunt-status span{gap:5px}
.rh-status .rh-hunt-status small{color:var(--r-muted);font-size:9px}.rh-status .rh-hunt-status strong{font-size:11px}
.rh-live-strip{display:flex;min-width:0;height:46px;align-items:center;border:1px solid var(--r-line);border-radius:7px;background:#081620;overflow:hidden}
.rh-live-strip[hidden]{display:none!important}
.rh-status.is-events-empty{width:138px;grid-template-columns:138px}
.rh-live-empty{display:flex;min-width:0;align-items:center;gap:8px;padding:0 11px;color:var(--r-muted)}
.rh-live-empty[hidden]{display:none!important}.rh-live-empty img{width:27px;height:27px;object-fit:contain;image-rendering:pixelated;opacity:.7}.rh-live-empty b{font:400 9px/1 'pgreen',monospace;white-space:nowrap}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-status-stack{position:static!important;display:flex!important;width:100%!important;max-width:none!important;height:44px!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;transform:none!important;pointer-events:auto!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-status-stack::-webkit-scrollbar{display:none!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-buff-bar:not(:empty),
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-game-top-buffs:not([hidden]):not(:empty){display:flex!important;min-width:max-content!important;max-width:none!important;height:42px!important;flex:none!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;padding:2px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;pointer-events:auto!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-buff-bar:empty,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-game-top-buffs[hidden],
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-game-top-buffs:empty{display:none!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill{display:grid!important;min-width:122px!important;max-width:190px!important;min-height:36px!important;height:36px!important;grid-template-columns:28px minmax(72px,1fr)!important;grid-template-rows:1fr!important;align-items:center!important;gap:7px!important;padding:3px 8px 3px 5px!important;border:1px solid var(--r-line2)!important;border-left-width:2px!important;border-radius:6px!important;background:#0b1d29!important;box-shadow:none!important;color:#fff!important;transform:none!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-icon,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-pill-sprite{width:27px!important;height:27px!important;grid-column:1!important;grid-row:1!important;object-fit:contain!important;image-rendering:pixelated!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-info,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy{display:flex!important;min-width:0!important;grid-column:2!important;grid-row:1!important;flex-direction:column!important;gap:4px!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-label,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy strong{overflow:hidden!important;max-width:100%!important;color:#fff!important;font:400 9px/1 'pgreen',monospace!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-timer,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy small{overflow:hidden!important;color:#a8bdc7!important;font:400 9px/1 'pgreen',monospace!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-live{display:none!important}

.rh-actions{height:46px;padding:3px;border-color:var(--r-line);background:#081620}.rh-actions button{width:38px;height:38px}.rh-actions img{width:22px;height:22px}
.rh-actions .rh-action-badge{min-width:17px;height:17px;padding:0 4px;border-radius:9px;font-size:9px}
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-edge-handle,
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-toggle-handle,
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-toggle-btn,
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-layout-button,
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-settings,
body.upi-reference-hud #mmo-hud-viewport .mmo-sidebar-resizer,
body.upi-reference-hud #mmo-hud-viewport .mmo-frame-arrow{display:none!important}

.rh-deck{height:var(--r-bottom);grid-template-columns:minmax(220px,.9fr) minmax(320px,1.2fr) minmax(360px,1.35fr) minmax(180px,.74fr) minmax(190px,.78fr);gap:6px;padding:7px 8px}
.rh-player{grid-template-columns:78px minmax(0,1fr);gap:8px;padding:7px}.rh-player-copy{gap:7px}.rh-player-name{gap:6px}
.rh-player-name strong{font-size:clamp(11px,.78vw,14px)}.rh-player-name b{font-size:10px}
.rh-meter{grid-template-columns:28px minmax(30px,1fr) auto;gap:5px}.rh-meter small,.rh-meter>b{font-size:9px}.rh-meter>b{min-width:42px}.rh-meter>i{height:6px}
.rh-team{grid-template-rows:26px minmax(0,1fr);padding:5px}.rh-team>header strong,.rh-team>header span{font-size:10px}
.rh-team-list{gap:4px}.rh-slot{grid-template-rows:minmax(28px,1fr) auto 4px;gap:2px;padding:3px}.rh-slot>img{width:min(54px,100%);max-height:66px}.rh-slot>small{font-size:9px}.rh-slot.is-empty>img{width:23px;height:23px}
.rh-shortcuts{gap:4px;padding:5px}.rh-shortcuts button{gap:4px;padding:3px 2px}.rh-shortcuts img{width:clamp(24px,1.9vw,31px);height:clamp(24px,1.9vw,31px)}.rh-shortcuts span{display:block!important;font-size:9px!important}.rh-shortcuts .rh-badge{min-width:17px;height:17px;padding:0 4px;border-radius:9px;font-size:9px}
.rh-info{gap:8px;padding:9px 11px}.rh-info>span{font-size:9px}.rh-info>span img{width:20px;height:20px}.rh-info>span b{font-size:9px}.rh-info>strong{font-size:clamp(11px,.82vw,14px)}.rh-info>small,.rh-info>em{font-size:9px;line-height:1.35}

.rh-menu header small{font-size:9px}.rh-menu header strong{font-size:clamp(16px,2vw,21px)}.rh-menu-state small{font-size:9px}.rh-menu-state strong{font-size:11px}.rh-menu-grid>button strong{font-size:12px}.rh-menu-grid>button small{font-size:10px;line-height:1.45}
body.upi-reference-hud #pmk-dock-title{font-size:11px!important}body.upi-reference-hud #pmk-dock-title::after{font-size:9px!important}
body.upi-reference-hud #pmk-connection{font-size:9px!important}body.upi-reference-hud #pmk-tabs b{font-size:9px!important}
body.upi-reference-hud #pmk-log .ln{font-size:clamp(12px,var(--pmk-fs,13px),14px)!important}
body.upi-reference-hud #pmk-attach{font-size:10px!important}body.upi-reference-hud #pmk-in .gear,body.upi-reference-hud #pmk-in .pokemon{font-size:10px!important}
body.upi-reference-hud #pmk-in input{font-size:12px!important}body.upi-reference-hud #pmk-in .send{font-size:10px!important}

.rh-support{display:none!important}

@media(max-width:1200px){
  .rh-status{left:178px;right:286px;width:auto;transform:none}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:168px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:68px!important;padding-inline:5px!important;font-size:9px!important}
  .rh-deck{grid-template-columns:minmax(190px,.85fr) minmax(270px,1.15fr) minmax(330px,1.3fr) minmax(170px,.7fr)}
  .rh-chat{display:none!important}
}

@media(max-width:960px) and (min-height:561px){
  body.upi-reference-hud{--r-top:58px;--r-bottom:172px}
  .rh-status{left:150px;right:274px;grid-template-columns:122px minmax(0,1fr)}
  .rh-status .rh-hunt-status{grid-template-columns:27px minmax(0,1fr);padding-inline:6px}.rh-status .rh-hunt-status img{width:26px;height:26px}
  .rh-deck{height:var(--r-bottom);grid-template-columns:190px minmax(0,1fr) 250px;grid-template-rows:78px 78px;gap:5px;padding:5px 7px}
  .rh-player{grid-column:1;grid-row:1;grid-template-columns:52px minmax(0,1fr);padding:5px}.rh-player-copy{gap:4px}.rh-meter{grid-template-columns:23px minmax(24px,1fr) auto}.rh-meter>b{min-width:34px}
  .rh-team{grid-column:2/4;grid-row:1}.rh-slot>img{max-height:43px}
  .rh-shortcuts{grid-column:1/3;grid-row:2}.rh-map{display:flex!important;grid-column:3;grid-row:2}.rh-chat{display:none!important}
}

@media(max-width:720px) and (min-height:561px){
  body.upi-reference-hud{--r-top:78px;--r-bottom:244px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:78px!important;min-height:78px!important;align-items:flex-start!important;padding:4px 5px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{height:38px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:98px!important;height:38px!important;padding:2px 3px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:32px!important;height:32px!important;flex:0 0 32px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-info{display:flex!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name{font-size:9px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag{font-size:9px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-progress-bar{display:none!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:38px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:45px!important;height:32px!important;padding:0 3px!important;font-size:9px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:19px!important;height:19px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add{display:none!important}
  .rh-actions{height:38px;padding:2px}.rh-actions button{width:32px;height:32px}.rh-actions img{width:20px;height:20px}
  .rh-status{top:42px;right:5px;left:5px;width:auto;height:32px;grid-template-columns:112px minmax(0,1fr);gap:4px;transform:none}
  .rh-status.is-events-empty{right:auto;left:50%;width:112px;grid-template-columns:112px;transform:translateX(-50%)}
  .rh-status .rh-hunt-status{height:32px;grid-template-columns:23px minmax(0,1fr);gap:5px;padding:2px 6px}.rh-status .rh-hunt-status img{width:22px;height:22px}.rh-status .rh-hunt-status span{gap:2px}.rh-status .rh-hunt-status small{font-size:9px}.rh-status .rh-hunt-status strong{font-size:10px}
  .rh-live-strip{height:32px}.rh-live-empty{padding-inline:7px}.rh-live-empty img{width:21px;height:21px}.rh-live-empty b{font-size:9px}
  body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-status-stack{height:30px!important}
  body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-floating-buff-bar:not(:empty),body.upi-reference-hud #mmo-hud-viewport .rh-live-strip #mmo-game-top-buffs:not([hidden]):not(:empty){height:30px!important}
  body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill{min-width:104px!important;max-width:150px!important;min-height:27px!important;height:27px!important;grid-template-columns:21px minmax(70px,1fr)!important;gap:5px!important;padding:2px 5px!important}
  body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-icon,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-pill-sprite{width:20px!important;height:20px!important}
  body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-label,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-timer,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy strong,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy small{font-size:9px!important}
  .rh-deck{height:var(--r-bottom);grid-template-columns:140px minmax(0,1fr);grid-template-rows:86px 100px 46px;gap:4px;padding:5px}
  .rh-player{grid-column:1;grid-row:1;grid-template-columns:40px minmax(0,1fr);gap:4px;padding:4px}.rh-player-name strong{font-size:10px}.rh-player-name b{display:block;font-size:9px}.rh-player-copy{gap:4px}.rh-meter{grid-template-columns:20px minmax(20px,1fr) 31px;gap:3px}.rh-meter small,.rh-meter>b{display:block;font-size:9px}.rh-meter>b{min-width:31px}
  .rh-team{grid-column:2;grid-row:1;grid-template-rows:20px minmax(0,1fr);padding:3px}.rh-team>header strong,.rh-team>header span{font-size:9px}.rh-team-list{gap:2px}.rh-slot{grid-template-rows:minmax(19px,1fr) auto 3px;padding:1px}.rh-slot>img{max-height:44px}.rh-slot>small{font-size:9px}
  .rh-shortcuts{grid-column:1/3;grid-row:2;gap:3px;padding:3px}.rh-shortcuts button{gap:2px;padding:2px 1px}.rh-shortcuts img{width:25px;height:25px}.rh-shortcuts span{display:block!important;font-size:9px!important}.rh-shortcuts .rh-badge{min-width:16px;height:16px;font-size:9px}
  .rh-map{display:grid!important;grid-column:1/3;grid-row:3;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:1fr 1fr;gap:1px 8px;padding:4px 8px}.rh-map>span{grid-column:1;grid-row:1/3;align-self:center;width:auto;font-size:9px}.rh-map>span img{width:23px;height:23px}.rh-map>strong{grid-column:2;grid-row:1;align-self:end;font-size:11px}.rh-map>small{grid-column:2;grid-row:2;align-self:start;font-size:9px}.rh-map>em{display:block;grid-column:3;grid-row:1/3;align-self:center;font-size:9px}
  .rh-chat{display:none!important}
  body.upi-reference-hud #pmk-in input{font-size:16px!important}
}

@media(max-width:430px) and (min-height:561px){
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:94px!important}
  .rh-map{grid-template-columns:auto minmax(0,1fr) auto}.rh-map>em{display:block}
}

@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud{--r-top:54px;--r-bottom:108px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:54px!important;min-height:54px!important;padding:4px 6px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:118px!important;height:42px!important;padding:3px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-avatar img{width:34px!important;height:34px!important;flex:0 0 34px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-info{display:flex!important}body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name{font-size:9px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag{font-size:9px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group{height:42px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:50px!important;height:34px!important;padding-inline:3px!important;font-size:9px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:19px!important;height:19px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-btn-add{display:none!important}
  .rh-actions{height:42px}.rh-actions button{width:34px;height:34px}
  .rh-status{top:6px;left:124px;right:236px;width:auto;height:42px;grid-template-columns:104px minmax(0,1fr);gap:3px;transform:none}.rh-status .rh-hunt-status{height:42px;grid-template-columns:24px minmax(0,1fr);gap:5px;padding:3px 5px}.rh-status .rh-hunt-status img{width:23px;height:23px}.rh-status .rh-hunt-status small,.rh-status .rh-hunt-status strong{font-size:9px}
  .rh-live-strip{height:42px}.rh-live-empty b{font-size:9px}
  .rh-deck{height:var(--r-bottom);grid-template-columns:minmax(125px,.75fr) minmax(170px,1.1fr) minmax(185px,1.18fr) minmax(120px,.72fr);grid-template-rows:1fr;gap:4px;padding:4px 5px}
  .rh-player{grid-column:auto;grid-row:auto;grid-template-columns:43px minmax(0,1fr);gap:4px;padding:4px}.rh-player-name strong{font-size:10px}.rh-player-name b{display:block;font-size:9px}.rh-player-copy{gap:4px}.rh-meter{grid-template-columns:20px minmax(18px,1fr) 31px;gap:2px}.rh-meter small,.rh-meter>b{display:block;font-size:9px}.rh-meter>b{min-width:31px}
  .rh-team{grid-column:auto;grid-row:auto;grid-template-rows:20px minmax(0,1fr);padding:3px}.rh-team>header strong,.rh-team>header span,.rh-slot>small{font-size:9px}.rh-team-list{gap:2px}.rh-slot{grid-template-rows:minmax(18px,1fr) auto 3px;padding:1px}.rh-slot>img{max-height:51px}
  .rh-shortcuts{grid-column:auto;grid-row:auto;gap:2px;padding:3px}.rh-shortcuts button{gap:1px;padding:1px}.rh-shortcuts img{width:20px;height:20px}.rh-shortcuts span{display:block!important;font-size:9px!important}
  .rh-map{display:flex!important;grid-column:auto;grid-row:auto;padding:6px}.rh-map>span,.rh-map>small,.rh-map>em{font-size:9px}.rh-map>strong{font-size:11px}.rh-chat{display:none!important}
  body.upi-reference-hud #pmk-tabs b{font-size:9px!important}
}

/* Optical floor for the pixel font: 10px is the minimum readable HUD label. */
body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name{font-size:12px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag{font-size:10px!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{font-size:11px!important}
.rh-status .rh-hunt-status small{font-size:10px}.rh-status .rh-hunt-status strong{font-size:12px}.rh-live-empty b{font-size:10px}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-label,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-timer,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy strong,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy small{font-size:10px!important}
.rh-player-name strong{font-size:clamp(12px,.82vw,15px)}.rh-player-name b{font-size:11px}
.rh-meter small,.rh-meter>b{font-size:10px}.rh-team>header strong,.rh-team>header span{font-size:11px}.rh-slot>small{font-size:10px}
.rh-shortcuts span{font-size:10px!important}.rh-shortcuts .rh-badge,.rh-actions .rh-action-badge{font-size:9px}
.rh-info>span,.rh-info>span b,.rh-info>small,.rh-info>em{font-size:10px}.rh-info>strong{font-size:clamp(13px,.86vw,15px)}
.rh-menu header small,.rh-menu-state small{font-size:10px}.rh-menu-state strong{font-size:12px}.rh-menu-grid>button strong{font-size:13px}.rh-menu-grid>button small{font-size:11px}
.rh-menu-grid>button.rh-menu-danger{border-color:rgb(248 113 113 / 36%);background:#21131a}.rh-menu-grid>button.rh-menu-danger:hover,.rh-menu-grid>button.rh-menu-danger:focus-visible{border-color:#f87171;background:#301820}.rh-menu-grid>button.rh-menu-danger strong{color:#fecaca}
body.upi-reference-hud #pmk-dock-title{font-size:12px!important}body.upi-reference-hud #pmk-dock-title::after,body.upi-reference-hud #pmk-connection,body.upi-reference-hud #pmk-tabs b{font-size:10px!important}
body.upi-reference-hud #pmk-in input{font-size:13px!important}body.upi-reference-hud #pmk-in .send{font-size:11px!important}

@media(max-width:720px), (max-height:560px) and (orientation:landscape){
  body.upi-reference-hud #mmo-hud-viewport .mmo-trainer-name,body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-level-tag,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{font-size:10px!important}
  .rh-status .rh-hunt-status small,.rh-live-empty b{font-size:9px}.rh-status .rh-hunt-status strong{font-size:10px}
  .rh-player-name strong{font-size:11px}.rh-player-name b,.rh-meter small,.rh-meter>b,.rh-team>header strong,.rh-team>header span,.rh-slot>small,.rh-shortcuts span,.rh-info>span,.rh-info>span b,.rh-info>small,.rh-info>em{font-size:9px!important}
}

@media(min-width:1080px) and (max-width:1200px) and (min-height:561px){
  .rh-deck{grid-template-columns:minmax(170px,.78fr) minmax(240px,1.08fr) minmax(280px,1.2fr) minmax(150px,.68fr) minmax(150px,.68fr)}
  .rh-player{grid-template-columns:62px minmax(0,1fr)}
  .rh-chat{display:flex!important}
}

/* Battle focus: Phaser owns the whole viewport until the battle state is torn down. */
body.upi-reference-hud.upi-battle-active{--r-top:0px!important;--r-bottom:0px!important}
body.upi-reference-hud.upi-battle-active #mmo-hud-viewport .mmo-topbar{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
body.upi-reference-hud.upi-battle-active #mmo-hud-viewport .mmo-main-body{
  inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important
}
body.upi-reference-hud.upi-battle-active .rh-deck,
body.upi-reference-hud.upi-battle-active .rh-menu,
body.upi-reference-hud.upi-battle-active #mmo-chat-dock,
body.upi-reference-hud.upi-battle-active #pmk-chat,
body.upi-reference-hud.upi-battle-active #pmk-mini,
body.upi-reference-hud.upi-battle-active #idle-farm-indicator,
body.upi-reference-hud.upi-battle-active #idle-session-strip,
body.upi-reference-hud.upi-battle-active #idle-hunt-analyzer,
body.upi-reference-hud.upi-battle-active .idle-farm-shell{
  display:none!important;visibility:hidden!important;pointer-events:none!important
}

/* Field-message focus: the authored Phaser textbox gets the whole viewport and
   the DOM HUD comes back only after the final page is dismissed. */
body.upi-reference-hud.upi-world-message-focus{--r-top:0px!important;--r-bottom:0px!important}
body.upi-reference-hud.upi-world-message-focus #mmo-hud-viewport .mmo-topbar{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
body.upi-reference-hud.upi-world-message-focus #mmo-hud-viewport .mmo-main-body{
  inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important
}
body.upi-reference-hud.upi-world-message-focus .rh-deck,
body.upi-reference-hud.upi-world-message-focus .rh-menu,
body.upi-reference-hud.upi-world-message-focus #mmo-chat-dock,
body.upi-reference-hud.upi-world-message-focus #pmk-chat,
body.upi-reference-hud.upi-world-message-focus #pmk-mini,
body.upi-reference-hud.upi-world-message-focus #idle-farm-indicator,
body.upi-reference-hud.upi-world-message-focus #idle-session-strip,
body.upi-reference-hud.upi-world-message-focus #idle-hunt-analyzer,
body.upi-reference-hud.upi-world-message-focus .idle-farm-shell{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important
}

/* Optional widescreen composition: preserve the native game aspect ratio
   between two HUD rails. Profile, party and map remain on the left; chat and
   Hunt Analyzer alternate ownership of the right rail. */
@media(min-width:1180px) and (min-height:650px){
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus){--r-bottom:0px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) #mmo-hud-viewport .mmo-main-body{
    inset:var(--rh-side-game-top,var(--r-top)) var(--rh-side-width) 0!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-deck{
    inset:var(--r-top) 0 0!important;display:block!important;width:100%!important;height:auto!important;padding:0!important;border:0!important;
    background:transparent!important;box-shadow:none!important;pointer-events:none!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-deck>.rh-card{
    position:absolute!important;pointer-events:auto!important;box-shadow:0 12px 34px rgb(0 0 0 / 48%),inset 0 0 0 1px rgb(255 255 255 / 3%)!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-player{
    top:8px!important;right:auto!important;bottom:auto!important;left:8px!important;width:calc(var(--rh-side-width) - 16px)!important;height:128px!important;
    grid-template-columns:72px minmax(0,1fr)!important;gap:8px!important;padding:8px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-player-art{max-height:104px}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-player-name{align-items:flex-start;flex-direction:column}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-player-name strong{font-size:13px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-player-name b{font-size:11px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-team{
    top:144px!important;right:auto!important;bottom:auto!important;left:8px!important;width:calc(var(--rh-side-width) - 16px)!important;height:min(520px,calc(100% - 356px))!important;
    grid-template-rows:31px minmax(0,1fr)!important;padding:7px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-team-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:6px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-slot{
    grid-template-rows:minmax(36px,1fr) auto 5px!important;gap:4px!important;padding:5px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-slot>img{width:min(76px,100%)!important;max-height:104px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-slot>small{font-size:10px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts{
    top:8px!important;right:calc(var(--rh-side-width) + 8px)!important;bottom:auto!important;left:calc(var(--rh-side-width) + 8px)!important;width:auto!important;height:62px!important;
    grid-template-columns:repeat(10,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:4px!important;padding:4px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts button{gap:3px!important;padding:3px 2px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts img{width:28px!important;height:28px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts span{font-size:10px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-map{
    top:auto!important;right:auto!important;bottom:112px!important;left:8px!important;display:flex!important;width:calc(var(--rh-side-width) - 16px)!important;height:96px!important;padding:9px 11px!important
  }
  /* R24 HUD lateral: reserva o relógio sem cortar o nome completo do mapa. */
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-map>span:not(.rh-map-preview){padding-right:64px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-map>strong{
    overflow:visible!important;max-width:100%!important;font-size:13px!important;line-height:1.15!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-map>small,
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-map>em{max-width:100%!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-chat{
    top:auto!important;right:auto!important;bottom:8px!important;left:8px!important;display:flex!important;width:calc(var(--rh-side-width) - 16px)!important;height:96px!important;padding:9px 11px!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) #pmk-chat,
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) #mmo-chat-dock>#pmk-chat.pmk-docked{
    top:calc(var(--r-top) + 8px)!important;right:8px!important;bottom:8px!important;left:auto!important;
    width:calc(var(--rh-side-width) - 16px)!important;height:auto!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active.chat-open:not(.upi-battle-active):not(.upi-world-message-focus) #idle-hunt-analyzer.rh-side-analyzer{
    display:none!important;visibility:hidden!important;pointer-events:none!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) #idle-hunt-analyzer.rh-side-analyzer{
    position:fixed!important;z-index:1380!important;top:calc(var(--r-top) + 8px)!important;right:8px!important;bottom:8px!important;left:auto!important;
    display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:calc(var(--rh-side-width) - 16px)!important;height:auto!important;max-height:none!important;flex-direction:column!important;
    border:1px solid var(--r-line2)!important;border-radius:7px!important;background:var(--r-panel)!important;color:var(--r-text)!important;
    box-shadow:0 12px 34px rgb(0 0 0 / 48%),inset 0 0 0 1px rgb(255 255 255 / 3%)!important;overflow:hidden!important;
    font-family:'pgreen','Consolas',monospace!important;transform:none!important;backdrop-filter:none!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head{
    position:relative!important;flex:none!important;min-height:64px!important;gap:8px!important;padding:8px!important;border-bottom:1px solid var(--r-line)!important;
    background:#0b1b26!important;cursor:default!important;backdrop-filter:none!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-icon{width:40px!important;height:40px!important;flex:0 0 40px!important;border:1px solid #28556a!important;border-radius:6px!important;background:#102635!important;box-shadow:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-icon img{width:31px!important;height:31px!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head strong{font:400 12px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head small{margin-top:6px;color:var(--r-green)!important;font:400 9px/1.25 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head-actions [data-hunt-reset-layout],
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head-actions [data-hunt-save],
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head-actions [data-hunt-close]{display:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-head button{width:30px!important;height:30px!important;border:1px solid var(--r-line2)!important;border-radius:5px!important;background:#102635!important;color:#fff!important;font:700 15px/1 system-ui,sans-serif!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-content{display:block!important;min-height:0!important;flex:1 1 auto!important;overflow:auto!important;scrollbar-color:var(--r-line2) transparent!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-session{grid-template-columns:1fr 1fr!important;gap:5px!important;padding:7px 7px 0!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-session span{padding:7px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1b26!important;color:var(--r-muted)!important;font:400 9px/1.25 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-session span:nth-child(3){grid-column:1/-1!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-session b{margin-top:5px!important;color:#fff!important;font:400 10px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding:7px 7px 0!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-stat{padding:8px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1b26!important;transform:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-stat b{font:400 13px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-stat span{margin-top:5px!important;color:var(--r-muted)!important;font:400 9px/1.2 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-finance{grid-template-columns:1fr 1fr!important;gap:5px!important;margin:7px 7px 0!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-finance-card{padding:8px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1b26!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-finance-card b{font:400 12px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-finance-card span{font:400 9px/1.3 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-rates{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1px!important;margin:7px 7px 0!important;padding:1px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:var(--r-line)!important;font:400 9px/1.45 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-rates span{padding:7px 4px!important;background:#0b1b26!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-supplies{grid-template-columns:1fr!important;gap:5px!important;margin:7px 7px 0!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-supplies span{padding:7px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1b26!important;color:var(--r-muted)!important;font:400 9px/1.3 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-section{padding:10px 7px!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-section h3{color:var(--r-green)!important;font:400 9px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-entry{grid-template-columns:44px minmax(0,1fr) auto!important;gap:7px!important;min-height:56px!important;padding:6px!important;border:1px solid var(--r-line)!important;border-radius:5px!important;background:#0b1b26!important;transform:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-mon-art,body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-mon-art img{width:44px!important;height:44px!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-entry-copy strong{font:400 10px/1 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-entry-copy small,body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-entry-copy em{font:400 9px/1.3 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-foot{position:relative!important;padding:9px 7px!important;border-top:1px solid var(--r-line)!important;background:#0b1b26!important;color:var(--r-muted)!important;font:400 9px/1.35 'pgreen',monospace!important}
  body.upi-reference-hud.upi-hud-layout-side-active #idle-hunt-analyzer.rh-side-analyzer .hunt-foot button{border-color:var(--r-line2)!important;border-radius:5px!important;background:#102635!important;color:#fff!important;font:400 9px/1 'pgreen',monospace!important}
}

/* Final minimal ownership: this block intentionally wins every legacy breakpoint. */
body.upi-reference-hud #mmo-hud-viewport,
body.upi-reference-hud #mmo-hud-viewport *,
body.upi-reference-hud .rh-menu,
body.upi-reference-hud .rh-menu *,
body.upi-reference-hud #pmk-chat,
body.upi-reference-hud #pmk-chat *{font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,sans-serif!important;-webkit-font-smoothing:antialiased!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill,
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-group,
body.upi-reference-hud .rh-status .rh-hunt-status,
body.upi-reference-hud .rh-live-strip,
body.upi-reference-hud .rh-actions{border:0!important;background:transparent!important;box-shadow:none!important}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{border:0!important}
body.upi-reference-hud .rh-deck{gap:8px!important;padding:8px 10px!important;overflow:hidden!important}
body.upi-reference-hud .rh-deck>.rh-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
body.upi-reference-hud button.rh-card:hover,
body.upi-reference-hud button.rh-card:focus-visible,
body.upi-reference-hud .rh-status .rh-hunt-status:hover,
body.upi-reference-hud .rh-status .rh-hunt-status:focus-visible,
body.upi-reference-hud .rh-actions button:hover,
body.upi-reference-hud .rh-actions button:focus-visible{border:0!important;background:rgb(255 255 255 / 5%)!important;outline:none!important}
body.upi-reference-hud .rh-player-art{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.upi-reference-hud .rh-player-art img{width:100%!important;height:100%!important;filter:drop-shadow(0 5px 5px rgb(0 0 0 / 38%))}
body.upi-reference-hud .rh-slot,
body.upi-reference-hud .rh-shortcuts button{border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
body.upi-reference-hud .rh-slot[type=button]:hover,
body.upi-reference-hud .rh-slot[type=button]:focus-visible,
body.upi-reference-hud .rh-shortcuts button:hover,
body.upi-reference-hud .rh-shortcuts button:focus-visible{border:0!important;background:rgb(255 255 255 / 6%)!important}
body.upi-reference-hud .rh-slot.is-active{border:0!important;background:rgb(51 211 153 / 10%)!important;box-shadow:none!important}
body.upi-reference-hud .rh-shortcuts button.has-notice{border:0!important;background:transparent!important;box-shadow:none!important}
body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;overflow:hidden!important}
body.upi-reference-hud .rh-shortcuts button{min-width:0!important;min-height:0!important;gap:3px!important;padding:2px 1px!important}
body.upi-reference-hud .rh-shortcuts img{width:clamp(23px,1.65vw,29px)!important;height:clamp(23px,1.65vw,29px)!important;flex:0 0 auto!important}
body.upi-reference-hud .rh-shortcuts span{display:block!important;overflow:hidden!important;width:100%!important;font-size:11px!important;font-weight:700!important;line-height:1.05!important;letter-spacing:-.01em!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.upi-reference-hud .rh-shortcuts button[data-rh-action="passe"] span{font-size:9px!important;line-height:.94!important;letter-spacing:-.04em!important;text-overflow:clip!important;white-space:normal!important}
body.upi-reference-hud .rh-player-name strong{font-size:14px!important;font-weight:750!important;line-height:1.1!important}
body.upi-reference-hud .rh-player-name b,
body.upi-reference-hud .rh-meter small,
body.upi-reference-hud .rh-meter>b,
body.upi-reference-hud .rh-team>header strong,
body.upi-reference-hud .rh-team>header span,
body.upi-reference-hud .rh-slot>small{font-size:11px!important;font-weight:650!important;line-height:1.1!important}
body.upi-reference-hud .rh-map{position:relative!important;padding-right:70px!important}
body.upi-reference-hud .rh-map>time{position:absolute!important;z-index:2!important;top:9px!important;right:11px!important;display:block!important;color:#dce9ee!important;font-size:11px!important;font-style:normal!important;font-weight:750!important;line-height:1!important;text-shadow:0 1px 2px #000!important}
body.upi-reference-hud .rh-map>time::before{content:attr(data-time-label);color:var(--r-muted)}
body.upi-reference-hud .rh-info>span,
body.upi-reference-hud .rh-info>span b,
body.upi-reference-hud .rh-info>small,
body.upi-reference-hud .rh-info>em{font-size:11px!important;font-weight:650!important}
body.upi-reference-hud .rh-info>strong{font-size:14px!important;font-weight:750!important}
body.upi-reference-hud #pmk-chat,
body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{transform:none!important}
body.upi-reference-hud #pmk-log .ln{font-size:clamp(13px,var(--pmk-fs,14px),15px)!important;line-height:1.45!important}
body.upi-reference-hud #pmk-dock-title{font-size:13px!important;font-weight:750!important}
body.upi-reference-hud #pmk-tabs b{font-size:11px!important;font-weight:700!important}
body.upi-reference-hud #pmk-in input{font-size:14px!important}

@media(max-width:720px) and (min-height:561px){
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(7,minmax(0,1fr))!important}
  body.upi-reference-hud .rh-shortcuts span{font-size:10px!important}
  body.upi-reference-hud .rh-shortcuts img{width:25px!important;height:25px!important}
  body.upi-reference-hud .rh-map>time{top:6px!important;right:8px!important;font-size:10px!important}
}
@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
  body.upi-reference-hud .rh-shortcuts span{font-size:9px!important}
  body.upi-reference-hud .rh-shortcuts img{width:19px!important;height:19px!important}
  body.upi-reference-hud .rh-map>time{top:6px!important;right:6px!important;font-size:9px!important}
}
@media(min-width:1180px) and (min-height:650px){
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-deck>.rh-card{box-shadow:none!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts{height:70px!important;grid-template-columns:repeat(16,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:3px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts span{font-size:10px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts img{width:27px!important;height:27px!important}
}

@media(min-width:1201px){
  body.upi-reference-hud .rh-deck{grid-template-columns:minmax(180px,.8fr) minmax(260px,1.08fr) minmax(430px,1.82fr) minmax(160px,.64fr) minmax(104px,.36fr)!important}
  body.upi-reference-hud .rh-chat{min-width:0!important;padding-inline:8px!important}
  body.upi-reference-hud .rh-chat>small{font-size:10px!important}
}

/* R166: no celular a faixa inferior nasce compacta. O treinador conserva a
   equipe visível e abre os atalhos somente quando toca em MENU. */
.rh-mobile-deck-toggle{display:none}
@media(max-width:720px) and (min-height:561px) and (orientation:portrait){
  body.upi-reference-hud:not(.rh-mobile-deck-open){--r-bottom:132px!important}
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-deck{
    height:132px!important;grid-template-columns:140px minmax(0,1fr)!important;
    grid-template-rows:86px 36px!important;gap:4px!important;padding:4px 5px!important
  }
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-player{grid-column:1!important;grid-row:1!important}
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-team{grid-column:2!important;grid-row:1!important}
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-shortcuts,
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-map,
  body.upi-reference-hud:not(.rh-mobile-deck-open) .rh-chat{display:none!important}
  body.upi-reference-hud .rh-mobile-deck-toggle{
    display:flex!important;grid-column:1/3!important;grid-row:2!important;align-items:center!important;
    justify-content:center!important;gap:7px!important;min-height:34px!important;border:1px solid #27526a!important;
    border-radius:8px!important;background:linear-gradient(180deg,#12384b,#092432)!important;color:#e8fbff!important;
    font:800 11px/1 Nunito,Segoe UI,sans-serif!important;letter-spacing:.08em!important;touch-action:manipulation!important
  }
  body.upi-reference-hud .rh-mobile-deck-toggle img{width:20px!important;height:20px!important;object-fit:contain!important}
  body.upi-reference-hud .rh-mobile-deck-toggle small{color:#9cc3d2!important;font-size:9px!important;font-weight:700!important;letter-spacing:0!important}
  body.upi-reference-hud:not(.rh-mobile-deck-open) #mmo-hud-viewport .mmo-main-body{inset:var(--r-top) 0 132px!important}

  body.upi-reference-hud.rh-mobile-deck-open{--r-bottom:345px!important}
  body.upi-reference-hud.rh-mobile-deck-open .rh-deck{
    height:345px!important;grid-template-columns:140px minmax(0,1fr)!important;
    grid-template-rows:86px 211px 36px!important;gap:4px!important;padding:4px 5px!important
  }
  body.upi-reference-hud.rh-mobile-deck-open .rh-player{grid-column:1!important;grid-row:1!important}
  body.upi-reference-hud.rh-mobile-deck-open .rh-team{grid-column:2!important;grid-row:1!important}
  body.upi-reference-hud.rh-mobile-deck-open .rh-shortcuts{
    display:grid!important;grid-column:1/3!important;grid-row:2!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(48px,1fr))!important
  }
  body.upi-reference-hud.rh-mobile-deck-open .rh-mobile-deck-toggle{grid-column:1/3!important;grid-row:3!important}
  body.upi-reference-hud.rh-mobile-deck-open .rh-map,
  body.upi-reference-hud.rh-mobile-deck-open .rh-chat{display:none!important}
  body.upi-reference-hud.rh-mobile-deck-open #mmo-hud-viewport .mmo-main-body{inset:var(--r-top) 0 345px!important}
}

/* HUD actions R94: sixteen shortcuts, compact chat alert and a stateful Auto Hunt switch. */
body.upi-reference-hud .rh-shortcuts{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important
}
body.upi-reference-hud .rh-shortcuts [data-rh-action="auction"] img,
body.upi-reference-hud .rh-shortcuts [data-rh-action="pvp"] img{
  filter:drop-shadow(0 4px 4px rgb(0 0 0 / 48%))
}
body.upi-reference-hud .rh-chat{position:relative!important;gap:4px!important;justify-content:center!important}
body.upi-reference-hud .rh-chat>span{position:relative!important;overflow:visible!important}
body.upi-reference-hud .rh-chat .rh-chat-online{margin-left:auto!important}
body.upi-reference-hud .rh-chat .rh-chat-badge{
  position:absolute!important;z-index:3!important;top:-10px!important;right:-5px!important;display:grid!important;min-width:20px!important;height:20px!important;
  place-items:center!important;margin:0!important;padding:0 5px!important;border:2px solid #07131c!important;border-radius:11px!important;background:#ef4444!important;
  color:#fff!important;box-shadow:0 0 0 2px rgb(239 68 68 / 18%),0 4px 10px rgb(0 0 0 / 48%)!important;font-size:10px!important;font-weight:900!important;line-height:1!important
}
body.upi-reference-hud .rh-chat .rh-chat-badge[hidden]{display:none!important}
body.upi-reference-hud .rh-chat.has-notice{overflow:visible!important;background:rgb(239 68 68 / 7%)!important;box-shadow:inset 3px 0 #ef5555!important}
body.upi-reference-hud .rh-chat.has-notice::after{position:absolute;right:8px;bottom:8px;width:6px;height:6px;border-radius:50%;background:#ff5c66;box-shadow:0 0 9px #ff5c66;content:""}

body.upi-reference-hud .rh-hunt-controls{
  padding:2px!important;border:1px solid #843943!important;border-radius:9px!important;background:linear-gradient(135deg,#3a151b,#1d1116)!important;
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / 3%),0 4px 14px rgb(0 0 0 / 24%)!important;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important
}
body.upi-reference-hud .rh-hunt-controls.is-active{
  border-color:#31956e!important;background:linear-gradient(135deg,#103d2d,#0a231d)!important;box-shadow:inset 0 0 0 1px rgb(102 238 178 / 9%),0 0 16px rgb(38 182 121 / 12%)!important
}
body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status{
  display:grid!important;width:100%!important;height:42px!important;grid-template-columns:24px minmax(0,1fr) 28px!important;gap:4px!important;padding:3px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important
}
body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status:hover,
body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status:focus-visible{
  background:rgb(255 255 255 / 7%)!important;outline:2px solid rgb(255 255 255 / 18%)!important;outline-offset:-2px!important
}
body.upi-reference-hud .rh-hunt-art{display:grid!important;width:24px!important;height:28px!important;place-items:center!important;gap:0!important;border-radius:6px!important;background:rgb(0 0 0 / 18%)!important}
body.upi-reference-hud .rh-hunt-art img{width:22px!important;height:22px!important}
body.upi-reference-hud .rh-hunt-copy{gap:3px!important}
body.upi-reference-hud .rh-hunt-copy small{color:#ff9aa1!important}
body.upi-reference-hud .rh-hunt-status.is-active .rh-hunt-copy small{color:#7ce0ad!important}
body.upi-reference-hud .rh-hunt-copy strong{color:#fff!important;font-weight:900!important;letter-spacing:.02em!important}
body.upi-reference-hud .rh-hunt-toggle{position:relative!important;display:block!important;width:27px!important;height:17px!important;border:1px solid #9f4952!important;border-radius:999px!important;background:#5d222a!important;box-shadow:inset 0 2px 4px rgb(0 0 0 / 30%)!important}
body.upi-reference-hud .rh-hunt-toggle>b{position:absolute!important;top:2px!important;left:2px!important;width:11px!important;height:11px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgb(0 0 0 / 42%)!important;transition:transform .16s ease!important}
body.upi-reference-hud .rh-hunt-status.is-active .rh-hunt-toggle{border-color:#54c68e!important;background:#198458!important}
body.upi-reference-hud .rh-hunt-status.is-active .rh-hunt-toggle>b{transform:translateX(10px)!important}
body.upi-reference-hud .rh-status .rh-hunt-settings{height:42px!important;border-radius:7px!important;background:rgb(0 0 0 / 16%)!important}
body.upi-reference-hud .rh-status .rh-hunt-settings:hover,
body.upi-reference-hud .rh-status .rh-hunt-settings:focus-visible{background:rgb(255 255 255 / 10%)!important}

@media(min-width:1201px){
  body.upi-reference-hud .rh-chat>small{display:none!important}
  body.upi-reference-hud .rh-chat>strong{font-size:12px!important}
}
@media(max-width:720px), (max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(8,minmax(0,1fr))!important}
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status{grid-template-columns:23px minmax(0,1fr) 28px!important;gap:4px!important;padding-inline:4px!important}
  body.upi-reference-hud .rh-hunt-art{width:23px!important;height:23px!important}.rh-hunt-art img{width:20px!important;height:20px!important}
  body.upi-reference-hud .rh-hunt-toggle{width:27px!important;height:17px!important}.rh-hunt-toggle>b{width:11px!important;height:11px!important}
  body.upi-reference-hud .rh-hunt-status.is-active .rh-hunt-toggle>b{transform:translateX(10px)!important}
}
@media(max-width:720px) and (min-height:561px){
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status,
  body.upi-reference-hud .rh-status .rh-hunt-settings{height:28px!important}
}
@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status,
  body.upi-reference-hud .rh-status .rh-hunt-settings{height:38px!important}
}

/* R106: every non-settings pixel of the Auto Hunt card toggles it. */
body.upi-reference-hud .rh-hunt-controls{cursor:pointer!important;touch-action:manipulation!important}
body.upi-reference-hud .rh-hunt-status{min-width:0!important;cursor:pointer!important;touch-action:manipulation!important}
body.upi-reference-hud .rh-hunt-status .rh-hunt-art,
body.upi-reference-hud .rh-hunt-status .rh-hunt-copy,
body.upi-reference-hud .rh-hunt-status .rh-hunt-toggle,
body.upi-reference-hud .rh-hunt-status .rh-hunt-toggle *,
body.upi-reference-hud .rh-hunt-settings svg,
body.upi-reference-hud .rh-hunt-settings svg *{pointer-events:none!important}
body.upi-reference-hud .rh-hunt-status.is-busy{cursor:progress!important;filter:saturate(.75);opacity:.82}
body.upi-reference-hud .rh-hunt-status.is-busy .rh-hunt-toggle>b{animation:rh-hunt-wait .55s ease-in-out infinite alternate!important}
@keyframes rh-hunt-wait{from{opacity:.48;transform:translateX(2px)}to{opacity:1;transform:translateX(10px)}}
@media(prefers-reduced-motion:reduce){body.upi-reference-hud .rh-hunt-status.is-busy .rh-hunt-toggle>b{animation:none!important}}

/* R115: portrait phones keep every shortcut readable and every primary action tappable. */
@media(max-width:430px) and (min-height:561px) and (orientation:portrait){
  body.upi-reference-hud{--r-top:82px;--r-bottom:345px}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar{height:82px!important;min-height:82px!important}
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left,
  body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{height:40px!important}
  body.upi-reference-hud .rh-actions{height:40px!important}
  body.upi-reference-hud .rh-actions button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  body.upi-reference-hud .rh-status{top:44px!important;left:5px!important;right:5px!important;width:auto!important;height:34px!important;grid-template-columns:178px minmax(0,1fr)!important;transform:none!important}
  body.upi-reference-hud .rh-status.is-events-empty{right:auto!important;left:50%!important;width:178px!important;grid-template-columns:178px!important;transform:translateX(-50%)!important}
  body.upi-reference-hud .rh-status .rh-hunt-controls{height:34px!important;grid-template-columns:minmax(0,1fr) 34px!important}
  body.upi-reference-hud .rh-status .rh-hunt-controls .rh-hunt-status,
  body.upi-reference-hud .rh-status .rh-hunt-settings{height:32px!important}
  body.upi-reference-hud .rh-deck{height:345px!important;grid-template-columns:140px minmax(0,1fr)!important;grid-template-rows:86px 191px 46px!important;gap:5px!important;padding:5px!important}
  body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(44px,1fr))!important;overflow:visible!important}
  body.upi-reference-hud .rh-shortcuts button{min-height:44px!important}
  body.upi-reference-hud .rh-shortcuts span{font-size:10px!important}
  html body.upi-reference-hud #mmo-hud-viewport .mmo-main-body{inset:82px 0 345px!important}
}

/* Event and premium cards stay icon-only until hover or keyboard focus. */
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill{
  width:38px!important;min-width:38px!important;max-width:38px!important;grid-template-columns:28px 0!important;gap:0!important;padding:3px 4px!important;overflow:hidden!important;
  transition:width .2s ease,max-width .2s ease,border-color .16s ease,background .16s ease!important
}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-info,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy{
  display:none!important;width:0!important;min-width:0!important;opacity:0!important;visibility:hidden!important;transform:translateX(-4px)!important;transition:opacity .14s ease,transform .2s ease!important
}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card:hover,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card:focus-visible,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill:hover,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill:focus-visible{
  width:184px!important;min-width:184px!important;max-width:184px!important;grid-template-columns:28px minmax(0,1fr)!important;gap:7px!important;padding-right:8px!important;overflow:hidden!important;outline:2px solid rgb(92 220 190 / 34%)!important;outline-offset:-2px!important
}
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card:hover .mmo-buff-info,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card:focus-visible .mmo-buff-info,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill:hover .mmo-top-buff-copy,
body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill:focus-visible .mmo-top-buff-copy{
  display:flex!important;width:auto!important;opacity:1!important;visibility:visible!important;transform:none!important
}
@media(prefers-reduced-motion:reduce){body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-card,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-pill,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-buff-info,body.upi-reference-hud #mmo-hud-viewport .rh-live-strip .mmo-top-buff-copy{transition:none!important}}

/* Soneca v3 fica sempre ao lado do correio; PiP continua sendo recolhido nas
   telas em que nao cabe. O seletor nominal evita depender da ordem dos botoes. */
body.upi-reference-hud .rh-actions [data-rh-action="soneca"] img{
  border-radius:50%;filter:drop-shadow(0 0 4px rgb(191 185 255 / 72%))
}
@media(max-width:720px), (max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-actions [data-rh-action="soneca"]{display:grid!important}
  body.upi-reference-hud .rh-actions [data-rh-action="pip"]{display:none!important}
}

/* O principal usa o mesmo aviso transitorio de XP dos cinco cards menores. */
body.upi-reference-hud .rh-player{position:relative!important;overflow:visible!important}
body.upi-reference-hud .rh-player-xp-gain{
  position:absolute;z-index:6;top:4px;left:39px;display:flex;min-width:max-content;flex-direction:column;align-items:center;gap:1px;
  padding:4px 7px;border:1px solid rgb(92 220 157 / 34%);border-radius:6px;background:rgb(3 19 29 / 94%);
  box-shadow:0 4px 14px rgb(0 0 0 / 48%);pointer-events:none;transform:translateX(-50%);animation:rhLeadXpGain 4.15s ease-out both
}
body.upi-reference-hud .rh-player-xp-gain[hidden]{display:none!important}
body.upi-reference-hud .rh-player-xp-gain b{color:#7cf5ac;font-size:12px;font-weight:850;line-height:1;white-space:nowrap}
body.upi-reference-hud .rh-player-xp-gain small{color:#b9d7e2;font-size:8px;font-weight:750;line-height:1;white-space:nowrap}
body.upi-reference-hud .rh-player-xp-gain.is-shared b{color:#79d8ff}
body.upi-reference-hud .rh-player-xp-gain.is-catch-up b{color:#ffd86f}
@keyframes rhLeadXpGain{0%{opacity:0;transform:translate(-50%,7px) scale(.92)}10%,80%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-10px) scale(.96)}}
@media(max-width:720px){body.upi-reference-hud .rh-player-xp-gain{top:3px;left:23px;padding:3px 5px}body.upi-reference-hud .rh-player-xp-gain b{font-size:10px}}

/* R147: the analog stick is summoned at the drag origin over the world. */
@media(max-width:720px), (max-height:560px) and (orientation:landscape), (pointer:coarse){
  html body.upi-reference-hud.in-game #mobile-ui{
    display:block!important;position:fixed!important;z-index:12135!important;
    inset:var(--r-top) 0 var(--r-bottom) 0!important;width:auto!important;height:auto!important;
    padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;pointer-events:none!important
  }
  html body.upi-reference-hud.in-game #mobile-ui::before,
  html body.upi-reference-hud.in-game #mobile-ui .upi-mobile-bottom-nav{display:none!important}
  html body.upi-reference-hud.in-game #mobile-ui #m-dpad{
    position:fixed!important;inset:auto!important;left:var(--upi-joystick-x,64px)!important;
    top:var(--upi-joystick-y,50%)!important;display:block!important;width:128px!important;height:128px!important;
    max-width:none!important;max-height:none!important;visibility:hidden!important;opacity:0!important;
    transform:translate(-50%,-50%) scale(.82)!important;pointer-events:none!important;touch-action:none!important;
    filter:drop-shadow(0 8px 14px rgb(0 0 0 / 64%))!important;transition:opacity 80ms ease,transform 100ms ease!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-dpad.is-visible{
    visibility:visible!important;opacity:.96!important;transform:translate(-50%,-50%) scale(1)!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-btns{
    position:fixed!important;inset:auto!important;
    right:calc(12px + env(safe-area-inset-right,0px))!important;
    bottom:calc(var(--r-bottom) + 12px + env(safe-area-inset-bottom,0px))!important;
    left:auto!important;top:auto!important;z-index:12145!important;
    display:flex!important;visibility:visible!important;align-items:flex-end!important;
    margin:0!important;padding:0!important;pointer-events:none!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-btns .m-btn-row--utilities{
    display:none!important;visibility:hidden!important;pointer-events:none!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-btns .m-btn-row--actions{
    display:flex!important;align-items:flex-end!important;gap:9px!important;
    margin:0!important;padding:0!important;pointer-events:auto!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-btns .m-btn-row--actions .m-btn{
    box-sizing:border-box!important;min-width:48px!important;min-height:48px!important;
    padding:0!important;border:2px solid rgb(139 230 255 / 78%)!important;
    color:#f7fdff!important;touch-action:none!important;-webkit-tap-highlight-color:transparent!important;
    box-shadow:0 6px 14px rgb(0 0 0 / 62%),inset 0 2px 3px rgb(255 255 255 / 38%),inset 0 -5px 8px rgb(1 32 64 / 48%)!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #mbtn-a{
    width:62px!important;height:62px!important;margin:0 0 15px;font-size:23px!important;
    background:radial-gradient(circle at 34% 28%,#a9f4ff,#1cbbe1 55%,#08719f)!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #mbtn-b{
    width:54px!important;height:54px!important;margin:0;font-size:19px!important;
    background:radial-gradient(circle at 34% 28%,#7fcbff,#216fd0 57%,#17438f)!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #m-btns .m-btn-row--actions .m-btn:focus-visible{
    outline:3px solid #d8f8ff!important;outline-offset:3px!important
  }
}
@media(max-height:560px) and (orientation:landscape){
  html body.upi-reference-hud.in-game #mobile-ui #m-dpad{width:112px!important;height:112px!important}
  html body.upi-reference-hud.in-game #mobile-ui #m-btns{
    right:calc(8px + env(safe-area-inset-right,0px))!important;
    bottom:calc(var(--r-bottom) + 8px + env(safe-area-inset-bottom,0px))!important
  }
  html body.upi-reference-hud.in-game #mobile-ui #mbtn-a{width:56px!important;height:56px!important;margin-bottom:10px}
  html body.upi-reference-hud.in-game #mobile-ui #mbtn-b{width:50px!important;height:50px!important}
}

@media(max-width:720px), (max-height:560px) and (orientation:landscape), (pointer:coarse){
  html body.upi-reference-hud.in-game.upi-exclusive-screen-open #mobile-ui,
  html body.upi-reference-hud.in-game.upi-phaser-surface-active #mobile-ui,
  html body.upi-reference-hud.in-game.upi-mmo-hunt-history-open #mobile-ui,
  html body.upi-reference-hud.in-game.upi-dom-screen-open #mobile-ui,
  html body.upi-reference-hud.in-game.upi-storage-screen-active #mobile-ui,
  html body.upi-reference-hud.in-game.rh-mobile-deck-open #mobile-ui{display:none!important}
}

/* R163: player, Auto Hunt and active events form one readable top-left cluster.
   The middle of the bar stays free for temporary notices and the side gutters
   remain available to the capture history and chat panels. */
@media(min-width:1201px){
  body.upi-reference-hud #mmo-hud-viewport .rh-status{
    top:6px!important;right:auto!important;left:203px!important;
    width:min(650px,calc(100vw - 650px))!important;
    grid-template-columns:188px minmax(0,1fr)!important;
    transform:none!important
  }
  body.upi-reference-hud #mmo-hud-viewport .rh-status.is-events-empty{
    width:188px!important;grid-template-columns:188px!important
  }
}

/* R166: Central do Treinador — atalhos agrupados por seção, busca e cartões
   com acento de cor, no lugar de 21 caixas iguais numa grade só. */
.rh-menu>section{width:min(940px,calc(100vw - 32px));height:min(720px,calc(100dvh - 32px));grid-template-rows:auto auto auto minmax(0,1fr)}
.rh-menu header{background:radial-gradient(circle at 6% -40%,rgb(126 222 255 / 22%),transparent 44%),linear-gradient(103deg,#0e2c42,#091a26)}
.rh-menu-search{display:flex;align-items:center;gap:9px;padding:9px 14px;border-bottom:1px solid var(--r-line);background:#061119}
.rh-menu-search>img{width:15px;height:15px;flex:none;object-fit:contain;image-rendering:pixelated;opacity:.72}
.rh-menu-search>input{min-width:0;flex:1;height:34px;padding:0 10px;border:1px solid #21455f;border-radius:8px;outline:none;background:#0a1b27;color:var(--r-text);font:400 8px/1 'pgreen',monospace}
.rh-menu-search>input:focus{border-color:var(--r-green)}
.rh-menu-search>b{flex:none;color:var(--r-green);font:400 6px/1 'pgreen',monospace}
.rh-menu-body{display:grid;min-height:0;align-content:start;gap:14px;padding:13px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#43bfe0 #07141e;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.rh-menu-body::-webkit-scrollbar{width:10px}
.rh-menu-body::-webkit-scrollbar-track{background:#07141e;border-left:1px solid #17354a}
.rh-menu-body::-webkit-scrollbar-thumb{border:2px solid #07141e;border-radius:999px;background:linear-gradient(#58d8ee,#2c8fbe)}
.rh-menu-body::-webkit-scrollbar-thumb:hover{background:linear-gradient(#77e8f7,#41acd2)}
.rh-menu-group{--rh-accent:#4fd6c4;display:grid;gap:8px}
.rh-menu-group[hidden]{display:none}
.rh-menu-group.is-colecao{--rh-accent:#69b7f0}
.rh-menu-group.is-comercio{--rh-accent:#f0c75e}
.rh-menu-group.is-comunidade{--rh-accent:#c48ef0}
.rh-menu-group.is-competicao{--rh-accent:#f08a94}
.rh-menu-group.is-sistema{--rh-accent:#8fa7b5}
.rh-menu-group>h3{display:flex;align-items:center;gap:10px;margin:0;color:var(--rh-accent);font:400 7px/1 'pgreen',monospace;letter-spacing:.14em}
.rh-menu-group>h3>i{flex:1;height:1px;background:linear-gradient(90deg,var(--rh-accent),transparent)}
.rh-menu-grid{padding:0;overflow:visible}
.rh-menu-grid>button{position:relative;min-height:82px;border-color:color-mix(in srgb,var(--rh-accent) 26%,#1c384b);border-radius:11px;background:linear-gradient(150deg,color-mix(in srgb,var(--rh-accent) 9%,#0b2130),#081722);overflow:hidden;transition:transform .13s ease,border-color .13s ease,box-shadow .13s ease}
.rh-menu-grid>button[hidden]{display:none}
.rh-menu-grid>button::before{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--rh-accent);content:"";opacity:.75}
.rh-menu-grid>button:hover,.rh-menu-grid>button:focus-visible{border-color:var(--rh-accent);background:linear-gradient(150deg,color-mix(in srgb,var(--rh-accent) 18%,#0d2839),#0a1c29);transform:translateY(-2px);box-shadow:0 8px 16px rgb(0 0 0 / 34%)}
.rh-menu-grid>button:active{transform:translateY(0)}
.rh-menu-grid>button>img{filter:drop-shadow(0 3px 5px rgb(0 0 0 / 45%))}
.rh-menu-grid>button.rh-menu-danger{--rh-accent:#e8737f}
.rh-menu-empty{margin:6px 2px;color:var(--r-muted);font:400 6px/1.6 'pgreen',monospace;text-align:center}
.rh-menu-empty[hidden]{display:none}
@media(max-width:720px){
  .rh-menu>section{height:calc(100dvh - 16px)}
  .rh-menu-body{gap:11px;padding:10px}
  .rh-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .rh-menu-grid>button{min-height:74px;grid-template-columns:38px minmax(0,1fr);gap:8px;padding:9px}
  .rh-menu-grid>button>img{width:34px;height:34px}
}
@media(max-width:460px){.rh-menu-grid{grid-template-columns:1fr}}

/* Jornada principal sempre visível: mostra o próximo passo sem abrir menus. */
body.upi-reference-hud .rh-journey{position:absolute;z-index:1315;top:calc(var(--rh-side-game-top,var(--r-top)) + 10px);bottom:auto;left:calc(var(--rh-side-width,0px) + (100% - var(--rh-side-width,0px))/2);display:grid;width:min(430px,calc(100vw - var(--rh-side-width,0px) - 24px));min-height:54px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:7px 10px;overflow:hidden;border:1px solid #3da985;border-radius:12px;background:linear-gradient(115deg,rgb(7 34 42 / 97%),rgb(8 23 34 / 97%));color:var(--r-text);box-shadow:0 10px 30px rgb(0 0 0 / 58%),inset 0 0 0 1px rgb(93 235 176 / 9%);text-align:left;cursor:pointer;transform:translateX(-50%);transition:width .18s ease,min-height .18s ease,padding .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;backdrop-filter:blur(6px)}
body.upi-reference-hud .rh-journey[hidden],body.rds-open .rh-journey,body.upi-exclusive-screen-open .rh-journey{display:none!important}
body.upi-reference-hud .rh-journey:hover,body.upi-reference-hud .rh-journey.is-pinned-open{width:min(590px,calc(100vw - var(--rh-side-width,0px) - 24px));min-height:98px;grid-template-columns:42px minmax(0,1fr) auto;align-items:start;gap:10px;padding:10px 12px;border-color:#69e5b1;background:linear-gradient(115deg,rgb(10 48 55 / 98%),rgb(10 31 43 / 98%));outline:none;transform:translate(-50%,-2px)}
body.upi-reference-hud .rh-journey:focus-visible{outline:2px solid #69e5b1;outline-offset:2px}
body.upi-reference-hud .rh-journey>img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 5px rgb(0 0 0 / 48%));transition:width .18s ease,height .18s ease}
body.upi-reference-hud .rh-journey:hover>img,body.upi-reference-hud .rh-journey.is-pinned-open>img{width:40px;height:40px;margin-top:3px}
body.upi-reference-hud .rh-journey-copy{display:flex;min-width:0;flex-direction:column;gap:4px;padding-right:28px}
body.upi-reference-hud .rh-journey-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.upi-reference-hud .rh-journey-heading small{color:#69e5b1;font:400 5px/1 'pgreen',monospace;letter-spacing:.04em}
body.upi-reference-hud .rh-journey-heading i{flex:none;color:#72e8bb;font:400 6px/1 'pgreen',monospace;font-style:normal}
body.upi-reference-hud #rh-journey-title{overflow:hidden;color:#fff;font:400 9px/1.12 'pgreen',monospace;text-overflow:ellipsis;white-space:nowrap}
body.upi-reference-hud #rh-journey-objective{display:none;overflow:hidden;color:#c9d8df;font:600 10px/1.25 "Segoe UI",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
body.upi-reference-hud .rh-journey:hover #rh-journey-objective,body.upi-reference-hud .rh-journey.is-pinned-open #rh-journey-objective{display:block}
body.upi-reference-hud .rh-journey-meter{display:grid;grid-template-columns:minmax(80px,1fr);align-items:center;gap:8px}
body.upi-reference-hud .rh-journey:hover .rh-journey-meter,body.upi-reference-hud .rh-journey.is-pinned-open .rh-journey-meter{grid-template-columns:minmax(80px,1fr) auto}
body.upi-reference-hud .rh-journey-meter>span{display:block;height:5px;overflow:hidden;border:1px solid #25566a;border-radius:999px;background:#04141f}
body.upi-reference-hud .rh-journey-meter>span>i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#37c18d,#63d8ed);box-shadow:0 0 8px rgb(87 225 188 / 45%);transition:width .25s ease}
body.upi-reference-hud .rh-journey-meter>b{display:none;color:#9cc4cf;font:700 9px/1 "Segoe UI",sans-serif;white-space:nowrap}
body.upi-reference-hud .rh-journey:hover .rh-journey-meter>b,body.upi-reference-hud .rh-journey.is-pinned-open .rh-journey-meter>b{display:block}
body.upi-reference-hud .rh-journey-goals{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px}
body.upi-reference-hud .rh-journey:hover .rh-journey-goals,body.upi-reference-hud .rh-journey.is-pinned-open .rh-journey-goals{display:grid}
body.upi-reference-hud .rh-journey-goal{display:grid;min-width:0;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:4px;color:#b9ccd4}
body.upi-reference-hud .rh-journey-goal>b{color:#5b8795;font:700 10px/1 "Segoe UI",sans-serif}
body.upi-reference-hud .rh-journey-goal>em{overflow:hidden;font:500 9px/1.2 "Segoe UI",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
body.upi-reference-hud .rh-journey-goal>strong{color:#dce8ec;font:700 9px/1 "Segoe UI",sans-serif;white-space:nowrap}
body.upi-reference-hud .rh-journey-goal.is-complete{color:#75d8ad}.rh-journey-goal.is-complete>b,.rh-journey-goal.is-complete>strong{color:#68d9a6}
body.upi-reference-hud #rh-journey-extra{display:none;overflow:hidden;color:#f2cf72;font:500 9px/1.2 "Segoe UI",sans-serif;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
body.upi-reference-hud .rh-journey:hover #rh-journey-extra:not([hidden]),body.upi-reference-hud .rh-journey.is-pinned-open #rh-journey-extra:not([hidden]){display:block}
body.upi-reference-hud .rh-journey-open{display:none;align-self:center;padding:8px 9px;border:1px solid #276e59;border-radius:7px;background:transparent;color:#81e9bc;font:400 5px/1 'pgreen',monospace;cursor:pointer}
body.upi-reference-hud .rh-journey:hover .rh-journey-open,body.upi-reference-hud .rh-journey.is-pinned-open .rh-journey-open{display:block}
body.upi-reference-hud .rh-journey.is-complete{border-color:#e8bd55}.rh-journey.is-complete .rh-journey-heading small,.rh-journey.is-complete .rh-journey-heading i{color:#f1cf78}.rh-journey.is-complete .rh-journey-meter>span>i{background:linear-gradient(90deg,#d9a93c,#ffe179)}
body.upi-reference-hud .rh-journey-collapse{position:absolute;z-index:3;top:7px;right:8px;display:grid;width:24px;height:24px;place-items:center;padding:5px;border:1px solid #2f765f;border-radius:7px;background:#0d352f;color:#b9f5d8;box-shadow:0 3px 9px rgb(0 0 0 / 26%);cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
body.upi-reference-hud .rh-journey-collapse:hover,body.upi-reference-hud .rh-journey-collapse:focus-visible{border-color:#78e5b8;background:#165344;outline:none;transform:translateY(-1px)}
body.upi-reference-hud .rh-journey-collapse>img{width:11px;height:11px;object-fit:contain;opacity:.9}
body.upi-reference-hud .rh-journey-collapsed-progress{display:none}
body.upi-reference-hud .rh-journey.is-collapsed{display:none!important}
@media(max-width:720px){body.upi-reference-hud .rh-journey{top:calc(var(--r-top) + 6px);right:auto;left:50%;width:min(390px,calc(100vw - 12px));min-height:50px;grid-template-columns:30px minmax(0,1fr);gap:7px;padding:6px 8px}body.upi-reference-hud .rh-journey:hover,body.upi-reference-hud .rh-journey.is-pinned-open{width:calc(100vw - 12px);min-height:84px;grid-template-columns:32px minmax(0,1fr) auto;padding:7px 8px}body.upi-reference-hud .rh-journey>img{width:28px;height:28px}body.upi-reference-hud .rh-journey:hover>img,body.upi-reference-hud .rh-journey.is-pinned-open>img{width:30px;height:30px}body.upi-reference-hud #rh-journey-title{font-size:7px}body.upi-reference-hud #rh-journey-objective{font-size:9px}body.upi-reference-hud .rh-journey-goals{grid-template-columns:1fr}body.upi-reference-hud .rh-journey-goal:nth-child(n+3){display:none}body.upi-reference-hud .rh-journey-open{padding:7px 6px}}
@media(max-width:720px){body.upi-reference-hud .rh-journey-copy{padding-right:76px}body.upi-reference-hud .rh-journey-collapse{top:6px;right:59px;width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){body.upi-reference-hud .rh-journey-collapse{transition:none}}

/* Mobile/tablet: o chat precisa continuar sendo um alvo real mesmo com as
   colunas legadas ocultas. Mantemos o botao fora do canvas e acima das camadas
   de jogo para que um toque curto nunca dispute captura com o joystick. */
@media(max-width:960px), (pointer:coarse){
  html body.upi-reference-hud.in-game:not(.chat-open):not(.upi-battle-active):not(.upi-world-message-focus):not(.upi-exclusive-screen-open):not(.upi-phaser-surface-active):not(.upi-dom-screen-open):not(.upi-storage-screen-active):not(.upi-mmo-hunt-history-open) #pmk-btn{
    position:fixed!important;z-index:12160!important;top:calc(var(--r-top) + 66px)!important;
    right:calc(66px + env(safe-area-inset-right,0px))!important;bottom:auto!important;left:auto!important;
    display:grid!important;width:46px!important;height:46px!important;min-width:44px!important;min-height:44px!important;
    place-items:center!important;margin:0!important;padding:0!important;border:1px solid #58d9ec!important;border-radius:12px!important;
    background:linear-gradient(155deg,#12647f,#093749)!important;color:#fff!important;font-size:20px!important;
    box-shadow:0 7px 18px rgb(0 0 0 / 58%),inset 0 1px 0 rgb(255 255 255 / 22%)!important;
    visibility:visible!important;opacity:1!important;pointer-events:auto!important;touch-action:manipulation!important;
    transform:none!important;-webkit-tap-highlight-color:transparent!important
  }
}
@media(max-width:960px) and (orientation:landscape), (max-height:560px) and (orientation:landscape), (pointer:coarse) and (orientation:landscape){
  html body.upi-reference-hud.in-game:not(.chat-open):not(.upi-battle-active):not(.upi-world-message-focus):not(.upi-exclusive-screen-open):not(.upi-phaser-surface-active):not(.upi-dom-screen-open):not(.upi-storage-screen-active):not(.upi-mmo-hunt-history-open) #pmk-btn{
    top:calc(var(--r-top) + 8px)!important
  }
  html body.upi-reference-hud #pmk-chat,
  html body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{
    right:62px!important;width:min(420px,calc(100vw - 132px))!important
  }
}
@media(max-width:960px), (pointer:coarse){
  html body.upi-reference-hud.chat-open #upi-hunt-shortcut-dock,
  html body.upi-reference-hud.chat-open #idle-hunt-analyzer{display:none!important}
  html body.upi-reference-hud #pmk-chat,
  html body.upi-reference-hud #mmo-chat-dock>#pmk-chat.pmk-docked{
    grid-template-rows:72px minmax(0,1fr) auto 44px!important
  }
  html body.upi-reference-hud #pmk-head{
    grid-template-columns:minmax(0,1fr) auto 44px!important;
    grid-template-rows:44px 24px!important;gap:3px 6px!important
  }
  html body.upi-reference-hud #pmk-close{
    display:grid!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    place-items:center!important;touch-action:manipulation!important
  }
  html body.upi-reference-hud #pmk-close img{width:16px!important;height:16px!important}
}
body.upi-reference-hud .rh-journey.is-awaiting-accept:not(.is-collapsed) #rh-journey-objective{display:block!important;white-space:normal;line-height:1.4;overflow:visible}
body.upi-reference-hud .rh-journey.is-awaiting-accept #rh-journey-meter,body.upi-reference-hud .rh-journey.is-awaiting-accept .rh-journey-goals{display:none!important}
body.upi-reference-hud .rh-journey-goal>em{white-space:normal;overflow-wrap:anywhere}
body.upi-reference-hud .rh-journey-goal>em>small{display:block;margin-top:2px;color:#85d9e6;font-size:9px}

/* R168: WIKI e CLA entram na grade de atalhos, que passa a ter dezoito botoes
   em nove colunas. O cartao do Pokemon principal encolhe nas larguras em que
   divide a linha com a grade e devolve a largura a ela, de modo que cada botao
   conserve a mesma area de antes em vez de ser espremido. */
body.upi-reference-hud .rh-shortcuts{
  grid-template-columns:repeat(9,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important
}
body.upi-reference-hud .rh-shortcuts [data-rh-action="clan"] img{filter:drop-shadow(0 4px 4px rgb(0 0 0 / 48%))}

@media(min-width:961px) and (max-width:1079px){
  body.upi-reference-hud .rh-deck{grid-template-columns:minmax(155px,.7fr) minmax(265px,1.15fr) minmax(370px,1.45fr) minmax(170px,.7fr)!important}
  body.upi-reference-hud .rh-player{grid-template-columns:50px minmax(0,1fr)!important}
  body.upi-reference-hud .rh-player-xp-gain{left:25px}
}
@media(min-width:1080px) and (max-width:1200px) and (min-height:561px){
  body.upi-reference-hud .rh-deck{grid-template-columns:minmax(142px,.62fr) minmax(240px,1.08fr) minmax(312px,1.36fr) minmax(150px,.68fr) minmax(150px,.68fr)!important}
  body.upi-reference-hud .rh-player{grid-template-columns:48px minmax(0,1fr)!important}
  body.upi-reference-hud .rh-player-xp-gain{left:24px}
}
@media(min-width:1201px){
  body.upi-reference-hud .rh-deck{grid-template-columns:minmax(140px,.6fr) minmax(260px,1.08fr) minmax(460px,2.02fr) minmax(160px,.64fr) minmax(104px,.36fr)!important}
  body.upi-reference-hud .rh-player{grid-template-columns:58px minmax(0,1fr)!important}
  body.upi-reference-hud .rh-player-xp-gain{left:29px}
}
@media(min-width:1180px) and (min-height:650px){
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts{
    grid-template-columns:repeat(18,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important
  }
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts img{width:24px!important;height:24px!important}
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts span{font-size:9px!important}
}
@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-shortcuts img{width:17px!important;height:17px!important}
}
@media(max-width:720px) and (min-height:561px) and (orientation:portrait){
  body.upi-reference-hud.rh-mobile-deck-open .rh-shortcuts{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(48px,1fr))!important
  }
}
@media(max-width:430px) and (min-height:561px) and (orientation:portrait){
  body.upi-reference-hud .rh-shortcuts{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(44px,1fr))!important
  }
}

/* O resgate de codigo agora e chamado pelo menu, e a faixa de baixo da HUD
   (z-index 1320) cobria o rodape do modal legado, que nasceu em 999. */
body.upi-reference-hud #mmo-hud-viewport #mmo-redeem-modal{z-index:12200!important}

/* HP and EXP use the already-rendered party snapshot, including EXP Share. */
html body.upi-reference-hud .rh-slot{grid-template-rows:minmax(16px,1fr) auto 3px 3px!important;row-gap:2px!important}
html body.upi-reference-hud .rh-slot>i.rh-slot-exp>em,
html body.upi-reference-hud[data-upi-hud-theme="ultimate"] .rh-slot>i.rh-slot-exp>em{background:linear-gradient(180deg,#79caff,#3689f5)!important}

/* Twenty HUD actions: the lead card gives its spare width to the shortcuts. */
body.upi-reference-hud .rh-shortcuts{grid-template-columns:repeat(10,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
@media(min-width:1201px){
  body.upi-reference-hud:not(.upi-hud-layout-side-active) .rh-deck{grid-template-columns:clamp(180px,12vw,250px) minmax(260px,1.08fr) minmax(520px,2.28fr) minmax(160px,.64fr) minmax(104px,.36fr)!important}
}
@media(min-width:961px){
  body.upi-reference-hud .rh-player .rh-meter{grid-template-columns:20px minmax(0,1fr) auto;gap:4px}
}
@media(min-width:1201px) and (max-width:1359px){
  body.upi-reference-hud:not(.upi-hud-layout-side-active) .rh-deck{grid-template-columns:180px minmax(240px,1.08fr) minmax(470px,2.28fr) minmax(145px,.64fr) minmax(104px,.36fr)!important}
}
@media(min-width:961px) and (max-width:1079px){
  body.upi-reference-hud .rh-deck{grid-template-columns:180px minmax(200px,1.1fr) minmax(390px,1.6fr) minmax(140px,.7fr)!important}
}
@media(min-width:1080px) and (max-width:1200px) and (min-height:561px){
  body.upi-reference-hud .rh-deck{grid-template-columns:180px minmax(210px,1fr) minmax(370px,1.5fr) minmax(140px,.68fr) minmax(120px,.68fr)!important}
}
@media(min-width:1180px) and (min-height:650px){
  body.upi-reference-hud.upi-hud-layout-side-active:not(.upi-battle-active):not(.upi-world-message-focus) .rh-shortcuts{height:94px!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px) and (min-height:561px) and (orientation:portrait){
  body.upi-reference-hud.rh-mobile-deck-open .rh-shortcuts{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(44px,1fr))!important}
}
@media(max-height:560px) and (orientation:landscape){
  body.upi-reference-hud .rh-shortcuts{overflow-x:auto!important;grid-template-columns:repeat(10,minmax(36px,1fr))!important;scrollbar-width:thin}
}

/* Individual HUD artwork. Protected navigation sprites keep their existing styles. */
html body.upi-reference-hud .rh-nav-art{object-fit:contain!important;image-rendering:auto!important;filter:drop-shadow(0 1px 1px rgb(0 0 0 / 28%))!important}
html body.upi-reference-hud .rh-shortcuts button>img.rh-nav-art{width:30px!important;height:30px!important;flex:none;transition:transform .16s ease,filter .16s ease}
html body.upi-reference-hud .rh-shortcuts button:hover>img.rh-nav-art,html body.upi-reference-hud .rh-shortcuts button:focus-visible>img.rh-nav-art{transform:translateY(-1px) scale(1.06);filter:drop-shadow(0 2px 3px rgb(58 211 196 / 28%))!important}
html body.upi-reference-hud .rh-actions img.rh-nav-art{width:24px!important;height:24px!important}
html body.upi-reference-hud .rh-hunt-art img.rh-nav-art{width:24px!important;height:24px!important}
html body.upi-reference-hud .rh-info>span img.rh-nav-art{width:18px!important;height:18px!important}
html body.upi-reference-hud .rh-menu-grid button>img.rh-nav-art{width:40px!important;height:40px!important}
@media(max-width:720px){html body.upi-reference-hud .rh-shortcuts button>img.rh-nav-art{width:28px!important;height:28px!important}html body.upi-reference-hud .rh-menu-grid button>img.rh-nav-art{width:32px!important;height:32px!important}}
@media(max-height:560px) and (orientation:landscape){html body.upi-reference-hud .rh-shortcuts button>img.rh-nav-art{width:22px!important;height:22px!important}}
@media(prefers-reduced-motion:reduce){html body.upi-reference-hud .rh-nav-art{transition:none!important;transform:none!important}}

/* Item do Pokémon principal, refletido da equipe autoritativa. */
.rh-player-art{position:relative;overflow:visible}
.rh-held-item{position:absolute;right:-2px;top:0;display:grid;place-items:center;width:25px;height:25px;border:1px solid #7bcfc4;border-radius:8px;background:#082c35;box-shadow:0 2px 5px #0008;z-index:2}
.rh-held-item[hidden]{display:none!important}
.rh-held-item img{width:22px!important;height:22px!important;object-fit:contain;image-rendering:pixelated}
.rh-held-item i{display:none;color:#95f5db;font-style:normal}
.rh-held-item.is-fallback img{display:none}.rh-held-item.is-fallback i{display:block}

/* Mail uses the native counter and socket events; no extra polling. */
.rh-actions [data-rh-action="mail"]{position:relative;overflow:visible}
.rh-mail-count{position:absolute;top:0;right:-2px;min-width:17px;height:17px;box-sizing:border-box;padding:1px 4px;border:1px solid #ffe1a6;border-radius:9px;background:#e9ae40;color:#201808;box-shadow:0 2px 5px #0008;font:800 10px/13px Arial,sans-serif}
.rh-mail-count[hidden]{display:none!important}
body.upi-reference-hud .rh-actions [data-rh-action="mail"].has-unread{background:#ad792b24!important;box-shadow:inset 0 0 0 1px #edc66e70!important;border-radius:8px}
.rh-mail-notice{position:fixed;right:16px;top:calc(var(--r-top,52px) + 12px);z-index:24010;display:flex;align-items:center;gap:12px;box-sizing:border-box;width:min(440px,calc(100vw - 24px));padding:13px 12px;border:1px solid #a88c4e;border-left:3px solid #f0c56a;border-radius:12px;background:linear-gradient(110deg,#183846,#0a202c);box-shadow:0 10px 28px #0007;color:#f2f8fc;font:13px/1.45 Arial,sans-serif}
.rh-mail-notice[hidden]{display:none!important}
.rh-mail-notice>img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.rh-mail-notice>div{flex:1;min-width:0}.rh-mail-notice strong{display:block;color:#ffe2a1;font-size:13px}.rh-mail-notice div span{display:block;color:#b8cdd7;font-size:11px;margin-top:3px}
.rh-mail-notice button{border:1px solid #468b9b;border-radius:7px;background:#16485a;color:#e7faff;cursor:pointer;padding:8px;font:700 11px/1.3 Arial,sans-serif;min-height:36px}
.rh-mail-notice button:focus-visible{outline:2px solid #83def1;outline-offset:3px}
.rh-mail-notice [data-mail-dismiss]{align-self:flex-start;min-width:28px;min-height:28px;padding:0;background:transparent;border-color:transparent;font-size:20px;color:#aac2d0}
body.upi-reference-hud #mmo-hud-viewport #mmo-btn-add-gems{display:inline-flex!important;align-items:center;justify-content:center;position:relative;gap:6px;width:auto!important;min-width:110px!important;height:34px!important;min-height:34px!important;margin-left:5px;padding:0 9px!important;border:1px solid #66d9f0!important;border-radius:9px!important;background:linear-gradient(145deg,#17617c,#123c59)!important;color:#dffaff!important;box-shadow:inset 0 1px 0 #b8faff35,0 2px 6px #00152180!important;font:700 11px/1 Arial,sans-serif!important;cursor:pointer;transition:background .15s,border-color .15s}
body.upi-reference-hud #mmo-hud-viewport #mmo-btn-add-gems:hover{background:linear-gradient(145deg,#267e99,#195473)!important;border-color:#acfbff!important}
body.upi-reference-hud #mmo-hud-viewport #mmo-btn-add-gems:focus-visible{outline:2px solid #a1f3ff!important;outline-offset:3px!important}
#mmo-btn-add-gems .mmo-add-gem-art{width:23px!important;height:23px!important;object-fit:contain;image-rendering:pixelated}
#mmo-btn-add-gems .mmo-add-gem-plus{display:grid;place-items:center;width:17px;height:17px;flex-shrink:0;border-radius:5px;background:#76dcf1;color:#063149;font:bold 16px/1 Arial,sans-serif}
body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:22px!important;height:22px!important}
@media(max-width:960px){body.upi-reference-hud #mmo-hud-viewport #mmo-btn-add-gems{width:40px!important;min-width:40px!important;height:38px!important;min-height:38px!important;padding:3px!important;margin-left:2px}.mmo-add-gem-copy{display:none}#mmo-btn-add-gems .mmo-add-gem-plus{position:absolute;right:-2px;top:-3px;width:15px;height:15px;font-size:13px;border:1px solid #0a4358}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{padding-inline:3px!important}}
@media(max-width:600px){.rh-mail-notice{right:12px;gap:8px;padding:10px}.rh-mail-notice>img{width:29px;height:29px}.rh-mail-notice button{font-size:10px;padding:7px}.rh-mail-notice div span{font-size:10px}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-left{flex:0 1 74px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-trainer-pill{width:74px!important;padding-inline:3px!important;gap:4px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-topbar-right{gap:2px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-item{min-width:0!important;gap:3px!important;padding-inline:2px!important;font-size:9px!important}body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon,body.upi-reference-hud #mmo-hud-viewport .mmo-resource-icon img{width:19px!important;height:19px!important}body.upi-reference-hud .rh-actions{gap:0!important;padding:0!important}body.upi-reference-hud .rh-actions button{width:30px!important;min-width:30px!important;height:38px!important}}

/* Halloween action stays within the existing reserved bottom deck. */
body.upi-reference-hud .rh-shortcuts:has(.rh-halloween){grid-template-columns:repeat(11,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
body.upi-reference-hud .rh-shortcuts .rh-halloween{position:relative;background:linear-gradient(155deg,#563049,#321738)!important;border-color:#b9814166!important;padding-inline:2px!important}
body.upi-reference-hud .rh-halloween span{color:#ffd18a!important;font-size:8px!important;letter-spacing:0!important}
body.upi-reference-hud .rh-shortcuts .rh-halloween img{image-rendering:auto!important;filter:drop-shadow(0 1px 4px #e9813322);object-fit:contain!important}
body.upi-reference-hud .rh-halloween-candies{position:absolute;right:2px;top:2px;max-width:32px;min-width:14px;border-radius:10px;padding:2px 3px;background:#1f1028;color:#ffc87c;border:1px solid #ce944866;font:750 8px/1.2 Segoe UI,sans-serif;text-align:center}
@media(max-width:720px) and (orientation:portrait){
 body.upi-reference-hud.rh-mobile-deck-open .rh-shortcuts:has(.rh-halloween){grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(48px,1fr))!important}
 body.upi-reference-hud .rh-halloween span{font-size:8px!important}
}

/* Keep the new live shortcuts and place mastery directly under the auction. */
@media(min-width:721px), (orientation:landscape) {
 body.upi-reference-hud .rh-shortcuts:has(.rh-halloween) [data-rh-action="mastery"]{grid-column:10;grid-row:2}
}
@media(max-width:720px) and (orientation:portrait) {
 body.upi-reference-hud .rh-shortcuts:has(.rh-halloween) [data-rh-action="mastery"]{grid-column:auto;grid-row:auto}
}
