:root {
    --bg: #d9c58c;
    --panel: rgba(38, 31, 18, .74);
    --panel-soft: rgba(63, 48, 24, .64);
    --line: rgba(255, 232, 161, .34);
    --gold: #d99e2f;
    --gold-bright: #fff3bc;
    --text: #fff9e8;
    --muted: #e8dbc0;
    --green: #12c896;
    --red: #ff4a58;
    --blue: #5aa8ff;
}

/* Supreme-WoW patch/download/community update */
.community-panel {
    overflow: hidden;
}

.community-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.community-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(244, 205, 112, 0.34);
    background: rgba(32, 24, 12, 0.48);
    color: #fff5dc;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.community-card:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 226, 170, 0.72);
    background: rgba(45, 34, 17, 0.62);
}

.community-card strong {
    display: block;
    color: var(--gold-bright);
    font-size: 15px;
    text-transform: uppercase;
}

.community-card small {
    display: block;
    margin-top: 4px;
    color: rgba(236, 244, 255, 0.78);
    line-height: 1.35;
}

.community-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 230, 160, 0.4);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 900;
}

.fb-logo {
    background: linear-gradient(135deg, #1f6fed, #0b4fbd);
    font-family: Arial, sans-serif;
    font-size: 34px;
}

.dc-logo {
    background: linear-gradient(135deg, #5865f2, #2d36a3);
    font-size: 18px;
    letter-spacing: 0;
}

.discord-widget-wrap {
    border: 1px solid rgba(244, 205, 112, 0.28);
    background: rgba(7, 10, 8, 0.5);
    overflow: hidden;
}

.discord-widget-wrap iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 420px;
}

.download-page .download-hero {
    min-height: 520px;
    padding: 150px 0 70px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(24, 18, 8, 0.56), rgba(84, 63, 26, 0.24), rgba(24, 18, 8, 0.34)),
        linear-gradient(180deg, rgba(255, 239, 185, 0.16), rgba(12, 9, 4, 0.12)),
        url("register-bg.png") center / cover no-repeat;
}

.page-hero-inner {
    width: min(1120px, calc(100% - 56px));
    margin: 0 auto;
}

.download-hero h1 {
    max-width: 780px;
    margin: 18px 0;
    color: var(--gold-bright);
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.92;
}

.download-hero p {
    max-width: 730px;
    color: #fff7df;
    font-size: 21px;
    line-height: 1.45;
}

.download-shell {
    display: grid;
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 90px;
}

.download-panel,
.commands-panel {
    padding: 30px;
}

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

.download-feature-grid article {
    min-height: 210px;
    padding: 20px;
    border: 1px solid rgba(244, 205, 112, 0.3);
    background: rgba(25, 19, 10, 0.52);
}

.download-feature-grid span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--green);
    font-weight: 900;
}

.download-feature-grid h3 {
    margin: 0 0 10px;
    color: var(--gold-bright);
    font-size: 22px;
}

.download-feature-grid p {
    margin: 0;
    color: rgba(255, 249, 230, 0.84);
    line-height: 1.5;
}

.command-list {
    display: grid;
    gap: 12px;
}

.command-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(244, 205, 112, 0.28);
    background: rgba(17, 13, 7, 0.55);
}

.command-list code {
    color: var(--green);
    font-size: 22px;
    font-weight: 900;
}

.muted-text {
    margin: 18px 0 0;
    color: rgba(238, 245, 255, 0.72);
}

@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 10px 14px;
        min-height: 96px;
        padding: 10px 16px 8px;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: flex !important;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        padding: 2px 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 10px 12px;
        border: 1px solid rgba(244, 205, 112, 0.24);
        background: rgba(45, 34, 17, 0.5);
        white-space: nowrap;
    }

    .top-action {
        white-space: nowrap;
    }

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

@media (max-width: 720px) {
    .topbar {
        min-height: 106px;
        padding: 8px 12px 7px;
    }

    .main-nav {
        gap: 7px;
        margin: 0 -2px;
        padding-bottom: 7px;
    }

    .main-nav a {
        padding: 9px 10px;
        font-size: 11px;
    }

    .top-action {
        padding: 10px 11px;
        font-size: 11px;
    }

    #home .content-shell {
        padding-top: 122px;
    }

    .download-page .download-hero {
        min-height: auto;
        padding: 128px 0 42px;
    }

    .download-feature-grid,
    .command-list div {
        grid-template-columns: 1fr;
    }

    .discord-widget-wrap iframe {
        height: 360px;
    }
}

/* Classic news feed redesign */
.news-panel {
    padding: 30px;
}

.news-panel > .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 232, 161, 0.24);
}

.news-panel > .section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 3vw, 44px);
}

.news-list {
    display: grid;
    gap: 18px;
}

.news-article {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 232, 161, 0.22);
    background:
        linear-gradient(90deg, rgba(31, 22, 9, 0.74), rgba(60, 44, 19, 0.48)),
        rgba(30, 23, 13, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 245, 205, 0.08);
}

.news-article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--green), var(--gold-bright));
    opacity: 0.86;
}

.news-article-featured {
    border-color: rgba(255, 224, 99, 0.42);
    background:
        radial-gradient(circle at 78% 16%, rgba(18, 200, 150, 0.14), transparent 24rem),
        linear-gradient(135deg, rgba(67, 46, 17, 0.78), rgba(34, 26, 14, 0.62));
}

