@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Inter:wght@500;700&display=swap');

:root {
    --gold: #f7d54b;
    --gold-light: #ffed85;
    --txt: #ffffff;
    --bg-dark: rgba(0, 0, 0, 0.75);
    --border: #5d5d5d;
    --font1: 'Cinzel', serif;
    --font2: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-image: url('menu_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    font-family: var(--font2);
    overflow: hidden;
    color: white;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 4rem 6rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 100%;
}

.logo-wrapper {
    margin-bottom: 4rem;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transform: perspective(500px) rotateX(10deg);
    margin-left: -10px;
}

.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-button {
    font-family: var(--font2);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 1px;
    width: 100%;
    display: block;
    backdrop-filter: blur(5px);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.menu-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
    border-left: 4px solid var(--gold);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-button.primary {
    color: var(--gold);
    font-size: 1.8rem;
}

.menu-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-button.disabled:hover {
    padding-left: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-left-color: transparent;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 400px;
    margin-right: 2rem;
}

.info-block::before {
    display: none;
}

.info-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.info-description p {
    color: #ddd;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.highlight {
    color: #fff !important;
}

.divider {
    height: 1px;
    background: #444;
    margin: 1rem 0;
}

.footer-buttons {
    position: absolute;
    bottom: 3rem;
    right: 6rem;
    display: flex;
    gap: 1rem;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: #2a2a2a;
    color: #eee;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 3px solid #111;
    transition: all 0.2s;
}

.social-button:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
    border-bottom-color: var(--gold);
    color: #fff;
}

.social-button i {
    font-size: 1.2rem;
    color: var(--gold);
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-window {
    position: relative;
    width: 80%;
    max-width: 1200px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    text-shadow: 0 2px 5px #000;
    z-index: 110;
}

.close-button:hover {
    color: var(--gold);
}

.download-modal .close-button {
    top: 5px;
    right: 10px;
}

.screenshot-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

.screenshot-image {
    max-width: 100%;
    max-height: 70vh;
    border: 2px solid #555;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.slider-arrow {
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    padding: 10px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.slider-arrow:hover {
    color: var(--gold);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .page-container {
        padding: 2rem;
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        width: 100%;
        height: auto;
        align-items: center;
        margin-bottom: 2rem;
    }

    .logo-wrapper {
        margin-bottom: 2rem;
        text-align: center;
    }

    .logo {
        margin-left: 0;
        transform: none;
        max-width: 200px;
    }

    .navigation-menu {
        width: 100%;
        max-width: 400px;
    }

    .main-content {
        width: 100%;
        margin-right: 0;
        align-items: center;
        text-align: center;
    }

    .info-title {
        justify-content: center;
    }

    .footer-buttons {
        position: static;
        margin-top: 3rem;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 1.5rem 1rem;
    }

    .logo {
        max-width: 160px;
    }

    .menu-button {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    .menu-button.primary {
        font-size: 1.5rem;
    }

    .info-title {
        font-size: 1.1rem;
    }

    .info-description p {
        font-size: 1rem;
    }

    .footer-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .social-button {
        width: 100%;
        justify-content: center;
    }

    .modal-window {
        width: 95%;
        padding: 10px;
    }

    .screenshot-image {
        max-height: 50vh;
    }

    .slider-arrow {
        font-size: 2rem;
        padding: 5px;
    }

    body {
        background-attachment: scroll;
    }
}

@media (hover: none) {

    .menu-button:active,
    .social-button:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.2);
    }
}

.download-modal {
    background: rgba(15, 15, 15, 0.95);
    padding: 3rem;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    max-width: 800px;
    width: 90%;
    align-items: center;
}

.modal-title {
    color: var(--gold);
    font-family: var(--font2);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.platform-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
}

.platform-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid #444;
    border-radius: 15px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.platform-button i {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.platform-button span {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 213, 75, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-button:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(50, 50, 50, 0.8);
}

.platform-button:hover::before {
    opacity: 1;
}

.platform-button:hover i {
    transform: scale(1.1);
    color: var(--gold);
    text-shadow: 0 0 20px rgba(247, 213, 75, 0.4);
}

@media (max-width: 600px) {
    .platform-options {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .platform-button {
        width: 100%;
        height: 80px;
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 2rem;
        gap: 1.5rem;
    }

    .platform-button i {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .download-modal {
        padding: 1.5rem;
    }
}

.faq-modal {
    background: rgba(15, 15, 15, 0.95);
    padding: 3rem;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.faq-list {
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 1rem;
    text-align: left;
}

.faq-list::-webkit-scrollbar {
    width: 8px;
}

.faq-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.faq-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.faq-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.faq-modal h3 {
    color: var(--gold);
    font-family: var(--font2);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.faq-modal h3:first-child {
    margin-top: 0;
}

.faq-modal p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-modal code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
}

.faq-modal a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.faq-modal a:hover {
    border-bottom-color: var(--gold);
    text-shadow: 0 0 10px rgba(247, 213, 75, 0.4);
}

.faq-modal .close-button {
    top: 15px;
    right: 20px;
}

.credits-wrapper {
    min-height: 400px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.credits-wrapper::-webkit-scrollbar {
    display: none;
}

.contributors-names {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 50px;
}

.contributor-link {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.contributor-link:hover {
    color: var(--gold);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(247, 213, 75, 0.6);
}

.contributors-names h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: none;
    text-shadow: 0 0 10px rgba(247, 213, 75, 0.5);
}

.contributors-names p {
    font-size: 1.2rem;
    line-height: 2;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cookie-modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    bottom: 0;
    width: calc(100% - 550px);
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
}

.cookie-modal-window {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(247, 213, 75, 0.4);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1 1 auto;
    max-width: 550px;
}

.cookie-title {
    color: var(--gold);
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cookie-description {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font2);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.45rem 1.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn.accept {
    background: var(--gold);
    color: #111;
    border-left: 3px solid var(--gold-light);
}

.cookie-btn.accept:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 213, 75, 0.4);
}

.cookie-btn.decline {
    background: rgba(60, 60, 60, 0.8);
    color: #ccc;
    border-left: 3px solid transparent;
}

.cookie-btn.decline:hover {
    background: rgba(80, 80, 80, 0.9);
    color: #fff;
    transform: translateY(-2px);
    border-left-color: #888;
}

@media (max-width: 1024px) {
    .cookie-modal-overlay {
        padding: 1rem 2rem;
    }

    .cookie-modal-window {
        gap: 1.5rem;
    }

    .cookie-title {
        font-size: 1.1rem;
    }

    .cookie-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .cookie-modal-overlay {
        padding: 1rem 1.5rem;
    }

    .cookie-modal-window {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text {
        flex: 1 1 100%;
        text-align: center;
        min-width: auto;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 140px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-modal-overlay {
        padding: 0.8rem 1rem;
    }

    .cookie-title {
        font-size: 1rem;
    }

    .cookie-description {
        font-size: 0.8rem;
    }

    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        max-width: 120px;
    }
}

@media (max-width: 360px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-btn {
        max-width: 100%;
        width: 100%;
    }
}
