/* MONSTER-MCPE responsive redesign layer. Loaded after styles.css. */
:root {
    --mm-bg: #f8faf9;
    --mm-card: #fff;
    --mm-soft: #f3f7f5;
    --mm-text: #101722;
    --mm-muted: #5d6878;
    --mm-line: #dfe8e3;
    --mm-green: #20a83a;
    --mm-green-dark: #11842a;
    --mm-green-soft: #e9f8ed;
    --mm-shadow: 0 14px 34px rgba(16, 24, 40, .08);
    --mm-radius: 8px;
}

body {
    font: 14px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--mm-text);
    background: radial-gradient(circle at 50% 0, #edf8f1 0, transparent 640px), var(--mm-bg);
    letter-spacing: 0;
}

a { color: var(--mm-text); }
a:hover, a:focus { color: var(--mm-green); }
img { height: auto; }

.wrap {
    min-width: 320px;
    overflow: hidden;
    background: transparent;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(223, 232, 227, .85);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    float: none;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    max-width: 220px;
    max-height: 56px;
    object-fit: contain;
}

.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1 1 auto;
}

.top-menu a {
    font-size: 14px;
    font-weight: 700;
}

.top-menu a.active,
.top-menu a:hover {
    color: var(--mm-green);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.search-box {
    float: none;
    width: 220px;
    margin: 0;
    position: relative;
}

.search-box input,
.search-box input:focus {
    height: 38px;
    line-height: 38px;
    padding: 0 42px 0 15px;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    box-shadow: none;
    color: var(--mm-text);
    background: #f7faf9;
}

.search-box button {
    position: absolute;
    right: 2px;
    top: 1px;
    width: 36px;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #7d8996 !important;
}

.btn-menu,
button.btn-menu:not(.color-btn):not([class*=fr]) {
    display: none;
    min-height: 38px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #13202b;
    color: #fff;
    box-shadow: none;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

.home-hero {
    padding: 38px 0 34px;
    border-bottom: 1px solid var(--mm-line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 590px);
    align-items: center;
    gap: 58px;
}

.hero-copy h1 {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 480px;
    margin: 0 0 28px;
    color: #425064;
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.button,
.pagi-load a,
.up-second li a,
.usp-edit a,
.qq-upload-button,
button:not(.color-btn):not([class*=fr]),
html input[type="button"],
input[type="reset"],
input[type="submit"],
.meta-fav a,
.usp-btn a {
    min-height: 42px;
    height: auto;
    line-height: 42px;
    padding: 0 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, #27b947, var(--mm-green));
    color: #fff;
    font-weight: 700;
}

.hero-primary {
    min-height: 48px;
    line-height: 48px;
    box-shadow: 0 12px 24px rgba(32, 168, 58, .24);
}

.hero-secondary {
    min-height: 48px;
    line-height: 48px;
    color: var(--mm-text);
    border: 1px solid var(--mm-line);
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .06);
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 24px;
    color: #425064;
    font-size: 14px;
    font-weight: 700;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badges .fa {
    color: var(--mm-green);
    font-size: 17px;
}

.hero-media {
    min-height: 350px;
    border-radius: var(--mm-radius);
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08)),
        url(../images/bg.png) center/cover no-repeat,
        linear-gradient(135deg, #7bc961 0 24%, #5fb65a 25% 34%, #b5dbff 35% 62%, #5a8738 63% 78%, #8d633c 79% 100%);
    box-shadow: var(--mm-shadow);
}

.hero-media:before {
    content: "";
    position: absolute;
    inset: auto 8% 0 6%;
    height: 46%;
    opacity: .88;
    background:
        linear-gradient(90deg, #305923 0 12%, transparent 12% 18%, #305923 18% 26%, transparent 26%),
        linear-gradient(180deg, #86d057 0 36%, #5d9f3f 37% 68%, #7c5234 69%);
    clip-path: polygon(0 35%, 13% 24%, 25% 42%, 38% 18%, 55% 36%, 68% 20%, 84% 30%, 100% 14%, 100% 100%, 0 100%);
}

.hero-media:after {
    content: "MINECRAFT PE";
    position: absolute;
    left: 34px;
    bottom: 30px;
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 5px 0 rgba(0,0,0,.35), 0 18px 30px rgba(0,0,0,.42);
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    padding: 34px 0 58px;
}

.main {
    width: auto;
    min-height: 600px;
    padding: 0;
}

.side {
    display: grid;
    align-content: start;
    gap: 24px;
    width: auto;
    background: transparent;
    box-shadow: none;
}

.pages,
.full-in,
.full-comms,
.site-desc,
.side-box,
.s2-in,
.s-in,
.category-card,
.why-card {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}

.pages,
.full-in,
.full-comms,
.site-desc {
    padding: 22px;
}

.speedbar-box {
    margin-bottom: 22px;
    color: var(--mm-muted);
}

.sect {
    margin-bottom: 34px;
}

.sect-t {
    min-height: 42px;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.sect-t > *:first-child,
.sect-t h2,
.why-section h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.sect-t h2 .fa {
    color: #ff5d22;
    margin-right: 8px;
}

.sect-t a {
    padding: 0;
    line-height: 1.2;
    border-radius: 0;
    background: transparent;
    color: var(--mm-text);
    text-transform: none;
    font-size: 14px;
    font-weight: 700;
}

.floats {
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.content-grid:after,
.floats:after {
    display: none;
}

.short,
.short2 {
    width: auto;
    float: none;
    padding: 0;
}

.s2-in,
.s-in {
    height: 100%;
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.s2-img,
.s-img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px 8px 0 0;
    background: #dce9e1;
}

.s-img {
    padding-top: 55%;
    position: relative;
}

.s-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.s2-img img,
.img-resp-h img {
    object-fit: cover;
}

.s2-title,
.s-title {
    display: block;
    margin: 15px 15px 8px;
    color: var(--mm-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    white-space: normal;
}

.s2-desc,
.s-desc {
    height: auto;
    min-height: 58px;
    margin: 0 15px 16px;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.55;
    opacity: 1;
}

.s-rate,
.rate3-short {
    margin: 12px 15px 15px;
}

.s-rate {
    width: auto;
    height: 26px;
    overflow: hidden;
}

.s-rate .rating {
    width: auto;
    height: 26px;
    font-size: 0;
}

.s-rate .unit-rating {
    width: 126px;
    height: 26px;
    display: block;
    position: relative;
    overflow: hidden;
    background: none;
}

.s-rate .unit-rating:before,
.s-rate .unit-rating .current-rating:before {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    line-height: 26px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.s-rate .unit-rating:before {
    color: #d8dee6;
}

.s-rate .unit-rating .current-rating {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 26px;
    overflow: hidden;
    z-index: 1;
    background: none;
    text-indent: -9999px;
}

.s-rate .unit-rating .current-rating:before {
    color: #f5b900;
    text-indent: 0;
}

.s-rate .unit-rating li {
    float: none;
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.s-rate .unit-rating li a {
    position: absolute;
    top: 0;
    height: 26px;
    z-index: 5;
    padding: 0;
    background: transparent !important;
    text-indent: -9999px;
}

.s-rate .unit-rating li a:hover {
    background: transparent !important;
}

.s-rate .unit-rating a.r1-unit { left: 0; width: 25px; }
.s-rate .unit-rating a.r2-unit { left: 25px; width: 25px; }
.s-rate .unit-rating a.r3-unit { left: 50px; width: 25px; }
.s-rate .unit-rating a.r4-unit { left: 75px; width: 25px; }
.s-rate .unit-rating a.r5-unit { left: 100px; width: 26px; }

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

.related-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}

.related-img {
    display: block;
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: #dce9e1;
}

.related-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 15px;
}

.related-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.related-body p {
    margin: 0;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.55;
}

.category-panel,
.why-section {
    margin-bottom: 34px;
}

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

.category-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas: "icon title" "icon text";
    align-items: center;
    column-gap: 18px;
    padding: 18px 22px;
}

.category-card strong {
    grid-area: title;
    font-size: 18px;
    line-height: 1.2;
}

.category-card small {
    grid-area: text;
    color: var(--mm-muted);
    font-size: 13px;
}

.cube-icon {
    grid-area: icon;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    background: linear-gradient(135deg, #51bd4f 0 50%, #8b5b33 51%);
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.14);
}

.cube-icon.map { background: linear-gradient(135deg, #79c86f 0 45%, #62a4de 46% 70%, #8b5b33 71%); }
.cube-icon.shader { background: linear-gradient(135deg, #8094a7 0 45%, #3f4b57 46%); }
.cube-icon.skin { background: linear-gradient(135deg, #d6a57b 0 50%, #5b3728 51%); }
.cube-icon.seed { background: linear-gradient(135deg, #8ccf74 0 40%, #4f8a35 41%); }
.cube-icon.server { background: linear-gradient(135deg, #68b5e8 0 45%, #4caf50 46% 70%, #7b5234 71%); }

.why-section h2 {
    margin-bottom: 18px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.why-card {
    padding: 22px;
}

.why-card .fa {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--mm-green);
    border-radius: 50%;
    background: var(--mm-green-soft);
    font-size: 18px;
}

.why-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.why-card p {
    margin: 0;
    color: var(--mm-muted);
    font-size: 13px;
}

.side-box {
    overflow: hidden;
}

.side-bt {
    padding: 18px 20px 8px;
    color: var(--mm-text);
    background: transparent;
    font-size: 20px;
    font-weight: 800;
}

.side-bt .fa {
    width: auto;
    margin: 0 10px 0 0;
    color: var(--mm-green);
    font-size: 18px;
    transform: none;
}

.side-bc {
    padding: 12px 20px 20px;
}

.side-nav {
    color: var(--mm-text);
    background: rgba(255,255,255,.94);
}

.side-nav .side-bt {
    background: transparent;
}

.side-nav .side-bc {
    padding: 4px 14px 16px;
}

.side-nav a {
    padding: 11px 12px;
    border: 0;
    box-shadow: none;
    color: var(--mm-text);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.side-nav li:hover,
.side-nav a.active,
.side-nav a:hover {
    color: var(--mm-green-dark);
    background: var(--mm-green-soft);
}

.side-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas: "image title" "image date";
    gap: 4px 12px;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 0;
}

.side-img {
    grid-area: image;
    position: static;
    width: 56px;
    height: 56px;
    border-radius: 7px;
    background: #dce9e1;
}

.side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-title {
    grid-area: title;
    margin: 0;
    align-self: end;
    color: var(--mm-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.side-date {
    grid-area: date;
    color: var(--mm-muted);
    font-size: 12px;
    opacity: 1;
}

.full-in h1 {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    box-shadow: none;
    color: var(--mm-text);
    background: transparent;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
}

.full-text {
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.full-text h2,
.full-text h3,
.full-text h4,
.full-text h5 {
    margin: 22px 0 10px;
    color: var(--mm-text);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.full-text p {
    margin-bottom: 14px;
}

.full-text a {
    color: var(--mm-green-dark);
}

.image-wrap img,
.full-text img:not(.emoji) {
    border-radius: var(--mm-radius) !important;
}

.f-dl-btm {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #bfe8c7;
    border-radius: var(--mm-radius);
    background: linear-gradient(180deg, #f2fff5, #e8f9ed);
}

.dl-capt {
    margin: 0 0 16px;
    padding: 0;
    color: var(--mm-text);
    background: transparent;
    font-size: 20px;
    font-weight: 800;
}

.f-dl-in,
.f-dl-inn {
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dl-item {
    border-radius: 6px;
    background: linear-gradient(180deg, #27b947, var(--mm-green));
    font-weight: 800;
}

.dl-item:hover {
    background: var(--mm-green-dark);
}

.navigation a,
.navigation span,
.pnext a,
.pprev a,
.pprev > span,
.pnext > span {
    border-color: var(--mm-line);
    border-radius: 6px;
    box-shadow: none;
}

.navigation span,
.pagi-nav a:hover {
    background: var(--mm-green);
}

.footer {
    padding: 0;
    color: #d8e1e6;
    line-height: 1.6;
    background: linear-gradient(135deg, #07131b, #102532);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 46px;
    padding: 34px 0 28px;
}

.footer .logo {
    margin-bottom: 12px;
}

.footer p,
.footer a {
    display: block;
    color: #c4d0d7;
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
}

.footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #b7c5cc;
    font-size: 13px;
}

.footer-bottom a {
    display: inline-block;
    margin-left: 22px;
}

.side-panel {
    background: #fff;
}

.side-panel .side-nav {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#gotop {
    border-radius: 50%;
    background: #13202b;
}

@media screen and (max-width: 1100px) {
    .top-menu {
        gap: 18px;
    }
    .content-grid,
    .why-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 950px) {
    .top-menu {
        display: none;
    }
    .btn-menu,
    button.btn-menu:not(.color-btn):not([class*=fr]) {
        display: block;
        float: none;
    }
    .hero-grid,
    .page-shell {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        gap: 28px;
    }
    .side {
        display: none;
    }
    .main {
        width: 100%;
    }
}

@media screen and (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }
    .nav {
        min-height: 64px;
    }
    .logo img {
        max-width: 180px;
    }
    .search-box {
        width: 180px;
    }
    .home-hero {
        padding: 28px 0 30px;
    }
    .hero-media {
        min-height: 250px;
    }
    .hero-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .pages,
    .full-in,
    .full-comms,
    .site-desc {
        padding: 16px;
    }
}

@media screen and (max-width: 590px) {
    .header-tools {
        gap: 8px;
    }
    .search-box {
        display: none;
    }
    .hero-copy h1 {
        font-size: 42px;
    }
    .hero-actions .button {
        width: 100%;
        text-align: center;
    }
    .content-grid,
    .why-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    .sect-t {
        align-items: flex-start;
        gap: 10px;
    }
    .sect-t > *:first-child {
        width: auto;
        margin: 0;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-bottom a {
        margin: 0 18px 0 0;
    }
}
