/*HEADER*/
header {
    width: 100%;
    padding: 10px 10px 80px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00000080;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    box-sizing: border-box;
    pointer-events: none;
}

:root {
    --sand-100: #f7e7c8;
    --sand-200: #f1d7a8;
    --sand-300: #e3c18c;
    --sand-400: #c89a62;
    --sand-500: #b27c4b;
    --sand-600: #8a5a37;
    --sand-700: #5a3a2a;
    --sand-800: #2b1c16;
    --sand-glow: rgba(255, 214, 160, 0.35);
    --sand-card: rgba(33, 23, 18, 0.78);
    --sand-card-soft: rgba(49, 34, 26, 0.78);
    --sand-border: rgba(227, 193, 140, 0.35);
}

.header_img {
    width: 90px;
    height: auto;
}

.header_logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav_bar ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav_bar a {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #ffffff;
    pointer-events: auto;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}
.burger-button {
    pointer-events: auto;
}

.header-social img {
    height: 24px;
    width: auto;
    display: block;
}

.logo_font_1 {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.logo_font_2 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #ffffff;
    padding: 0;
    margin: 0;
}

/*FIRST BLOCK*/
.sss_top {
    height: 1300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.sss_logo {
    width: 600px;
    height: auto;
    margin-bottom: 60px;
}

.sss_btn {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 600;
    width: 260px;
    padding: 18px 0;
    margin-bottom: 20px;

    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 8px 24px rgba(43, 28, 22, 0.45);
}

.download_btn {
    border: 2px solid var(--sand-300);
    background: linear-gradient(135deg, rgba(43, 28, 22, 0.9), rgba(73, 49, 34, 0.9));
    color: var(--sand-100);
}

.download_btn:hover {
    background: linear-gradient(135deg, #e6c48f, #c78e57);
    transform: scale(1.05);
    color: #24170f;
}

.support_btn {
    border: 2px solid var(--sand-400);
    background: linear-gradient(135deg, rgba(58, 38, 28, 0.95), rgba(102, 70, 48, 0.95));
    color: var(--sand-100);
}

.support_btn:hover {
    background: linear-gradient(135deg, #f1d7a8, #d9a569);
    color: #24170f;
    transform: scale(1.05);
}

/*NAME AND PROGRESS*/
.dev_section {
    width: 100%;
    padding: 140px 0;
    background: linear-gradient(180deg, #2b1c16, #3f291e);
    display: flex;
    justify-content: center;
}

.dev_inner {
    width: 100%;
    margin: 0 150px;
    padding: 60px 60px 80px;
    background: #231812;
    border: 1px solid var(--sand-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(24, 15, 10, 0.5);
    text-align: center;
}

.game_title {
    font-family: "Montserrat", sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--sand-100);
}

.game_desc p {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #f2e3cf;
    margin: 6px 0;
    line-height: 1.6;
}

.dev_title {
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin: 55px 0 40px 0;
    color: var(--sand-100);
}

.progress_block {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-family: "Montserrat", sans-serif;
}

.progress_label {
    width: 170px;
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    color: var(--sand-100);
}

.progress_bar {
    position: relative;
    width: 50%;
    height: 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress_fill {
    height: 100%;
    background: linear-gradient(90deg, #d9b684, #b67a48);
    border-radius: inherit;
    transition: 0.6s ease;
}

.progress_value {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 14px;
    color: #f3e4d0;
}

/*SCREENSHOTS*/
.screenshots_section {
    padding: 120px 150px;
    background: linear-gradient(180deg, #3d291d, #1e1310);
    text-align: center;
}

.screenshots_title {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--sand-100);
}

/* ---- NEW: gallery layout (like patron cabinet, but matching SSS design) ---- */
.screenshots_gallery {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    background: #18100c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 50px 60px;
    box-shadow: 0 25px 50px rgba(12, 8, 6, 0.45);
}

.sss-track {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    width: 100%;
    padding: 10px 0;
}

/* thumbnails keep your border look */
.sss-thumb {
    height: 340px;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 3px solid rgba(255, 255, 255, 0.18);
}

.sss-thumb:hover {
    transform: scale(1.03);
    border-color: #d9b684;
}

/* arrows fit the blue theme */
.sss-arrow {
    background: rgba(30, 20, 15, 0.9);
    border: 2px solid rgba(227, 193, 140, 0.6);
    color: var(--sand-100);
    border-radius: 10px;
    cursor: pointer;
    font-size: 34px;
    padding: 8px 14px;
    transition: 0.2s ease;
    user-select: none;
}

.sss-arrow:hover {
    background: #d9b684;
    color: #24170f;
    transform: scale(1.03);
}

.sss-arrow.disabled {
    opacity: 0.25;
    cursor: default;
    transform: none;
}

/* ---- NEW: modal viewer ---- */
#sssModal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: #0d0a08;
    z-index: 2000;
}

#sssModal img {
    max-width: 96%;
    max-height: 96%;
    border-radius: 10px;
    border: 3px solid rgba(227, 193, 140, 0.6);
    box-shadow: 0 30px 80px rgba(10, 6, 4, 0.6);
}

#sssModalClose {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 44px;
    cursor: pointer;
    color: var(--sand-100);
}

.sss-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    color: var(--sand-100);
    background: #1e140f;
    border: 2px solid rgba(227, 193, 140, 0.6);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.sss-modal-arrow:hover {
    background: #d9b684;
    color: #24170f;
}

.sss-modal-arrow.disabled {
    opacity: 0.25;
    cursor: default;
    border-color: #555;
    color: #777;
    background: rgba(20,20,20,0.6);
}

#sssModalPrev { left: 50px; }
#sssModalNext { right: 50px; }

/*SUPPORT*/
/* =======================
   SUPPORT TIERS SECTION
   ======================= */
.tiers_section {
    padding: 120px 150px;
    background: radial-gradient(circle at top, #5a3a2a, #1c120e);
    text-align: center;
}

.tiers_title {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--sand-100);
}

.tiers_row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* =======================
   TIER CAPSULE (НЕОН)
   ======================= */
.tier_capsule {
    width: 400px;
    border-radius: 22px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* =======================
   GLASS (ТВОЙ ЭФФЕКТ — НЕ МЕНЯЕМ)
   ======================= */
.tier_glass {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 22px;
    overflow: hidden;

    background: var(--sand-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid var(--sand-border);

    box-shadow:
            inset -14px -14px 7px -12px rgba(179,179,179,0.18),
            inset 18px 18px 10px -20px rgba(255,255,255,0.25),
            inset 0 -12px 20px rgba(0,0,0,0.5);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 50px 25px;
    box-sizing: border-box;
    text-align: center;
}

.tier_glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0) 5%
    );
    pointer-events: none;
}

/* =======================
   TEXT INSIDE
   ======================= */
.tier_name,
.tier_price,
.tier_desc {
    margin: 0 0 10px 0;
    color: var(--sand-100);
}

.tier_name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tier_price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #f1d7a8;
    opacity: 0.95;
}

.tier_desc {
    font-size: 16px;
    opacity: 0.75;
    margin-bottom: 30px;
}

.tier_perks {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    width: 100%;
    text-align: left;
    align-self: stretch;
}

.tier_perks li {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #f2e3cf;
    margin: 8px 0;
    line-height: 1.45;
    position: relative;
    padding-left: 18px;
}

/* маркер */
.tier_perks li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: currentColor;
    opacity: 0.7;
}


