:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #ff3366;
    --accent: #ffcc00;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-purple: #9d00ff;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.95);
    --bg-card-hover: rgba(26, 26, 37, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #888899;
    --glow-primary: 0 0 20px rgba(0, 255, 136, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 51, 102, 0.5);
    --glow-neon: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.gif-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.gif-tile {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0.85;
    animation: float 6s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
}

.gif-tile:nth-child(odd) {
    animation-delay: -3s;
    animation-duration: 8s;
}

.gif-tile:nth-child(3n) {
    animation-delay: -1.5s;
    animation-duration: 7s;
}

.gif-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-2deg); }
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.92) 0%,
        rgba(10, 10, 15, 0.88) 50%,
        rgba(10, 10, 15, 0.92) 100%);
    z-index: 0;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 1;
}

.page-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.floating-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--neon-cyan));
    border: none;
    color: var(--bg-dark);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transition: all 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

.menu-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.menu-dropdown a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.menu-dropdown a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-dropdown .menu-cta {
    background: linear-gradient(135deg, var(--primary), var(--neon-cyan));
    color: var(--bg-dark) !important;
    margin: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.menu-dropdown .menu-cta:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.logo-text {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    letter-spacing: 2px;
}

.glitch {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--neon-cyan);
    animation: glitch-effect 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translateX(-2px);
}

.glitch::after {
    color: var(--neon-pink);
    animation: glitch-effect 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translateX(2px);
}

@keyframes glitch-effect {
    0% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-0.5deg); }
    20% { transform: skew(0.5deg); }
    30% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.logo-sub {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--neon-cyan));
    color: var(--bg-dark) !important;
    border: none;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 5;
    cursor: pointer;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px rgba(0, 255, 136, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary), 0 0 100px rgba(0, 255, 136, 0.5);
    }
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary);
}

.btn-outline-glow {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-glow:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-2px);
}

.logged-in-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--primary);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.logged-in-status i {
    font-size: 0.9rem;
}

.hero-section {
    padding: 80px 0;
    position: relative;
}

.hero-section h1 {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    letter-spacing: 5px;
    color: var(--primary);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 136, 0.4);
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}

.glow-text {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
    font-family: 'Bangers', cursive;
    letter-spacing: 3px;
}

.tagline {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.3rem;
    max-width: 650px;
    margin: 25px auto;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.section-header h2, .section-title {
    color: var(--text-primary);
    font-family: 'Bangers', cursive;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.battle-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.battle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s;
}

.battle-card:hover::before {
    left: 100%;
}

.battle-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.battle-card.live {
    border-color: var(--secondary);
    animation: fire-border 1s infinite alternate;
}

@keyframes fire-border {
    0% { 
        border-color: var(--secondary);
        box-shadow: 0 0 20px var(--secondary), 0 0 40px rgba(255, 51, 102, 0.3);
    }
    50% { 
        border-color: var(--accent);
        box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(255, 204, 0, 0.3);
    }
    100% { 
        border-color: #ff6600;
        box-shadow: 0 0 25px #ff6600, 0 0 50px rgba(255, 102, 0, 0.3);
    }
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--secondary), #ff6600);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fire-pulse 0.5s infinite alternate;
    box-shadow: 0 0 20px var(--secondary);
}

@keyframes fire-pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--secondary); }
    100% { transform: scale(1.1); box-shadow: 0 0 30px var(--accent); }
}

.battle-gifs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.battle-gif {
    flex: 1;
    text-align: center;
}

.battle-gif img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.battle-gif img:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.05);
}

.battle-gif.winner img {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(255, 204, 0, 0.5);
    animation: winner-glow 1s infinite alternate;
}

@keyframes winner-glow {
    0% { box-shadow: 0 0 20px var(--accent); }
    100% { box-shadow: 0 0 50px var(--accent), 0 0 100px rgba(255, 204, 0, 0.5); }
}

.vs-badge {
    background: linear-gradient(135deg, var(--secondary), var(--neon-pink));
    color: white;
    font-family: 'Bangers', cursive;
    font-weight: 900;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 1.1rem;
    animation: vs-pulse 1s infinite alternate;
    box-shadow: 0 0 20px var(--secondary);
}

@keyframes vs-pulse {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.15) rotate(5deg); }
}

.vote-count {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
    text-shadow: 0 0 10px var(--primary);
}

