:root {
    --primary-color: #6366f1;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-accent: linear-gradient(135deg, #10b981, #059669);
    --neon-purple: #8a2be2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    height: 100%;
    font-weight: 400;
    padding-top: 0;
}

html {
    height: 100%;
}

@keyframes gradientShift {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes neonGlow {

    0%,
    100% {
        text-shadow: 0 0 2px currentColor, 0 0 4px currentColor;
    }

    50% {
        text-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    width: 100%;
    background-color: transparent;
    transform: translateY(0);
}

.main-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    padding: 0.75rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    background-color: #001f3f;
    transform: translateY(0);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-light) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.site-title:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.15) !important;
    font-weight: 600;
}

.navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.login-btn {
    background: var(--gradient-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.login-btn:hover {
    background: var(--gradient-secondary);
    border-color: rgba(245, 158, 11, 0.3);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.login-btn:active {
    transform: translateY(-1px);
}

.hero-section {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.1) 0%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="cyberpunk-grid" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="%2300ffff" stroke-width="0.5" opacity="0.3"/><path d="M 40 0 L 40 80 M 0 40 L 80 40" fill="none" stroke="%23ff0080" stroke-width="0.3" opacity="0.2"/></pattern><filter id="glow"><feGaussianBlur stdDeviation="3" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><rect width="100%" height="100%" fill="url(%23cyberpunk-grid)"/><g filter="url(%23glow)"><circle cx="300" cy="200" r="4" fill="%2339ff14"><animate attributeName="opacity" values="0.3;1;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="800" cy="400" r="3" fill="%2300ffff"><animate attributeName="opacity" values="0.8;0.2;0.8" dur="3s" repeatCount="indefinite"/></circle><circle cx="1400" cy="300" r="5" fill="%23ff0080"><animate attributeName="opacity" values="0.5;1;0.5" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="1600" cy="700" r="2" fill="%238a2be2"><animate attributeName="opacity" values="0.7;0.3;0.7" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="500" cy="800" r="3" fill="%23ff4500"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="1.8s" repeatCount="indefinite"/></circle></g></svg>'),
        linear-gradient(135deg, #000000 0%, #1a0033 25%, #000000 50%, #001a33 75%, #000000 100%);
    background-size: cover, cover, cover, cover, cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 0, 128, 0.1) 0%,
            transparent 25%,
            rgba(0, 255, 255, 0.1) 50%,
            transparent 75%,
            rgba(57, 255, 20, 0.1) 100%);
    animation: gradientShift 10s ease infinite;
    pointer-events: none;
}

.hero-placeholder {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.hero-placeholder .fa-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hero-placeholder h3 {
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.hero-placeholder p {
    opacity: 0.5;
    max-width: 400px;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    position: relative;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    background: var(--gradient-secondary);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 12px 48px rgba(245, 158, 11, 0.4);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(45deg, #2d3748, #4a5568);
    border: 2px solid #6c757d;
    color: #ffffff !important;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #4a5568, #6c757d);
    border-color: #adb5bd;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--accent-color);
    color: var(--accent-color) !important;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-light:hover {
    color: var(--dark-bg) !important;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    border-color: var(--accent-color);
}

.btn-outline-light:hover::before {
    left: 0;
}

.btn-outline-light:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    position: relative;
    letter-spacing: -1px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

.content-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%236c5ce7" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    background-size: cover, 100px 100px;
    position: relative;
}

.mission-card,
.tournament-card,
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    cursor: pointer;
    min-height: 400px;
}

.mission-card::before,
.tournament-card::before,
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mission-card:hover,
.tournament-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 80px rgba(99, 102, 241, 0.25);
}

.mission-card:hover::before,
.tournament-card:hover::before,
.testimonial-card:hover::before {
    left: 100%;
}

.mission-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.mission-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.mission-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.tournament-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
    flex-shrink: 0;
}

.tournament-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tournament-icon {
    flex-shrink: 0;
}

.tournament-game {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.tournament-date {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.tournament-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tournament-prize {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    align-self: center;
    flex-shrink: 0;
}

.tournament-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.tournament-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.tournament-details {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tournament-details li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.tournament-details li i {
    margin-right: 0.5rem;
    width: 16px;
    flex-shrink: 0;
}

.ranking-table {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #30363d;
}

.table-dark {
    --bs-table-bg: var(--card-bg);
    --bs-table-border-color: #30363d;
}

.table-dark th {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.rank-badge {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rg-title {
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.rg-card-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.rg-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-muted);
    line-height: 2;
}

.rg-list-item {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.rg-icon {
    margin-right: 0.8rem;
    font-size: 1rem;
    color: var(--accent-color);
}

.rg-icon-ban {
    color: var(--secondary-color);
}

.rg-icon-clock {
    color: var(--primary-color);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #3345ff;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
    margin-bottom: 3rem;
    min-height: 300px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    padding: 40px 20px;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: background 0.36s ease, backdrop-filter 0.36s ease;
    pointer-events: none;
    inset: 10px;
    border-radius: 14px;
    backdrop-filter: blur(2px);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(0);
}

.gallery-placeholder {
    min-height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(245, 158, 11, 0.1));
    border: 3px dashed rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.gallery-placeholder:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
}

.gallery-placeholder [class^="gallery-icon-"] {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.gallery-placeholder-title {
    margin-bottom: 1rem;
    opacity: 0.8;
    font-weight: 600;
    color: var(--text-light);
}

.gallery-placeholder-text {
    opacity: 0.6;
    max-width: 300px;
    text-align: center;
    line-height: 1.5;
}

.gallery-icon-trophy,
.gallery-icon-medal {
    color: var(--secondary-color);
}

.gallery-icon-heart,
.gallery-icon-users {
    color: var(--accent-color);
}

.gallery-icon-gamepad,
.gallery-icon-handshake {
    color: var(--primary-color);
}

.login-modal {
    background: linear-gradient(145deg, var(--card-bg), rgba(26, 0, 51, 0.95));
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    box-shadow:
        0 0 20px rgba(138, 43, 226, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

.login-modal .modal-header {
    border-bottom: 1px solid var(--neon-purple);
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(255, 0, 128, 0.2));
}

.login-modal .modal-title {
    font-family: 'Orbitron', monospace;
    color: var(--neon-purple);
    text-shadow: 0 0 3px var(--neon-purple);
}

.form-control {
    background: #0d1117;
    border: 1px solid #30363d;
    color: var(--text-light);
    border-radius: 10px;
    padding: 12px 15px;
}

.form-control:focus {
    background: #0d1117;
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 128, 0.25);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.error-message {
    background: linear-gradient(45deg, #dc3545, rgba(220, 53, 69, 0.8));
    color: #ffffff;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    display: none;
    border: 1px solid #dc3545;
}

.footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border-top: 1px solid var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .site-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem;
    }

    section#ranking .col-lg-4 {
        margin-bottom: 2.5rem;
    }

    section#ranking .rg-title {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .btn-primary-custom {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .mission-card,
    .tournament-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .site-title {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.8rem !important;
    }

    .mission-icon {
        font-size: 2.5rem;
    }

    .tournament-game {
        font-size: 1.1rem;
    }

    .tournament-title-container {
        flex-direction: column;
        gap: 5px;
    }

    .tournament-icon {
        width: 25px;
        height: 25px;
    }

    .mission-card,
    .tournament-card,
    .testimonial-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .tournament-header {
        padding: 1rem;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

#inicio.hero-section {
    height: 100vh;
    padding: 0;
}

#inicio.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header.fixed-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.main-header.header-visible {
    opacity: 1;
    visibility: visible;
}

.hero-section .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@view-transition {
    navigation: auto;
}

.main-header.scrolled+section {
    margin-top: 70px;
}

.main-header .navbar-nav .nav-link {
    color: #ffffff;
}

.main-header .navbar-nav .nav-link.active {
    color: #ffcc00;
}

.main-header .site-title {
    color: #ffffff;
    font-weight: bold;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-down-arrow i {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

#reglamento-card {
    border: 3px solid var(--accent-color) !important;
    box-shadow: 0 0 15px var(--accent-color) !important;
    transition: all 0.3s ease;
}

#reglamento-card:hover {
    box-shadow: 0 0 25px var(--accent-color) !important;
}

@media (min-width: 992px) {
    section#ranking .section-title {
        text-align: left;
        transform: none;
        margin-left: 0;
    }

    section#ranking .section-title::before,
    section#ranking .section-title::after {
        left: 0;
        transform: none;
    }

    section#ranking .col-lg-4 {
        margin-bottom: 0;
    }

    section#ranking .rg-title {
        text-align: left !important;
    }

    #reglamento-card {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    #reglamento-card .btn-outline-light {
        margin-top: 1rem !important;
    }

    #reglamento-card .rg-list {
        align-self: center;
    }
}

