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


.site-logo {
    width: 70px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 32px rgba(0,245,255,0.22);
    vertical-align: middle;
    margin-right: 18px;
}
@media (max-width: 480px) {
    .site-logo { width: 45px; }
}


.loading-logo {
    width: 180px;
    max-width: 80vw;
    margin-bottom: 1.7rem;
    border-radius: 22px;
    box-shadow: 0 0 44px 4px #0ff4fb88, 0 18px 92px #7200ff44;
    animation: pulseLogo 1.6s infinite alternate;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulseLogo {
    0% { box-shadow: 0 0 44px #a600ff55, 0 6px 90px #09f5ff33; }
    100% { box-shadow: 0 0 95px #9f21ff99, 0 12px 160px #00f5ff44; }
}




.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    animation-delay: 1.2s;
}
.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    overflow: hidden;
}
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, transparent, currentColor, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.social-link:hover::before {
    opacity: 1;
}
.social-link:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
    border-color: rgba(0, 119, 181, 0.3);
}
.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    box-shadow: 0 15px 30px rgba(0, 119, 181, 0.4);
}
.github {
    background: rgba(36, 41, 47, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}
.github:hover {
    background: rgba(36, 41, 47, 0.2);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}
.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.3);
}
.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.4);
}
/* Social Tooltips */
.social-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.social-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.8);
}
.social-link:hover .social-tooltip {
    opacity: 1;
    bottom: -40px;
}
/* Footer Styles */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation-delay: 1.4s;
}

.creator-info {
    max-width: 600px;
    margin: 0 auto;
}

.creator-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.creator-name {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.3em;
}

.creator-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    font-style: italic;
}


.social-link {
    animation: social-pulse 3s ease-in-out infinite;
}
.linkedin { animation-delay: 0.2s; }
.github { animation-delay: 0.4s; }
.telegram { animation-delay: 0.6s; }
@keyframes social-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}


@media (max-width: 768px) {
    .social-links {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .creator-text {
        font-size: 1rem;
    }
    .footer {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
}
@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --neon-blue: #00f5ff;
    --neon-pink: #ff006e;
    --neon-green: #39ff14;
    --neon-purple: #bf40bf;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-glow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}


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


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}


.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.logo-container {
    position: relative;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-text {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    position: relative;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: var(--text-glow);
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}


.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--neon-blue), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}


.play-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.play-button:hover::after {
    width: 200px;
    height: 200px;
}


.neon-glow {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.holographic {
    background: linear-gradient(45deg, 
        rgba(255,0,150,0.1) 0%, 
        rgba(0,255,255,0.1) 25%, 
        rgba(255,255,0,0.1) 50%, 
        rgba(255,0,150,0.1) 75%, 
        rgba(0,255,255,0.1) 100%);
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
}

.electric {
    position: relative;
}

.electric::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.1), transparent);
    transform: translateX(-100%);
    animation: electric-sweep 3s ease-in-out infinite;
}

.rainbow {
    background: linear-gradient(45deg, 
        rgba(255,0,0,0.1), rgba(255,127,0,0.1), rgba(255,255,0,0.1), 
        rgba(0,255,0,0.1), rgba(0,0,255,0.1), rgba(75,0,130,0.1), rgba(148,0,211,0.1));
    background-size: 400% 400%;
    animation: rainbow-flow 8s ease infinite;
}

.gradient-shift {
    background: linear-gradient(-45deg, 
        rgba(238,119,82,0.1), rgba(231,60,126,0.1), 
        rgba(35,166,213,0.1), rgba(35,213,171,0.1));
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

.morphing {
    background: radial-gradient(circle at 30% 20%, rgba(120,119,198,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,119,198,0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(120,255,198,0.1) 0%, transparent 50%);
    animation: morph-colors 10s ease infinite;
}


.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    opacity: 0.1;
    animation: float-around 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -7s;
}


.sound-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    z-index: 100;
}
.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}


.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}


@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .game-card {
        padding: 1.5rem;
    }
    .logo {
        font-size: 2.5rem;
    }
    .sound-toggle {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    .game-card {
        padding: 1rem;
    }
    .game-icon {
        font-size: 3rem;
    }
    .game-title {
        font-size: 1.5rem;
    }
}
