/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #E0E0E0;
    --accent-color: #404040;
    --background-color: #0A0A0A;
    --surface-color: #141414;
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-special: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation - Updated */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .nav-left {
        flex: 0 0 auto;
    }

    .nav-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .nav-right {
        flex: 0 0 auto;
        position: static;
        margin-right: 0;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .logo h1 {
        font-size: 1.8rem;
        color: var(--text-color);
        font-weight: 800;
        text-transform: uppercase;
        display: block;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        color: var(--text-color);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #2ecc71;
    }

    .language-selector {
        position: relative;
    }

    .language-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .language-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .language-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.5rem;
        background: var(--background-color);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        padding: 0.5rem 0;
        min-width: 150px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .language-selector:hover .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .language-option {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--text-color);
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .language-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.nav-right {
    margin-left: auto;
    padding-right: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    height: 100%;
}

.nav-links a {
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-special);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.language-selector {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.language-btn {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-special);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 1rem 0;
    }

    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-links {
        justify-content: center;
    }

    .language-selector {
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 1.5rem;
    font-family: var(--font-special);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background-color: var(--surface-color);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-special);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card[data-category] {
    display: flex;
    flex-direction: column;
}

.project-card.hidden {
    display: none !important;
}



.project-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info {
    flex: 1;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 1.5rem;
    margin-top: auto;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: var(--font-special);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.store-button i {
    margin: 0 0.5rem 0 0;
    font-size: 1.2rem;
    line-height: 0;
}

.google-play {
    background: #414141;
}

.app-store {
    background: #000000;
}

.windows {
    background: #00A4EF;
}

.steam {
    background: #171a21;
}

.buy {
    background: #2ecc71;
}

.download {
    background: var(--accent-color);
}

.learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 1.5rem;
    font-family: var(--font-special);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    border-color: var(--text-color);
}

@media (max-width: 768px) {
    .project-buttons {
        flex-direction: column;
    }
    
    .store-button {
        width: 100%;
    }
}

/* About Section */
.about {
    padding: 6rem 5%;
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
}

/* Beta Testing Section */
.beta-section {
    background-color: var(--surface-color);
    padding: 100px 20px;
    text-align: center;
    color: var(--text-color);
    background: linear-gradient(45deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95)), 
                url('/assets/images/dallcraft.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.beta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(46, 204, 113, 0.1),
        rgba(46, 204, 113, 0) 50%,
        rgba(46, 204, 113, 0.1)
    );
    pointer-events: none;
}

.beta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.beta-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2ecc71;
    margin: 20px auto 0;
}

.beta-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.beta-invitation {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #2ecc71;
    font-family: var(--font-special);
}

.beta-signup-form {
    margin-top: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.beta-email-input {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.beta-email-input:focus-within {
    border-color: rgba(46, 204, 113, 0.8);
    box-shadow: 0 4px 25px rgba(46, 204, 113, 0.15);
}

.beta-email-input input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
}

.beta-email-input input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.beta-submit {
    padding: 15px 30px;
    border: none;
    background: #2ecc71;
    color: var(--background-color);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-special);
    font-size: 0.9rem;
}

.beta-submit:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.beta-submit:active {
    transform: translateY(0);
}

