@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;
}

.blog-preview-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.blog-preview-viewport {
    overflow: hidden;
}

.blog-preview-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.blog-preview-track::-webkit-scrollbar {
    display: none;
}

.blog-preview-card {
    background: #101a24;
    border: 1px solid #2a3e53;
    border-radius: 12px;
    padding: 14px;
    min-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
}

.blog-preview-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #f7fbff;
}

.blog-preview-card .blog-preview-meta {
    margin: 0 0 8px;
    color: #90a8be;
    font-size: 13px;
}

.blog-preview-card p {
    margin: 0 0 10px;
    color: #d7e5f0;
}

.blog-preview-card a {
    color: #7cecff;
}

.blog-preview-card a:hover,
.blog-preview-card a:focus {
    color: #b7f6ff;
}

.blog-nav {
    border: 1px solid #35506a;
    background: #162636;
    color: #d7e5f0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.blog-nav:not(:disabled):hover,
.blog-nav:not(:disabled):focus {
    background: #1f3449;
    color: #fff;
}

.blog-empty {
    margin: 0;
    color: #c7d2dc;
}

.blog-preview-link-wrap {
    margin-top: 14px;
    text-align: center;
}

.stats-search-form {
    margin-top: 14px;
}

.stats-label {
    display: block;
    margin-bottom: 8px;
    color: #385269;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-search-form {
    margin-top: 10px;
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf3fc 100%);
    border: 1px solid #d2e2f2;
    border-radius: 12px;
    padding: 10px 12px;
}

.stats-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}

.stats-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #aec7dc;
    border-radius: 12px;
    background: #ffffff;
    color: #1d3244;
    padding: 11px 13px;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stats-input::placeholder {
    color: #6f8599;
}

.stats-input:hover {
    border-color: #8eb2d0;
}

.stats-input:focus {
    border-color: #5c9fd2;
    box-shadow: 0 0 0 3px rgba(92, 159, 210, 0.22);
    outline: none;
    outline-offset: 0;
}

#stats-submit {
    min-height: 46px;
    border-radius: 12px;
    padding-inline: 16px;
    font-weight: 700;
}

.stats-help {
    margin-top: 6px;
    margin-bottom: 0;
    color: #415b73;
    font-size: 12px;
}

.stats-status {
    margin-top: 10px;
    background: #eef5fb;
    border: 1px solid #c7d8e8;
    border-radius: 10px;
    padding: 9px 11px;
    color: #22394d;
    line-height: 1.4;
}

.stats-status.is-info {
    background: #eef5fb;
    border-color: #c7d8e8;
    color: #22394d;
}

.stats-status.is-success {
    background: #e8f8ef;
    border-color: #99d9b2;
    color: #184c2e;
}

.stats-status.is-error {
    background: #fff0f0;
    border-color: #e4a8a8;
    color: #702222;
}

.stats-result {
    margin-top: 10px;
}

.stats-result-head h2 {
    margin: 0 0 6px;
    color: #23384a;
    font-size: 22px;
}

.stats-result-head p {
    margin: 0;
    color: #4f6377;
}

.stats-result-title h2 {
    margin: 0 0 6px;
    color: #23384a;
    font-size: 22px;
}

.stats-result-title p {
    margin: 0;
    color: #4f6377;
}

.player-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

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

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

.stats-layout-top > .stats-section {
    height: 100%;
}

.stats-layout-bottom {
    align-items: start;
}

.stats-section {
    background: #101a24;
    border: 1px solid #2a3e53;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(5, 14, 24, 0.18);
}

.stats-section-title {
    margin: 0 0 8px;
    color: #dbe9f5;
    font-size: 16px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #274056;
    padding-bottom: 6px;
}

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

.stats-general-section .stats-section-grid {
    grid-template-columns: 1fr;
}

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