.news-meta {
    display: grid;
    align-content: start;
    gap: 10px;
    color: rgba(255, 249, 232, 0.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-meta time {
    color: var(--green);
}

.news-meta span {
    width: max-content;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid rgba(255, 232, 161, 0.26);
    background: rgba(255, 224, 99, 0.1);
    color: var(--gold-bright);
}

.news-article-body {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.news-article-body.compact {
    grid-template-columns: 1fr;
}

.news-article-body img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(255, 232, 161, 0.28);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.news-article h3 {
    margin: 0;
    color: var(--gold-bright);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.02;
}

.news-article:not(.news-article-featured) h3 {
    font-size: 28px;
}

.news-article p {
    max-width: 820px;
    margin: 12px 0 0;
    color: rgba(255, 249, 232, 0.86);
    line-height: 1.62;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.news-tags span {
    padding: 8px 10px;
    border: 1px solid rgba(18, 200, 150, 0.36);
    background: rgba(18, 200, 150, 0.1);
    color: #dfffee;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.news-command-grid div {
    display: grid;
    gap: 6px;
    padding: 15px;
    border: 1px solid rgba(255, 232, 161, 0.2);
    background: rgba(12, 9, 4, 0.34);
}

.news-command-grid code {
    color: var(--green);
    font-size: 22px;
    font-weight: 900;
}

.news-command-grid span {
    color: rgba(255, 249, 232, 0.84);
    line-height: 1.45;
}

@media (max-width: 900px) {
    .news-article,
    .news-article-body {
        grid-template-columns: 1fr;
    }

    .news-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .news-panel {
        padding: 20px;
    }

    .news-article {
        padding: 18px;
    }

    .news-command-grid {
        grid-template-columns: 1fr;
    }
}

/* Final homepage news polish */
.news-panel {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(47, 35, 16, 0.68), rgba(28, 20, 10, 0.58)),
        rgba(40, 30, 15, 0.58);
}

.news-panel > .section-head {
    display: block;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 232, 161, 0.24);
}

.news-panel > .section-head h2 {
    max-width: 720px;
    margin: 6px 0 0;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 0.96;
    text-align: left;
}

.news-list {
    gap: 16px;
}

.news-article {
    display: block;
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 232, 161, 0.26);
    background:
        linear-gradient(180deg, rgba(70, 49, 20, 0.62), rgba(27, 20, 11, 0.72)),
        rgba(35, 25, 12, 0.74);
}

.news-article::before {
    width: 100%;
    height: 3px;
    bottom: auto;
    background: linear-gradient(90deg, var(--green), var(--gold-bright), rgba(255, 232, 161, 0));
}

.news-article-featured {
    box-shadow: inset 0 1px 0 rgba(255, 248, 210, 0.12), 0 24px 70px rgba(37, 24, 8, 0.24);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 18px 0;
}

.news-meta time,
.news-meta span {
    width: auto;
    padding: 7px 10px;
    border: 1px solid rgba(255, 232, 161, 0.28);
    background: rgba(17, 13, 7, 0.44);
    line-height: 1;
}

.news-meta time {
    color: var(--green);
}

.news-meta span {
    color: var(--gold-bright);
}

.news-article-body,
.news-article-body.compact {
    display: block;
    padding: 16px 18px 20px;
}

.news-article-body img {
    display: block;
    width: 100%;
    max-height: 245px;
    margin-bottom: 18px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-color: rgba(255, 232, 161, 0.36);
}

.news-article h3,
.news-article:not(.news-article-featured) h3 {
    max-width: 760px;
    margin: 0;
    color: var(--gold-bright);
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.02;
}

.news-article:not(.news-article-featured) h3 {
    font-size: clamp(22px, 2vw, 30px);
}

.news-article p {
    max-width: 820px;
    color: rgba(255, 249, 232, 0.9);
    font-size: 15px;
    line-height: 1.62;
}

.news-tags {
    gap: 7px;
    margin-top: 15px;
}

.news-tags span {
    padding: 7px 9px;
    background: rgba(18, 200, 150, 0.12);
    font-size: 11px;
}

.news-article .launch-actions {
    margin-top: 18px;
}

.news-article .launch-actions .btn {
    min-width: 170px;
    min-height: 42px;
}

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

.news-command-grid div {
    min-height: 92px;
    border-color: rgba(18, 200, 150, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(14, 11, 6, 0.42);
}

@media (max-width: 720px) {
    .news-panel {
        padding: 18px;
    }

    .news-article-body img {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .news-command-grid {
        grid-template-columns: 1fr;
    }

    .news-article .launch-actions .btn {
        width: 100%;
    }
}

/* Download center patch page */
.patch-center-page .patch-hero {
    background:
        linear-gradient(90deg, rgba(56, 38, 13, 0.58), rgba(108, 86, 38, 0.2), rgba(48, 33, 12, 0.42)),
        linear-gradient(180deg, rgba(255, 242, 188, 0.18), rgba(20, 14, 5, 0.18)),
        url("main-bg.png") center / cover no-repeat;
}

.patch-download-shell {
    gap: 22px;
}

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

.download-main-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 300px;
    padding: 24px;
    border-color: rgba(255, 232, 161, 0.28);
    background:
        radial-gradient(circle at 82% 12%, rgba(18, 200, 150, 0.12), transparent 14rem),
        linear-gradient(180deg, rgba(66, 48, 20, 0.7), rgba(25, 19, 10, 0.74));
}

.download-main-card small,
.support-panel small {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.download-main-card h2,
.support-panel h2 {
    margin: 0;
    color: var(--gold-bright);
    font-size: 28px;
    line-height: 1.04;
}

.download-main-card p,
.support-panel p {
    margin: 0;
    color: rgba(255, 249, 232, 0.86);
    line-height: 1.55;
}

.download-main-card .btn {
    align-self: end;
    width: 100%;
}

.disabled-link {
    cursor: default;
    opacity: 0.72;
}

.patch-info-panel,
.install-guide-panel,
.support-panel {
    padding: 30px;
}

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

.patch-note-grid article {
    padding: 18px;
    border: 1px solid rgba(255, 232, 161, 0.22);
    background: rgba(26, 19, 10, 0.5);
}

.patch-note-grid span {
    color: var(--green);
    font-weight: 900;
}

.patch-note-grid h3 {
    margin: 10px 0 8px;
    color: var(--gold-bright);
    font-size: 22px;
}

.patch-note-grid p {
    margin: 0;
    color: rgba(255, 249, 232, 0.82);
    line-height: 1.5;
}

.install-warning {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(18, 200, 150, 0.35);
    background: rgba(18, 200, 150, 0.1);
    color: rgba(255, 249, 232, 0.92);
    line-height: 1.5;
}

.install-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.install-locale-card {
    padding: 20px;
    border: 1px solid rgba(255, 232, 161, 0.26);
    background:
        linear-gradient(180deg, rgba(65, 47, 19, 0.64), rgba(22, 16, 8, 0.66));
}

.locale-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 232, 161, 0.2);
}

.locale-head span {
    color: var(--gold-bright);
    font-size: 30px;
    font-weight: 900;
}

.install-steps {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding-left: 22px;
    color: rgba(255, 249, 232, 0.9);
    line-height: 1.45;
}

.install-steps code {
    color: var(--green);
    font-weight: 900;
}

.instruction-images {
    display: grid;
    gap: 12px;
}

.instruction-images img {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 232, 161, 0.28);
    background: rgba(8, 6, 3, 0.42);
}

