/* ================================================================
   POKEULTRAZ HUD V3
   Camada final de organização. As posições padrão evitam colisões,
   mas hud-layout.js pode sobrescrevê-las quando o jogador arrasta.
   ================================================================ */

:root {
  --rush-hud-pad: 6px;
  --rush-hud-dock-h: 100px;
}

/* ================================================================
   HUD SUPERIOR DIRETO — tema Laranja Neon
   Uma sequência horizontal de ícones outline, sem reutilizar os assets legados.
   ================================================================ */
html body.rush-hud-v3 #game #topbar {
  top: 12px !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 310px) !important;
  height: auto !important;
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 6px !important;
  padding: 6px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 101, 20, .72) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(18, 23, 29, .98), rgba(5, 8, 12, .98)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .42), 0 0 24px rgba(255, 86, 12, .18), inset 0 1px rgba(255, 222, 186, .08) !important;
}
html body.rush-hud-v3 #game #topbar .rush-dock-brand { display: none !important; }
html body.rush-hud-v3 #game #topbar .hud-nav-group { position: relative; display: block; }
html body.rush-hud-v3 #game #topbar .hud-category {
  display: grid !important;
  width: 42px;
  min-width: 42px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 142, 45, .26);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: #ffd7ad;
  cursor: pointer;
  font: 800 19px/1 system-ui, sans-serif;
  letter-spacing: .2px;
  transition: .16s ease;
}
html body.rush-hud-v3 #game #topbar .hud-category .hud-cat-text { display: none !important; }
html body.rush-hud-v3 #game #topbar .hud-category-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 170;
  display: none;
  grid-template-columns: repeat(3, 42px);
  gap: 5px;
  width: max-content;
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 106, 0, .72);
  border-radius: 12px;
  background: rgba(8, 10, 14, .97);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .52), 0 0 15px rgba(255, 106, 0, .2);
}
html body.rush-hud-v3 #game #topbar .hud-nav-group.open .hud-category { border-color: #ff790d; background: rgba(255, 94, 8, .11); box-shadow: 0 0 12px rgba(255, 91, 11, .42); }
html body.rush-hud-v3 #game #topbar .hud-nav-group.open .hud-category-menu { display: grid; }
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
  position: relative;
  display: grid;
  width: 38px !important;
  min-width: 38px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 4px !important;
  place-items: center;
  border: 1px solid rgba(255, 150, 62, .14) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.018) !important;
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:hover {
  border-color: rgba(255, 142, 35, .84) !important;
  background: rgba(255, 104, 17, .16) !important;
  box-shadow: 0 0 12px rgba(255, 95, 12, .22);
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb.ic img,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb-symbol {
  width: 23px !important;
  min-width: 23px !important;
  height: 23px !important;
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb-label {
  display: none !important;
  max-width: 64px;
  margin-top: 3px;
  overflow: hidden;
  color: #f6c99c;
  font-size: 8px !important;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body.rush-hud-v3 #game #topbar .hud-category-menu.hud-rewards-menu {
  grid-template-columns: 1fr;
  width: 176px;
  padding: 7px;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .tb {
  display: grid !important;
  grid-template-columns: 27px minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 43px !important;
  padding: 6px 8px !important;
  gap: 8px;
  place-items: center start;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .tb.ic img,
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .tb-symbol {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  font-size: 21px;
  text-align: center;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .tb-label {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #ffd9b4;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  white-space: normal;
}
/* Recompensas é um submenu de escolha rápida, não uma coluna de ícones. */
html body.rush-hud-v3 #game #topbar .hud-category-menu.hud-rewards-menu {
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: 252px;
  padding: 8px;
  gap: 7px;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .reward-submenu-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 7px !important;
  gap: 4px;
  border-color: rgba(255, 130, 28, .42) !important;
  background: linear-gradient(145deg, rgba(47, 26, 12, .98), rgba(14, 13, 13, .98)) !important;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .reward-submenu-btn .tb-symbol {
  display: grid;
  place-items: center;
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  font-size: 23px;
  line-height: 1;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .reward-submenu-btn .tb-label {
  display: block !important;
  width: 100% !important;
  overflow: visible !important;
  color: #ffe0b7;
  font-size: 10px !important;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .reward-daily-btn:hover { border-color: #ffad32 !important; box-shadow: 0 0 15px rgba(255, 135, 26, .34); }
html body.rush-hud-v3 #game #topbar .hud-rewards-menu .reward-pass-btn:hover { border-color: #ffd15c !important; box-shadow: 0 0 15px rgba(255, 193, 42, .3); }
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb.ic img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(89%) saturate(1553%) hue-rotate(341deg) brightness(106%) contrast(102%) drop-shadow(0 0 5px rgba(255, 96, 12, .85));
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb-symbol,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb-emoji-icon { color: #ffb45d; text-shadow: 0 0 8px #ff5d14; }
html body.rush-hud-v3 #game #topbar [data-tooltip]::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]::after {
  position: absolute;
  left: 0;
  bottom: -33px;
  z-index: 220;
  display: none;
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  transform: none;
  border: 1px solid #ff790d;
  border-radius: 6px;
  background: linear-gradient(145deg, #21140d, #0d0d0e);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 9px rgba(255, 91, 12, .38);
  color: #ffe0c1;
  content: attr(data-tooltip);
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .15px;
  pointer-events: none;
  white-space: nowrap;
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]::after { content: attr(title); }
html body.rush-hud-v3 #game #topbar [data-tooltip]:hover::after,
html body.rush-hud-v3 #game #topbar [data-tooltip]:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]:hover::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]:focus-visible::after { display: block; }
/* A etiqueta acompanha a cor e a função dos atalhos especiais. */
html body.rush-hud-v3 #game #topbar .hud-diamond-btn[data-tooltip]::after {
  border-color: #4ddfff;
  background: linear-gradient(145deg, #0b2835, #0b1118);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 10px rgba(58, 219, 255, .5);
  color: #aaf4ff;
}
html body.rush-hud-v3 #game #topbar .hud-system-btn[data-tooltip]::after {
  border-color: #ff790d;
  color: #ffe0c1;
}
/* Etiquetas dedicadas dos três atalhos especiais. Elas não dependem do
   pseudo-elemento legado de .tb, que pode ser desativado pelo dock antigo. */
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb .hud-hover-label {
  position: absolute;
  left: 0;
  bottom: -33px;
  z-index: 230;
  display: none;
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid #ff790d;
  border-radius: 6px;
  background: linear-gradient(145deg, #21140d, #0d0d0e);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 9px rgba(255, 91, 12, .38);
  color: #ffe0c1;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .15px;
  pointer-events: none;
  white-space: nowrap;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .hud-hover-label {
  border-color: #4ddfff;
  background: linear-gradient(145deg, #0b2835, #0b1118);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 10px rgba(58, 219, 255, .5);
  color: #aaf4ff;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:hover::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:focus-visible::after { display: none !important; }
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:focus-visible .hud-hover-label { display: block !important; }
html body.rush-hud-v3 #game #topbar .hud-quick-travel { display: flex; gap: 4px; margin-right: 4px; padding-right: 7px; border-right: 1px solid rgba(255, 132, 38, .35); }
html body.rush-hud-v3 #game #topbar .hud-system-actions { display: flex; gap: 4px; }
html body.rush-hud-v3 #game #topbar .hud-system-btn {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 126, 28, .42) !important;
  border-radius: 11px !important;
  background: rgba(11, 15, 20, .86) !important;
}
html body.rush-hud-v3 #game #topbar .hud-system-btn .tb-label { display: none !important; }
html body.rush-hud-v3 #game #topbar .hud-diamond-btn {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  padding: 0 !important;
  border: 1px solid rgba(58, 219, 255, .72) !important;
  border-radius: 11px !important;
  color: #70eaff !important;
  background: linear-gradient(145deg, rgba(8, 38, 52, .95), rgba(9, 16, 24, .94)) !important;
  box-shadow: 0 0 12px rgba(42, 205, 255, .28), inset 0 0 9px rgba(54, 210, 255, .1) !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .tb-label { display: none !important; }
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .hud-outline-icon {
  color: #70eaff !important;
  filter: drop-shadow(0 0 5px rgba(58, 219, 255, .95)) !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn.active {
  border-color: #b1f6ff !important;
  background: rgba(12, 69, 91, .94) !important;
  box-shadow: 0 0 18px rgba(58, 219, 255, .55), inset 0 0 12px rgba(98, 230, 255, .2) !important;
}
html body.rush-hud-v3 #game #topbar .hud-quick-btn {
  position: relative;
  width: 43px;
  height: 43px;
  border: 1px solid #ff7f22;
  border-radius: 11px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 219, 180, .06), 0 0 12px rgba(255, 89, 10, .18);
  color: #ffc071;
  cursor: pointer;
  font: 900 24px/1 system-ui, sans-serif;
  text-shadow: 0 0 8px #ff5d14;
}
html body.rush-hud-v3 #game #topbar .hud-quick-btn:hover { background: rgba(255, 92, 10, .10); color: #fff7ee; box-shadow: 0 0 20px rgba(255, 91, 11, .72); }
html body.rush-hud-v3 #game .panel,
html body.rush-hud-v3 #game #modal {
  border-color: rgba(255, 117, 27, .42) !important;
}
html body.rush-hud-v3 #game .btn.gold,
html body.rush-hud-v3 #game #chat-send {
  border-color: #ff8a22 !important;
  background: linear-gradient(135deg, #ff9c2a, #ff5814) !important;
  color: #231005 !important;
  box-shadow: 0 0 12px rgba(255, 90, 13, .2);
}
html body.rush-hud-v3 #game #auto-panel .ah-row.on {
  border-color: rgba(255, 128, 31, .52) !important;
  background: rgba(255, 105, 20, .09) !important;
}
html body.rush-hud-v3 #game #auto-panel .ah-row.on .ah-txt b,
html body.rush-hud-v3 #game #auto-panel .ah-row.on .ah-desc { color: #ffd5ae !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row input[type=checkbox]:checked + .ah-sw {
  border-color: #ff7c20 !important;
  background: #5a260d !important;
  box-shadow: 0 0 9px rgba(255, 95, 12, .35);
}
html body.rush-hud-v3 #game #auto-panel .ah-row input[type=checkbox]:checked + .ah-sw::after { background: #ffae4e !important; }

@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar { max-width: calc(100vw - 660px) !important; }
}
@media (max-width: 700px), (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    top: 6px !important;
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    justify-content: space-between;
    gap: 3px !important;
    padding: 4px !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-category { min-width: 48px; height: 37px; font-size: 10px; }
  html body.rush-hud-v3 #game #topbar .hud-category span { font-size: 7px; }
  html body.rush-hud-v3 #game #topbar .hud-category-menu { left: auto; right: 0; transform: none; max-width: calc(100vw - 12px); }
  html body.rush-hud-v3 #game #topbar .hud-nav-group:nth-last-child(-n+2) .hud-category-menu { right: 0; left: auto; }
}

html body.rush-hud-v3 #game #topbar,
html body.rush-hud-v3 #pk-hud,
html body.rush-hud-v3 #game #player-panel,
html body.rush-hud-v3 #game #auto-panel,
html body.rush-hud-v3 #game #capture-panel,
html body.rush-hud-v3 #game #chat,
html body.rush-hud-v3 #game #minimap,
html body.rush-hud-v3 #game #mm-show,
html body.rush-hud-v3 #game #mini-hunt,
html body.rush-hud-v3 #game #mob-fabs {
  position: fixed !important;
  transform: none !important;
  box-sizing: border-box;
}

html body.rush-hud-v3 #game #topbar .tb,
html body.rush-hud-v3 #game #topbar #tb-fs,
html body.rush-hud-v3.menus-off #game #topbar .tb {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.rush-hud-v3 #game #topbar #tb-toggle,
html body.rush-hud-v3 #fs-fab {
  display: none !important;
}

.rush-drag-grip {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 20;
  width: 42px;
  height: 10px;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.rush-drag-grip::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
  transition: background .15s, box-shadow .15s;
}

.rush-drag-grip:is(:hover, :focus-visible)::before,
.rush-hud-dragging .rush-drag-grip::before {
  background: #ffb323;
  box-shadow: 0 0 9px rgba(255, 103, 19, .8);
}

.rush-drag-grip:focus-visible {
  outline: 2px solid #ffb323;
  outline-offset: 2px;
}

/* Quina de redimensionamento dos painéis. É uma alça dedicada (não interfere
   nos botões ou no conteúdo) e aparece em desktop/notebook. */
.rush-resize-grip {
  position: absolute;
  z-index: 22;
  right: 1px;
  bottom: 1px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 5px 0 10px 0;
  background: linear-gradient(135deg,transparent 43%,rgba(255,179,35,.9) 45%,rgba(255,179,35,.9) 52%,transparent 54%,transparent 65%,rgba(255,103,19,.85) 67%,rgba(255,103,19,.85) 74%,transparent 76%);
  cursor: nwse-resize;
  touch-action: none;
  opacity: .74;
}
.rush-resize-grip:hover,.rush-resize-grip:focus-visible { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,179,35,.75)); }
.rush-resize-grip:focus-visible { outline: 2px solid #ffb323; outline-offset: 1px; }

/* Regra definitiva: a alça só pode aparecer como filha DIRETA do chat. Isso
   também neutraliza alças deixadas por versões antigas do JavaScript. */
.rush-resize-grip { display: none !important; pointer-events: none !important; }
#chat.cv2-big > .rush-resize-grip { display: block !important; pointer-events: auto !important; }
body .rush-hud-managed:not(#chat) { resize: none !important; }
#modal, #npc-box, #faint-box .fb-panel, .gx-win, #es-panel,
.mk2-win, .dp-win, .wk-win, .gd-win, .rr-box, .pkhb,
#boss-modal .bm-box, #wm-map .wm-win, #pdx-panel,
#aff-premium .aff-win, #adm-premium .adm-win { resize: none !important; }

@media (pointer: coarse) { .rush-resize-grip, #chat.cv2-big > .rush-resize-grip { display: none !important; } }

/* Indicadores de mundo: discreto, preso ao topo direito e alimentado pela
   hora virtual retornada por Céu & Clima. */
#world-status-hud {
  position:fixed; z-index:96; top:0; right:0; display:flex; align-items:center; gap:7px;
  min-height:30px; padding:0 11px; border:1px solid rgba(255,106,0,.7); border-top:0; border-right:0;
  border-radius:0 0 0 11px; background:rgba(7,10,14,.82); color:#ffd9af;
  box-shadow:0 5px 16px rgba(0,0,0,.36),0 0 12px rgba(255,106,0,.12);
  font:800 10px/1 Inter,system-ui,sans-serif; letter-spacing:.28px; pointer-events:none;
}
#world-status-hud b { color:#ff9a46; font-variant-numeric:tabular-nums; }
#world-status-hud i { width:1px; height:13px; background:rgba(255,106,0,.38); }
#world-status-hud.wsh-no-ping .wsh-net,
#world-status-hud.wsh-no-ping .wsh-net + i { display:none; }
#world-status-hud .wsh-clock { color:#ffe6c6; }
#world-status-hud.wsh-slow .wsh-net b { color:#ff6760; }
#world-status-hud .wsh-social { width:20px; height:20px; display:grid; place-items:center; border:1px solid rgba(255,128,24,.48); border-radius:6px; color:#ffb262; background:rgba(255,106,0,.06); pointer-events:auto; text-decoration:none; transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease; }
#world-status-hud .wsh-social:hover { color:#fff1df; border-color:#ff8418; background:rgba(255,106,0,.24); box-shadow:0 0 10px rgba(255,106,0,.28); transform:translateY(-1px); }
#world-status-hud .wsh-whatsapp { color:#84e8ac; border-color:rgba(81,209,120,.52); background:rgba(44,159,83,.08); }
#world-status-hud .wsh-whatsapp:hover { color:#d7ffe4; border-color:#55da88; background:rgba(44,159,83,.24); box-shadow:0 0 10px rgba(55,205,109,.25); }
#world-status-hud .wsh-social svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:740px) { #world-status-hud { min-height:26px; gap:5px; padding:0 7px; font-size:8px; } #world-status-hud i { height:10px; } #world-status-hud .wsh-social { width:18px; height:18px; border-radius:5px; } #world-status-hud .wsh-social svg { width:12px; height:12px; } }

/* O Torneio é criado dinamicamente; mantém o nome sob a taça mesmo nas
   variações compactas do HUD central. */
html body.rush-hud-v3 #game #topbar .tn-tb {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
}
html body.rush-hud-v3 #game #topbar .tn-tb .tb-label {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  /* Segue exatamente a tipografia dos outros atalhos do HUD inferior. */
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.rush-hud-v3 #game #mob-fabs > .rush-drag-grip {
  top: -13px;
  left: 50%;
}

body.rush-hud-dragging,
body.rush-hud-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

body.rush-hud-dragging #world {
  pointer-events: none !important;
}

.rush-hud-managed {
  contain: layout style;
}

/* Desktop/notebook: menu lateral e três colunas independentes. */
@media (min-width: 1280px) and (pointer: fine) {
  :root { --rush-hud-dock-h: 0px; }

  html body.rush-hud-v3 #game #topbar {
    inset: 47px auto auto 14px !important;
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: auto !important;
    max-height: calc(100dvh - 62px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, 56px) !important;
    grid-auto-rows: 44px !important;
    grid-auto-flow: row !important;
    gap: 5px !important;
    padding: 9px !important;
    overflow: visible !important;
    border-radius: 18px !important;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip {
    top: -17px;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip::before {
    background: rgba(255, 179, 35, .65);
  }

  html body.rush-hud-v3 #game #topbar .rush-dock-brand {
    display: inline-flex !important;
    top: -33px !important;
    left: 9px !important;
    width: 112px !important;
    height: 33px !important;
    justify-content: center;
    padding: 4px 8px;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    width: 56px !important;
    min-width: 56px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 4px 3px 3px !important;
    border-radius: 10px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 23px !important;
    height: 23px !important;
    object-fit: contain;
    flex: 0 0 auto;
  }

  html body.rush-hud-v3 #game #mob-fabs {
    display: none !important;
  }

  html body.rush-hud-v3 #pk-hud {
    inset: 16px auto auto 160px !important;
    max-height: calc(100dvh - 32px) !important;
    overflow: auto;
  }

  html body.rush-hud-v3 #game #minimap {
    inset: 56px auto auto 442px !important;
  }

  html body.rush-hud-v3 #game #minimap:not(.hidden) {
    display: block !important;
  }

  html body.rush-hud-v3 #game #minimap.hidden {
    display: none !important;
  }

  html body.rush-hud-v3 #game #mm-show:not(.hidden) {
    inset: 56px auto auto 442px !important;
    display: grid !important;
  }

  html body.rush-hud-v3 #game #mini-hunt {
    inset: 244px auto auto 442px !important;
  }

  html body.rush-hud-v3 #game #chat {
    inset: auto auto 16px 442px !important;
    width: 360px !important;
    height: 220px !important;
    max-width: min(520px, calc(100vw - 770px)) !important;
    max-height: calc(100dvh - 300px) !important;
    display: flex !important;
  }

  html body.rush-hud-v3 #game #auto-panel {
    inset: 16px 16px auto auto !important;
    width: 270px !important;
    max-height: calc(100dvh - 326px) !important;
    display: flex !important;
  }

  html body.rush-hud-v3 #game #capture-panel {
    inset: auto 16px 16px auto !important;
    width: 282px !important;
    max-height: 278px !important;
    display: block !important;
    overflow-y: auto;
  }

  html body.rush-hud-v3 #game #zone-label {
    top: 16px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    max-width: calc(100vw - 900px) !important;
    transform: translateX(-50%) !important;
  }
}

