/* Hunt & Rest — MyAAC theme (mobile-first) */

:root {
  --hr-bg: #050b18;
  --hr-bg-2: #0b1424;
  --hr-panel: rgba(12, 22, 40, 0.82);
  --hr-panel-border: rgba(120, 170, 255, 0.22);
  --hr-gold: #d4a017;
  --hr-gold-2: #f0c14b;
  --hr-gold-dark: #8a6508;
  --hr-gold-border: rgba(212, 160, 23, 0.42);
  --hr-gold-border-strong: rgba(240, 193, 75, 0.55);
  --hr-border-w: 2px;
  --hr-text: #eef3ff;
  --hr-muted: #9aa8c7;
  --hr-label: #8eb4e8;
  --hr-accent: #4d8dff;
  --hr-accent-2: #6aa8ff;
  --hr-row: rgba(8, 16, 32, 0.55);
  --hr-row-hover: linear-gradient(90deg, rgba(40, 78, 140, 0.55), rgba(28, 58, 110, 0.35));
  --hr-row-selected: linear-gradient(90deg, rgba(110, 78, 28, 0.72), rgba(70, 48, 16, 0.55));
  --hr-tab-active: linear-gradient(180deg, #3a6ec8 0%, #1e4a96 100%);
  --hr-tab-idle: rgba(10, 22, 44, 0.92);
  --hr-meter-track: rgba(0, 0, 0, 0.45);
  --hr-meter-fill: linear-gradient(90deg, #c88818, #f0c14b 55%, #ffe29a);
  --hr-online: #3dce7a;
  --hr-offline: #e35d5d;
  --hr-radius: 12px;
  --hr-radius-sm: 6px;
  --hr-header-h: 120px;
  --hr-font: "Manrope", system-ui, sans-serif;
  --hr-display: "Cinzel", Georgia, serif;
  /* Largo o bastante p/ monitores big; ainda com respiro nas laterais */
  --hr-container: 1680px;
  --hr-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* Véu leve na home; footer usa --hr-veil-footer (mais forte) */
  --hr-veil: rgba(4, 10, 18, 0.28);
  --hr-veil-footer: rgba(4, 10, 18, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #040a12;
}

body.hr-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--hr-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hr-text);
  background: #040a12;
}

.hr-main {
  flex: 1 0 auto;
}

/* Fundo sólido só como fallback; a arte fica em .hr-page-bg (home + internas) */
body.hr-body--home,
body.hr-body--inner {
  background: #040a12;
}

/*
 * Arte + véu leve em todas as telas.
 * Só o footer ganha véu mais opaco.
 */
.hr-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #040a12;
  background-image:
    linear-gradient(var(--hr-veil), var(--hr-veil)),
    url("images/hero.jpg");
  background-position: center top, center top;
  background-size: auto, 175% auto;
  background-repeat: no-repeat;
}

.hr-body .hr-header,
.hr-body .hr-main,
.hr-body .hr-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hr-gold-2);
  text-decoration: none;
}

a:hover {
  color: #ffe29a;
}

.hr-container {
  width: min(100% - 2rem, var(--hr-container));
  margin-inline: auto;
}

@media (min-width: 1400px) {
  .hr-container {
    width: min(100% - 3rem, var(--hr-container));
  }
}

/* ---------- Header ---------- */

.hr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--hr-header-h);
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.hr-header__inner,
.hr-header .hr-nav-toggle,
.hr-header .hr-logo,
.hr-header .hr-nav,
.hr-header .hr-dropdown {
  pointer-events: auto;
}

/* Header sticky transparente em todas as telas (arte por baixo) */
.hr-body .hr-header {
  position: sticky;
  top: 0;
  z-index: 300;
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  transition: background 0.2s ease, backdrop-filter 0.2s ease, border-color 0.2s ease;
}

.hr-body .hr-header.is-scrolled {
  background: rgba(5, 11, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 170, 255, 0.14);
}

/*
  Compensa o sticky: conteúdo sobe sob o header (home e internas),
  pra o menu flutuar sobre a arte igual na home.
*/
.hr-body--home .hr-home-scene,
.hr-body--inner .hr-page {
  margin-top: calc(var(--hr-header-h) * -1);
}

.hr-header,
.hr-header__inner {
  overflow: visible;
}

.hr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--hr-header-h);
  padding-block: 0.65rem;
}

.hr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.hr-logo:hover {
  opacity: 0.95;
}

.hr-logo__img {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(260px, 58vw);
  object-fit: contain;
  /* PNG do client tem fundo preto sólido — some no header escuro */
  mix-blend-mode: lighten;
}

.hr-nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hr-panel-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hr-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hr-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hr-nav-open .hr-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hr-nav-open .hr-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.hr-nav-open .hr-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hr-nav {
  position: fixed;
  inset: var(--hr-header-h) 0 0 auto;
  width: min(100%, 320px);
  padding: 1rem;
  background: rgba(8, 14, 28, 0.97);
  border-left: 1px solid var(--hr-panel-border);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  z-index: 99;
}

.hr-nav-open .hr-nav {
  transform: translateX(0);
}

.hr-nav-backdrop {
  position: fixed;
  inset: var(--hr-header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
}

.hr-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hr-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  color: var(--hr-text);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.hr-nav__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hr-nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--hr-muted);
}

.hr-dropdown {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem 0.75rem;
  display: none;
}

.hr-nav__item.is-open > .hr-dropdown {
  display: block;
}

.hr-dropdown a {
  display: block;
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  color: var(--hr-muted);
  border-radius: 6px;
  font-size: 0.88rem;
}

.hr-dropdown a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.hr-nav__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.hr-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(120, 170, 255, 0.2);
  color: var(--hr-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03);
}

.hr-social:hover {
  color: #fff;
  border-color: rgba(240, 193, 75, 0.45);
}

.hr-account-link {
  color: var(--hr-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.4rem;
}

.hr-account-link:hover {
  color: #fff;
}

.hr-nav__shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 255, 0.28);
  background: rgba(8, 14, 28, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
}

/* ---------- Buttons (kit: gold / active / idle / hover) ---------- */

.hr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hr-btn strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hr-btn small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.72rem;
}

