:root {
    --bg: #0b0705;
    --panel: #15100d;
    --panel-soft: #21160f;
    --line: rgba(234, 180, 92, 0.22);
    --gold: #f3c472;
    --gold-deep: #9b642b;
    --red: #e72b12;
    --red-dark: #771406;
    --text: #fff2dc;
    --muted: #c8a77a;
    --black: #050403;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 72% 18%, rgba(231, 43, 18, 0.18), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(243, 196, 114, 0.14), transparent 28%),
        linear-gradient(135deg, #0a0604 0%, #1d120a 48%, #0c0705 100%);
}

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

.page-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(28, 18, 11, 0.96), rgba(6, 5, 4, 0.98)),
        var(--black);
    box-shadow: 22px 0 60px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.brand {
    display: grid;
    place-items: center;
    min-height: 150px;
    margin-bottom: 20px;
}

.brand img {
    width: min(220px, 100%);
    filter: drop-shadow(0 0 24px rgba(231, 43, 18, 0.25));
}

.side-nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    border-color: var(--line);
    background: linear-gradient(90deg, rgba(231, 43, 18, 0.2), rgba(243, 196, 114, 0.08));
    box-shadow: inset 3px 0 0 var(--red);
}

.server-card1 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 7, 5, 0.82);
}

.server-card2 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 7, 5, 0.82);
}

.server-card3 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 7, 5, 0.82);
}

.server-card4 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 7, 5, 0.82);
}

.server-card5 {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 7, 5, 0.82);
}




.server-card strong,
.server-card small {
    display: block;
}

.server-card small {
    margin-top: 4px;
    color: var(--muted);
}

.status-on {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #50e27a;
    box-shadow: 0 0 16px #50e27a;
}

.status-off {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF0000;
    box-shadow: 0 0 16px #50e27a;
}

.content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 112px;
}

.menu-toggle {
    display: none;
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Cinzel, Georgia, serif;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--gold);
    text-shadow: 0 2px 18px rgba(231, 43, 18, 0.18);
}

.topbar p {
    margin: 8px 0 0;
    color: var(--muted);
}

.play-button,
.primary-action,
.ghost-action,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    font-weight: 800;
}

.play-button,
.primary-action,
.download-button {
    color: #180905;
    background: linear-gradient(135deg, var(--gold), #f6dfab 48%, #b87334);
    box-shadow: 0 12px 30px rgba(231, 43, 18, 0.18);
}

.ghost-action {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.035);
}

.realm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    grid-template-areas:
        "copy crest"
        "stats crest";
    align-items: center;
    gap: 26px 34px;
    min-height: 560px;
    padding: 46px;
    overflow: hidden;
    border: 1px solid rgba(243, 196, 114, 0.28);
    background:
        linear-gradient(90deg, rgba(8, 6, 5, 0.94) 0%, rgba(20, 12, 8, 0.88) 48%, rgba(68, 31, 14, 0.74) 100%),
        radial-gradient(circle at 72% 32%, rgba(231, 43, 18, 0.36), transparent 34%),
        repeating-linear-gradient(135deg, rgba(243, 196, 114, 0.07) 0 1px, transparent 1px 14px);
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.66), 0 24px 70px rgba(0, 0, 0, 0.34);
}

.realm-hero::before,
.realm-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.realm-hero::before {
    inset: 18px;
    border: 1px solid rgba(243, 196, 114, 0.16);
}

.realm-hero::after {
    right: -120px;
    bottom: -190px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(243, 196, 114, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 43, 18, 0.2), transparent 62%);
}

.realm-hero__content {
    position: relative;
    z-index: 1;
    grid-area: copy;
}

.realm-hero__content h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.6rem, 5.6vw, 6.2rem);
    line-height: 0.9;
    color: #ffe4ad;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 0 34px rgba(231, 43, 18, 0.24);
}

.realm-hero__content p {
    max-width: 640px;
    color: #d8bb8d;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.realm-hero__crest {
    position: relative;
    z-index: 1;
    grid-area: crest;
    display: grid;
    place-items: center;
    min-height: 440px;
}

