:root {
    --background: #0f1115;
    --surface: #181b21;
    --surface-light: #222630;

    --text: #f4f4f5;
    --muted: #a5a8b0;

    --accent: #78c850;
    --accent-hover: #8cdb63;

    --curseforge: #f16436;
    --curseforge-hover: #d9532b;

    --border: rgba(255, 255, 255, 0.08);

    --container: 1400px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 18px;
}
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;
    overflow-x: hidden;

    background: var(--background);
    color: var(--text);

    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

body.modal-open,
body.gallery-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(92%, var(--container));
    margin-right: auto;
    margin-left: auto;
}
.background-video {
    position: fixed;
    inset: 0;

    z-index: -2;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

.background-overlay {
    position: fixed;
    inset: 0;

    z-index: -1;

    background: rgba(15, 17, 21, 0.72);

    pointer-events: none;
}
body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            rgba(15, 17, 21, 0.55),
            rgba(15, 17, 21, 0.84)
        );

    pointer-events: none;
}
body.mod-page::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;

    background-image: var(--mod-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    pointer-events: none;
}

body.mod-page::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    background: rgba(15, 17, 21, 0.72);

    pointer-events: none;
}
.site-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    border-bottom: 1px solid var(--border);

    background: rgba(15, 17, 21, 0.9);

    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;
}

.logo {
    color: var(--text);

    font-size: 1.25rem;
    font-weight: 800;
}

.site-header nav {
    display: flex;
    align-items: center;

    gap: 24px;
}

.site-header nav a {
    color: var(--muted);

    transition: color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: var(--text);
}
.eyebrow {
    margin: 0;

    color: var(--accent);

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-intro {
    max-width: 720px;

    color: var(--muted);

    line-height: 1.7;
}
.hero {
    display: flex;
    align-items: center;

    min-height: 620px;

    background: transparent;
}

.hero > .container:not(.hero-layout) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 80px 0;

    text-align: center;
}

.hero > .container:not(.hero-layout) .hero-text {
    margin-right: auto;
    margin-left: auto;
}

.hero > .container:not(.hero-layout) .hero-buttons {
    justify-content: center;
}

.hero h1 {
    max-width: 800px;

    margin: 10px 0 20px;

    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: 1;
}

.hero-text {
    max-width: 650px;

    margin-top: 0;
    margin-bottom: 32px;

    color: var(--muted);

    font-size: 1.1rem;
}
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    width: 100%;
    padding: 80px 0;
}

.hero-left,
.hero-right {
    flex: 1;

    min-width: 0;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-icon {
    width: 220px;

    margin-bottom: 25px;
}

.hero-preview {
    width: 100%;
    max-width: 700px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.button,
.btn,
.card-linkbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: var(--radius-small);

    background: var(--accent);
    color: #111;

    font-size: 0.9rem;
    font-weight: 800;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover,
.btn:hover,
.card-linkbutton:hover {
    background: var(--accent-hover);

    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #111;

    box-shadow: 0 10px 28px rgba(120, 200, 80, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);

    box-shadow: 0 14px 34px rgba(120, 200, 80, 0.3);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: var(--surface);
    color: var(--text);

    font-size: 0.9rem;
    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.secondary-button:hover {
    border-color: rgba(120, 200, 80, 0.5);

    background: var(--surface-light);

    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}
.curseforge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid var(--curseforge);
    border-radius: var(--radius-small);

    background: var(--curseforge);
    color: #fff;

    font-size: 0.9rem;
    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.curseforge-button:hover {
    background: var(--curseforge-hover);

    transform: translateY(-2px);
}

.curseforge-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 1px solid var(--curseforge);
    border-radius: var(--radius-small);

    background: var(--curseforge);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.curseforge-icon-button img {
    width: 24px;
    height: 24px;

    object-fit: contain;
}

.curseforge-icon-button:hover {
    background: var(--curseforge-hover);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(241, 100, 54, 0.22);
}
.download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;

    margin-top: 28px;
}

.version-label {
    color: var(--muted);

    font-size: 0.9rem;
    font-weight: 700;
}

.version-download-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: 100%;
}

.version-select {
    flex: 0 0 auto;

    min-width: 175px;
    height: 44px;

    padding: 0 38px 0 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    background: rgba(20, 23, 28, 0.95);
    color: #fff;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.version-select:hover {
    border-color: var(--accent);
}

.version-select:focus {
    outline: none;

    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(120, 200, 80, 0.14);
}

.version-select option {
    background: #15181d;
    color: #fff;
}

.version-download-row .button,
.version-download-row .secondary-button,
.version-download-row .curseforge-button {
    flex: 0 0 auto;

    width: auto;
    height: 44px;
}
.download-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.76);

    backdrop-filter: blur(8px);
}

