@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

#videojuegos {
    min-height: 100vh;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    scroll-margin-top: 80px;
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 204, 0, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 0, 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

#ghostCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    image-rendering: pixelated;
}

.arcade-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.arcade-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #ffcc00;
    letter-spacing: 2px;
}

.arcade-content h1 .highlight {
    color: #ffcc00;
    text-shadow: 0 0 30px #ffcc00;
}

.sub {
    font-size: 0.85rem;
    color: #ffcc00;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.card {
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #ffcc00;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.15);
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.players {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 30px;
    background: rgba(255, 204, 0, 0.06);
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255, 204, 0, 0.15);
    font-size: 0.75rem;
    color: #ffcc00;
}

.dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Botón */
.btn-arcade {
    display: inline-block;
    background: #54ff5d;
    color: #0a0a0a;
    padding: 14px 40px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 0 30px rgba(84, 255, 93, 0.35);
    transition: 0.2s ease;
}

.btn-arcade:hover {
    transform: scale(1.05);
    background: #a9ffc3;
    box-shadow: 0 0 45px rgba(84, 255, 93, 0.5);
}

/* Cursor Pacman */
.arcade-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.arcade-cursor.active {
    opacity: 1;
}

.arcade-cursor svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    .arcade-content h1 {
        font-size: 1.8rem;
    }
    .sub {
        font-size: 0.7rem;
    }
    .btn-arcade {
        font-size: 0.75rem;
        padding: 12px 30px;
    }
    .arcade-cursor {
        width: 50px;
        height: 50px;
    }
}