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

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(119, 198, 255, 0.2) 0%, transparent 50%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.glitch {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: #ffffff;
    letter-spacing: 0.05em;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    color: #ff0040;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-top: 1rem;
    opacity: 0.8;
}

.voted-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.voted-status.show {
    opacity: 1;
    transform: translateY(0);
}

.voted-text {
    font-size: 1.1rem;
    color: #00ff88;
    font-weight: 600;
}

.deadline {
    font-size: 1.1rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { color: #ff0040; text-shadow: 0 0 20px rgba(255, 0, 64, 0.8); }
    100% { color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
}

.voting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3), 0 0 20px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

.game-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

.card-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.game-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.game-card p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vote-count {
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 600;
}

.vote-section {
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.vote-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #00ff88 0%, #00ccaa 100%);
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: 200px;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.game-card.voted {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.1) 100%);
}

.game-card.voted .vote-btn {
    background: linear-gradient(135deg, #ff0040 0%, #cc0033 100%);
    color: #fff;
    pointer-events: none;
}

.results-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.results-section.hidden {
    display: none;
}

.reset-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff0040 0%, #cc0033 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.card-overlay {
    display: none;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(65% 0 8% 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(13% 0 48% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(1% 0 16% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(75% 0 16% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(45% 0 51% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(59% 0 40% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-0.5deg); }
    20% { transform: skew(0.5deg); }
    30% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    50% { transform: skew(-0.5deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(-0.5deg); }
    80% { transform: skew(0.5deg); }
    90% { transform: skew(-0.5deg); }
    100% { transform: skew(0deg); }
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInOut {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    80% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.countdown-container {
    margin: 2rem 0;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 80px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.countdown-item span:first-child {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.countdown-item .label {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-expired {
    background: rgba(255, 0, 64, 0.2);
    border: 1px solid rgba(255, 0, 64, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
}

.countdown-expired p {
    font-size: 1.5rem;
    color: #ff0040;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.countdown.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .voting-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1rem;
        min-width: 60px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.8rem;
    }
    
    .countdown-item .label {
        font-size: 0.7rem;
    }
}