.download-modal.open {
    display: flex;
}

.download-modal-content {
    position: relative;

    width: min(100%, 540px);
    padding: 36px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: rgba(20, 23, 28, 0.98);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);
}

.download-modal-content h2 {
    margin: 8px 0 14px;
}

.download-modal-text {
    margin-bottom: 26px;

    color: var(--muted);

    line-height: 1.7;
}

.download-modal-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.download-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: #fff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.download-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.download-modal-note {
    margin: 20px 0 0;

    color: var(--muted);

    font-size: 0.85rem;
    line-height: 1.6;
}
.preview-card {
    width: 100%;
    height: fit-content;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}

.preview-header {
    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 48px;
    padding: 0 16px;

    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
}

.preview-dot.red {
    background: #ff5f57;
}

.preview-dot.yellow {
    background: #febc2e;
}

.preview-dot.green {
    background: #28c840;
}

.preview-title {
    margin-left: 8px;

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.simple-gallery {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(120px, 1fr)
        );

    gap: 10px;

    padding: 16px;
}

.simple-gallery img {
    width: 100%;

    aspect-ratio: 16 / 9;

    border: 1px solid var(--border);
    border-radius: 9px;

    object-fit: cover;
    object-position: center;

    cursor: zoom-in;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.simple-gallery img:hover {
    transform: translateY(-3px);

    border-color: var(--accent);

    opacity: 0.92;
}
.simple-gallery-modal {
    position: fixed;
    inset: 0;

    z-index: 11000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 30px;

    background: rgba(0, 0, 0, 0.92);

    backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.simple-gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.simple-gallery-modal > img {
    max-width: 92vw;
    max-height: 86vh;

    border-radius: 12px;

    object-fit: contain;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7);
}

.simple-gallery-close {
    position: absolute;
    top: 22px;
    right: 28px;

    display: grid;

    width: 44px;
    height: 44px;

    place-items: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    background: rgba(24, 27, 33, 0.85);
    color: #fff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}
.mods-section {
    padding: 90px 0;

    text-align: center;
}

.mods-section h2 {
    margin-top: 0;
    margin-bottom: 16px;

    font-size: 2.2rem;
}

.mods-section > .container > p {
    max-width: 680px;

    margin-right: auto;
    margin-left: auto;

    color: var(--muted);
}

.mod-grid,
.mods-page-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 310px)
        );

    justify-content: center;

    gap: 22px;

    width: 100%;
    margin-top: 40px;
}

.mod-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    text-align: left;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.mod-card:hover {
    transform: translateY(-5px);

    border-color: rgba(120, 200, 80, 0.5);
}

.mod-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;

    color: inherit;
}

.mod-card > img,
.mod-card-link > img {
    width: 100%;
    height: 230px;

    padding: 18px;

    background: var(--surface-light);

    object-fit: contain;
}

.mod-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px;
}

.mod-card-content h3,
.mod-card h3 {
    margin: 0 0 8px;

    font-size: 1.3rem;
}

.mod-card-content p,
.mod-card p {
    margin: 0 0 18px;

    color: var(--muted);
}

.mod-description {
    white-space: pre-line;
}

.download-button {
    margin-top: auto;
}
.features-section {
    padding: 60px 0 30px;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;

    margin: 40px 0 80px;
}

.feature-card {
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    text-align: left;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: rgba(120, 200, 80, 0.5);
}

.feature-card h3 {
    margin: 0 0 10px;

    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;

    color: var(--muted);
}
.news-section {
    padding: 90px 0;
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;

    margin-top: 48px;
}

.news-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    text-align: left;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    border-color: var(--accent);
}

.news-date {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 14px 0;
}

.news-card p {
    margin-bottom: 0;

    color: var(--muted);

    line-height: 1.7;
}
.about-section {
    padding: 90px 0;

    border-top: 1px solid var(--border);

    text-align: center;
}

