/* ============================================================================
   ASTRUBIA — ranking / salão dos heróis
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- hero ---------------------------------------------------------------- */
.rank-hero {
  position: relative;
  isolation: isolate;
  min-height: min(43rem, 76svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: clamp(7rem, 11vw, 9rem);
}

.rank-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #2b1809;
  background-image: url('/img/art/ranking-hero.jpg');
  background-size: cover;
  background-position: center 38%;
  filter: saturate(1.28) contrast(1.06);
  transform: scale(1.015);
}

.rank-hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 34rem at 69% 44%, rgba(255, 174, 49, .11), transparent 70%),
    linear-gradient(90deg, rgba(3, 21, 18, .93) 0%, rgba(4, 28, 23, .76) 38%, rgba(27, 14, 5, .13) 76%),
    linear-gradient(0deg, #061a17 0%, rgba(6, 26, 23, .16) 45%, rgba(4, 14, 12, .44) 100%);
}

.rank-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(32rem 22rem at 22% 58%, rgba(15, 131, 109, .2), transparent 72%),
    linear-gradient(115deg, rgba(1, 39, 32, .24), transparent 52%);
}

.rank-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 12rem;
  pointer-events: none;
  background: linear-gradient(to top, #061a17, transparent);
}

.rank-hero-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(14rem, .55fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
  padding-bottom: clamp(7rem, 11vw, 9.5rem);
}

.rank-hero-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 47rem;
}

.rank-hero-copy .h-display {
  font-size: clamp(4.3rem, 8vw, 7.5rem);
  line-height: .84;
  letter-spacing: -.035em;
  text-shadow: 0 8px 38px rgba(0, 0, 0, .58);
}

.rank-hero-copy .divider-ornament {
  justify-content: flex-start;
  width: min(25rem, 80%);
  color: var(--gold-400);
}

.rank-hero-copy .lead {
  max-width: 42rem;
  color: rgba(248, 242, 222, .84);
  text-wrap: balance;
}

.rank-hero-seal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid rgba(255, 212, 90, .48);
  border-radius: 26px 6px 26px 6px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 198, 58, .18), transparent 55%),
    linear-gradient(145deg, rgba(57, 38, 13, .82), rgba(5, 43, 36, .86));
  box-shadow: 0 26px 68px rgba(0, 0, 0, .38), inset 0 0 40px rgba(255, 201, 55, .04);
  backdrop-filter: blur(12px);
  transform: rotate(1.3deg);
  text-align: center;
}

.rank-hero-seal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 212, 90, .15);
  border-radius: 18px 3px 18px 3px;
  pointer-events: none;
}

.rank-hero-seal svg {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: .2rem 0;
  fill: rgba(255, 194, 45, .15);
  stroke: var(--gold-300);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255, 193, 40, .24));
}

.rank-hero-seal-kicker,
.rank-hero-seal small {
  position: relative;
  color: var(--gold-400);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rank-hero-seal strong {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.rank-hero-seal small {
  color: rgba(247, 241, 220, .58);
  letter-spacing: .12em;
}

/* ---- quadro principal ----------------------------------------------------- */
.rank-hall.section {
  z-index: 3;
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  margin-top: -4.8rem;
}

.rank-board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 90, .26);
  border-radius: 24px 7px 24px 7px;
  background:
    radial-gradient(45rem 22rem at 50% 0%, rgba(24, 184, 207, .08), transparent 72%),
    linear-gradient(150deg, rgba(255, 255, 255, .025), transparent 42%),
    #09231e;
  box-shadow: 0 36px 80px -30px rgba(0, 0, 0, .85), inset 0 1px rgba(255, 255, 255, .035);
}

.rank-board::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
  opacity: .7;
}

.rank-board-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .7fr);
  align-items: end;
  gap: 2rem;
  padding: clamp(1.7rem, 4vw, 2.8rem) clamp(1.2rem, 4vw, 3.2rem) clamp(1.45rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(240, 228, 200, .09);
}

.rank-board-intro > div {
  display: grid;
  gap: .4rem;
}

.rank-board-intro .h-section {
  font-size: clamp(1.65rem, 3.5vw, 2.55rem);
}

.rank-board-intro > p {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.5;
  text-wrap: balance;
}