/* Notebook baixo: reduz células sem remover nenhum comando. */
@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #topbar {
    top: 41px !important;
    grid-auto-rows: 37px !important;
    gap: 3px !important;
    padding: 7px !important;
    max-height: calc(100dvh - 50px) !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 37px !important;
    min-height: 37px !important;
    padding-block: 2px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 20px !important;
    height: 20px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label { font-size: 7px !important; }
  html body.rush-hud-v3 #pk-hud,
  html body.rush-hud-v3 #game #player-panel {
    max-height: calc(100dvh - 218px) !important;
  }
  html body.rush-hud-v3 #game #chat { height: 196px !important; }
  html body.rush-hud-v3 #game #auto-panel { max-height: calc(100dvh - 292px) !important; }
  html body.rush-hud-v3 #game #capture-panel { max-height: 244px !important; }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    top: 35px !important;
    grid-auto-rows: 31px !important;
    gap: 2px !important;
    padding: 6px !important;
    max-height: calc(100dvh - 42px) !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 31px !important;
    min-height: 31px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 17px !important;
    height: 17px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label { font-size: 6.2px !important; }
}

/* Auto-Hunt: linguagem própria Laranja Neon, sem atalho de configurações no
   cabeçalho. IDs e eventos dos controles abaixo continuam exatamente iguais. */
html body.rush-hud-v3 #game #auto-panel {
  border: 1px solid rgba(255, 117, 22, .82) !important;
  border-radius: 14px !important;
  background: linear-gradient(150deg, rgba(37, 19, 8, .98), rgba(10, 14, 14, .99)) !important;
  box-shadow: 0 15px 34px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 126, 28, .12) inset, 0 0 24px rgba(255, 94, 5, .2) !important;
  color: #ffe4c4 !important;
}
html body.rush-hud-v3 #game #auto-panel .ap-title {
  min-height: 37px !important;
  margin: 0 0 8px !important;
  padding: 0 1px 8px !important;
  border-bottom: 1px solid rgba(255, 124, 28, .32) !important;
  color: #ffd095 !important;
  font: 900 13px/1 Inter, system-ui, sans-serif !important;
  letter-spacing: .25px !important;
  text-shadow: 0 0 10px rgba(255, 130, 25, .3) !important;
}
html body.rush-hud-v3 #game #auto-panel .ap-actions { gap: 5px !important; }
html body.rush-hud-v3 #game #auto-panel #ah-min {
  width: 28px !important; min-width: 28px !important; height: 27px !important; min-height: 27px !important;
  padding: 0 !important; border: 1px solid rgba(255, 137, 38, .52) !important; border-radius: 8px !important;
  background: rgba(255, 106, 8, .09) !important; color: #ffc57e !important; font-size: 16px !important;
}
html body.rush-hud-v3 #game #auto-panel #ah-min:hover { border-color: #ffd092 !important; background: rgba(255, 110, 8, .2) !important; box-shadow: 0 0 12px rgba(255, 104, 6, .24) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-body { padding-right: 2px !important; scrollbar-color: rgba(255, 118, 19, .66) transparent !important; }
html body.rush-hud-v3 #game #auto-panel .ah-body::-webkit-scrollbar-thumb { background: rgba(255, 119, 21, .52) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-cat { margin: 8px 2px 4px !important; color: #ffb966 !important; font: 900 10px/1 Inter, system-ui, sans-serif !important; letter-spacing: .7px !important; }
html body.rush-hud-v3 #game #auto-panel .ah-cat::after { background: linear-gradient(90deg, rgba(255, 119, 18, .56), transparent) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row {
  margin: 4px 0 !important; padding: 7px 8px !important; border: 1px solid rgba(143, 73, 28, .65) !important; border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(43, 22, 9, .72), rgba(12, 17, 17, .74)) !important;
}
html body.rush-hud-v3 #game #auto-panel .ah-row:hover { border-color: rgba(255, 139, 43, .76) !important; background: linear-gradient(135deg, rgba(75, 32, 7, .7), rgba(18, 18, 14, .82)) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row.on { border-color: rgba(255, 130, 26, .88) !important; background: linear-gradient(135deg, rgba(116, 46, 6, .38), rgba(42, 20, 7, .72)) !important; box-shadow: 0 0 13px rgba(255, 96, 4, .12), inset 0 0 15px rgba(255, 110, 5, .06) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-ic { filter: sepia(1) saturate(1.35) hue-rotate(335deg) brightness(1.12) !important; opacity: .78 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row.on .ah-ic { filter: none !important; opacity: 1 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-txt b { color: #d6b28e !important; font-weight: 800 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row.on .ah-txt b { color: #ffe1ba !important; }
html body.rush-hud-v3 #game #auto-panel .ah-desc { color: #9f7d60 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row.on .ah-desc { color: #efb77d !important; }
html body.rush-hud-v3 #game #auto-panel .ah-sw { border-color: #75401f !important; background: #21150e !important; }
html body.rush-hud-v3 #game #auto-panel .ah-sw::after { background: #9b785d !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row input[type=checkbox]:checked + .ah-sw { border-color: #ff8623 !important; background: linear-gradient(90deg, #8c3305, #d86109) !important; box-shadow: 0 0 11px rgba(255, 105, 5, .36) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-row input[type=checkbox]:checked + .ah-sw::after { background: #fff0d4 !important; box-shadow: 0 0 7px rgba(255, 210, 133, .72) !important; }
html body.rush-hud-v3 #game #auto-panel .ah-exp { color: #bc8655 !important; } html body.rush-hud-v3 #game #auto-panel .ah-exp:hover,html body.rush-hud-v3 #game #auto-panel .ah-row.exp .ah-exp { color: #ffc176 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-line span,html body.rush-hud-v3 #game #auto-panel .ah-check { color: #cca57f !important; }
html body.rush-hud-v3 #game #auto-panel .ah-line select { border-color: #70401f !important; border-radius: 6px !important; background: #120f0c !important; color: #ffe0bd !important; }
html body.rush-hud-v3 #game #auto-panel .ah-line select:focus { border-color: #ff851e !important; box-shadow: 0 0 0 2px rgba(255, 112, 5, .14) !important; outline: 0 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-bottom { border-top-color: rgba(255, 122, 24, .3) !important; color: #c99f79 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-oprow b,html body.rush-hud-v3 #game #auto-panel .ah-warn { color: #ffc06d !important; }
html body.rush-hud-v3 #game #auto-panel .ah-reset { border-color: rgba(255, 128, 26, .45) !important; background: rgba(255, 105, 5, .08) !important; color: #ffbd73 !important; }
html body.rush-hud-v3 #game #auto-panel .ah-bottom input[type=range] { accent-color: #ff7a15 !important; }
html body.rush-hud-v3 #game #auto-panel.min { border-color: rgba(255, 119, 22, .88) !important; background: rgba(28, 15, 8, .98) !important; box-shadow: 0 10px 26px rgba(0,0,0,.42),0 0 14px rgba(255,95,5,.2) !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-min { color: #ffcc8c !important; text-shadow: 0 0 9px rgba(255,125,20,.45) !important; font-size: 19px !important; }
/* Atalhos rápidos do Auto-Helper recolhido: o robô mantém os controles
   essenciais acessíveis, com o estado explícito de cada automação. */
html body.rush-hud-v3 #game #auto-panel.min { overflow: visible !important; }
html body.rush-hud-v3 #game #auto-panel #ah-mini-actions { display: none !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions {
  position: absolute !important; top: 0; right: calc(100% + 9px); z-index: 90;
  display: grid !important; width: 212px; box-sizing: border-box; gap: 6px; padding: 8px;
  border: 1px solid rgba(255, 124, 24, .82); border-radius: 11px;
  background: linear-gradient(145deg, rgba(43,22,9,.98), rgba(9,14,14,.99));
  box-shadow: 0 13px 30px rgba(0,0,0,.58), 0 0 18px rgba(255,98,4,.2), inset 0 1px rgba(255,201,135,.1);
  pointer-events: auto !important;
}
html body.rush-hud-v3 #game #auto-panel.min.mini-shortcuts-left #ah-mini-actions { right: auto; left: calc(100% + 9px); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 0 1px 5px; border-bottom: 1px solid rgba(255,125,22,.3); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header b { color: #ffc479; font: 900 8px/1 Inter,system-ui,sans-serif; letter-spacing: .55px; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header small { color: #b48d69; font: 700 7px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle {
  display: grid; grid-template-columns: 15px minmax(0,1fr) auto; align-items: center; gap: 3px; min-width: 0; min-height: 28px; padding: 4px 5px;
  border: 1px solid rgba(116,62,31,.7); border-radius: 6px; background: rgba(6,10,10,.62); color: #a98768; cursor: pointer; text-align: left;
}
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle:hover { border-color: rgba(255,145,48,.8); background: rgba(94,39,7,.46); }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on { border-color: rgba(255,131,27,.88); background: linear-gradient(135deg, rgba(131,51,5,.52), rgba(61,29,8,.72)); box-shadow: inset 0 0 9px rgba(255,101,4,.12),0 0 8px rgba(255,101,4,.1); color: #ffe0b8; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle i { font-style: normal; font-size: 11px; filter: saturate(1.1); }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle span { overflow: hidden; font: 800 8px/1 Inter,system-ui,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle b { padding: 2px 3px; border-radius: 4px; background: rgba(88,56,35,.5); color: #b78f6e; font: 900 6px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on b { background: rgba(255,121,13,.2); color: #ffd08c; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle:disabled { opacity: .55; cursor: wait; }
@media (max-width:640px) { html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions { width: 196px; } }

/* Regra terminal: nenhuma camada desktop ou mobile pode limitar a moldura
   antes do cálculo em JS. A barra inteira é reduzida como uma peça só;
   Configurações e Sair permanecem, portanto, dentro do retângulo. */
html body.rush-hud-v3:not(.topbar-hidden) #game #topbar {
  width: max-content !important;
  max-width: none !important;
  transform: translateX(-50%) scale(var(--rush-topbar-scale, 1)) !important;
  transform-origin: top center !important;
}

