@font-face {
    font-family: 'Silkscreen';
    src: url('/fonts/Silkscreen-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Silkscreen';
    src: url('/fonts/Silkscreen-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

#mc-world {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    image-rendering: pixelated;
}

.mc-page {
    --mc-gold: #6b3d00;
    --mc-panel: #c6c6c6;
    --mc-hi: #ffffff;
    --mc-lo: #555555;
    --mc-edge: #000000;
    --mc-slot: #8b8b8b;
    --mc-fg: #1a1a1a;
    --mc-fg2: #38383c;
    --mc-accent: #1f5d12;
    --mc-link: #0b4f8a;
    position: relative;
    isolation: isolate;
}

.dark .mc-page {
    --mc-gold: #f2c66d;
    --mc-panel: #2c2d33;
    --mc-hi: #4d4e57;
    --mc-lo: #0e0e11;
    --mc-edge: #000000;
    --mc-slot: #17181c;
    --mc-fg: #f2f2f4;
    --mc-fg2: #c3c4cd;
    --mc-accent: #7ae85f;
    --mc-link: #8fc8ff;
}

.mc-font {
    font-family: 'Silkscreen', ui-monospace, monospace;
    letter-spacing: 0.04em;
}

.mc-pix {
    image-rendering: pixelated;
}

.mc-panel {
    position: relative;
    margin: 4px;
    background: var(--mc-panel);
    color: var(--mc-fg);
    box-shadow: 0 0 0 4px var(--mc-edge), inset 4px 4px 0 var(--mc-hi), inset -4px -4px 0 var(--mc-lo);
}

.mc-text {
    color: var(--mc-fg);
}

.mc-text2 {
    color: var(--mc-fg2);
}

.mc-accent {
    color: var(--mc-accent);
}

.mc-gold {
    color: var(--mc-gold);
}

.mc-h3 {
    font-weight: 800;
    color: var(--mc-fg);
}

.mc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 4px 3px;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f2f2f4;
    background: rgba(10, 12, 20, 0.88);
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(255, 255, 255, 0.14), inset -3px -3px 0 rgba(0, 0, 0, 0.45);
}

.mc-panel--feat {
    box-shadow: 0 0 0 4px #e0a81c, 0 0 0 8px #000, inset 4px 4px 0 var(--mc-hi), inset -4px -4px 0 var(--mc-lo);
    margin: 8px;
}

.mc-panel--dark {
    --mc-gold: #f2c66d;
    --mc-panel: #2c2d33;
    --mc-hi: #4d4e57;
    --mc-lo: #0e0e11;
    --mc-slot: #17181c;
    --mc-fg: #f2f2f4;
    --mc-fg2: #c3c4cd;
    --mc-accent: #7ae85f;
    --mc-link: #8fc8ff;
}

.mc-plate {
    position: relative;
    margin: 4px;
    background: rgba(10, 12, 20, 0.8);
    color: #f2f2f4;
    box-shadow: 0 0 0 4px #000, inset 4px 4px 0 rgba(255, 255, 255, 0.14), inset -4px -4px 0 rgba(0, 0, 0, 0.45);
}

.mc-plate p {
    color: #d3d6e2;
}

.mc-title {
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 3px 0 #2a2a2e;
}

.mc-title em {
    font-style: normal;
    color: #7ae85f;
}

.mc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.1rem;
    padding: 0 1.5rem;
    margin: 3px;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
    background: #5a5a5f;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(255, 255, 255, 0.38), inset -3px -3px 0 rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transition: background-color 0.08s steps(2), transform 0.08s steps(2);
    text-align: center;
}

.mc-btn:hover {
    background: #6c6c72;
}

.mc-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(0, 0, 0, 0.42), inset -3px -3px 0 rgba(255, 255, 255, 0.2);
}

.mc-btn--green {
    background: #377a1d;
}

.mc-btn--green:hover {
    background: #418c24;
}

.mc-btn--gold {
    background: #e0a81c;
    color: #1f1400;
    text-shadow: none;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(255, 244, 190, 0.7), inset -3px -3px 0 rgba(120, 76, 0, 0.55);
}

.mc-btn--gold:hover {
    background: #f0b82a;
}

.mc-btn--ghost {
    background: rgba(0, 0, 0, 0.4);
}

.mc-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.62);
}

.mc-btn--sm {
    min-height: 2.4rem;
    padding: 0 1rem;
    font-size: 0.82rem;
}

.mc-btn--block {
    display: flex;
    width: calc(100% - 6px);
}