/* ---- categorias ----------------------------------------------------------- */
.rank-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem) 0;
  padding: .5rem;
  border: 1px solid rgba(240, 228, 200, .08);
  border-radius: 14px;
  background: rgba(3, 17, 15, .58);
}

.rank-tab {
  position: relative;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.rank-tab::before {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-300);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.rank-tab:hover {
  color: var(--gold-200);
  border-color: rgba(255, 212, 90, .16);
  background: rgba(255, 212, 90, .04);
}

.rank-tab[aria-selected='true'] {
  color: #2f2107;
  border-color: #ffdc72;
  background: linear-gradient(135deg, #ffe480, #edaa19);
  box-shadow: 0 10px 24px -12px rgba(255, 184, 24, .65), inset 0 1px rgba(255, 255, 255, .55);
  transform: translateY(-1px);
}

.rank-tab[aria-selected='true']::before {
  opacity: 1;
  transform: scaleX(1);
  background: rgba(72, 44, 2, .42);
}

.rank-panel {
  min-height: 28rem;
  padding: clamp(2.4rem, 6vw, 4.4rem) clamp(1rem, 4vw, 3rem) clamp(1.6rem, 4vw, 2.7rem);
  outline: none;
}

.rank-panel:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: -5px;
  border-radius: 16px;
}

.rank-noscript {
  margin: 1rem 2rem 0;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ---- pódio ---------------------------------------------------------------- */
.podium {
  list-style: none;
  width: min(100%, 58rem);
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: stretch;
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: .9rem 0 0;
}

.podium--compact {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.podium--compact .podium-slot {
  width: min(17rem, 46%);
}

.podium-slot {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  justify-items: center;
  align-content: start;
  gap: .35rem;
  padding: clamp(1.3rem, 3vw, 2rem) .9rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(240, 228, 200, .13);
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 50%),
    linear-gradient(180deg, rgba(20, 58, 46, .86), rgba(7, 30, 26, .92));
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .9), inset 0 1px rgba(255, 255, 255, .035);
  text-align: center;
}

.podium-slot::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: 2px;
  background: currentColor;
  opacity: .62;
  box-shadow: 0 0 18px currentColor;
}