/* Meus Pokémons e Sistemas é um atalho principal, não um item de submenu.
   Mantém rigorosamente a mesma caixa das categorias ao lado. */
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn {
  order: 0 !important;
  display: grid !important;
  box-sizing: border-box !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 43px !important;
  min-height: 43px !important;
  max-height: 43px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid rgba(255, 142, 45, .26) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .025) !important;
  color: #ffd7ad !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn .hud-outline-icon {
  width: 21px !important;
  min-width: 21px !important;
  height: 21px !important;
  color: #ff790d !important;
}
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn .tb-label { display: none !important; }
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn:hover,
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn:focus-visible,
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn.active {
  border-color: #ff790d !important;
  background: rgba(255, 94, 8, .11) !important;
  box-shadow: 0 0 12px rgba(255, 91, 11, .42) !important;
  transform: none !important;
}
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn[data-tooltip]::after {
  content: attr(data-tooltip) !important;
  left: 0 !important;
  bottom: -33px !important;
  z-index: 240 !important;
  padding: 5px 8px !important;
  border: 1px solid #ff790d !important;
  border-radius: 6px !important;
  background: linear-gradient(145deg, #21140d, #0d0d0e) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 9px rgba(255, 91, 12, .38) !important;
  color: #ffe0c1 !important;
  font: 800 11px/1 system-ui, sans-serif !important;
  letter-spacing: .15px !important;
  white-space: nowrap !important;
}

/* Tablet, notebook compacto e celular: dock inferior completo. */
@media (max-width: 1279px), (pointer: coarse) {
  :root { --rush-hud-dock-h: 100px; }

  html body.rush-hud-v3 #game #topbar {
    inset: auto 6px 6px 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100px !important;
    max-height: 100px !important;
    display: grid !important;
    grid-template-columns: repeat(13, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 42px) !important;
    grid-auto-flow: row !important;
    gap: 4px !important;
    padding: 6px !important;
    overflow: visible !important;
    border-radius: 16px !important;
  }

  html body.rush-hud-v3 #game #topbar .rush-dock-brand { display: none !important; }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip {
    top: -13px;
    width: 54px;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 3px 2px 2px !important;
    border-radius: 9px !important;
    overflow: hidden !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    flex: 0 0 auto;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    display: block !important;
    max-width: 100%;
    font-size: clamp(6.2px, 1.12vw, 8.2px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body.rush-hud-v3 #game #topbar .tb::after,
  html body.rush-hud-v3 #game #topbar .rush-dock-brand {
    display: none !important;
  }

  html body.rush-hud-v3 #game #mob-fabs {
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    display: grid !important;
    place-items: center;
  }

  html body.rush-hud-v3 #pk-hud {
    inset: 7px auto auto 7px !important;
    max-height: calc(100dvh - 126px) !important;
    overflow: auto;
  }

  html body.rush-hud-v3 #game #minimap,
  html body.rush-hud-v3 #game #mm-show {
    display: none !important;
  }

  html body.rush-hud-v3.show-map #game #minimap {
    inset: 50px 68px auto auto !important;
    display: block !important;
    width: 206px !important;
    max-width: calc(100vw - 84px) !important;
    max-height: calc(100dvh - 174px) !important;
    overflow: hidden;
    z-index: 72 !important;
  }

  html body.rush-hud-v3.show-map #game #minimap #mm-canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  html body.rush-hud-v3 #game #auto-panel,
  html body.rush-hud-v3 #game #capture-panel,
  html body.rush-hud-v3 #game #chat {
    display: none !important;
  }

  html body.rush-hud-v3.show-auto #game #auto-panel,
  html body.rush-hud-v3.show-cap #game #capture-panel,
  html body.rush-hud-v3.show-chat #game #chat {
    top: auto !important;
    right: 70px !important;
    bottom: 112px !important;
    left: 8px !important;
    width: min(440px, calc(100vw - 86px)) !important;
    max-width: none !important;
    max-height: calc(100dvh - 126px) !important;
    transform: none !important;
    z-index: 72 !important;
  }

  html body.rush-hud-v3.show-auto #game #auto-panel { display: flex !important; }
  html body.rush-hud-v3.show-cap #game #capture-panel { display: block !important; overflow-y: auto; }
  html body.rush-hud-v3.show-chat #game #chat { display: flex !important; }

  html body.rush-hud-v3 #game #mini-hunt,
  html body.rush-hud-v3 #game #coords {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.rush-hud-v3 #game #zone-label {
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    right: 74px !important;
    bottom: auto !important;
    left: 290px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* Prioridade final: o lançador minimizado e seus atalhos não podem ser
   afetados pelas regras legadas do HUD compacto declaradas acima. */
html body.rush-hud-v3 #game #auto-panel.min { overflow: visible !important; border-color: rgba(255,119,22,.88) !important; background: rgba(28,15,8,.98) !important; box-shadow: 0 10px 26px rgba(0,0,0,.42),0 0 14px rgba(255,95,5,.2) !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-min { color:#ffcc8c !important; text-shadow:0 0 9px rgba(255,125,20,.45) !important; font-size:19px !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions { position:absolute !important; top:0; right:calc(100% + 9px); z-index:90; display:grid !important; width:212px; box-sizing:border-box; gap:6px; padding:8px; border:1px solid rgba(255,124,24,.82); border-radius:11px; background:linear-gradient(145deg,rgba(43,22,9,.98),rgba(9,14,14,.99)); box-shadow:0 13px 30px rgba(0,0,0,.58),0 0 18px rgba(255,98,4,.2),inset 0 1px rgba(255,201,135,.1); pointer-events:auto !important; }
html body.rush-hud-v3 #game #auto-panel.min.mini-shortcuts-left #ah-mini-actions { right:auto; left:calc(100% + 9px); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header { display:flex; align-items:baseline; justify-content:space-between; gap:5px; padding:0 1px 5px; border-bottom:1px solid rgba(255,125,22,.3); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header b { color:#ffc479; font:900 8px/1 Inter,system-ui,sans-serif; letter-spacing:.55px; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header small { color:#b48d69; font:700 7px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle { display:grid; grid-template-columns:15px minmax(0,1fr) auto; align-items:center; gap:3px; min-width:0; min-height:28px; padding:4px 5px; border:1px solid rgba(116,62,31,.7); border-radius:6px; background:rgba(6,10,10,.62); color:#a98768; cursor:pointer; text-align:left; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle:hover { border-color:rgba(255,145,48,.8); background:rgba(94,39,7,.46); }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on { border-color:rgba(255,131,27,.88); background:linear-gradient(135deg,rgba(131,51,5,.52),rgba(61,29,8,.72)); box-shadow:inset 0 0 9px rgba(255,101,4,.12),0 0 8px rgba(255,101,4,.1); color:#ffe0b8; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle i { font-style:normal; font-size:11px; filter:saturate(1.1); }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle span { overflow:hidden; font:800 8px/1 Inter,system-ui,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle b { padding:2px 3px; border-radius:4px; background:rgba(88,56,35,.5); color:#b78f6e; font:900 6px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on b { background:rgba(255,121,13,.2); color:#ffd08c; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle:disabled { opacity:.55; cursor:wait; }
@media (max-width:640px) { html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions { width:196px; } }

/* Posição final dos painéis de hunt — mantida ao fim do arquivo para vencer
   todos os breakpoints e layouts legados acima. */
@media (min-width:1280px) and (pointer:fine) {
  html body.rush-hud-v3.rush-hunt-zone #game #auto-panel {
    inset:78px auto auto 14px !important;
    width:270px !important;
    max-height:calc(100dvh - 98px) !important;
    display:flex !important;
    z-index:72 !important;
  }
  html body.rush-hud-v3.rush-hunt-zone #game #capture-panel {
    inset:auto 16px 16px auto !important;
    width:282px !important;
    max-width:calc(100vw - 32px) !important;
    display:flex !important;
    z-index:72 !important;
  }
}

/* O modal é irmão de #game; por isso a barra dos sistemas precisa de escopo
   próprio. Sem estas regras ela herdava os botões nativos e empilhava as abas. */
#modal.pokemon-system-modal .pmi-system-tabs {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  align-items:stretch !important;
  gap:7px !important;
  margin:0 0 13px !important;
  padding:7px !important;
  border:1px solid rgba(255,128,20,.52) !important;
  border-radius:11px !important;
  background:linear-gradient(105deg,rgba(53,23,7,.96),rgba(17,14,11,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,206,142,.09),0 8px 20px rgba(0,0,0,.24) !important;
}
#modal.pokemon-system-modal .pmi-system-tab {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  min-height:39px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:7px 5px !important;
  border:1px solid rgba(235,105,10,.48) !important;
  border-radius:8px !important;
  background:linear-gradient(145deg,rgba(35,22,14,.98),rgba(13,15,15,.98)) !important;
  color:#ffd4a6 !important;
  font:800 10px/1 Inter,system-ui,sans-serif !important;
  letter-spacing:.05px !important;
  white-space:nowrap !important;
  text-align:center !important;
  text-overflow:ellipsis !important;
  cursor:pointer !important;
}
#modal.pokemon-system-modal .pmi-system-tab > span { flex:0 0 auto; font-size:14px !important; line-height:1 !important; }
#modal.pokemon-system-modal .pmi-system-tab:hover { border-color:#ff9b32 !important; background:rgba(96,40,7,.72) !important; color:#fff0dc !important; transform:translateY(-1px); }
#modal.pokemon-system-modal .pmi-system-tab.active { border-color:#ffc163 !important; background:linear-gradient(135deg,#ffbc50,#f26800) !important; box-shadow:0 0 13px rgba(255,106,0,.28),inset 0 1px rgba(255,239,193,.45) !important; color:#251104 !important; }
/* Regra final: o conteúdo do modal não está dentro de #game e a Box possui
   regras próprias para botões. Aplicar no #modal-body impede colunas estreitas
   ou botões sobrepostos mesmo quando a aba troca o conteúdo da janela. */
#modal-body .pmi-system-tabs {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  position:relative !important;
  gap:7px !important;
}
#modal-body .pmi-system-tabs .pmi-system-tab {
  display:flex !important;
  position:relative !important;
  float:none !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:auto !important;
  min-height:39px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  word-break:normal !important;
}
#modal-body .pmi-embedded-system { position:relative; min-width:0; }
/* Reaproveita os três sistemas antigos sem permitir que seus backdrops criem
   uma segunda janela: ficam contidos logo abaixo da barra de abas. */
#modal-body .pmi-embedded-overlay {
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  width:100% !important;
  min-height:0 !important;
  margin:0 !important;
  background:transparent !important;
}
#modal-body .pmi-embedded-overlay .rr-box,
#modal-body .pmi-embedded-overlay .gx-win,
#modal-body .pmi-embedded-overlay .nt-box,
#modal-body .pmi-embedded-overlay .nt2-box {
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  box-sizing:border-box !important;
  margin:0 !important;
}
#modal-body .pmi-embedded-overlay .nt-back { display:none !important; }
#modal-body .pmi-embedded-overlay .gx-win { transform:none !important; }