.gallery-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.gallery-bg {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: cover;
    border-radius: 16px;
    opacity: 0.4;
    filter: blur(1px);
    transition: opacity 0.36s ease, filter 0.36s ease, transform 0.36s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-bg {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.03);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.galeria-section {
    padding: 60px 0;
    text-align: center;
    background-image: url("/42311911/multimedia/momentos.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.galeria-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

.galeria-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid #272727;
    transition: transform 0.3s ease;
}

.galeria-card:hover {
    transform: translateY(-5px);
}

.galeria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.82;
}

.galeria-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.galeria-content p {
    color: #ccc;
    font-size: 0.95rem;
}

section#galeria {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/42311911/multimedia/momentos.jpg') !important;
    background-size: cover !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.intro-overlay-simple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: visible;
    opacity: 1;
}

.intro-overlay-simple.hidden {
    visibility: hidden;
    opacity: 0;
}

.intro-popup-content-simple {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    max-width: 400px;
    width: 90%;
    color: var(--text-light, #f1f5f9);
    border: 1px solid rgba(99, 102, 241, 0.5);
    transform: scale(0.8);
    opacity: 0;
    animation: popInSimple 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes popInSimple {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.intro-title-simple {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary-color, #3345ff);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.intro-message-simple {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #94a3b8;
    font-weight: 500;
}

.intro-btn-accept-simple {
    background-color: #03c03c;
    border: none;
    color: #1e293b;
    font-weight: 800;
    border-radius: 8px;
    padding: 10px 30px;
    margin-bottom: 15px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(3, 192, 60, 0.4);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.intro-btn-accept-simple:hover {
    background-color: #02a333;
    color: #fff;
    transform: translateY(-1px);
}

.intro-btn-skip-simple {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px;
}

.intro-btn-skip-simple:hover {
    color: var(--accent-color, #6366f1);
    text-decoration: underline;
}