.support-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

@media (max-width: 1200px) {
    .download-card-grid,
    .patch-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .install-tabs,
    .support-panel {
        grid-template-columns: 1fr;
    }

    .locale-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .download-card-grid,
    .patch-note-grid {
        grid-template-columns: 1fr;
    }

    .download-main-card {
        min-height: auto;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 243, 190, .28), rgba(111, 76, 23, .28)),
        url("main-bg.png") center top / cover fixed no-repeat,
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 4px 4px,
        radial-gradient(circle at 50% 0, rgba(255, 240, 176, .18), transparent 38rem);
    mix-blend-mode: screen;
    opacity: .35;
    z-index: 5;
}

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

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 clamp(18px, 5vw, 72px);
    background: rgba(31, 24, 12, .72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(231, 198, 109, .55);
    color: var(--gold-bright);
    background: linear-gradient(145deg, rgba(255, 231, 147, .46), rgba(83, 57, 19, .72));
    font-family: Georgia, serif;
    font-size: 23px;
}

.brand b {
    color: var(--gold);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    padding: 12px 13px;
    color: #efe4cc;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav a:hover,
.top-action:hover {
    color: var(--gold-bright);
}

.top-action {
    padding: 13px 18px;
    border: 1px solid rgba(231, 198, 109, .42);
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(231, 198, 109, .08);
}

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.slides,
.slides span,
.hero-shade {
    position: absolute;
    inset: 0;
}

.slides span {
    background-image: url("main-bg.png");
    background-size: cover;
    background-position: center;
    opacity: 1;
    animation: none;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slides span:nth-child(2),
.slides span:nth-child(3),
.slides span:nth-child(4),
.slides span:nth-child(5) { display: none; }

.hero-shade {
    background:
        linear-gradient(90deg, rgba(44, 28, 8, .58), rgba(44, 28, 8, .22) 44%, rgba(44, 28, 8, .16) 70%, rgba(44, 28, 8, .42)),
        linear-gradient(180deg, rgba(255, 242, 189, .04), rgba(51, 32, 10, .34));
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: clamp(30px, 6vw, 92px);
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 72px;
}

.hero.status-only .hero-inner {
    grid-template-columns: minmax(0, 1fr) 430px;
    justify-items: end;
}

.hero.status-only,
.hero.image-only {
    min-height: 520px;
}

.hero.status-only .hero-inner,
.hero.image-only .hero-inner {
    min-height: 520px;
}

#home .hero.image-only {
    display: none;
}

#home .content-shell {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding-top: 96px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 24px;
    padding: 13px 18px;
    border: 1px solid rgba(231, 198, 109, .34);
    background: rgba(16, 34, 19, .72);
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow span,
.online-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 22px rgba(24, 212, 170, .8);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

h1 {
    max-width: 760px;
    font-size: clamp(48px, 6.5vw, 105px);
    line-height: .92;
    color: #fff5df;
    text-shadow: 0 4px 30px rgba(0,0,0,.55);
}

.lead {
    max-width: 690px;
    margin: 28px 0 0;
    color: #efe3cb;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,.18);
    color: var(--text);
    background: rgba(255,255,255,.14);
    font: 900 14px Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.btn.primary {
    border-color: rgba(255, 226, 153, .7);
    color: #161008;
    background: linear-gradient(180deg, #fff0b4, #c48d35);
    box-shadow: 0 18px 42px rgba(203, 143, 44, .25);
}

.btn.ghost:hover {
    border-color: rgba(231, 198, 109, .54);
    color: var(--gold-bright);
}

.status-card,
.panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(74, 47, 12, .22);
}

.status-card {
    padding: 28px;
}

.status-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.status-head small,
.section-head small,
.status-grid small,
.balance small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-head strong {
    display: block;
    margin-top: 7px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 36px;
}

.online-dot {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 15px;
    border: 1px solid rgba(24, 212, 170, .38);
    color: #c8fff4;
    background: rgba(24, 212, 170, .12);
    font-weight: 900;
    text-transform: uppercase;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.status-grid div {
    min-height: 104px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255, 245, 204, .1);
}

.status-grid b {
    display: block;
    margin-top: 14px;
    color: var(--gold-bright);
    font-family: Georgia, serif;
    font-size: 42px;
}

.balance {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255, 245, 204, .1);
}

.balance > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.balance span {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.alliance { color: var(--blue); }
.horde { color: var(--red); }

.bar {
    display: flex;
    height: 10px;
    margin-top: 14px;
    background: rgba(255,255,255,.08);
}

.bar i,
.bar em {
    display: block;
    height: 100%;
}

.bar i { background: var(--blue); }
.bar em { background: var(--red); }

code {
    display: block;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    color: #fff4d6;
    background: rgba(69, 45, 14, .35);
    font-size: 14px;
}

.content-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 390px;
    gap: 24px;
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.left-column,
.main-column,
.side-column {
    display: grid;
    gap: 24px;
    align-content: start;
}

.left-column {
    position: sticky;
    top: 96px;
}

.panel {
    padding: 26px;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin-top: 6px;
    color: #fff1ce;
    font-size: 34px;
}

.section-head.compact {
    margin-bottom: 14px;
}

.section-head.compact h2 {
    font-size: 24px;
}

.news-item {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.news-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid rgba(255, 232, 161, .28);
    background: linear-gradient(135deg, rgba(56, 39, 15, .64), rgba(95, 67, 23, .4));
}

.news-feature img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    border: 1px solid rgba(255, 232, 161, .24);
}

.news-feature div {
    display: grid;
    align-content: center;
    padding: 10px 10px 10px 0;
}

.launch-feature {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 224, 99, .42);
    background:
        linear-gradient(135deg, rgba(99, 61, 18, .78), rgba(33, 25, 13, .58)),
        radial-gradient(circle at 18% 15%, rgba(255, 193, 66, .22), transparent 18rem),
        radial-gradient(circle at 82% 50%, rgba(24, 212, 170, .16), transparent 22rem);
    box-shadow: inset 0 0 60px rgba(255, 224, 99, .08), 0 26px 80px rgba(74, 47, 12, .25);
}

.launch-feature::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold-bright), var(--blue));
    opacity: .72;
}

.launch-feature img {
    min-height: 320px;
    filter: saturate(1.08) contrast(1.04);
}

.launch-feature h3 {
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.02;
}

.launch-feature p {
    color: #f3e9d4;
    font-size: 17px;
}

.launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.launch-actions .btn {
    min-height: 48px;
}

.launch-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.launch-strip span {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 15px;
    border: 1px solid rgba(255, 232, 161, .2);
    color: #efe4cc;
    background:
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
        rgba(47, 35, 16, .42);
    font-size: 13px;
    line-height: 1.35;
}

.launch-strip b {
    color: var(--green);
    font-size: 12px;
    text-transform: uppercase;
}

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

.news-grid .news-item {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(47, 35, 16, .36);
}

.news-item.note {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(24, 212, 170, .2);
    background: rgba(24, 212, 170, .08);
}

.news-item.launch-note {
    border-color: rgba(255, 224, 99, .34);
    background:
        linear-gradient(90deg, rgba(255, 224, 99, .16), rgba(24, 212, 170, .09)),
        rgba(47, 35, 16, .44);
}

.news-item time {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-item h3 {
    margin-top: 8px;
    font-size: 25px;
    color: var(--gold-bright);
}

.news-item p {
    max-width: 780px;
    margin: 10px 0 0;
    color: #d3d2ce;
    line-height: 1.6;
}

.news-feature p {
    max-width: none;
}

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

form {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255, 248, 216, .1);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    background: rgba(0,0,0,.42);
    font: 700 15px Arial, sans-serif;
}

select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    background: rgba(47, 32, 12, .52);
    font: 800 15px Arial, sans-serif;
}

input:focus {
    outline: 1px solid rgba(231, 198, 109, .62);
}

.form-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    font-weight: 800;
}

.notice.success {
    border-color: rgba(24, 212, 170, .35);
    color: #bfffee;
}

.notice.error {
    border-color: rgba(255, 74, 88, .42);
    color: #ffc5ca;
}

.form-message.error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 74, 88, .45);
    background: rgba(55, 8, 10, .36);
    color: #ffd1d5;
    font-weight: 900;
}

.ranking-panel ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.ranking-panel li:first-child {
    border-top: 0;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(231, 198, 109, .25);
    color: var(--gold);
    background: rgba(231, 198, 109, .08);
    font-weight: 900;
}

.ranking-panel strong,
.ranking-panel small {
    display: block;
}

.rank-player {
    display: grid;
    grid-template-columns: 26px 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rank-class-icon,
.rank-faction-icon,
.status-faction-icon {
    display: block;
    object-fit: contain;
}

.rank-class-icon {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(231, 198, 109, .34);
    background: rgba(0,0,0,.22);
}

.rank-faction-icon {
    width: 18px;
    height: 18px;
}

.status-faction-icon {
    width: 18px;
    height: 18px;
}

.ranking-panel strong {
    color: #f7ead2;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-panel small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.ranking-panel b {
    color: var(--green);
    font-size: 16px;
}

.server-info-panel {
    background: rgba(47, 35, 16, .74);
}

.vip-login-panel {
    background:
        linear-gradient(135deg, rgba(58, 38, 14, .82), rgba(101, 66, 22, .62)),
        radial-gradient(circle at 80% 0, rgba(24, 212, 170, .16), transparent 18rem);
}

.vip-login-form {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.vip-login-form input {
    min-height: 42px;
    border-color: rgba(231, 198, 109, .22);
    background: rgba(21, 14, 6, .62);
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.login-actions .btn {
    min-height: 42px;
    display: grid;
    place-items: center;
    text-align: center;
}

.login-actions .wide {
    grid-column: 1 / -1;
}

.server-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.server-info-head h2 {
    color: #8793aa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.server-info-panel .online-dot {
    padding: 9px 11px;
    font-size: 12px;
}

.server-info-list {
    display: grid;
}

.server-info-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.server-info-list span,
.realmlist-box {
    color: #bfcae0;
    font-size: 14px;
    text-transform: uppercase;
}

.server-info-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.server-info-list b {
    color: var(--green);
    font-size: 18px;
}

.realmlist-box {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.realmlist-box code {
    margin: 0;
    color: var(--green);
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
}

.ranking-panel .empty-rank {
    display: block;
    min-height: 0;
    padding: 16px 0 0;
    color: var(--muted);
}

.vip-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .08), rgba(80, 52, 14, .22) 58%, rgba(48, 32, 12, .34)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.vip-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.vip-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 20px;
}

.vip-sidebar small,
.vip-info-grid span,
.vip-tool-panel small,
.vip-buy-panel small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.vip-sidebar h2 {
    color: #fff1ce;
    font-size: 26px;
}

.vip-balance-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(255, 232, 161, .18);
    background: rgba(21, 14, 6, .46);
}

.vip-balance-card strong {
    color: var(--green);
    font-size: 34px;
}

.vip-menu {
    display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.vip-menu a {
    padding: 12px 14px;
    color: #e9dfc9;
    background: rgba(47, 35, 16, .36);
    border: 1px solid rgba(255,255,255,.07);
    font-weight: 800;
}

.vip-menu a:hover {
    border-color: rgba(24, 212, 170, .38);
    color: #c8fff4;
}

.vip-menu a.active {
    border-color: rgba(24, 212, 170, .45);
    color: #c8fff4;
    background: rgba(24, 212, 170, .12);
}

.vip-main {
    display: grid;
    gap: 24px;
}

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

.vip-shop-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 260px;
    padding: 14px;
    border: 1px solid rgba(255, 232, 161, .22);
    background:
        linear-gradient(180deg, rgba(30, 22, 10, .62), rgba(69, 45, 14, .46)),
        radial-gradient(circle at 50% 20%, rgba(24, 212, 170, .12), transparent 12rem);
    text-align: center;
}

.vip-shop-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border: 1px solid rgba(255, 232, 161, .22);
}

.vip-shop-card:hover {
    border-color: rgba(255, 224, 99, .7);
    box-shadow: 0 0 34px rgba(255, 224, 99, .12);
}

.vip-shop-icon,
.coin-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 224, 99, .55);
    color: #ffe58c;
    background: radial-gradient(circle, rgba(255, 224, 99, .32), rgba(44, 28, 8, .88));
    font: 900 34px Georgia, serif;
}

.coin-icon-img {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 224, 99, .55);
    object-fit: cover;
    box-shadow: 0 0 22px rgba(255, 224, 99, .14);
}

.vip-shop-card strong {
    color: #fff1ce;
    font-size: 23px;
}

.vip-shop-card small {
    color: var(--muted);
    line-height: 1.45;
}

.vip-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.vip-info-grid div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(21, 14, 6, .38);
}

