:root {
    --kick-neon: #53fc18;
    --kick-dark: #1f5c0a;
    --dota-red: #a3261f;
    --dota-lava: #ff2d2d;
    --bg-void: #050505;
    --glass: rgba(20, 20, 20, 0.9);
    --gold: #d4af37;
    --font-epic: 'Cinzel', serif;
    --font-tech: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-void);
    color: white;
    font-family: var(--font-tech);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-epic);
}

.background-fx {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: #080808;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 200%; height: 200%;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog1.png') repeat;
    background-size: cover;
    opacity: 0.4;
    animation: drift 60s linear infinite;
}

.fog-2 {
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/img/fog2.png') repeat;
    animation: drift 40s linear infinite reverse;
    opacity: 0.3;
}

.embers {
    position: absolute;
    width: 100%; height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px), radial-gradient(#ff4500 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: rise 20s linear infinite;
    opacity: 0.3;
}

.vignette {
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 30%, #000 95%);
}

@keyframes drift { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%, -10%, 0); } }
@keyframes rise { 0% { background-position: 0 0, 25px 25px; } 100% { background-position: 0 -100px, 25px -75px; } }

.hud-nav {
    background: rgba(10, 5, 5, 0.95);
    border-bottom: 2px solid var(--dota-red);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.logo-pulse {
    animation: pulseLogo 3s infinite ease-in-out;
    filter: drop-shadow(0 0 5px var(--dota-red));
}

@keyframes pulseLogo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.nav-link-custom {
    color: #aaa;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.1rem;
    position: relative;
    transition: 0.3s;
    margin-right: 20px;
}

.nav-link-custom:hover {
    color: var(--kick-neon);
    text-shadow: 0 0 10px var(--kick-neon);
}

.nav-link-custom::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--kick-neon); transition: 0.3s;
}

.nav-link-custom:hover::after { width: 100%; }

.btn-battle {
    background: linear-gradient(45deg, var(--kick-dark), var(--kick-neon));
    color: #000;
    font-weight: 800;
    padding: 12px 35px;
    clip-path: polygon(15% 0, 100% 0, 100% 70%, 85% 100%, 0 100%, 0 30%);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: 0.3s;
    border: none;
}

.btn-battle:hover {
    transform: scale(1.05);
    color: #000;
    box-shadow: 0 0 25px var(--kick-neon);
}