/* =======================
   BUTTON
   ======================= */
.tier_btn {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 34px;

    background: transparent;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;

    cursor: pointer;
    transition: 0.25s ease;
    margin-bottom: 20px;
    box-shadow: 0 12px 24px rgba(24, 15, 10, 0.35);
}

.tier_btn:hover {
    transform: scale(1.05);
}

/* =======================
   NEON PER TIER
   ======================= */
.tier1 .tier_capsule,
.tier1 {
    color: #ffffff;
}
.tier1 {
    box-shadow: 0 0 25px 8px rgba(132, 175, 255, 0.28);
}
.tier1:hover {
    box-shadow: 0 0 45px 15px rgba(132, 175, 255, 0.5);
}
.tier1 .tier_btn {
    border: 2px solid #84afff;
    color: #bcd4ff;
}
.tier1 .tier_glass {
    border-color: rgba(132, 175, 255, 0.55);
}

.tier2 {
    box-shadow: 0 0 25px 8px rgba(140, 109, 215, 0.28);
}
.tier2:hover {
    box-shadow: 0 0 45px 15px rgba(140, 109, 215, 0.5);
}
.tier2 .tier_btn {
    border: 2px solid #8c6dd7;
    color: #d7c9ff;
}
.tier2 .tier_glass {
    border-color: rgba(140, 109, 215, 0.55);
}