.podium-slot--1 {
  order: 2;
  color: var(--gold-300);
  border-color: rgba(255, 212, 90, .42);
  background:
    radial-gradient(17rem 10rem at 50% 0%, rgba(255, 193, 41, .16), transparent 68%),
    linear-gradient(150deg, rgba(255, 255, 255, .055), transparent 48%),
    linear-gradient(180deg, #194839, #092a24);
  box-shadow: 0 26px 58px -30px rgba(255, 178, 22, .5), inset 0 1px rgba(255, 255, 255, .06);
  transform: translateY(-.9rem);
}

.podium-slot--2 { order: 1; color: #d8d4c8; }
.podium-slot--3 { order: 3; color: #cb8d51; }

.podium-figure {
  position: relative;
  display: grid;
  place-items: center;
  margin: .35rem 0 .7rem;
}

.podium-laurel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 164%;
  height: 164%;
  transform: translate(-50%, -53%);
  pointer-events: none;
}

.podium-slot--1 .podium-laurel { color: var(--gold-400); }
.podium-slot--2 .podium-laurel { color: #c7c4b9; }
.podium-slot--3 .podium-laurel { color: #bc7d45; }

.podium-medal {
  --medal-size: 5rem;
  position: relative;
  z-index: 1;
  width: var(--medal-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(240, 228, 200, .48);
  border-radius: 50%;
  color: var(--parch-100);
  background: radial-gradient(circle at 32% 26%, hsl(var(--medal-h, 140) 42% 44%), hsl(var(--medal-h, 140) 46% 18%) 72%);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, .15), inset 0 -7px 13px rgba(0, 0, 0, .42), 0 0 0 5px rgba(240, 228, 200, .06);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}

.podium-slot--1 .podium-medal {
  --medal-size: 6.25rem;
  border-color: var(--gold-300);
  box-shadow: inset 0 2px 9px rgba(255, 255, 255, .16), inset 0 -8px 14px rgba(0, 0, 0, .43), 0 0 0 6px rgba(255, 212, 90, .11), 0 0 32px rgba(255, 193, 39, .2);
}

.podium-medal .podium-medal-ico {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .52));
}

.podium-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(.94rem, 1.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-slot--1 .podium-name { color: var(--gold-200); }

.podium-meta {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-stat {
  color: currentColor;
  font-family: var(--font-display);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.podium-base {
  align-self: end;
  width: 3rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  margin-top: 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(3, 17, 15, .48);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .3);
}

.podium-num {
  color: currentColor;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

/* ---- tabela --------------------------------------------------------------- */
.rank-tablewrap {
  padding: .45rem clamp(.5rem, 1.6vw, 1rem) .7rem;
  overflow: hidden;
  border: 1px solid rgba(240, 228, 200, .11);
  border-radius: 16px;
  background: rgba(3, 17, 15, .43);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th {
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(255, 212, 90, .16);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
}

.rank-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(240, 228, 200, .07);
  color: var(--text-muted);
  vertical-align: middle;
}

.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table tbody tr { transition: background .2s ease; }
.rank-table tbody tr:hover { background: rgba(255, 212, 90, .035); }
.rank-table th.rank-pos,
.rank-table td.rank-pos { width: 3.4rem; }

.rank-table td.rank-pos {
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 800;
}

.rank-table td.rank-lvl {
  color: var(--gold-300);
  font-weight: 800;
}

.rank-table th.rank-num,
.rank-table td.rank-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-table td.rank-faint { color: var(--text-faint); }

.rank-who {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

.rank-name {
  color: var(--text-strong);
  font-weight: 700;
}

.rank-medal {
  position: relative;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid hsl(var(--medal-h, 140) 46% 58% / .55);
  border-radius: 50%;
  color: var(--parch-100);
  background: radial-gradient(circle at 32% 26%, hsl(var(--medal-h, 140) 38% 43%), hsl(var(--medal-h, 140) 44% 19%) 72%);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, .16), inset 0 -3px 7px rgba(0, 0, 0, .38);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
}

.rank-medal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rank-class {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.rank-class-ico {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.badge .badge-ico {
  width: 1rem;
  height: 1rem;
  margin-right: .35rem;
  border-radius: 50%;
  vertical-align: -3px;
}

.badge--brak {
  border-color: rgba(217, 105, 79, .45);
  color: var(--danger-soft);
  background: rgba(217, 105, 79, .08);
}

.badge--neutro {
  border-color: rgba(179, 172, 147, .35);
  color: var(--text-muted);
  background: rgba(179, 172, 147, .07);
}

/* ---- carregamento e estados ---------------------------------------------- */
.rank-loading {
  display: grid;
  gap: 2rem;
}

.rank-skel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 228, 200, .07);
  border-radius: 12px;
  background: rgba(240, 228, 200, .05);
}

.rank-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(240, 228, 200, .09) 50%, transparent 80%);
  animation: rank-shimmer 1.8s ease-in-out infinite;
}

@keyframes rank-shimmer { to { transform: translateX(100%); } }

.rank-skel-podium {
  width: min(100%, 58rem);
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 1rem;
  margin: 0 auto;
}

.rank-skel-block--1 { height: 14rem; order: 2; }
.rank-skel-block--2 { height: 12rem; order: 1; }
.rank-skel-block--3 { height: 12rem; order: 3; }
.rank-skel-rows { display: grid; gap: .6rem; }
.rank-skel-rows .rank-skel { height: 3.2rem; }

.rank-state {
  display: grid;
  justify-items: center;
  gap: .7rem;
  padding: clamp(2.8rem, 7vw, 5rem) 1.2rem;
  text-align: center;
}

.rank-state svg { color: var(--gold-400); opacity: .9; }

.rank-state-title {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rank-state-text {
  max-width: 46ch;
  color: var(--text-muted);
}

.rank-state .btn { margin-top: .5rem; }

.rank-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0 clamp(1rem, 4vw, 3rem);
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(240, 228, 200, .08);
  color: var(--text-faint);
  font-size: .88rem;
  text-align: center;
}

.rank-note svg {
  flex: none;
  color: var(--gold-400);
}

/* ---- chamada final -------------------------------------------------------- */
.rank-cta.section--tight {
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.rank-cta-panel {
  position: relative;
  display: grid;
  justify-items: start;
  gap: .8rem;
  max-width: none;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  border-color: rgba(255, 212, 90, .33);
  background:
    radial-gradient(38rem 22rem at 88% 35%, rgba(255, 177, 43, .14), transparent 70%),
    linear-gradient(115deg, #0d372e, #09231e 64%, #30200d);
  text-align: left;
}

.rank-cta-panel::after {
  content: '01';
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 212, 90, .07);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.rank-cta-panel .kicker { align-self: start; }
.rank-cta-panel .h-section { max-width: 18ch; }
.rank-cta-panel .lead { max-width: 43rem; }

.rank-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .45rem;
}

/* ---- responsivo ----------------------------------------------------------- */
@media (max-width: 860px) {
  .rank-hero {
    min-height: 39rem;
  }

  .rank-hero-head {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 2rem;
  }

  .rank-hero-seal {
    padding-inline: 1rem;
  }

  .rank-board-intro {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .rank-board-intro > p { max-width: 40rem; }
}

@media (max-width: 640px) {
  .rank-hero {
    min-height: 35rem;
    padding-top: 6.5rem;
  }

  .rank-hero-scene {
    background-position: 57% center;
  }

  .rank-hero-scene::after {
    background:
      linear-gradient(90deg, rgba(3, 21, 18, .9), rgba(4, 28, 23, .38)),
      linear-gradient(0deg, #061a17 0%, rgba(6, 26, 23, .18) 52%, rgba(4, 14, 12, .45) 100%);
  }

  .rank-hero-head {
    grid-template-columns: 1fr;
    padding-bottom: 7.2rem;
  }

  .rank-hero-copy .h-display {
    font-size: clamp(3.25rem, 17vw, 4.7rem);
  }

  .rank-hero-copy .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .rank-hero-seal { display: none; }

  .rank-hall.section { margin-top: -4.2rem; }

  .rank-board {
    border-radius: 18px 5px 18px 5px;
  }

  .rank-board-intro {
    padding: 1.4rem 1rem 1.1rem;
  }

  .rank-tabs {
    display: flex;
    justify-content: flex-start;
    gap: .4rem;
    margin-inline: .65rem;
    padding: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rank-tabs::-webkit-scrollbar { display: none; }

  .rank-tab {
    flex: 0 0 auto;
    min-width: 6.6rem;
    min-height: 2.85rem;
    padding: .65rem .8rem;
    font-size: .69rem;
  }

  .rank-panel {
    min-height: 24rem;
    padding: 2rem .7rem 1.4rem;
  }

  .podium,
  .podium--compact {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding-top: 0;
  }

  .podium--compact .podium-slot { width: auto; }

  .podium-slot {
    padding: 1.25rem .6rem .8rem;
    border-radius: 14px 4px 14px 4px;
  }

  .podium-slot--1 {
    grid-column: 1 / -1;
    order: 1;
    width: min(100%, 17rem);
    justify-self: center;
    transform: none;
  }

  .podium-slot--2 { order: 2; }
  .podium-slot--3 { order: 3; }

  .podium-medal { --medal-size: 4.25rem; }
  .podium-slot--1 .podium-medal { --medal-size: 5.35rem; }
  .podium-meta { font-size: .75rem; }
  .podium-stat { font-size: .73rem; letter-spacing: .05em; }

  .rank-tablewrap {
    padding-inline: .25rem;
    overflow-x: auto;
  }

  .rank-table { min-width: 35rem; }
  .rank-table th,
  .rank-table td { padding: .75rem .7rem; }

  .rank-note {
    align-items: flex-start;
    margin-inline: .9rem;
    font-size: .8rem;
    line-height: 1.35;
  }

  .rank-cta-panel {
    justify-items: center;
    padding: 2.2rem 1.25rem;
    text-align: center;
  }

  .rank-cta-panel::after { display: none; }
  .rank-cta-panel .lead { margin-inline: auto; }
  .rank-cta-actions { justify-content: center; }
}

@media (max-width: 430px) {
  .rank-hero-copy .h-display { font-size: 3.15rem; }
  .rank-hero-copy .divider-ornament { width: 72%; }
  .rank-board-intro .h-section { font-size: 1.6rem; }

  .rank-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .rank-cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rank-hero-scene { transform: none; }
  .rank-tab { transition: none; }
  .rank-skel::after { animation: none; transform: none; opacity: .35; }
}

/* ---- refatoracao de densidade -------------------------------------------- */
.rank-hero {
  min-height: 14.625rem;
  align-items: end;
  padding-top: 4.625rem;
}
.rank-hero::after { height: 4rem; }
.rank-hero-head {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 10rem;
  gap: 0;
  padding-bottom: 0;
}
.rank-hero-copy { gap: var(--space-2); max-width: 46rem; }
.rank-hero-copy .h-display {
  font-size: var(--type-page-title);
  line-height: 1.02;
  letter-spacing: 0;
}
.rank-hero-copy .divider-ornament { display: none; }
.rank-hero-copy .lead { font-size: var(--type-body); line-height: 1.55; }
.rank-hero-seal { display: none; }
.rank-hall.section {
  margin-top: 0;
  padding: var(--space-4) 0 var(--space-16);
}
.rank-board { border-radius: var(--radius); box-shadow: none; }
.rank-board-intro {
  gap: var(--space-4);
  padding: var(--card-space);
}
.rank-board-intro .h-section { font-size: var(--type-section-title); }
.rank-tabs,
.rank-table-wrap { padding-inline: var(--card-space); }

@media (max-width: 720px) {
  .rank-hero { min-height: 13.625rem; padding-top: 4.625rem; }
  .rank-hero-head { min-height: 9rem; padding-bottom: 0; }
}

/* ---- ranking compacto ----------------------------------------------------- */
.rank-board-intro {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .65fr);
  align-items: center;
  padding: var(--space-4) var(--card-space);
}
.rank-board-intro > div { gap: var(--space-1); }
.rank-board-intro > p {
  font-size: var(--type-body-small);
  line-height: 1.45;
}
.rank-tabs {
  gap: var(--space-1);
  margin: var(--space-3) var(--card-space) 0;
  padding: var(--space-1);
  border-radius: var(--radius);
}
.rank-tab {
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--type-body-small);
}
.rank-tab[aria-selected='true'] {
  box-shadow: none;
  transform: none;
}
.rank-panel {
  min-height: 0;
  padding: var(--space-6) var(--card-space) var(--space-4);
}
.podium {
  width: min(100%, 48rem);
  gap: var(--space-2);
  margin: 0 auto var(--space-4);
  padding: 0;
}
.podium-slot,
.podium-slot--1 {
  gap: var(--space-1);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-color: rgba(255, 212, 90, .12);
  border-radius: var(--radius);
  background: rgba(8, 39, 33, .76);
  box-shadow: none;
  transform: none;
}
.podium-slot--1 { border-color: rgba(255, 212, 90, .28); }
.podium-slot::after { box-shadow: none; }
.podium-laurel { display: none; }
.podium-figure { margin: 0 0 var(--space-2); }
.podium-medal,
.podium-slot--1 .podium-medal {
  --medal-size: 3.5rem;
  border-width: 1px;
  box-shadow: none;
  font-size: 1.25rem;
}
.podium-name {
  font-family: var(--font-body);
  font-size: var(--type-card-title);
  letter-spacing: 0;
}
.podium-meta { font-size: var(--type-body-small); }
.podium-stat {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .06em;
}
.podium-base {
  width: 2.25rem;
  height: 1.5rem;
  margin-top: var(--space-2);
  box-shadow: none;
}
.podium-num { font-family: var(--font-body); font-size: .8125rem; }
.rank-tablewrap {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  box-shadow: none;
}
.rank-table th,
.rank-table td { padding: var(--space-2) var(--space-3); }
.rank-medal { width: 2rem; height: 2rem; }
.rank-cta.section--tight { padding-bottom: var(--space-16); }
.rank-cta-panel {
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius);
  box-shadow: none;
}
.rank-cta-panel::after { display: none; }
.rank-cta-panel .lead { font-size: var(--type-body); }

@media (max-width: 640px) {
  .rank-board-intro { grid-template-columns: 1fr; }
  .rank-panel { padding: var(--space-4) var(--space-3); }
  .podium,
  .podium--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .podium-slot,
  .podium-slot--1 { padding: var(--space-3) var(--space-2); }
  .podium-slot--1 { grid-column: 1 / -1; width: min(100%, 15rem); }
  .podium-medal,
  .podium-slot--1 .podium-medal { --medal-size: 3rem; }
}