.realm-hero__crest::before {
    content: "";
    position: absolute;
    width: min(430px, 94%);
    aspect-ratio: 1;
    border: 1px solid rgba(243, 196, 114, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(243, 196, 114, 0.13), transparent 58%),
        conic-gradient(from 45deg, transparent, rgba(231, 43, 18, 0.22), transparent, rgba(243, 196, 114, 0.18), transparent);
    filter: blur(0.2px);
}

.realm-hero__crest img {
    position: relative;
    width: min(520px, 108%);
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 34px rgba(231, 43, 18, 0.22));
}

.realm-hero__stats {
    position: relative;
    z-index: 1;
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
}

.realm-hero__stats article {
    min-height: 96px;
    padding: 18px;
    border-top: 1px solid rgba(243, 196, 114, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.realm-hero__stats strong {
    display: block;
    color: var(--gold);
    font-family: Cinzel, Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
}

.realm-hero__stats span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.stat-grid,
.content-grid,
.shop-grid,
.steps,
.community-layout,
.realm-dashboard,
.kingdom-strip {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

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

.stat-grid article,
.feature-block,
.timeline article,
.ranking-row,
.download-panel,
.steps article,
.shop-grid article,
.community-link {
    border: 1px solid var(--line);
    background: rgba(16, 11, 8, 0.86);
}

.stat-grid article {
    padding: 22px;
}

.stat-grid strong {
    display: block;
    color: var(--gold);
    font-family: Cinzel, Georgia, serif;
    font-size: 2.1rem;
}

.stat-grid span,
.feature-block p,
.timeline p,
.steps p,
.shop-grid p {
    color: var(--muted);
}

.content-grid,
.shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-block,
.shop-grid article {
    padding: 24px;
}

.feature-block svg,
.shop-grid svg,
.community-link svg {
    color: var(--red);
}

.feature-block h3,
.shop-grid h2,
.timeline h2 {
    margin-bottom: 8px;
    color: var(--gold);
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline article {
    padding: 28px;
}

.timeline span {
    color: var(--red);
    font-weight: 800;
}

.ranking-board {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 1fr 140px 160px;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 0 20px;
}

.ranking-row span,
.ranking-row em {
    color: var(--gold);
    font-style: normal;
    font-weight: 800;
}

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

.ranking-row.is-first {
    background: linear-gradient(90deg, rgba(231, 43, 18, 0.24), rgba(16, 11, 8, 0.92));
}

.download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
}

.download-panel h2 {
    margin: 0;
    color: var(--gold);
}

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

.steps article {
    padding: 22px;
}

.steps span {
    color: var(--red);
    font-weight: 900;
}

.shop-grid strong {
    color: var(--gold);
    font-size: 1.25rem;
}

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

.community-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 0 26px;
    color: var(--gold);
    font-weight: 800;
}

.realm-dashboard {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
}

.war-panel {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(243, 196, 114, 0.2);
    background:
        linear-gradient(145deg, rgba(24, 16, 11, 0.94), rgba(10, 8, 7, 0.92)),
        radial-gradient(circle at 90% 12%, rgba(231, 43, 18, 0.2), transparent 38%);
}

.war-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.war-panel h3 {
    margin: 12px 0 8px;
    color: var(--gold);
    font-size: 1.35rem;
}

.war-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.war-panel svg {
    color: var(--red);
}

.event-panel {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 16px;
    background:
        linear-gradient(120deg, rgba(52, 23, 12, 0.94), rgba(9, 7, 6, 0.94)),
        radial-gradient(circle at 80% 25%, rgba(231, 43, 18, 0.34), transparent 36%);
}

.event-panel svg {
    width: 64px;
    height: 64px;
    align-self: center;
    justify-self: end;
    color: var(--gold);
    filter: drop-shadow(0 0 20px rgba(231, 43, 18, 0.35));
}

.kingdom-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
    border: 1px solid rgba(243, 196, 114, 0.18);
    background: rgba(5, 4, 3, 0.64);
}

.kingdom-strip div {
    padding: 18px;
    border-left: 2px solid var(--red);
    background: linear-gradient(90deg, rgba(243, 196, 114, 0.08), transparent);
}

.kingdom-strip span,
.kingdom-strip strong {
    display: block;
}

.kingdom-strip span {
    color: var(--gold);
    font-family: Cinzel, Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.kingdom-strip strong {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.menu-backdrop {
    display: none;
}

@media (max-width: 980px) {
    .page-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        width: min(300px, 86vw);
        transition: transform 180ms ease;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .menu-open .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
        z-index: 10;
    }

    .content {
        width: min(100% - 28px, 880px);
        padding-top: 12px;
    }

    .topbar {
        grid-template-columns: 46px 1fr;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border: 1px solid var(--line);
        color: var(--gold);
        background: rgba(16, 11, 8, 0.88);
    }

    .play-button {
        grid-column: 2;
        justify-self: start;
    }

    .realm-hero,
    .content-grid,
    .shop-grid,
    .steps,
    .community-layout,
    .realm-dashboard,
    .kingdom-strip {
        grid-template-columns: 1fr;
    }

    .realm-hero {
        grid-template-areas:
            "copy"
            "crest"
            "stats";
        min-height: auto;
        padding: 28px;
    }

    .realm-hero__crest {
        min-height: 280px;
    }

    .realm-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

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

    .ranking-row {
        grid-template-columns: 52px 1fr;
        padding: 16px;
    }

    .download-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .realm-hero {
        padding: 24px;
        min-height: auto;
    }

    .realm-hero__content h2 {
        font-size: 2.45rem;
    }

    .realm-hero__stats {
        grid-template-columns: 1fr;
    }

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

    .brand {
        min-height: 120px;
    }
}

/* Home readability refresh */
.realm-hero {
    grid-template-columns: minmax(360px, 0.72fr) minmax(300px, 1fr);
    grid-template-areas:
        "copy crest"
        "stats stats";
    min-height: 460px;
    padding: 34px;
    align-items: center;
    gap: 22px 28px;
    background:
        linear-gradient(90deg, rgba(8, 6, 5, 0.96) 0%, rgba(18, 12, 9, 0.94) 48%, rgba(49, 24, 13, 0.82) 100%),
        radial-gradient(circle at 82% 38%, rgba(231, 43, 18, 0.28), transparent 34%);
}

.realm-hero::before {
    inset: 14px;
    border-color: rgba(243, 196, 114, 0.12);
}

.realm-hero__content {
    padding: 28px;
    border: 1px solid rgba(243, 196, 114, 0.26);
    background: linear-gradient(180deg, rgba(11, 8, 6, 0.92), rgba(23, 14, 9, 0.9));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.realm-hero__content h2 {
    max-width: 520px;
    font-size: clamp(2.15rem, 3.6vw, 3.8rem);
    line-height: 1.02;
    color: #f7d38f;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.realm-hero__content p {
    max-width: 500px;
    margin: 14px 0 0;
    color: #ead0a3;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 22px;
}

.realm-hero__crest {
    min-height: 310px;
    opacity: 0.92;
}

.realm-hero__crest::before {
    width: min(340px, 84%);
    opacity: 0.82;
}

.realm-hero__crest img {
    width: min(390px, 94%);
}

.realm-hero__stats {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.realm-hero__stats article {
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid rgba(243, 196, 114, 0.18);
    background: rgba(10, 7, 5, 0.76);
}

.realm-hero__stats strong {
    font-size: 1.7rem;
}

.realm-hero__stats span {
    margin-top: 5px;
    font-size: 0.88rem;
}

.realm-dashboard {
    grid-template-columns: 1.1fr 1fr 1fr;
}

.war-panel {
    min-height: 148px;
    padding: 20px;
}

.war-panel h3 {
    font-size: 1.16rem;
}

.war-panel p {
    font-size: 0.94rem;
}

@media (max-width: 980px) {
    .realm-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "crest"
            "stats";
        padding: 22px;
    }

    .realm-hero__content {
        padding: 22px;
    }

    .realm-hero__crest {
        min-height: 230px;
    }
}

@media (max-width: 560px) {
    .realm-hero__content h2 {
        font-size: 2rem;
    }

    .realm-hero__stats {
        grid-template-columns: 1fr;
    }
}


