/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Header */
.main-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1;
}

.logo span {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.description-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #fff, #a8edea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    line-height: 1.2;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Games Section */
.games-section-basic {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.games-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.games-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card-basic {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 45%;
    min-width: 300px;
    flex-shrink: 0;
}

/* ПК версия: 45% ширины для игровых карточек */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 65%;
    min-width: 300px;
    flex-shrink: 0;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-card.coming-soon {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    width: 300px;
    height: 300px;
}

.game-card h3 {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 600;
}

.game-card p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    flex-grow: 1;
}

.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.game-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.6);
}

.coming-soon-badge {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
}

.cta-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cta-content h2 {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(229, 46, 113, 0.4);
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 46, 113, 0.6);
    gap: 18px;
}

.cta-button:active {
    transform: translateY(0);
}

/* Мобильная версия */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .games-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .game-card {
        width: 100%;
        max-width: 400px;
        min-width: auto;
        padding: 30px 25px;
    }
    
    .logo {
        font-size: 3.8rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .auth-section {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 15px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .game-card {
        padding: 25px 20px;
        gap: 15px;
    }
    
    .game-card h3 {
        font-size: 1.4rem;
    }
    
    .game-card p {
        font-size: 0.95rem;
    }
    
    .cta-content {
        padding: 40px 30px;
    }
    
    .content-wrapper {
        gap: 50px;
    }
    
    .main-content {
        gap: 60px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
    
    .game-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .game-card {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .cta-content {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Версия для очень узких телефонов */
@media (max-width: 360px) {
    .hero-section {
        padding: 15px 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-text {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .feature-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .game-card {
        padding: 20px 15px;
        gap: 15px;
        max-width: 320px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .game-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .game-card p {
        font-size: 0.9rem;
    }
    
    .cta-content {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .game-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        gap: 40px;
    }
    
    .main-content {
        gap: 50px;
    }
    
    .main-header {
        gap: 20px;
    }
    
    .description-section {
        gap: 30px;
    }
    
    .games-section {
        gap: 30px;
    }
}

/* Версия для сверхузких телефонов */
@media (max-width: 320px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-text {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 15px 12px;
    }
    
    .game-card {
        padding: 15px 12px;
        max-width: 280px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .game-card h3 {
        font-size: 1.2rem;
    }
    
    .cta-content {
        padding: 20px 12px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .game-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

.reward-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 198, 255, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 10000;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.reward-notification.success {
    background: rgba(76, 175, 80, 0.9);
}

.reward-notification h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.reward-notification p {
    margin: 5px 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.login-prompt {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.game-logout-btn {
    background: rgba(229, 46, 113, 0.3);
    border: 1px solid rgba(229, 46, 113, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-logout-btn:hover {
    background: rgba(229, 46, 113, 0.5);
}