@media only screen and (max-width: 1200px) {
    .stats-jobs-section .stats-section-grid,
    .stats-mcmmo-section .stats-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stats-about-inner {
    display: grid;
    grid-template-columns: minmax(104px, 140px) 1fr;
    gap: 10px;
    align-items: start;
}

.stats-body-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-avatar-mini {
    display: grid;
    gap: 6px;
}

.stats-mini-stat {
    background: #0d1822;
    border: 1px solid #294055;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-mini-label {
    color: #95abc0;
    font-size: 12px;
    line-height: 1.2;
}

.stats-mini-value {
    color: #7cecff;
    font-size: 14px;
    line-height: 1.25;
    font-family: 'Minecrafter', sans-serif;
}

.stats-body-wrap {
    background: #0b141d;
    border: 1px solid #2a3e53;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    justify-content: center;
}

.stats-player-body {
    width: 100%;
    max-width: 120px;
    height: auto;
    image-rendering: pixelated;
}

.stats-about-grid .stat-card {
    text-align: left;
}

.stats-section-grid .stat-card {
    text-align: left;
    padding: 8px 9px;
    gap: 4px;
    min-height: 64px;
    justify-content: center;
}

.stats-section-grid .stat-label {
    font-size: 12px;
    line-height: 1.2;
}

.stats-section-grid .stat-value {
    font-size: 16px;
    line-height: 1.2;
}

.stats-general-section .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}

.stats-general-section .stat-label {
    margin: 0;
    color: #a9bfd3;
}

.stats-general-section .stat-value {
    text-align: right;
    font-size: 18px;
}

.stat-card-total {
    border-color: #4f91c8;
    background: linear-gradient(180deg, #16293a 0%, #101a24 100%);
    box-shadow: inset 0 0 0 1px rgba(89, 234, 255, 0.12);
}

.stat-card-total .stat-label {
    color: #a8c3db;
}

.stat-card-total .stat-value {
    color: #7cecff;
    font-size: 19px;
}

.stat-card-balance {
    border-color: #64b8e2;
    background: linear-gradient(180deg, #133247 0%, #101a24 100%);
    box-shadow: inset 0 0 0 1px rgba(124, 236, 255, 0.16);
}

.stat-card-balance .stat-label {
    color: #b8d4e6;
}

.stat-card-balance .stat-value {
    color: #8bf0ff;
    font-size: 18px;
}

.stats-empty {
    margin: 0;
    color: #4f6377;
}

.stats-result-head {
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #f6fbff 0%, #edf4fb 100%);
    border: 1px solid #d5e3f1;
    border-radius: 12px;
    padding: 10px;
}

.stats-result-title {
    min-width: 0;
}

.stats-result-title h2 {
    margin-bottom: 6px;
    font-size: 24px;
    letter-spacing: 0.02em;
}

#stats-uuid {
    display: inline-block;
    margin: 0;
    background: #dae8f5;
    border: 1px solid #b8cfe3;
    border-radius: 999px;
    padding: 4px 12px;
    color: #2e4a61;
    font-size: 13px;
}

.stats-share-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}

.stats-about-section .stats-share-btn {
    width: 100%;
    justify-content: center;
}

.stats-body-column .stats-share-wrap {
    margin-top: 0;
}

.stats-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1f4a63;
    border: 1px solid #35709d;
    border-radius: 8px;
    color: #59eaff;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Minecraftia', 'Minecraft', monospace;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.stats-share-btn:hover {
    background: #2a5a76;
    color: #7cecff;
    border-color: #4a8ab8;
}

.stats-share-btn:focus-visible {
    outline: 2px solid #59eaff;
    outline-offset: 2px;
}

.stats-share-btn i {
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    .stats-layout-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stats-about-inner {
        grid-template-columns: 1fr;
    }

    .stats-body-wrap {
        max-width: 200px;
        margin: 0 auto;
    }

    .stats-body-column {
        align-items: center;
    }

    .stats-section-grid {
        grid-template-columns: 1fr;
    }

    .stats-share-btn {
        justify-content: center;
    }
}

@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));
    }

    .stats-search-row {
        grid-template-columns: 1fr;
    }

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

    .blog-preview-shell {
        grid-template-columns: 1fr;
    }

    .blog-preview-track {
        gap: 10px;
    }

    .blog-preview-card {
        min-width: 100%;
        flex-basis: 100%;
    }

    .blog-nav {
        width: 36px;
        height: 36px;
    }

    .blog-preview-shell .blog-nav#blog-prev {
        justify-self: start;
    }

    .blog-preview-shell .blog-nav#blog-next {
        justify-self: end;
    }

    #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;
    }
}
