/* 4Return - base component styles (royal.css layers the current theme on top) */

:root {
    --c-night: #0c0a08;
    --c-soot: #14110d;
    --c-iron: #1d1914;
    --c-iron-hi: #2a241c;
    --c-edge: #3b3024;
    --c-edge-hi: #5c4a33;

    --c-gold: #c9a45c;
    --c-gold-hi: #f0d68e;
    --c-gold-lo: #7d5c27;

    --c-bone: #e6dcc6;
    --c-ash: #a79a82;
    --c-dust: #756a58;

    --c-vellum: #e9dcbc;
    --c-vellum-lo: #d6c297;
    --c-ink: #2a1f13;
    --c-ink-soft: #5a4630;
    --c-rust: #8a2f1b;

    --c-blood: #8e1d12;
    --c-blood-hi: #c0392b;
    --c-moss: #6fbf5a;

    --c-valorian: #5b8fd6;
    --c-derion: #d0543f;

    --f-title: 'IM Fell English SC', 'Times New Roman', serif;
    --f-italic: 'IM Fell English', 'Times New Roman', serif;
    --f-text: 'Alegreya', Georgia, serif;
    --f-label: 'Alegreya Sans SC', 'Trebuchet MS', sans-serif;

    --wrap: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.classic {
    margin: 0;
    color: var(--c-bone);
    font: 400 16px/1.6 var(--f-text);
    background-color: var(--c-night);
    background-image:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201, 164, 92, 0.10), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 6px);
    min-height: 100vh;
    overflow-x: hidden;
}

.classic a {
    color: var(--c-gold);
    text-decoration: none;
}

.classic a:hover {
    color: var(--c-gold-hi);
}

.classic a:focus-visible,
.classic button:focus-visible {
    outline: 2px solid var(--c-gold-hi);
    outline-offset: 2px;
}

.classic p {
    margin: 0;
}

.classic h1,
.classic h2,
.classic h3 {
    margin: 0;
    font-weight: 400;
}

.c-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

.c-sep {
    color: var(--c-gold-lo);
    font-size: 0.6em;
    margin: 0 0.6em;
    vertical-align: middle;
}

/* ---------- Top strip ---------- */

.c-topbar {
    background: linear-gradient(#060504, #110e0b);
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 var(--c-edge);
    font: 500 13px/1 var(--f-label);
    letter-spacing: 0.04em;
    color: var(--c-ash);
}

.c-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
}

.c-topbar-left,
.c-topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
}

.c-topbar strong {
    color: var(--c-bone);
    font-weight: 700;
}

.c-topbar-greet strong {
    color: var(--c-gold-hi);
}

.c-inline-form {
    display: inline;
    margin: 0;
}

.c-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--c-gold);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.c-linkbtn:hover {
    color: var(--c-gold-hi);
}

.c-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.c-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #555;
}

.is-online .c-led {
    background: radial-gradient(circle at 35% 35%, #d8ffc9, var(--c-moss) 55%, #2f6b22);
    box-shadow: 0 0 6px var(--c-moss);
    animation: c-pulse 2.4s ease-in-out infinite;
}

.is-offline .c-led {
    background: radial-gradient(circle at 35% 35%, #ffb4a8, var(--c-blood-hi) 55%, #5a0f08);
}

.is-online strong {
    color: var(--c-moss);
}

.is-offline strong {
    color: var(--c-blood-hi);
}

@keyframes c-pulse {
    50% {
        box-shadow: 0 0 1px var(--c-moss);
    }
}

/* ---------- Main menu ---------- */

.c-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(180deg, #2c251c 0%, #1a1611 48%, #120f0b 52%, #1b1712 100%);
    border-top: 1px solid var(--c-edge-hi);
    border-bottom: 2px solid #000;
    box-shadow: 0 1px 0 var(--c-gold-lo), 0 8px 18px rgba(0, 0, 0, 0.6);
}

.c-menu-inner {
    display: flex;
    align-items: center;
}

.c-menu-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.c-menu-list li {
    position: relative;
    display: flex;
}

.c-menu-list li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--c-gold-lo);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 1px #000;
}