.about-section h2 {
    margin-top: 0;
    margin-bottom: 16px;

    font-size: 2.2rem;
}

.about-section p {
    max-width: 680px;

    margin-right: auto;
    margin-left: auto;

    color: var(--muted);
}
.source-section {
    padding: 10px 0 100px;
}

.source-container {
    padding: 42px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(120, 200, 80, 0.12),
            transparent 34%
        ),
        rgba(24, 27, 33, 0.92);
}

.source-content {
    max-width: 720px;
}

.source-content h2 {
    margin: 8px 0 14px;

    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.source-content p {
    color: var(--muted);
}

.source-links {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 32px;
}

.source-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.source-card:hover {
    transform: translateY(-4px);

    border-color: rgba(120, 200, 80, 0.5);

    background: rgba(120, 200, 80, 0.06);
}

.source-card-icon {
    display: grid;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    place-items: center;

    border: 1px solid rgba(120, 200, 80, 0.28);
    border-radius: 10px;

    background: rgba(120, 200, 80, 0.1);
    color: var(--accent);

    font-weight: 900;
}

.source-card h3 {
    margin: 1px 25px 7px 0;
}

.source-card p {
    margin: 0;

    color: var(--muted);

    font-size: 0.84rem;
}

.source-arrow {
    position: absolute;
    top: 20px;
    right: 18px;

    color: var(--muted);

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.source-card:hover .source-arrow {
    color: var(--accent);

    transform: translateX(3px);
}
.floating-support-button {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 9000;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 52px;
    padding: 0 18px;

    border: 1px solid rgba(120, 200, 80, 0.45);
    border-radius: 999px;

    background: var(--accent);
    color: #10120f;

    font-size: 0.92rem;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(120, 200, 80, 0.16);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-support-button:hover {
    transform: translateY(-3px);

    background: var(--accent-hover);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(120, 200, 80, 0.25);
}

.floating-support-icon {
    display: grid;

    width: 25px;
    height: 25px;

    place-items: center;

    border: 2px solid rgba(16, 18, 15, 0.65);
    border-radius: 50%;

    font-size: 0.85rem;
    font-weight: 900;
}
footer {
    position: relative;

    z-index: 2;

    padding: 30px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    max-width: 620px;

    margin: 10px auto 0;
}
@media (max-width: 900px) {

    .hero-layout {
        flex-direction: column;

        gap: 45px;

        padding: 60px 0;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .source-links {
        grid-template-columns: 1fr;
    }

}
@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .site-header .container {
        min-height: 64px;
    }

    .logo {
        font-size: 1.05rem;
    }

    .site-header nav {
        gap: 14px;

        font-size: 0.86rem;
    }

    .hero {
        min-height: 520px;
    }

    .hero > .container:not(.hero-layout) {
        padding: 65px 0;
    }

    .hero-layout {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 13vw, 4rem);
    }

    .hero-icon {
        width: 180px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .version-download-row {
        flex-direction: column;
        align-items: stretch;
    }

    .version-select,
    .version-download-row .button,
    .version-download-row .secondary-button,
    .version-download-row .curseforge-button {
        width: 100%;
    }

    .version-download-row .curseforge-icon-button {
        width: 44px;
        align-self: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .simple-gallery {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        padding: 12px;
    }

    .simple-gallery-modal {
        padding: 70px 14px 30px;
    }

    .simple-gallery-close {
        top: 16px;
        right: 16px;
    }

    .source-container {
        padding: 28px 20px;
    }

    .download-modal-content {
        padding: 30px 22px 24px;
    }

    .download-modal-buttons {
        flex-direction: column;
    }

    .download-modal-buttons .button,
    .download-modal-buttons .secondary-button {
        width: 100%;
    }

    .floating-support-button {
        right: 16px;
        bottom: 16px;

        min-height: 48px;
        padding: 0 15px;

        font-size: 0.86rem;
    }

    .floating-support-icon {
        width: 23px;
        height: 23px;
    }

}
.background-video {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: center;

    z-index: -2;

    pointer-events: none;
}

.background-overlay {
    position: fixed;
    inset: 0;

    background: rgba(15, 17, 21, 0.72);

    z-index: -1;

    pointer-events: none;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 1;
}