.mc-link {
    color: var(--mc-link);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

.mc-link:hover {
    text-decoration-style: dashed;
}

.mc-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    background: var(--mc-slot);
    box-shadow: inset 3px 3px 0 var(--mc-lo), inset -3px -3px 0 var(--mc-hi);
}

.mc-slot--sm {
    width: 3rem;
    height: 3rem;
}

.mc-slot--lg {
    width: 5rem;
    height: 5rem;
}

.mc-ico {
    display: inline-block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    image-rendering: pixelated;
}

.mc-ico--xs {
    width: 16px;
    height: 16px;
}

.mc-ico--sm {
    width: 32px;
    height: 32px;
}

.mc-ico--lg {
    width: 64px;
    height: 64px;
}

.mc-ico--xl {
    width: 64px;
    height: 64px;
}

.mc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
    background: #3a3a40;
    box-shadow: 0 0 0 2px #000, inset 2px 2px 0 rgba(255, 255, 255, 0.28), inset -2px -2px 0 rgba(0, 0, 0, 0.4);
    margin: 2px;
}

.mc-tag--java {
    background: #2f7d1f;
}

.mc-tag--bedrock {
    background: #1d5f9e;
}

.mc-tag--proxy {
    background: #6a2fa0;
}

.mc-tag--new {
    background: #b3261e;
}

.mc-tag--gold {
    background: #e0a81c;
    color: #1f1400;
}

.mc-bar {
    position: relative;
    height: 1.1rem;
    overflow: hidden;
    background: #1c1c20;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(0, 0, 0, 0.6);
    margin: 3px;
}

.mc-bar__fill {
    position: absolute;
    inset: 3px;
    transform-origin: right center;
    background-color: #8de02a;
    background-image: repeating-linear-gradient(to left, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 12px), linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0 3px, transparent 3px);
}

.mc-bar__fill--gold {
    background-color: #f2c66d;
}

.mc-bar__fill--grey {
    background-color: #7d8696;
}

.mc-bar__fill--blue {
    background-color: #4aa3e8;
}

.mc-hud {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.mc-hud__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    direction: ltr;
}

.mc-hud__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.mc-hud__icons i {
    display: block;
    width: 18px;
    height: 18px;
    background-size: 100% 100%;
    image-rendering: pixelated;
}

.mc-hud__lvl {
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #8de02a;
    text-shadow: 2px 2px 0 #000;
    text-align: center;
    margin-bottom: 0.15rem;
}

.mc-hotbar {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0;
    direction: ltr;
    background: #1a1a1d;
    padding: 3px;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 #3d3d44, inset -3px -3px 0 #08080a;
}

.mc-hotbar__slot {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b8b8b;
    box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #ffffff;
    margin: 1px;
}

.mc-hotbar__slot.is-active {
    outline: 3px solid #ffffff;
    outline-offset: -1px;
    z-index: 2;
}

.mc-hotbar__slot .mc-ico {
    width: 32px;
    height: 32px;
}

.mc-hotbar__slot::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: #100010;
    box-shadow: 0 0 0 2px #2a0a5e, inset 0 0 0 1px #190a3a;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    direction: rtl;
}

.mc-hotbar__slot:hover::after,
.mc-hotbar__slot:focus-visible::after {
    opacity: 1;
}

/* روی دستگاه لمسی tooltip با تپ از #lx-tip (landing-lx.js) می‌آید؛
   :hover شبیه‌سازی‌شده‌ی مرورگر نباید نسخه‌ی CSS را هم نشان دهد */
@media (hover: none) {
    .mc-hotbar__slot:hover::after,
    .mc-hotbar__slot:focus-visible::after {
        opacity: 0;
    }
}

.mc-card {
    transition: transform 0.12s steps(3);
}

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

.mc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.mc-list li > .mc-ico {
    margin-top: 0.3rem;
}

.mc-mark {
    display: inline-block;
    width: 1.1rem;
    height: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.55rem;
    fill: currentColor;
    shape-rendering: crispEdges;
}

.mc-mark--x {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.5rem;
}

.mc-mark--ok {
    color: #1f8a1a;
}

.dark .mc-mark--ok {
    color: #7ae85f;
}

.mc-mark--bad {
    color: #a82020;
}

.dark .mc-mark--bad {
    color: #ff6b5e;
}

.mc-range {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 1.9rem;
    background: transparent;
    cursor: pointer;
    margin: 0.4rem 0 0;
}