.vip-info-grid b {
    color: #fff1ce;
    font-size: 16px;
}

.vip-account-panel h3 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 20px;
    text-transform: uppercase;
}

.vip-character-list {
    display: grid;
    gap: 10px;
}

.vip-character-list article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(21, 14, 6, .32);
}

.vip-character-list img {
    width: 34px;
    height: 34px;
}

.vip-character-list strong,
.vip-character-list small {
    display: block;
}

.vip-character-list small {
    margin-top: 3px;
    color: var(--muted);
}

.vip-character-list b {
    color: var(--green);
    font-size: 13px;
    text-transform: uppercase;
}

.vip-tool-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.vip-tool-form .btn {
    min-height: 46px;
}

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

.vip-coins-hero {
    width: 100%;
    max-height: 320px;
    margin-bottom: 22px;
    object-fit: cover;
    border: 1px solid rgba(255, 232, 161, .24);
}

.coin-package {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 24px 16px;
    border: 1px solid rgba(120, 255, 120, .28);
    background: rgba(21, 14, 6, .42);
    text-align: center;
}

.coin-package h3 {
    color: #f4ff72;
    font-size: 20px;
}

.coin-package b {
    color: #7ef9ff;
}

.coin-package em {
    color: #9dff55;
    font-style: normal;
    font-weight: 900;
}

.paypal-btn::before {
    content: "PayPal";
    margin-right: 8px;
    color: #063d82;
    font-weight: 900;
}

.vip-item-grid {
    display: grid;
    gap: 14px;
}

.vip-item-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto minmax(210px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(21, 14, 6, .36);
}

.vip-item-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(231, 198, 109, .34);
    background: rgba(0,0,0,.32);
    color: var(--gold-bright);
    font-weight: 900;
}

.vip-item-icon img {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.vip-item-card h3 {
    color: #fff1ce;
    font-size: 20px;
}

.vip-item-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.vip-item-card b {
    color: var(--green);
    white-space: nowrap;
}

.vip-buy-item-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 0;
    border: 0;
    background: transparent;
}

.vip-buy-item-form label {
    gap: 5px;
}

.vip-buy-item-form select {
    min-height: 38px;
}

.admin-add-form {
    margin-bottom: 22px;
}

.admin-table {
    display: grid;
    gap: 8px;
}

.admin-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 170px 120px;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(21, 14, 6, .34);
}

.shop-admin-row {
    grid-template-columns: 130px 110px minmax(0, 1fr) 170px 120px;
}

.order-admin-row {
    grid-template-columns: 150px 150px minmax(0, 1fr) 90px 110px;
}

.coin-log-row {
    grid-template-columns: 150px 130px 150px 90px minmax(0, 1fr);
}

.admin-row.head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(47, 35, 16, .56);
}

.admin-row strong {
    color: #fff1ce;
}

.admin-row b {
    color: var(--green);
}

.admin-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-row input {
    min-height: 36px;
    max-width: 86px;
}

.btn.mini {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 11px;
}

.transfer-offer-list {
    display: grid;
    gap: 12px;
}

.transfer-offer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(120px, .5fr) minmax(150px, .6fr) minmax(190px, .8fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: rgba(20, 15, 8, .44);
    border: 1px solid rgba(255, 232, 161, .18);
}

.transfer-offer-card h3 {
    margin: 3px 0 4px;
    color: #ffe8a1;
    font-size: 20px;
}

.transfer-offer-card p,
.transfer-offer-card span,
.transfer-offer-card small {
    color: #d7dde8;
}

.transfer-offer-card b {
    color: var(--green);
}

.transfer-offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.transfer-offer-actions small {
    width: 100%;
    text-align: right;
}

.debug-ok,
.debug-bad {
    display: inline-flex;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.debug-ok {
    color: #bfffee;
    background: rgba(24, 212, 170, .15);
    border: 1px solid rgba(24, 212, 170, .35);
}

.debug-bad {
    color: #ffc5ca;
    background: rgba(255, 74, 88, .14);
    border: 1px solid rgba(255, 74, 88, .35);
}

.subhero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.subhero.compact-hero {
    min-height: 360px;
}

.register-hero,
.gm-hero,
.online-hero {
    min-height: 470px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.register-page,
.gm-page,
.online-page,
.rankings-page,
.armory-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 243, 190, .08), rgba(83, 58, 19, .2) 44%, rgba(67, 45, 14, .28)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.register-page {
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .1), rgba(80, 52, 14, .22) 58%, rgba(48, 32, 12, .34)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .16), transparent 42rem);
}

.gm-page {
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .09), rgba(80, 52, 14, .22) 58%, rgba(48, 32, 12, .34)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.online-page {
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .09), rgba(80, 52, 14, .21) 58%, rgba(48, 32, 12, .32)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.rankings-page {
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .09), rgba(80, 52, 14, .21) 58%, rgba(48, 32, 12, .32)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.armory-page {
    background:
        linear-gradient(180deg, rgba(255, 240, 186, .09), rgba(80, 52, 14, .21) 58%, rgba(48, 32, 12, .32)),
        radial-gradient(circle at 50% 0, rgba(255, 246, 202, .14), transparent 42rem);
}

.register-hero {
    background:
        linear-gradient(90deg, rgba(52, 34, 10, .42), rgba(255, 235, 168, .04) 42%, rgba(52, 34, 10, .38)),
        linear-gradient(180deg, rgba(255, 244, 198, .08), rgba(74, 47, 12, .18));
}

.gm-hero,
.online-hero,
.armory-hero {
    background:
        linear-gradient(90deg, rgba(52, 34, 10, .42), rgba(255, 235, 168, .04) 46%, rgba(52, 34, 10, .42)),
        linear-gradient(180deg, rgba(255, 244, 198, .08), rgba(74, 47, 12, .18));
}

.vip-hero {
    background:
        linear-gradient(90deg, rgba(52, 34, 10, .48), rgba(255, 235, 168, .06) 48%, rgba(52, 34, 10, .42)),
        radial-gradient(circle at 72% 24%, rgba(24, 212, 170, .18), transparent 26rem);
}

.online-hero {
    background:
        linear-gradient(90deg, rgba(52, 34, 10, .42), rgba(255, 235, 168, .04) 46%, rgba(52, 34, 10, .42)),
        linear-gradient(180deg, rgba(255, 244, 198, .08), rgba(74, 47, 12, .18));
}