.creator {
    display: block;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-top: 4px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.winner-banner {
    background: linear-gradient(135deg, var(--accent), #ff6600, var(--secondary));
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    color: var(--bg-dark);
    text-align: center;
    padding: 10px;
    font-family: 'Bangers', cursive;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: -20px -20px 15px;
    text-transform: uppercase;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.winner-banner.draw {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.winner-gif img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.waiting-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent), #ff9900);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: bounce 1s infinite;
}

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

.single-gif {
    text-align: center;
}

.single-gif img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    color: var(--neon-purple);
    text-shadow: 0 0 20px var(--neon-purple);
    animation: ghost-float 3s ease-in-out infinite;
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.leaderboard {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 0, 0.2);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(255, 204, 0, 0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item .rank {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    width: 50px;
    text-shadow: 0 0 10px var(--accent);
}

.leaderboard-item .username {
    flex: 1;
    font-weight: 600;
    color: var(--neon-cyan);
}

.leaderboard-item .stats {
    display: flex;
    gap: 15px;
}

.leaderboard-item .wins {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.leaderboard-item .losses {
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.feature-card i {
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h4 {
    font-family: 'Bangers', cursive;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
    position: relative;
    z-index: 10;
}

.auth-card h2 {
    font-family: 'Bangers', cursive;
    letter-spacing: 3px;
}

.form-control {
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    z-index: 5;
}

.form-control:focus {
    background: rgba(10, 10, 15, 0.9);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.builder-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid rgba(157, 0, 255, 0.2);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.builder-card h3 {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary) !important;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-tabs .nav-link.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.preset-option {
    position: relative;
}

.preset-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

.preset-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.preset-option label strong {
    margin-top: 10px;
    color: var(--text-primary);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.preset-option label small {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 5px;
}

.preset-option label i {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    font-size: 2rem;
}

.preset-option input:checked + label {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.form-control-color {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
}

.gif-arsenal {
    max-height: 500px;
    overflow-y: auto;
}

.arsenal-item {
    background: rgba(10, 10, 15, 0.8);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.arsenal-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.arsenal-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.arsenal-info {
    margin-top: 10px;
}

.arsenal-info strong {
    display: block;
    color: var(--text-primary);
}

.arsenal-info small {
    color: var(--text-secondary);
}

.battle-arena {
    padding: 20px 0;
}

.timer {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 20px var(--accent);
    animation: timer-pulse 1s infinite;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.battle-ended {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.battle-waiting {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.combatant {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s;
}

.combatant:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.combatant.winner {
    border-color: var(--accent);
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.4);
    animation: winner-glow 1s infinite alternate;
}

.crown {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent);
    animation: crown-bounce 1s infinite;
}

@keyframes crown-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
    50% { transform: translateX(-50%) translateY(-10px) rotate(5deg); }
}

.combat-gif {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.combatant-info h4 {
    font-family: 'Bangers', cursive;
    color: var(--text-primary);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.combatant-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.combatant-info a {
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.vote-display {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
    text-shadow: 0 0 20px var(--primary);
}

.virality-score {
    color: var(--accent);
    font-size: 1rem;
    text-shadow: 0 0 5px var(--accent);
}

.vote-btn {
    margin-top: 15px;
    font-size: 1.2rem;
}

.voted-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    border: 2px solid var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.vs-emblem {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), var(--neon-pink), #ff6600);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite, vs-spin 4s linear infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 0 40px var(--secondary);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

@keyframes vs-spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.share-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid rgba(29, 161, 242, 0.3);
}

.share-section h4 {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
}

.share-buttons {
    margin-top: 15px;
}

.btn-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-twitter:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(29, 161, 242, 0.5);
    color: white;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
}

.stat-value {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 10px 0;
    text-shadow: 0 0 20px currentColor;
}

.stat-label {
    color: var(--neon-cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.gif-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.gif-card:hover {
    border-color: var(--neon-pink);
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.gif-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s;
}

.gif-card:hover img {
    transform: scale(1.1);
}

.gif-info {
    padding: 15px;
}

.gif-info h5 {
    font-family: 'Bangers', cursive;
    color: var(--text-primary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1px;
}

.gif-stats {
    display: flex;
    gap: 15px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

.gif-stats i {
    margin-right: 4px;
}

.table-dark {
    background: var(--bg-card);
    --bs-table-bg: var(--bg-card);
    --bs-table-striped-bg: var(--bg-card-hover);
    --bs-table-hover-bg: var(--bg-card-hover);
}

.table-dark th {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--neon-cyan);
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.05);
}

.table-dark a {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.profile-header {
    padding: 40px 0;
}

.profile-header h1 {
    font-family: 'Bangers', cursive;
    letter-spacing: 3px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 136, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: avatar-pulse 3s ease-in-out infinite;
}

.profile-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: avatar-pulse 3s ease-in-out infinite;
}

.avatar-upload-form {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.avatar-edit-btn {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-dark);
    font-size: 14px;
    border: 2px solid var(--bg-dark);
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary);
}

@keyframes avatar-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.5); }
}

.footer {
    background: rgba(10, 10, 15, 0.98);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--neon-pink), var(--primary), var(--neon-cyan)) 1;
    margin-top: auto;
    position: relative;
    z-index: 100;
}

.footer .tagline {
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent);
}

.alert {
    border: none;
    border-radius: 12px;
    position: relative;
    z-index: 100;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.15);
    color: var(--secondary);
    border: 2px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}

.waiting-message {
    color: var(--accent);
    padding: 20px;
}

.waiting-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .gif-tile {
        width: 120px;
        height: 120px;
        opacity: 0.7;
    }
    
    .vs-emblem {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .combatant {
        margin-bottom: 20px;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tagline {
        font-size: 1.3rem;
    }
}


.version-badge {
    font-size: 0.7rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    font-family: monospace;
}

.whitepaper-section {
    margin-bottom: 40px;
}

.whitepaper-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.whitepaper-card i.fa-file-alt {
    color: rgba(255, 255, 255, 0.7);
}

.whitepaper-card h3 {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
    color: var(--text);
}

.whitepaper-card p {
    color: var(--text-muted);
}

.btn-whitepaper {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-whitepaper:hover {
    background: #f0f0f0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}
