@import url('https://fonts.cdnfonts.com/css/minecraftia');

#mobile-nav .menu-button {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 24px;
}

/* Use a chat-like Minecraft font for smaller supporting text */
.page-body,
.page-body p,
.support-item p,
.copyright,
#foot .links a,
.btn,
.player-wrap .text p,
#copy-label {
    font-family: 'Minecraftia', 'Minecraft', monospace !important;
    letter-spacing: 0;
    line-height: 1.45;
}

#mobile-nav #mobile-links {
    display: none !important;
}

#mobile-nav #mobile-links.is-open {
    display: flex !important;
}

#copy {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

#copy:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

#head > .container {
    justify-content: center;
}

#head .logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (min-width: 769px) {
    div#head #nav .left.nav-shell {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        max-width: 980px;
        margin: 0 auto;
        gap: 8px;
    }

    .nav-group {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .nav-group-left {
        justify-content: flex-end;
    }

    .nav-group-right {
        justify-content: flex-start;
    }

    #head .logo {
        width: 250px;
        max-width: 30vw;
        height: 95px;
        flex: 0 0 auto;
    }

    #head .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

#content .post-grid.post-view {
    gap: 22px;
}

#content .post-grid.post-view.stats-features {
    gap: 22px;
}

#content .post-grid.post-view .item + .item {
    margin-top: 22px;
}

#content .post-grid.post-view + .post-grid.post-view {
    margin-top: 22px;
}

.quick-links .btn {
    min-width: 130px;
}

.vote-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.support-item {
    background: #162636;
    border: 1px solid #35506a;
    border-radius: 12px;
    padding: 16px;
    color: #d7e5f0;
    box-shadow: 0 8px 18px rgba(7, 19, 31, 0.18);
    min-width: 0;
    width: auto;
    flex: initial;
}

.support-item h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #f7fbff;
}

.support-item p {
    margin: 0;
    color: #d7e5f0;
}

.support-item a {
    color: #7cecff;
    text-decoration-color: currentColor;
    overflow-wrap: anywhere;
}

.support-item a:hover,
.support-item a:focus {
    color: #b7f6ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    background: #101a24;
    border: 1px solid #2a3e53;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.stat-value {
    color: #59eaff;
    font-size: 24px;
    line-height: 1.2;
    font-family: 'Minecrafter', sans-serif;
}

.stat-label {
    color: #c7d2dc;
    font-size: 14px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 1px;
    color: #59eaff;
    font-weight: 700;
}

@media only screen and (max-width: 1300px) {
    .nav-group {
        gap: 10px;
    }

    #nav .nav-link {
        font-size: 18px !important;
        min-width: 0;
        padding: 0 12px;
        height: 74px;
    }

    #nav .nav-link.nav-btn {
        min-width: 120px;
        height: 52px;
        padding: 0 22px;
    }
}

@media only screen and (max-width: 992px) {
    #head #nav {
        display: none !important;
    }

    #mobile-nav {
        display: block !important;
    }

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

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

@media only screen and (max-width: 768px) {
    .vote-links {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    #content .post-grid.post-view {
        gap: 14px;
    }

    #content .post-grid.post-view + .post-grid.post-view {
        margin-top: 14px;
    }

    #content .post-grid.post-view .item + .item {
        margin-top: 14px;
    }

    #head .container {
        gap: 16px;
    }
}