.hr-btn--gold {
  color: #1a1200;
  background: linear-gradient(180deg, var(--hr-gold-2), var(--hr-gold) 55%, var(--hr-gold-dark));
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hr-btn--gold:hover {
  color: #120c00;
  filter: brightness(1.05);
}

/* Ativo (guia): azul sólido com brilho interno */
.hr-btn--active,
.hr-btn.is-active {
  color: #fff;
  background: var(--hr-tab-active);
  border-color: rgba(140, 190, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 14px rgba(70, 140, 255, 0.28);
}

.hr-btn--active:hover,
.hr-btn.is-active:hover {
  color: #fff;
  filter: brightness(1.06);
}

/* Inativo (guia) */
.hr-btn--idle,
.hr-btn.is-idle {
  color: var(--hr-muted);
  background: var(--hr-tab-idle);
  border-color: rgba(80, 120, 180, 0.22);
  box-shadow: none;
}

/* Hover padrão do guia: borda ouro + texto ouro */
.hr-btn--ghost,
.hr-btn--idle:hover,
.hr-btn.is-idle:hover {
  color: var(--hr-text);
  background: rgba(12, 24, 48, 0.85);
  border-color: rgba(120, 170, 255, 0.28);
}

.hr-btn--ghost:hover,
.hr-btn--idle:hover,
.hr-btn.is-idle:hover {
  color: var(--hr-gold-2);
  border-color: var(--hr-gold-border-strong);
  background: rgba(8, 14, 28, 0.95);
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.12);
}

.hr-btn--small {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  justify-content: center;
}

.hr-btn--header {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  justify-content: center;
}

.hr-btn__glyph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  position: relative;
}

.hr-btn__glyph::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: currentColor;
  clip-path: polygon(20% 10%, 80% 50%, 20% 90%);
  opacity: 0.85;
}

.hr-btn__glyph--book::before {
  clip-path: none;
  border-radius: 2px;
  inset: 7px 9px;
}

/* ---------- Hero ---------- */

/* Bloco único da home (copy → features → news → quick) */
.hr-home-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hr-header-h) + 0.35rem) 0 0;
  overflow: visible;
  background: transparent;
}

.hr-hero__bg {
  display: none;
}

.hr-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding-top: 0.25rem;
}

.hr-hero__copy {
  max-width: 40rem;
  padding: 0.25rem 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.hr-hero__kicker {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hr-hero__title {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  width: fit-content;
  max-width: 100%;
}

.hr-hero__brand {
  font-family: var(--hr-display);
  font-size: clamp(2.4rem, 8vw, 4.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  background: linear-gradient(180deg, #ffe9a8 0%, #f0c14b 38%, #d4a017 72%, #a87810 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(80, 45, 0, 0.35)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.hr-hero__tag {
  display: block;
  width: 100%;
  font-family: var(--hr-display);
  font-size: clamp(0.78rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* compensa o letter-spacing pra ficar visualmente no centro */
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hr-hero__text {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: rgba(232, 238, 252, 0.92);
  font-size: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Fallback se background-clip não for suportado */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hr-hero__brand {
    color: #f0c14b;
    background: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
  }
}

.hr-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 24rem;
}

/* ---------- Pillars ---------- */

.hr-features {
  /* Dentro do hero, logo abaixo do PLAY */
  position: relative;
  z-index: 2;
  margin-top: 1.1rem;
  padding: 0;
}

.hr-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.hr-pillar {
  position: relative;
  overflow: hidden;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 175, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(14, 26, 48, 0.9), rgba(8, 14, 28, 0.94));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 0;
}

.hr-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(120px 60px at 90% 20%, rgba(240, 193, 75, 0.35), transparent 70%),
    radial-gradient(100px 70px at 10% 110%, rgba(77, 141, 255, 0.25), transparent 65%);
}

.hr-pillar__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.hr-pillar__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #f0c14b, #a87810);
  border: var(--hr-border-w) solid rgba(255, 230, 160, 0.5);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.25);
}

/* Ícones simples em CSS (dourados) */
.hr-pillar__icon::before,
.hr-pillar__icon::after {
  content: "";
  position: absolute;
  background: #1a1200;
}

.hr-pillar--hunt .hr-pillar__icon::before {
  inset: 7px 12px;
  width: 3px;
  height: 14px;
  border-radius: 1px;
  transform: rotate(-35deg);
  left: 9px;
  top: 6px;
}
.hr-pillar--hunt .hr-pillar__icon::after {
  inset: 7px 12px;
  width: 3px;
  height: 14px;
  border-radius: 1px;
  transform: rotate(35deg);
  left: 15px;
  top: 6px;
}

.hr-pillar--progress .hr-pillar__icon::before {
  left: 7px;
  bottom: 6px;
  width: 4px;
  height: 8px;
  box-shadow: 6px -4px 0 #1a1200, 12px -8px 0 #1a1200;
}
.hr-pillar--progress .hr-pillar__icon::after {
  display: none;
}

.hr-pillar--explore .hr-pillar__icon::before {
  inset: 6px;
  border-radius: 50%;
  border: 2px solid #1a1200;
  background: transparent;
}
.hr-pillar--explore .hr-pillar__icon::after {
  left: 13px;
  top: 7px;
  width: 2px;
  height: 14px;
  background: #1a1200;
  box-shadow: -6px 6px 0 0 transparent;
  transform: rotate(45deg);
  transform-origin: center;
}

.hr-pillar--rest .hr-pillar__icon::before {
  left: 8px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 4px -2px 0 0 #f0c14b;
  background: #1a1200;
}
.hr-pillar--rest .hr-pillar__icon::after {
  display: none;
}

.hr-pillar h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--hr-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.hr-pillar p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(180, 198, 230, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Status + boss na mesma faixa dos pillars */
.hr-features .hr-status {
  margin: 0;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  border: 1px solid rgba(120, 175, 255, 0.32);
}

/* Card compacto: sem gema (fica poluído no grid dos pillars) */
.hr-features .hr-status.hr-panel::before {
  display: none;
}

.hr-features .hr-status__players {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
}

.hr-features .hr-boss,
.hr-features .hr-boost {
  margin: 0;
  min-height: 0;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
}

/* ---------- Home band (news → quick → encontra o footer) ---------- */


/* ---------- Dashboard ---------- */

.hr-dashboard {
  padding: 0.85rem 0 1.25rem;
  background: transparent;
}

.hr-dashboard__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Painéis: cantos dourados + gema azul no topo (aprox. do guia) */
.hr-panel {
  position: relative;
  border-radius: var(--hr-radius);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 2px 18px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 18px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 2px 18px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 18px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 2px 18px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 18px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 2px 18px no-repeat,
    linear-gradient(180deg, rgba(14, 26, 48, 0.92), rgba(6, 12, 24, 0.88));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(160, 200, 255, 0.06);
  padding: 1.1rem 1.15rem 1.25rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hr-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #8ec8ff, #2a6ec8 55%, #0e3a78);
  border: 1px solid rgba(240, 210, 120, 0.75);
  box-shadow: 0 0 8px rgba(80, 160, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}

.hr-pillar,
.hr-features .hr-status,
.hr-boss,
.hr-boost,
.hr-quick__card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hr-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.95rem;
  padding: 0.15rem 0 0.7rem;
  border-bottom: 1px solid rgba(120, 170, 255, 0.14);
}

.hr-panel__head h2 {
  margin: 0;
  font-family: var(--hr-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-gold-2);
  text-shadow: 0 0 18px rgba(240, 193, 75, 0.18);
}

.hr-link {
  color: var(--hr-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.hr-empty {
  margin: 0;
  color: var(--hr-muted);
  font-size: 0.9rem;
}

/* News */

.hr-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hr-news__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hr-news__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hr-news__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(77, 141, 255, 0.35), rgba(212, 160, 23, 0.25)),
    #12203a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hr-news__meta time {
  color: var(--hr-gold-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hr-news__body h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.hr-news__body h3 a {
  color: var(--hr-gold-2);
}

.hr-news__body h3 a:hover {
  color: #ffe29a;
}

.hr-news__body p {
  margin: 0 0 0.45rem;
  color: var(--hr-muted);
  font-size: 0.86rem;
}

.hr-news__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--hr-muted);
  font-size: 0.78rem;
}

/* Quick cards */

.hr-quick-wrap {
  padding: 0 0 1.5rem;
}

.hr-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.hr-quick__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.85rem 1rem;
  border-radius: var(--hr-radius);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(90deg, rgba(20, 36, 64, 0.94), rgba(12, 22, 40, 0.9));
  color: var(--hr-text);
  font-family: var(--hr-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.hr-quick__card:hover {
  color: #fff;
  border-color: var(--hr-gold-border-strong);
}

.hr-quick__card em {
  font-style: normal;
  color: var(--hr-gold-2);
}

/* Status / boss / ranks */

.hr-status__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.hr-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hr-offline);
  box-shadow: 0 0 0 3px rgba(227, 93, 93, 0.2);
}

.hr-status.is-online .hr-status__dot {
  background: var(--hr-online);
  box-shadow: 0 0 0 3px rgba(61, 206, 122, 0.22);
}

.hr-status__players {
  margin: 0 0 0.85rem;
  color: var(--hr-muted);
  font-size: 0.88rem;
}

.hr-boss,
.hr-boost {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 1.1rem 1.2rem;
  border-radius: var(--hr-radius);
  border: var(--hr-border-w) solid rgba(255, 180, 90, 0.55);
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.25) 5%, rgba(8, 10, 18, 0.92) 100%),
    var(--hr-boss-image, linear-gradient(135deg, #5a2a12, #1a0c08 60%, #0a101c));
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--hr-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hr-boss:hover,
.hr-boost:hover {
  border-color: rgba(255, 210, 120, 0.75);
  transform: translateY(-1px);
}

.hr-boss--placeholder {
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(8, 10, 18, 0.92) 100%),
    radial-gradient(circle at 60% 35%, #ff6a2a 0%, #5a1a08 40%, #0a101c 75%);
}

.hr-boss__label,
.hr-boost__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffc9a0;
  margin-bottom: 0.35rem;
}

.hr-boost__row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.hr-boost__outfit {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  margin-bottom: -0.15rem;
}

.hr-boss__title,
.hr-boost__title {
  font-family: var(--hr-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hr-tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.65rem;
  margin-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
}

.hr-tabs__btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--hr-radius-sm) var(--hr-radius-sm) 0 0;
  border: 1px solid rgba(80, 120, 180, 0.22);
  border-bottom: 0;
  background: var(--hr-tab-idle);
  color: var(--hr-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hr-tabs__btn:hover {
  color: var(--hr-gold-2);
  border-color: var(--hr-gold-border-strong);
  background: rgba(8, 14, 28, 0.95);
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.18);
}

.hr-tabs__btn.is-active {
  color: #fff;
  background: var(--hr-tab-active);
  border-color: rgba(140, 190, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(70, 140, 255, 0.22);
}

.hr-tabs__btn.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}

.hr-tabs__panel {
  display: none;
}

.hr-tabs__panel.is-active {
  display: block;
}

.hr-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hr-rank li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.48rem 0.55rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid transparent;
  background: var(--hr-row);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hr-rank li:hover {
  background: var(--hr-row-hover);
  border-color: rgba(120, 180, 255, 0.22);
}

.hr-rank li.is-selected {
  background: var(--hr-row-selected);
  border-color: var(--hr-gold-border-strong);
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.18);
}