.armory-hero {
    background:
        linear-gradient(90deg, rgba(52, 34, 10, .42), rgba(255, 235, 168, .04) 46%, rgba(52, 34, 10, .42)),
        linear-gradient(180deg, rgba(255, 244, 198, .08), rgba(74, 47, 12, .18));
}

.subhero-inner {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 145px 0 70px;
}

.subhero-inner.narrow,
.page-shell.narrow {
    width: min(860px, calc(100% - 48px));
}

.subhero h1 {
    max-width: 1000px;
    font-size: clamp(42px, 5vw, 82px);
}

.page-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.single-form form {
    max-width: 620px;
}

.register-shell {
    margin-top: -86px;
    position: relative;
    z-index: 3;
}

.register-card {
    background:
        linear-gradient(135deg, rgba(55, 39, 16, .72), rgba(91, 64, 23, .54)),
        radial-gradient(circle at 85% 0, rgba(32, 240, 172, .2), transparent 26rem);
    backdrop-filter: blur(2px);
}

.online-page .panel,
.rankings-page .panel,
.armory-page .panel {
    background:
        linear-gradient(135deg, rgba(49, 36, 16, .76), rgba(91, 64, 23, .56)),
        radial-gradient(circle at 75% 0, rgba(21, 255, 164, .16), transparent 28rem);
    backdrop-filter: blur(2px);
}

.online-page .page-shell,
.rankings-page .page-shell,
.armory-page .page-shell {
    min-height: 520px;
}

.rankings-page .tabs a {
    background: rgba(67, 47, 19, .56);
}

.panel-text {
    max-width: 720px;
    margin: 0 0 20px;
    color: #d3d2ce;
    line-height: 1.65;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tabs a {
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    background: rgba(255,255,255,.11);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.tabs a.active,
.tabs a:hover {
    border-color: rgba(24, 212, 170, .42);
    color: #c8fff4;
    background: rgba(24, 212, 170, .12);
}

.table-panel {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 18px 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: left;
}

th {
    color: #8190a6;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

td {
    color: #edf2fb;
}

td strong,
td small {
    display: block;
}

td small {
    margin-top: 5px;
    color: var(--muted);
}

td b {
    color: var(--gold-bright);
}

.role-badge {
    display: inline-flex;
    padding: 8px 13px;
    border: 1px solid rgba(255, 105, 32, .55);
    color: #ffbd71;
    background: rgba(156, 45, 8, .35);
    font-size: 13px;
    font-weight: 900;
}

.role-15 {
    border-color: rgba(32, 240, 172, .66);
    color: #031f16;
    background: linear-gradient(180deg, #9dffe6, #20f0ac);
    box-shadow: 0 0 22px rgba(32, 240, 172, .18);
}

.staff-panel {
    background:
        linear-gradient(135deg, rgba(49, 36, 16, .76), rgba(91, 64, 23, .58)),
        radial-gradient(circle at 70% 0, rgba(21, 255, 164, .16), transparent 28rem);
    backdrop-filter: blur(2px);
}

.staff-grid {
    display: grid;
    gap: 16px;
}

.staff-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(231, 198, 109, .16);
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), transparent),
        rgba(58, 39, 14, .34);
}

.staff-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(231, 198, 109, .34);
    background: rgba(74, 52, 20, .45);
}

.staff-avatar img,
.icon-cell img,
.staff-meta img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.staff-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.staff-title h3 {
    color: #fff1ce;
    font-size: 22px;
}

.staff-title p,
.staff-description {
    color: #b9c3d3;
}

.staff-description {
    margin: 12px 0 14px;
    line-height: 1.55;
}

.staff-meta,
.icon-cell,
.online-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-meta {
    justify-content: space-between;
    color: #91a0b8;
    font-size: 13px;
    text-transform: uppercase;
}

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

.staff-meta b,
.online-head b {
    color: var(--green);
}

.online-head {
    justify-content: space-between;
}

.online-table a {
    color: #fff1ce;
    font-weight: 900;
}

.online-table b {
    color: var(--gold-bright);
}

.icon-cell {
    color: #edf2fb;
}

.icon-cell img {
    width: 22px;
    height: 22px;
}

.faction-alliance {
    color: var(--blue);
}

.faction-horde {
    color: var(--red);
}

.search-form {
    grid-template-columns: minmax(260px, 1fr) 220px auto;
    align-items: end;
}

.search-form .btn {
    height: 46px;
    min-height: 46px;
}

.empty-state {
    margin: 20px 0 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    background: rgba(0,0,0,.24);
    line-height: 1.55;
}

.result-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.result-group {
    margin-top: 28px;
}

.result-group h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7a7ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.result-group h2 small {
    color: var(--muted);
    font-size: 14px;
}

.result-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.23);
}

a.result-row:hover {
    border-color: rgba(24, 212, 170, .35);
    background: rgba(24, 212, 170, .06);
}

.result-row span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.result-row strong {
    color: #fff1ce;
}

.result-row small {
    color: var(--muted);
}

.result-count {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.detail-shell {
    padding-top: 112px;
}

.breadcrumbs {
    margin: 0 0 18px;
    color: #7f91ad;
}

.breadcrumbs a {
    color: #a8bbd8;
}

.detail-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
}

.detail-meta {
    margin: 0 0 28px;
    color: #a9c0dd;
}

.quest-title {
    color: #fff66d;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 26px;
}

.item-tooltip {
    max-width: 620px;
    background: #020202;
    border-color: rgba(126, 145, 180, .45);
}

.item-tooltip h2 {
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
}

.item-tooltip p {
    margin: 7px 0;
    color: #fff;
    line-height: 1.4;
}

.green {
    color: #00ff88 !important;
}

.muted-text {
    color: var(--muted) !important;
}