/* Natureza dentro da Central de Sistemas — acabamento Laranja Neon. */
#modal-body .pmi-embedded-overlay.nt-root .nt2-box {
  color:#f5e7d8 !important;
  background:radial-gradient(520px 190px at 8% 0,rgba(255,109,0,.17),transparent 66%),linear-gradient(145deg,#19120d,#090e10 74%) !important;
  border:1px solid rgba(255,130,22,.62) !important;
  border-top:2px solid #ff8b1b !important;
  border-radius:12px !important;
  box-shadow:inset 0 1px rgba(255,221,175,.1),0 0 20px rgba(255,98,0,.12) !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-box header {
  padding:13px 54px 12px 15px !important;
  border-bottom-color:rgba(255,128,20,.3) !important;
  background:linear-gradient(100deg,rgba(102,39,4,.6),transparent 72%) !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-box header b { color:#ffc06a !important; font-size:20px !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-box header span,
#modal-body .pmi-embedded-overlay.nt-root .nt2-box header aside { color:#caa37e !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-box header aside strong { color:#ffbf68 !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-close { color:#d69a62 !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-close:hover { color:#fff0dd !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-tabs { padding:9px 14px 1px !important; gap:6px !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-tabs button {
  min-height:32px !important;
  padding:0 11px !important;
  border-color:rgba(255,128,21,.42) !important;
  border-radius:7px !important;
  background:#14110e !important;
  color:#d9b18b !important;
  font-size:11px !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-tabs button.on {
  border-color:#ff9a32 !important;
  background:linear-gradient(135deg,#ff9a28,#e85700) !important;
  box-shadow:0 0 12px rgba(255,102,0,.24) !important;
  color:#281103 !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-box main { padding:10px 14px 15px !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-search {
  border-color:rgba(255,128,21,.43) !important;
  border-radius:8px !important;
  background:#0c0f10 !important;
  color:#ffe5c6 !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-search:focus { border-color:#ff8a16 !important; box-shadow:0 0 0 2px rgba(255,110,0,.14) !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-card,
#modal-body .pmi-embedded-overlay.nt-root .nt2-groups section,
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollpoke,
#modal-body .pmi-embedded-overlay.nt-root .nt2-resultcard {
  border-color:rgba(255,126,20,.3) !important;
  background:linear-gradient(145deg,#1d1510,#101314) !important;
  box-shadow:inset 0 1px rgba(255,211,160,.035) !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-card:hover { border-color:#ff8b20 !important; box-shadow:0 0 13px rgba(255,94,0,.14) !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-card small,
#modal-body .pmi-embedded-overlay.nt-root .nt2-card p,
#modal-body .pmi-embedded-overlay.nt-root .nt2-read { color:#c29c78 !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-card h3,
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollpoke h2,
#modal-body .pmi-embedded-overlay.nt-root .nt2-result-nature { color:#ffba63 !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-actions button,
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollactions .gold,
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollactions .free {
  border-color:#ff9a2f !important;
  background:linear-gradient(135deg,#ffad42,#f05a00) !important;
  color:#281103 !important;
  box-shadow:0 4px 12px rgba(255,100,0,.18) !important;
}
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollactions .diamond { border-color:#73c7ff !important; background:linear-gradient(135deg,#42a9ff,#2856d8) !important; color:#fff !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-rollactions .back { border-color:rgba(255,128,21,.34) !important; background:#17120f !important; color:#e8c5a0 !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-groups h4,
#modal-body .pmi-embedded-overlay.nt-root .nt2-row span { color:#ffc06b !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-row i { color:#ff9c8c !important; }
#modal-body .pmi-embedded-overlay.nt-root .nt2-neutral>b { border-color:rgba(255,128,21,.34) !important; background:#1b130f !important; color:#e7c39e !important; }
@media (max-width:760px) {
  #modal.pokemon-system-modal .pmi-system-tabs { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:5px !important; padding:6px !important; }
  #modal.pokemon-system-modal .pmi-system-tab { min-height:35px !important; padding:6px 3px !important; font-size:9px !important; gap:3px !important; }
  #modal.pokemon-system-modal .pmi-system-tab > span { font-size:12px !important; }
}

/* A seta de ocultar participa da largura real da barra em qualquer desktop.
   Antes ela ficava absoluta à direita: em larguras intermediárias não era
   medida pelo ajuste proporcional e acabava visualmente fora da moldura. */
@media (min-width: 701px) {
  html body.rush-hud-v3 #game #topbar > #topbar-collapse {
    flex: 0 0 43px !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-collapse {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    order: 22 !important;
    flex: 0 0 43px !important;
    width: 43px !important;
    height: 43px !important;
    margin-left: 5px !important;
    transform: none !important;
  }
}

/* Largura final do HUD superior. Não reserve mais espaço para os painéis
   laterais antigos: a barra calcula a própria largura e, se necessário, é
   reduzida de forma proporcional pelo hud-layout.js. Assim nenhum botão sai
   da moldura arredondada em 1024p, 1366p ou telas ultrawide. */
html body.rush-hud-v3 #game #topbar {
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  gap: 5px !important;
  transform-origin: top center !important;
}
html body.rush-hud-v3:not(.topbar-hidden) #game #topbar {
  transform: translateX(-50%) scale(var(--rush-topbar-scale, 1)) !important;
}
html body.rush-hud-v3 #game #topbar > .hud-nav-group,
html body.rush-hud-v3 #game #topbar > .hud-pokemon-system-btn,
html body.rush-hud-v3 #game #topbar > .hud-diamond-btn,
html body.rush-hud-v3 #game #topbar > .hud-quick-travel,
html body.rush-hud-v3 #game #topbar > .hud-system-actions,
html body.rush-hud-v3 #game #topbar > #topbar-collapse {
  flex: 0 0 auto !important;
}

/* Auto-Helper é exclusivo de áreas de hunt. Em cidade/PZ não fica visível nem
   deixa um atalho clicável; o estado vem da regra autoritativa do servidor. */
html body.rush-hud-v3:not(.rush-hunt-zone) #game #auto-panel,
html body.rush-hud-v3:not(.rush-hunt-zone) #game #mob-fabs .fab[data-show="auto"] {
  display:none !important;
  pointer-events:none !important;
}

/* Painéis contextuais de hunt: Auto-Hunt no alto à esquerda e Captura embaixo
   à direita. As regras ficam no fim do layout para vencer posições antigas e
   continuam condicionadas à classe autoritativa rush-hunt-zone. */
@media (min-width:1280px) and (pointer:fine) {
  html body.rush-hud-v3.rush-hunt-zone #game #auto-panel {
    inset:78px auto auto 14px !important;
    width:270px !important;
    max-height:calc(100dvh - 98px) !important;
    display:flex !important;
    z-index:72 !important;
  }
  html body.rush-hud-v3.rush-hunt-zone #game #capture-panel {
    inset:auto 16px 16px auto !important;
    width:282px !important;
    max-width:calc(100vw - 32px) !important;
    display:flex !important;
    z-index:72 !important;
  }
}

/* Prioridade final no desktop: reduz a largura que os blocos antigos ainda
   redefiniam mais abaixo no arquivo. */
@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #chat.cv2-on:not(.cv2-big) {
    width:clamp(360px,22vw,420px) !important;
    max-width:clamp(360px,22vw,420px) !important;
  }
}

/* Chat V2 compacto: sem ícones nas abas e com a mesma linguagem Laranja Neon
   da barra superior. Esta camada final vence os layouts legados responsivos. */
html body.rush-hud-v3 #game #chat.cv2-on:not(.cv2-big) {
  width:clamp(360px,22vw,420px) !important;
  max-width:calc(100vw - 18px) !important;
}
html body.rush-hud-v3 #game #chat.cv2-on {
  border-color:rgba(255,106,0,.78) !important;
  background:linear-gradient(150deg,rgba(11,13,16,.97),rgba(17,14,11,.97)) !important;
  box-shadow:0 8px 26px rgba(0,0,0,.5),0 0 16px rgba(255,106,0,.15) !important;
}
html body.rush-hud-v3 #game #chat .cv2-tabs { border-bottom-color:rgba(255,106,0,.3) !important; }
html body.rush-hud-v3 #game #chat .cv2-ct {
  color:#e1b786 !important; border-color:transparent !important;
  background:rgba(255,106,0,.045) !important;
}
html body.rush-hud-v3 #game #chat .cv2-ct:hover {
  color:#ffe5c7 !important; border-color:rgba(255,106,0,.55) !important;
  background:rgba(255,106,0,.13) !important;
}
html body.rush-hud-v3 #game #chat .cv2-ct.on {
  color:#2a1003 !important; border-color:#ff7b16 !important;
  background:linear-gradient(135deg,#ffb144,#ff6413) !important;
  box-shadow:0 0 10px rgba(255,106,0,.22) !important;
}
html body.rush-hud-v3 #game #chat .cv2-szb {
  color:#ffab5a !important; border-color:rgba(255,106,0,.48) !important;
  background:rgba(255,106,0,.08) !important;
}
html body.rush-hud-v3 #game #chat .cv2-szb:hover { color:#fff0df !important; border-color:#ff8a22 !important; background:rgba(255,106,0,.2) !important; }
html body.rush-hud-v3 #game #chat .cv2-sep { background:rgba(255,106,0,.4) !important; }

/* Escala final do chat: leitura suficiente, sem ocupar o mapa. */
html body.rush-hud-v3 #game #chat.cv2-on:not(.cv2-big) {
  width:clamp(340px,21vw,390px) !important;
  min-width:340px !important;
  max-width:calc(100vw - 16px) !important;
  height:220px !important;
  min-height:220px !important;
  max-height:220px !important;
}
html body.rush-hud-v3 #game #chat.cv2-on .cv2-tabs { min-height:27px !important; padding:3px 5px !important; gap:2px !important; }
html body.rush-hud-v3 #game #chat.cv2-on .cv2-ct { padding:2px 6px !important; font-size:10px !important; line-height:1.4 !important; }
html body.rush-hud-v3 #game #chat.cv2-on .cv2-szb { width:22px !important; height:22px !important; margin-left:auto !important; position:sticky !important; right:0 !important; z-index:2 !important; font-size:12px !important; }
html body.rush-hud-v3 #game #chat.cv2-on .chat-input { min-height:38px !important; padding:4px 6px !important; gap:5px !important; }
html body.rush-hud-v3 #game #chat.cv2-on #chat-text { min-height:29px !important; height:29px !important; padding:4px 7px !important; font-size:11px !important; }
html body.rush-hud-v3 #game #chat.cv2-on .cv2-emo { width:27px !important; height:27px !important; font-size:13px !important; }
html body.rush-hud-v3 #game #chat.cv2-on #chat-send { min-width:50px !important; height:29px !important; padding:0 8px !important; font-size:10px !important; }
html body.rush-hud-v3 #game #chat.cv2-on .cv2-reply {
  width:18px !important; height:18px !important; margin-left:3px !important; padding:0 !important;
  justify-content:center !important; border-color:rgba(255,106,0,.5) !important;
  background:rgba(255,106,0,.1) !important; color:#ffad5a !important; font-size:11px !important; line-height:1 !important;
}
html body.rush-hud-v3 #game #chat.cv2-on .cv2-msg:hover .cv2-reply { border-color:#ff8a22 !important; background:rgba(255,106,0,.2) !important; }
html body.rush-hud-v3 #game #chat.cv2-on.cv2-mini {
  width:112px !important; min-width:112px !important; max-width:112px !important;
  height:34px !important; min-height:34px !important; max-height:34px !important;
  border-color:rgba(255,106,0,.72) !important;
}
html body.rush-hud-v3 #game #chat.cv2-on.cv2-mini .cv2-mini-launcher {
  height:34px !important; padding:0 8px !important; gap:5px !important;
  background:linear-gradient(100deg,rgba(24,16,10,.98),rgba(14,13,12,.98)) !important;
  color:#ffd2a2 !important; font-size:10px !important;
}
html body.rush-hud-v3 #game #chat.cv2-on.cv2-mini .cv2-mini-ic { font-size:13px !important; }
html body.rush-hud-v3 #game #chat.cv2-on.cv2-mini .cv2-mini-count { min-width:17px !important; padding:2px 4px !important; background:#ff7818 !important; color:#281004 !important; font-size:8px !important; }

/* Camada final: regras antigas de dock não podem ocultar as etiquetas dos
   atalhos quando a tela está em uma resolução menor. */
html body.rush-hud-v3 #game #topbar [data-tooltip],
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title] {
  position: relative;
}
html body.rush-hud-v3 #game #topbar [data-tooltip]::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]::after {
  display: none !important;
}
html body.rush-hud-v3 #game #topbar [data-tooltip]:hover::after,
html body.rush-hud-v3 #game #topbar [data-tooltip]:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]:hover::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[title]:focus-visible::after {
  display: block !important;
}
html body.rush-hud-v3 #game #topbar .hud-collapse {
  background: rgba(13, 18, 23, .72) !important;
  box-shadow: inset 0 0 10px rgba(255, 188, 126, .06), 0 3px 10px rgba(0, 0, 0, .28) !important;
}
html body.rush-hud-v3 #game #topbar .hud-collapse:hover {
  background: rgba(28, 34, 40, .84) !important;
}

/* Prioridade final para as etiquetas próprias de Diamantes/Configurações/Sair. */
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:hover::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:focus-visible::after {
  display: none !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb:focus-visible .hud-hover-label {
  display: block !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn,
html body.rush-hud-v3 #game #topbar .hud-system-btn,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
  overflow: visible !important;
}

/* Mobile: controles compactos e sempre encostados na HUD correspondente.
   Esta camada fica no fim do arquivo para prevalecer sobre os layouts antigos. */
@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.42) !important;
    touch-action: manipulation !important;
  }

  /* A alÃ§a do menu inferior toca a borda superior do prÃ³prio menu. */
  html body.rush-hud-v3 #game #mobile-dock-toggle {
    bottom: calc(var(--rush-hud-dock-h, 84px) - 10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle {
    bottom: calc(3px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* A alÃ§a lateral fica imediatamente ao lado dos atalhos rÃ¡pidos. */
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(54px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--rush-hud-dock-h, 84px) + 4px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle {
    right: calc(3px + env(safe-area-inset-right, 0px)) !important;
  }

  /* BotÃµes do dock precisam receber toque mesmo em navegadores mobile. */
  html body.rush-hud-v3 #game #topbar .tb,
  html body.rush-hud-v3 #game #mob-fabs .fab {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  /* Janela modal comum: limita a altura Ã  viewport e deixa sÃ³ o conteÃºdo rolar. */
  #modal-bg #modal {
    width: min(720px, calc(100vw - 14px)) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
  }
  #modal-bg #modal-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  html body.rush-hud-v3 #game #mobile-dock-toggle {
    bottom: calc(var(--rush-hud-dock-h, 82px) - 9px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    bottom: calc(var(--rush-hud-dock-h, 82px) + 3px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ========================================================================
   HUD MOBILE — controles de recolher e leitura compacta.
   Este bloco fica no fim para prevalecer sobre as variantes legadas do HUD.
   ======================================================================== */
@media (max-width: 1279px), (pointer: coarse) {
  /* Painel do treinador minimizado: sprite + barras, sem textos colidindo. */
  html body.rush-hud-v3 #pk-hud.min {
    width: 218px !important;
    min-width: 218px !important;
    max-width: calc(100vw - 20px) !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 6px !important;
    overflow: hidden !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-team {
    display: none !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon::before {
    display: block !important;
    top: 4px !important;
    right: 28px !important;
    font-size: 8px !important;
    padding: 2px 5px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon-info {
    display: block !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 4px 72px 0 2px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon-name,
  html body.rush-hud-v3 #pk-hud.min .pkh-rar {
    display: none !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon-sub {
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-mon-sub span { display: none !important; }
  html body.rush-hud-v3 #pk-hud.min .pkh-mon-sub span:first-child { display: inline-flex !important; gap: 3px; color: #dce8f6; }
  html body.rush-hud-v3 #pk-hud.min .pkh-mon-sub b { font-size: 12px; color: #ffd964; }

  html body.rush-hud-v3 #pk-hud.min .pkh-frame {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-frame canvas {
    width: 34px !important;
    height: 34px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-bars {
    position: absolute !important;
    top: 50px !important;
    right: 7px !important;
    left: 54px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-bar {
    height: 11px !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-bar-lbl {
    display: flex !important;
    padding: 0 4px !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
  }

  html body.rush-hud-v3 #pk-hud.min .pkh-hp .pkh-hp-pct { display: none !important; }
  html body.rush-hud-v3 #pk-hud.min .pkh-xp .pkh-bar-lbl span:first-child { display: none !important; }

  html body.rush-hud-v3 #pk-hud.min .pkh-min {
    top: 5px !important;
    right: 5px !important;
  }

  /* Aba que recolhe a dock inferior e continua disponível fora dela. */
  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    position: fixed !important;
    z-index: 96 !important;
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 27px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 179, 35, .65);
    border-radius: 11px 11px 7px 7px;
    color: #ffe29b;
    background: linear-gradient(180deg, rgba(27, 35, 47, .98), rgba(10, 14, 20, .98));
    box-shadow: 0 7px 18px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .08);
    font: 900 20px/1 system-ui, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .22s ease, right .22s ease, bottom .22s ease, background .15s ease;
  }

  html body.rush-hud-v3 #game #mobile-dock-toggle {
    left: 50% !important;
    right: auto !important;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%);
  }

  html body.rush-hud-v3.mobile-dock-hidden #game #topbar {
    transform: translateY(calc(100% + 14px)) !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle {
    bottom: calc(2px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Atalhos contextuais em coluna e com uma aba independente para recolher. */
  html body.rush-hud-v3 #game #mob-fabs {
    position: fixed !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 90 !important;
    transition: transform .22s ease, opacity .18s ease !important;
  }

  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(64px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 11px 7px 7px 11px;
  }

  html body.rush-hud-v3.mobile-quick-hidden #game #mob-fabs {
    transform: translateX(calc(100% + 18px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle {
    right: calc(3px + env(safe-area-inset-right, 0px)) !important;
  }

  html body.rush-hud-v3 #game .mobile-hud-toggle:hover,
  html body.rush-hud-v3 #game .mobile-hud-toggle:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #38465b, #141c28);
    outline: none;
  }
}

@media (min-width: 1280px) and (pointer: fine) {
  #mobile-dock-toggle,
  #mobile-quick-toggle {
    display: none !important;
  }
}

/* Feed de ganhos: coluna alinhada ao minimapa, no espaÃ§o entre os atalhos
   superiores direitos e o mapa. Cresce de baixo para cima, mantendo os
   eventos mais recentes visÃ­veis quando a altura da tela for reduzida. */
@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #gain-feed {
    inset: auto 16px calc(50dvh + 10px) auto !important;
    width: var(--rush-desktop-map-w) !important;
    max-width: var(--rush-desktop-map-w) !important;
    max-height: calc(50dvh - 92px) !important;
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    overflow: hidden;
    contain: paint;
  }

  html body.rush-hud-v3 #game #gain-feed .gain {
    width: 100%;
    max-width: none;
    min-height: 25px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(8, 14, 22, .94);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: rushGainInRight .2s ease-out;
  }
}

@keyframes rushGainInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #gain-feed {
    bottom: calc(100dvh - 254px) !important;
    max-height: 172px !important;
    width: 160px !important;
    max-width: 160px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #gain-feed {
    bottom: calc(100dvh - 240px) !important;
    max-height: 158px !important;
    width: 126px !important;
    max-width: 126px !important;
  }

  html body.rush-hud-v3 #game #gain-feed .gain {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* Auto-Helper V7: Configurações é somente a engrenagem e o estado recolhido
   ocupa exatamente um botão. A engrenagem permanece ao lado, independente. */
html body.rush-hud-v3 #game #auto-panel #auto-settings {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings .tb-label {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #auto-panel.min {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 5px !important;
    overflow: visible !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min .ap-title {
    position: relative;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    cursor: pointer;
  }

  html body.rush-hud-v3 #game #auto-panel.min .ap-actions {
    position: relative;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    gap: 0 !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min #auto-settings {
    position: absolute !important;
    top: 0 !important;
    right: calc(100% + 8px) !important;
    left: auto !important;
    z-index: 2;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-color: rgba(255, 183, 50, .42) !important;
    background: rgba(8, 14, 12, .96) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min #ah-min {
    position: static !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
  }
}

