/* ============================================================
   AVALON RAID HALL — STYLES.CSS
   Versão refinada para MVP v3.1+
   Estrutura:
   01. Variáveis globais
   02. Reset/base
   03. Fundo e ambientação
   04. Header e navegação
   05. Layout global e tipografia
   06. Botões e formulários
   07. Cards, molduras e efeitos gerais
   08. Página Salão de Avalon
   09. Página Hall da Evolução
   10. Página Buscar Ficha
   11. Página Registro da Batalha
   12. Página Galeria de Eventos
   13. Footer
   14. Animações
   15. Responsividade
============================================================ */


/* ============================================================
   01. VARIÁVEIS GLOBAIS
============================================================ */

:root {
  --bg-main: #070a13;
  --bg-deep: #0b1020;
  --bg-card: rgba(17, 24, 39, 0.86);
  --bg-card-strong: rgba(7, 11, 22, 0.94);

  --gold: #f2c766;
  --gold-2: #b88930;
  --gold-soft: rgba(242, 199, 102, 0.18);
  --gold-line: rgba(242, 199, 102, 0.42);

  --silver: #d8dee9;
  --bronze: #b87333;
  --blue: #4f8cff;
  --blue-deep: #0b1b33;
  --green: #5bb98c;
  --red: #e06c75;
  --amber: #f6c25b;

  --muted: #aab0c0;
  --text: #f4f0e6;
  --text-soft: #d7d9e2;

  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;

  --font-title: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ============================================================
   02. RESET / BASE
============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(49, 88, 165, 0.28), transparent 32rem),
    radial-gradient(circle at top right, rgba(201, 162, 74, 0.14), transparent 28rem),
    linear-gradient(180deg, #050812 0%, #0b1020 50%, #070a13 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}


/* ============================================================
   03. FUNDO E AMBIENTAÇÃO
============================================================ */

/* Grade sutil no fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

/* Luzes ambientes */
.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  background: #2a66ff;
  top: 9%;
  left: -8rem;
}

.ambient-two {
  background: #f2c766;
  top: 28%;
  right: -12rem;
}


/* ============================================================
   04. HEADER E NAVEGAÇÃO
============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.86rem clamp(1rem, 3vw, 2.2rem);
  background: rgba(6, 9, 19, 0.84);
  border-bottom: 1px solid rgba(201, 162, 74, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(242,199,102,0.22));
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: var(--font-title);
  letter-spacing: 0.035em;
  font-size: clamp(1rem, 2vw, 1.24rem);
  white-space: nowrap;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(242,199,102,0.10);
  box-shadow: inset 0 0 0 1px rgba(242,199,102,0.14);
}


/* ============================================================
   05. LAYOUT GLOBAL E TIPOGRAFIA
============================================================ */

.page-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-block {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
}

.page-hero {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

/* Títulos gerais reduzidos para evitar exagero visual */
h1 {
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  max-width: 13ch;
}

.page-hero h1 {
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
}

p {
  line-height: 1.72;
}

.hero-copy,
.section-heading p,
.page-hero p,
.elite-header p,
.gallery-placeholder p,
.member-card p,
.overview-copy p {
  color: var(--text-soft);
}

.hero-copy {
  max-width: 66ch;
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  max-width: 820px;
}

.section-heading.compact {
  margin-bottom: 1.2rem;
}

.hidden {
  display: none !important;
}


/* ============================================================
   06. BOTÕES E FORMULÁRIOS
============================================================ */

.hero-actions,
.filters-bar,
.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 0.86rem 1.08rem;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
  font-family: var(--font-body);
}

.btn-primary {
  color: #15110a;
  background: linear-gradient(135deg, #f5d37b, #b88a30);
  box-shadow: 0 12px 28px rgba(242,199,102,0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(242,199,102,0.25);
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(216,222,233,0.22);
  background: rgba(255,255,255,0.05);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold);
}

input,
select {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(216, 222, 233, 0.16);
  background: rgba(5, 8, 18, 0.72);
  color: var(--text);
  padding: 0 0.9rem;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(242,199,102,0.10);
}


/* ============================================================
   07. CARDS, MOLDURAS E EFEITOS GERAIS
============================================================ */

.medieval-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.90), rgba(8, 13, 25, 0.90));
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.medieval-card::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: calc(var(--radius) - 7px);
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.gold-frame {
  border-color: rgba(242,199,102,0.36);
}

.gold-frame::before {
  border-color: rgba(242,199,102,0.18);
}

.blue-frame {
  border-color: rgba(79,140,255,0.28);
}

.bronze-frame {
  border-color: rgba(184,115,51,0.38);
}

/* Hover padrão dos cards */
.hover-lift,
.summary-card,
.podium-card,
.elite-item,
.member-card,
.table-wrap,
.gallery-placeholder,
.search-shell,
.overview-copy,
.mini-top {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.summary-card:hover,
.podium-card:hover,
.elite-item:hover,
.member-card:hover,
.search-shell:hover,
.overview-copy:hover,
.mini-top:hover {
  transform: translateY(-5px);
  border-color: rgba(242,199,102,0.48);
  box-shadow: 0 24px 78px rgba(0,0,0,0.50), 0 0 0 1px rgba(242,199,102,0.08);
}

/* Hover em nomes */
.member-name,
.member-name-cell,
.podium-card h3,
.elite-item strong,
.mini-top strong {
  transition: transform 0.22s ease, color 0.22s ease;
}

.podium-card:hover h3,
.elite-item:hover strong,
tr:hover .member-name-cell,
.mini-top:hover strong {
  transform: translateY(-1px);
  color: var(--gold);
}

/* Brilho lento somente em elementos de destaque, NÃO na tabela */
.hero-emblem::after,
.podium-card::after {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 80%;
  height: 200%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(16deg);
  pointer-events: none;
  animation: slowShine 6s ease-in-out infinite;
}


/* ============================================================
   08. PÁGINA SALÃO DE AVALON
============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.hero-emblem {
  padding: 1.4rem;
  display: grid;
  place-items: center;
}

.guild-logo {
  width: min(100%, 330px);
  z-index: 1;
  object-fit: contain;
}

.hero-quote {
  z-index: 1;
  margin-top: 0.5rem;
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 1rem;
}

.summary-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.76);
  border: 1px solid rgba(216, 222, 233, 0.12);
  min-height: 120px;
  display: grid;
  align-content: space-between;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-card strong {
  font-size: clamp(1.25rem, 2.25vw, 1.95rem);
  color: var(--text);
  overflow-wrap: anywhere;
}

.summary-card.gold {
  border-color: rgba(242,199,102,0.40);
  background: linear-gradient(180deg, rgba(242,199,102,0.13), rgba(17,24,39,0.74));
}

.split-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.overview-copy,
.mini-top {
  padding: 1.25rem;
}

.mini-top {
  display: grid;
  gap: 0.75rem;
}

.mini-top-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
}

.mini-top-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.mini-top-row small {
  color: var(--muted);
}




/* ============================================================
   09. PÁGINA HALL DA EVOLUÇÃO
============================================================ */

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.podium-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(17,24,39,0.82);
  border: 1px solid rgba(216,222,233,0.12);
}

.podium-card.gold {
  border-color: rgba(242,199,102,0.46);
}

.podium-card.silver {
  border-color: rgba(216,222,233,0.35);
}

.podium-card.bronze {
  border-color: rgba(184,115,51,0.44);
}

.podium-image-wrap {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-bottom: 0.7rem;
}

.podium-card img {
  width: min(245px, 88%);
  aspect-ratio: 1/1;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.36));
}

.podium-card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.podium-card p {
  margin: 0.34rem 0;
  color: var(--text-soft);
}

.rank-kicker {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.evolution {
  font-weight: 900;
}

.evolution.positive {
  color: var(--green);
}

.evolution.negative {
  color: var(--red);
}

.evolution.neutral {
  color: var(--muted);
}

.elite-panel {
  padding: 1.1rem;
}

.elite-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.elite-header img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.30));
}

.elite-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.elite-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 18px;
  padding: 0.8rem;
  background: rgba(255,255,255,0.035);
}

.elite-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.elite-item span {
  color: var(--muted);
}


/* ============================================================
   10. PÁGINA ORÁCULO DOS GUARDIÕES
============================================================ */

