@font-face {
    font-family: "Minecraft";
    src: url("../Fonts/Minecraft-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --green: #d6ad48;
    --lime: #f0d47a;
    --bg: #131519;
    --panel: rgba(20, 23, 27, 0.92);
    --line: rgba(214, 173, 72, 0.24);
    --muted: #a6adb8;
    --text: #f2f3f5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background-color: #131519;
    background-image: radial-gradient(1000px 560px at 50% -12%, rgba(22, 26, 32, 0.62) 0%, rgba(16, 18, 22, 0.75) 55%, rgba(13, 14, 17, 0.85) 100%), url('../Images/background.png');
    background-size: auto, 64px 64px;
    background-repeat: no-repeat, repeat;
    background-position: center top, top left;
    background-attachment: fixed, fixed;
}

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

.xp-wrap {
    height: 18px;
    padding: 3px 2px;
    background: #0c0f13;
    border-bottom: 2px solid #08090b;
    image-rendering: pixelated;
}

.xp-track {
    height: 10px;
    background: url('../Images/xp-empty.png') left center/auto 100% repeat-x;
    image-rendering: pixelated;
}

.xp-fill {
    height: 100%;
    width: 0;
    background: url('../Images/xp-fill.png') left center/auto 100% repeat-x;
    image-rendering: pixelated;
    transition: width 0.08s linear;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(23, 25, 29, 0.4);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    border-bottom: 1px solid rgba(38, 42, 48, 0.7);
}

.nav {
    width: min(1060px, 100%);
    min-height: 64px;
    padding: 14px 24px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "Minecraft", sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wrap {
    width: min(1050px, calc(100% - 36px));
    margin: auto;
}

.welcome {
    width: min(1050px, calc(100% - 36px));
    margin: 30px auto 8px;
    padding: 8px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome h2 {
    margin: 8px 0 6px;
    font-family: "Minecraft", monospace;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

.welcome p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.welcome-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.welcome-highlight > i {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 18px;
}

.welcome-highlight strong,
.welcome-highlight small {
    display: block;
}

.welcome-highlight strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.welcome-highlight small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.welcome-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(214, 173, 72, 0.35);
    border-radius: 5px;
    color: var(--lime);
    font-size: 13px;
    font-weight: 600;
}

.welcome-link:hover {
    background: rgba(214, 173, 72, 0.1);
}

#homeView, #pageView {
    flex: 1 0 auto;
}

.hero {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0 12px;
}

.hero-inner {
    width: min(100%, 760px);
}

h1, .section h2 {
    font-family: "Minecraft", monospace;
    letter-spacing: 0;
    word-spacing: 0.14em;
    font-weight: 700;
}

h1 {
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.25;
    margin: 0 0 10px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

h1 span {
    color: var(--lime);
    display: block;
    text-shadow: none;
}

.lead {
    max-width: 600px;
    margin: 0 auto;
    color: #a6adb8;
    font-size: 16px;
    line-height: 1.55;
}

.support-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 560px);
    height: 46px;
    margin: 45px auto 0;
    padding: 0 16px;
    border: 1px solid #33373e;
    border-radius: 6px;
    background: #0f1114;
    color: #8a919c;
    text-align: left;
    transition: border-color 0.15s;
}

.support-search:focus-within {
    border-color: var(--green);
}

.support-search span {
    font-size: 20px;
    line-height: 1;
}

.support-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f2f3f5;
    font: inherit;
    font-size: 14px;
}

.support-search input::placeholder {
    color: #5d6570;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 47px;
    padding: 0 20px;
    border-radius: 5px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 850;
    transition: transform 0.18s, background 0.18s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green);
    color: #17140a;
    border-color: #f0d47a;
    box-shadow: 0 4px 0 #94742a;
}

.btn-secondary {
    background: rgba(18, 21, 25, 0.78);
    color: #e9edf2;
}

.section {
    padding: 33px 0 92px;
}

.section-head {
    text-align: center;
    margin-bottom: 12px;
}

.kicker {
    color: #f0d47a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section h2 {
    font-size: 24px;
    margin: 5px 0;
}

.section-head p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 550px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
    gap: 12px;
}

.card {
    min-height: 184px;
    padding: 16px;
    background: rgba(13, 15, 18, 0.78);
    border: 1px solid rgba(46, 50, 58, 0.9);
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.card:hover {
    transform: translateY(-2px);
    background: rgba(8, 9, 11, 0.92);
    border-color: #d6ad48;
}

.card[hidden] {
    display: none;
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(214, 173, 72, 0.1);
    border: 1px solid rgba(214, 173, 72, 0.28);
    border-radius: 6px;
    color: #f0d47a;
    font-size: 20px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 15px;
    margin: 0 0 7px;
    font-weight: 600;
}

.card p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #a6adb8;
    margin: 0 0 16px;
}

.card .arrow {
    font-size: 13px;
    font-weight: 600;
    color: #f0d47a;
}

.search-empty {
    display: none;
    margin: 16px 0;
    text-align: center;
    color: #a6adb8;
    font-size: 14px;
}

.search-empty.show {
    display: block;
}