/* Tablet em paisagem mantém o minimapa visível. */
@media (min-width: 900px) and (max-width: 1279px) and (min-height: 601px) {
  html body.rush-hud-v3 #game #minimap:not(.hidden) {
    inset: 52px 68px auto auto !important;
    display: block !important;
    width: 206px !important;
  }
}

/* Smartphone em paisagem: 25 comandos, duas linhas, sem rolagem. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  :root { --rush-hud-dock-h: 82px; }

  html body.rush-hud-v3 #game #topbar {
    height: 82px !important;
    max-height: 82px !important;
    grid-template-rows: repeat(2, 34px) !important;
    gap: 3px !important;
    padding: 5px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 34px !important;
    min-height: 34px !important;
    padding: 2px 1px 1px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    font-size: clamp(5.4px, .9vw, 7px) !important;
  }

  html body.rush-hud-v3 #game #mob-fabs {
    right: calc(7px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    flex-direction: row !important;
    gap: 5px !important;
  }

  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 18px !important;
  }

  html body.rush-hud-v3.show-map #game #minimap {
    top: 44px !important;
    right: 7px !important;
    bottom: auto !important;
    width: min(206px, 38vw) !important;
    max-height: calc(100dvh - 140px) !important;
  }

  html body.rush-hud-v3.show-auto #game #auto-panel,
  html body.rush-hud-v3.show-cap #game #capture-panel,
  html body.rush-hud-v3.show-chat #game #chat {
    top: 5px !important;
    right: auto !important;
    bottom: 94px !important;
    left: min(258px, calc(100vw - 330px)) !important;
    width: min(410px, calc(100vw - min(258px, calc(100vw - 330px)) - 220px)) !important;
    height: auto !important;
    max-height: none !important;
  }

  html body.rush-hud-v3.show-auto #game #zone-label,
  html body.rush-hud-v3.show-cap #game #zone-label,
  html body.rush-hud-v3.show-chat #game #zone-label,
  html body.rush-hud-v3.show-map #game #zone-label {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3 #game #zone-label {
    top: 6px !important;
    right: 220px !important;
    left: 258px !important;
    padding: 4px 8px;
    font-size: 9px;
  }
}

/* ==========================================================================
   HUD COMPACTO V6
   Desktop: uma única linha entre chat e captura. O acesso às configurações
   acompanha o Auto-Helper e o estado minimizado vira um lançador lateral.
   ========================================================================== */

html body.rush-hud-v3 #game #auto-panel .ap-title {
  gap: 8px;
}

html body.rush-hud-v3 #game #auto-panel .ap-title > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.rush-hud-v3 #game #auto-panel .ap-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings,
html body.rush-hud-v3 #game #auto-panel #auto-hunt-analysis {
  position: static !important;
  display: grid !important;
  place-items: center;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 183, 50, .24) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .045) !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings:hover,
html body.rush-hud-v3 #game #auto-panel #auto-settings:focus-visible,
html body.rush-hud-v3 #game #auto-panel #auto-hunt-analysis:hover,
html body.rush-hud-v3 #game #auto-panel #auto-hunt-analysis:focus-visible {
  border-color: rgba(255, 183, 50, .78) !important;
  background: rgba(255, 173, 35, .13) !important;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings img {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings .tb-label {
  display: none !important;
}

html body.rush-hud-v3 #game #auto-panel #auto-hunt-analysis {
  border-color: rgba(55, 208, 160, .28) !important;
  color: #d9f7ec !important;
  font-size: 10px !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}

html body.rush-hud-v3 #game #auto-panel #auto-settings:active,
html body.rush-hud-v3 #game #auto-panel #auto-hunt-analysis:active {
  transform: translateY(1px);
}

html body.rush-hud-v3 #game #auto-panel .hunt-mini-readout {
  display: none;
}

html body.rush-hud-v3 #game #auto-panel .hunt-analysis-glyph {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 18px;
  height: 18px;
  padding: 2px 2px 3px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(206, 225, 220, .68);
}

html body.rush-hud-v3 #game #auto-panel .hunt-analysis-glyph i {
  display: block;
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #21c785, #ffca38);
  box-shadow: 0 0 5px rgba(41, 218, 150, .22);
}

html body.rush-hud-v3 #game #auto-panel .hunt-analysis-glyph i:nth-child(1) { height: 6px; }
html body.rush-hud-v3 #game #auto-panel .hunt-analysis-glyph i:nth-child(2) { height: 12px; }
html body.rush-hud-v3 #game #auto-panel .hunt-analysis-glyph i:nth-child(3) { height: 9px; }

@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar {
    height: 62px !important;
    max-height: 62px !important;
    grid-template-columns: repeat(23, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 52px !important;
    min-height: 52px !important;
    padding: 4px 1px 3px !important;
    border-radius: 8px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 19px !important;
    min-width: 19px !important;
    height: 19px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    display: block !important;
    font-size: clamp(5.6px, .39vw, 7px) !important;
    line-height: 1.05 !important;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip {
    top: -12px;
    width: 48px;
  }

  html body.rush-hud-v3 #game #auto-panel.min {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 5px !important;
    overflow: visible !important;
    border-color: rgba(37, 214, 143, .62) !important;
    border-radius: 15px !important;
    background: rgba(8, 14, 12, .96) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34), 0 0 0 1px rgba(37, 214, 143, .12) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min > :not(.ap-title) {
    display: none !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min .ap-title {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    cursor: pointer;
  }

  html body.rush-hud-v3 #game #auto-panel.min .ap-title > span {
    display: none !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min .ap-actions {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    justify-content: center;
    gap: 0;
  }

  html body.rush-hud-v3 #game #auto-panel.min #auto-settings,
  html body.rush-hud-v3 #game #auto-panel.min #auto-hunt-analysis,
  html body.rush-hud-v3 #game #auto-panel.min #ah-min {
    display: grid !important;
    place-items: center;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 11px !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min #auto-settings {
    position: absolute !important;
    top: 0 !important;
    right: calc(200% + 16px) !important;
    left: auto !important;
    z-index: 2;
    border-color: rgba(255, 183, 50, .38) !important;
    background: rgba(8, 14, 12, .96) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min #auto-hunt-analysis {
    position: absolute !important;
    top: 0 !important;
    right: calc(100% + 8px) !important;
    left: auto !important;
    z-index: 2;
    border-color: rgba(55, 208, 160, .42) !important;
    background: rgba(8, 14, 12, .96) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min #ah-min {
    border: 1px solid rgba(37, 214, 143, .48) !important;
    background: linear-gradient(145deg, rgba(27, 150, 105, .28), rgba(9, 50, 38, .46)) !important;
    color: #74f0bc !important;
    font-size: 21px !important;
    line-height: 1 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live {
    --rush-hunt-live-w: clamp(256px, 18vw, 292px);
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-settings {
    right: calc(100% + var(--rush-hunt-live-w) + 16px) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-hunt-analysis.is-live {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: var(--rush-hunt-live-w) !important;
    min-width: var(--rush-hunt-live-w) !important;
    max-width: var(--rush-hunt-live-w) !important;
    padding: 0 10px !important;
    overflow: hidden;
    border-color: rgba(55, 208, 160, .62) !important;
    background: linear-gradient(145deg, rgba(9, 28, 23, .98), rgba(7, 15, 13, .98)) !important;
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-hunt-analysis .hunt-analysis-glyph {
    flex: 0 0 18px;
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-hunt-analysis .hunt-mini-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(5px, .55vw, 9px);
    min-width: 0;
    width: 100%;
    color: #dbe9e4;
    font: 750 clamp(8.5px, .52vw, 10px)/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: -.25px;
    white-space: nowrap;
  }

  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-time { color: #e8f2ef; }
  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-xp { color: #ffd863; }
  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-gold { color: #79e2a4; }
  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-kills { color: #ff9f9f; }
}

/* Fallback responsivo do card de Hunt Analyse. A regra anterior existia apenas
   em telas grandes, por isso o botao continuava vazio em notebook/mobile. */
html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live {
  --rush-hunt-live-w: min(292px, calc(100vw - 106px));
}

html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-settings {
  right: calc(100% + var(--rush-hunt-live-w) + 16px) !important;
}

html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-hunt-analysis.is-live {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  position: absolute !important;
  top: 0 !important;
  right: calc(100% + 8px) !important;
  left: auto !important;
  z-index: 3;
  width: var(--rush-hunt-live-w) !important;
  min-width: var(--rush-hunt-live-w) !important;
  max-width: var(--rush-hunt-live-w) !important;
  padding: 0 10px !important;
  overflow: hidden;
  border-color: rgba(55, 208, 160, .62) !important;
  background: linear-gradient(145deg, rgba(9, 28, 23, .98), rgba(7, 15, 13, .98)) !important;
}

html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-hunt-analysis .hunt-mini-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(5px, .55vw, 9px);
  min-width: 0;
  width: 100%;
  color: #dbe9e4;
  font: 750 clamp(8.5px, .52vw, 10px)/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.25px;
  white-space: nowrap;
}

html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-time { color: #e8f2ef; }
html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-xp { color: #ffd863; }
html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-gold { color: #79e2a4; }
html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live .hm-kills { color: #ff9f9f; }

@media (max-width: 520px) {
  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live {
    --rush-hunt-live-w: min(222px, calc(100vw - 84px));
  }
  html body.rush-hud-v3 #game #auto-panel.min.hunt-mini-live #auto-settings {
    display: none !important;
  }
}

@media (min-width: 1280px) and (max-width: 1499px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar > .tb .tb-label {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar > .tb {
    padding: 0 !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #topbar {
    height: auto !important;
    max-height: none !important;
    grid-template-rows: none !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 44px !important;
    min-height: 44px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    top: 6px !important;
    height: auto !important;
    max-height: none !important;
    grid-template-rows: none !important;
    padding: 5px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 40px !important;
    min-height: 40px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
  }
}

/* Última camada do HUD: etiquetas especiais sempre sobre as regras legadas. */
html body.rush-hud-v3 #game #topbar .hud-diamond-btn,
html body.rush-hud-v3 #game #topbar .hud-system-btn,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
  overflow: visible !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible::after {
  display: none !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn .hud-hover-label {
  position: absolute !important;
  left: 0 !important;
  bottom: -33px !important;
  z-index: 240 !important;
  display: none !important;
  width: max-content !important;
  max-width: 180px !important;
  padding: 5px 8px !important;
  border: 1px solid #ff790d !important;
  border-radius: 6px !important;
  background: linear-gradient(145deg, #21140d, #0d0d0e) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 9px rgba(255, 91, 12, .38) !important;
  color: #ffe0c1 !important;
  font: 800 11px/1 system-ui, sans-serif !important;
  letter-spacing: .15px !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn .hud-hover-label {
  border-color: #4ddfff !important;
  background: linear-gradient(145deg, #0b2835, #0b1118) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .62), 0 0 10px rgba(58, 219, 255, .5) !important;
  color: #aaf4ff !important;
}
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover .hud-hover-label,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible .hud-hover-label {
  display: block !important;
}
/* Submenus usam exatamente a mesma etiqueta visual dos botões principais. */
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[data-tooltip]::after {
  left: 0 !important;
  bottom: -33px !important;
  z-index: 240 !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  font: 800 11px/1 system-ui, sans-serif !important;
}
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[data-tooltip]:hover::after,
html body.rush-hud-v3 #game #topbar .hud-category-menu .tb[data-tooltip]:focus-visible::after {
  display: block !important;
}
/* Diamantes, Configurações e Sair voltam a usar o mesmo tooltip do CP. */
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-diamond-btn:focus-visible::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:hover::after,
html body.rush-hud-v3 #game #topbar .hud-system-btn:focus-visible::after {
  display: block !important;
}

/* Dock categorizado: sobrescreve a grade legada até em telas baixas. */
html body.rush-hud-v3 #game #topbar {
  top: 12px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: fit-content !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  transform: translateX(-50%) !important;
}
@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar { max-width: calc(100vw - 660px) !important; }
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
    display: flex !important;
    width: 70px !important;
    height: 58px !important;
    min-height: 58px !important;
  }
}
@media (max-width: 700px), (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar { top: 6px !important; width: calc(100vw - 12px) !important; max-width: none !important; }
  html body.rush-hud-v3 #game #topbar .hud-category { height: 37px; }
  html body.rush-hud-v3 #game #topbar .hud-category span { display: none; }
}

/* A camada final vence o antigo dock em grade do layout desktop. */
@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar {
    top: 12px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: fit-content !important;
    max-width: calc(100vw - 660px) !important;
    height: auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    transform: translateX(-50%) !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
    display: flex !important;
    width: 70px !important;
    height: 58px !important;
    min-height: 58px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    top: 6px !important;
    width: fit-content !important;
    height: auto !important;
    max-height: none !important;
    padding: 5px !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-category { height: 37px; }
  html body.rush-hud-v3 #game #topbar .hud-category span { display: none; }
}

/* O gerenciador de HUD fixa painéis sem transform; o dock continua centralizado. */
html body.rush-hud-v3 #game #topbar {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* Camada final mobile: vence as regras legadas anteriores. */
@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.42) !important;
    touch-action: manipulation !important;
  }
  html body.rush-hud-v3 #game #mobile-dock-toggle {
    bottom: calc(var(--rush-hud-dock-h, 84px) - 10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle {
    bottom: calc(3px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(54px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--rush-hud-dock-h, 84px) + 4px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle {
    right: calc(3px + env(safe-area-inset-right, 0px)) !important;
  }
  html body.rush-hud-v3 #game #topbar .tb,
  html body.rush-hud-v3 #game #mob-fabs .fab {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  #modal-bg #modal {
    width: min(720px, calc(100vw - 14px)) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
  }
  #modal-bg #modal-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  html body.rush-hud-v3 #game #mobile-dock-toggle {
    bottom: calc(var(--rush-hud-dock-h, 82px) - 9px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    bottom: calc(var(--rush-hud-dock-h, 82px) + 3px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Controles recolhíveis: declaração final para vencer todas as grades móveis. */
@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #topbar { transition: transform .22s ease !important; }
  html body.rush-hud-v3.mobile-dock-hidden #game #topbar {
    transform: translateY(calc(100% + 14px)) !important;
    pointer-events: none !important;
  }
  html body.rush-hud-v3 #game #mob-fabs {
    position: fixed !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 90 !important;
    transition: transform .22s ease, opacity .18s ease !important;
  }
  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mob-fabs {
    transform: translateX(calc(100% + 18px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    display: grid !important;
    z-index: 96 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    touch-action: manipulation !important;
  }
  html body.rush-hud-v3 #game #mobile-dock-toggle { bottom: calc(var(--rush-hud-dock-h, 84px) - 10px + env(safe-area-inset-bottom, 0px)) !important; }
  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle { bottom: calc(3px + env(safe-area-inset-bottom, 0px)) !important; }
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(54px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--rush-hud-dock-h, 84px) + 4px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle { right: calc(3px + env(safe-area-inset-right, 0px)) !important; }
}

/* Final da cascata mobile: preserva os controles mesmo após as regras V6. */
@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #topbar {
    transition: transform .22s ease !important;
  }

  html body.rush-hud-v3.mobile-dock-hidden #game #topbar {
    transform: translateY(calc(100% + 14px)) !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3 #game #mob-fabs {
    position: fixed !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 90 !important;
    transition: transform .22s ease, opacity .18s ease !important;
  }

  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  html body.rush-hud-v3.mobile-quick-hidden #game #mob-fabs {
    transform: translateX(calc(100% + 18px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    display: grid !important;
    z-index: 96 !important;
  }

  html body.rush-hud-v3 #game #mobile-dock-toggle {
    bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle {
    bottom: calc(2px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(64px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle {
    right: calc(3px + env(safe-area-inset-right, 0px)) !important;
  }
}

/* ==========================================================================
   CAPTURA V8 — conteúdo variável sem estourar o painel
   Bolas ocupam uma única faixa horizontal; somente a lista de Pokémon cresce
   e rola verticalmente. Cabeçalho e limites externos permanecem sempre fixos.
   ========================================================================== */

html body.rush-hud-v3 #game #capture-panel,
html body.rush-hud-v3.show-cap #game #capture-panel {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

/* A Captura só pode existir dentro de uma hunt configurada. Esta regra usa a
   mesma especificidade do layout responsivo para vencer os display:flex que
   ele aplica ao painel em desktop/mobile. */
html body.rush-hud-v3:not(.rush-capture-zone) #game #capture-panel,
html body.rush-hud-v3:not(.rush-capture-zone).show-cap #game #capture-panel {
  display: none !important;
  pointer-events: none !important;
}

html body.rush-hud-v3 #game #capture-panel .cp-head {
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 6px;
}

html body.rush-hud-v3 #game #capture-panel .cp-balls {
  display: flex !important;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-height: 54px;
  margin: 0 0 6px;
  padding: 0 0 4px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 105, 24, .62) rgba(255, 255, 255, .04);
}

html body.rush-hud-v3 #game #capture-panel .cp-balls::-webkit-scrollbar {
  height: 5px;
}

html body.rush-hud-v3 #game #capture-panel .cp-balls::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 105, 24, .62);
}

html body.rush-hud-v3 #game #capture-panel .cp-ball {
  flex: 0 0 50px;
  min-width: 50px;
  min-height: 42px;
  padding: 3px 2px;
  box-sizing: border-box;
  scroll-snap-align: start;
}

html body.rush-hud-v3 #game #capture-panel .cp-ball canvas {
  width: 17px;
  height: 17px;
}

html body.rush-hud-v3 #game #capture-panel .cp-ball b {
  font-size: 9.5px;
}

html body.rush-hud-v3 #game #capture-panel .cp-list {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding-right: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 105, 24, .62) rgba(255, 255, 255, .04);
}

html body.rush-hud-v3 #game #capture-panel .cp-list:empty {
  display: none;
}

html body.rush-hud-v3 #game #capture-panel .cp-list::-webkit-scrollbar {
  width: 6px;
}