.mc-range::-webkit-slider-runnable-track {
    height: 1.1rem;
    background: linear-gradient(to left, #3f9a26 var(--pl-range-fill, 0%), #1c1c20 var(--pl-range-fill, 0%));
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(0, 0, 0, 0.5);
    border: 0;
    border-radius: 0;
}

.mc-range::-moz-range-track {
    height: 1.1rem;
    background: #1c1c20;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 rgba(0, 0, 0, 0.5);
    border: 0;
    border-radius: 0;
}

.mc-range::-moz-range-progress {
    height: 1.1rem;
    background: #3f9a26;
    border-radius: 0;
}

.mc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.2rem;
    height: 1.9rem;
    margin-top: -0.4rem;
    border: 0;
    border-radius: 0;
    background: #c6c6c6;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 #ffffff, inset -3px -3px 0 #555555;
}

.mc-range::-moz-range-thumb {
    width: 1.2rem;
    height: 1.9rem;
    border: 0;
    border-radius: 0;
    background: #c6c6c6;
    box-shadow: 0 0 0 3px #000, inset 3px 3px 0 #ffffff, inset -3px -3px 0 #555555;
}

.mc-range:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 6px;
}

.mc-chat {
    background: rgba(0, 0, 0, 0.55);
    font-size: 0.92rem;
    line-height: 2;
    padding: 0.2rem 0.6rem;
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
    word-break: break-word;
    margin-bottom: 3px;
}

.mc-chat b {
    color: #7ae85f;
}

.mc-chat--user b {
    color: #ffd23a;
}

.mc-faq {
    margin-top: 0.75rem;
}

.mc-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    text-align: right;
    font-weight: 800;
    line-height: 1.9;
    color: var(--mc-fg);
    cursor: pointer;
}

.mc-faq__q:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mc-faq__a {
    padding: 0 1.3rem 1.2rem;
    line-height: 2.05;
    color: var(--mc-fg2);
}

.mc-faq__sign {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    position: relative;
    background: var(--mc-slot);
    box-shadow: inset 2px 2px 0 var(--mc-lo), inset -2px -2px 0 var(--mc-hi);
}

.mc-faq__sign::before,
.mc-faq__sign::after {
    content: '';
    position: absolute;
    background: var(--mc-fg);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mc-faq__sign::before {
    width: 0.8rem;
    height: 3px;
}

.mc-faq__sign::after {
    width: 3px;
    height: 0.8rem;
    transition: transform 0.12s steps(3);
}

.mc-faq__q[aria-expanded='true'] .mc-faq__sign::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.mc-mob {
    position: absolute;
    pointer-events: none;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 2;
}

.mc-bob {
    animation: mcBob 3s steps(6) infinite;
}

@keyframes mcBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mc-blink {
    animation: mcBlink 0.9s steps(2) infinite;
}

@keyframes mcBlink {
    0% { opacity: 1; }
    100% { opacity: 0.2; }
}

.mc-page :focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.mc-th {
    font-weight: 800;
}

.mc-kbd {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 0.72rem;
    background: var(--mc-slot);
    color: var(--mc-fg);
    box-shadow: inset 2px 2px 0 var(--mc-lo), inset -2px -2px 0 var(--mc-hi);
}

@media (max-width: 640px) {
    .mc-hud__icons i {
        width: 9px;
        height: 9px;
    }

    .mc-hotbar__slot .mc-ico {
        width: 16px;
        height: 16px;
    }

    .mc-hotbar__slot::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-bob,
    .mc-blink {
        animation: none;
    }

    .mc-card,
    .mc-btn,
    .mc-frame {
        transition: none;
    }
}

.mc-seo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem 3rem;
}

.mc-seo > .mc-plate {
    flex: 1 1 28rem;
}

.mc-seo__fig {
    flex: 0 1 19rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.mc-frame {
    position: relative;
    width: 100%;
    margin: 4px;
    padding: 14px;
    background: #a0703c;
    box-shadow: 0 0 0 4px #000, inset 4px 4px 0 #c99a5c, inset -4px -4px 0 #5f3d18, 0 18px 0 -6px rgba(0, 0, 0, 0.35);
    transform: rotate(-2.5deg);
    transition: transform 0.35s steps(5);
}

.mc-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, 0.12) 22px 24px);
}

.mc-frame img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 0 0 4px #3b2511;
}

.mc-frame__count {
    position: absolute;
    bottom: 20px;
    left: 22px;
    font-family: 'Silkscreen', ui-monospace, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 3px 3px 0 #3f3f3f;
    direction: ltr;
}

.mc-seo__fig:hover .mc-frame {
    transform: rotate(0deg);
}

@media (min-width: 1024px) {
    .mc-seo__fig {
        margin: 0 0 0 1rem;
    }
}

@media (max-width: 639px) {
    .flex-wrap > .mc-btn { flex: 1 1 auto; }
}