.tier3 {
    box-shadow: 0 0 25px 8px rgba(132, 255, 161, 0.28);
}
.tier3:hover {
    box-shadow: 0 0 45px 15px rgba(132, 255, 161, 0.5);
}
.tier3 .tier_btn {
    border: 2px solid #84ffa1;
    color: #c7ffd7;
}
.tier3 .tier_glass {
    border-color: rgba(132, 255, 161, 0.55);
}

.tier4 {
    box-shadow: 0 0 25px 8px rgba(255, 57, 57, 0.28);
}
.tier4:hover {
    box-shadow: 0 0 45px 15px rgba(255, 57, 57, 0.5);
}
.tier4 .tier_btn {
    border: 2px solid #ff3939;
    color: #ff9f9f;
}
.tier4 .tier_glass {
    border-color: rgba(255, 57, 57, 0.55);
}

/*DOWNLOAD*/
.download_section {
    padding: 120px 150px;
    background: linear-gradient(180deg, #2f1f18, #150e0b);
}

.download_title {
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--sand-100);
    text-align: left;
}

.download_intro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    background: #1b120d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 30px 40px;
    box-shadow: 0 24px 50px rgba(14, 9, 6, 0.5);
}

.download_cover {
    width: 400px;
    height: auto;
    border-radius: 10px;
}

.download_description {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game_title {
    font-size: 36px;
    font-weight: 500;
    color: var(--sand-100);
    margin: 15px 0;
}

.game_team {
    font-size: 20px;
    font-weight: 300;
    color: #f1d7a8;
    margin: 0;
}

.download_count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    font-size: 19px;
    font-weight: 500;
    color: #f6dfb6;
}

.download_count_icon {
    width: 20px;
    height: 20px;
    display: block;
}

.game_sub {
    font-size: 18px;
    font-weight: 300;
    color: #e6cfa9;
    margin: 0;
}

.download_platforms {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
}

.download_platform_name {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--sand-100);
    margin: 0 0 10px 0;
}

