* {
    font-family: 'Press Start 2P', monospace;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: background 1s ease-in-out;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.game-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.game-card.active {
    transform: scale(1);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.game-cover-container {
    width: 320px;
    height: 240px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-cover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: coverShine 4s ease-in-out infinite;
}

/* Game cover image */
#game-cover {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.game-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: underlineExpand 0.6s ease-out;
}

.game-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.play-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-transform: uppercase;
    font-family: 'Press Start 2P', monospace;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: buttonPulse 2s ease-in-out infinite;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    cursor: pointer;
    z-index: 3;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    user-select: none;
    animation: arrowFloat 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.2);

}

.nav-arrow.left {
    left: 2rem;
    animation-delay: -1.5s;
}

.nav-arrow.right {
    right: 2rem;
}

.game-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.indicator-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px currentColor;
}

.indicator-dot.active::after {
    border-color: rgba(255, 255, 255, 0.5);
    animation: indicatorPulse 2s ease-in-out infinite;
}


/* Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes coverShine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

@keyframes titleGlow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    }

    to {
        text-shadow:
            3px 3px 6px rgba(0, 0, 0, 0.6),
            0 0 30px currentColor,
            0 0 60px currentColor;
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

@keyframes arrowFloat {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(10px);
    }
}

@keyframes indicatorPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Game-specific themes */
.firered {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff4757, #d63031);
}

.heartgold {
    background: linear-gradient(135deg, #ffd700, #ffb347, #ff6347, #fab1a0);
}

.emerald {
    background: linear-gradient(135deg, #00b894, #00cec9, #55a3ff, #74b9ff);
}

.platinum {
    background: linear-gradient(135deg, #74b9ff, #a29bfe, #6c5ce7, #5f3dc4);
}

.blackwhite {
    background: linear-gradient(135deg, #2d3436, #636e72, #b2bec3, #ddd);
}

.xy {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e, #6c5ce7, #a29bfe);
}

/* Responsive */
@media (max-width: 768px) {
    .game-cover-container {
        width: 280px;
        height: 200px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .nav-arrow {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .nav-arrow.left {
        left: 1rem;
    }

    .nav-arrow.right {
        right: 1rem;
    }
}