
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
    background: #0a0e1a;
    line-height: 1.6;
}

/* Animated background */
#bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, #10131a 0%, #232a34 100%);
}

#bg-anim::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 48, 74, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(10, 25, 49, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: bgRotate 20s linear infinite;
}

#bg-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(96, 165, 250, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(96, 165, 250, 0.2), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(96, 165, 250, 0.3), transparent);
    background-size: 200px 200px, 250px 250px, 150px 150px, 180px 180px, 220px 220px, 190px 190px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 90px 180px;
    animation: particlesMove 60s linear infinite;
}

@keyframes bgRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes particlesMove {
    0% { background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 90px 180px; }
    100% { background-position: 200px 200px, 240px 260px, 330px 470px, 270px 300px, 350px 250px, 290px 380px; }
}

header {
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.95) 0%, rgba(15, 19, 32, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.1);
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 2;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(96, 165, 250, 0.3);
}

.language-switcher {
    margin-top: 1rem;
}

.language-switcher button {
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.2);
    font-size: 1.8rem;
    cursor: pointer;
    margin: 0 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(0.5);
}

.language-switcher button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(96, 165, 250, 0.15);
    filter: grayscale(0);
}

.language-switcher button.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
    filter: grayscale(0);
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.games-section {
    width: 100%;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, rgba(25, 30, 45, 0.95) 0%, rgba(20, 25, 38, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.15);
    padding: 2.5rem 2rem;
    max-width: 100%;
    z-index: 2;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.games-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(96, 165, 250, 0.4);
    letter-spacing: 0.5px;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-button {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-decoration: none;
}

.game-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-info {
    flex: 1;
    text-align: left;
}

.game-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.game-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Orbova theme - Space blue/purple */
.orbova-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    border: 2px solid rgba(147, 197, 253, 0.3);
    box-shadow: 0 4px 16px 0 rgba(30, 58, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.orbova-button .game-logo {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(147, 197, 253, 0.3);
}

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

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

.orbova-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px 0 rgba(30, 58, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(147, 197, 253, 0.5);
}

.orbova-button:hover .game-logo {
    transform: scale(1.1) rotate(5deg);
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(147, 197, 253, 0.5);
}

/* Clicker Empire theme - Gold/Imperial */
.clicker-button {
    background: linear-gradient(135deg, #b45309 0%, #dc2626 100%);
    border: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 16px 0 rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(251, 191, 36, 0.15);
}

.clicker-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    transition: left 0.5s;
}

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

.clicker-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #ef4444 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px 0 rgba(180, 83, 9, 0.6), inset 0 1px 0 rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.7);
}

.clicker-button:hover .game-logo {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(251, 191, 36, 0.35);
    border-color: rgba(251, 191, 36, 0.5);
}

.clicker-logo {
    background: linear-gradient(135deg, rgba(230, 225, 213, 0.589) 0%, rgba(197, 156, 109, 0.411) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.clicker-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Smart Run theme - Green/cyan energy */
.runner-button {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 2px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 16px 0 rgba(6, 95, 70, 0.4), inset 0 1px 0 rgba(52, 211, 153, 0.1);
}

.runner-button .game-logo {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(52, 211, 153, 0.3);
}

.runner-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.2), transparent);
    transition: left 0.5s;
}

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

.runner-button:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px 0 rgba(6, 95, 70, 0.6), inset 0 1px 0 rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.6);
}

.runner-button:hover .game-logo {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(52, 211, 153, 0.5);
}

.runner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-button:active {
    transform: translateY(-2px) scale(0.98);
}

footer {
    background: linear-gradient(0deg, rgba(20, 25, 40, 0.95) 0%, rgba(15, 19, 32, 0.98) 100%);
    backdrop-filter: blur(10px);
    color: #93c5fd;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.95rem;
    box-shadow: 0 -4px 24px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.1);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-top: auto;
    z-index: 2;
}

@media (max-width: 900px) {
    .container {
        padding: 1rem 0.5rem;
    }
    .games-section {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    main {
        padding: 2rem 0 2rem 0;
    }
    header, footer {
        border-radius: 0;
    }
    header h1 {
        font-size: 1.6rem;
    }
    .games-section h2 {
        font-size: 1.5rem;
    }
    .game-button {
        font-size: 1.05rem;
        padding: 1.2rem 1.5rem;
        gap: 1rem;
    }
    .game-logo {
        width: 60px;
        height: 60px;
    }
    .logo-icon {
        font-size: 2rem;
    }
    .game-info h3 {
        font-size: 1.2rem;
    }
    .game-info p {
        font-size: 0.85rem;
    }
    .language-switcher button {
        font-size: 1.5rem;
        padding: 0.4rem 0.6rem;
    }
}