* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #050505;
  color: #e6e6e6;
  overflow-x: hidden;
}

/* =========================
   🎮 BACKGROUND CINEMATIC
========================= */
.bg {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 120%;

  background-image: url("assets/valorant-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  
  filter: brightness(0.30) contrast(1);

  transform: scale(1.08);
  will-change: transform;

  z-index: -2;
}

/* overlay leve (não escurece demais) */
.bg-overlay {
  position: fixed;
  inset: 0;

  background: radial-gradient(
    circle at center,
    transparent 40%,
    rgba(0,0,0,0.25) 100%
  );

  z-index: -1;
}

/* partículas / grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 80px 80px;

  pointer-events: none;
  z-index: 0;
}
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;

  z-index: -1;
  pointer-events: none;

  opacity: 0.6;
}

/* sweep cinematic */
body::after {
  content: "";
  position: fixed;

  top: 0vh;
  left: -90vw;

  width: 300vw;
  height: 300vh;

  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(255,255,255,0.08) 50%,
    transparent 55%
  );

  animation: sweep 8s linear infinite;

  pointer-events: none;
  z-index: 0;
}

@keyframes sweep {
  0% { transform: translateX(-30%) translateY(-10%) rotate(10deg); }
  100% { transform: translateX(30%) translateY(10deg) rotate(10deg); }
}

/* =========================
   🎬 INTRO
========================= */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.95);

  animation: fadeOut 1s ease 2.5s forwards;
}

.intro-logo {
  font-size: 76px;
  letter-spacing: 8px;
  line-height: 1;

  background: linear-gradient(180deg, #ffffff, #9c9c9c, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 20px rgba(255,255,255,0.15);

  animation: introZoom 2s ease;
  transform-origin: center;
}

@keyframes introZoom {
  0% {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    filter: blur(10px);
  }

  50% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
   🎮 HERO (CORRIGIDO)
========================= */
.hero {
  position: relative;
  z-index: 2;

  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;
  animation: heroIn 0.8s ease 2.4s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
  }
}

/* título (mesmo estilo do intro) */
.title {
  font-size: 76px;
  letter-spacing: 8px;
  line-height: 1;

  background: linear-gradient(180deg, #ffffff, #9c9c9c, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.subtitle {
  margin-top: 10px;
  color: #aaa;
  letter-spacing: 3px;
}

/* =========================
   🔘 BOTÃO
========================= */
.cta-button {
  margin-top: 30px;
  padding: 16px 40px;

  background: linear-gradient(135deg, #d9d9d9, #6e6e6e);
  color: #0a0a0a;

  text-decoration: none;
  font-weight: bold;
  letter-spacing: 2px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.3);

  box-shadow:
    0 0 25px rgba(255,255,255,0.08),
    inset 0 0 10px rgba(255,255,255,0.1);

  transition: 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255,255,255,0.15);
}

/* =========================
   🧱 SEÇÕES
========================= */
section {
  padding: 90px 20px;
  text-align: center;
}

h2 {
  color: #d9d9d9;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

/* =========================
   🏆 BRACKET
========================= */
.bracket-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.match {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 20px 30px;

  background: rgba(255,255,255,0.03);
  border-left: 3px solid #c0c0c0;

  backdrop-filter: blur(10px);

  transition: 0.2s;
}

.match:hover {
  transform: scale(1.02);
  border-left: 3px solid white;
}

.team {
  width: 140px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* =========================
   👥 TEAMS
========================= */
#teams-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.team-card {
  padding: 15px;
  border-radius: 12px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(10px);

  text-transform: uppercase;
  letter-spacing: 1px;
}


.team-tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;

  padding: 4px 10px;
  border-radius: 6px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);

  display: inline-block;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 50px;
  text-align: center;
  color: #666;
  letter-spacing: 2px;
}



/* highlight vencedor */
.match-side.winner .sw-team {
  color: #00ff66;
}

/* status geral */
.sw-team.qualified {
  color: #00ff66;
}

.sw-team.eliminated {
  color: #ff3b3b;
}
.bracket{
  display:flex;
  gap:40px;
  overflow-x:auto;
  padding:20px;
}

.bracket-column{
  min-width:260px;
}

.bracket-column h3{
  text-align:center;
  margin-bottom:20px;
  color:#00e5ff;
  text-transform:uppercase;
  letter-spacing:2px;
}

.bracket-match{
  background:#101010;
  border:2px solid #333;
  border-radius:12px;
  margin-bottom:24px;
  padding:12px;
  box-shadow:0 0 15px rgba(0,255,255,.15);
  transition:.2s;
}

.bracket-match:hover{
  transform:scale(1.03);
  border-color:#00e5ff;
}

.bracket-match.played{
  border-color:#00ff88;
}

.bracket-match.pending{
  border-color:#666;
  opacity:.8;
}

.team-row{
  display:flex;
  justify-content:space-between;
  padding:8px;
  font-weight:bold;
  border-bottom:1px solid #222;
}

.team-row:last-child{
  border-bottom:none;
}

.gamer{
  background:linear-gradient(
    180deg,
    #050505,
    #111
  );
  border-radius:16px;
  padding:30px;
}
.team-info{
  display:flex;
  align-items:center;
  gap:10px;
}