.quick-guide {
    width: min(780px, calc(100% - 36px));
    margin: 12px auto 72px;
    padding-top: 30px;
}

.quick-guide h2 {
    margin: 0 0 8px;
    font-family: "Minecraft", monospace;
    font-size: 21px;
    font-weight: 700;
}

.quick-guide > p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.quick-guide details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-guide details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-guide summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.quick-guide summary::-webkit-details-marker {
    display: none;
}

.quick-guide summary::after {
    content: "+";
    color: var(--lime);
    font-size: 18px;
    font-weight: 400;
}

.quick-guide details[open] summary::after {
    content: "−";
}

.quick-guide details p {
    margin: -2px 0 16px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.quick-guide details a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quick-guide code {
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(214, 173, 72, 0.1);
    color: var(--lime);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

footer {
    border-top: 1px solid rgba(38, 42, 48, 0.7);
    background: #141619;
    padding: 12px 18px;
    text-align: center;
}

.footer-title {
    margin-bottom: 5px;
    color: #8a919c;
    font-size: 12px;
    line-height: 1.2;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6f7680;
}

.footer-links a {
    font-size: 13px;
    color: #8a919c;
}

.footer-links a:hover {
    color: var(--lime);
}

.page-panel {
    display: none;
    min-height: calc(100svh - 180px);
    padding: 90px 0 110px;
}

.page-panel.show {
    display: block;
}

.page-box {
    max-width: 760px;
    margin: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 48px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page-box h1 {
    font-size: clamp(34px, 6vw, 58px);
    margin: 15px 0;
}

.page-box p {
    color: #d0d3d9;
    line-height: 1.8;
}

.back-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--lime);
    font-weight: 800;
    font-size: 13px;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 760px) {
    .nav {
        width: calc(100% - 26px);
        padding: 10px 12px;
    }
    .welcome {
        margin-top: 22px;
    }
    .welcome-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .welcome-highlight {
        align-items: flex-start;
        gap: 7px;
    }
    .welcome-highlight > i {
        font-size: 16px;
    }
    .welcome-highlight strong {
        font-size: 11px;
    }
    .welcome-highlight small {
        font-size: 10px;
    }
    .section {
        padding-bottom: 68px;
    }
}

@media (max-width: 430px) {
    .card {
        min-height: 0;
    }
    .card-icon {
        margin-bottom: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.store-page {
    max-width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.store-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 66px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(115deg, rgba(25, 28, 32, 0.97), rgba(13, 15, 18, 0.94));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.store-hero:after {
    content: "✦";
    position: absolute;
    right: 5%;
    top: 8%;
    font-size: clamp(90px, 18vw, 190px);
    line-height: 1;
    color: rgba(240, 212, 122, 0.12);
    pointer-events: none;
}

.store-hero > * {
    position: relative;
    z-index: 1;
}

.store-hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    max-width: 760px;
}

.store-hero h1 span {
    display: inline;
    color: var(--lime);
}

.store-copy {
    max-width: 600px;
    color: #d6dccd;
    line-height: 1.8;
}

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 9px 12px;
    border: 1px solid rgba(214, 173, 72, 0.28);
    border-radius: 5px;
    background: rgba(214, 173, 72, 0.1);
    color: #f0d47a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.store-status i {
    width: 7px;
    height: 7px;
    background: #d7b76a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(215, 183, 106, 0.45);
}

.store-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 0;
}

.store-category {
    position: relative;
    overflow: hidden;
    min-height: 215px;
    padding: 25px 23px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(27, 30, 34, 0.97), rgba(13, 15, 18, 0.97));
    transition: transform 0.2s, border-color 0.2s;
}

.store-category:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 173, 72, 0.6);
}

.store-category-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid rgba(214, 173, 72, 0.28);
    border-radius: 6px;
    background: rgba(214, 173, 72, 0.1);
    color: var(--lime);
    font-size: 24px;
}

.store-category h2 {
    margin: 0 0 9px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.store-category p {
    min-height: 43px;
    margin: 0;
    color: #a6adb8;
    font-size: 12px;
    line-height: 1.75;
}

.store-tag {
    display: inline-flex;
    margin-top: 19px;
    padding: 6px 9px;
    border: 1px solid rgba(214, 173, 72, 0.25);
    border-radius: 4px;
    color: #f0d47a;
    background: rgba(214, 173, 72, 0.08);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.store-next {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px dashed rgba(214, 173, 72, 0.3);
    border-radius: 7px;
    background: rgba(13, 15, 18, 0.72);
}

.store-next-icon {
    font-size: 22px;
    color: var(--lime);
}

.store-next strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.store-next p {
    margin: 0;
    color: #c4cad3;
    font-size: 12px;
    line-height: 1.75;
}

.store-page .back-link {
    margin-top: 24px;
}

.page-box:has(.store-hero) {
    max-width: 1050px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 650px) {
    .store-categories {
        grid-template-columns: 1fr;
    }
    .store-category {
        min-height: 0;
    }
    .store-category p {
        min-height: 0;
    }
    .store-hero {
        padding: 28px 22px;
    }
}