.shimmer {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer { 100% { left: 100%; } }

.hero-section {
    padding: 150px 0 100px;
    position: relative;
}

.aegis-glow {
    width: 120px;
    filter: drop-shadow(0 0 20px var(--gold));
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    position: relative;
    letter-spacing: -2px;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute; left: 0; width: 100%;
    background: var(--bg-void); clip: rect(0,0,0,0);
}

.glitch-text::before {
    left: -2px; text-shadow: 2px 0 var(--dota-red);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: 2px; text-shadow: -2px 0 var(--kick-neon);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(80px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(80px, 9999px, 90px, 0); }
    100% { clip: rect(10px, 9999px, 20px, 0); }
}

.countdown-hex-wrapper {
    display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap;
}

.hex-item {
    width: 100px; height: 115px;
    background: rgba(30,30,30,0.8);
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
}

.hex-item::before {
    content: ''; position: absolute; inset: 0;
    background: var(--dota-red);
    clip-path: inherit; z-index: -1; margin: -2px;
}

.hex-item.active::before { background: var(--kick-neon); }

.hex-content span { font-size: 2.5rem; font-weight: 700; display: block; line-height: 0.9; }
.hex-content small { font-size: 0.7rem; letter-spacing: 2px; color: #aaa; }

.stream-cyber-frame {
    position: relative;
    max-width: 900px; margin: 0 auto;
    border: 1px solid #333;
    padding: 5px;
    background: #000;
    box-shadow: 0 0 50px rgba(163, 31, 31, 0.2);
    aspect-ratio: 16/9;
}

.stream-cyber-frame iframe { width: 100%; height: 100%; border: none; }

.corner-accents::before, .corner-accents::after {
    content: ''; position: absolute; width: 30px; height: 30px;
    border: 3px solid var(--kick-neon); transition: 0.3s;
}

.corner-accents::before { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.corner-accents::after { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.live-badge {
    position: absolute; top: 15px; right: 15px;
    background: red; color: white; padding: 5px 10px; font-weight: bold;
    font-size: 0.8rem; border-radius: 3px;
    box-shadow: 0 0 10px red; animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

.rpg-title {
    font-size: 3rem; color: #fff; text-shadow: 0 5px 10px #000;
}

.runes-separator {
    color: var(--dota-red); font-size: 1.5rem; letter-spacing: 20px; margin-bottom: 30px;
}

.hero-card {
    height: 400px;
    perspective: 1000px;
    cursor: default;
}

.card-inner {
    position: relative; width: 100%; height: 100%;
    background: #151515;
    border: 1px solid #333;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.hero-card:hover .card-inner {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--kick-neon);
    box-shadow: 0 10px 30px rgba(83, 252, 24, 0.15);
}

.card-avatar {
    height: 60%; position: relative; overflow: hidden;
}

.card-avatar img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}

.hero-card:hover .card-avatar img { transform: scale(1.1); }

.avatar-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, #151515, transparent);
}

.rank-flag {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: var(--gold); color: #000; padding: 5px 10px;
    font-weight: 800; font-size: 0.8rem;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 15% 50%, 0 0);
}

.card-info {
    padding: 20px; text-align: center; position: relative; z-index: 2;
}

.card-info .nick { font-size: 1.6rem; color: #fff; margin: 0; }
.card-info .team { color: #888; font-size: 0.9rem; margin-bottom: 15px; }

.stats-row {
    display: flex; justify-content: center; gap: 15px;
    border-top: 1px solid #333; padding-top: 10px; margin-bottom: 15px;
}

.stat { font-size: 0.8rem; color: #aaa; display: flex; align-items: center; gap: 5px; }

.btn-profile {
    display: block; width: 100%;
    border: 1px solid var(--kick-neon); color: var(--kick-neon);
    padding: 8px; font-size: 0.8rem; text-decoration: none;
    transition: 0.3s;
}

.btn-profile:hover { background: var(--kick-neon); color: #000; }

.cyber-footer {
    background: #080808;
    border-top: 1px solid #222;
    padding: 50px 0;
    margin-top: 50px;
    position: relative;
}

.footer-brand { font-family: 'Cinzel'; font-weight: bold; color: #fff; letter-spacing: 2px; }

.social-hex-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}

.social-hex {
    width: 50px; height: 50px;
    background: #111;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid #333;
    transition: 0.3s;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.social-hex.kick:hover { background: #53fc18; color: #000; box-shadow: 0 0 15px #53fc18; }
.social-hex.discord:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 0 15px #5865F2; }
.social-hex.tiktok:hover { background: #ff0050; border-color: #ff0050; box-shadow: 0 0 15px #ff0050; text-shadow: 2px 2px 0 #00f2ea; }
.social-hex.insta:hover { background: #E1306C; border-color: #E1306C; box-shadow: 0 0 15px #E1306C; }
.social-hex.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 0 15px #1877F2; }
.social-hex:hover { transform: translateY(-5px); }

.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--dota-red);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--dota-red), var(--kick-neon), var(--dota-red));
}

.form-control {
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
}

.form-control:focus {
    background: #000;
    color: #fff;
    border-color: var(--kick-neon);
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.2);
    outline: none;
}

.section-divider {
    border-bottom: 1px solid #333;
    margin: 30px 0;
    padding-bottom: 10px;
    color: var(--kick-neon);
    font-family: var(--font-epic);
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .countdown-hex-wrapper { transform: scale(0.8); }
    .hud-nav { padding: 10px 0; }
    .stream-cyber-frame { width: 95%; }
}

/* --- REPRODUCTOR DE MÚSICA FLOTANTE --- */
.audio-player-hud {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: var(--font-tech);
}

.btn-music {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    color: #888;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s ease;
    min-width: 140px;
}

/* Estado: Reproduciendo */
.btn-music.playing {
    border-color: var(--kick-neon);
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.2);
    color: #fff;
}

.btn-music.playing .music-label span {
    color: var(--kick-neon);
    text-shadow: 0 0 5px var(--kick-neon);
}

/* Ecualizador Animado */
.equalizer {
    display: flex;
    gap: 3px;
    height: 15px;
    align-items: flex-end;
}

.bar {
    width: 3px;
    background: #555;
    height: 3px;
    transition: 0.2s;
}

.btn-music.playing .bar {
    background: var(--kick-neon);
    animation: equalize 1s infinite ease-in-out alternate;
}

.btn-music.playing .bar:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.btn-music.playing .bar:nth-child(2) { animation-delay: 0.3s; height: 15px; }
.btn-music.playing .bar:nth-child(3) { animation-delay: 0.5s; height: 8px; }
.btn-music.playing .bar:nth-child(4) { animation-delay: 0.2s; height: 12px; }

@keyframes equalize {
    0% { height: 3px; }
    100% { height: 100%; }
}

.music-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-music:hover {
    transform: scale(1.05);
    background: #000;
}

/* --- EFECTOS DE LUZ CELESTIAL (AEGIS) --- */

.tournament-emblem {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    z-index: 10;
}

/* La imagen del Aegis */
.aegis-glow {
    width: 180px; /* Tamaño más imponente */
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)) contrast(1.1);
    animation: floatAegis 6s ease-in-out infinite;
}

/* Efecto de Rayos de Luz detrás */
.god-rays {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.god-rays::before, .god-rays::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 175, 55, 0.1) 20deg, transparent 40deg);
    border-radius: 50%;
    animation: rotateRays 20s linear infinite;
}

.god-rays::after {
    background: conic-gradient(from 180deg, transparent 0deg, rgba(255, 223, 0, 0.15) 15deg, transparent 30deg);
    animation: rotateRays 15s linear infinite reverse; /* Gira al otro lado */
    width: 80%; height: 80%;
    top: 10%; left: 10%;
}

/* Animación de Flotación suave */
@keyframes floatAegis {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)); }
    50% { transform: translateY(-10px) scale(1.02); filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9)); }
}

/* Animación de rotación de los rayos */
@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .aegis-glow { width: 120px; }
    .god-rays { width: 200px; height: 200px; }
}

/* --- BRACKET STYLES --- */
.bracket-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 20px;
}

.round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 40px;
}

/* Match Box Design */
.match-box {
    background: #181818;
    border: 1px solid #333;
    width: 200px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.match-header {
    background: #111;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #666;
    border-bottom: 1px solid #333;
}
.match-header .fmt { color: var(--kick-neon); font-weight: bold; }

.team {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #222;
    color: #ccc;
    font-size: 0.9rem;
}
.team:last-child { border-bottom: none; }

.team.winner {
    background: rgba(83, 252, 24, 0.1);
    color: var(--kick-neon);
    font-weight: bold;
}
.team.winner .score { color: #fff; text-shadow: 0 0 5px var(--kick-neon); }

/* Conectores (Líneas) - Simple Approach */
.bracket-grid .round { position: relative; }

/* Grand Final Special */
.grand-final .match-box {
    transform: scale(1.2);
    border-color: gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}