.beta-contact {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.beta-contact a {
    color: #2ecc71;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.beta-contact a:hover {
    color: #fff;
    background: rgba(46, 204, 113, 0.2);
}

/* Мобильные стили для бета-секции */
@media (max-width: 768px) {
    .beta-section {
        padding: 60px 20px;
    }

    .beta-section h2 {
        font-size: 2rem;
    }

    .beta-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .beta-invitation {
        font-size: 1.2rem;
    }

    .beta-email-input {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .beta-submit {
        margin-left: 0;
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--background-color);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-logo img {
    width: 120px;
    height: auto;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%;
    height: 1px;
    background-color: var(--text-color);
    opacity: 0.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-column ul li a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--text-color);
}

.footer-column ul li a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Language Selector - Fixed alignment */
.language-selector {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
}

.language-btn {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-special);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 160px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* Update media queries for mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .language-selector {
        margin-top: 1rem;
    }
    
    .language-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
    }
    
    .language-selector:hover .language-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* Исключения для специальных ссылок */
.store-button,
.cta-button,
.social-icons a,
.nav-links a {
    padding-bottom: 0;
}

.store-button:after,
.cta-button:after,
.social-icons a:after {
    display: none;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 2rem;
}

.footer-version {
    text-align: center;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.footer-version .version {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-family: monospace;
    margin: 0;
    padding: 0;
}

/* Scroll Down Button */
.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-top: 3rem; /* Увеличил отступ сверху */
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding-top: 2px; /* Добавляем смещение стрелки внутри кнопки */
}

.scroll-down-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-down-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.scroll-down-btn:hover::before {
    transform: scale(1);
}

.scroll-arrow {
    position: relative;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: arrowFloat 2s ease-in-out infinite;
    transform: translateY(1px); /* Небольшое смещение вниз */
}

.scroll-down-btn:hover .scroll-arrow {
    opacity: 1;
    transform: translateY(2px);
}

.arrow-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawArrow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes arrowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes drawArrow {
    0% { stroke-dashoffset: 48; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 48; }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .projects-grid {
        padding: 2rem 5%;
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo img {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .footer-logo img {
        width: 100px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column h3 {
        font-size: 1rem;
    }
    
    .footer-column h3::after {
        left: 32.5%;
        width: 35%;
    }
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-links {
    font-family: var(--font-special);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cta-button, .play-button, .submit-button {
    font-family: var(--font-special);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content p {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.game-card h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.stat h3 {
    font-family: var(--font-special);
    font-weight: 700;
}

.about-text p, .game-card p {
    font-family: var(--font-body);
    color: var(--text-secondary);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease-in-out;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.cookie-icon i {
    display: inline-block;
}

.cookie-consent.show {
    visibility: visible;
    opacity: 1;
    bottom: 0;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-special);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--accent-color);
    color: var(--text-color);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.game-card {
    animation: float 6s ease-in-out infinite;
}
.game-card {
    animation: float 6s ease-in-out infinite;
}

/* Translation Info Block - Compact Design */
.translation-info {
    margin: 1.2rem auto 1.2rem auto;
    max-width: 340px;
    text-align: center;
    background: linear-gradient(120deg, #232323 85%, #2ecc71 100%);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    border: 1.5px solid transparent;
    border-image: linear-gradient(120deg, #2ecc71 10%, #404040 90%) 1;
    padding: 1.1rem 1rem 0.7rem 1rem;
    position: relative;
    overflow: hidden;
}

.translation-info-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.translation-percent-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #404040 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
    border: 2px solid #fff2;
    position: relative;
    transition: box-shadow 0.3s;
}

.translation-percent-value {
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 6px #2ecc7188;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
}

.translation-percent-label {
    font-size: 0.82rem;
    color: #fff;
    font-family: var(--font-special);
    opacity: 0.85;
    margin-top: -0.1rem;
    letter-spacing: 0.5px;
}

.translation-disclaimer-icon {
    font-size: 1.15rem;
    color: #2ecc71;
    margin-bottom: 0.1rem;
    margin-top: -0.2rem;
    filter: drop-shadow(0 1px 4px #2ecc7188);
    animation: disclaimerRobotPulse 2.5s infinite;
}

@keyframes disclaimerRobotPulse {
    0%,100% { filter: drop-shadow(0 1px 4px #2ecc7188) brightness(1); }
    50% { filter: drop-shadow(0 2px 8px #2ecc71cc) brightness(1.2); }
}

.translation-label {
    font-size: 0.92rem;
    color: #fff;
    font-family: var(--font-special);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 0 1px 4px #2ecc7133;
}

.translation-note {
    font-size: 0.89rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    box-shadow: 0 1px 4px #2ecc7111;
    margin-top: 0.1rem;
    line-height: 1.5;
}

.translation-note a {
    color: #2ecc71;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.translation-note a:hover {
    color: #27ae60;
}

@media (max-width: 600px) {
    .translation-info {
        max-width: 98vw;
        padding: 0.7rem 0.2rem 0.5rem 0.2rem;
    }
    .translation-percent-circle {
        width: 44px;
        height: 44px;
    }
    .translation-percent-value {
        font-size: 0.85rem;
    }
    .translation-percent-label {
        font-size: 0.7rem;
    }
    .translation-label {
        font-size: 0.82rem;
    }
    .translation-note {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

/* Footer disclaimer style */
.footer-disclaimer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: none;
    line-height: 1.7;
}
.footer-disclaimer a {
    color: #2ecc71;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-disclaimer a:hover {
    color: #27ae60;
}

/* Fade-in animation for first load */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.1);
}

.modal-overlay.show .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.modal-icon.error {
    background: rgba(231, 76, 60, 0.1);
}

.modal-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #2ecc71;
    animation: pulseRing 2s ease-out infinite;
}

.modal-icon.error::after {
    border-color: #e74c3c;
}

.modal-icon i {
    font-size: 2.5rem;
    color: #2ecc71;
    animation: pulseIcon 2s ease-out infinite;
}

.modal-icon.error i {
    color: #e74c3c;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.modal-email {
    text-align: center;
    color: #2ecc71;
    font-family: var(--font-special);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.modal-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-close {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: var(--font-special);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-email {
        font-size: 1rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}

/* Processing state styles */
.beta-submit {
    min-width: 140px;
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
}

.beta-submit.processing {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

.version-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    margin-top: 1rem;
    font-family: var(--font-special);
    letter-spacing: 0.5px;
}