* {
    box-sizing: border-box;
}

:root {
    --bg: #06111d;
    --panel: rgba(5, 18, 31, 0.94);
    --panel-soft: rgba(8, 25, 41, 0.86);
    --gold: #d3a14f;
    --gold-soft: #ffe0a1;
    --gold-dark: #8b5e26;
    --blue: #0d263e;
    --blue-2: #071827;
    --text: #fff2d8;
    --muted: #c8bda8;
    --line: rgba(218, 166, 74, 0.58);
    --green: #a6e58c;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    background: #07121f;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background: #07121f;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(5, 12, 21, 0.62), rgba(5, 12, 21, 0.96)),
        url('../img/page-bg.webp') center / cover no-repeat;
    transform: scale(1.04);
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 300px 1fr 330px;
    align-items: center;
    gap: 22px;
    min-height: 90px;
    padding: 0 42px;
    background:
        linear-gradient(180deg, rgba(9, 23, 38, 0.98), rgba(4, 13, 23, 0.98));
    border: 1px solid rgba(224, 170, 76, 0.5);
    border-left: 0;
    border-right: 0;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.brand {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    color: var(--gold-soft);
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.brand-crown {
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-soft);
    font-size: 22px;
}

.brand-name {
    font-size: 43px;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(#fff4cf, #d6a352 45%, #7e501e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.brand-tagline {
    margin-top: 4px;
    color: #fff1d7;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand::before,
.brand::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand::before { bottom: -12px; }
.brand::after { bottom: -18px; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.65vw, 34px);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.main-nav a {
    position: relative;
    color: #fff1d7;
    opacity: 0.95;
    padding: 34px 0 30px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 19px;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    background: var(--gold);
    transition: width 180ms ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions,
.hero-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 25px;
    border: 1px solid var(--line);
    color: #fff1d7;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(9, 25, 42, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 231, 166, 0.11), 0 6px 20px rgba(0, 0, 0, 0.32);
    transition: transform 160ms ease, filter 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn img {
    width: 16px;
    height: 16px;
}

.btn-gold {
    color: #241305;
    background:
        linear-gradient(180deg, rgba(255, 238, 174, 0.65), rgba(255, 238, 174, 0) 28%),
        linear-gradient(180deg, #d9a34d, #905c22);
    border-color: #f0cb7e;
    text-shadow: 0 1px rgba(255, 255, 255, 0.24);
}

.btn-blue,
.btn-login {
    background:
        linear-gradient(180deg, rgba(255, 244, 198, 0.08), rgba(255, 244, 198, 0)),
        linear-gradient(180deg, #0f2d49, #071726);
}

.header-play {
    min-width: 173px;
    font-size: 19px;
}

.btn-login {
    min-width: 122px;
}

.btn-xl {
    min-width: 205px;
    min-height: 62px;
    font-size: 27px;
}

.hero-section {
    position: relative;
    min-height: 550px;
    background: url('../img/hero-main.webp') center center / cover no-repeat;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 12, 21, 0.04), rgba(255, 247, 225, 0.52) 64%, rgba(255, 247, 225, 0.68)),
        linear-gradient(180deg, rgba(3, 10, 17, 0.04), rgba(3, 10, 17, 0.24) 78%, rgba(3, 10, 17, 0.65));
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(670px, 92vw);
    margin-left: auto;
    padding: 50px clamp(28px, 7.2vw, 120px) 0 0;
    text-align: center;
    color: #251b13;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
    color: #90601e;
    opacity: 0.78;
}

.ornament span {
    display: block;
    width: 95px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #90601e, transparent);
}

.ornament b {
    font-size: 21px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 76px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #2b221c;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.58);
}

.hero-copy h1 strong {
    font-size: 1.28em;
    font-weight: 500;
    color: #634a2f;
}

.hero-copy p {
    width: min(560px, 100%);
    margin: 18px auto 24px;
    color: #231c18;
    font-size: 20px;
    line-height: 1.36;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.75);
}

.create-account {
    display: inline-block;
    margin-top: 14px;
    color: #2a1d12;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(42, 29, 18, 0.45);
}

.feature-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1850px, calc(100% - 76px));
    margin: -1px auto 20px;
    background:
        linear-gradient(180deg, rgba(10, 31, 50, 0.98), rgba(4, 18, 30, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.feature-strip::before,
.feature-strip::after,
.panel::before,
.panel::after,
.join-card::before,
.join-card::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold);
    opacity: 0.92;
    pointer-events: none;
}

.feature-strip::before,
.panel::before,
.join-card::before {
    top: 7px;
    left: 7px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.feature-strip::after,
.panel::after,
.join-card::after {
    right: 7px;
    bottom: 7px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 126px;
    padding: 18px clamp(14px, 2.1vw, 50px);
    border-right: 1px solid rgba(218, 166, 74, 0.34);
}

.feature-card:last-child {
    border-right: 0;
}

.feature-card img {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
}

.feature-card h2 {
    margin: 0 0 8px;
    color: var(--gold-soft);
    font-size: clamp(18px, 1.55vw, 27px);
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.feature-card p {
    margin: 0;
    color: #fff0d2;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.35;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1.45fr;
    gap: 28px;
    width: min(1850px, calc(100% - 150px));
    margin: 0 auto 26px;
}

.panel,
.join-card {
    position: relative;
    background:
        radial-gradient(circle at 50% 0, rgba(25, 64, 99, 0.42), transparent 210px),
        linear-gradient(180deg, rgba(9, 30, 50, 0.95), rgba(3, 14, 24, 0.96));
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 226, 163, 0.07), 0 18px 44px rgba(0, 0, 0, 0.38);
}

.panel {
    min-height: 345px;
    padding: 20px 22px 18px;
}

.panel-title {
    margin: 0;
    color: var(--gold-soft);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.divider {
    width: 70%;
    height: 18px;
    margin: 2px auto 8px;
    background: linear-gradient(90deg, transparent, rgba(218, 166, 74, 0.55), transparent);
    mask-image: linear-gradient(180deg, transparent 0 44%, #000 45% 56%, transparent 57% 100%);
}

.news-item {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    align-items: center;
    padding: 9px 4px 11px;
    border-bottom: 1px solid rgba(218, 166, 74, 0.17);
}

.news-item img {
    width: 126px;
    height: 76px;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.35);
}

.news-text h3 {
    margin: 0 0 4px;
    color: #fff1cf;
    font-size: 17px;
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-text p {
    margin: 0;
    color: #e0d3bb;
    font-size: 14px;
    line-height: 1.25;
}

.news-text time {
    display: block;
    margin-top: 3px;
    color: #c99b54;
    font-size: 13px;
}

.btn-outline {
    min-width: 250px;
    min-height: 42px;
    margin: 16px auto 0;
    border-color: rgba(218, 166, 74, 0.62);
    background: rgba(8, 24, 39, 0.72);
    color: var(--gold-soft);
}

.status-word {
    margin: 8px 0 22px;
    color: var(--green);
    font-size: clamp(42px, 4.1vw, 62px);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 22px rgba(140, 255, 127, 0.28);
}

.status-list {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    margin: 0;
}

.status-list dt,
.status-list dd {
    min-height: 38px;
    padding: 8px 4px;
    border-top: 1px solid rgba(218, 166, 74, 0.17);
}

.status-list dt {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff1cf;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-list dt img {
    width: 20px;
    height: 20px;
}

.status-list dd {
    margin: 0;
    color: #ffe2ae;
    font-size: 17px;
    text-align: right;
}

.join-card {
    min-height: 345px;
    overflow: hidden;
}

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

.join-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(252, 229, 177, 0.06), rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.42)),
        linear-gradient(180deg, rgba(4, 13, 23, 0.04), rgba(4, 13, 23, 0.42));
}

.join-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    padding: 0 28px;
    text-align: center;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.85);
}

.join-content h2 {
    margin: 0;
    color: #fff2d0;
    font-size: clamp(38px, 4.1vw, 62px);
    font-weight: 500;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.join-content p {
    margin: 12px 0 14px;
    color: #fff1cf;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    min-height: 118px;
    padding: 18px 70px 24px;
    background: linear-gradient(180deg, rgba(8, 24, 38, 0.96), rgba(4, 13, 22, 0.98));
    border-top: 1px solid var(--line);
    color: #d7c6a7;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
}

.footer nav:last-of-type {
    justify-content: flex-end;
}

.footer-logo {
    min-width: 260px;
    color: var(--gold-soft);
    font-size: 38px;
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(#fff4cf, #d6a352 50%, #7e501e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo span {
    display: block;
    font-size: 20px;
}

.footer-logo small {
    display: block;
    margin-top: 6px;
    color: #d7c6a7;
    font-size: 12px;
    letter-spacing: 0.12em;
    background: none;
    -webkit-background-clip: initial;
}

.footer p {
    grid-column: 1 / -1;
    margin: -10px 0 0;
    color: #b9aa91;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1450px) {
    .topbar {
        grid-template-columns: 260px 1fr 260px;
        padding: 0 26px;
    }

    .brand-name {
        font-size: 36px;
    }

    .main-nav {
        gap: 16px;
        font-size: 13px;
    }

    .header-play,
    .btn-login {
        min-width: 116px;
        font-size: 15px;
    }

    .dashboard {
        width: min(1850px, calc(100% - 76px));
        gap: 22px;
    }
}

@media (max-width: 1120px) {
    .topbar {
        position: relative;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 22px;
        text-align: center;
    }

    .brand {
        margin: 0 auto 4px;
    }

    .main-nav,
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 7px 0;
    }

    .hero-section {
        min-height: 520px;
        background-position: 39% center;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(255, 247, 225, 0.38), rgba(255, 247, 225, 0.68)),
            linear-gradient(180deg, rgba(3, 10, 17, 0.05), rgba(3, 10, 17, 0.54));
    }

    .hero-copy {
        margin: 0 auto;
        padding: 54px 22px 0;
    }

    .feature-strip,
    .dashboard {
        width: min(860px, calc(100% - 32px));
        grid-template-columns: 1fr 1fr;
    }

    .join-card {
        grid-column: 1 / -1;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 24px;
    }

    .footer nav,
    .footer nav:last-of-type {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .brand-name {
        font-size: 34px;
    }

    .hero-section {
        min-height: 650px;
        background-position: 33% center;
    }

    .hero-copy h1 {
        font-size: 39px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-buttons,
    .header-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-xl {
        width: min(280px, 100%);
        min-height: 54px;
        font-size: 22px;
    }

    .feature-strip,
    .dashboard {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 108px;
        border-right: 0;
        border-bottom: 1px solid rgba(218, 166, 74, 0.34);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .panel,
    .join-card {
        min-height: auto;
    }

    .join-card {
        min-height: 350px;
    }

    .news-item {
        grid-template-columns: 104px 1fr;
        gap: 12px;
    }

    .news-item img {
        width: 104px;
        height: 74px;
    }

    .status-word {
        font-size: 43px;
    }

    .status-list {
        grid-template-columns: 1fr;
    }

    .status-list dd {
        text-align: left;
        padding-left: 38px;
        min-height: 28px;
    }
}


/* ===== Routed subpages: same MythicLand visual schema ===== */

main {
    position: relative;
    z-index: 1;
}

.sub-hero {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 13, 23, 0.52), rgba(255, 239, 199, 0.25)),
        url('../img/hero-main.webp') center 42% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.sub-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 15, 25, 0.05), rgba(6, 15, 25, 0.74)),
        radial-gradient(circle at 68% 36%, rgba(255, 228, 165, 0.34), transparent 360px);
}