.quality-0 { color: #9d9d9d !important; }
.quality-1 { color: #ffffff !important; }
.quality-2 { color: #1eff00 !important; }
.quality-3 { color: #0070dd !important; }
.quality-4 { color: #a335ee !important; }
.quality-5 { color: #ff8000 !important; }
.quality-6 { color: #e6cc80 !important; }

.player-card {
    min-height: 640px;
    background:
        linear-gradient(rgba(68, 44, 14, .38), rgba(68, 44, 14, .56)),
        url("main-bg.png") center / cover;
}

.character-title {
    text-align: center;
    margin-bottom: 34px;
}

.character-title h1 {
    color: var(--green);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 44px;
    font-weight: 900;
    text-transform: uppercase;
}

.character-title p {
    color: #a8c7ed;
    font-size: 20px;
}

.equipment-layout {
    display: grid;
    grid-template-columns: 86px minmax(280px, 1fr) 86px;
    gap: 32px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.gear-column {
    display: grid;
    gap: 10px;
}

.gear-slot {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255,255,255,.18);
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), rgba(65, 43, 15, .62));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    overflow: visible;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.gear-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.gear-slot span {
    padding: 4px;
    line-height: 1.1;
    color: #c8d3df;
}

.gear-slot .gear-fallback {
    display: none;
    width: 100%;
    height: 100%;
    place-items: center;
}

.gear-slot.empty {
    opacity: .28;
    border-color: rgba(255,255,255,.1);
}

.gear-slot.quality-2 { border-color: #1eff00; }
.gear-slot.quality-3 { border-color: #0070dd; }
.gear-slot.quality-4 { border-color: #a335ee; }
.gear-slot.quality-5 { border-color: #ff8000; }

.gear-slot:hover,
.gear-slot:focus-visible {
    z-index: 60;
}

.gear-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: -10px;
    display: none;
    width: 280px;
    max-width: min(280px, 80vw);
    padding: 13px 14px;
    background:
        linear-gradient(180deg, rgba(13, 10, 7, .98), rgba(0, 0, 0, .98)),
        radial-gradient(circle at top left, rgba(231, 198, 109, .16), transparent 45%);
    border: 1px solid rgba(126, 145, 180, .65);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .62);
    color: #fff;
    text-align: left;
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.gear-slot:hover .gear-tooltip,
.gear-slot:focus-visible .gear-tooltip {
    display: grid;
    gap: 5px;
}

.gear-tooltip strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.gear-tooltip em {
    color: #9fb2c9;
    font-style: normal;
    font-size: 12px;
}

.gear-tooltip span {
    padding: 0;
    color: #fff;
    line-height: 1.35;
}

.character-core {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.health-bar {
    width: min(360px, 100%);
    padding: 7px 14px;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(180deg, #55eec4, #10a77d);
}

.power-bar {
    width: min(320px, 100%);
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(180deg, #63a8ff, #1f5ea8);
}

.power-1 { background: linear-gradient(180deg, #ff776b, #a62822); }
.power-4 { background: linear-gradient(180deg, #ffe477, #bd8f12); color: #191306; }

.character-silhouette {
    display: grid;
    place-items: center;
    width: min(360px, 100%);
    height: 300px;
    color: rgba(24, 212, 170, .18);
    font-size: 180px;
    font-weight: 900;
    background: radial-gradient(circle, rgba(24,212,170,.18), rgba(0,0,0,.1) 58%, transparent);
}

.character-silhouette span {
    display: grid;
    place-items: center;
    width: 210px;
    height: 280px;
    border: 1px solid rgba(24, 212, 170, .22);
    color: rgba(206, 255, 242, .78);
    background:
        linear-gradient(rgba(55, 36, 12, .12), rgba(55, 36, 12, .45)),
        radial-gradient(circle at 50% 18%, rgba(24, 212, 170, .38), transparent 18%),
        linear-gradient(140deg, rgba(24, 212, 170, .14), rgba(76, 51, 18, .32));
    font-size: 18px;
    text-transform: uppercase;
}

.character-portrait {
    width: min(360px, 100%);
    height: 300px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 34px rgba(66, 42, 12, .46));
}

.weapon-row {
    display: flex;
    gap: 12px;
}

.bag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats-panel .stat-list {
    display: grid;
    gap: 0;
}

.stat-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.stat-list span {
    color: #a9c0dd;
}

.stat-list b {
    color: #fff;
}

.text-panel h2 {
    color: #7f91ad;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.text-panel p {
    color: #fff;
    line-height: 1.65;
}

.classic-armory {
    overflow: visible;
    border: 1px solid rgba(151, 112, 42, .62);
    color: #f8e7bd;
    background-image:
        linear-gradient(90deg, rgba(70, 45, 13, .55), rgba(255, 236, 171, .06) 22%, rgba(255, 236, 171, .04) 50%, rgba(255, 236, 171, .06) 78%, rgba(70, 45, 13, .55)),
        radial-gradient(ellipse at 50% 44%, rgba(28, 255, 151, .12), rgba(89, 61, 22, .2) 46%, rgba(61, 40, 14, .46) 100%),
        url("main-bg.png");
    background-position: center, center, center;
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 24px 80px rgba(74, 47, 12, .28), inset 0 0 70px rgba(74, 47, 12, .42);
}

.classic-header {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 150px;
    padding: 18px 34px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(70, 45, 13, .76), rgba(152, 105, 34, .48), rgba(21, 155, 91, .18), rgba(70, 45, 13, .72)),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(74, 47, 12, .28)),
        url("main-bg.png") center 27% / cover;
    border-bottom: 1px solid rgba(179, 127, 40, .45);
}

.classic-header h1 {
    color: #fff;
    font-size: 34px;
    line-height: 1;
    text-shadow: 2px 2px 0 #000;
}

.classic-header h2 {
    margin-top: 6px;
    color: #ffe600;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 2px 2px 0 #000;
}

.classic-header p {
    margin: 4px 0 0;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
}

.classic-portrait {
    position: relative;
    width: 116px;
    height: 116px;
    border: 3px solid #3d1807;
    background: rgba(74, 52, 20, .45);
    box-shadow: 0 0 0 3px rgba(255, 198, 65, .32);
}

.classic-portrait .character-silhouette {
    width: 100%;
    height: 100%;
    background: rgba(74, 52, 20, .45);
}

.classic-portrait .character-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classic-portrait .character-silhouette span {
    width: 100%;
    height: 100%;
    font-size: 11px;
}

.classic-title-ribbon {
    width: fit-content;
    margin: 28px auto 22px;
    padding: 13px 74px;
    color: #ffe7a6;
    font: italic 900 30px Georgia, serif;
    background: linear-gradient(180deg, rgba(132, 91, 30, .9), rgba(65, 43, 15, .88));
    border: 1px solid rgba(213, 161, 61, .55);
    box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.13);
    text-shadow: 1px 2px 0 #000;
}

.classic-layout {
    display: grid;
    grid-template-columns: 74px minmax(420px, 520px) 74px;
    justify-content: center;
    gap: 18px;
    padding: 6px 28px 24px;
}

.classic-armory .gear-column {
    gap: 8px;
}

.classic-armory .gear-slot {
    width: 62px;
    height: 62px;
    border-width: 3px;
    background: rgba(47, 32, 12, .72);
    box-shadow: 0 0 0 2px rgba(255, 222, 137, .16), 0 4px 10px rgba(66, 42, 12, .36);
}

.classic-layout > .gear-column:last-child .gear-tooltip {
    left: auto;
    right: calc(100% + 12px);
}

.classic-bags .gear-tooltip,
.weapon-row .gear-tooltip {
    top: auto;
    bottom: calc(100% + 12px);
}

.classic-center {
    display: grid;
    gap: 8px;
    align-content: start;
}

.classic-info-grid,
.classic-stat-grid {
    display: grid;
    grid-template-columns: 1fr .58fr;
    gap: 6px;
}

.classic-stat-grid {
    grid-template-columns: 1fr 1fr;
}

.classic-box {
    min-height: 88px;
    padding: 10px 12px;
    border: 2px solid rgba(185, 150, 66, .65);
    color: #fff;
    background: rgba(47, 32, 12, .68);
    box-shadow: inset 0 0 18px rgba(66, 42, 12, .36);
}

.classic-box h3 {
    margin-bottom: 10px;
    color: #fff;
    font: 900 13px Arial, sans-serif;
    text-transform: uppercase;
}

.classic-box div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 6px;
    color: #ffe600;
    font-weight: 900;
}

.classic-box b {
    color: #7fff38;
}

.classic-bigline {
    justify-content: flex-start !important;
    color: #fff !important;
    font-size: 18px;
    text-transform: uppercase;
}

.professions-box {
    grid-column: 1 / 2;
}

.resist-box {
    grid-row: span 2;
}

.classic-bars {
    display: grid;
    gap: 4px;
}

.classic-bars div {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

.classic-bars .health-bar,
.classic-bars .power-bar {
    width: 100%;
    min-height: 24px;
    padding: 4px 12px;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -10px 18px rgba(0,0,0,.2);
}

.classic-armory .weapon-row {
    justify-content: center;
    margin-top: 10px;
}

.classic-bags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 28px 34px;
    color: #f8e0a0;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
}

.classic-bags .gear-slot {
    width: 54px;
    height: 54px;
}

.classic-pvp-panel {
    margin-top: 18px;
    padding: 26px 34px 34px;
    border: 1px solid rgba(151, 112, 42, .62);
    color: #f8e7bd;
    background-image:
        linear-gradient(90deg, rgba(70, 45, 13, .64), rgba(110, 76, 24, .36), rgba(70, 45, 13, .64)),
        radial-gradient(circle at 20% 0, rgba(21, 255, 164, .16), transparent 34rem),
        url("main-bg.png");
    background-position: center, center, center 72%;
    background-size: 100% 100%, 100% 100%, 100% auto;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 44px rgba(74, 47, 12, .42);
}

.classic-pvp-panel h2 {
    width: min(780px, 100%);
    margin: 0 0 8px;
    padding: 5px 10px;
    color: #ffe58c;
    background: rgba(82, 57, 22, .72);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.classic-pvp-panel div {
    display: flex;
    gap: 4px;
    width: min(780px, 100%);
    padding: 2px 10px;
    background: rgba(61, 40, 14, .42);
    font-family: Georgia, serif;
    font-weight: 900;
    text-transform: uppercase;
}

.classic-pvp-panel b {
    color: #20f0ac;
}

.item-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.item-heading img {
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255,255,255,.18);
    background: #020202;
}

@media (max-width: 1400px) {
    .content-shell {
        grid-template-columns: 320px minmax(0, 1fr) 350px;
        width: min(1280px, calc(100% - 36px));
        gap: 18px;
    }
}

@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .hero-inner,
    .content-shell {
        grid-template-columns: 1fr;
    }

    .left-column {
        position: static;
        order: 2;
    }

    .main-column {
        order: 1;
    }

    .side-column {
        order: 3;
    }

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

    .vip-sidebar {
        position: static;
    }

    .status-card {
        max-width: 560px;
    }
}

@media (max-width: 720px) {
    .topbar {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand span:last-child {
        display: none;
    }

    .top-action {
        padding: 11px 12px;
        font-size: 12px;
    }

    .hero,
    .hero-inner {
        min-height: 860px;
    }

    .hero.image-only,
    .hero.image-only .hero-inner {
        min-height: 150px;
    }

    #home .content-shell {
        margin-top: 0;
        padding-top: 84px;
    }

    .hero-inner,
    .content-shell {
        width: calc(100% - 28px);
    }

    h1 {
        font-size: 46px;
    }

    .status-grid,
    .forms,
    .news-feature,
    .news-grid,
    .launch-strip,
    .vip-shop-grid,
    .vip-info-grid,
    .vip-tool-form,
    .coin-package-grid,
    .admin-row,
    .vip-item-card,
    .transfer-offer-card,
    .search-form,
    .result-row,
    .detail-grid,
    .equipment-layout,
    .left-column {
        grid-template-columns: 1fr;
    }

    .balance > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .classic-layout,
    .classic-info-grid,
    .classic-stat-grid {
        grid-template-columns: 1fr;
    }

    .classic-header {
        flex-direction: column;
        text-align: center;
    }

    .staff-card,
    .staff-title,
    .staff-meta,
    .online-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .staff-card {
        display: grid;
    }

    .register-hero,
    .gm-hero,
    .online-hero {
        min-height: 390px;
    }
}

/* Final responsive overrides for the new homepage/download layout. */
@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 10px 14px;
        min-height: 96px;
        padding: 10px 16px 8px;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: flex !important;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        padding: 2px 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 10px 12px;
        border: 1px solid rgba(244, 205, 112, 0.24);
        background: rgba(45, 34, 17, 0.5);
        white-space: nowrap;
    }

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

@media (max-width: 720px) {
    .topbar {
        min-height: 106px;
        padding: 8px 12px 7px;
    }

    .main-nav {
        gap: 7px;
        margin: 0 -2px;
        padding-bottom: 7px;
    }

    .main-nav a {
        padding: 9px 10px;
        font-size: 11px;
    }

    #home .content-shell {
        padding-top: 122px;
    }

    .download-page .download-hero {
        min-height: auto;
        padding: 128px 0 42px;
    }

    .download-feature-grid,
    .command-list div {
        grid-template-columns: 1fr;
    }

    .discord-widget-wrap iframe {
        height: 360px;
    }
}