.download_links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.download_link {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #f1d7a8;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

.download_link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.download_link:hover {
    transform: translateY(-1px);
    background-color: #d9b684;
    color: #24170f;
    border-radius: 20px;
    padding: 2px 10px;
}

.download_link:hover::after {
    width: 100%;
}

.download_platform.win .download_link { color: #f1d7a8; }
.download_platform.and .download_link { color: #f1d7a8; }
.download_platform.mac .download_link { color: #f1d7a8; }
.download_platform.ios .download_link { color: #f1d7a8; }

.download_platform {
    width: 22%;
    background: #1b120d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 10, 7, 0.4);
}

.download_platform.win {
    background: linear-gradient(160deg, #2d1e16, #463022);
    border-color: rgba(132, 175, 255, 0.35);
}

.download_platform.and {
    background: linear-gradient(160deg, #281c16, #423222);
    border-color: rgba(132, 255, 161, 0.35);
}

.download_platform.mac {
    background: linear-gradient(160deg, #2a1d16, #402c20);
    border-color: rgba(140, 109, 215, 0.35);
}

.download_platform.ios {
    background: linear-gradient(160deg, #2b1a16, #46281e);
    border-color: rgba(255, 57, 57, 0.35);
}

/*FOOTER*/
footer {
    padding: 20px;
    background-color: #1f140f;
    border-top: 2px solid rgba(227, 193, 140, 0.4);
    text-align: center;
}

footer p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #f1e2cd;
    padding: 4px 0;
    margin: 0;
    line-height: 2;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    background-image: url("/sss/images/sand_back.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f7efe3;
}

@media (max-width: 2559px) {
    .sss_top {
        height: 975px;
        gap: 19px;
    }

    .sss_logo {
        width: 450px;
        margin-bottom: 45px;
    }

    .sss_btn {
        font-size: 21px;
        width: 195px;
        padding: 14px 0;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(43, 28, 22, 0.45);
    }

    .dev_section {
        padding: 105px 0;
    }

    .dev_inner {
        margin: 0 113px;
        padding: 45px 45px 60px;
        border-radius: 18px;
        box-shadow: 0 22px 45px rgba(24, 15, 10, 0.5);
    }

    .dev_section .game_title {
        font-size: 39px;
        margin-bottom: 19px;
    }

    .game_desc p {
        font-size: 14px;
        margin: 4px 0;
    }

    .dev_title {
        font-size: 26px;
        margin: 41px 0 30px 0;
    }

    .progress_block {
        margin-bottom: 21px;
        gap: 19px;
    }

    .progress_label {
        width: 128px;
        font-size: 15px;
    }

    .progress_bar {
        height: 20px;
        border-radius: 38px;
    }

    .progress_value {
        right: 9px;
        font-size: 11px;
    }

    .screenshots_section {
        padding: 90px 113px;
    }

    .screenshots_title {
        font-size: 30px;
        margin-bottom: 38px;
    }

    .screenshots_gallery {
        gap: 15px;
        border-radius: 23px;
        padding: 38px 45px;
        box-shadow: 0 19px 38px rgba(12, 8, 6, 0.45);
    }

    .sss-track {
        gap: 18px;
        padding: 8px 0;
    }

    .sss-thumb {
        height: 255px;
        border-radius: 6px;
        border-width: 2px;
    }

    .sss-arrow {
        border-radius: 8px;
        font-size: 26px;
        padding: 6px 11px;
    }

    #sssModal img {
        border-radius: 8px;
        border-width: 2px;
        box-shadow: 0 22px 60px rgba(10, 6, 4, 0.6);
    }

    #sssModalClose {
        top: 30px;
        right: 30px;
        font-size: 33px;
    }

    .sss-modal-arrow {
        font-size: 42px;
        border-radius: 8px;
        padding: 6px 12px;
    }

    #sssModalPrev { left: 38px; }
    #sssModalNext { right: 38px; }

    .tiers_section {
        padding: 90px 113px;
    }

    .tiers_title {
        font-size: 30px;
        margin-bottom: 45px;
    }

    .tiers_row {
        gap: 30px;
    }

    .tier_capsule {
        width: 300px;
        border-radius: 17px;
    }

    .tier_glass {
        border-radius: 17px;
        padding: 38px 19px;
    }

    .tier_name {
        font-size: 21px;
        margin-bottom: 9px;
    }

    .tier_price {
        font-size: 17px;
        margin-bottom: 11px;
    }

    .tier_desc {
        font-size: 12px;
        margin-bottom: 23px;
    }

    .tier_perks {
        margin: 15px 0 23px 0;
    }

    .tier_perks li {
        font-size: 11px;
        margin: 6px 0;
        padding-left: 14px;
    }

    .tier_btn {
        font-size: 14px;
        padding: 9px 26px;
        border-radius: 19px;
        margin-bottom: 15px;
        box-shadow: 0 9px 18px rgba(24, 15, 10, 0.35);
    }

    .download_section {
        padding: 90px 113px;
    }

    .download_title {
        font-size: 30px;
        margin-bottom: 38px;
    }

    .download_intro {
        gap: 30px;
        margin-bottom: 45px;
        border-radius: 23px;
        padding: 23px 30px;
        box-shadow: 0 18px 38px rgba(14, 9, 6, 0.5);
    }

    .download_cover {
        width: 300px;
        border-radius: 8px;
    }

    .download_description {
        gap: 5px;
    }

    .download_description .game_title {
        font-size: 27px;
        margin: 11px 0;
    }

    .game_team {
        font-size: 15px;
    }

    .download_count {
        font-size: 14px;
        gap: 6px;
        margin-top: 6px;
    }

    .download_count_icon {
        width: 15px;
        height: 15px;
    }

    .game_sub {
        font-size: 14px;
    }

    .download_platforms {
        gap: 30px;
    }

    .download_platform_name {
        font-size: 18px;
        margin: 0 0 8px 0;
    }

    .download_links {
        gap: 11px 18px;
    }

    .download_link {
        font-size: 14px;
    }

    .download_link:hover {
        padding: 2px 8px;
    }

    .download_platform {
        padding: 18px;
        border-radius: 19px;
        box-shadow: 0 15px 30px rgba(15, 10, 7, 0.4);
    }
}