.search-shell {
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.search-shell label {
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.search-row input {
  flex: 1 1 260px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 2.4rem;
}

.suggestion-chip {
  border: 1px solid rgba(216,222,233,0.14);
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.suggestion-chip:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  transform: translateY(-2px);
}

.suggestions.is-empty {
  display: none;
  min-height: 0;
}

.member-card {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.member-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.member-profile img {
  width: 94px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.34));
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.75rem;
}

.stat-box {
  padding: 0.85rem;
  border-radius: 15px;
  border: 1px solid rgba(216,222,233,0.10);
  background: rgba(255,255,255,0.035);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.empty-state {
  text-align: center;
  border-style: dashed;
  color: var(--text-soft);
}


/* ============================================================
   11. PÁGINA REGISTRO DA BATALHA
============================================================ */

/* Ajusta respiro geral apenas na página de Registro */
.registro-page .section-block {
  padding-top: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

/* Área superior com mascotes + título central */
.registro-title-stage {
  padding-bottom: 0.8rem;
}



/* Plataforma visual onde os mascotes "pisam" */


.registro-title-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  overflow: visible;
}

.registro-title-card h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.registro-title-card p {
  max-width: 760px;
  margin: 0.85rem auto 0;
  color: var(--text-soft);
}

/* Mascotes Cley e Olimpio no Registro */






/* Flash pequeno nos óculos dos mascotes */






/* Painel da tabela geral */
.registro-stage {
  position: relative;
  padding-top: 1rem;
}

.registro-panel {
  padding: clamp(0.9rem, 2vw, 1.25rem);
  overflow: visible;
}

/* Garante que o brilho antigo não varra a tabela */
.registro-panel::after {
  display: none;
}

.registro-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registro-subtitle {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.registro-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.kpi-pill {
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}

.kpi-pill strong {
  color: var(--gold);
  margin-right: 0.25rem;
}

.filters-bar {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 18px;
}

.filters-bar input {
  flex: 1 1 260px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 18px;
  background: rgba(5,8,18,0.50);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  text-align: left;
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(216,222,233,0.08);
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background: rgba(242,199,102,0.06);
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(242,199,102,0.055);
}

.member-name-cell {
  font-weight: 900;
}

/* Status da tabela de Registro */
.status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  border: 1px solid rgba(216,222,233,0.14);
}

.status-completo {
  color: #bfe7ff;
  background: rgba(79,140,255,0.12);
  border-color: rgba(79,140,255,0.24);
}

.status-participou_bem {
  color: #baf7d9;
  background: rgba(91,185,140,0.12);
  border-color: rgba(91,185,140,0.25);
}

.status-baixa_participacao {
  color: #ffe3a8;
  background: rgba(242,199,102,0.13);
  border-color: rgba(242,199,102,0.27);
}

.status-quase_ausente {
  color: #ffc1c5;
  background: rgba(224,108,117,0.13);
  border-color: rgba(224,108,117,0.28);
}

.status-ausente {
  color: #d0d2db;
  background: rgba(170,176,192,0.12);
  border-color: rgba(170,176,192,0.22);
}


/* ============================================================
   12. PÁGINA GALERIA DE EVENTOS
============================================================ */

.gallery-placeholder {
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  display: grid;
  place-items: center;
  gap: 0.7rem;
}

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(242,199,102,0.12);
  border: 1px solid rgba(242,199,102,0.28);
  color: var(--gold);
  font-size: 2rem;
}


/* ============================================================
   13. FOOTER
============================================================ */

.site-footer {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid rgba(216,222,233,0.08);
}


/* ============================================================
   14. ANIMAÇÕES
============================================================ */

/* Entrada suave das seções */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Brilho usado em cards de destaque */
@keyframes slowShine {
  0%, 30% {
    transform: translateX(-80%) rotate(16deg);
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  68%, 100% {
    transform: translateX(220%) rotate(16deg);
    opacity: 0;
  }
}

/* Flutuação dos mascotes */
@keyframes mascotFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

/* Flash leve dos óculos dos mascotes */
@keyframes glassesFlash {
  0%, 76%, 100% {
    opacity: 0;
    transform: translateX(-85px) rotate(-18deg);
  }

  80% {
    opacity: 0.85;
  }

  86% {
    opacity: 0;
    transform: translateX(38px) rotate(-18deg);
  }
}


/* ============================================================
   15. RESPONSIVIDADE
============================================================ */

/* Reduz animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablets e notebooks menores */
@media (max-width: 980px) {
  .hero,
  .split-overview {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  h1 {
    max-width: 14ch;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .podium-grid {
    grid-template-columns: 1fr;
  }

  .elite-list {
    grid-template-columns: 1fr;
  }

  .member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Esconde mascotes no mobile/tablet para evitar aperto visual */
  

  

  .registro-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .registro-kpis {
    justify-content: flex-start;
  }
}

/* Celulares e telas estreitas */
@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand-text span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(216,222,233,0.14);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    padding: 0.7rem;
    background: rgba(6,9,19,0.96);
    border: 1px solid rgba(242,199,102,0.20);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .main-nav a {
    text-align: center;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 1rem, 1220px);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .guild-logo {
    width: min(100%, 260px);
  }

  .podium-image-wrap {
    min-height: 180px;
  }

  .podium-card img {
    width: min(210px, 86%);
  }

  .member-profile {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .member-stats {
    grid-template-columns: 1fr;
  }

  .filters-bar input,
  .filters-bar select {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Celulares pequenos */
@media (max-width: 440px) {
  .brand-logo {
    width: 2.6rem;
    height: 2.6rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.72rem;
  }
}

/* ============================================================
   16. V3.2 — COMPONENTE PADRÃO DE TÍTULO DAS PÁGINAS
   Usado em Salão, Hall, Buscar, Registro, Galeria e Liga.
============================================================ */

.page-title-stage {
  padding-top: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.5rem);
}

.page-title-platform {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.page-title-card,
.solo-title-card {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.45rem, 3vw, 2.25rem);
  overflow: visible;
}

.page-title-card h1,
.solo-title-card h1,
.registro-title-card h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.page-title-card p:not(.eyebrow),
.solo-title-card p:not(.eyebrow),
.registro-title-card p:not(.eyebrow) {
  max-width: 760px;
  margin: 0.85rem auto 0;
  color: var(--text-soft);
}

.page-title-with-logo {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
}

.page-title-with-logo .page-title-card {
  margin: 0;
}

.centered-actions {
  justify-content: center;
  margin-top: 1.2rem;
}

.rank-groups {
  display: grid;
  gap: 1rem;
}

.rank-panel {
  padding: 1.1rem;
}

.empty-inline {
  color: var(--text-soft);
  margin: 0.5rem 0;
}


/* ============================================================
   16.1. AJUSTE ESPECÍFICO — REGISTRO COM MASCOTES
   Cabeçalho do Registro migrado para o componente global na V7.6.
   Mantém Cley à esquerda, título no centro e Olimpio à direita.
============================================================ */



.registro-page .registro-title-card.page-title-card {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto;
  justify-self: center;
  align-self: end;
  text-align: center;
  padding: clamp(1.45rem, 3vw, 2.25rem);
}





/* Ajusta a linha/plataforma para ficar alinhada com os mascotes */


/* Mantém o tamanho dos mascotes estável no cabeçalho do Registro */


/* ============================================================
   17. V3.2 — GALERIA DE EVENTOS
============================================================ */

.gallery-filter-panel {
  padding: 1rem;
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.year-filter {
  border: 1px solid rgba(216,222,233,0.14);
  color: var(--text-soft);
  background: rgba(255,255,255,0.045);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  font-weight: 900;
  transition: 0.22s ease;
}

.year-filter:hover,
.year-filter.active {
  color: var(--gold);
  border-color: rgba(242,199,102,0.42);
  background: rgba(242,199,102,0.10);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
}

.gallery-image-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.gallery-image-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card:hover .gallery-image-button img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-card-body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.gallery-card-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.gallery-card-body p {
  margin: 0;
  color: var(--text-soft);
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(10px);
}

.gallery-modal.open {
  display: grid;
}

.gallery-modal-content {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
}

.gallery-modal-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0,0,0,0.35);
}

.gallery-modal-info {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: 0.5rem;
}

.gallery-modal-info p {
  color: var(--text-soft);
  margin: 0;
}

.gallery-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242,199,102,0.30);
  border-radius: 999px;
  background: rgba(6,9,19,0.85);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   18. V3.2 — RESPONSIVIDADE COMPLEMENTAR
============================================================ */

@media (max-width: 980px) {
  

  .page-title-with-logo .page-title-card {
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-title-card,
  .solo-title-card {
    padding: 1.25rem;
  }

  .year-filter {
    flex: 1 1 86px;
    text-align: center;
  }

  .gallery-actions .btn {
    flex: 1 1 130px;
    text-align: center;
  }
}

/* ============================================================
   19. V3.3 — ÍCONES, COERÊNCIA VISUAL E LIGA AVALON
============================================================ */

/* Ícones do Google no menu e botões */
.material-symbols-outlined {
  font-size: 1.12em;
  line-height: 1;
  vertical-align: middle;
}

.main-nav a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.btn.danger {
  color: #ffd0d4;
  border-color: rgba(224,108,117,0.30);
}

.btn.danger:hover {
  color: #fff;
  border-color: rgba(224,108,117,0.56);
  background: rgba(224,108,117,0.12);
}

/* Página Liga Avalon */
.liga-page .section-block {
  padding-top: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(1.2rem, 3vw, 2.2rem);
}

.liga-step {
  position: relative;
}

.league-mode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.league-mode-card {
  width: 100%;
  min-height: 225px;
  padding: 1rem;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(216,222,233,0.12);
  background: rgba(17,24,39,0.76);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.league-mode-card:hover,
.league-mode-card.active {
  transform: translateY(-5px);
  border-color: rgba(242,199,102,0.50);
  box-shadow: 0 24px 78px rgba(0,0,0,0.46), 0 0 0 1px rgba(242,199,102,0.09);
}

.league-mode-card .material-symbols-outlined {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.league-mode-card small,
.league-mode-card span,
.league-muted,
.league-feedback {
  color: var(--text-soft);
}

.league-mode-card strong {
  display: block;
  margin: 0.4rem 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.league-mode-card p {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.league-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.league-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.league-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.league-panel-head p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.league-counter {
  white-space: nowrap;
  border: 1px solid rgba(242,199,102,0.28);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: var(--gold);
  background: rgba(242,199,102,0.08);
  font-weight: 900;
}

.guest-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

.guest-row input {
  flex: 1 1 260px;
}

.league-feedback {
  min-height: 1.5rem;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.league-feedback[data-type="success"] {
  color: #baf7d9;
}

.league-feedback[data-type="warn"] {
  color: #ffe3a8;
}

.selected-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(216,222,233,0.14);
  border-radius: 999px;
  padding: 0.48rem 0.65rem 0.48rem 0.8rem;
  background: rgba(255,255,255,0.045);
  font-weight: 900;
}

.participant-chip small {
  color: var(--muted);
  font-weight: 700;
}

.participant-chip.guest {
  border-color: rgba(242,199,102,0.34);
  background: rgba(242,199,102,0.08);
}

.participant-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.members-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.member-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
  cursor: pointer;
  transition: 0.2s ease;
}

.member-check:hover,
.member-check.selected {
  border-color: rgba(242,199,102,0.35);
  background: rgba(242,199,102,0.07);
}

.member-check small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.75rem;
}

.league-meta-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.league-meta-list span {
  padding: 0.65rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  color: var(--text-soft);
}

.league-actions-stack {
  display: grid;
  gap: 0.7rem;
}

.drawn-order {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.drawn-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.55rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
}

.drawn-item strong {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #15110a;
  background: linear-gradient(135deg, #f5d37b, #b88a30);
}

.drawn-item small {
  grid-column: 2;
  color: var(--muted);
}

.bracket-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.bracket-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 1rem;
  min-width: max-content;
}

.bracket-round h3 {
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.bracket-matches {
  display: grid;
  gap: 0.85rem;
}

.league-match,
.league-survival-group,
.league-reserves {
  padding: 0.9rem;
}

.league-match.complete {
  border-color: rgba(91,185,140,0.38);
}

.league-match-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.league-match-head span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.league-match-head small {
  color: var(--muted);
}

.league-unit {
  padding: 0.7rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.league-unit.winner {
  border-color: rgba(242,199,102,0.44);
  background: rgba(242,199,102,0.11);
}

.league-unit.empty {
  color: var(--muted);
  border-style: dashed;
}

.league-unit small {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

.versus {
  text-align: center;
  margin: 0.4rem 0;
  color: var(--muted);
  font-weight: 900;
}

.league-arena-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0;
  color: var(--text-soft);
}

.league-arena-line .material-symbols-outlined {
  color: var(--gold);
}

.league-match-actions,
.placement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.league-match-actions .btn,
.placement-actions .btn {
  padding: 0.58rem 0.72rem;
  font-size: 0.84rem;
}

.survival-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.survival-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.survival-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.survival-row small {
  display: block;
  color: var(--muted);
}

.placement-actions .selected,
.survival-row .selected {
  color: #15110a;
  background: linear-gradient(135deg, #f5d37b, #b88a30);
  border-color: transparent;
}

.league-podium-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
}

.podium-final-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}

.podium-final-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(216,222,233,0.14);
  background: rgba(255,255,255,0.04);
  text-align: center;
  animation: podiumRise 0.75s ease both;
}

.podium-final-card.gold {
  min-height: 225px;
  border-color: rgba(242,199,102,0.50);
  background: linear-gradient(180deg, rgba(242,199,102,0.16), rgba(255,255,255,0.04));
  animation-delay: 0.25s;
}

.podium-final-card.silver {
  border-color: rgba(216,222,233,0.38);
  animation-delay: 0.1s;
}

.podium-final-card.bronze {
  border-color: rgba(184,115,51,0.45);
  animation-delay: 0.02s;
}

.podium-final-card .material-symbols-outlined {
  color: var(--gold);
  font-size: 3rem;
}

.podium-final-card small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.podium-final-card strong {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

@keyframes podiumRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .league-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .members-check-grid,
  .drawn-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .league-builder-grid,
  .survival-grid,
  .podium-final-grid {
    grid-template-columns: 1fr;
  }

  .podium-final-card.gold {
    order: -1;
  }
}

@media (max-width: 720px) {
  .main-nav a {
    gap: 0.32rem;
  }

  .league-mode-grid,
  .members-check-grid,
  .drawn-order {
    grid-template-columns: 1fr;
  }

  .league-panel-head,
  .survival-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .league-counter,
  .guest-row .btn {
    width: 100%;
  }

  .league-match-actions .btn,
  .placement-actions .btn {
    flex: 1 1 100%;
  }
}


/* ============================================================
   20. V4.0 — HALL JUSTO, LIGA EM FASES E TROFÉUS
============================================================ */

/* Status novos do Registro/Buscar Ficha */
.status-retorno_batalha {
  color: #ffe7a8;
  background: rgba(242,199,102,0.14);
  border-color: rgba(242,199,102,0.34);
}

.status-sem_comparativo {
  color: #d0d2db;
  background: rgba(170,176,192,0.12);
  border-color: rgba(170,176,192,0.22);
}

/* Navegação da Liga por fases/slides */
.league-slide-shell {
  display: grid;
  gap: 1rem;
}

.league-phase-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
}

.phase-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: thin;
}

.phase-tab {
  border: 1px solid rgba(216,222,233,0.14);
  color: var(--text-soft);
  background: rgba(255,255,255,0.045);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.22s ease;
}

.phase-tab:hover,
.phase-tab.active {
  color: var(--gold);
  border-color: rgba(242,199,102,0.42);
  background: rgba(242,199,102,0.10);
  transform: translateY(-2px);
}

.league-phase-map {
  padding: clamp(1rem, 2vw, 1.35rem);
  display: grid;
  gap: 0.65rem;
  place-items: center;
  text-align: center;
}

.league-phase-map h3 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  color: var(--gold);
}

.league-phase-map p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
}

.phase-panel {
  display: grid;
  gap: 1rem;
}

.phase-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.phase-heading p:not(.eyebrow) {
  color: var(--text-soft);
}

.phase-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.phase-matches-grid.final-grid,
.survival-grid.final-grid {
  max-width: 720px;
  margin-inline: auto;
}

/* Cards limpos: o próprio nome é o botão de avanço */
.league-unit {
  width: 100%;
  text-align: left;
  color: var(--text);
}

button.league-unit {
  border: 1px solid rgba(216,222,233,0.10);
  cursor: pointer;
  font: inherit;
}

.league-unit.selectable:hover {
  transform: translateY(-2px);
  border-color: rgba(242,199,102,0.48);
  background: rgba(242,199,102,0.09);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.league-unit.winner,
.survival-row.winner {
  border-color: rgba(242,199,102,0.48);
  background: rgba(242,199,102,0.12);
  box-shadow: inset 0 0 0 1px rgba(242,199,102,0.08);
}

.league-unit.loser {
  opacity: 0.58;
  filter: grayscale(0.35);
}

.compact-actions {
  margin-top: 0.75rem;
}

.compact-actions .btn {
  width: auto;
}

.survival-row.selectable {
  width: 100%;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(216,222,233,0.10);
  cursor: pointer;
  font: inherit;
}

.survival-row.selectable:hover {
  transform: translateY(-2px);
  border-color: rgba(242,199,102,0.42);
  background: rgba(242,199,102,0.08);
}

.survival-row .material-symbols-outlined {
  color: var(--gold);
}

.league-reserves {
  margin-bottom: 1rem;
}

/* Pódio com troféus personalizados */
.league-podium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.podium-final-export {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 12%, rgba(242,199,102,0.12), transparent 30%),
    linear-gradient(180deg, rgba(7,11,22,0.72), rgba(17,24,39,0.64));
  border: 1px solid rgba(242,199,102,0.20);
  overflow: hidden;
}

.podium-final-export::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border-radius: calc(var(--radius) - 9px);
  border: 1px solid rgba(242,199,102,0.13);
  pointer-events: none;
}

.podium-export-title {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 0.8rem;
}

.podium-export-title h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

.podium-final-card img {
  width: min(190px, 80%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.36));
  animation: trophyGlow 3.6s ease-in-out infinite;
}

.podium-final-card.gold img {
  width: min(235px, 88%);
}

.podium-final-card.gold {
  transform-origin: bottom center;
}

@keyframes trophyGlow {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.36));
  }
  50% {
    transform: translateY(-5px);
    filter: drop-shadow(0 24px 36px rgba(242,199,102,0.22));
  }
}

@media (max-width: 980px) {
  .league-phase-nav {
    grid-template-columns: 1fr;
  }

  .league-phase-nav > .btn {
    width: 100%;
  }

  .phase-tabs {
    order: -1;
  }

  .phase-matches-grid {
    grid-template-columns: 1fr;
  }

  .league-podium-actions {
    width: 100%;
    justify-content: stretch;
  }

  .league-podium-actions .btn {
    flex: 1 1 220px;
  }
}


/* ============================================================
   21. V4.1 — LIGA MAIS INTUITIVA
   Busca de membros, avisos centrais, Top 3 no 1v5 e fluxo guiado
============================================================ */

.league-builder-panel {
  display: grid;
  gap: 1rem;
}

.league-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.member-search-box {
  display: grid;
  gap: 0.55rem;
}

.member-search-box label {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.member-suggestions {
  min-height: 3.2rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.028);
}

.member-suggestion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: 0.22s ease;
  text-align: left;
}

.member-suggestion:hover {
  transform: translateY(-2px);
  border-color: rgba(242,199,102,0.42);
  background: rgba(242,199,102,0.08);
}

.member-suggestion small {
  color: var(--muted);
}

.compact-selected {
  margin: 0.3rem 0 0;
  padding: 0.8rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.league-summary-card {
  padding: clamp(1rem, 2vw, 1.2rem);
  display: grid;
  gap: 0.8rem;
}

.league-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.league-actions-row .btn {
  flex: 1 1 190px;
}

.league-feedback {
  min-height: 0;
  margin: 0;
}

.copy-phase-call {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
}

/* Avisos centrais animados */














@keyframes noticeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes noticeFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Sobrevivência 1v5: Top 3 por grupo */
.league-survival-group.complete {
  border-color: rgba(91,185,140,0.38);
}

.compact-help {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.92rem;
}

.survival-row.placed {
  border-color: rgba(242,199,102,0.34);
  background: rgba(242,199,102,0.08);
}

.survival-row.gold {
  border-color: rgba(242,199,102,0.52);
  background: rgba(242,199,102,0.14);
}

.survival-row.silver {
  border-color: rgba(216,222,233,0.42);
  background: rgba(216,222,233,0.09);
}

.survival-row.bronze {
  border-color: rgba(184,115,51,0.50);
  background: rgba(184,115,51,0.12);
}

.survival-place-label {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

/* Ajuste do painel de fase para reduzir rolagem e dar sensação de slide */
.league-slide-shell {
  scroll-margin-top: 90px;
}

.phase-panel {
  min-height: 320px;
}

.phase-tabs {
  justify-content: center;
}

.phase-tab {
  min-width: max-content;
}

/* Responsividade da V4.1 */
@media (max-width: 980px) {
  .league-add-grid {
    grid-template-columns: 1fr;
  }

  .copy-phase-call {
    width: 100%;
  }
}

@media (max-width: 720px) {
  

  .member-suggestion {
    align-items: flex-start;
    flex-direction: column;
  }

  .survival-place-label {
    white-space: normal;
  }
}


/* ============================================================
   22. V4.2 — MASCOTES CONTEXTUAIS, SALÃO E LIGA DE EQUIPES
============================================================ */

.salao-title-core {
  position: relative;
  z-index: 2;
}

/* Cabeçalhos com mascotes contextuais */
.page-hero-mascots {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) minmax(120px, 190px);
  gap: clamp(0.8rem, 2vw, 1.35rem);
  align-items: end;
}

.page-hero-mascots::after {
  content: "";
  position: absolute;
  left: var(--hero-platform-left);
  right: var(--hero-platform-right);
  bottom: var(--hero-platform-bottom);
  height: var(--hero-platform-height);
  border-radius: 999px;
  background: var(--hero-platform-gradient);
  box-shadow: var(--hero-platform-shadow);
  pointer-events: none;
  z-index: 0;
}

.salao-hero-mascots::after {
  bottom: -0.25rem;
  opacity: 0.65;
}

.page-hero-mascot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: end;
  justify-content: center;
  pointer-events: none;
  animation: mascotFloat 4.6s ease-in-out infinite;
}

.page-hero-mascot.right {
  animation-delay: 0.55s;
}

.page-hero-mascot img {
  width: clamp(118px, 12vw, 182px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.42));
}

.salao-hero-mascots .page-hero-mascot img {
  width: clamp(125px, 13vw, 196px);
}

.galeria-hero-mascots .page-hero-mascot img,
.liga-hero-mascots .page-hero-mascot img {
  width: clamp(126px, 13.5vw, 205px);
}

.page-hero-mascots > .page-title-card,
.page-hero-mascots > .page-title-platform {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 100%;
}

.page-hero-mascots > .page-title-card {
  max-width: 860px;
}

.salao-hero-mascots {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
}

.salao-hero-mascots .page-title-with-logo {
  width: 100%;
}

/* Liga: resumo e definição manual de equipes */
.league-summary-heading {
  text-align: center;
}

.league-summary-heading p:not(.eyebrow) {
  margin: 0.35rem auto 0;
  max-width: 760px;
  color: var(--text-soft);
}

.league-mode-section {
  display: grid;
  gap: 0.8rem;
}

.compact-mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-mode-grid .league-mode-card {
  min-height: 178px;
  padding: 0.85rem;
}

.compact-mode-grid .league-mode-card p {
  font-size: 0.82rem;
}

.league-team-controls {
  display: grid;
  gap: 0.85rem;
}

.league-team-controls:empty {
  display: none;
}

.team-controls-card {
  padding: clamp(0.95rem, 2vw, 1.15rem);
  display: grid;
  gap: 0.9rem;
}

.team-controls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.team-controls-head p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.team-mode-badge {
  white-space: nowrap;
  border: 1px solid rgba(242,199,102,0.30);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--gold);
  background: rgba(242,199,102,0.08);
  font-weight: 900;
  font-size: 0.82rem;
}

.team-action-row,
.manual-team-info,
.manual-team-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.team-action-row .btn,
.manual-team-add .btn {
  flex: 1 1 180px;
}

.manual-team-builder {
  display: grid;
  gap: 0.85rem;
}

.manual-team-info {
  justify-content: space-between;
}

.manual-team-info p {
  margin: 0;
}

.manual-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.manual-team-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(216,222,233,0.11);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.manual-team-title {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}

.manual-team-title strong {
  color: var(--gold);
  font-family: var(--font-title);
}

.manual-team-title small {
  color: var(--muted);
  font-weight: 900;
}

.manual-team-title button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(224,108,117,0.18);
  cursor: pointer;
}

.manual-team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.2rem;
}

.manual-team-add select {
  flex: 2 1 220px;
}

.podium-members {
  display: block;
  max-width: 280px;
  min-height: 1.2rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}


@media (max-width: 1180px) {
  .compact-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-hero-mascots,
  .salao-hero-mascots {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero-mascots::after {
    display: none;
  }

  .page-hero-mascot {
    display: none;
  }

  .salao-hero-mascots .page-title-with-logo {
    grid-template-columns: 1fr;
  }

  .manual-team-grid {
    grid-template-columns: 1fr;
  }

  .team-controls-head,
  .manual-team-info {
    flex-direction: column;
    align-items: stretch;
  }

  .team-mode-badge {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .compact-mode-grid {
    grid-template-columns: 1fr;
  }

}


/* ============================================================
   23. V4.3 — LIGA INTELIGENTE, PÓDIO REFINADO E MASCOTES
============================================================ */

:root {
  --mascot-title-size: clamp(132px, 13vw, 205px);
  --mascot-title-size-large: clamp(145px, 14vw, 225px);
  --mascot-registro-size: clamp(175px, 17vw, 265px);
}

/* Padronização final dos mascotes contextuais */
.page-hero-mascot img {
  width: var(--mascot-title-size);
  max-height: 285px;
}

.salao-hero-mascots .page-hero-mascot img,
.hall-hero-mascots .page-hero-mascot img,
.buscar-hero-mascots .page-hero-mascot img,
.galeria-hero-mascots .page-hero-mascot img,
.liga-hero-mascots .page-hero-mascot img {
  width: var(--mascot-title-size-large);
}

/* Registro fica levemente maior, mas preserva o padrão original da página */




/* Botões e controles finais da Liga */
.manual-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.manual-team-toolbar .btn {
  flex: 1 1 170px;
}


.podium-final-card small {
  min-height: 2.2em;
}

.podium-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242,199,102,0.16);
}


/* Responsividade V4.3 */
@media (max-width: 980px) {

  

  
}

@media (max-width: 720px) {
  :root {
    --mascot-title-size: clamp(92px, 28vw, 140px);
    --mascot-title-size-large: clamp(96px, 30vw, 150px);
  }

  .page-hero-mascots {
    grid-template-columns: 1fr;
  }

  .page-hero-mascot {
    display: none;
  }

  .manual-team-toolbar,
  .podium-final-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   24. V4.3.1 — CORREÇÕES DE PÓDIO, TOPO E MASCOTES DO REGISTRO
============================================================ */

/* Botões finais do pódio: seta à esquerda e limpar à direita */
.podium-final-actions {
  justify-content: space-between;
  align-items: center;
}

.podium-final-actions.only-top {
  justify-content: flex-start;
}



/* Corrige regra mais específica antiga que impedia aumento dos mascotes do Registro */






/* Preserva leitura no notebook e evita sobreposição em larguras intermediárias */
@media (max-width: 1180px) {
  :root {
    --mascot-registro-size: clamp(150px, 15vw, 220px);
  }

  
}

@media (max-width: 980px) {
  .podium-final-actions,
  .podium-final-actions.only-top {
    justify-content: stretch;
  }

  .podium-final-actions .btn {
    flex: 1 1 100%;
  }
}


/* ============================================================
   25. V5.0 — POLIMENTO FINAL, MAPAS DA LIGA E PRÉ-DEPLOY
============================================================ */

:root {
  --mascot-title-size: clamp(138px, 13.5vw, 215px);
  --mascot-title-size-large: clamp(158px, 14.8vw, 245px);
  --mascot-title-size-xl: clamp(170px, 15.6vw, 265px);
  --mascot-registro-size: clamp(178px, 17vw, 265px);
}

/* Salão: card centralizado de dados atuais da Raid */
.salao-raid-section {
  padding-top: clamp(1.2rem, 3vw, 2.2rem);
}

.raid-summary-card {
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(242,199,102,0.14), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(39,76,154,0.14), transparent 36%),
    linear-gradient(180deg, rgba(17,24,39,0.92), rgba(7,11,22,0.92));
}

.raid-summary-card .section-heading {
  margin-bottom: 1rem;
}

.raid-summary-card .summary-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.raid-summary-card .summary-card {
  min-height: 112px;
  background: rgba(5,8,18,0.46);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.raid-summary-card .summary-card strong {
  font-size: clamp(1.18rem, 1.9vw, 1.72rem);
}

/* Mascotes: aumento controlado nas páginas mais visuais */
.salao-hero-mascots .page-hero-mascot img {
  width: var(--mascot-title-size-xl);
  max-height: 330px;
}

.galeria-hero-mascots .page-hero-mascot img,
.liga-hero-mascots .page-hero-mascot img {
  width: var(--mascot-title-size-xl);
  max-height: 325px;
}

.hall-hero-mascots .page-hero-mascot img,
.buscar-hero-mascots .page-hero-mascot img {
  width: var(--mascot-title-size-large);
  max-height: 310px;
}





/* Flash do Cley: reposicionado para atravessar os óculos, não a testa */


/* Mapas da Liga */
.league-phase-map {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.65rem;
}

.league-map-preview {
  width: min(100%, 520px);
  margin: 0.2rem auto 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(216,222,233,0.14);
  background: rgba(0,0,0,0.28);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0,0,0,0.32);
}

.league-map-preview img {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  background: rgba(0,0,0,0.34);
}

.league-map-preview.empty-map {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
}

.league-map-preview.empty-map .material-symbols-outlined {
  color: var(--gold);
  font-size: 2.5rem;
}

.map-draw-status {
  display: inline-flex;
  justify-content: center;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.league-phase-map.single-map .btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Pódio: botões fora da área exportada */
.podium-export-actions {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.2rem;
}


.placement-card-download {
  width: fit-content;
  margin-top: 0.9rem;
}


.winner-share-card .btn .material-symbols-outlined,
.podium-export-actions .btn .material-symbols-outlined {
  vertical-align: -0.18em;
  margin-right: 0.2rem;
}

/* Responsividade final */
@media (max-width: 1180px) {
  :root {
    --mascot-title-size-xl: clamp(140px, 13vw, 215px);
    --mascot-registro-size: clamp(155px, 15vw, 225px);
  }

  .raid-summary-card .summary-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  
}

@media (max-width: 980px) {
  .raid-summary-card .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .league-map-preview {
    width: min(100%, 460px);
  }

  .league-map-preview img {
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .raid-summary-card .summary-grid {
    grid-template-columns: 1fr;
  }

  .league-map-preview img {
    max-height: 220px;
  }

  .placement-card-download,
  .podium-export-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   26. V5.1 — CORREÇÕES DO PÓDIO, CARDS E FLUXO FINAL DA LIGA
============================================================ */

/* Pódio oficial: cards individuais em coluna para leitura e download por jogador/equipe */
.placement-share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.winner-share-card.placement-share-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  overflow: hidden;
  border-radius: var(--radius);
}

.winner-share-card.placement-gold {
  border-color: rgba(242,199,102,0.52);
  background:
    radial-gradient(circle at 86% 20%, rgba(242,199,102,0.22), transparent 34%),
    linear-gradient(135deg, rgba(242,199,102,0.12), rgba(255,255,255,0.035));
}

.winner-share-card.placement-silver {
  border-color: rgba(216,222,233,0.46);
  background:
    radial-gradient(circle at 86% 20%, rgba(216,222,233,0.18), transparent 34%),
    linear-gradient(135deg, rgba(216,222,233,0.09), rgba(255,255,255,0.035));
}

.winner-share-card.placement-bronze {
  border-color: rgba(184,115,51,0.52);
  background:
    radial-gradient(circle at 86% 20%, rgba(184,115,51,0.20), transparent 34%),
    linear-gradient(135deg, rgba(184,115,51,0.10), rgba(255,255,255,0.035));
}

.winner-share-export {
  display: grid;
  gap: 1rem;
}

.winner-share-header {
  text-align: center;
}

.winner-share-header h2 {
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 0.98;
  margin: 0.25rem 0 0.35rem;
}

.winner-share-place {
  color: var(--text-soft);
  font-weight: 800;
}

.winner-share-body {
  display: grid;
  grid-template-columns: minmax(145px, 260px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.winner-share-body.solo-card {
  grid-template-columns: minmax(180px, 310px) minmax(0, 1fr);
}

.winner-share-trophy-wrap {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.winner-share-trophy-wrap::after,
.podium-final-card::after {
  content: "";
  position: absolute;
  inset: 10% 6%;
  border-radius: 999px;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.0) 36%, rgba(255,255,255,0.46) 49%, rgba(255,255,255,0.0) 62%, transparent 100%);
  transform: translateX(-135%) rotate(8deg);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: ligaTrophyShine 4.8s ease-in-out infinite;
  z-index: 2;
}

.podium-final-card::after {
  inset: 18% 22% 34%;
  opacity: 0.7;
}

.winner-share-card img {
  width: min(230px, 100%);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.40));
  animation: trophyGlow 3.8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.winner-share-details {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  text-align: left;
}

.winner-share-team-name,
.winner-share-player-name {
  font-family: var(--font-title);
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  word-break: break-word;
}

.winner-share-members-title,
.winner-share-status {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.winner-share-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(242,199,102,0.24);
  background: rgba(242,199,102,0.10);
  color: var(--gold);
}

.winner-share-members-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-weight: 850;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.winner-share-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.placement-card-download {
  width: auto;
  min-width: min(260px, 100%);
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.placement-btn-gold,
.placement-btn-gold:hover {
  color: #161006;
  border-color: rgba(242,199,102,0.8);
  background: linear-gradient(135deg, #ffe28a, #c6922f);
}

.placement-btn-silver,
.placement-btn-silver:hover {
  color: #10141d;
  border-color: rgba(216,222,233,0.85);
  background: linear-gradient(135deg, #f1f4fb, #aab3c1);
}

.placement-btn-bronze,
.placement-btn-bronze:hover {
  color: #160c06;
  border-color: rgba(184,115,51,0.85);
  background: linear-gradient(135deg, #e6a06b, #9d5727);
}

.podium-export-actions .btn {
  border-radius: 999px;
  min-width: min(280px, 100%);
}

/* Evita aparência de salas fantasmas e destaca avanços diretos */
.league-match:has(.league-unit.empty) .league-match-head small,
.league-match.complete .league-match-head small {
  color: var(--gold);
}

.league-unit.empty strong {
  color: rgba(215,217,226,0.58);
}

@keyframes ligaTrophyShine {
  0%, 62%, 100% {
    transform: translateX(-135%) rotate(8deg);
    opacity: 0;
  }
  72% {
    opacity: 0.8;
  }
  88% {
    transform: translateX(135%) rotate(8deg);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .winner-share-body,
  .winner-share-body.solo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .winner-share-details {
    text-align: center;
    justify-items: center;
  }

  .winner-share-members-list {
    text-align: left;
  }

  .winner-share-card img {
    width: min(210px, 82%);
  }
}

@media (max-width: 560px) {
  .winner-share-header h2 {
    font-size: clamp(1.45rem, 10vw, 2.2rem);
  }

  .winner-share-team-name,
  .winner-share-player-name {
    font-size: clamp(1.35rem, 8vw, 1.9rem);
  }

  .placement-card-download {
    width: 100%;
  }
}

/* ============================================================
   27. V5.2.1 — AJUSTE FINAL DO FLUXO DA LIGA
   Cabeçalho da Etapa 3 padronizado e confirmação bloqueada após início
============================================================ */

.league-bracket-stage {
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
  display: grid;
  gap: 1rem;
  scroll-margin-top: 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(242,199,102,0.12), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(39,76,154,0.14), transparent 34%),
    linear-gradient(180deg, rgba(17,24,39,0.88), rgba(7,11,22,0.92));
}

.league-bracket-stage .league-bracket {
  display: grid;
  gap: 1rem;
}

.league-bracket-heading {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 0.35rem;
  padding: clamp(0.2rem, 0.8vw, 0.35rem) clamp(0.25rem, 1vw, 0.6rem);
  text-align: center;
}

.league-bracket-heading .eyebrow {
  justify-content: center;
  color: var(--gold);
}

.league-bracket-heading h2 {
  font-size: clamp(1.75rem, 3.25vw, 2.55rem);
  margin: 0.35rem 0 0.45rem;
  line-height: 1.04;
}

.league-bracket-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0.35rem auto 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.league-bracket-stage .league-slide-shell {
  padding: 0;
  gap: 1.05rem;
}

.league-bracket-stage .league-phase-nav {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.022)),
    rgba(5,8,18,0.38);
  border-color: rgba(242,199,102,0.18);
}

.league-bracket-stage .league-phase-map,
.league-bracket-stage .league-match,
.league-bracket-stage .league-survival-group,
.league-bracket-stage .gallery-placeholder {
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.placement-card-download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.placement-card-download::after {
  content: "";
  position: absolute;
  inset: -45% -35%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.52) 50%, rgba(255,255,255,0) 62%, transparent 100%);
  transform: translateX(-125%) rotate(12deg);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.28s ease;
}

.placement-card-download .material-symbols-outlined {
  position: relative;
  z-index: 1;
}

.placement-card-download:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.04);
}

.placement-card-download:hover::after {
  opacity: 0.75;
  transform: translateX(125%) rotate(12deg);
}

.placement-btn-gold:hover {
  box-shadow: 0 14px 36px rgba(242,199,102,0.34), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.placement-btn-silver:hover {
  box-shadow: 0 14px 36px rgba(216,222,233,0.30), inset 0 0 0 1px rgba(255,255,255,0.20);
}

.placement-btn-bronze:hover {
  box-shadow: 0 14px 36px rgba(184,115,51,0.34), inset 0 0 0 1px rgba(255,255,255,0.14);
}

@media (max-width: 760px) {
  .league-bracket-heading {
    text-align: center;
    padding-inline: 0;
  }

  .league-bracket-heading h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .league-bracket-stage {
    padding: 1rem;
  }
}

/* ============================================================
   28. V5.3 — NAVEGAÇÃO FINAL DAS RODADAS DA LIGA
   Navegador centralizado: uma rodada em destaque por vez
============================================================ */

.league-round-navigator {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-areas:
    "prev center next"
    "actions actions actions";
  align-items: center;
  gap: 0.9rem 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(242,199,102,0.12), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022)),
    rgba(5,8,18,0.48);
  border-color: rgba(242,199,102,0.20);
}

.round-nav-control {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(242,199,102,0.26);
  color: var(--gold);
  background: rgba(255,255,255,0.055);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.round-nav-control.prev { grid-area: prev; justify-self: start; }
.round-nav-control.next { grid-area: next; justify-self: end; }

.round-nav-control .material-symbols-outlined {
  font-size: 2.05rem;
}

.round-nav-control:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(242,199,102,0.54);
  box-shadow: 0 12px 34px rgba(242,199,102,0.18), 0 18px 40px rgba(0,0,0,0.28);
}

.round-nav-control:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.round-nav-center {
  grid-area: center;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  min-width: 0;
}

.round-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
}

.round-nav-center h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-title);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}

.round-progress-label {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.round-helper {
  max-width: 640px;
  margin: 0.2rem auto 0;
  color: var(--text-soft);
}

.round-progress-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.1rem;
}

.round-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(216,222,233,0.28);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 rgba(242,199,102,0);
}

.round-dot.complete {
  background: rgba(242,199,102,0.35);
  border-color: rgba(242,199,102,0.42);
}

.round-dot.active {
  width: 28px;
  background: linear-gradient(90deg, rgba(242,199,102,0.95), rgba(255,239,177,0.72));
  border-color: rgba(242,199,102,0.75);
  box-shadow: 0 0 18px rgba(242,199,102,0.30);
}

.round-nav-actions {
  grid-area: actions;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.3rem;
}

.league-bracket-stage .copy-phase-call {
  min-width: min(100%, 250px);
}

/* Remove a sensação de abas antigas quando algum cache/localStorage mantiver marcação anterior. */
.league-bracket-stage .phase-tabs:empty {
  display: none;
}

@media (max-width: 760px) {
  .league-round-navigator {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.75rem 0.6rem;
    padding: 1rem 0.8rem;
  }

  .round-nav-control {
    width: 44px;
    height: 44px;
  }

  .round-nav-control .material-symbols-outlined {
    font-size: 1.7rem;
  }

  .round-nav-center h3 {
    font-size: clamp(1.25rem, 7.2vw, 2rem);
  }

  .round-helper {
    font-size: 0.94rem;
  }
}

/* ============================================================
   V6.0 — PÁGINA RAID / ESTRATÉGIAS DE COMBATE
============================================================ */

.raid-page .section-block {
  padding-top: clamp(1.4rem, 3.5vw, 2.6rem);
  padding-bottom: clamp(1.2rem, 3vw, 2.1rem);
}

.raid-hero-mascots .page-hero-mascot img {
  width: clamp(142px, 15vw, 240px);
  max-height: 360px;
}

.raid-page .source-pill {
  width: fit-content;
  margin: 1rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(79,140,255,0.38);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #dce9ff;
  background: rgba(79,140,255,0.12);
  font-weight: 800;
  font-size: 0.88rem;
}

.raid-consult-panel,
.raid-results-panel {
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.raid-section-heading,
.raid-results-head {
  text-align: center;
  margin-bottom: 1.2rem;
}

.raid-section-heading p:not(.eyebrow),
.raid-results-head p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
}

.raid-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(79,140,255,0.30);
  background: rgba(79,140,255,0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin: 0 auto 1.2rem;
  max-width: 980px;
  color: var(--text-soft);
}

.raid-notice .material-symbols-outlined {
  color: var(--blue);
  font-size: 1.55rem;
  flex: 0 0 auto;
}

.raid-notice p {
  margin: 0;
  line-height: 1.55;
}

.raid-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(260px, 1.15fr);
  gap: 1rem;
  align-items: end;
}

.raid-field {
  display: grid;
  gap: 0.45rem;
}

.raid-field span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.raid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.raid-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  text-align: center;
  font-weight: 800;
  color: var(--text-soft);
}