html body.rush-hud-v3 #game #capture-panel .cp-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 105, 24, .62);
}

html body.rush-hud-v3 #game #capture-panel .cp-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 6px;
  box-sizing: border-box;
}

html body.rush-hud-v3 #game #capture-panel .cp-row canvas {
  width: 34px;
  height: 34px;
}

html body.rush-hud-v3 #game #capture-panel .cp-row .nm {
  min-width: 0;
  overflow: hidden;
  line-height: 1.16;
}

html body.rush-hud-v3 #game #capture-panel .cp-row .nm > b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.rush-hud-v3 #game #capture-panel .cp-row .nm .dim {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 9px;
  line-height: 1.2;
}

html body.rush-hud-v3 #game #capture-panel .cp-row .btn {
  align-self: center;
  min-width: 52px;
  max-width: 60px;
  padding: 6px 8px;
  white-space: nowrap;
}

/* Abas da HUD de captura: bolas/alvos ficam separados dos consumíveis. */
html body.rush-hud-v3 #game #capture-panel .cp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 0 0 auto;
  margin: 0 0 6px;
}

html body.rush-hud-v3 #game #capture-panel .cp-tab {
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 126, 24, .28);
  border-radius: 7px;
  background: rgba(255, 106, 0, .045);
  color: #dca06a;
  font: 800 9px/1 system-ui, sans-serif;
  cursor: pointer;
}

html body.rush-hud-v3 #game #capture-panel .cp-tab.active {
  border-color: #ff8a2a;
  background: linear-gradient(135deg, rgba(255, 116, 16, .3), rgba(75, 29, 4, .5));
  color: #fff0dc;
  box-shadow: inset 0 0 0 1px rgba(255, 205, 145, .16), 0 0 10px rgba(255, 106, 0, .18);
}

html body.rush-hud-v3 #game #capture-panel .cp-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

html body.rush-hud-v3 #game #capture-panel .cp-view.hidden { display: none !important; }

html body.rush-hud-v3 #game #capture-panel .cp-consumables {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 105, 24, .62) rgba(255, 255, 255, .04);
}

html body.rush-hud-v3 #game #capture-panel .cp-consumable {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 45px;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 126, 24, .23);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(255, 106, 0, .075), rgba(5, 8, 11, .6));
  color: #ffe6cb;
}

html body.rush-hud-v3 #game #capture-panel .cp-consumable.revive {
  border-color: rgba(104, 237, 150, .55);
  background: linear-gradient(120deg, rgba(55, 206, 113, .13), rgba(5, 16, 11, .72));
  box-shadow: inset 0 0 12px rgba(64, 221, 126, .08);
}

html body.rush-hud-v3 #game #capture-panel .cp-consumable canvas,
html body.rush-hud-v3 #game #capture-panel .cp-consumable > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

html body.rush-hud-v3 #game #capture-panel .cp-consumable-info { min-width: 0; }
html body.rush-hud-v3 #game #capture-panel .cp-consumable-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
html body.rush-hud-v3 #game #capture-panel .cp-consumable-info small { display: block; margin-top: 2px; color: #c3936c; font-size: 8.5px; line-height: 1.15; }
html body.rush-hud-v3 #game #capture-panel .cp-consumable strong { color: #ffd18e; font-size: 12px; white-space: nowrap; }
html body.rush-hud-v3 #game #capture-panel .cp-empty { padding: 14px 8px; color: #a5866b; font-size: 10px; text-align: center; }

html body.rush-hud-v3 #game #capture-panel .cp-use {
  min-width: 42px;
  min-height: 25px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 133, 37, .74);
  border-radius: 6px;
  background: linear-gradient(135deg, #ff941f, #e65b00);
  color: #1c0d03;
  font: 900 9px/1 system-ui, sans-serif;
  cursor: pointer;
}

html body.rush-hud-v3 #game #capture-panel .cp-use.revive {
  border-color: rgba(101, 243, 158, .82);
  background: linear-gradient(135deg, #76eb9e, #23a45f);
  color: #06150c;
}

html body.rush-hud-v3 #game #capture-panel .cp-use:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.5); }

.cp-revive-picker {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 4, 7, .72);
  backdrop-filter: blur(4px);
}

.cp-revive-dialog {
  width: min(390px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(93, 235, 148, .78);
  border-radius: 13px;
  background: linear-gradient(155deg, #102219, #070d0a);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .7), 0 0 24px rgba(62, 224, 128, .23);
}

.cp-revive-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1px 1px 10px; border-bottom: 1px solid rgba(102, 237, 155, .22); }
.cp-revive-dialog header b { display: block; color: #caffdb; font-size: 14px; }
.cp-revive-dialog header small { display: block; margin-top: 3px; color: #8bcfa6; font-size: 10px; }
.cp-revive-dialog header button { width: 28px; height: 28px; border: 1px solid rgba(102, 237, 155, .4); border-radius: 7px; background: rgba(34, 137, 78, .12); color: #caffdb; font-size: 20px; line-height: 1; cursor: pointer; }
.cp-revive-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-top: 10px; }
.cp-revive-poke { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 59px; padding: 7px; border: 1px solid rgba(103, 236, 158, .28); border-radius: 9px; background: rgba(34, 159, 81, .075); color: #e6fff0; text-align: left; cursor: pointer; }
.cp-revive-poke:hover:not(:disabled) { border-color: #79efaa; background: rgba(46, 188, 95, .18); box-shadow: 0 0 13px rgba(66, 225, 123, .18); }
.cp-revive-poke:disabled { opacity: .5; cursor: wait; }
.cp-revive-poke canvas { width: 42px; height: 42px; image-rendering: pixelated; }
.cp-revive-poke b { display: block; overflow: hidden; color: #e9fff0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cp-revive-poke small { display: block; margin-top: 3px; color: #9bd7b0; font-size: 9px; }

@media (max-width: 420px) { .cp-revive-team { grid-template-columns: 1fr; } }

/* Desmaio: seleção visual de Revive substitui o antigo <select>. */
#faint-box .fb-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 152px;
  margin: 0 0 8px;
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 127, 25, .62) transparent;
}

#faint-box .fb-poke {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 139, 36, .27);
  border-radius: 8px;
  background: rgba(255, 111, 10, .055);
  color: #ffe4c8;
  text-align: left;
  cursor: pointer;
}

#faint-box .fb-poke:hover,
#faint-box .fb-poke.selected {
  border-color: #ff9a39;
  background: linear-gradient(135deg, rgba(255, 116, 16, .27), rgba(76, 29, 4, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 207, 151, .14), 0 0 10px rgba(255, 106, 0, .18);
}

#faint-box .fb-poke canvas { width: 38px; height: 38px; image-rendering: pixelated; filter: grayscale(.45); }
#faint-box .fb-poke.selected canvas { filter: none; }
#faint-box .fb-poke b { display: block; overflow: hidden; color: #fff0dd; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#faint-box .fb-poke small { display: block; margin-top: 2px; color: #cda27b; font-size: 8.5px; }

@media (max-width: 390px) { #faint-box .fb-team { grid-template-columns: 1fr; max-height: 145px; } }

@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3.show-cap #game #capture-panel {
    height: auto;
    max-height: calc(100dvh - 126px) !important;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  html body.rush-hud-v3.show-cap #game #capture-panel {
    height: auto !important;
    max-height: none !important;
  }

  html body.rush-hud-v3 #game #capture-panel .cp-head {
    min-height: 28px;
    margin-bottom: 4px;
    padding-bottom: 4px;
  }

  html body.rush-hud-v3 #game #capture-panel .cp-balls {
    min-height: 43px;
    max-height: 47px;
    margin-bottom: 4px;
  }

  html body.rush-hud-v3 #game #capture-panel .cp-ball {
    flex-basis: 46px;
    min-width: 46px;
    min-height: 37px;
  }

  html body.rush-hud-v3 #game #capture-panel .cp-row {
    min-height: 52px;
    padding: 4px 5px;
  }
}

/* O canto do chat deixou de ser uma área invisível de redimensionamento. */
html body.rush-hud-v3 #game #chat .chat-rz {
  display: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* Somente a alça dedicada do HUD move a Captura. O cabeçalho volta a ser uma
   área normal e reserva largura suficiente para exibir "Captura" por inteiro. */
html body.rush-hud-v3 #game #capture-panel .cp-head,
html body.rush-hud-v3 #game #capture-panel .cp-head.drag-handle {
  cursor: default !important;
  gap: 5px;
}

html body.rush-hud-v3 #game #capture-panel .cp-title {
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: clamp(11.5px, .72vw, 13px);
  letter-spacing: .25px;
}

html body.rush-hud-v3 #game #capture-panel .cp-mgr {
  min-width: 28px;
  padding-inline: 5px;
}

html body.rush-hud-v3 #game #capture-panel #cp-count {
  max-width: 76px;
  padding-inline: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Atalhos de viagem: Centro PokÃ©mon e Mercado deixam o Auto-Helper e
   formam um painel central independente, sempre acessÃ­vel e arrastÃ¡vel. */
html body.rush-hud-v3 #game #rush-travel-actions {
  position: fixed !important;
  z-index: 48;
  width: 286px !important;
  min-width: 286px !important;
  max-width: 286px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 103, 19, .62) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(160deg, rgba(18, 27, 34, .97), rgba(7, 12, 17, .98)) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 0 1px rgba(37, 214, 143, .08) !important;
  backdrop-filter: blur(8px);
}