.team-logo{
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:50%;
  background:#111;
}
.bracket-split{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.bracket-side{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.bracket-side.winners{
  border-bottom:1px solid #222;
  padding-bottom:10px;
}

.bracket-side.losers{
  opacity:0.85;
}
.swiss-round{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.swiss-side{
  display:flex;
  flex-direction:column;
  gap:14px;
}
/* esperimento de layout para bracket estilo swiss*/

/* =========================
   BRACKET BASE
========================= */
.cs-bracket {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 20px;
  position: relative;
}

.cs-round {
  min-width: 260px;
}

.cs-round-title {
  text-align: center;
  color: #00e5ff;
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.cs-matches {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   MATCH CARD
========================= */
.cs-match {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.06);
}

/* =========================
   TEAM ROW
========================= */
.cs-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  transition: 0.2s;
}

.team-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-left img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.score {
  font-weight: bold;
  color: #fff;
}

/* =========================
   WINNER / CLASSIFIED GLOW
========================= */
.cs-team.winner,
.cs-team.qualified {
  background: rgba(0, 255, 140, 0.08);
  box-shadow: 0 0 10px rgba(0, 255, 140, 0.25);
}

/* brilho pulsante igual “VCT feeling” */
.winner.flow-source,
.qualified {
  animation: pulseWin 1.4s infinite;
}

@keyframes pulseWin {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 140, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 255, 140, 0.35);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 140, 0);
  }
}

/* =========================
   STATUS
========================= */
.cs-status {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   VICTORY PARTICLES
========================= */
.flow-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff9d;
  pointer-events: none;
  z-index: 9999;
  animation: fly 600ms ease-out forwards;
}

@keyframes fly {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}

/* =========================
   SIDE PANEL (CLASSIFIED / ELIMINATED)
========================= */
.cs-side-panel {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-side-panel h3 {
  color: #00e5ff;
  margin-bottom: 10px;
}

.cs-mini-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

/* eliminado mais apagado */
.cs-mini-team.eliminated {
  opacity: 0.6;
}

/* =========================
   CLEANUP (REMOVIDO)
========================= */
/* removido:
   - cs-split
   - cs-side top/mid/bottom
   - duplicação de cs-bracket
*/

.swiss-wrapper{
  position:relative;
  display:flex;
  gap:18px;
  padding:20px 360px 20px 20px;
  min-height:620px;

  /* IMPORTANTE: sem fundo */
  background:transparent;

  overflow-x:auto;
  align-items:center; /* centraliza tudo baseado no R1 */
}

/* pares verticais */
.swiss-pair{
  display:flex;
  flex-direction:column;
}

.p2{
  gap:20px;
  
}

.p3{
  gap:20px;
  margin-top:10px;
}

.p4{
  gap:50px;
  margin-top:60px;
}

.c1{
  margin-top:0;
}

.c5{
  margin-top:30px;
}

/* coluna */
.swiss-col{
  width:135px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* titulo */
.swiss-title{
  color:#9fb0c5;
  font-size:18px;
  font-weight:700;
  text-align:center;
}

/* card */
.swiss-match{
  background:#1f2937;
  border:1px solid #334155;
  border-radius:8px;
  padding:6px;
}

/* team */
.swiss-team{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:6px;
  margin-bottom:4px;
  background:#111827;
}

.swiss-team:last-child{
  margin-bottom:0;
}

.swiss-team img{
  width:24px;
  height:24px;
}

.swiss-team span{
  flex:1;
  font-size:11px;
}

.winner{
  background:#166534;
}

/* QUALIFIED */
.qualified-box{
  position:absolute;
  top:20px;
  right:20px;

  width:220px;   /* menor = mais parecido com print */

  display:flex;
  background:transparent; /* remove caixa feia */
  gap:8px;
}

.qcol{
  flex:1;
  padding:6px;
  background:#0f8b1d;  /* verde só nos blocos */
  border-radius:6px;
}

.qcol:last-child{
  border-right:none;
}

.qtitle{
  text-align:center;
  color:white;
  font-weight:700;
  font-size:13px;
  margin-bottom:6px;
}

.qteam{
  display:flex;
  justify-content:center;
  margin-bottom:6px;
}

/* ELIMINATED */
.eliminated-box{
  position:absolute;
  right:20px;
  bottom:20px;

  width:220px; /* menor igual ao print */

  display:flex;
  background:transparent; /* remove fundo grande */
  gap:8px;
}

.ecol{
  flex:1;
  padding:6px;
  background:#a00000;
  border-radius:6px;
}

.ecol:last-child{
  border-right:none;
}

.etitle{
  text-align:center;
  color:white;
  font-weight:700;
  font-size:13px;
  margin-bottom:6px;
}

.eteam{
  display:flex;
  justify-content:center;
  margin-bottom:6px;
}
.bracket.gamer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
}

.bracket-inner {
  display: flex;
  align-items: center; /* <- ESSENCIAL pro alinhamento vertical */
  gap: 60px;
  position: relative;
}

/* cada coluna (round) */
.bracket-column {
  display: flex;
  flex-direction: column;
  justify-content: center; /* <- centraliza verticalmente os matches */
  gap: 20px;
}

/* título */
.bracket-column h3 {
  text-align: center;
  margin-bottom: 10px;
}

/* match */
.match {
  display: flex;
  align-items: center;
}