* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(147, 112, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.game-selector {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: logoFloat 6s ease-in-out infinite;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: logoGlow 4s ease-in-out infinite;
}



@keyframes logoGlow {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}


.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #b8b8d0;
    margin-bottom: 2rem;
    font-weight: 500;
}

.gradient-text {
    background: linear-gradient(45deg, #9370db, #ffd700, #ff6b6b, #28a745, #9370db);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.decoration-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot.blue { background: #4facfe; animation-delay: 0s; }
.dot.purple { background: #9370db; animation-delay: 0.5s; }
.dot.orange { background: #feca57; animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    margin-bottom: 4rem;
}

.game-card {
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(147, 112, 219, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 112, 219, 0.1), transparent);
    transition: left 0.6s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(147, 112, 219, 0.3);
}

.game-card.ragnarok:hover {
    border-color: rgba(147, 112, 219, 0.8);
}

.game-card.perfectworld:hover,
.game-card.muonline:hover,
.game-card.coming-soon:hover {
    border-color: rgba(108, 117, 125, 0.8);
}

.game-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-status.online {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.game-status.maintenance {
    background: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.5);
    color: #6c757d;
}

.game-status.development {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.game-status.online .status-dot {
    background: #28a745;
}

.game-status.maintenance .status-dot,
.game-status.development .status-dot {
    background: currentColor;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-logo {
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(147, 112, 219, 0.5));
}

.placeholder-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 112, 219, 0.1);
    border-radius: 15px;
    color: #6c757d;
}

.game-info {
    margin-bottom: 2rem;
    flex: 1;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.game-subtitle {
    font-size: 1rem;
    color: #b8b8d0;
    margin-bottom: 1rem;
}

.game-rating {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.rating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    transition: all 0.3s ease;
}

.rating-dot.active {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.game-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9370db, #6a5acd);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3);
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(147, 112, 219, 0.4);
    color: white;
    text-decoration: none;
}

.game-button.disabled {
    background: rgba(108, 117, 125, 0.3);
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.game-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.footer {
    text-align: center;
    color: #b8b8d0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer p:first-child {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .game-selector {
        padding: 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        padding: 1.5rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        font-size: 0.7rem;
    }
}
