*{box-sizing:border-box}

:root{
  --font-ui: "Inter", Arial, Helvetica, sans-serif;
  --font-title: "Cinzel Decorative", serif;
  --font-subtitle: "Poppins", sans-serif;
}

body{
  margin:0;
  font-family:var(--font-ui);
  background:url("fondo.jpg") center/cover fixed;
  color:white;
}

.overlay{
  min-height:100vh;
  background:rgba(0,0,0,.75);
}

.main-header{
  text-align:center;
  padding:20px;
}

.logo{
  width:120px;
  height:auto;
  display:block;
  margin:0 auto 10px;
}

.footer{
  text-align:center;
  padding:18px 10px;
  opacity:.9;
}

/* ✅ TITULO BONITO "VOID CUP" */
.brand-title{
  font-family:var(--font-title);
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  line-height:1.05;
  margin:6px 0 6px;
  font-size:clamp(40px, 5.8vw, 74px);

  background:linear-gradient(90deg, #ffffff, #ffd08b, #ff9f1a, #ffffff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  /* Compatibilidad (Chrome/Safari/OBS): asegura que el texto muestre el degradado */
  -webkit-text-fill-color: transparent;
  filter:drop-shadow(0 0 14px rgba(255,159,26,.35));

  /* Animaciones (luz + movimiento) */
  display: inline-block;
  background-size: 300% 100%;
  background-position: 0% 50%;
  will-change: transform, filter, background-position;
  animation:
    vcShine 6s linear infinite,
    vcFloat 4.8s ease-in-out infinite,
    vcGlow 2.9s ease-in-out infinite;

}

/* ===== Glitch opcional (añádelo con class="vc-glitch" y data-text="..." ) ===== */
.vc-glitch{
  position: relative;
}

.vc-glitch::before,
.vc-glitch::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Copia del degradado para que el glitch mantenga el “look” brillante */
  background: linear-gradient(90deg, #ffffff, #ffd08b, #ff9f1a, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  background-position: 0% 50%;

  opacity: .9;
  mix-blend-mode: screen;
  will-change: transform, clip-path, opacity;
}

.vc-glitch::before{
  text-shadow: -2px 0 rgba(0, 229, 255, .95);
  clip-path: inset(0 0 55% 0);
  animation: vcGlitchTop 1.9s steps(2, end) infinite;
}

.vc-glitch::after{
  text-shadow:  2px 0 rgba(255, 43, 214, .95);
  clip-path: inset(45% 0 0 0);
  animation: vcGlitchBot 2.3s steps(2, end) infinite;
}

/* ✅ SUBTITULO BONITO "Torneo Oficial" */
.brand-subtitle{
  font-family:var(--font-subtitle);
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin:0;
  font-size:clamp(12px, 1.6vw, 16px);
  color:#ffd08b;
  text-shadow:0 0 12px rgba(255,159,26,.25);
}

/* ✅ Para usar "brand-subtitle" como etiqueta de página (Bracket/Participantes) */
.section-label{
  margin-top:10px; /* solo separación, el estilo es el MISMO */
}

.main-nav{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-bottom:20px;
  flex-wrap:wrap;
  padding:0 10px;
}
.main-nav a{
  color:#ff9f1a;
  text-decoration:none;
  font-weight:bold;
}
.main-nav a:hover{ text-decoration:underline; }

/* Botón de navegación (ej: Cerrar sesión en Admin) */
.main-nav .nav-btn{
  background: transparent;
  border: 0;
  color: #ff9f1a;
  font-weight: bold;
  padding: 0;
  cursor: pointer;
}
.main-nav .nav-btn:hover{
  text-decoration: underline;
}

.players-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:15px;
  padding:30px;
}
.player{
  border:2px solid #ff9f1a;
  padding:10px;
  text-align:center;
  box-shadow:0 0 15px rgba(255,159,26,.5);
  border-radius:12px;
}

.card{
  max-width:420px;
  margin:40px auto;
  padding:20px;
  border:2px solid #ff9f1a;
  border-radius:16px;
  box-shadow:0 0 18px rgba(255,159,26,.35);
  background:rgba(0,0,0,.35);
  text-align:center;
}

.page-title{
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.card input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,159,26,.6);
  background:rgba(0,0,0,.35);
  color:#fff;
  margin:10px 0 12px;
}

button{
  border:2px solid #ff9f1a;
  background:transparent;
  color:#ff9f1a;
  font-weight:bold;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}
button:hover{ background:rgba(255,159,26,.15); }

.admin-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 16px 0;
}

