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

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

body {
    background: #0a0a0a;
    font-family: 'Courier New', monospace;
    color: #ff1493;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 20, 147, 0.03) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 20, 147, 0.03) 6px
        );
    pointer-events: none;
    z-index: 1000;
    animation: flicker 0.15s infinite;
}

.floating-skull {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    z-index: 998;
    animation: float-skull 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes float-skull {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(10deg); }
    50% { transform: translate(-20px, 20px) rotate(-10deg); }
    75% { transform: translate(20px, -30px) rotate(5deg); }
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 10px;
    }
}

.header {
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
    border: 5px solid #ff1493;
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 
        0 0 40px rgba(255, 20, 147, 0.8),
        inset 0 0 40px rgba(139, 0, 0, 0.5),
        0 0 80px rgba(255, 20, 147, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .header {
        padding: 25px 15px;
        border: 3px solid #ff1493;
    }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 20, 147, 0.8), inset 0 0 40px rgba(139, 0, 0, 0.5); }
    50% { box-shadow: 0 0 60px rgba(255, 20, 147, 1), inset 0 0 60px rgba(139, 0, 0, 0.7); }
}

.header::before {
    content: '🎮';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

@media (max-width: 768px) {
    .header::before {
        font-size: 120px;
    }
}

h1 {
    font-size: 64px;
    color: #ff1493;
    text-shadow: 
        0 0 10px #ff1493,
        0 0 20px #ff1493,
        0 0 30px #ff1493,
        3px 3px 0 #8b0000,
        6px 6px 0 #000;
    margin-bottom: 20px;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }
}

.subtitle {
    color: #ff69b4;
    font-size: 20px;
    text-shadow: 0 0 10px #ff69b4, 2px 2px 0 #000;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

.back-button {
    background: linear-gradient(135deg, #330000, #8b0000);
    color: #ff1493;
    padding: 15px 30px;
    border: 3px solid #ff1493;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.6),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.4), transparent);
    transition: left 0.5s;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 20, 147, 1),
        inset 0 0 20px rgba(255, 20, 147, 0.3);
    color: #fff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.game-card {
    background: linear-gradient(to bottom, #1a0000, #0d0505);
    border: 3px solid #ff1493;
    padding: 0;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    display: block;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

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

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 20, 147, 0.8),
        inset 0 0 40px rgba(255, 20, 147, 0.2);
    border-color: #ff69b4;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ff1493;
    transition: all 0.3s;
    filter: brightness(0.8) contrast(1.1);
}

.game-card:hover .game-image {
    filter: brightness(1) contrast(1.2);
}

.game-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 22px;
    color: #ff1493;
    text-shadow: 0 0 10px #ff1493;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

@media (max-width: 768px) {
    .game-title {
        font-size: 18px;
    }
}

.game-status {
    font-size: 14px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
    display: inline-block;
    text-shadow: 0 0 5px #000;
}

.game-status.bad {
    background: #ff0000;
}

.game-status.medium {
    background: #ffff00;
    color: #000;
}

.game-status.good {
    background: #00ff00;
    color: #000;
}

.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff1493;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #8b0000;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    10% { clip: rect(97px, 9999px, 99px, 0); }
    20% { clip: rect(85px, 9999px, 24px, 0); }
    30% { clip: rect(46px, 9999px, 87px, 0); }
    40% { clip: rect(12px, 9999px, 59px, 0); }
    50% { clip: rect(69px, 9999px, 71px, 0); }
    60% { clip: rect(30px, 9999px, 8px, 0); }
    70% { clip: rect(90px, 9999px, 42px, 0); }
    80% { clip: rect(55px, 9999px, 66px, 0); }
    90% { clip: rect(18px, 9999px, 93px, 0); }
    100% { clip: rect(73px, 9999px, 14px, 0); }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 997;
}

.footer {
    text-align: center;
    color: #ff1493;
    font-size: 16px;
    margin-top: 60px;
    padding: 30px;
    border-top: 2px solid #ff1493;
    text-shadow: 0 0 10px #ff1493;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .footer {
        font-size: 14px;
        padding: 20px;
    }
}