.sub-hero-content {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 22px 46px;
    text-align: center;
}

.sub-kicker {
    margin: 0 0 6px;
    color: var(--gold-soft);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 14px;
}

.sub-hero h1 {
    margin: 0;
    color: #fff1cf;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow:
        0 3px 0 rgba(62, 42, 19, 0.55),
        0 12px 36px rgba(0, 0, 0, 0.75);
}

.sub-hero p:not(.sub-kicker) {
    max-width: 700px;
    margin: 18px auto 0;
    color: #f8e4bd;
    font-size: 18px;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.content-wrap {
    width: min(1320px, calc(100% - 80px));
    margin: 28px auto 34px;
}

.sub-grid {
    display: grid;
    gap: 22px;
}

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

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

.article-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    min-height: 220px;
    padding: 18px;
}

.article-card > img {
    width: 100%;
    height: 100%;
    min-height: 184px;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 12px 26px rgba(0,0,0,0.28);
}

.article-body time {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-soft);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.article-body h2,
.info-card h2,
.download-card h2,
.wide-community h2 {
    margin: 0 0 12px;
    color: var(--gold-soft);
    font-size: 25px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body p,
.info-card p,
.download-card p,
.wide-community p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.download-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.download-card {
    min-height: 250px;
    text-align: center;
    padding: 42px 36px;
}

.download-card p {
    max-width: 520px;
    margin: 0 auto 28px;
}

.download-join {
    grid-column: 1 / -1;
    min-height: 360px;
}

.download-join img {
    height: 360px;
}

.sub-feature-strip {
    margin-top: 0;
}

.info-card {
    min-height: 220px;
    padding: 34px 30px;
    text-align: center;
}

.info-card::before,
.download-card::before,
.wide-community::before,
.ranking-panel::before,
.article-card::before {
    content: '✦';
    display: block;
    margin: 0 auto 14px;
    width: fit-content;
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wide-community {
    margin-top: 22px;
    padding: 34px 42px;
    text-align: center;
}

.wide-community p {
    max-width: 850px;
    margin: 0 auto;
}

.ranking-panel {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 26px 32px 34px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.ranking-table th,
.ranking-table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(218, 166, 74, 0.18);
    text-align: left;
}

.ranking-table th {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 13px;
}

.ranking-table td {
    color: #f7ead0;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.main-nav a.active {
    color: var(--gold-soft);
}

@media (max-width: 1180px) {
    .news-grid,
    .download-layout,
    .guide-grid,
    .community-grid,
    .support-grid {
        grid-template-columns: 1fr 1fr;
    }

    .download-join {
        grid-column: 1 / -1;
    }

    .article-card {
        grid-template-columns: 180px 1fr;
    }
}

@media (max-width: 760px) {
    .content-wrap {
        width: min(100% - 28px, 1320px);
        margin-top: 18px;
    }

    .sub-hero {
        min-height: 300px;
    }

    .news-grid,
    .download-layout,
    .guide-grid,
    .community-grid,
    .support-grid,
    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card > img {
        height: 210px;
    }

    .download-join,
    .download-join img {
        min-height: 300px;
        height: 300px;
    }

    .ranking-panel {
        padding: 20px 14px;
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 720px;
    }
}