.hint{
  opacity:.85;
  font-size:13px;
  margin:10px 0 0;
}
code{ color:#ffd08b; }

.video-wrap{
  display:flex;
  justify-content:center;
  padding:10px 20px 0;
}
.video-wrap iframe{
  max-width:100%;
  border:2px solid rgba(255,159,26,.6);
  border-radius:16px;
  box-shadow:0 0 18px rgba(255,159,26,.25);
}

.bracket-grid{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  padding:22px 16px 40px;
}
.round{
  min-width:180px;
  max-width:220px;
}
.round h3{
  text-align:center;
  margin:0 0 10px;
  font-size:14px;
  opacity:.95;
  letter-spacing:.5px;
}
.match{
  border:2px solid #ff9f1a;
  padding:10px;
  margin:10px 0;
  text-align:center;
  box-shadow:0 0 10px rgba(255,159,26,.35);
  border-radius:14px;
  background:rgba(0,0,0,.15);
}
.slot{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.slot button, .slot div{
  width:100%;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,159,26,.45);
  background:rgba(0,0,0,.25);
  color:#fff;
  cursor:default;
}
.slot button{
  cursor:pointer;
  border:2px solid rgba(255,159,26,.65);
}
.slot button:hover{ background:rgba(255,159,26,.18); }

.winner{
  outline:2px solid rgba(255,255,255,.65);
  box-shadow:0 0 16px rgba(255,255,255,.18);
}

.champion{
  margin-top:10px;
  border-style:dashed;
  font-size:15px;
  font-weight:bold;
}

/* ✅ Título en OBS: mismo look que el principal (pero el tamaño se controla en obs.html) */
.obs-title{
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;

  background: linear-gradient(90deg, #ffffff, #ffd08b, #ff9f1a, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  display: inline-block;
  background-size: 300% 100%;
  background-position: 0% 50%;
  filter: drop-shadow(0 0 14px rgba(255,159,26,.35));
  will-change: transform, filter, background-position;
  animation:
    vcShine 6s linear infinite,
    vcFloat 4.8s ease-in-out infinite,
    vcGlow 2.9s ease-in-out infinite;
}


.obs{
  width:1920px;
  height:1080px;
  overflow:hidden;
}


/* ===== Void Cup: animaciones de luz y movimiento ===== */
@keyframes vcShine{
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@keyframes vcFloat{
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -4px, 0) scale(1.015); }
}

@keyframes vcGlow{
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255,159,26,.25)); }
  50%      { filter: drop-shadow(0 0 24px rgba(255,159,26,.60)); }
}

@keyframes vcGlitchTop{
  0%   { transform: translate3d(0, 0, 0); opacity: .85; clip-path: inset(0 0 55% 0); }
  6%   { transform: translate3d(-2px, -1px, 0); }
  7%   { transform: translate3d( 2px,  1px, 0); }
  8%   { transform: translate3d( 0, 0, 0); }
  28%  { clip-path: inset(0 0 70% 0); }
  29%  { transform: translate3d(-4px, 0, 0); }
  30%  { transform: translate3d( 0, 0, 0); }
  52%  { clip-path: inset(0 0 35% 0); opacity: .95; }
  53%  { transform: translate3d( 3px, -1px, 0); }
  54%  { transform: translate3d( 0, 0, 0); }
  76%  { clip-path: inset(0 0 60% 0); }
  77%  { transform: translate3d(-1px, 0, 0); }
  78%  { transform: translate3d( 0, 0, 0); }
  100% { transform: translate3d(0, 0, 0); opacity: .85; }
}

@keyframes vcGlitchBot{
  0%   { transform: translate3d(0, 0, 0); opacity: .85; clip-path: inset(45% 0 0 0); }
  6%   { transform: translate3d( 2px,  1px, 0); }
  7%   { transform: translate3d(-2px, -1px, 0); }
  8%   { transform: translate3d( 0, 0, 0); }
  33%  { clip-path: inset(60% 0 0 0); }
  34%  { transform: translate3d( 4px, 0, 0); }
  35%  { transform: translate3d( 0, 0, 0); }
  58%  { clip-path: inset(35% 0 0 0); opacity: .95; }
  59%  { transform: translate3d(-3px, 1px, 0); }
  60%  { transform: translate3d( 0, 0, 0); }
  82%  { clip-path: inset(55% 0 0 0); }
  83%  { transform: translate3d( 1px, 0, 0); }
  84%  { transform: translate3d( 0, 0, 0); }
  100% { transform: translate3d(0, 0, 0); opacity: .85; }
}

/* Si el sistema tiene “Reducir movimiento” activado, al menos dejamos la luz (sin flotación/glitch) */
@media (prefers-reduced-motion: reduce){
  .brand-title,
  .obs-title{
    animation:
      vcShine 6s linear infinite,
      vcGlow 2.9s ease-in-out infinite !important;
    transform: none !important;
  }

  .vc-glitch::before,
  .vc-glitch::after{
    animation: none !important;
    opacity: 0 !important;
  }
}