.hr-rank__pos {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hr-muted);
}

.hr-rank li:nth-child(1) .hr-rank__pos {
  background: linear-gradient(180deg, #f0c14b, #a07810);
  color: #1a1200;
  box-shadow: 0 0 10px rgba(240, 193, 75, 0.35);
}

.hr-rank li:nth-child(2) .hr-rank__pos {
  background: linear-gradient(180deg, #d8dee8, #8a93a4);
  color: #1a1e28;
}

.hr-rank li:nth-child(3) .hr-rank__pos {
  background: linear-gradient(180deg, #d4a06a, #8a5528);
  color: #1a1008;
}

.hr-rank__name {
  color: var(--hr-text);
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-rank li.is-selected .hr-rank__name {
  color: var(--hr-gold-2);
}

.hr-rank__value {
  color: var(--hr-gold-2);
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Inner pages ---------- */

.hr-page {
  /* padding-top inclui altura do header (conteúdo sobe com margin negativo) */
  padding: calc(var(--hr-header-h) + 1.15rem) 0 2rem;
}

.hr-breadcrumb {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.38);
  background:
    linear-gradient(180deg, rgba(28, 42, 72, 0.78), rgba(8, 16, 32, 0.82)),
    rgba(6, 12, 24, 0.72);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 226, 154, 0.12),
    inset 0 0 0 1px rgba(120, 170, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hr-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.hr-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-family: var(--hr-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hr-breadcrumb__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin: 0 0.55rem;
  border-right: 1.5px solid rgba(240, 193, 75, 0.55);
  border-top: 1.5px solid rgba(240, 193, 75, 0.55);
  transform: rotate(45deg);
  opacity: 0.85;
  flex: 0 0 auto;
}

.hr-breadcrumb__link {
  color: var(--hr-gold-2);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.hr-breadcrumb__link:hover {
  color: #ffe29a;
  text-shadow:
    0 0 10px rgba(240, 193, 75, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.55);
}

.hr-breadcrumb__current {
  display: inline-block;
  max-width: min(52vw, 18rem);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.22), rgba(138, 101, 8, 0.18));
  border: 1px solid rgba(240, 193, 75, 0.42);
  color: #fff6d6;
  font-family: var(--hr-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 1px #2a1606,
    0 1px 2px rgba(0, 0, 0, 0.65);
}

@media (max-width: 520px) {
  .hr-breadcrumb {
    padding: 0.36rem 0.65rem 0.36rem 0.55rem;
  }

  .hr-breadcrumb__item {
    font-size: 0.72rem;
  }

  .hr-breadcrumb__item:not(:last-child)::after {
    margin: 0 0.4rem;
  }

  .hr-breadcrumb__current {
    max-width: 46vw;
    font-size: 0.66rem;
    padding: 0.16rem 0.45rem;
  }
}

.hr-container--inner {
  width: min(100% - 2rem, 980px);
}

@media (min-width: 900px) {
  .hr-container--inner {
    width: min(100% - 3rem, 980px);
  }
}

.hr-body--inner .hr-content {
  margin-bottom: 1.5rem;
}

/*
 * Title plate — filho absoluto do painel, pontas de lança na borda de cima.
 * PNG: pontas ~ y/h = 0.40 da caixa visual da barra; hang calibrado no anexo 2.
 */
.hr-content--plated {
  position: relative;
  /* bússola acima; só a franja inferior do plate entra no painel */
  margin-top: 6rem;
  padding-top: 1.35rem;
  overflow: visible;
}

.hr-content--plated::before {
  display: none;
}

.hr-title-plate {
  /* % do plate ACIMA da borda; ~75% = pontas de lança na linha (PNG tip y/h≈0.74) */
  --hr-plate-hang: 79%;
  position: absolute;
  z-index: 6;
  left: 50%;
  /* -border: alinha na linha dourada externa (não na borda interna do padding) */
  top: calc(-1 * var(--hr-border-w));
  transform: translate(-50%, calc(-1 * var(--hr-plate-hang)));
  width: min(475px, 94%);
  aspect-ratio: 475 / 126;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: url("images/title_plate.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.hr-title-plate__text {
  position: absolute;
  left: 50%;
  /* um pouco mais baixo na faixa escura */
  top: 78%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 56%;
  font-family: var(--hr-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #f3d88f;
  text-shadow:
    0 0 2px #2a1606,
    1px 1px 0 #2a1606,
    -1px 0 0 #2a1606,
    0 -1px 0 #2a1606;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .hr-content--plated {
    margin-top: 4.25rem;
    padding-top: 1.1rem;
  }

  .hr-title-plate {
    width: min(332px, 96%);
    aspect-ratio: 332 / 88;
    background-image: url("images/title_plate_small.png");
  }

  .hr-title-plate__text {
    top: 85%;
    width: 60%;
    font-size: 0.82rem;
  }
}

.hr-content {
  overflow-x: auto;
  color: var(--hr-text);
}

/* plate precisa vazar pra cima — não pode clipar com overflow-x */
.hr-content--plated {
  overflow: visible;
}

.hr-content h1,
.hr-content h2,
.hr-content h3 {
  font-family: var(--hr-display);
  letter-spacing: 0.04em;
  color: var(--hr-gold-2);
  text-transform: uppercase;
  font-size: 1rem;
}

/* Evita título duplicado quando a página MyAAC já manda um h1 no topo */
.hr-content--plated > h1:first-of-type:not(.hr-title-plate__text) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- UI kit: tabelas / linhas / cabeçalhos / meters ---------- */

/* ---------- MyAAC: aplica o UI kit nas páginas reais ---------- */

/* Anula bege clássico (bgcolor / style inline do getStyle) */
.hr-content table[bgcolor],
.hr-content tr[bgcolor],
.hr-content td[bgcolor],
.hr-content th[bgcolor],
.hr-content [style*="background-color"],
.hr-content [style*="background:"],
.hr-content tr[style*="background"] {
  background-color: transparent !important;
  background-image: none !important;
}

.hr-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.2rem;
  margin: 0 0 0.75rem;
}

.hr-content table table {
  margin-bottom: 0;
  border-spacing: 0;
}

.hr-content table th,
.hr-content table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  font-size: 0.88rem;
  color: var(--hr-text);
  border: 0;
}

/* Cabeçalhos de COLUNA (Rank, Name…) — leve, azul claro */
.hr-content tr.hr-kit-head > td,
.hr-content tr.hr-kit-head > th,
.hr-content thead td,
.hr-content thead th,
.hr-content tr > td.white:not([colspan]),
.hr-content tr > th.white:not([colspan]) {
  color: var(--hr-label) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(120, 170, 255, 0.22) !important;
  border-radius: 0;
  padding: 0.45rem 0.7rem 0.55rem !important;
}

/* Cabeçalho de SEÇÃO (Character Information, 1 célula / colspan) */
.hr-content tr > td.white[colspan],
.hr-content tr:not(.hr-kit-head) > td.white:only-child,
.hr-content tr:not(.hr-kit-head) > td.white:first-child:last-child {
  position: relative;
  color: var(--hr-label) !important;
  font-family: var(--hr-display);
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 12px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 2px 12px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 12px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 2px 12px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 12px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 2px 12px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 12px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 2px 12px no-repeat,
    linear-gradient(180deg, rgba(16, 30, 56, 0.95), rgba(8, 14, 28, 0.92)) !important;
  border: var(--hr-border-w) solid var(--hr-gold-border) !important;
  border-radius: var(--hr-radius-sm);
  padding: 0.7rem 0.9rem !important;
}

.hr-content tr > td.white b,
.hr-content tr > td.white strong,
.hr-content thead td b,
.hr-content thead th b {
  font-weight: 700;
  color: inherit;
}

/* Linhas de dados */
.hr-content table > tbody > tr > td:not(.white),
.hr-content table > tr > td:not(.white) {
  background: var(--hr-row) !important;
  border-top: 1px solid rgba(120, 170, 255, 0.06) !important;
  border-bottom: 1px solid rgba(120, 170, 255, 0.06) !important;
}

.hr-content table > tbody > tr > td:not(.white):first-child,
.hr-content table > tr > td:not(.white):first-child {
  border-left: 1px solid transparent;
  border-radius: var(--hr-radius-sm) 0 0 var(--hr-radius-sm);
}

.hr-content table > tbody > tr > td:not(.white):last-child,
.hr-content table > tr > td:not(.white):last-child {
  border-right: 1px solid transparent;
  border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0;
}

.hr-content table > tbody > tr:hover > td:not(.white),
.hr-content table > tr:hover > td:not(.white) {
  background: var(--hr-row-hover) !important;
  border-color: rgba(120, 180, 255, 0.22) !important;
}

.hr-content table > tbody > tr.is-selected > td,
.hr-content table > tbody > tr.hr-row--selected > td,
.hr-content table > tr.is-selected > td,
.hr-content table > tr.hr-row--selected > td {
  background: var(--hr-row-selected) !important;
  color: var(--hr-gold-2);
  border-color: var(--hr-gold-border-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.18);
}

/* Labels à esquerda (Character Information, World Info…) */
.hr-content td.LabelV150,
.hr-content .LabelV150,
.hr-content table > tbody > tr > td:first-child:not(.white):not([colspan]) b,
.hr-content table > tr > td:first-child:not(.white):not([colspan]) b {
  color: var(--hr-muted);
  font-weight: 600;
}

.hr-content a {
  color: var(--hr-gold-2);
}

.hr-content a:hover {
  color: #ffe29a;
}

/* Seções do tables.headline override */
.hr-section {
  margin: 0 0 1.1rem;
}

.hr-section__head {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 2px 14px no-repeat,
    linear-gradient(180deg, rgba(16, 30, 56, 0.95), rgba(8, 14, 28, 0.9));
}

.hr-section__head::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #8ec8ff, #2a6ec8);
  border: 1px solid rgba(240, 210, 120, 0.7);
  box-shadow: 0 0 8px rgba(80, 160, 255, 0.4);
}

.hr-section__title {
  font-family: var(--hr-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-label);
}

.hr-section__body {
  padding: 0.15rem 0 0;
}

.hr-section__body > table:last-child {
  margin-bottom: 0;
}

/* Tabela do kit (markup nosso): linhas com estados do guia */
.hr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.2rem;
}

.hr-table th,
.hr-table td {
  padding: 0.58rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.hr-table thead th {
  color: var(--hr-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(120, 170, 255, 0.18);
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
}

.hr-table tbody td {
  color: var(--hr-text);
  font-size: 0.88rem;
  border: 1px solid transparent;
  border-top-color: rgba(120, 170, 255, 0.06);
  border-bottom-color: rgba(120, 170, 255, 0.06);
  background: var(--hr-row);
}

.hr-table tbody td:first-child {
  border-left-color: transparent;
  border-radius: var(--hr-radius-sm) 0 0 var(--hr-radius-sm);
}

.hr-table tbody td:last-child {
  border-right-color: transparent;
  border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0;
}

.hr-table tbody tr:hover td {
  background: var(--hr-row-hover);
  border-color: rgba(120, 180, 255, 0.22);
}

.hr-table tbody tr.is-selected td,
.hr-table tbody tr.hr-row--selected td {
  background: var(--hr-row-selected);
  border-color: var(--hr-gold-border-strong);
  color: var(--hr-gold-2);
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.12);
}

/* Cabeçalho ornamental (guia) */
.hr-table-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 2px 14px no-repeat,
    linear-gradient(180deg, rgba(16, 30, 56, 0.95), rgba(8, 14, 28, 0.9));
  color: var(--hr-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hr-table-head::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #8ec8ff, #2a6ec8);
  border: 1px solid rgba(240, 210, 120, 0.7);
  box-shadow: 0 0 8px rgba(80, 160, 255, 0.4);
}

/* Linhas avulsas (fora de <table>) */
.hr-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid transparent;
  background: var(--hr-row);
  color: var(--hr-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hr-row:has(.hr-row__icon) {
  grid-template-columns: auto 1fr auto;
}

.hr-row:hover,
.hr-row--hover {
  background: var(--hr-row-hover);
  border-color: rgba(120, 180, 255, 0.22);
}

.hr-row--selected,
.hr-row.is-selected {
  background: var(--hr-row-selected);
  border-color: var(--hr-gold-border-strong);
  color: var(--hr-gold-2);
}

.hr-row__label {
  color: var(--hr-muted);
  font-size: 0.86rem;
}

.hr-row__value {
  justify-self: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hr-row__value--gold {
  color: var(--hr-gold-2);
}

/* Skills / progress */
.hr-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.35rem 0;
}

.hr-meter__label {
  color: var(--hr-muted);
  font-size: 0.82rem;
  min-width: 5.5rem;
}

.hr-meter__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--hr-text);
  min-width: 2.2rem;
  text-align: right;
}

.hr-meter__track {
  height: 10px;
  border-radius: 999px;
  background: var(--hr-meter-track);
  border: 1px solid rgba(120, 170, 255, 0.16);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hr-meter__fill {
  display: block;
  height: 100%;
  width: var(--hr-meter, 0%);
  max-width: 100%;
  border-radius: inherit;
  background: var(--hr-meter-fill);
  box-shadow: 0 0 10px rgba(240, 193, 75, 0.35);
}

/* Slots de equipamento (grid simples) */
.hr-equip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.65rem;
}

.hr-equip__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hr-equip__frame {
  width: 64px;
  height: 64px;
  border-radius: var(--hr-radius-sm);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(180deg, rgba(20, 36, 64, 0.9), rgba(8, 14, 28, 0.95));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.hr-equip__frame img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hr-equip__name {
  font-size: 0.68rem;
  color: var(--hr-gold-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Characters: skills | equipment + outfit ---------- */

.hr-char-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.85rem 0 0;
}

.hr-char-col {
  margin: 0;
  min-width: 0;
}

.hr-char-col--skills {
  flex: 1 1 240px;
  max-width: 360px;
}

.hr-char-col--quests {
  flex: 1 1 200px;
  max-width: 280px;
}

.hr-char-col--equip {
  flex: 0 1 auto;
}

.hr-char-equip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem 1.1rem;
  padding: 0.45rem 0.2rem 0.55rem;
}

.hr-char-equip {
  --hr-char-slot: 40px;
  --hr-char-slot-gap: 0.3rem;
  display: flex;
  gap: var(--hr-char-slot-gap);
  align-items: flex-start;
}

.hr-char-equip__col {
  display: flex;
  flex-direction: column;
  gap: var(--hr-char-slot-gap);
}

.hr-char-slot {
  width: var(--hr-char-slot);
  height: var(--hr-char-slot);
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid var(--hr-gold-border);
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.95), rgba(6, 12, 24, 0.98));
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hr-char-slot img,
.hr-char-slot .item_image {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.hr-char-slot--spacer {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hr-char-slot--skull img {
  width: 16px !important;
  height: 16px !important;
}

.hr-char-outfit {
  /* altura acompanha a coluna do set (4 slots × 40px + gaps) */
  --hr-char-slot: 40px;
  --hr-char-slot-gap: 0.3rem;
  margin: 0;
  width: 148px;
  min-height: calc((var(--hr-char-slot) * 4) + (var(--hr-char-slot-gap) * 3));
  align-self: stretch;
  border-radius: 10px;
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    radial-gradient(circle at 50% 45%, rgba(80, 140, 220, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(16, 28, 48, 0.92), rgba(6, 12, 24, 0.96));
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.hr-char-outfit img {
  /*
   * outfit.php = 64×64 com o personagem deslocado (centroid ~46,44).
   * translate compensa pra o sprite ficar no centro visual do quadro.
   */
  width: 64px;
  height: 64px;
  transform: translate(-22%, -18%) scale(2.05);
  transform-origin: center center;
  object-fit: contain;
  image-rendering: pixelated;
}

@media (max-width: 640px) {
  .hr-char-col--skills,
  .hr-char-col--quests,
  .hr-char-col--equip {
    flex: 1 1 100%;
    max-width: none;
  }

  .hr-char-equip-row {
    justify-content: center;
  }
}

/* ---------- Account management ---------- */

.hr-account {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.hr-account__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 0.75rem;
}

.hr-account__nav .hr-btn {
  width: 100%;
  justify-content: flex-start;
  text-decoration: none;
}

.hr-account__nav .hr-btn.is-active,
.hr-account__nav .hr-btn.is-active:hover {
  color: #fff;
  background: var(--hr-tab-active);
  border-color: rgba(140, 190, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 14px rgba(70, 140, 255, 0.28);
  filter: none;
}

.hr-account__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hr-account__welcome {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid rgba(120, 170, 255, 0.18);
  background: rgba(8, 16, 32, 0.45);
}

.hr-account__hello {
  margin: 0 0 0.35rem;
  color: var(--hr-text);
  font-size: 0.95rem;
}

.hr-account__hello strong {
  color: var(--hr-gold-2);
}

.hr-account__premium {
  margin: 0;
  color: var(--hr-muted);
  font-size: 0.86rem;
}

.hr-account__notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(70, 48, 16, 0.35);
  text-align: center;
}

.hr-account__notice p {
  margin: 0 0 0.75rem;
  color: var(--hr-text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.hr-account__rows {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.hr-account__rows > .hr-row:has(.hr-account__email) {
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  align-items: center;
}

.hr-account__email {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  justify-self: end;
  text-align: right;
  max-width: 100%;
}

.hr-account__email form {
  display: inline;
  margin: 0;
}

.hr-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.hr-account__actions form {
  margin: 0;
}

.hr-account__deleted {
  color: #ff6b6b;
  font-weight: 700;
}

.hr-status-online {
  color: #3ecf6a;
  font-weight: 700;
}

.hr-status-offline {
  color: #ff6b6b;
}

.hr-section__body:has(.hr-account__chars) {
  overflow-x: auto;
}

.hr-account__chars {
  min-width: 720px;
}

@media (max-width: 860px) {
  .hr-account {
    grid-template-columns: 1fr;
  }

  .hr-account__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hr-account__nav .hr-btn {
    width: auto;
  }
}

/* ---------- Forms: LabelV row + gold input (Generate Recovery Key) ---------- */

.hr-content tr:has(> td.LabelV):has(input:not([type="hidden"]):not([type="submit"]), textarea, select) > td.LabelV,
.hr-content tr:has(> td.LabelV):has(input:not([type="hidden"]):not([type="submit"]), textarea, select) > .LabelV {
  width: 11.5rem;
  min-width: 9.5rem;
  padding: 0.75rem 0.95rem !important;
  vertical-align: middle;
  color: var(--hr-text) !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(6, 12, 26, 0.92) !important;
  border: 1px solid rgba(120, 170, 255, 0.2) !important;
  border-right: 0 !important;
  border-radius: var(--hr-radius-sm) 0 0 var(--hr-radius-sm) !important;
}

.hr-content tr:has(> td.LabelV):has(input:not([type="hidden"]):not([type="submit"]), textarea, select) > td:not(.LabelV):not(.white) {
  background: rgba(10, 20, 38, 0.72) !important;
  border: 1px solid rgba(120, 170, 255, 0.2) !important;
  border-left: 0 !important;
  border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0 !important;
  padding: 0.4rem 0.55rem !important;
  vertical-align: middle;
}

/* Label-only rows (Name: Curandinho) — same card look without input */
.hr-content tr:has(> td.LabelV):not(:has(input:not([type="hidden"]):not([type="submit"]), textarea, select)) > td.LabelV {
  width: 11.5rem;
  min-width: 9.5rem;
  padding: 0.75rem 0.95rem !important;
  vertical-align: middle;
  color: var(--hr-text) !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(6, 12, 26, 0.92) !important;
  border: 1px solid rgba(120, 170, 255, 0.2) !important;
  border-right: 0 !important;
  border-radius: var(--hr-radius-sm) 0 0 var(--hr-radius-sm) !important;
}

.hr-content tr:has(> td.LabelV):not(:has(input:not([type="hidden"]):not([type="submit"]), textarea, select)) > td:not(.LabelV):not(.white) {
  background: rgba(10, 20, 38, 0.72) !important;
  border: 1px solid rgba(120, 170, 255, 0.2) !important;
  border-left: 0 !important;
  border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0 !important;
  padding: 0.65rem 0.85rem !important;
  vertical-align: middle;
}

.hr-content .hr-section__body > table:has(td.LabelV),
.hr-content .TableContent:has(td.LabelV),
.hr-content .InnerTableContainer > table:has(td.LabelV) {
  border-collapse: separate;
  border-spacing: 0 0.4rem;
  width: 100%;
}

/* Inclui <input> sem type= (default text) — Create Character, Search, etc. */
.hr-content input:not([type]),
.hr-content input[type="text"],
.hr-content input[type="password"],
.hr-content input[type="email"],
.hr-content input[type="number"],
.hr-content input[type="search"],
.hr-content input[type="tel"],
.hr-content input[type="url"],
.hr-content select,
.hr-content textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 0.55rem 0.8rem !important;
  border-radius: var(--hr-radius-sm) !important;
  border: 1px solid rgba(200, 160, 70, 0.72) !important;
  background: rgba(4, 10, 22, 0.88) !important;
  color: var(--hr-text) !important;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.06);
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.hr-content input:not([type])::placeholder,
.hr-content input[type="text"]::placeholder,
.hr-content input[type="password"]::placeholder,
.hr-content input[type="email"]::placeholder,
.hr-content textarea::placeholder {
  color: var(--hr-muted);
  opacity: 0.85;
}

.hr-content textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.45;
}

.hr-content tr:has(textarea) > td.LabelV {
  vertical-align: top !important;
  padding-top: 0.85rem !important;
}

.hr-content input:not([type]):focus,
.hr-content input[type="text"]:focus,
.hr-content input[type="password"]:focus,
.hr-content input[type="email"]:focus,
.hr-content input[type="number"]:focus,
.hr-content input[type="search"]:focus,
.hr-content input[type="tel"]:focus,
.hr-content input[type="url"]:focus,
.hr-content select:focus,
.hr-content textarea:focus {
  outline: none;
  border-color: var(--hr-gold-2) !important;
  box-shadow:
    inset 0 0 0 1px rgba(240, 193, 75, 0.12),
    0 0 0 2px rgba(240, 193, 75, 0.14);
}

/* Autofill do browser (Chrome) não pode voltar branco */
.hr-content input:not([type]):-webkit-autofill,
.hr-content input[type="text"]:-webkit-autofill,
.hr-content input[type="password"]:-webkit-autofill,
.hr-content input[type="email"]:-webkit-autofill {
  -webkit-text-fill-color: var(--hr-text);
  -webkit-box-shadow: 0 0 0 1000px rgba(4, 10, 22, 0.98) inset;
  transition: background-color 99999s ease-out;
}

.hr-field-with-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.hr-field-with-btn input:not([type="submit"]):not([type="button"]) {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.hr-field-with-btn input[type="submit"],
.hr-field-with-btn button {
  flex: 0 0 auto;
}

.hr-content input[type="checkbox"],
.hr-content input[type="radio"] {
  width: auto !important;
  max-width: none;
  min-height: auto;
  margin: 0 0.4rem 0 0;
  padding: 0 !important;
  border: 1px solid rgba(200, 160, 70, 0.55) !important;
  background: rgba(4, 10, 22, 0.88) !important;
  accent-color: var(--hr-gold);
  box-shadow: none;
  vertical-align: middle;
  -webkit-appearance: auto;
  appearance: auto;
}

.hr-content input[type="hidden"] {
  display: none;
}

/* Tibia TableContainer chrome → section look */
.hr-content .CaptionEdgeLeftTop,
.hr-content .CaptionEdgeRightTop,
.hr-content .CaptionEdgeLeftBottom,
.hr-content .CaptionEdgeRightBottom,
.hr-content .CaptionBorderTop,
.hr-content .CaptionBorderBottom,
.hr-content .CaptionVerticalLeft,
.hr-content .CaptionVerticalRight,
.hr-content .TableShadowContainer,
.hr-content .TableShadowContainerRightTop,
.hr-content .TableShadowRightTop,
.hr-content .TableBottomShadow,
.hr-content .TableBottomLeftShadow,
.hr-content .TableBottomRightShadow,
.hr-content .TableContentAndRightShadow {
  background-image: none !important;
  background: transparent !important;
}

.hr-content .CaptionContainer {
  position: relative;
  display: block;
  margin: 0 0 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: var(--hr-border-w) solid var(--hr-gold-border);
  background:
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 14px 2px no-repeat,
    linear-gradient(var(--hr-gold-2), var(--hr-gold-2)) 100% 100% / 2px 14px no-repeat,
    linear-gradient(180deg, rgba(16, 30, 56, 0.95), rgba(8, 14, 28, 0.9));
}

.hr-content .CaptionContainer .Text {
  font-family: var(--hr-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-label);
}

.hr-content .TableContainer,
.hr-content .Table5,
.hr-content .Table1,
.hr-content .TableContentContainer,
.hr-content .InnerTableContainer {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
}

.hr-content .TableContent {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.35rem;
  background: transparent !important;
}

/* Submit / Back (e similares): juntos, alinhados à direita — classe via main.js */
.hr-content table.hr-kit-actions {
  width: 100% !important;
  margin: 0.85rem 0 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

.hr-content table.hr-kit-actions > tbody > tr,
.hr-content table.hr-kit-actions > tr {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  background: transparent !important;
}

.hr-content table.hr-kit-actions > tbody > tr > td,
.hr-content table.hr-kit-actions > tr > td,
.hr-content table.hr-kit-actions td {
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hr-content table.hr-kit-actions table {
  width: auto !important;
  border: 0 !important;
  background: transparent !important;
}

.hr-content table.hr-kit-actions table td {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.hr-content input[type="submit"],
.hr-content button,
.hr-content .button,
.hr-content .hr-btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid rgba(140, 190, 255, 0.35);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--hr-tab-active);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hr-content input[type="submit"]:hover,
.hr-content button:hover,
.hr-content .button:hover {
  color: var(--hr-gold-2);
  border-color: var(--hr-gold-border-strong);
  background: rgba(8, 14, 28, 0.95);
}

/* ---------- Footer ---------- */

.hr-footer {
  margin-top: auto;
  border-top: 1px solid rgba(120, 170, 255, 0.1);
  padding: 1.5rem 0 2rem;
  background: var(--hr-veil-footer);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hr-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hr-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hr-footer__brand strong {
  font-family: var(--hr-display);
  letter-spacing: 0.04em;
}

.hr-footer__brand span,
.hr-footer__meta {
  color: var(--hr-muted);
  font-size: 0.82rem;
}

/* ---------- Tablet ---------- */

@media (min-width: 641px) {
  .hr-features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hr-hero__actions {
    flex-direction: row;
    max-width: none;
  }

  .hr-quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .hr-news__item {
    grid-template-columns: 110px 1fr;
  }

  .hr-news__thumb {
    width: 110px;
    height: 78px;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 1025px) {
  .hr-nav-toggle,
  .hr-nav-backdrop {
    display: none !important;
  }

  .hr-logo__img {
    height: 92px;
    max-width: 340px;
  }

  :root {
    --hr-header-h: 120px;
  }

  .hr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: 0.85rem;
  }

  .hr-nav {
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    transform: none;
    overflow: visible;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  /* Uma só pílula: links + sociais + PLAY */
  .hr-nav__shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: auto;
    max-width: 100%;
    padding: 0.35rem 0.4rem 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(160, 195, 255, 0.32);
    background: linear-gradient(180deg, rgba(18, 30, 55, 0.86), rgba(8, 14, 28, 0.8));
    backdrop-filter: blur(14px);
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(212, 160, 23, 0.08);
  }

  .hr-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.05rem;
    flex: 0 1 auto;
  }

  .hr-nav__link {
    min-height: 40px;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
  }

  .hr-nav__link:hover {
    background: rgba(240, 193, 75, 0.12);
    color: #fff;
  }

  .hr-nav__item {
    position: relative;
  }

  .hr-nav__shell {
    overflow: visible;
  }

  .hr-dropdown {
    display: none;
    position: absolute;
    /* Colado no item (sem gap) pra o hover não “cair” ao ir pro submenu */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    margin-top: 0;
    padding: 0.55rem 0.45rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(160, 195, 255, 0.28);
    background: rgba(8, 14, 28, 0.96);
    box-shadow: var(--hr-shadow);
    z-index: 200;
    pointer-events: auto;
  }

  .hr-nav__item:hover > .hr-dropdown,
  .hr-nav__item:focus-within > .hr-dropdown {
    display: block;
  }

  .hr-nav__tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    margin-left: 0.15rem;
    padding: 0 0.1rem 0 0.5rem;
    border: 0;
    border-left: 1px solid rgba(160, 195, 255, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hr-nav__shell .hr-social {
    border-color: transparent;
    background: transparent;
    min-width: 32px;
    min-height: 32px;
  }

  .hr-nav__shell .hr-social:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .hr-home-scene {
    min-height: 0;
    padding: calc(var(--hr-header-h) + 0.15rem) 0 0;
  }

  .hr-hero__inner {
    min-height: 0;
    padding-top: 0.15rem;
  }

  .hr-hero__copy {
    max-width: 46rem;
  }

  .hr-hero__brand {
    letter-spacing: 0.06em;
  }

  .hr-hero__tag {
    letter-spacing: 0.36em;
    text-indent: 0.36em;
  }

  .hr-features {
    margin-top: 1.25rem;
  }

  /* Uma linha: 4 pillars + status + creature boosted + boss boosted */
  .hr-features__grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(140px, 0.9fr)
      minmax(150px, 1fr)
      minmax(150px, 1fr);
    gap: 0.55rem;
  }

  .hr-pillar {
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .hr-pillar h3 {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .hr-pillar p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .hr-pillar__icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .hr-features .hr-status {
    padding: 0.55rem 0.65rem;
  }

  .hr-features .hr-status__row strong {
    font-size: 0.78rem;
  }

  .hr-features .hr-status__players {
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
  }

  .hr-features .hr-btn--small {
    min-height: 32px;
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }

  .hr-features .hr-boss,
  .hr-features .hr-boost {
    padding: 0.55rem 0.65rem;
    min-height: 0;
  }

  .hr-features .hr-boss__label,
  .hr-features .hr-boost__label {
    font-size: 0.62rem;
    margin-bottom: 0.2rem;
  }

  .hr-features .hr-boss__title,
  .hr-features .hr-boost__title {
    font-size: 0.82rem;
  }

  .hr-features .hr-boost__outfit {
    width: 44px;
    height: 44px;
  }

  .hr-dashboard__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    align-items: start;
    gap: 1.15rem;
  }

  .hr-quick {
    grid-template-columns: repeat(5, 1fr);
  }

  .hr-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ---------- Highscores pagination ---------- */

.hr-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0.35rem;
}

.hr-pagination--compact {
  margin: 0.55rem 0 0.75rem;
}

.hr-pagination__btn,
.hr-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--hr-radius-sm);
  border: 1px solid rgba(120, 170, 255, 0.28);
  background: rgba(8, 16, 32, 0.72);
  color: var(--hr-text) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hr-pagination__btn:hover,
.hr-pagination__num:hover {
  color: var(--hr-gold-2) !important;
  border-color: var(--hr-gold-border-strong);
  background: rgba(8, 14, 28, 0.95);
}

.hr-pagination__num.is-active {
  color: #fff !important;
  background: var(--hr-tab-active);
  border-color: rgba(140, 190, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.hr-pagination__btn.is-disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.hr-pagination__ellipsis {
  color: var(--hr-muted);
  padding: 0 0.15rem;
  font-weight: 700;
}

.hr-pagination__meta {
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--hr-muted);
  font-size: 0.78rem;
}

/* ---------- Vocation picker (Create Character / Create Account) ---------- */

.hr-voc-inline-title {
  display: block;
  margin: 0 0 0.55rem;
  font-family: var(--hr-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-label);
}

.hr-voc-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border-radius: var(--hr-radius-sm);
  border: 1px solid rgba(120, 170, 255, 0.22);
  background: rgba(6, 12, 26, 0.72);
  overflow: hidden;
}

.hr-voc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem 0.55rem 0.85rem;
  cursor: pointer;
  text-align: center;
  border-right: 1px solid rgba(120, 170, 255, 0.14);
  background: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.hr-voc-card:last-child {
  border-right: 0;
}

.hr-voc-card:hover {
  background: rgba(40, 78, 140, 0.22);
}

.hr-voc-card.is-selected {
  background: rgba(40, 78, 140, 0.35);
  box-shadow: inset 0 0 0 1px rgba(240, 193, 75, 0.35);
}

.hr-voc-card__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hr-voc-card__name {
  font-family: var(--hr-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hr-label);
}

.hr-voc-card.is-selected .hr-voc-card__name {
  color: var(--hr-gold-2);
}

.hr-voc-card__outfit {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: var(--hr-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(120, 170, 255, 0.16);
  overflow: hidden;
}

.hr-voc-card__outfit img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: 44% bottom;
  image-rendering: pixelated;
  /* Outfit GIF canvas is slightly biased to the right. */
  transform: scale(1.65) translateX(-6px);
  transform-origin: center bottom;
}

.hr-voc-card__outfit-fallback {
  font-family: var(--hr-display);
  font-size: 1.4rem;
  color: var(--hr-gold-2);
}

.hr-voc-card__stats {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 100%;
  margin-top: 0.15rem;
}

.hr-voc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-align: left;
}

.hr-voc-stat__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hr-muted);
  text-transform: none;
}

.hr-voc-stat__track {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.12);
}

.hr-voc-stat__fill {
  display: block;
  height: 100%;
  width: var(--hr-voc-stat, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #c88818, #f0c14b 55%, #ffe29a);
}

@media (max-width: 900px) {
  .hr-voc-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hr-voc-card:nth-child(3n) {
    border-right: 0;
  }

  .hr-voc-card {
    border-bottom: 1px solid rgba(120, 170, 255, 0.14);
  }
}

@media (max-width: 560px) {
  .hr-voc-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-voc-card:nth-child(3n) {
    border-right: 1px solid rgba(120, 170, 255, 0.14);
  }

  .hr-voc-card:nth-child(2n) {
    border-right: 0;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hr-nav,
  .hr-nav-toggle span {
    transition: none;
  }
}