html body.rush-hud-v3 #game #rush-travel-actions::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #25d68f, #ffb323 58%, #ff6713);
  opacity: .9;
  pointer-events: none;
}

html body.rush-hud-v3 #game #rush-travel-actions > .ah-go {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 11px !important;
  color: #f4f7fb !important;
  font-family: inherit;
  font-size: 19px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, filter .15s ease,
    box-shadow .15s ease;
}

html body.rush-hud-v3 #game #rush-travel-actions > .ah-go small {
  display: block;
  color: inherit;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .05px;
  white-space: nowrap;
}

html body.rush-hud-v3 #game #rush-travel-actions > .rush-travel-city {
  border: 1px solid rgba(37, 214, 143, .5) !important;
  background:
    linear-gradient(145deg, rgba(22, 113, 91, .62), rgba(10, 42, 45, .82)) !important;
  box-shadow: inset 0 0 0 1px rgba(127, 240, 198, .05);
}

html body.rush-hud-v3 #game #rush-travel-actions > .rush-travel-market {
  border: 1px solid rgba(255, 179, 35, .54) !important;
  background:
    linear-gradient(145deg, rgba(150, 83, 16, .64), rgba(54, 29, 11, .84)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 221, 126, .05);
}

html body.rush-hud-v3 #game #rush-travel-actions > .ah-go:is(:hover, :focus-visible) {
  transform: translateY(-1px);
  filter: brightness(1.16);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}

html body.rush-hud-v3 #game #rush-travel-actions > .ah-go:active {
  transform: translateY(1px);
}

html body.rush-hud-v3 #game #rush-travel-actions > .ah-go:focus-visible {
  outline: 2px solid #ffb323;
  outline-offset: 2px;
}

html body.rush-hud-v3 #game #rush-travel-actions > .rush-drag-grip {
  top: -12px;
}

html body.rush-hud-v3 #game #rush-travel-actions > .rush-drag-grip::before {
  background: rgba(255, 179, 35, .62);
}

@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #rush-travel-actions {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 4px !important;
  }

  html body.rush-hud-v3 #game #rush-travel-actions > .ah-go {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 17px !important;
  }

  html body.rush-hud-v3 #game #rush-travel-actions > .ah-go small {
    font-size: 10px !important;
  }
}

@media (max-width: 740px) {
  html body.rush-hud-v3 #game #rush-travel-actions {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border-radius: 13px !important;
  }

  html body.rush-hud-v3 #game #rush-travel-actions > .ah-go {
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 5px !important;
    font-size: 16px !important;
  }

  html body.rush-hud-v3 #game #rush-travel-actions > .ah-go small {
    font-size: 9px !important;
  }
}

/* Chat com canais fixos, Guilda e conversas privadas: a largura maior reserva
   espaÃ§o para as abas padrÃ£o; quando novas PMs surgem, a faixa rola sem
   comprimir, ocultar ou quebrar os botÃµes. */
html body.rush-hud-v3 #game #chat .cv2-tabs {
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 8px;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 179, 35, .45) transparent;
}

html body.rush-hud-v3 #game #chat .cv2-tabs::-webkit-scrollbar {
  display: block !important;
  height: 3px;
}

html body.rush-hud-v3 #game #chat .cv2-tabs::-webkit-scrollbar-track {
  background: transparent;
}

html body.rush-hud-v3 #game #chat .cv2-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 179, 35, .42);
}

html body.rush-hud-v3 #game #chat .cv2-tabs .cv2-ct {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #chat .cv2-tabs {
    min-height: 34px;
    padding: 6px 8px 3px;
  }

  html body.rush-hud-v3 #game #chat .cv2-tabs .cv2-ct {
    padding-inline: 9px;
  }
}

/* Celular muito estreito: gaveta à esquerda; HUD recolhe durante o uso. */
@media (orientation: landscape) and (max-width: 740px) and (max-height: 600px) {
  html body.rush-hud-v3.show-auto #game #auto-panel,
  html body.rush-hud-v3.show-cap #game #capture-panel,
  html body.rush-hud-v3.show-chat #game #chat {
    left: 5px !important;
    width: calc(100vw - 225px) !important;
    min-width: 240px !important;
  }

  html body.rush-hud-v3.show-auto #pk-hud,
  html body.rush-hud-v3.show-cap #pk-hud,
  html body.rush-hud-v3.show-chat #pk-hud,
  html body.rush-hud-v3.show-map #pk-hud {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label { font-size: 5.2px !important; }
}

@media (orientation: portrait) and (pointer: coarse) and (max-width: 700px) {
  html body.rush-hud-v3 #rotate-hint { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rush-drag-grip::before { transition: none; }
}

/* ================================================================
   DESKTOP HORIZONTAL V5
   Chat e captura formam as laterais; os 25 comandos ocupam o centro.
   Regras no fim do arquivo para substituir com segurança o layout antigo.
   ================================================================ */
@media (min-width: 1280px) and (pointer: fine) {
  :root {
    --rush-hud-dock-h: 0px;
    --rush-desktop-chat-w: clamp(440px, 28vw, 560px);
    --rush-desktop-side-w: clamp(282px, 19vw, 350px);
    --rush-desktop-auto-w: clamp(270px, 18vw, 336px);
    --rush-desktop-map-w: clamp(206px, 12.8vw, 240px);
  }

  html body.rush-hud-v3 #game #topbar {
    inset: auto calc(var(--rush-desktop-side-w) + 20px) 6px calc(var(--rush-desktop-chat-w) + 12px) !important;
    width: calc(100vw - var(--rush-desktop-chat-w) - var(--rush-desktop-side-w) - 32px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - var(--rush-desktop-chat-w) - var(--rush-desktop-side-w) - 32px) !important;
    height: 124px !important;
    max-height: 124px !important;
    display: grid !important;
    grid-template-columns: repeat(13, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 5px !important;
    padding: 6px !important;
    overflow: visible !important;
    border-radius: 17px !important;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip {
    top: -13px;
    width: 54px;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip::before {
    background: rgba(255, 179, 35, .65);
  }

  html body.rush-hud-v3 #game #topbar .rush-dock-brand {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 4px 2px 3px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  /* Etiquetas de hover precisam escapar do botão, sem alterar o dock. */
  html body.rush-hud-v3 #game #topbar .hud-diamond-btn,
  html body.rush-hud-v3 #game #topbar .hud-system-btn,
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
    overflow: visible !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    flex: 0 0 auto;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    display: block !important;
    max-width: 100%;
    font-size: clamp(6.4px, .52vw, 8px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html body.rush-hud-v3 #game #mob-fabs {
    display: none !important;
  }

  html body.rush-hud-v3 #pk-hud,
  html body.rush-hud-v3 #game #player-panel {
    inset: 6px auto auto 6px !important;
    max-height: calc(100dvh - 152px) !important;
    overflow: auto;
  }

  html body.rush-hud-v3 #game #auto-panel {
    inset: 16px 16px auto auto !important;
    width: var(--rush-desktop-auto-w) !important;
    max-height: calc(50dvh - 32px) !important;
    display: flex !important;
  }

  html body.rush-hud-v3 #game #capture-panel {
    inset: auto 16px 16px auto !important;
    width: var(--rush-desktop-map-w) !important;
    max-width: var(--rush-desktop-map-w) !important;
    max-height: min(278px, calc(42dvh - 24px)) !important;
    display: block !important;
    overflow-y: auto;
  }

  html body.rush-hud-v3 #game #chat {
    inset: auto auto 6px 6px !important;
    width: var(--rush-desktop-chat-w) !important;
    height: clamp(220px, 30dvh, 270px) !important;
    max-width: var(--rush-desktop-chat-w) !important;
    max-height: calc(100dvh - 170px) !important;
    display: flex !important;
  }

  html body.rush-hud-v3 #game #minimap {
    inset: 50dvh 16px auto auto !important;
    width: var(--rush-desktop-map-w) !important;
    max-width: var(--rush-desktop-map-w) !important;
    max-height: 232px !important;
    overflow: hidden;
  }

  html body.rush-hud-v3 #game #minimap:not(.hidden) {
    display: block !important;
  }

  html body.rush-hud-v3 #game #minimap.hidden {
    display: none !important;
  }

  html body.rush-hud-v3 #game #mm-show:not(.hidden) {
    inset: 50dvh 16px auto auto !important;
    display: grid !important;
  }

  html body.rush-hud-v3 #game #minimap #mm-canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  html body.rush-hud-v3 #game #mini-hunt {
    inset: calc(50dvh - 128px) 16px auto auto !important;
    display: none !important;
  }

  html body.rush-hud-v3 #game #zone-label {
    top: 16px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    max-width: calc(100vw - 900px) !important;
    transform: translateX(-50%) !important;
  }

  html body.rush-hud-v3 #game #coords {
    bottom: 138px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #topbar {
    top: auto !important;
    bottom: 6px !important;
    height: 100px !important;
    max-height: 100px !important;
    grid-template-rows: repeat(2, 42px) !important;
    gap: 4px !important;
    padding: 6px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 42px !important;
    min-height: 42px !important;
    padding-block: 2px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label { font-size: 7px !important; }
  html body.rush-hud-v3 #pk-hud,
  html body.rush-hud-v3 #game #player-panel {
    max-height: calc(100dvh - 218px) !important;
  }
  html body.rush-hud-v3 #game #chat { height: 196px !important; }
  html body.rush-hud-v3 #game #auto-panel { max-height: calc(50dvh - 26px) !important; }
  html body.rush-hud-v3 #game #capture-panel { max-height: 168px !important; }

  html body.rush-hud-v3 #game #minimap {
    top: 264px !important;
    width: 160px !important;
    max-width: 160px !important;
    max-height: 150px !important;
  }

  html body.rush-hud-v3 #game #mm-show:not(.hidden) { top: 264px !important; }

  html body.rush-hud-v3 #game #mini-hunt {
    top: 264px !important;
    right: 184px !important;
  }

  html body.rush-hud-v3 #game #coords { bottom: 114px !important; }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    top: auto !important;
    bottom: 5px !important;
    height: 82px !important;
    max-height: 82px !important;
    grid-template-rows: repeat(2, 34px) !important;
    gap: 3px !important;
    padding: 5px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 34px !important;
    min-height: 34px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label { font-size: 6.2px !important; }
  html body.rush-hud-v3 #game #chat { height: 170px !important; }
  html body.rush-hud-v3 #game #auto-panel { max-height: 236px !important; }
  html body.rush-hud-v3 #game #capture-panel { max-height: 142px !important; }

  html body.rush-hud-v3 #game #minimap {
    top: 250px !important;
    width: 126px !important;
    max-width: 126px !important;
    max-height: 124px !important;
  }

  html body.rush-hud-v3 #game #mm-show:not(.hidden) { top: 250px !important; }

  html body.rush-hud-v3 #game #mini-hunt {
    top: 246px !important;
    right: 150px !important;
  }

  html body.rush-hud-v3 #game #coords { bottom: 96px !important; }
}

@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #topbar {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
  }
}

/* Coordenadas integradas ao minimapa; o antigo banner superior foi removido. */
html body.rush-hud-v3 #game #zone-label {
  display: none !important;
}

html body.rush-hud-v3 #game #minimap #coords.mm-coords {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  min-height: 23px;
  margin: 4px 0 0 !important;
  padding: 3px 5px !important;
  box-sizing: border-box;
  border: 1px solid rgba(54, 197, 138, .24) !important;
  border-radius: 7px !important;
  background: rgba(7, 12, 10, .88) !important;
  color: #a9f3d0 !important;
  font: 700 clamp(8px, .5vw, 9px)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace !important;
  letter-spacing: -.35px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

html body.rush-hud-v3 #game #capture-panel .cp-mgr {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 24px;
  padding: 2px 6px;
}

html body.rush-hud-v3 #game #capture-panel .cp-mgr-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
}

html body.rush-hud-v3 #game #world-chat-bubbles {
  position: fixed;
  inset: 0;
  z-index: 18;
  overflow: hidden;
  pointer-events: none;
}

html body.rush-hud-v3 #game .world-chat-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: max-content;
  padding: 7px 11px 8px;
  box-sizing: border-box;
  border: 2px solid #555;
  border-radius: 9px;
  background: linear-gradient(#fff, #ededed);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .32);
  color: #171717;
  font: 700 12px/1.18 Arial, Helvetica, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-align: center;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  filter: none;
  transform: none;
}

html body.rush-hud-v3 #game .world-chat-bubble span {
  display: block;
}

html body.rush-hud-v3 #game .world-chat-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  background: #ededed;
  transform: translateX(-50%) rotate(45deg);
}

html body.rush-hud-v3 #game .world-chat-bubble.vip {
  border-color: #b8860b;
  background: linear-gradient(#fff7d6, #ffe89a 50%, #f3c53f);
  box-shadow: 0 3px 10px rgba(190, 140, 20, .38);
  color: #3d2d00;
}

html body.rush-hud-v3 #game .world-chat-bubble.vip::after {
  border-color: #b8860b;
  background: #f3c53f;
}

/* Balões de chat em camada HTML: texto não passa mais pelo canvas escalado. */
html body.rush-hud-v3 #game .world-chat-bubble {
  transform: translate(-50%, -100%);
  padding: 6px 11px 7px;
  border-width: 2px;
  border-radius: 10px;
  color: #101827;
  font: 800 13px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html body.rush-hud-v3 #game .world-chat-bubble::after { bottom: -7px; }
html body.rush-hud-v3 #game .world-chat-bubble.admin { background:linear-gradient(#9f3542,#6d1827);border-color:#ffd1a3;color:#fff9ec;box-shadow:0 4px 13px #b8444b88; }
html body.rush-hud-v3 #game .world-chat-bubble.admin::after { background:#6d1827;border-color:#ffd1a3; }
html body.rush-hud-v3 #game .world-chat-bubble.tutor { background:linear-gradient(#377fca,#123d78);border-color:#a5e8ff;color:#f7fcff;box-shadow:0 4px 13px #429ee088; }
html body.rush-hud-v3 #game .world-chat-bubble.tutor::after { background:#123d78;border-color:#a5e8ff; }
html body.rush-hud-v3 #game .world-chat-bubble.streamer { background:linear-gradient(#a84ddd,#4d1f80);border-color:#f1c7ff;color:#fff8ff;box-shadow:0 4px 13px #af58e288; }
html body.rush-hud-v3 #game .world-chat-bubble.streamer::after { background:#4d1f80;border-color:#f1c7ff; }
html body.rush-hud-v3 #game .world-chat-bubble.vip { background:linear-gradient(#ffe99a,#d89516);border-color:#8d620b;color:#2f2100;box-shadow:0 4px 13px #e4af3188; }
html body.rush-hud-v3 #game .world-chat-bubble.vip::after { background:#d89516;border-color:#8d620b; }