.c-menu-list a {
    display: block;
    padding: 15px 22px 14px;
    font: 400 17px/1 var(--f-title);
    letter-spacing: 0.06em;
    color: var(--c-bone);
    text-shadow: 0 1px 0 #000;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.c-menu-list a::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.c-menu-list a:hover,
.c-menu-list a.is-active {
    color: var(--c-gold-hi);
    background: radial-gradient(ellipse 80% 90% at 50% 100%, rgba(201, 164, 92, 0.18), transparent 70%);
}

.c-menu-list a:hover::after,
.c-menu-list a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.c-menu-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    flex-direction: column;
    background: none;
    border: 1px solid var(--c-edge-hi);
    padding: 9px 10px;
    margin: 8px 0;
    cursor: pointer;
}

.c-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-gold);
}

.c-menu-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Herald ticker ---------- */

.c-ticker {
    background: linear-gradient(#18140f, #0f0d0a);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.c-ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
}

.c-ticker-label {
    flex: 0 0 auto;
    font: 800 12px/1 var(--f-label);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1b130a;
    background: linear-gradient(#f0d68e, #c9a45c 50%, #a88338 51%, #c9a45c);
    padding: 6px 18px 6px 10px;
    border: 1px solid #000;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}

.c-ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.c-ticker-reel {
    display: flex;
    width: max-content;
    animation: c-scroll 48s linear infinite;
}

.c-ticker-track:hover .c-ticker-reel,
.c-ticker-track:focus-within .c-ticker-reel {
    animation-play-state: paused;
}

.c-ticker-set {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.c-ticker-set a {
    font: italic 400 16px/1 var(--f-italic);
    color: var(--c-bone);
    padding: 0 4px;
}

.c-ticker-set a b {
    font: 700 12px/1 var(--f-label);
    font-style: normal;
    letter-spacing: 0.08em;
    color: var(--c-gold);
    margin-right: 6px;
}

.c-ticker-set a:hover {
    color: var(--c-gold-hi);
}

.c-ticker-dot {
    color: var(--c-gold-lo);
    margin: 0 18px;
    font-size: 12px;
}

@keyframes c-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Flash messages ---------- */

.c-flashes {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.c-flash {
    padding: 11px 16px;
    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font: 500 15px/1.4 var(--f-text);
    border-left-width: 4px;
}

.c-flash-success {
    background: #1c2a17;
    border-left-color: var(--c-moss);
}

.c-flash-error {
    background: #2e1511;
    border-left-color: var(--c-blood-hi);
}

.c-flash-info {
    background: #2a2415;
    border-left-color: var(--c-gold);
}

/* ---------- Page grid ---------- */

.c-main {
    padding-top: 26px;
    padding-bottom: 40px;
}

.c-columns {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 250px;
    gap: 22px;
    align-items: start;
}

.c-side {
    display: grid;
    gap: 20px;
}

.c-center {
    display: grid;
    gap: 22px;
}

/* ---------- Framed box ---------- */

.c-box {
    position: relative;
    background: linear-gradient(180deg, var(--c-iron) 0%, var(--c-soot) 100%);
    border: 1px solid #000;
    box-shadow:
        inset 0 0 0 1px var(--c-edge),
        inset 0 0 0 2px #000,
        0 10px 24px rgba(0, 0, 0, 0.55);
}

.c-box::before,
.c-box::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--c-gold-hi), var(--c-gold-lo) 70%);
    box-shadow: 0 1px 1px #000;
    bottom: 6px;
    z-index: 2;
}

.c-box::before {
    left: 6px;
}

.c-box::after {
    right: 6px;
}

.c-box-title {
    position: relative;
    margin: 3px 3px 0 !important;
    padding: 11px 30px 10px;
    text-align: center;
    font: 400 18px/1.1 var(--f-title) !important;
    letter-spacing: 0.08em;
    color: var(--c-gold-hi);
    text-shadow: 0 1px 0 #000, 0 0 12px rgba(201, 164, 92, 0.35);
    background:
        linear-gradient(180deg, #3a3024 0%, #241e17 50%, #1a1511 51%, #221c15 100%);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(240, 214, 142, 0.18), 0 1px 0 var(--c-edge);
}

.c-box-title::before,
.c-box-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--c-gold);
    box-shadow: 0 0 0 1px #000;
    transform: translateY(-50%) rotate(45deg);
}

.c-box-title::before {
    left: 12px;
}

.c-box-title::after {
    right: 12px;
}

.c-box-body {
    padding: 16px 16px 22px;
}

.c-box-body-flush {
    padding: 4px 3px 22px;
}

.c-box-note {
    padding: 14px 16px 4px;
    color: var(--c-ash);
    font-style: italic;
}

.c-box-link {
    display: block;
    text-align: right;
    padding: 10px 16px 0;
    font: 700 13px/1 var(--f-label);
    letter-spacing: 0.06em;
}

.c-muted {
    color: var(--c-ash);
    font-style: italic;
    font-size: 15px;
    margin-bottom: 12px !important;
}

.c-account-name {
    font: 400 22px/1.1 var(--f-title);
    color: var(--c-gold-hi);
    margin: -6px 0 14px !important;
    word-break: break-word;
}

/* ---------- Buttons ---------- */

.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px 9px;
    border: 1px solid #000;
    font: 800 14px/1 var(--f-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.c-btn:hover {
    filter: brightness(1.14);
}

.c-btn:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

.c-btn-block {
    display: flex;
    width: 100%;
}

.c-btn-block + .c-btn-block {
    margin-top: 8px;
}

.c-btn-lg {
    padding: 14px 24px 13px;
    font-size: 15px;
}

.classic .c-btn-gold {
    color: #24190a;
    text-shadow: 0 1px 0 rgba(255, 240, 200, 0.55);
    background: linear-gradient(180deg, #f6e2a6 0%, #d8b464 46%, #b58d3e 54%, #c9a45c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 2px 0 #000;
}

.classic .c-btn-gold:hover {
    color: #24190a;
}

.classic .c-btn-red {
    color: #fbe9dc;
    text-shadow: 0 1px 0 #000;
    background: linear-gradient(180deg, #c4412e 0%, #8e1d12 48%, #6f140b 54%, #861c11 100%);
    box-shadow: inset 0 1px 0 rgba(255, 190, 170, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 2px 0 #000;
}

.classic .c-btn-red:hover {
    color: #fff;
}

.classic .c-btn-ink {
    color: var(--c-vellum);
    background: linear-gradient(180deg, #4a3825, #2a1f13);
    box-shadow: inset 0 1px 0 rgba(255, 230, 190, 0.2), 0 2px 0 rgba(0, 0, 0, 0.45);
}

.classic .c-btn-ink:hover {
    color: #fff;
}

/* ---------- Link lists ---------- */

.c-linklist {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.c-linklist li {
    border-top: 1px dotted var(--c-edge-hi);
}

.c-linklist a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 2px;
    font-size: 15px;
    color: var(--c-bone);
}

.c-linklist a::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--c-gold-lo);
    transform: rotate(45deg);
    flex: 0 0 auto;
    transition: background-color 0.15s ease;
}

.c-linklist a:hover {
    color: var(--c-gold-hi);
}

.c-linklist a:hover::before {
    background: var(--c-gold-hi);
}

.c-linklist-lg {
    margin: 0;
}

.c-linklist-lg li:first-child {
    border-top: 0;
}

.c-linklist-lg a {
    padding: 9px 2px;
    font-size: 16px;
}

/* ---------- Download plaque ---------- */

.classic .c-download {
    display: grid;
    justify-items: center;
    padding: 18px 12px 16px;
    color: #24190a;
    text-align: center;
    border: 1px solid #000;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 70%),
        linear-gradient(180deg, #f3dc98 0%, #d3ad5c 45%, #a8802f 55%, #c19a4f 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 240, 200, 0.35),
        inset 0 0 0 4px rgba(90, 60, 20, 0.5),
        0 10px 24px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.classic .c-download::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    animation: c-shine 5s ease-in-out infinite;
}

.classic .c-download:hover {
    color: #1a1207;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.c-download-over,
.c-download-under {
    font: 800 12px/1 var(--f-label);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.c-download-main {
    font: 400 34px/1.05 var(--f-title);
    letter-spacing: 0.04em;
    margin: 4px 0 3px;
    text-shadow: 0 1px 0 rgba(255, 245, 215, 0.7);
}

@keyframes c-shine {
    0%, 60% {
        left: -60%;
    }
    100% {
        left: 130%;
    }
}

/* ---------- Server info table ---------- */

.c-kv {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.c-kv th,
.c-kv td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

.c-kv tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.c-kv th {
    white-space: nowrap;
    text-align: left;
    font: 700 13px/1.2 var(--f-label);
    letter-spacing: 0.06em;
    color: var(--c-ash);
}

.c-kv td {
    text-align: right;
    color: var(--c-bone);
    font-weight: 500;
}

.c-pill {
    display: inline-block;
    padding: 3px 8px 2px;
    font: 800 11px/1 var(--f-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid #000;
}

.c-pill.is-online {
    color: #0f230a;
    background: linear-gradient(#a8e38f, #5fa84a);
}

.c-pill.is-offline {
    color: #fde5df;
    background: linear-gradient(#d0543f, #7c1a0f);
}

/* ---------- Community ---------- */

.classic .c-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--c-bone);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px var(--c-edge);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.classic .c-social + .c-social {
    margin-top: 8px;
}

.classic .c-social svg {
    color: var(--c-gold);
    flex: 0 0 auto;
}

.c-social span {
    display: grid;
    line-height: 1.2;
}

.c-social b {
    font: 700 15px/1.2 var(--f-label);
    letter-spacing: 0.06em;
}

.c-social small {
    font-style: italic;
    color: var(--c-ash);
    font-size: 13px;
}

.classic .c-social:hover {
    color: var(--c-gold-hi);
    background: rgba(201, 164, 92, 0.08);
}

.c-valorian {
    color: var(--c-valorian);
}

.c-derion {
    color: var(--c-derion);
}

.c-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #000;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 1px 0 var(--c-edge);
    margin: 0 6px 6px;
}

.c-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.c-steps li + li {
    border-left: 1px solid #000;
    box-shadow: inset 1px 0 0 var(--c-edge);
}

.c-step-num {
    flex: 0 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font: 400 16px/1 var(--f-title);
    color: var(--c-gold-hi);
    z-index: 0;
}

.c-step-num::before {
    content: '';
    position: absolute;
    inset: 6px;
    z-index: -1;
    border: 1px solid var(--c-gold-lo);
    background: #0d0b08;
    box-shadow: 0 0 0 3px #000;
    transform: rotate(45deg);
}

.c-step-text {
    font-size: 15px;
    line-height: 1.3;
    color: var(--c-ash);
}

.c-step-text b {
    color: var(--c-bone);
    font-weight: 700;
}

/* ---------- Parchment news ---------- */

.c-parchment {
    margin: 0 3px 3px;
    padding: 8px 26px 26px;
    color: var(--c-ink);
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255, 250, 235, 0.55), transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(150, 105, 45, 0.22), transparent 55%),
        linear-gradient(180deg, var(--c-vellum) 0%, var(--c-vellum-lo) 100%);
    box-shadow:
        inset 0 0 50px rgba(110, 70, 25, 0.38),
        inset 0 0 0 1px rgba(90, 60, 25, 0.5);
}

.c-news {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(90, 60, 25, 0.45) 15%, rgba(90, 60, 25, 0.45) 85%, transparent) 1;
}

.c-news:last-of-type {
    border-bottom: 0;
}

.c-news-date {
    display: grid;
    align-self: start;
    justify-items: center;
    align-content: start;
    padding: 8px 0 15px;
    background: linear-gradient(180deg, #3b2a18, #231809);
    color: var(--c-vellum);
    border: 1px solid #1a1108;
    box-shadow: inset 0 0 0 1px rgba(240, 214, 142, 0.25), 2px 2px 0 rgba(60, 40, 15, 0.25);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
}

.c-news-day {
    font: 400 28px/1 var(--f-title);
    color: var(--c-gold-hi);
}

.c-news-month {
    font: 800 12px/1 var(--f-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 4px;
}

.c-news-year {
    font: 500 11px/1 var(--f-label);
    color: #bda57a;
    margin-top: 3px;
    letter-spacing: 0.08em;
}

.c-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font: 500 13px/1.2 var(--f-label);
    letter-spacing: 0.04em;
    color: var(--c-ink-soft);
}

.c-news-meta b {
    color: var(--c-ink);
}

.c-news-tag {
    font: 800 11px/1 var(--f-label);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 8px 3px;
    color: #fff8ea;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tag-event { background: #5d3a8c; }
.tag-update { background: #3e6b2c; }
.tag-announcement { background: #9a5b10; }
.tag-maintenance { background: #8e1d12; }
.tag-news { background: #5a4630; }

.c-news-title {
    margin: 7px 0 6px !important;
    font: 400 24px/1.2 var(--f-title) !important;
}

.classic .c-news-title a {
    color: var(--c-ink);
    background-image: linear-gradient(var(--c-rust), var(--c-rust));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.classic .c-news-title a:hover {
    color: var(--c-rust);
    background-size: 100% 1px;
}

.c-news-excerpt {
    color: #3e2f1d;
    font-size: 16px;
    line-height: 1.6;
}

.classic .c-news-more {
    display: inline-block;
    margin-top: 8px;
    font: italic 400 16px/1 var(--f-italic);
    color: var(--c-rust);
}

.classic .c-news-more:hover {
    color: #5a1a0c;
}

.c-parchment-foot {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(90, 60, 25, 0.35);
}

.c-empty {
    text-align: center;
    padding: 40px 10px 22px;
    color: var(--c-ink-soft);
    font-style: italic;
}

.c-empty-title {
    font: 400 22px/1.2 var(--f-title);
    font-style: normal;
    color: var(--c-ink);
    margin-bottom: 6px !important;
}

/* ---------- War horns (battles) ---------- */

.c-battles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-battle {
    display: grid;
    gap: 3px;
    padding: 10px 14px 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

.c-battle::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--ev, var(--c-gold));
    box-shadow: 0 0 8px var(--ev, var(--c-gold));
}

.c-battle-name {
    font: 700 15px/1.2 var(--f-label);
    letter-spacing: 0.04em;
    color: var(--ev, var(--c-bone));
}

.c-battle-when {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.c-battle-time {
    color: var(--c-ash);
}

.c-countdown {
    font: 700 13px/1 var(--f-label);
    letter-spacing: 0.06em;
    color: var(--c-bone);
    font-variant-numeric: tabular-nums;
}

.c-countdown.is-live {
    color: var(--c-blood-hi);
    animation: c-blink 1s steps(2, start) infinite;
}

@keyframes c-blink {
    to {
        visibility: hidden;
    }
}

/* ---------- Two crowns ---------- */

.c-realm {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
}

.c-realm-side {
    display: grid;
    justify-items: center;
    gap: 3px;
}

.c-realm-crest {
    display: grid;
    place-items: center;
    width: 44px;
    height: 50px;
    font: 400 22px/1 var(--f-title);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    padding-bottom: 8px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.c-valorian .c-realm-crest {
    background: linear-gradient(180deg, #7eaaf0, #2f5ea8);
    color: #fff;
}

.c-derion .c-realm-crest {
    background: linear-gradient(180deg, #ee7a64, #8e2717);
    color: #fff;
}

.c-realm-name {
    font: 700 14px/1 var(--f-label);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.c-realm-motto {
    font: italic 400 14px/1.2 var(--f-italic);
    color: var(--c-ash);
}

.c-realm-vs {
    font: italic 400 18px/1 var(--f-italic);
    color: var(--c-dust);
    padding: 0 6px;
}

.c-crowns-text {
    margin: 16px 0 14px !important;
    padding-top: 14px;
    border-top: 1px dotted var(--c-edge-hi);
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-ash);
}

/* ---------- Footer ---------- */

.c-footer {
    margin-top: 20px;
    padding: 30px 0 34px;
    text-align: center;
    background: linear-gradient(#0e0c09, #050403);
    border-top: 1px solid #000;
    box-shadow: inset 0 1px 0 var(--c-edge);
}

.c-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
}

.c-footer-links li + li::before {
    content: '|';
    color: var(--c-edge-hi);
    margin: 0 12px;
}

.c-footer-links a {
    font: 700 14px/1 var(--f-label);
    letter-spacing: 0.06em;
    color: var(--c-ash);
}

.c-footer-links a:hover {
    color: var(--c-gold-hi);
}

.c-footer-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    margin: 22px auto 16px;
    color: var(--c-gold-lo);
    font-size: 10px;
}

.c-footer-rule::before,
.c-footer-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold-lo));
}

.c-footer-rule::after {
    background: linear-gradient(270deg, transparent, var(--c-gold-lo));
}

.c-footer-copy {
    font-size: 14px;
    color: var(--c-ash);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .c-columns {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .c-center {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 860px) {
    .c-menu-toggle {
        display: flex;
    }

    .c-menu-inner {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .c-menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 0 0 10px;
        border-top: 1px solid var(--c-edge);
    }

    .c-menu-list.is-open {
        display: flex;
    }

    .c-menu-list li + li::before {
        display: none;
    }

    .c-menu-list li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    }

    .c-menu-list a {
        width: 100%;
        padding: 14px 6px;
    }

    .c-menu-list a::after {
        left: 6px;
        right: auto;
        width: 60px;
    }

    .c-steps {
        grid-template-columns: 1fr;
    }

    .c-steps li + li {
        border-left: 0;
        box-shadow: inset 0 1px 0 var(--c-edge);
        border-top: 1px solid #000;
    }
}

@media (max-width: 640px) {
    .c-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-topbar-inner {
        justify-content: center;
    }

    .c-topbar-left {
        justify-content: center;
    }

    .c-parchment {
        padding: 4px 16px 20px;
    }

    .c-news {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .c-news-date {
        display: flex;
        align-items: baseline;
        gap: 6px;
        justify-self: start;
        padding: 6px 12px;
        clip-path: none;
    }

    .c-news-month,
    .c-news-year {
        margin-top: 0;
    }

    .c-news-day {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-ticker-reel,
    .c-download::after,
    .is-online .c-led,
    .c-countdown.is-live {
        animation: none;
    }

    .c-ticker-track {
        overflow-x: auto;
    }
}

/* ---------- Layout helpers ---------- */

.c-stack {
    display: grid;
    gap: 22px;
    align-content: start;
}

.c-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.c-auth {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.c-auth-wide {
    max-width: 620px;
}

.c-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.c-text-center {
    text-align: center;
}

/* ---------- Page header ---------- */

.c-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 var(--c-edge);
}

.c-page-kicker {
    font: italic 400 17px/1 var(--f-italic);
    color: var(--c-gold);
}

.c-page-title {
    margin: 6px 0 0 !important;
    font: 400 clamp(30px, 4vw, 42px)/1.05 var(--f-title) !important;
    color: var(--c-bone);
    text-shadow: 0 2px 0 #000;
}

.c-page-lead {
    margin-top: 8px !important;
    max-width: 640px;
    color: var(--c-ash);
    font-size: 17px;
}

.c-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Buttons (extras) ---------- */

button.c-btn {
    font-family: var(--f-label);
}

.classic .c-btn-ghost {
    color: var(--c-bone);
    background: linear-gradient(180deg, #2a241c, #16120e);
    box-shadow: inset 0 0 0 1px var(--c-edge-hi), 0 2px 0 #000;
}

.classic .c-btn-ghost:hover {
    color: var(--c-gold-hi);
}

.c-btn-sm {
    padding: 7px 12px 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.c-btn[disabled],
.c-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Alerts ---------- */

.c-alert {
    padding: 12px 16px;
    border: 1px solid #000;
    border-left: 4px solid var(--c-gold);
    background: #2a2415;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    font-size: 15px;
    line-height: 1.5;
}

.c-alert + .c-alert {
    margin-top: 10px;
}

.c-alert-success {
    background: #1c2a17;
    border-left-color: var(--c-moss);
}

.c-alert-error {
    background: #2e1511;
    border-left-color: var(--c-blood-hi);
}

.c-alert-warning {
    background: #2e2410;
    border-left-color: #e0a030;
}

.c-parchment .c-alert {
    color: var(--c-bone);
}

/* ---------- Forms ---------- */

.c-form {
    display: grid;
    gap: 16px;
}

.c-field {
    display: grid;
    gap: 6px;
}

.c-label {
    font: 700 13px/1.2 var(--f-label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-ash);
}

.c-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--c-bone);
    font: 400 16px/1.3 var(--f-text);
    background: #0d0b08;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--c-edge);
    transition: box-shadow 0.15s ease;
}

.c-input::placeholder {
    color: var(--c-dust);
    font-style: italic;
}

.c-input:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--c-gold);
}

.c-input.input-validation-error {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--c-blood-hi);
}

textarea.c-input {
    min-height: 120px;
    resize: vertical;
}

select.c-input {
    appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-gold) 50%), linear-gradient(135deg, var(--c-gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.c-hint {
    font-size: 13px;
    font-style: italic;
    color: var(--c-dust);
}

.classic .field-validation-error,
.c-field-error {
    font: 500 13px/1.3 var(--f-label);
    letter-spacing: 0.03em;
    color: #f07a62;
}

.classic .validation-summary-errors {
    padding: 12px 16px;
    border: 1px solid #000;
    border-left: 4px solid var(--c-blood-hi);
    background: #2e1511;
    color: #f5d5cc;
    font-size: 15px;
}

.classic .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.classic .validation-summary-valid {
    display: none;
}

.c-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--c-ash);
    cursor: pointer;
}

.c-check input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--c-gold);
}

.c-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
}

.c-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.c-form-foot {
    margin-top: 18px !important;
    padding-top: 16px;
    border-top: 1px dotted var(--c-edge-hi);
    text-align: center;
    font-size: 15px;
    color: var(--c-ash);
}

.c-captcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

.c-copy {
    display: flex;
    gap: 8px;
}

.c-copy .c-input {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
}

/* ---------- Prose (terms, news articles) ---------- */

.c-prose {
    font-size: 17px;
    line-height: 1.7;
}

.c-prose > * + * {
    margin-top: 14px !important;
}

.c-prose h2 {
    font: 400 26px/1.2 var(--f-title) !important;
    margin-top: 28px !important;
}

.c-prose h3 {
    font: 400 21px/1.25 var(--f-title) !important;
    margin-top: 22px !important;
}

.c-prose ul,
.c-prose ol {
    padding-left: 22px;
}

.c-prose li + li {
    margin-top: 6px;
}

.c-prose img {
    max-width: 100%;
    height: auto;
}

.c-prose table {
    width: 100%;
    border-collapse: collapse;
}

.c-prose th,
.c-prose td {
    padding: 8px 10px;
    border: 1px solid rgba(90, 60, 25, 0.35);
    text-align: left;
}

.c-prose blockquote {
    margin: 0;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--c-gold-lo);
    font-style: italic;
}

.c-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold-lo), transparent);
}

.c-parchment .c-prose h2,
.c-parchment .c-prose h3 {
    color: var(--c-ink);
}

.c-parchment .c-prose a {
    color: var(--c-rust);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* News bodies come from a rich-text editor that stamps colours meant for the old dark theme. */
.c-parchment .c-prose [style] {
    color: inherit !important;
    background-color: transparent !important;
}

.c-box-body .c-prose h2,
.c-box-body .c-prose h3 {
    color: var(--c-gold-hi);
}

/* ---------- Tables ---------- */

.c-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.c-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.c-table th {
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    font: 700 12px/1.2 var(--f-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-gold);
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 0 var(--c-edge);
}

.c-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.c-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.c-table tbody tr:hover {
    background: rgba(201, 164, 92, 0.06);
}

.c-table .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.c-parchment .c-table th {
    color: var(--c-ink);
    background: rgba(90, 60, 25, 0.12);
    border-bottom-color: rgba(90, 60, 25, 0.45);
    box-shadow: none;
}

.c-parchment .c-table td {
    border-bottom-color: rgba(90, 60, 25, 0.25);
    box-shadow: none;
}

/* ---------- Stat tiles ---------- */

.c-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.c-stat {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
    border: 1px solid #000;
    background: linear-gradient(180deg, var(--c-iron) 0%, var(--c-soot) 100%);
    box-shadow: inset 0 0 0 1px var(--c-edge), inset 0 2px 0 1px rgba(201, 164, 92, 0.12), 0 8px 18px rgba(0, 0, 0, 0.5);
}

.c-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.c-stat-label {
    font: 700 12px/1.2 var(--f-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ash);
}

.c-stat-value {
    font: 400 30px/1.1 var(--f-title);
    color: var(--c-gold-hi);
    word-break: break-word;
}

.c-stat-note {
    font-size: 14px;
    color: var(--c-dust);
}

/* ---------- Badges & chips ---------- */

.c-badge {
    display: inline-block;
    padding: 4px 8px 3px;
    font: 800 11px/1 var(--f-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff8ea;
    background: #5a4630;
    border: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.c-badge-gold { background: #9a7a2c; color: #1b130a; }
.c-badge-green { background: #3e6b2c; }
.c-badge-red { background: #8e1d12; }
.c-badge-blue { background: #2f5ea8; }
.c-badge-purple { background: #5d3a8c; }
.c-badge-muted { background: #3a3228; color: var(--c-ash); }

.c-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.classic .c-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 7px;
    font: 700 13px/1 var(--f-label);
    letter-spacing: 0.08em;
    color: var(--c-ash);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px var(--c-edge);
    cursor: pointer;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.classic .c-chip:hover {
    color: var(--c-gold-hi);
}

.classic .c-chip.is-active {
    color: var(--c-gold-hi);
    box-shadow: inset 0 0 0 1px var(--c-gold), 0 0 10px rgba(201, 164, 92, 0.2);
}

/* ---------- Cards ---------- */

.c-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #000;
    background: linear-gradient(180deg, var(--c-iron) 0%, var(--c-soot) 100%);
    box-shadow: inset 0 0 0 1px var(--c-edge), 0 8px 18px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.c-card-title {
    font: 400 21px/1.2 var(--f-title);
    color: var(--c-gold-hi);
}

.c-card-meta {
    font: 500 13px/1.3 var(--f-label);
    letter-spacing: 0.05em;
    color: var(--c-ash);
}

a.c-card:hover,
.c-card.is-selected {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--c-gold), 0 10px 22px rgba(0, 0, 0, 0.6);
}

/* ---------- Pager ---------- */

.c-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.c-pager a,
.c-pager span {
    min-width: 38px;
    padding: 8px 10px 7px;
    text-align: center;
    font: 700 14px/1 var(--f-label);
    border: 1px solid #000;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 1px var(--c-edge);
}

.classic .c-pager a {
    color: var(--c-bone);
}

.c-pager .is-current {
    color: #1b130a;
    background: linear-gradient(180deg, #f0d68e, #c9a45c);
}

.c-pager .is-disabled {
    color: var(--c-dust);
}

/* ---------- Empty state ---------- */

.c-blank {
    padding: 36px 16px 30px;
    text-align: center;
    font-style: italic;
    color: var(--c-ash);
}

.c-blank-title {
    margin-bottom: 6px !important;
    font: 400 22px/1.2 var(--f-title);
    font-style: normal;
    color: var(--c-bone);
}

.c-parchment .c-blank {
    color: var(--c-ink-soft);
}

.c-parchment .c-blank-title {
    color: var(--c-ink);
}

/* ---------- Account panel ---------- */

.c-panel-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.c-panel-side {
    display: grid;
    gap: 20px;
}

.c-panel-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.c-panel-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px dotted var(--c-edge-hi);
}

.c-panel-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font: 400 22px/1 var(--f-title);
    color: #1b130a;
    border: 1px solid #000;
    background: radial-gradient(circle at 35% 30%, var(--c-gold-hi), var(--c-gold-lo));
    box-shadow: 0 0 0 2px var(--c-edge), 0 0 0 3px #000;
}

.c-panel-user-text {
    display: grid;
    min-width: 0;
}

.c-panel-user-text b {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 400 19px/1.2 var(--f-title);
    color: var(--c-gold-hi);
}

.c-panel-user-text small {
    font: 500 12px/1.3 var(--f-label);
    letter-spacing: 0.08em;
    color: var(--c-ash);
}

.c-sidenav {
    display: grid;
}

.classic .c-sidenav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    font-size: 16px;
    color: var(--c-bone);
    border-bottom: 1px dotted var(--c-edge);
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.c-sidenav a::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    background: var(--c-gold-lo);
    transform: rotate(45deg);
}

.classic .c-sidenav a:hover {
    color: var(--c-gold-hi);
    padding-left: 8px;
}

.classic .c-sidenav a.is-active {
    color: var(--c-gold-hi);
}

.c-sidenav a.is-active::before {
    background: var(--c-gold-hi);
    box-shadow: 0 0 6px var(--c-gold);
}

.classic .c-sidenav .c-sidenav-admin {
    margin-top: 10px;
    border-top: 1px solid var(--c-edge-hi);
    border-bottom: 0;
    padding-top: 12px;
    color: #f07a62;
}

/* ---------- Responsive (components) ---------- */

@media (max-width: 960px) {
    .c-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-panel-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-sidenav {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        column-gap: 16px;
    }
}

@media (max-width: 640px) {

    .c-page-title {
        font-size: 30px !important;
    }

    .c-stat-value {
        font-size: 24px;
    }

    .c-table th,
    .c-table td {
        padding: 8px 10px;
    }
}

/* reCAPTCHA v3: the note replaces the floating badge (allowed by Google when the note is shown) */
.c-captcha-note { margin: 4px 0 0; font-size: 12px; line-height: 1.5; text-align: center; opacity: 0.6; }
.c-captcha-note a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }
