/* ======================================================================= */
/* INDEX.CSS - IX INTERMED PANTANAL                                        */
/* ======================================================================= */

@font-face {
  font-family: "Empire";
  src: url("fonts/INTERMED/Empire.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.content {
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* ======================================================================= */
/* HERO                                                                    */
/* ======================================================================= */

.box-parallax {
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
  background: #000;
}

.box-parallax > img {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.52) contrast(1.1) saturate(0.8);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.box-parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.box-parallax::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.box-logotipo-topo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.box-logotipo-topo img {
  width: auto;
  height: 80px;
  max-width: 260px;
  filter: drop-shadow(0 0 12px rgba(255, 237, 0, 0.2));
  transition: all 0.3s ease;
}

.box-logotipo-topo img:hover {
  transform: scale(1.03);
}

.box-titulo-hero {
  z-index: 3;
  text-align: center;
  margin: 10px 0;
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.box-titulo-hero h3 {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 1.2rem);
  color: var(--color-gray-light);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.box-titulo-hero span {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 1.2rem);
  color: var(--color-yellow-dark);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.box-titulo-hero p {
  font-family: var(--font-family);
  font-size: clamp(0.65rem, 1.3vw, 0.82rem);
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.btn-inscricao-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--color-yellow);
  color: var(--color-primary-dark);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius-sm);
  z-index: 3;
  margin-top: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 237, 0, 0.2);
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.btn-inscricao-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 237, 0, 0.35);
  background: var(--color-yellow-light);
}

.btn-inscricao-hero svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-inscricao-hero:hover svg {
  transform: translateX(3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: float 2.5s ease-in-out infinite;
  opacity: 0.4;
}

.hero-scroll-indicator svg {
  width: 16px;
  height: 16px;
  color: var(--color-yellow);
}

@media (max-width: 768px) {
  .box-parallax {
    min-height: 300px !important;
  }
  .box-logotipo-topo img {
    height: 60px;
  }
  .btn-inscricao-hero {
    font-size: 0.75rem;
    padding: 10px 22px;
  }
}

/* ======================================================================= */
/* INFORMAÇÕES                                                             */
/* ======================================================================= */

.box-informacoes {
  padding: 45px 20px;
  background: var(--color-primary-dark);
}

.info-container {
  max-width: 1100px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.header-top svg {
  margin: 0px 10px;
}

.info-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-icon {
  width: 20px;
  height: 20px;
  color: var(--color-yellow);
  margin-bottom: 8px;
  opacity: 0.7;
}

.info-header h2 {
  font-family: var(--font-family);
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 4px;
}

.info-header p {
  font-family: var(--font-family);
  font-size: 0.82rem;
  color: var(--color-gray-light);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.info-card {
  background: var(--color-primary);
  padding: 22px 18px;
  border: 1px solid rgba(255, 237, 0, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-yellow);
  box-shadow: 0 6px 20px rgba(255, 237, 0, 0.08);
}

.card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  border-radius: 50%;
  color: var(--color-primary-dark);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.info-card h3 {
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--color-yellow);
  margin-bottom: 6px;
  font-weight: 600;
}

.info-card p {
  font-family: var(--font-family);
  font-size: 0.78rem;
  color: var(--color-gray-light);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .box-informacoes {
    padding: 30px 14px;
  }
  .info-header {
    margin-bottom: 18px;
  }
  .info-header h2 {
    font-size: 1.1rem;
  }
  .info-header p {
    font-size: 0.72rem;
  }
  .info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .info-card {
    padding: 14px 10px;
  }
  .card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
  .card-icon svg {
    width: 14px;
    height: 14px;
  }
  .info-card h3 {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }
  .info-card p {
    font-size: 0.65rem;
    line-height: 1.3;
  }
}

/* ======================================================================= */
/* GALERIA - Justified Gallery                                             */
/* ======================================================================= */

.box-galeria {
  padding: 0;
  background: var(--color-primary-dark-over);
  overflow: hidden;
}

#justified-gallery {
  width: 100%;
}

.galeria-item {
  overflow: hidden;
  position: relative;
  display: block;
}

.galeria-item > img {
  transform: scale(1);
  filter: grayscale(100%) sepia(0%) brightness(0.3) contrast(1.1);
  transition:
    transform 0.5s ease,
    filter 0.5s ease !important;
  will-change: transform, filter;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-item:hover > img {
  transform: scale(1.05);
  filter: grayscale(80%) sepia(20%) brightness(1) contrast(1);
}

.galeria-item--dark > img {
  filter: grayscale(100%) brightness(0.3) contrast(1.2) !important;
}

.galeria-item--dark:hover > img {
  filter: grayscale(80%) brightness(0.4) contrast(1.1) !important;
}

.galeria-overlay {
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.galeria-frase {
  font-family: var(--font-family);
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ======================================================================= */
/* GALERIA - Responsivo                                                    */
/* ======================================================================= */

@media (max-width: 768px) {
  .galeria-item--frase-esq .galeria-overlay {
    justify-content: flex-start;
    align-items: flex-end;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.65) 0%,
      transparent 100%
    );
    padding: 10px 12px;
  }

  .galeria-item--frase-dir .galeria-overlay {
    justify-content: flex-end;
    align-items: flex-end;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.65) 0%,
      transparent 100%
    );
    padding: 10px 12px;
  }

  .galeria-item--frase-esq .galeria-frase {
    text-align: left;
  }

  .galeria-item--frase-dir .galeria-frase {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .galeria-frase {
    font-size: 0.5rem;
    letter-spacing: 0.03em;
  }
  .galeria-overlay {
    padding: 6px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .galeria-frase {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }
  .galeria-overlay {
    padding: 8px;
  }
}

/* ======================================================================= */
/* RANKING                                                                 */
/* ======================================================================= */

.box-ranking {
  padding: 45px 20px;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.box-ranking::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 237, 0, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 237, 0, 0.04) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

.box-ranking::after {
  background-image: url("images/BACKGROUND/background.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  opacity: 0.07;
  filter: brightness(0.7);
  pointer-events: none;
}

.ranking-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ranking-header {
  text-align: center;
  margin-bottom: 30px;
}

.ranking-icon {
  width: 22px;
  height: 22px;
  color: var(--color-yellow);
  margin-bottom: 10px;
}

.ranking-header h2 {
  font-family: var(--font-family);
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 4px;
}

.ranking-header p {
  font-family: var(--font-family);
  font-size: 0.75rem;
  color: var(--color-gray-light);
}

.ranking-chart {
  position: relative;
  padding-left: 10px;
}

.ranking-scale-lines {
  position: absolute;
  top: 50px;
  left: 10px;
  right: 0;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.scale-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-scale {
  display: none;
}

.ranking-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ranking-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 90px;
}

.ranking-bar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 237, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.ranking-first .ranking-bar-logo {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 237, 0, 0.4);
}

.ranking-bar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ranking-bar-track {
  width: 100%;
  height: 140px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.ranking-bar-fill {
  width: 100%;
  background: linear-gradient(
    to top,
    var(--color-yellow-dark),
    var(--color-yellow)
  );
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 6px;
}

.ranking-first .ranking-bar-fill {
  background: linear-gradient(
    to top,
    var(--color-yellow),
    var(--color-yellow-light)
  );
  box-shadow: 0 0 12px rgba(255, 237, 0, 0.15);
}

.ranking-bar-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  gap: 1px;
}

.ranking-bar-pos {
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-yellow);
}

.ranking-bar-name {
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
}

.ranking-bar-fac {
  font-family: var(--font-family);
  font-size: 0.55rem;
  color: var(--color-gray-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranking-empty {
  font-family: var(--font-family);
  font-size: 0.82rem;
  color: var(--color-gray-light);
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

@media (max-width: 500px) {
  .ranking-bars {
    gap: 10px;
  }
  .ranking-bar-track {
    height: 110px;
  }
  .ranking-bar-logo {
    width: 32px;
    height: 32px;
  }
  .ranking-first .ranking-bar-logo {
    width: 36px;
    height: 36px;
  }
  .ranking-bar-name {
    font-size: 0.6rem;
  }
}

/* ======================================================================= */
/* CASAS                                                                   */
/* ======================================================================= */

.box-atleticas {
  padding: 45px 20px;
  background: var(--color-gray-dark);
}

.atleticas-container {
  max-width: 1100px;
  margin: 0 auto;
}

.atleticas-header {
  text-align: center;
  margin-bottom: 30px;
}

.atleticas-header h2 {
  font-family: var(--font-family);
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 4px;
}

.atleticas-header p {
  font-family: var(--font-family);
  font-size: 0.82rem;
  color: var(--color-gray-light);
}

.divisao-label {
  font-family: var(--font-family);
  font-size: 0.7rem;
  color: var(--color-gray-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.divisao-label::before,
.divisao-label::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.divisao-section {
  margin-bottom: 30px;
}

.divisao-section:last-child {
  margin-bottom: 0;
}

.atleticas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.atleticas-grid.segunda-divisao {
  grid-template-columns: repeat(4, 1fr);
  max-width: 750px;
  margin: 0 auto;
}

.atletica-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px 16px;
  background: var(--color-primary);
  border: 1px solid rgba(255, 237, 0, 0.05);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.atletica-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 237, 0, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.atletica-logo {
  width: 100px;
  height: 100px;
  border: 1.5px solid rgba(255, 237, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.atletica-card:hover .atletica-logo {
  border-color: var(--color-yellow);
}

.atletica-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.atletica-nome {
  font-family: var(--font-family);
  font-size: 0.78rem;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.atletica-card:hover .atletica-nome {
  color: var(--color-yellow);
}

.atletica-faculdade {
  font-family: var(--font-family);
  font-size: 0.62rem;
  color: var(--color-gray-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.atletica-card--organizadora {
  border-color: rgba(255, 237, 0, 0.25);
  background: linear-gradient(
    160deg,
    rgba(255, 237, 0, 0.05) 0%,
    var(--color-primary) 60%
  );
  position: relative;
  padding-top: 38px;
}

.atletica-card--organizadora:hover {
  border-color: rgba(255, 237, 0, 0.45);
  box-shadow: 0 6px 24px rgba(255, 237, 0, 0.1);
}

.badge-organizadora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 237, 0, 0) 0%,
    rgba(255, 237, 0, 0.18) 50%,
    rgba(255, 237, 0, 0) 100%
  );
  border-bottom: 1px solid rgba(255, 237, 0, 0.15);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--color-yellow);
  font-family: var(--font-family);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.badge-organizadora svg {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  stroke: var(--color-yellow);
}

@media (max-width: 768px) {
  .atletica-card--organizadora {
    padding-top: 34px;
  }
  .badge-organizadora {
    font-size: 0.5rem;
  }
}

@media (max-width: 768px) {
  .atleticas-grid,
  .atleticas-grid.segunda-divisao {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .atletica-logo {
    width: 60px;
    height: 60px;
  }
  .atletica-card {
    padding: 16px 8px 12px;
  }
}

/* ======================================================================= */
/* HISTÓRIA                                                                */
/* ======================================================================= */

.box-historia {
  padding: 45px 20px;
  background: var(--color-primary-dark);
}

.historia-container {
  max-width: 800px;
  margin: 0 auto;
}

.historia-content {
  text-align: center;
}

.historia-content h2 {
  font-family: var(--font-family);
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 16px;
}

.historia-content p {
  font-family: var(--font-family);
  font-size: 0.85rem;
  color: var(--color-white);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.historia-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-family);
  font-size: 2rem;
  color: var(--color-yellow);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-family: var(--font-family);
  font-size: 0.7rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .historia-stats {
    gap: 30px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
}

/* ======================================================================= */
/* GLOBAL                                                                  */
/* ======================================================================= */

::selection {
  background: rgba(255, 237, 0, 0.2);
  color: var(--color-white);
}

/* ======================================================================= */
/* CHAVEAMENTO                                                             */
/* ======================================================================= */

.box-chaveamento {
  width: 100%;
  background: var(--color-primary-dark);
  padding: 50px 20px 52px;
  position: relative;
  overflow: hidden;
}

.box-chaveamento::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 50%,
      rgba(255, 237, 0, 0.05) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 50%,
      rgba(255, 237, 0, 0.03) 0%,
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

.box-chaveamento::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/BACKGROUND/background.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  filter: brightness(0.5) blur(4px);
  pointer-events: none;
  z-index: 0;
}

.chaveamento-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.chaveamento-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.chaveamento-eyebrow svg {
  width: 18px;
  height: 18px;
  color: var(--color-yellow);
  opacity: 0.7;
  flex-shrink: 0;
}

.chaveamento-line {
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 237, 0, 0.35),
    transparent
  );
}

.chaveamento-header h2 {
  font-family: var(--font-family);
  font-size: clamp(1.15rem, 2.5vw, 1.2rem);
  color: var(--color-yellow);
  font-weight: 700;
  margin-bottom: 4px;
}

.chaveamento-header p {
  font-family: var(--font-family);
  font-size: 0.78rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chaveamento-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.chav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.chav-tab:hover {
  border-color: rgba(255, 237, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 237, 0, 0.04);
}

.chav-tab.active {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-primary-dark);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.chav-tab.active .tab-badge {
  background: var(--color-primary-dark);
  color: var(--color-yellow);
}

/* ======================================================================= */
/* CARROSSEL                                                               */
/* ======================================================================= */

.chav-carousel-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.chav-carousel-wrap.active {
  display: flex;
}

.chav-carousel-row {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.chav-carousel {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}

.chav-track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.chav-slide {
  min-width: 100%;
  background: var(--color-primary);
  border: 1px solid rgba(255, 237, 0, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 0px;
  position: relative;
  box-sizing: border-box;
}

.chav-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 237, 0, 0.3),
    transparent
  );
}

.chav-slide-label {
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-yellow);
  opacity: 0.75;
  margin-bottom: 18px;
}

.chav-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
}

.chav-arrow:hover {
  background: rgba(255, 237, 0, 0.08);
  border-color: rgba(255, 237, 0, 0.25);
  color: var(--color-yellow);
}

.chav-arrow svg {
  width: 16px;
  height: 16px;
}

.chav-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 4px;
}

.chav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.chav-dot.active {
  background: var(--color-yellow);
  transform: scale(1.3);
}

/* ======================================================================= */
/* BRACKET                                                                 */
/* ======================================================================= */

.chav-bracket {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 130px;
  overflow-x: auto;
}

.chav-side {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
  flex-shrink: 0;
}

.chav-side--left {
  align-items: flex-end;
}
.chav-side--right {
  align-items: flex-start;
}
.chav-side--semi {
  justify-content: center;
  align-items: flex-end;
}
.chav-side--right.chav-side--semi {
  align-items: flex-start;
}
.chav-side--quartas {
  justify-content: space-around;
}

.chav-pair {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chav-team {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
  min-width: 138px;
  max-width: 162px;
}

.chav-team:hover {
  background: rgba(255, 237, 0, 0.06);
  border-color: rgba(255, 237, 0, 0.2);
}

.chav-team--right {
  flex-direction: row-reverse;
}

.chav-team--tbd {
  opacity: 0.22;
  border-style: dashed;
  cursor: default;
}

.chav-team--tbd:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.chav-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.chav-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.chav-team:hover .chav-logo img {
  transform: scale(1.1);
}

.chav-logo--tbd {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.chav-name {
  font-family: var(--font-family);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chav-team--right .chav-name {
  text-align: right;
}

.chav-lines {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-around;
  width: 26px;
  flex-shrink: 0;
  position: relative;
}

.chav-lines--semi {
  width: 20px;
}

.chav-line-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.line-h {
  height: 1px;
  width: 12px;
  background: rgba(255, 237, 0, 0.2);
  position: absolute;
  left: 0;
}

.line-h--top {
  top: 25%;
}
.line-h--bot {
  top: 75%;
}

.line-v {
  position: absolute;
  left: 12px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 237, 0, 0.2);
}

.line-mid {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 14px;
  height: 1px;
  background: rgba(255, 237, 0, 0.2);
}

.chav-lines--flip .line-h {
  left: auto;
  right: 0;
}
.chav-lines--flip .line-v {
  left: auto;
  right: 12px;
}
.chav-lines--flip .line-mid {
  left: auto;
  right: 12px;
}

.chav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  flex-shrink: 0;
}

.chav-trofeu-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 237, 0, 0.08);
  border: 1px solid rgba(255, 237, 0, 0.2);
  border-radius: 50%;
  color: var(--color-yellow);
  box-shadow: 0 0 18px rgba(255, 237, 0, 0.08);
}

.chav-trofeu-icon svg {
  width: 20px;
  height: 20px;
}

.chav-final-tag {
  font-family: var(--font-family);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 237, 0, 0.5);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .box-chaveamento {
    padding: 40px 10px 44px;
  }
  .chav-arrow {
    width: 28px;
    height: 28px;
  }
  .chav-arrow svg {
    width: 13px;
    height: 13px;
  }
  .chav-center {
    padding: 0 8px;
  }
  .chav-trofeu-icon {
    width: 34px;
    height: 34px;
  }
  .chav-trofeu-icon svg {
    width: 15px;
    height: 15px;
  }

  .chav-team {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 68px;
    max-width: 88px;
    padding: 6px 5px;
    gap: 4px;
  }
  .chav-team--right {
    flex-direction: column;
  }
  .chav-name {
    font-size: 0.6rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: center;
    line-height: 1.2;
  }
  .chav-team--right .chav-name {
    text-align: center;
  }
  .chav-logo {
    width: 26px;
    height: 26px;
  }
  .chav-logo img {
    width: 18px;
    height: 18px;
  }

  .chav-bracket {
    overflow-x: hidden;
  }

  .chav-bracket--8 {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: unset;
  }

  .chav-bracket--8 .chav-side--left,
  .chav-bracket--8 .chav-side--right {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .chav-bracket--8 .chav-side--left {
    order: 1;
  }
  .chav-bracket--8 .chav-side--semi {
    order: 2;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  .chav-bracket--8 .chav-center {
    order: 3;
    flex-direction: row;
    gap: 10px;
  }
  .chav-bracket--8 .chav-side--right.chav-side--semi {
    order: 4;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
  .chav-bracket--8 .chav-side--right {
    order: 5;
  }

  .chav-bracket--8 .chav-lines {
    display: none;
  }

  .chav-bracket--8 .chav-pair {
    flex-direction: row;
    gap: 5px;
  }

  .chav-bracket--8 .chav-team--right {
    flex-direction: column;
  }
  .chav-bracket--8 .chav-team--right .chav-name {
    text-align: center;
  }

  .chav-bracket--8 .chav-side--semi .chav-team,
  .chav-bracket--8 .chav-side--right.chav-side--semi .chav-team {
    opacity: 0.3;
    border-style: dashed;
  }

  .chav-bracket--8 .chav-center {
    padding: 6px 0;
    border-top: 1px solid rgba(255, 237, 0, 0.1);
    border-bottom: 1px solid rgba(255, 237, 0, 0.1);
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .chaveamento-tabs {
    flex-direction: column;
    align-items: center;
  }
  .chav-tab {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .chav-team {
    min-width: 58px;
    max-width: 76px;
    padding: 5px 4px;
  }
  .chav-name {
    font-size: 0.56rem;
  }
  .chav-logo {
    width: 22px;
    height: 22px;
  }
  .chav-logo img {
    width: 15px;
    height: 15px;
  }
}