@media (pointer:coarse) {
  html body.rush-hud-v3 #game .world-chat-bubble { font-size:14px; padding:6px 12px 7px; }
}

html body.rush-hud-v3.show-chat #game #minimap #coords.mm-coords {
  display: flex !important;
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #minimap #mm-canvas {
    height: 92px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #minimap #mm-canvas {
    height: 66px !important;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  html body.rush-hud-v3.show-map #game #minimap #mm-canvas {
    height: min(140px, calc(100dvh - 198px)) !important;
  }

  html body.rush-hud-v3 #game #minimap #coords.mm-coords {
    min-height: 20px;
    padding-block: 2px !important;
    font-size: 8px !important;
  }
}

/* Captura V10: esta regra fica depois de todas as variações de posição e
   garante que somente a lista interna role, sem reabrir o painel no mobile. */
html body.rush-hud-v3 #game #capture-panel {
  overflow: hidden !important;
}

@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #capture-panel {
    display: flex !important;
  }
}

@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3:not(.show-cap) #game #capture-panel {
    display: none !important;
  }

  html body.rush-hud-v3.show-cap #game #capture-panel {
    display: flex !important;
    max-height: calc(100dvh - 126px) !important;
    overflow: hidden !important;
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) {
  html body.rush-hud-v3.show-cap #game #capture-panel {
    max-height: none !important;
  }
}

/* HUD móvel final: fica depois das variações anteriores e antes do V6 desktop. */
@media (max-width: 1279px), (pointer: coarse) {
  html body.rush-hud-v3 #game #topbar { transition: transform .22s ease !important; }
  html body.rush-hud-v3.mobile-dock-hidden #game #topbar {
    transform: translateY(calc(100% + 14px)) !important;
    pointer-events: none !important;
  }
  html body.rush-hud-v3 #game #mob-fabs {
    position: fixed !important;
    right: calc(8px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    z-index: 90 !important;
    transition: transform .22s ease, opacity .18s ease !important;
  }
  html body.rush-hud-v3 #game #mob-fabs .fab {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mob-fabs {
    transform: translateX(calc(100% + 18px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.rush-hud-v3 #game #mobile-dock-toggle,
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    display: grid !important;
    z-index: 96 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    touch-action: manipulation !important;
  }
  html body.rush-hud-v3 #game #mobile-dock-toggle { bottom: calc(var(--rush-hud-dock-h, 84px) - 10px + env(safe-area-inset-bottom, 0px)) !important; }
  html body.rush-hud-v3.mobile-dock-hidden #game #mobile-dock-toggle { bottom: calc(3px + env(safe-area-inset-bottom, 0px)) !important; }
  html body.rush-hud-v3 #game #mobile-quick-toggle {
    right: calc(54px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(var(--rush-hud-dock-h, 84px) + 4px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.rush-hud-v3.mobile-quick-hidden #game #mobile-quick-toggle { right: calc(3px + env(safe-area-inset-right, 0px)) !important; }
}

/* V6 precisa encerrar a cascata: as regras V5 acima preservam os demais
   painéis, enquanto estas substituem exclusivamente a antiga grade 13 x 2. */
@media (min-width: 1280px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar {
    top: 12px !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: fit-content !important;
    max-width: calc(100vw - 660px) !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    gap: 6px !important;
    padding: 6px !important;
    transform: translateX(-50%) !important;
    border-radius: 16px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  /* Categorias expansíveis: os atalhos aparecem sem alargar a barra central. */
  html body.rush-hud-v3 #game #topbar .hud-nav-group { position: relative; display: block !important; }
  html body.rush-hud-v3 #game #topbar .hud-category { display: grid !important; }
  /* Rótulos não fazem parte da barra: a categoria só exibe o ícone outline. */
  html body.rush-hud-v3 #game #topbar .hud-category .hud-cat-text {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-category .hud-cat-icon {
    display: grid !important;
    width: 22px !important;
    height: 22px !important;
    place-items: center;
  }
  html body.rush-hud-v3 #game #topbar .hud-category-menu {
    position: absolute !important;
    display: none !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-nav-group.open .hud-category-menu { display: grid !important; }

  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb {
    position: relative !important;
    display: grid !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px !important;
    place-items: center;
    border-radius: 9px !important;
  }

  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb .hud-outline-icon {
    width: 21px !important;
    min-width: 21px !important;
    height: 21px !important;
  }

  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb-label {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar .rush-drag-grip { display: none !important; }

  html body.rush-hud-v3 #game #topbar .hud-outline-icon,
  html body.rush-hud-v3 #game #topbar-toggle .hud-outline-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #ff790d;
    filter: drop-shadow(0 0 4px rgba(255, 95, 10, .58));
    pointer-events: none;
  }
  html body.rush-hud-v3 #game #topbar .hud-category .hud-outline-icon { width: 21px; height: 21px; }
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb .hud-outline-icon { width: 24px; height: 24px; }
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb.active {
    border-color: #ff790d !important;
    background: rgba(255, 94, 8, .15) !important;
    box-shadow: 0 0 14px rgba(255, 91, 11, .42), inset 0 0 0 1px rgba(255, 146, 48, .18);
  }
  html body.rush-hud-v3 #game #topbar .hud-category-menu .tb.active .hud-outline-icon { color: #ffc181; filter: drop-shadow(0 0 7px rgba(255, 98, 11, .86)); }
  html body.rush-hud-v3 #game #topbar .hud-quick-travel {
    order: 20;
    display: flex;
    gap: 5px;
    margin-left: 5px;
    margin-right: 0;
    padding-left: 8px;
    padding-right: 0;
    border-left: 1px solid rgba(255, 108, 16, .65);
    border-right: 0;
  }
  /* Diamantes é um atalho principal: mesma caixa dos ícones da barra,
     com a cor azul-neon como único destaque. */
  html body.rush-hud-v3 #game #topbar .hud-diamond-btn {
    order: 10;
    flex: 0 0 42px;
    box-sizing: border-box !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    border-radius: 11px !important;
  }
  /* O divisor pertence ao lado direito do Market, antes de Configurações. */
  html body.rush-hud-v3 #game #topbar .hud-system-actions {
    order: 21;
    display: flex;
    gap: 5px;
    margin-left: 3px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 108, 16, .65);
  }
  html body.rush-hud-v3 #game #topbar .hud-system-btn {
    box-sizing: border-box !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    border-radius: 11px !important;
  }
  html body.rush-hud-v3 #game #topbar .hud-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    min-width: 54px;
    padding: 0 10px;
    border-color: rgba(255, 113, 18, .8);
    background: rgba(255, 94, 8, .035);
    color: #ff790d;
    font-size: 11px;
    text-shadow: none;
  }
  html body.rush-hud-v3 #game #topbar .hud-quick-btn span { color: #ff9a3d; font-weight: 800; }
  html body.rush-hud-v3 #game #topbar .hud-quick-btn:hover { background: rgba(255, 94, 8, .13); }
  html body.rush-hud-v3 #game #topbar .hud-collapse {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    flex: 0 0 43px;
    order: 22;
    display: grid;
    width: 43px;
    height: 43px;
    margin-left: 5px;
    padding-left: 0;
    place-items: center;
    transform: none;
    border: 1px solid rgba(255, 113, 18, .8);
    border-radius: 11px;
    background: rgba(255, 94, 8, .035);
    color: #ff790d;
    cursor: pointer;
  }
  html body.rush-hud-v3 #game #topbar .hud-collapse:hover { background: rgba(255, 94, 8, .13); box-shadow: 0 0 14px rgba(255, 91, 11, .45); }

  html body.rush-hud-v3.topbar-hidden #game #topbar {
    transform: translate(-50%, calc(-100% - 18px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.rush-hud-v3 #game #topbar-toggle {
    position: fixed;
    z-index: 160;
    top: 5px;
    left: 50%;
    width: 42px;
    height: 28px;
    display: none;
    place-items: center;
    transform: translateX(-50%);
    border: 1px solid #ff7f22;
    border-radius: 9px;
    background: #0c0e12;
    box-shadow: 0 0 14px rgba(255, 91, 11, .38);
    color: #ffad55;
    cursor: pointer;
    font: 900 18px/1 system-ui, sans-serif;
  }
  html body.rush-hud-v3.topbar-hidden #game #topbar-toggle { display: grid; }
  html body.rush-hud-v3 #game #topbar-toggle:hover { background: rgba(255, 92, 10, .12); color: #fff1e2; }
}

@media (min-width: 1280px) and (max-width: 1499px) and (pointer: fine) {
  html body.rush-hud-v3 #game #topbar .tb-label {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    padding: 0 !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 690px) {
  html body.rush-hud-v3 #game #topbar {
    height: 54px !important;
    max-height: 54px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 3px !important;
    padding: 5px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 44px !important;
    min-height: 44px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
  }
}

@media (min-width: 1280px) and (pointer: fine) and (max-height: 560px) {
  html body.rush-hud-v3 #game #topbar {
    height: 48px !important;
    max-height: 48px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    padding: 4px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb {
    height: 40px !important;
    min-height: 40px !important;
  }

  html body.rush-hud-v3 #game #topbar .tb-label {
    display: none !important;
  }

  html body.rush-hud-v3 #game #topbar .tb.ic img,
  html body.rush-hud-v3 #game #topbar .tb-symbol,
  html body.rush-hud-v3 #game #topbar .tb-emoji-icon {
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
  }
}

/* Atalhos do Auto-Helper minimizado: prevalece sobre os temas legados. */
html body.rush-hud-v3 #game #auto-panel.min { overflow:visible !important; border-color:rgba(255,119,22,.88) !important; background:rgba(28,15,8,.98) !important; box-shadow:0 10px 26px rgba(0,0,0,.42),0 0 14px rgba(255,95,5,.2) !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-min { color:#ffcc8c !important; text-shadow:0 0 9px rgba(255,125,20,.45) !important; font-size:19px !important; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions { position:absolute !important; top:0; right:calc(100% + 9px); z-index:90; display:grid !important; width:212px; box-sizing:border-box; gap:6px; padding:8px; border:1px solid rgba(255,124,24,.82); border-radius:11px; background:linear-gradient(145deg,rgba(43,22,9,.98),rgba(9,14,14,.99)); box-shadow:0 13px 30px rgba(0,0,0,.58),0 0 18px rgba(255,98,4,.2),inset 0 1px rgba(255,201,135,.1); pointer-events:auto !important; }
html body.rush-hud-v3 #game #auto-panel.min.mini-shortcuts-left #ah-mini-actions { right:auto; left:calc(100% + 9px); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header { display:flex; align-items:baseline; justify-content:space-between; gap:5px; padding:0 1px 5px; border-bottom:1px solid rgba(255,125,22,.3); }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header b { color:#ffc479; font:900 8px/1 Inter,system-ui,sans-serif; letter-spacing:.55px; }
html body.rush-hud-v3 #game #auto-panel.min #ah-mini-actions header small { color:#b48d69; font:700 7px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle { display:grid; grid-template-columns:15px minmax(0,1fr) auto; align-items:center; gap:3px; min-width:0; min-height:28px; padding:4px 5px; border:1px solid rgba(116,62,31,.7); border-radius:6px; background:rgba(6,10,10,.62); color:#a98768; cursor:pointer; text-align:left; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle:hover { border-color:rgba(255,145,48,.8); background:rgba(94,39,7,.46); }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on { border-color:rgba(255,131,27,.88); background:linear-gradient(135deg,rgba(131,51,5,.52),rgba(61,29,8,.72)); box-shadow:inset 0 0 9px rgba(255,101,4,.12),0 0 8px rgba(255,101,4,.1); color:#ffe0b8; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle i { font-style:normal; font-size:11px; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle span { overflow:hidden; font:800 8px/1 Inter,system-ui,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle b { padding:2px 3px; border-radius:4px; background:rgba(88,56,35,.5); color:#b78f6e; font:900 6px/1 Inter,system-ui,sans-serif; }
html body.rush-hud-v3 #game #auto-panel.min .ah-mini-toggle.on b { background:rgba(255,121,13,.2); color:#ffd08c; }
/* Central de sistemas: a navegação fica na própria janela de Meus Pokémons. */
html body.rush-hud-v3 #game .pmi-system-tabs {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
  margin:0 0 12px;
  padding:7px;
  border:1px solid rgba(255,126,22,.32);
  border-radius:12px;
  background:linear-gradient(120deg,rgba(42,20,9,.94),rgba(13,15,15,.96));
  box-shadow:inset 0 1px rgba(255,204,139,.05),0 7px 20px rgba(0,0,0,.2);
}
html body.rush-hud-v3 #game .pmi-system-tab {
  min-width:0;
  min-height:37px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
  padding:7px 6px;
  border:1px solid rgba(255,132,25,.31)!important;
  border-radius:8px;
  background:rgba(16,16,15,.94)!important;
  color:#d4b294!important;
  font:800 11px/1 Inter,system-ui,sans-serif;
  letter-spacing:.05px;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}
html body.rush-hud-v3 #game .pmi-system-tab > span { font-size:14px; line-height:1; }
html body.rush-hud-v3 #game .pmi-system-tab:hover {
  transform:translateY(-1px);
  border-color:#ff8b21!important;
  color:#ffe1bb!important;
  background:rgba(67,30,9,.78)!important;
}
html body.rush-hud-v3 #game .pmi-system-tab.active {
  border-color:#ff870f!important;
  color:#211005!important;
  background:linear-gradient(135deg,#ffbc51,#fa6900)!important;
  box-shadow:0 0 0 1px rgba(255,173,59,.2),0 0 15px rgba(255,99,0,.18);
}
html body.rush-hud-v3 #game .bst2 > .pmi-system-tabs,
html body.rush-hud-v3 #game .breeding-panel > .pmi-system-tabs { margin-bottom:14px; }
@media (max-width:760px) {
  html body.rush-hud-v3 #game .pmi-system-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:6px; }
  html body.rush-hud-v3 #game .pmi-system-tab { min-height:34px; font-size:10px; padding:6px 4px; }
}

/* Chat desktop: uma única âncora, compacta e encostada na tela. Regras antigas
   deslocavam a janela para depois do HUD ou aumentavam demais sua largura. */
@media (min-width:1280px) and (pointer:fine) {
  :root { --rush-desktop-chat-w:clamp(340px,20vw,390px); }
  html body.rush-hud-v3 #game #chat,
  html body.rush-hud-v3 #game #chat.cv2-on,
  html body.rush-hud-v3 #game #chat.cv2-big {
    top:auto !important;
    right:auto !important;
    bottom:0 !important;
    left:0 !important;
    width:var(--rush-desktop-chat-w) !important;
    min-width:0 !important;
    max-width:min(var(--rush-desktop-chat-w),calc(100vw - 12px)) !important;
  }
}