.raid-status[data-type="success"] { color: #baf7d9; }
.raid-status[data-type="warn"] { color: #ffe3a8; }
.raid-status[data-type="info"] { color: #dce9ff; }

.raid-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.raid-results-head p {
  margin-left: 0;
}

.raid-cache-badge {
  border: 1px solid rgba(242,199,102,0.30);
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  color: var(--gold);
  background: rgba(242,199,102,0.09);
  font-weight: 900;
  white-space: nowrap;
}

.raid-results {
  display: grid;
  gap: 1rem;
}

.raid-results.empty-state {
  place-items: center;
  min-height: 250px;
}

.raid-empty-card {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: rgba(5,8,18,0.38);
}

.raid-empty-card .material-symbols-outlined {
  color: var(--gold);
  font-size: 2.35rem;
}

.raid-empty-card strong {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}

.raid-empty-card p {
  margin: 0;
  color: var(--text-soft);
}

.raid-empty-card.loading .material-symbols-outlined {
  animation: spin 1.4s linear infinite;
}

.raid-empty-card.error .material-symbols-outlined {
  color: var(--red);
}

.raid-team-card {
  padding: clamp(1rem, 2.2vw, 1.45rem);
}

.raid-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.raid-boss-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.raid-boss-title h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
}

.raid-boss-title p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.raid-damage-box {
  min-width: 150px;
  border: 1px solid rgba(242,199,102,0.30);
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
  text-align: right;
  background: rgba(242,199,102,0.08);
}

.raid-damage-box span,
.raid-damage-box small {
  display: block;
  color: var(--text-soft);
  font-weight: 800;
}

.raid-damage-box strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.55rem;
}

.raid-team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.raid-team-meta span {
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 999px;
  padding: 0.42rem 0.65rem;
  color: var(--text-soft);
  background: rgba(17,24,39,0.56);
  font-size: 0.84rem;
  font-weight: 800;
}

.raid-heroes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.raid-hero-slot {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 20px;
  padding: 0.85rem;
  background: rgba(5,8,18,0.38);
  min-width: 0;
  text-align: center;
}

.raid-hero-info strong,
.raid-hero-info span {
  display: block;
}

.raid-hero-info strong {
  color: var(--gold);
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.raid-hero-info span {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.raid-hero-avatar-box {
  display: grid;
  place-items: center;
}

.raid-gear-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
}

.raid-gear-item {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 58px;
}

.raid-gear-item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.raid-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 16px;
  background: rgba(17,24,39,0.48);
  overflow: hidden;
}

.raid-image-wrap.hero {
  width: 96px;
  height: 96px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

.raid-image-wrap.hero img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
}

.raid-image-wrap.boss {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
}

.raid-image-wrap.boss img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.raid-image-wrap.mini {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.raid-image-wrap.mini img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.raid-image-wrap img.is-hidden {
  display: none;
}

.raid-image-fallback {
  display: grid;
  place-items: center;
  min-width: 100%;
  min-height: 100%;
  padding: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.raid-mini-stats {
  width: 100%;
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.raid-mini-stats div {
  display: grid;
  gap: 0.18rem;
  border-top: 1px solid rgba(216,222,233,0.08);
  padding-top: 0.42rem;
}

.raid-mini-stats dt,
.raid-mini-stats dd {
  margin: 0;
  font-size: 0.78rem;
}

.raid-mini-stats dt {
  color: var(--muted);
}

.raid-mini-stats dd {
  color: var(--text);
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.raid-strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.8rem;
}

.raid-strategy-grid.single {
  grid-template-columns: 1fr;
}

.raid-strategy-box {
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 20px;
  padding: 0.95rem;
  background: rgba(5,8,18,0.32);
}

.raid-strategy-box h4 {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--font-title);
}

.raid-strategy-box p,
.raid-muted {
  color: var(--text-soft);
  line-height: 1.58;
}

.raid-chain-pattern {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.raid-chain-pattern strong {
  color: var(--text);
}

.raid-chain-pattern ol {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raid-chain-pattern li {
  display: grid;
  grid-template-columns: minmax(4.7rem, auto) minmax(0, 1fr);
  gap: 0.55rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.raid-chain-pattern li span {
  color: var(--gold);
  font-weight: 900;
}

.raid-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.raid-source-link,
.raid-video-link {
  min-width: min(100%, 220px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .raid-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .raid-actions {
    grid-column: 1 / -1;
  }

  .raid-heroes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .raid-hero-mascots .page-hero-mascot img {
    width: clamp(120px, 24vw, 185px);
  }

  .raid-team-head,
  .raid-results-head {
    display: grid;
    text-align: center;
    justify-items: center;
  }

  .raid-results-head p {
    margin-left: auto;
  }

  .raid-boss-title {
    justify-content: center;
    text-align: center;
  }

  .raid-damage-box {
    text-align: center;
  }

  .raid-strategy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .raid-filter-grid,
  .raid-heroes-grid {
    grid-template-columns: 1fr;
  }

  .raid-actions {
    display: grid;
  }

  .raid-actions .btn {
    width: 100%;
  }

  .raid-notice {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .raid-boss-title {
    display: grid;
  }

  .raid-team-meta {
    justify-content: center;
  }

  .raid-image-wrap.hero {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .raid-image-wrap.hero img {
    width: 72px;
    height: 72px;
  }

  .raid-card-actions {
    display: grid;
  }

  .raid-card-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   V6.2 — CARDS COMPARTILHÁVEIS DO GUARDIÃO E DA LIGA
   Botões e ajustes visuais para geração de imagens em canvas.
============================================================ */

.member-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.3rem;
}

.btn-download-ficha,
.download-phase-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
}

.btn-download-ficha:hover,
.download-phase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(242,199,102,0.24), 0 0 18px rgba(79,140,255,0.10);
}

.league-bracket-stage .download-phase-card {
  min-width: min(100%, 270px);
}

@media (max-width: 720px) {
  .member-card-actions {
    justify-content: stretch;
  }

  .member-card-actions .btn,
  .round-nav-actions .download-phase-card {
    width: 100%;
  }
}


/* ============================================================
   V7.0.1 — REFINAMENTO VISUAL DA ABA RAID
   Consulta mais limpa, avatars estáveis e chains mais legíveis.
============================================================ */

.raid-consult-panel {
  display: grid;
  gap: 1rem;
}

.raid-consult-panel .raid-section-heading {
  margin-bottom: 0.3rem;
}

.raid-consult-panel .raid-section-heading p:not(.eyebrow) {
  max-width: 760px;
}

.raid-source-note {
  margin: 0.35rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}

.raid-source-note a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.raid-source-note a:hover {
  text-decoration: underline;
}

.raid-filter-grid {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.9rem 1rem;
  align-items: end;
}

.raid-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.72rem;
  padding-top: 0.25rem;
}

.raid-actions .btn {
  min-width: min(100%, 180px);
}

.raid-status {
  margin: 0.2rem 0 0;
  min-height: 1.1rem;
  font-size: 0.92rem;
}

.raid-heroes-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.raid-hero-slot {
  align-content: start;
  min-height: 294px;
}

.raid-hero-avatar-box {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  max-width: 96px;
  max-height: 96px;
  margin: 0 auto 0.2rem;
  display: grid;
  place-items: center;
}

.raid-image-wrap.hero,
.raid-image-wrap.hero.raid-hero-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  max-width: 96px;
  max-height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 96px;
}

.raid-image-wrap.hero img,
.raid-image-wrap.hero.raid-hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  visibility: visible;
  border-radius: 16px;
}

.raid-image-wrap.hero .raid-image-fallback {
  font-size: 0.74rem;
}

.raid-strategy-grid,
.raid-strategy-grid.single {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.raid-strategy-box {
  padding: clamp(0.95rem, 2vw, 1.2rem);
}

.raid-strategy-box h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.raid-chain-pattern {
  border: 1px solid rgba(242,199,102,0.14);
  border-radius: 18px;
  padding: 0.78rem;
  background: rgba(17,24,39,0.36);
  margin-bottom: 0.75rem;
}

.raid-chain-phase {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242,199,102,0.30);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  color: var(--gold);
  background: rgba(242,199,102,0.08);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raid-chain-pattern ol {
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.raid-chain-pattern li,
.raid-chain-step {
  display: grid;
  grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  border-top: 1px solid rgba(216,222,233,0.08);
  padding-top: 0.62rem;
  color: var(--text-soft);
}

.raid-chain-pattern li:first-child,
.raid-chain-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.raid-chain-label {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.raid-chain-step p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .raid-filter-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .raid-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .raid-hero-slot {
    min-height: 280px;
  }

  .raid-hero-avatar-box,
  .raid-image-wrap.hero,
  .raid-image-wrap.hero.raid-hero-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    max-width: 88px;
    max-height: 88px;
    flex-basis: 88px;
  }
}

@media (max-width: 720px) {
  .raid-filter-grid {
    grid-template-columns: 1fr;
  }

  .raid-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .raid-actions .btn {
    width: 100%;
  }

  .raid-hero-slot {
    min-height: auto;
  }

  .raid-hero-avatar-box,
  .raid-image-wrap.hero,
  .raid-image-wrap.hero.raid-hero-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    flex-basis: 80px;
  }

  .raid-chain-pattern li,
  .raid-chain-step {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .raid-chain-label {
    white-space: normal;
  }
}


/* ============================================================
   V7.0.2 — COMBOBOX DA RAID, TRADUÇÃO PT-BR E CORREÇÃO DOS AVATARES
   Select nativo substituído, elementos em chips e imagem do herói estabilizada.
============================================================ */

.raid-consult-panel {
  overflow: visible;
  z-index: 12;
}

.raid-filter-grid {
  align-items: start;
}

.raid-boss-field,
.raid-element-field {
  position: relative;
}

.raid-combobox {
  position: relative;
  width: 100%;
  z-index: 25;
}

.raid-combobox.is-disabled {
  opacity: 0.72;
}

.raid-combobox-trigger {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(216,222,233,0.16);
  border-radius: 15px;
  padding: 0.72rem 0.88rem;
  color: var(--text);
  background: rgba(5, 8, 18, 0.82);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.raid-combobox-trigger:hover:not(:disabled),
.raid-combobox.is-open .raid-combobox-trigger {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(242,199,102,0.10), 0 14px 30px rgba(0,0,0,0.18);
}

.raid-combobox-trigger:disabled {
  cursor: not-allowed;
}

.raid-combobox-trigger .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.25rem;
}

.raid-combobox-trigger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.raid-combobox-trigger small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.raid-combobox-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 45;
  border: 1px solid rgba(242,199,102,0.24);
  border-radius: 18px;
  padding: 0.72rem;
  background: linear-gradient(180deg, rgba(12,18,32,0.98), rgba(5,8,18,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(79,140,255,0.10) inset;
}

.raid-combobox-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid rgba(216,222,233,0.14);
  border-radius: 14px;
  padding: 0 0.72rem;
  background: rgba(5,8,18,0.72);
  margin-bottom: 0.65rem;
}

.raid-combobox-search .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.15rem;
}

.raid-combobox-search input {
  min-height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.raid-combobox-search input:focus {
  box-shadow: none;
}

.raid-combobox-list {
  display: grid;
  gap: 0.42rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(242,199,102,0.45) rgba(255,255,255,0.06);
}

.raid-combobox-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(216,222,233,0.10);
  border-radius: 14px;
  padding: 0.52rem 0.62rem;
  color: var(--text);
  background: rgba(17,24,39,0.46);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.raid-combobox-option:hover,
.raid-combobox-option.is-selected {
  border-color: rgba(242,199,102,0.42);
  background: rgba(242,199,102,0.10);
  transform: translateY(-1px);
}

.raid-combobox-option strong,
.raid-combobox-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.raid-combobox-option strong {
  color: var(--gold);
  font-weight: 900;
}

.raid-combobox-option small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.1rem;
}

.raid-combobox-empty {
  border: 1px dashed rgba(216,222,233,0.18);
  border-radius: 14px;
  padding: 0.9rem;
  color: var(--text-soft);
  text-align: center;
  font-weight: 800;
}

.raid-image-wrap.mini-boss {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.raid-image-wrap.mini-boss img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.raid-element-chips {
  min-height: 54px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 16px;
  padding: 0.55rem;
  background: rgba(5,8,18,0.44);
}

.raid-element-chips.is-disabled {
  opacity: 0.75;
}

.raid-element-placeholder {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  padding: 0 0.35rem;
}

.raid-element-chip {
  min-height: 38px;
  border: 1px solid rgba(216,222,233,0.16);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--text-soft);
  background: rgba(17,24,39,0.60);
  font-weight: 900;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.raid-element-chip:hover,
.raid-element-chip.is-selected {
  border-color: rgba(242,199,102,0.50);
  color: var(--gold);
  background: rgba(242,199,102,0.11);
  transform: translateY(-1px);
}

.raid-hero-slot {
  overflow: visible;
  isolation: isolate;
}

.raid-hero-avatar-box {
  position: relative;
  z-index: 1;
  flex: 0 0 96px;
}

.raid-image-wrap.hero,
.raid-image-wrap.hero.raid-hero-avatar {
  position: relative !important;
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  contain: paint;
  transform: translateZ(0);
}

.raid-image-wrap.hero img,
.raid-image-wrap.hero.raid-hero-avatar img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.raid-image-wrap.hero img.is-hidden,
.raid-image-wrap.hero.raid-hero-avatar img.is-hidden {
  display: none !important;
}

.raid-image-wrap.hero .raid-image-fallback,
.raid-image-wrap.hero.raid-hero-avatar .raid-image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.raid-image-wrap.hero.has-image .raid-image-fallback,
.raid-image-wrap.hero.raid-hero-avatar.has-image .raid-image-fallback {
  display: none !important;
}

.raid-strategy-box p {
  white-space: pre-line;
}

@media (max-width: 920px) {
  .raid-hero-avatar-box,
  .raid-image-wrap.hero,
  .raid-image-wrap.hero.raid-hero-avatar {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    flex-basis: 88px;
  }
}

@media (max-width: 720px) {
  .raid-combobox-trigger {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .raid-combobox-trigger small {
    display: none;
  }

  .raid-combobox-panel {
    position: static;
    margin-top: 0.55rem;
  }

  .raid-element-chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .raid-element-chip {
    width: 100%;
  }

  .raid-hero-avatar-box,
  .raid-image-wrap.hero,
  .raid-image-wrap.hero.raid-hero-avatar {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    flex-basis: 80px;
  }
}

/* ============================================================
   V7.0.3 — REFINAMENTO VISUAL FINAL DA ABA RAID
   Combobox de elementos, ícones coloridos e estados em cards Avalon.
============================================================ */

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

.raid-results-panel {
  max-width: 1180px;
  margin-inline: auto;
}

.raid-results.has-results {
  justify-items: stretch;
}

.raid-team-list {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
}

.raid-state-card {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  border: 1px solid rgba(216,222,233,0.14);
  border-radius: 24px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background:
    radial-gradient(circle at 18% 20%, rgba(79,140,255,0.13), transparent 34%),
    linear-gradient(135deg, rgba(5,8,18,0.70), rgba(17,24,39,0.42));
  box-shadow: 0 22px 60px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.raid-state-card > .material-symbols-outlined {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(242,199,102,0.10);
  border: 1px solid rgba(242,199,102,0.24);
  font-size: 1.65rem;
}

.raid-state-card strong {
  display: block;
  font-family: var(--font-title);
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.raid-state-card p {
  margin: 0.28rem 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.raid-state-card.success {
  border-color: rgba(186,247,217,0.22);
  background:
    radial-gradient(circle at 18% 20%, rgba(186,247,217,0.11), transparent 34%),
    linear-gradient(135deg, rgba(5,8,18,0.70), rgba(17,24,39,0.42));
}

.raid-state-card.success > .material-symbols-outlined {
  color: #baf7d9;
  background: rgba(82,211,148,0.11);
  border-color: rgba(82,211,148,0.28);
}

.raid-state-card.error {
  border-color: rgba(255,111,111,0.25);
}

.raid-state-card.error > .material-symbols-outlined {
  color: var(--red);
  background: rgba(255,111,111,0.10);
  border-color: rgba(255,111,111,0.25);
}

.raid-state-card.loading > .material-symbols-outlined {
  animation: spin 1.4s linear infinite;
}

.raid-element-trigger-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.raid-element-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(17,24,39,0.56);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.20);
  overflow: hidden;
}

.raid-element-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.raid-element-icon.small {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 10px;
}

.raid-element-icon.small img {
  width: 21px;
  height: 21px;
}

.raid-element-icon.empty {
  border-color: rgba(242,199,102,0.20);
  color: var(--gold);
}

.raid-element-icon.element-fire { background: linear-gradient(135deg, rgba(231,80,55,0.95), rgba(91,24,19,0.88)); }
.raid-element-icon.element-water { background: linear-gradient(135deg, rgba(62,168,255,0.95), rgba(15,58,108,0.88)); }
.raid-element-icon.element-earth { background: linear-gradient(135deg, rgba(179,137,76,0.95), rgba(71,53,31,0.90)); }
.raid-element-icon.element-light { background: linear-gradient(135deg, rgba(247,205,76,0.95), rgba(139,98,13,0.88)); }
.raid-element-icon.element-dark { background: linear-gradient(135deg, rgba(174,75,220,0.95), rgba(64,24,96,0.90)); }
.raid-element-icon.element-basic { background: linear-gradient(135deg, rgba(154,170,181,0.95), rgba(52,64,73,0.90)); }

.raid-element-option {
  grid-template-columns: auto minmax(0, 1fr);
}

.raid-element-option strong {
  color: var(--text);
}

.raid-element-option.is-selected strong,
.raid-element-option:hover strong {
  color: var(--gold);
}

.raid-result-element {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  color: var(--gold);
  font-weight: 900;
}

.raid-team-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.raid-team-card {
  max-width: 1120px;
  margin-inline: auto;
}

.raid-combobox-panel {
  max-height: min(430px, 65vh);
}

@media (max-width: 720px) {
  .raid-state-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .raid-team-list {
    gap: 0.95rem;
  }

  .raid-element-panel {
    position: static;
    margin-top: 0.55rem;
  }

  .raid-result-element {
    margin-left: 0;
  }

  .raid-team-eyebrow {
    justify-content: center;
  }
}

/* ============================================================
   V7.0.4 — REFINAMENTO DOS RESULTADOS DA ABA RAID
   Cards de composição estáveis, status Avalon e relíquias visuais.
============================================================ */

.raid-status {
  display: grid;
  justify-items: center;
  min-height: 0;
}

.raid-status.is-empty {
  display: none;
}

.raid-status-card {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(216,222,233,0.14);
  border-radius: 18px;
  padding: 0.82rem 1rem;
  background:
    radial-gradient(circle at 12% 15%, rgba(79,140,255,0.13), transparent 36%),
    linear-gradient(135deg, rgba(5,8,18,0.62), rgba(17,24,39,0.38));
  box-shadow: 0 18px 42px rgba(0,0,0,0.20), inset 0 0 0 1px rgba(255,255,255,0.025);
  text-align: left;
}

.raid-status-card > .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242,199,102,0.24);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(242,199,102,0.10);
  font-size: 1.35rem;
}

.raid-status-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.raid-status-card p {
  margin: 0.18rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.raid-status-card.success {
  border-color: rgba(186,247,217,0.22);
}

.raid-status-card.success > .material-symbols-outlined {
  color: #baf7d9;
  border-color: rgba(82,211,148,0.28);
  background: rgba(82,211,148,0.11);
}

.raid-status-card.warn {
  border-color: rgba(255,227,168,0.24);
}

.raid-status-card.warn > .material-symbols-outlined {
  color: #ffe3a8;
  border-color: rgba(255,227,168,0.26);
  background: rgba(255,227,168,0.10);
}

.raid-status-card.error {
  border-color: rgba(255,111,111,0.25);
}

.raid-status-card.error > .material-symbols-outlined {
  color: var(--red);
  border-color: rgba(255,111,111,0.25);
  background: rgba(255,111,111,0.10);
}

.raid-results-section,
#raid-results-section {
  scroll-margin-top: 120px;
}

.raid-results-panel {
  width: min(100%, 1180px);
  overflow: visible;
}

.raid-results.has-results {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.raid-team-list {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2.5vw, 1.55rem);
  align-items: stretch;
}

.raid-team-card {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  box-sizing: border-box;
  overflow: visible;
}

.raid-team-card + .raid-team-card {
  margin-top: 0;
}

.raid-team-head {
  align-items: flex-start;
}

.raid-boss-title {
  flex: 1 1 auto;
}

.raid-team-eyebrow {
  margin-bottom: 0.12rem;
}

.raid-team-meta {
  align-items: center;
}

.raid-team-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
}

.raid-relic-chip {
  padding: 0.32rem 0.58rem 0.32rem 0.38rem !important;
}

.raid-relic-chip > span:last-child {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.raid-image-wrap.relic,
.raid-image-wrap.mini-relic {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 10px;
  background: rgba(242,199,102,0.08);
  border-color: rgba(242,199,102,0.18);
}

.raid-image-wrap.relic img,
.raid-image-wrap.mini-relic img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.raid-image-wrap.relic .raid-image-fallback,
.raid-image-wrap.mini-relic .raid-image-fallback {
  font-size: 0.62rem;
  padding: 0.2rem;
}

.raid-heroes-grid {
  width: 100%;
}

.raid-hero-slot {
  min-width: 0;
  height: 100%;
}

.raid-strategy-grid {
  width: 100%;
}

.raid-state-card {
  margin-bottom: 0.15rem;
}

@media (min-width: 1181px) {
  .raid-heroes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .raid-team-list,
  .raid-team-card {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .raid-status-card {
    width: min(100%, 620px);
  }
}

@media (max-width: 720px) {
  .raid-status-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .raid-results-panel {
    padding-inline: clamp(0.9rem, 4vw, 1.2rem);
  }

  .raid-team-meta > span {
    justify-content: center;
  }
}

/* ============================================================
   V7.0.5 — FLUXO INTELIGENTE DA CONSULTA RAID
   Status contextual, scroll para primeira composição e chips refinados.
============================================================ */

.raid-status:empty,
.raid-status.is-empty {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.raid-status:not(.is-empty) {
  margin-top: 1rem;
}

.raid-status-card {
  animation: raidStatusIn 0.22s ease-out both;
}

@keyframes raidStatusIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.raid-team-card,
#raid-composition-1 {
  scroll-margin-top: 118px;
}

.raid-team-meta span,
.raid-relic-chip {
  white-space: normal;
}

/* ============================================================
   V7.0.6 — POLIMENTO FINAL DA EXPERIÊNCIA RAID
   Cartas visuais, toast flutuante e botão voltar ao topo.
============================================================ */

.raid-card-combo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.32rem;
  width: 100%;
}

.raid-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid rgba(242,199,102,0.22);
  border-radius: 999px;
  padding: 0.24rem 0.54rem;
  color: var(--text);
  background: rgba(242,199,102,0.08);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.raid-card-chip.skill {
  border-color: rgba(79,140,255,0.28);
  background: rgba(79,140,255,0.11);
  color: #dce9ff;
}

.raid-card-chip.crit {
  border-color: rgba(242,199,102,0.32);
  background: rgba(242,199,102,0.13);
  color: var(--gold);
}

.raid-card-chip.atk,
.raid-card-chip.atk7 {
  border-color: rgba(224,108,117,0.28);
  background: rgba(224,108,117,0.12);
  color: #ffd7d7;
}

.raid-card-chip.def {
  border-color: rgba(154,170,181,0.28);
  background: rgba(154,170,181,0.12);
  color: #dce3ea;
}

.raid-card-chip.hp,
.raid-card-chip.muted {
  border-color: rgba(186,247,217,0.24);
  background: rgba(82,211,148,0.10);
  color: #baf7d9;
}

.raid-card-separator {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.8rem;
}























@keyframes raidToastIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}









@media (max-width: 720px) {
  

  

  
}

/* ============================================================
   V7.2 — HISTÓRICO ROTATIVO E CONFIANÇA DO HALL
============================================================ */
.history-meta,
.history-inline {
  color: var(--muted);
}

.history-inline {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.76rem;
}

.history-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(216,222,233,0.16);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.history-confidence.oficial {
  color: #baf7d9;
  background: rgba(91,185,140,0.12);
  border-color: rgba(91,185,140,0.30);
}

.history-confidence.estimada {
  color: #ffe3a8;
  background: rgba(242,199,102,0.13);
  border-color: rgba(242,199,102,0.30);
}

.history-confidence.parcial {
  color: #bfe7ff;
  background: rgba(79,140,255,0.12);
  border-color: rgba(79,140,255,0.28);
}

.history-confidence.insuficiente {
  color: #d4d7e2;
  background: rgba(216,222,233,0.08);
  border-color: rgba(216,222,233,0.16);
}

.registro-panel table {
  min-width: 1500px;
}

@media (max-width: 720px) {
  .history-confidence {
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   V7.3 — HALL DINÂMICO, FREQUÊNCIA POR FAIXA E PATENTES MÓVEIS
============================================================ */
.hall-rules-section {
  padding-top: 0;
  padding-bottom: 0.6rem;
}

.hall-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hall-rules-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(242,199,102,0.20);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242,199,102,0.08), rgba(79,140,255,0.055));
  text-align: center;
}

.hall-rules-grid strong {
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
}

.hall-rules-grid span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.hall-patent {
  color: var(--gold) !important;
  font-weight: 800;
}

.hall-vacancy,
.hall-slot-vacant {
  border-style: dashed;
  background: rgba(255,255,255,0.018);
}

.hall-vacancy img,
.hall-slot-vacant img {
  filter: grayscale(0.7) opacity(0.48);
}

.vacancy-reason {
  color: var(--muted) !important;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hall-result-line {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.elite-item.negative {
  border-color: rgba(224,108,117,0.22);
}

.outside-hall-panel {
  border-color: rgba(170,176,192,0.20);
  background: linear-gradient(145deg, rgba(17,24,39,0.80), rgba(8,11,21,0.88));
}

.outside-hall-panel .elite-header img,
.outside-hall-item img {
  filter: grayscale(0.25) opacity(0.84) drop-shadow(0 10px 20px rgba(0,0,0,.28));
}

.outside-hall-item {
  border-style: dashed;
}

.hall-reason,
.hall-profile-reason {
  color: #ffc8a8;
}

.hall-profile-reason {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.hall-table-status {
  display: inline-flex;
  max-width: 260px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(216,222,233,0.14);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

.hall-table-status.classified {
  color: #baf7d9;
  background: rgba(91,185,140,0.12);
  border-color: rgba(91,185,140,0.28);
}

.hall-table-status.outside {
  color: #ffc8a8;
  background: rgba(224,108,117,0.10);
  border-color: rgba(224,108,117,0.22);
  border-radius: 13px;
  white-space: normal;
}

.registro-page .battle-table {
  min-width: 1680px;
}

@media (max-width: 900px) {
  .hall-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hall-rules-grid {
    grid-template-columns: 1fr;
  }

  .elite-list,
  .outside-hall-list {
    grid-template-columns: 1fr;
  }

  .hall-rules-grid article {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
  }
}

/* ============================================================
   V7.3.1 — HALL BLINDADO, FICHA HORIZONTAL E REGISTRO OTIMIZADO
============================================================ */

/* O Hall público mostra apenas resultado, média e evolução. */
.hall-public-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0 0.6rem;
}

.hall-public-stats p {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.68rem 0.55rem;
  border: 1px solid rgba(216,222,233,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  text-align: center;
}

.hall-public-stats span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hall-public-stats strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.94rem;
}

/* Registro mais largo no desktop para reduzir a rolagem horizontal. */
.page-shell.registro-page {
  width: min(1500px, calc(100% - 2rem));
}

.registro-title-card {
  border-color: rgba(242,199,102,0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(242,199,102,0.16), transparent 48%),
    linear-gradient(145deg, rgba(25,20,12,0.92), rgba(8,13,25,0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.34),
    0 0 34px rgba(242,199,102,0.08);
}

.registro-title-card::before {
  opacity: 0.86;
}

.registro-panel .filters-bar {
  align-items: center;
}

.registro-page .table-wrap {
  position: relative;
  max-height: min(72vh, 820px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.registro-page .battle-table,
.registro-panel table {
  min-width: 1180px;
  table-layout: auto;
}

.registro-page .battle-table th,
.registro-page .battle-table td {
  padding: 0.78rem 0.66rem;
  white-space: nowrap;
}

.registro-page .battle-table th {
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(35,29,18,0.98), rgba(13,18,31,0.98));
  backdrop-filter: blur(12px);
}

.registro-page .battle-table .sticky-rank {
  position: sticky;
  left: 0;
  z-index: 7;
  min-width: 92px;
  width: 92px;
  text-align: center;
}

.registro-page .battle-table .sticky-member {
  position: sticky;
  left: 92px;
  z-index: 6;
  min-width: 148px;
  background: rgba(10,14,26,0.98);
  box-shadow: 10px 0 18px rgba(0,0,0,0.12);
}

.registro-page .battle-table th.sticky-rank,
.registro-page .battle-table th.sticky-member {
  z-index: 9;
  background: linear-gradient(180deg, rgba(45,36,20,1), rgba(17,21,34,1));
}

.registro-page .battle-table tbody tr:hover .sticky-rank,
.registro-page .battle-table tbody tr:hover .sticky-member {
  background: rgba(32,29,25,0.99);
}

.numeric-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.member-row-absent {
  opacity: 0.84;
}

.member-row-absent .sticky-rank,
.member-row-absent .sticky-member {
  background: rgba(22,18,24,0.98);
}







@media (max-width: 720px) {
  .hall-public-stats {
    grid-template-columns: 1fr;
  }

  .page-shell.registro-page {
    width: min(100% - 1rem, 1500px);
  }

  .registro-page .battle-table,
  .registro-panel table {
    min-width: 1080px;
  }

  .registro-page .battle-table .sticky-rank {
    min-width: 82px;
    width: 82px;
  }

  .registro-page .battle-table .sticky-member {
    left: 82px;
    min-width: 132px;
  }
}

/* ============================================================
   V7.5 — PÓDIO ADAPTATIVO E CONSOLIDAÇÃO DO COMPONENTE DA LIGA
   Mantém conteúdo dentro dos cards e elimina correções por colocação.
============================================================ */

.podium-final-grid {
  align-items: end;
}

.podium-final-card {
  grid-template-rows: auto auto auto minmax(1.35rem, auto);
  align-content: center;
  min-height: 230px;
  overflow: hidden;
}

.podium-final-card.gold {
  min-height: 270px;
}

.podium-final-card small,
.podium-final-card strong,
.podium-final-card .podium-members {
  position: relative;
  z-index: 3;
  max-width: 100%;
}

.podium-final-card small {
  min-height: auto;
  line-height: 1.35;
}

.podium-final-card strong {
  overflow-wrap: anywhere;
}

.podium-final-card .podium-members {
  min-height: 2.7em;
  display: grid;
  place-items: start center;
  align-content: start;
  margin-top: 0.15rem;
}

.winner-share-card.placement-share-card {
  margin-top: 0;
}

@media (max-width: 980px) {
  .podium-final-card,
  .podium-final-card.gold {
    min-height: 240px;
  }
}

/* ============================================================
   V7.6 — COMPONENTES GLOBAIS CONSOLIDADOS
   Plataforma dos mascotes, feedback de ações e botão de topo.
============================================================ */

:root {
  --hero-platform-left: 4%;
  --hero-platform-right: 4%;
  --hero-platform-bottom: 0.12rem;
  --hero-platform-height: 10px;
  --hero-platform-gradient: linear-gradient(90deg, transparent, rgba(242,199,102,0.16), rgba(242,199,102,0.36), rgba(242,199,102,0.16), transparent);
  --hero-platform-shadow: 0 0 24px rgba(242,199,102,0.10);
}

.salao-hero-mascots {
  --hero-platform-bottom: -0.25rem;
}

.salao-hero-mascots::after {
  opacity: 0.65;
}

/* Registro migrado para o cabeçalho global, mantendo dimensões e flashes. */
.registro-hero-mascots {
  grid-template-columns: minmax(190px, 285px) minmax(0, 1fr) minmax(190px, 285px);
  align-items: end;
}

.registro-hero-mascot {
  min-width: min(22vw, 280px);
}

.registro-hero-mascot img {
  width: var(--mascot-registro-size);
  max-height: 350px;
  object-fit: contain;
}

.registro-hero-mascot::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 52px;
  height: 10px;
  top: 34%;
  left: 50%;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.95), transparent);
  opacity: 0;
  transform: translateX(-110px) rotate(-18deg);
  mix-blend-mode: screen;
  animation: glassesFlash 5.8s ease-in-out infinite;
}

.registro-hero-mascot.cley::after {
  width: 54px;
  top: 39%;
  left: 53%;
  transform: translateX(-118px) rotate(-16deg);
  animation-delay: 0.4s;
}

.registro-hero-mascot.olimpio::after {
  width: 58px;
  top: 32%;
  animation-delay: 1.1s;
}

/* Feedback central global baseado no visual consolidado da Liga. */
.action-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(3px);
  animation: noticeFadeIn 0.22s ease both;
}

.action-feedback-overlay.leaving {
  animation: noticeFadeOut 0.24s ease both;
}

.action-feedback-card {
  width: min(520px, 96vw);
  padding: clamp(1.15rem, 3vw, 1.7rem);
  text-align: center;
  display: grid;
  gap: 0.65rem;
  place-items: center;
  box-shadow: 0 28px 90px rgba(0,0,0,0.56);
}

.action-feedback-icon {
  color: var(--gold);
  font-size: 2.6rem;
  filter: drop-shadow(0 8px 20px rgba(242,199,102,0.22));
}

.action-feedback-card.loading .action-feedback-icon {
  animation: spin 1.2s linear infinite;
}

.action-feedback-card.success {
  border-color: rgba(91,185,140,0.45);
}

.action-feedback-card.error {
  border-color: rgba(224,108,117,0.48);
}

.action-feedback-card.warning,
.action-feedback-card.empty {
  border-color: rgba(184,115,51,0.52);
}

.action-feedback-card h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.action-feedback-card p {
  margin: 0;
  color: var(--text-soft);
}

.action-feedback-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.35rem;
}

/* Botão único para Hall, Registro, Raid e Liga. */
.site-back-top {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.4rem);
  bottom: clamp(0.9rem, 2vw, 1.4rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(242,199,102,0.34);
  border-radius: 999px;
  padding: 0.72rem 0.92rem;
  color: var(--gold);
  background: rgba(6,9,19,0.86);
  box-shadow: 0 18px 50px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.site-back-top.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.site-back-top:not(.hidden):hover,
.site-back-top:not(.hidden):focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242,199,102,0.62);
  background: rgba(242,199,102,0.12);
}

.site-back-top .material-symbols-outlined {
  font-size: 1.25rem;
}

@media (max-width: 1180px) {
  .registro-hero-mascots {
    grid-template-columns: minmax(155px, 230px) minmax(0, 1fr) minmax(155px, 230px);
  }

  .registro-hero-mascot img {
    width: clamp(155px, 15vw, 225px);
  }
}

@media (max-width: 980px) {
  .registro-hero-mascots {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .registro-hero-mascot {
    display: none;
  }

  .page-hero-mascots::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .action-feedback-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .site-back-top {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.68rem 0.78rem;
  }

  .site-back-top span:last-child {
    display: none;
  }
}

/* ============================================================
   LOADER GLOBAL SIMPLES — PORTAL AVALON
   Anel de carregamento + mensagem única.
============================================================ */

body.avalon-loader-lock {
  overflow: hidden;
  padding-right: var(--avalon-loader-scrollbar-compensation, 0px);
}

.avalon-page-loader {
  position: fixed;
  inset: 0;
  z-index: 210;
  isolation: isolate;
  contain: layout paint style;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  min-height: 100svh;
  color: var(--text);
  background: rgba(4, 7, 15, 0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.avalon-page-loader[hidden] {
  display: none !important;
}

.avalon-page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.avalon-page-loader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.avalon-page-loader__spinner {
  width: 3.25rem;
  height: 3.25rem;
  border: 3px solid rgba(79, 140, 255, 0.18);
  border-top-color: var(--gold, #f2c766);
  border-right-color: var(--blue, #4f8cff);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(79, 140, 255, 0.14);
  transform: translateZ(0) rotate(0deg);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  animation: avalonLoaderSpin 0.8s linear infinite;
}

.avalon-page-loader__text {
  min-width: 10rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

@keyframes avalonLoaderSpin {
  from {
    transform: translateZ(0) rotate(0deg);
  }

  to {
    transform: translateZ(0) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avalon-page-loader {
    transition-duration: 0.01ms !important;
  }

  .avalon-page-loader__spinner {
    animation-duration: 1.8s;
  }
}

