/* Self-hosted Mooli Regular, SIL OFL 1.1. Upload the WOFF2 file separately before deploying. */
@font-face {
    font-family: "Mooli";
    src: url("../font/mooli-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Combined site styles, original cascading order preserved: site.css, ui.css, nav-reference.css, data-widgets.css */

/* --- site.css --- */
:root {
    --background: #090c12;
    --background-soft: #0e121a;
    --surface: #18171d;
    --surface-warm: #443A3B;
    --surface-warm-rgb: 68, 58, 59;
    --surface-raised: #211d25;
    --border: #6d5638;
    --border-soft: rgba(181, 139, 75, 0.35);
    --gold: #d7aa55;
    --gold-light: #f2d18a;
    --purple: #9d4edd;
    --purple-light: #c77dff;
    --purple-dark: #4f1b73;
    --text: #f4efe6;
    --muted: #aaa3a0;
    --success: #86df58;
    --danger: #ff8c8c;
    --container: 1180px;
    --radius: 10px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 50% -10%, rgba(111, 44, 143, 0.22), transparent 34rem),
        linear-gradient(rgba(9, 12, 18, 0.96), rgba(9, 12, 18, 0.98)),
        repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,0.012) 28px 29px),
        var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 13% 20%, rgba(199,125,255,.34) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 12%, rgba(242,209,138,.25) 0 1px, transparent 1.5px),
        radial-gradient(circle at 68% 58%, rgba(199,125,255,.16) 0 1px, transparent 1.5px);
    background-size: 170px 190px, 230px 260px, 310px 280px;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--gold); color: #111; border-radius: 6px; }
.skip-link:focus { top: 16px; }
.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
    position: relative;
    padding-top: 20px;
    background:
        linear-gradient(to bottom, rgba(6,8,12,.2), rgba(6,8,12,.9)),
        radial-gradient(ellipse at center top, rgba(115,55,143,.3), transparent 60%);
}

.brand-banner { position: relative; min-height: 188px; display: grid; place-items: center; }
.brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-decoration: none; text-transform: uppercase; filter: drop-shadow(0 10px 18px rgba(0,0,0,.75)); }
.brand::before, .brand::after { content: ""; position: absolute; top: 52%; width: 108px; height: 4px; background: linear-gradient(90deg, transparent, var(--gold)); }
.brand::before { right: calc(100% + 20px); }
.brand::after { left: calc(100% + 20px); transform: scaleX(-1); }
.brand-kicker { color: var(--purple-light); letter-spacing: .32em; font-size: .72rem; font-weight: 800; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5.1rem); font-weight: 900; line-height: .78; color: var(--gold-light); letter-spacing: .035em; text-shadow: 0 3px 0 #5f3b13, 0 0 24px rgba(215,170,85,.18); }
.brand-name--small { font-size: clamp(1.65rem, 4.5vw, 3.2rem); margin-top: 14px; }
.brand-crystals { position: absolute; inset: 0; pointer-events: none; }
.brand-crystals span { position: absolute; width: 58px; height: 76px; background: linear-gradient(145deg, #e7c5ff, #9d4edd 45%, #30104d); clip-path: polygon(50% 0, 100% 35%, 76% 100%, 24% 100%, 0 35%); box-shadow: 0 0 28px rgba(157,78,221,.45); }
.brand-crystals span:nth-child(1) { left: 25%; top: 23px; transform: rotate(-24deg) scale(.72); }
.brand-crystals span:nth-child(2) { right: 24%; top: 18px; transform: rotate(20deg); }
.brand-crystals span:nth-child(3) { left: 50%; bottom: 7px; transform: translateX(-50%) rotate(45deg) scale(.42); }

.nav-wrap {
    position: relative;
    z-index: 10;
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 10px 16px 10px 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
}
.nav-wrap::before, .nav-wrap::after { content: ""; position: absolute; top: 16px; bottom: 16px; width: 16px; border: 1px solid var(--border); transform: rotate(45deg); background: #111217; z-index: -1; }
.nav-wrap::before { left: -8px; border-width: 0 0 1px 1px; }
.nav-wrap::after { right: -8px; border-width: 1px 1px 0 0; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.primary-nav a { position: relative; padding: 14px 0; color: #d7d0c7; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-transform: uppercase; font-size: .84rem; letter-spacing: .045em; }
.primary-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 3px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--purple-light)); transition: left .2s, right .2s; box-shadow: 0 0 12px var(--purple); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--gold-light); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { left: 0; right: 0; }
.server-address { position: relative; min-width: 260px; display: grid; grid-template-columns: 1fr auto; gap: 0 14px; align-items: center; padding: 10px 14px; color: var(--text); background: rgba(var(--surface-warm-rgb), .35); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; text-align: left; }
.server-address__label { grid-column: 1; font-size: .68rem; color: var(--gold); text-transform: uppercase; letter-spacing: .13em; }
.server-address strong { grid-column: 1; font-size: .82rem; }
.copy-icon { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; color: white; border: 1px solid rgba(199,125,255,.6); border-radius: 6px; background: linear-gradient(145deg, #5f237e, #321143); }
.copy-feedback { position: absolute; right: 12px; top: calc(100% + 8px); color: var(--success); font-size: .75rem; }
.nav-toggle { display: none; width: 44px; height: 42px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-raised); }
.nav-toggle span:not(.sr-only) { display: block; width: 21px; height: 2px; margin: 4px auto; background: var(--gold-light); }

main { padding: 34px 0 70px; }
.fantasy-panel { position: relative; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(145deg, rgba(var(--surface-warm-rgb), .24), rgba(17,18,24,.94) 46%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 16px 42px rgba(0,0,0,.22); }
.fantasy-panel::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,209,138,.45), transparent); pointer-events: none; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.25rem); text-transform: uppercase; }
h2 { margin: 0 0 12px; color: var(--gold-light); font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { color: #eadcc3; }
p { color: var(--muted); }

.hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero--realm {
    background:
        linear-gradient(
            90deg,
            rgba(9,12,18,.94) 0%,
            rgba(9,12,18,.78) 30%,
            rgba(9,12,18,.30) 58%,
            rgba(9,12,18,.05) 100%
        ),
        url("../img/ui/therealm.webp") center right / cover no-repeat;
}
.hero__content {
    position: relative;
    z-index: 1;
    width: min(60%, 720px);
    padding: 48px 0 48px 30px;
}
.hero h1 span { display: block; color: var(--gold); text-shadow: 0 0 22px rgba(215,170,85,.16);font-size:115% }
.hero__lead { max-width: 620px; font-size: 1.04rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 1px solid var(--border); border-radius: 6px; font-family: Georgia, "Times New Roman", serif; font-weight: 800; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .18s, filter .18s, border-color .18s; }
.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(199,125,255,.65); outline-offset: 3px; }
.button--primary { color: white; background: linear-gradient(145deg, #6e278d, #341242); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 20px rgba(157,78,221,.16); }
.button--ghost { color: var(--gold-light); background: rgba(17,18,24,.7); }
.button--small { min-height: 40px; padding: 8px 14px; font-size: .76rem; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.text-link { color: var(--purple-light); font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.feature-card { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px; }
.feature-card__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
}
.feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.feature-card h2 { font-size: 1.2rem; }
.feature-card p { margin: 0 0 12px; font-size: .85rem; }
.feature-card a { color: var(--purple-light); font-size: .72rem; text-decoration: none; text-transform: uppercase; font-weight: 800; }

.server-strip { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); margin-top: 18px; padding: 20px 24px; }
.server-strip > div { display: flex; flex-direction: column; justify-content: center; padding: 0 24px; border-left: 1px solid rgba(215,170,85,.22); }
.server-strip > div:first-child { border-left: 0; padding-left: 0; }
.server-strip strong { color: #eadcc3; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.server-strip span:not(.status-dot):not(.eyebrow) { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(134,223,88,.7); }

.section-block { margin-top: 18px; padding: 28px; }
.section-heading { margin-bottom: 20px; }
.section-heading--split { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.product-card { padding: 12px; text-align: center; border: 1px solid rgba(215,170,85,.3); border-radius: 8px; background: linear-gradient(180deg, rgba(68,58,59,.35), rgba(12,14,20,.8)); }
.product-card__art { height: 140px; display: grid; place-items: center; color: var(--gold-light); font-size: 4rem; background: radial-gradient(circle, rgba(157,78,221,.26), transparent 65%); }
.product-card h3 { margin: 12px 0 5px; font-size: 1rem; }
.product-card p { margin: 0; color: var(--purple-light); font-weight: 800; }
.crystal-text { color: #c77dff; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.promo-panel {
    position: relative;
    min-height: 315px;
    display: flex;
    align-items: center;
    padding: 34px;
    overflow: hidden;
}
.promo-panel__content {
    position: relative;
    z-index: 2;
    width: min(58%, 430px);
}
.promo-panel p {
    max-width: 430px;
}
.promo-panel__image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .86;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.28) 18%, #000 46%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.28) 18%, #000 46%);
}
.promo-panel--vote::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(9,12,18,.98) 0%, rgba(9,12,18,.84) 42%, rgba(9,12,18,.12) 72%, rgba(9,12,18,.04) 100%);
}
.leaderboard-preview { padding: 30px; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 13px; margin-top: 7px; border: 1px solid rgba(215,170,85,.25); border-radius: 6px; background: rgba(9,12,18,.42); }
.rank-list a { text-decoration: none; }
.rank-list strong { color: #e8ddcf; font-size: .85rem; }
.rank-number { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; color: var(--gold-light); border: 1px solid rgba(215,170,85,.45); border-radius: 50%; font-family: Georgia, "Times New Roman", serif; font-weight: 800; background: rgba(68,58,59,.45); }
.leaderboard-preview .text-link { display: inline-block; margin-top: 18px; }

.page-hero { padding: 64px 20px 42px; text-align: center; }
.page-hero.leaderboards {background-image: url("/assets/img/ui/leaderboards.png"); background-repeat: no-repeat; background-size: cover; background-position: center; height: 280px;}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.notice, .form-success, .form-errors { margin: 18px 0; padding: 13px 16px; border-radius: 6px; background: rgba(157,78,221,.1); border: 1px solid rgba(199,125,255,.35); color: #ddd2e5; }
.form-success { background: rgba(134,223,88,.08); border-color: rgba(134,223,88,.35); }
.form-errors { background: rgba(255,140,140,.08); border-color: rgba(255,140,140,.35); color: #ffd6d6; }
.notice code { color: var(--gold-light); }

.leaderboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-list a { padding: 9px 15px; border: 1px solid rgba(215,170,85,.25); border-radius: 5px; color: #d5ccc6; text-decoration: none; font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; font-size: .76rem; font-weight: 800; }
.tab-list a.is-active { color: white; border-color: rgba(199,125,255,.55); background: linear-gradient(145deg, #5d217b, #341242); }
.player-search { display: flex; gap: 8px; }
input, select, textarea { width: 100%; color: var(--text); background: #0d1017; border: 1px solid rgba(215,170,85,.32); border-radius: 6px; padding: 12px 13px; }
.player-search input { width: 220px; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.leaderboard-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.leaderboard-table th, .leaderboard-table td { padding: 14px 15px; border-bottom: 1px solid rgba(215,170,85,.16); text-align: left; }
.leaderboard-table th { color: var(--gold); font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; font-size: .76rem; letter-spacing: .06em; }
.leaderboard-table tbody tr:hover { background: rgba(68,58,59,.22); }
.player-link { color: #f0e5d6; font-weight: 800; text-decoration: none; }
.empty-state { padding: 42px !important; color: var(--muted); text-align: center !important; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 24px; }
.pagination a { color: var(--purple-light); text-decoration: none; font-weight: 800; }
.pagination span { color: var(--muted); }

.profile-grid { display: grid; grid-template-columns: 310px 1fr; gap: 20px; }
.player-card { padding: 30px; text-align: center; }
.player-avatar { width: 132px; margin: 0 auto 20px; display: grid; place-items: center; }
.player-avatar span { font: 900 4rem Georgia, serif; color: var(--gold-light); }
.status-badge { display: inline-flex; align-items: center; margin-bottom: 20px; color: #c8c0bb; font-size: 1.2rem; }
dl { margin: 20px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid rgba(215,170,85,.16); }
dt { color: var(--muted); } dd { margin: 0; color: #eadcc3; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 25px; }
.stat-card span, .stat-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { color: var(--gold-light); font: 800 clamp(2rem, 5vw, 3.3rem) Georgia, serif; }
.profile-wide { grid-column: 1 / -1; padding: 28px; }
.empty-panel { padding: 50px; text-align: center; }

.store-layout { display: grid; grid-template-columns: 245px 1fr; gap: 22px; align-items: start; }
.store-sidebar { position: sticky; top: 16px; padding: 22px; }
.store-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.store-sidebar nav a { padding: 10px 12px; color: #c7bfba; text-decoration: none; border-radius: 5px; }
.store-sidebar nav a:hover, .store-sidebar nav a.is-active { color: var(--gold-light); background: rgba(68,58,59,.4); }
.cart-summary { display: grid; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(215,170,85,.2); }
.integration-label { padding: 7px 10px; border: 1px solid rgba(199,125,255,.35); border-radius: 999px; color: var(--purple-light); font-size: .72rem; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card { overflow: hidden; }
.store-card__art { min-height: 180px; display: grid; place-items: center; color: var(--gold-light); font-size: 5rem; background: radial-gradient(circle, rgba(157,78,221,.3), transparent 60%), linear-gradient(180deg, rgba(68,58,59,.4), rgba(12,14,20,.9)); }
.store-card__content { padding: 20px; }
.store-card__content h3 { margin: 0; font-size: 1.25rem; }
.store-card__content > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.store-card strong { color: var(--gold-light); font-size: 1.25rem; }
.info-callout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; margin-top: 22px; padding: 28px; }

.vote-grid { display: grid; grid-template-columns: 1fr;gap: 20px; }
@media (min-width: 900px) {
    .vote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.vote-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px; }
.vote-card__number { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--gold-light); border: 1px solid var(--border); background: rgba(68,58,59,.38); font: 800 1.5rem Georgia, serif; }
.vote-card h2 { font-size: 1.15rem; margin-bottom: 3px; }
.vote-card p { margin: 0; font-size: .82rem; }
.ornate-list { padding: 0; list-style: none; }
.ornate-list li { position: relative; padding: 7px 0 7px 25px; color: #c8c0bb; }
.ornate-list li::before { content: "◆"; position: absolute; left: 0; color: var(--purple-light); font-size: .75rem; }
.numbered-steps { padding: 0; list-style: none; }
.numbered-steps li { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #c8c0bb; }
.numbered-steps span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; color: var(--gold-light); border: 1px solid var(--border); }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule-card { padding: 28px; }
.rule-card__number { color: var(--purple-light); font: 800 2.2rem Georgia, serif; opacity: .75; }
.rule-card ul { padding-left: 20px; color: #c6bdb8; }
.rule-card li { margin: 9px 0; }
.faq-layout { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0 20px; }
.faq-item summary { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; color: #eadcc3; font-family: Georgia, "Times New Roman", serif; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--purple-light); font-size: 1.3rem; transition: transform .18s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin-top: 0; padding: 0 0 20px; }
.support-card { padding: 26px; }

.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.contact-form { display: grid; gap: 17px; padding: 28px; }
.contact-form label { display: grid; gap: 7px; color: #d9d0c9; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-sidebar { display: grid; gap: 16px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-page { padding: 100px 20px; text-align: center; }
.error-rune { color: rgba(199,125,255,.17); font: 900 clamp(7rem, 22vw, 15rem)/.8 Georgia, serif; }
.error-page p { max-width: 600px; margin-inline: auto; }
.debug-output { max-width: 900px; margin: 24px auto; padding: 16px; overflow: auto; text-align: left; background: #090b0f; border: 1px solid rgba(255,140,140,.35); }

.site-footer { padding: 0 0 30px; }
.footer-panel { display: grid; grid-template-columns: 1.7fr repeat(3, .7fr); gap: 35px; padding: 30px; }
.footer-brand { display: grid; grid-template-columns: 88px 1fr; gap: 18px; }
.footer-mark { display: grid; place-items: center; width: 88px; height: 88px; color: var(--gold-light); border: 2px solid var(--gold); transform: rotate(45deg); font: 900 1.8rem Georgia, serif; background: linear-gradient(145deg, #50206c, #231128); }
.footer-mark span { display: block; transform: rotate(-45deg); }
.footer-panel h2 { margin-bottom: 10px; font-size: .86rem; color: var(--gold); text-transform: uppercase; }
.footer-panel a { display: block; margin: 6px 0; color: var(--muted); text-decoration: none; font-size: .86rem; }
.footer-panel a:hover { color: var(--gold-light); }
.footer-panel p { margin: 5px 0; font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0 0; color: #777176; font-size: .75rem; }
.footer-bottom a { margin-right: 20px; }
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 1050px) {
    .nav-wrap { grid-template-columns: auto 1fr auto; padding-left: 14px; }
    .nav-toggle { display: block; }
    .primary-nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 18px; border: 1px solid var(--border); border-radius: 9px; background: #111217; box-shadow: var(--shadow); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 11px; }
    .server-address { grid-column: 3; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .store-grid { grid-template-columns: repeat(2, 1fr); }
    .vote-grid { grid-template-columns: 1fr; }
    .footer-panel { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .brand-banner { min-height: 145px; }
    .brand::before, .brand::after { display: none; }
    .brand-crystals span:nth-child(1) { left: 11%; }
    .brand-crystals span:nth-child(2) { right: 10%; }
    .server-address { min-width: 0; }
    .server-address__label, .server-address strong { display: none; }
    .hero {
        min-height: 420px;
        align-items: flex-end;
        background-position: 68% center;
    }
    .hero--realm {
        background:
            linear-gradient(
                180deg,
                rgba(9,12,18,.14) 0%,
                rgba(9,12,18,.46) 44%,
                rgba(9,12,18,.94) 100%
            ),
            url("../img/ui/therealm.webp") 68% center / cover no-repeat;
    }
    .hero__content {
        width: 100%;
        padding: 42px 10px;
        text-align: center;
    }
    .hero__lead { margin-inline: auto; }
    .button-row { justify-content: center; }
    .server-strip { grid-template-columns: repeat(2, 1fr); }
    .server-strip > div { min-height: 85px; border-left: 0; border-top: 1px solid rgba(215,170,85,.18); padding: 14px; }
    .server-strip > div:first-child { grid-column: 1 / -1; border-top: 0; padding: 8px 14px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .split-grid, .info-callout, .profile-grid, .store-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
    .store-sidebar { position: static; }
    .store-sidebar nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .leaderboard-toolbar { align-items: stretch; flex-direction: column; }
    .player-search input { width: 100%; }
    .rules-grid { grid-template-columns: 1fr; }
    .footer-panel { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 20px), var(--container)); }
    .brand-name { font-size: 2.65rem; }
    .brand-name--small { font-size: 1.7rem; }
    .nav-wrap { min-height: 60px; }
    .feature-grid, .product-grid, .store-grid, .profile-stats, .form-grid { grid-template-columns: 1fr; }
    .feature-card { grid-template-columns: 58px 1fr; padding: 18px; }
    .feature-card__icon { width: 56px; height: 56px; }
    .section-block, .promo-panel, .leaderboard-preview, .rule-card, .contact-form { padding: 20px; }
    .promo-panel { min-height: 330px; }
    .promo-panel__content { width: 100%; }
    .promo-panel__image {
        width: 100%;
        opacity: .38;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .promo-panel--vote::after {
        background: rgba(9,12,18,.68);
    }
    .section-heading--split { align-items: flex-start; flex-direction: column; }

    .sale-event-banner {
        padding: 22px 20px;
    }

    .sale-event-banner__meta {
        gap: .45rem;
    }
    .server-strip { grid-template-columns: 1fr; }
    .server-strip > div:first-child { grid-column: auto; }
    .rank-list li { grid-template-columns: 34px 1fr; }
    .rank-list strong { grid-column: 2; }
    .vote-card { grid-template-columns: auto 1fr; }
    .vote-card .button { grid-column: 1 / -1; }
    .footer-panel { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; grid-template-columns: 70px 1fr; }
    .footer-mark { width: 68px; height: 68px; }
    .footer-bottom { flex-direction: column; }
}



/* Homepage / store sale event banner base */
.sale-event-banner {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 22px 28px;
    text-align: center;
}

.sale-event-banner__name,
.sale-event-banner__meta {
    position: relative;
    z-index: 1;
}

.sale-event-banner__name {
    margin: 0;
    line-height: 1.08;
}

.sale-event-banner__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-top: 10px;
}

.sale-event-banner__discount {
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sale-event-banner__separator {
    opacity: .7;
}

.sale-event-banner__countdown {
    font-weight: 800;
}

.sale-event-banner[hidden] {
    display: none;
}

/* Store cart */
.cart-page {
    padding-bottom: 18px;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
}

.cart-item__art {
    height: 100%;
    min-height: 300px;
    align-self: center;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--gold-light);
    font-size: 3.2rem;
    background:
        radial-gradient(circle, rgba(157,78,221,.24), transparent 62%),
        linear-gradient(145deg, rgba(68,58,59,.34), rgba(12,14,20,.88));
}

.cart-item__art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.cart-item__body {
    min-width: 0;
    padding: 18px 20px 18px 0;
}

.cart-item .tebex-description {
    max-height: 260px;
    margin-top: 8px;
    padding-right: 8px;
    overflow: auto;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.cart-item__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cart-item__heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-item__body > p {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.cart-item__price {
    flex: 0 0 auto;
    color: var(--gold-light);
    font-size: 1.2rem;
}

.cart-item__price-group {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 8px;
}

.cart-sale-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .18rem .42rem;
    border-radius: .35rem;
    color: #fff;
    background: #a52222;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
}

.cart-item__original-price {
    color: var(--muted);
    font-size: .92rem;
    text-decoration: line-through;
    opacity: .72;
}

.cart-item__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 16px;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-form label,
.cart-item__fixed-quantity {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cart-quantity-form input {
    width: 68px;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid rgba(215,170,85,.32);
    border-radius: 8px;
    color: var(--text);
    background: rgba(9,12,18,.72);
}

.cart-remove-link {
    padding: 0;
    border: 0;
    color: var(--danger);
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cart-remove-link:hover {
    text-decoration: underline;
}

.cart-order-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px 20px;
}

.cart-order-summary__details {
    min-width: 0;
}

.cart-order-summary__details .eyebrow {
    margin-bottom: 4px;
}

.cart-order-summary__total {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cart-order-summary__total span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cart-order-summary__total strong {
    color: var(--gold-light);
    font-size: 1.5rem;
}

.cart-order-summary__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cart-username-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin-top: 5px;
    color: var(--muted);
    font-size: .84rem;
}

.cart-username-row > strong {
    color: var(--text);
}

.cart-username-edit {
    position: relative;
}

.cart-username-edit > summary {
    color: var(--purple-light);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    list-style: none;
    text-transform: uppercase;
}

.cart-username-edit > summary::-webkit-details-marker {
    display: none;
}

.cart-username-edit[open] > form {
    display: flex;
}

.cart-username-edit > form {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 20;
    width: min(340px, calc(100vw - 40px));
    display: none;
    align-items: end;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(215,170,85,.34);
    border-radius: 10px;
    background: #111218;
    box-shadow: var(--shadow);
}

.cart-username-edit label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cart-username-edit input {
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(215,170,85,.32);
    border-radius: 8px;
    color: var(--text);
    background: rgba(9,12,18,.92);
}

@media (max-width: 720px) {
    .cart-item {
        grid-template-columns: 184px minmax(0, 1fr);
        gap: 14px;
    }

    .cart-item__art {
        height: 92px;
        min-height: 92px;
    }

    .cart-item__body {
        padding: 14px 14px 14px 0;
    }

    .cart-item__heading {
        flex-direction: column;
        gap: 4px;
    }

    .cart-item__price-group {
        justify-content: flex-start;
    }

    .cart-order-summary {
        flex-direction: column;
    }

    .cart-order-summary__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item__art {
        height: 150px;
        min-height: 150px;
    }

    .cart-item__body {
        padding: 16px;
    }

    .cart-quantity-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .cart-order-summary__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* Store browser */
.store-page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 38px 42px 30px;
    overflow: hidden;
    border-radius: var(--radius);
    text-align: left;
}

.store-page-hero--graphic {
    background:
        linear-gradient(
            90deg,
            rgba(9,12,18,.98) 0%,
            rgba(9,12,18,.90) 30%,
            rgba(9,12,18,.48) 57%,
            rgba(9,12,18,.10) 100%
        ),
        url("../img/ui/store-hero.png") center right / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.store-page-hero h1 {
    position: relative;
    z-index: 1;
}

.store-page-hero p {
    position: relative;
    z-index: 1;
    max-width: 680px;
	padding: 10px 0;
    margin: 0;
    color: #d1c8c0;
}

.store-shell {
    display: grid;
    gap: 18px;
}

.store-account-bar {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
    border-bottom: 1px solid rgba(215,170,85,.24);
}

.store-account-bar__actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
}

.store-username-control {
    display: grid;
    gap: 5px;
    min-width: 220px;
}

.store-username-control > span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-username-control input {
    min-height: 48px;
    padding-block: 10px;
}

.store-cart-button {
    position: relative;
    min-width: 88px;
}

.store-cart-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid var(--background);
    border-radius: 999px;
    color: #fff;
    background: var(--purple);
    box-shadow: 0 0 14px rgba(157,78,221,.42);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: .7rem;
    font-weight: 400;
    line-height: 1;
}

.button.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.store-browser {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.store-browser .store-sidebar {
    position: sticky;
    top: 16px;
}

.store-browser .store-sidebar h2 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.store-browser .store-sidebar nav a {
    position: relative;
    border: 1px solid transparent;
}

.store-browser .store-sidebar nav a.is-active {
    color: #fff;
    border-color: rgba(199,125,255,.42);
    background:
        linear-gradient(
            135deg,
            rgba(109,39,141,.88),
            rgba(52,18,66,.92)
        );
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.035),
        0 6px 18px rgba(79,27,115,.18);
}


.store-results {
    min-width: 0;
}

.store-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.store-card--compact {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-card__detail-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.store-card__detail-trigger:hover .store-card__art img {
    transform: scale(1.035);
}

.store-card__detail-trigger:hover .store-card__name {
    color: var(--gold-light);
}

.store-card--compact .store-card__art {
    min-height: 180px;
    overflow: hidden;
}

.store-card--compact .store-card__art img {
	margin-top: 10px;
    width: 80%;
	max-height: 150px;
	object-fit: contain;
    transition: transform .2s ease;
}

.store-card__name {
    display: block;
    min-height: 62px;
    padding: 15px 16px 8px;
    color: #eadcc3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 800;
	text-align: center;
    line-height: 1.25;
    transition: color .18s ease;
}

.store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 8px 16px 16px;
}

.store-card__footer > strong {
    color: var(--gold-light);
    font-size: 1.2rem;
}

.store-package-dialog {
    width: min(660px, calc(100% - 32px));
    max-height: min(720px, calc(100vh - 48px));
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(215,170,85,.42);
    border-radius: 12px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(68,58,59,.98), rgba(17,18,24,.99) 48%);
    box-shadow:
        0 28px 90px rgba(0,0,0,.72),
        inset 0 0 0 1px rgba(255,255,255,.025);
}

.store-package-dialog::backdrop {
    background: rgba(4,6,10,.78);
    backdrop-filter: blur(4px);
}

.store-package-dialog__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 26px;
    display: grid;
    width: 38px;
    height: 38px;
    line-height: 30px;
    padding: 0;
    border: 1px solid rgba(215,170,85,.4);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(9,12,18,.88);
    cursor: pointer;
    font-size: 1.5rem;
}

.store-package-dialog__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
	padding: 0 0 0 6px;
}

.store-package-dialog__art {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 5rem;
    background:
        radial-gradient(circle, rgba(157,78,221,.3), transparent 60%),
        linear-gradient(145deg, rgba(68,58,59,.4), rgba(12,14,20,.9));
}

.store-package-dialog__art img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.store-package-dialog__content {
	max-height: 500px;
	overflow: auto;
    padding: 34px 32px 30px;
}

.store-package-dialog__content h2 {
    padding-right: 34px;
}

.store-package-dialog__content .store-username-control {
	margin-top:20px
}

.store-package-dialog__price {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: 1.3rem;
}

.store-package-dialog__content p {
    margin-bottom: 0;
    white-space: normal;
}

@media (max-width: 1050px) {
    .store-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .store-account-bar {
        justify-content: stretch;
    }

    .store-account-bar__actions {
        width: 100%;
    }

    .store-browser {
        grid-template-columns: 1fr;
    }

    .store-browser .store-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    .store-account-bar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .store-username-control {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .store-account-bar__actions .button {
        width: 100%;
    }

    .store-package-dialog__layout {
        grid-template-columns: 1fr;
    }

    .store-package-dialog__art {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .store-package-dialog__art img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .store-package-dialog__content {
        padding: 24px 22px;
    }
}

@media (max-width: 560px) {
    .store-grid--compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .store-account-bar__actions {
        grid-template-columns: 1fr;
    }

    .store-username-control {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .store-page-hero {
        min-height: 260px;
        padding: 30px 26px 24px;
    }

    .store-page-hero--graphic {
        background:
            linear-gradient(
                180deg,
                rgba(9,12,18,.36) 0%,
                rgba(9,12,18,.78) 54%,
                rgba(9,12,18,.96) 100%
            ),
            url("../img/ui/store-hero.png") 66% center / cover no-repeat;
    }
}


/* How to Join */
.join-page-hero {
    padding-bottom: 30px;
}

.join-connect {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 40px;
    align-items: center;
    padding: 28px 30px;
}

.join-connect__intro h2 {
    margin-bottom: 7px;
}

.join-connect__intro p:last-child {
    max-width: 560px;
    margin: 0;
}

.join-server-details {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.join-server-details > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 11px 15px;
    border: 1px solid rgba(215,170,85,.24);
    border-radius: 8px;
    background: rgba(9,12,18,.48);
}

.join-server-details span,
.join-hardware-grid > article > span,
.join-enhancement-card__label {
    color: var(--gold);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.join-server-details strong {
    color: var(--text);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: .95rem;
    white-space: nowrap;
}

.join-server-address strong {
    color: var(--purple-light);
}

.join-copy-button {
    align-self: stretch;
    white-space: nowrap;
}

.join-copy-feedback {
    grid-column: 1 / -1;
    min-height: 1.1em;
    color: var(--success);
    font-size: .75rem;
    text-align: right;
}

.join-section {
    margin-top: 34px;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.join-steps > li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px;
}

.join-step-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(215,170,85,.55);
    border-radius: 50%;
    color: var(--gold-light);
    background: linear-gradient(145deg, rgba(93,33,123,.68), rgba(26,15,33,.92));
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.join-steps h3,
.join-enhancement-card h3,
.join-hardware-grid h3 {
    margin: 1px 0 6px;
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
}

.join-steps p,
.join-enhancement-card p,
.join-hardware-grid p {
    margin: 0;
    font-size: .86rem;
}

.join-steps p strong {
    color: #e8ddcf;
}

.join-optional {
    margin-top: 34px;
    padding: 28px 30px;
}

.join-optional__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.join-optional__heading h2 {
    margin-bottom: 0;
}

.join-optional-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(134,223,88,.35);
    border-radius: 999px;
    color: #b4ef95;
    background: rgba(134,223,88,.08);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.join-optional__lead {
    max-width: 850px;
    margin: 12px 0 22px;
}

.join-enhancement-grid,
.join-hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.join-enhancement-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(215,170,85,.20);
    border-radius: 8px;
    background: rgba(9,12,18,.42);
}

.join-enhancement-card .button {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 8px;
}

.join-enhancement-card p {
    margin-bottom: 18px;
}

.join-hardware {
    margin-top: 34px;
}

.join-hardware .section-heading > p:last-child {
    margin-bottom: 0;
}

.join-hardware-grid > article {
    padding: 22px;
}

.join-hardware-grid ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: .86rem;
}

.join-hardware-grid li {
    margin: 5px 0;
}

.join-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 34px;
    padding: 26px 30px;
}

.join-help h2 {
    margin-bottom: 6px;
}

.join-help p:last-child {
    margin: 0;
}

.join-help .button-row {
    flex: 0 0 auto;
    margin-top: 0;
}

@media (max-width: 900px) {
    .join-connect {
        grid-template-columns: 1fr;
    }

    .join-server-details {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto;
    }

    .join-copy-feedback {
        text-align: left;
    }

    .join-enhancement-grid,
    .join-hardware-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .join-connect,
    .join-optional {
        padding: 22px 20px;
    }

    .join-server-details {
        grid-template-columns: 1fr;
    }

    .join-server-details strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .join-copy-button {
        width: 100%;
    }

    .join-steps {
        grid-template-columns: 1fr;
    }

    .join-optional__heading {
        flex-direction: column;
        gap: 10px;
    }

    .join-help {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 20px;
    }

    .join-help .button-row {
        width: 100%;
    }

    .join-help .button {
        flex: 1 1 auto;
    }
}

@media (max-width: 440px) {
    .join-steps > li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 17px;
    }

    .join-step-number {
        width: 38px;
        height: 38px;
        font-size: .85rem;
    }

    .join-help .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* Toast notifications */
.toast-region {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 12px 12px 12px 14px;
    border: 1px solid rgba(215,170,85,.34);
    border-radius: 10px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(31,29,36,.98), rgba(11,14,20,.985));
    box-shadow:
        0 18px 48px rgba(0,0,0,.56),
        inset 0 0 0 1px rgba(255,255,255,.025);
    opacity: 0;
    transform: translateX(24px);
    transition:
        opacity .2s ease,
        transform .2s ease;
    pointer-events: auto;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateX(24px);
}

.toast__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1;
}

.toast__content {
    min-width: 0;
    color: #e6dfd8;
    font-size: .86rem;
    line-height: 1.45;
}

.toast__close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.toast__close:hover {
    color: var(--text);
    background: rgba(255,255,255,.05);
}

.toast--success {
    border-color: rgba(134,223,88,.40);
}

.toast--success .toast__icon {
    color: var(--success);
    background: rgba(134,223,88,.08);
}

.toast--warning {
    border-color: rgba(215,170,85,.55);
}

.toast--warning .toast__icon {
    color: var(--gold-light);
    background: rgba(215,170,85,.10);
}

.toast--error {
    border-color: rgba(255,140,140,.48);
}

.toast--error .toast__icon {
    color: var(--danger);
    background: rgba(255,140,140,.08);
}

.toast--info .toast__icon {
    color: var(--purple-light);
    background: rgba(157,78,221,.10);
}

@media (max-width: 560px) {
    .toast-region {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }
}

/* Legal pages */
.legal-page-hero {
    padding-bottom: 34px;
}

.legal-page-hero__lead {
    max-width: 760px;
    margin: 14px auto 0;
    font-size: .95rem;
}

.legal-document {
    width: min(calc(100% - 32px), 940px);
    padding: 34px 38px;
}

.legal-updated {
    margin: 0 0 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(215,170,85,.18);
    color: #8f8885;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.legal-section + .legal-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid rgba(215,170,85,.14);
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.legal-section p {
    margin: 10px 0 0;
}

.legal-section strong {
    color: #e8ddcf;
}

.legal-section ul {
    margin: 14px 0 0;
    padding-left: 22px;
    color: var(--muted);
}

.legal-section li {
    margin: 8px 0;
    padding-left: 4px;
}

.legal-section a:not(.button) {
    color: var(--purple-light);
    text-decoration-color: rgba(199,125,255,.45);
    text-underline-offset: 3px;
}

.legal-section a:not(.button):hover {
    color: var(--gold-light);
    text-decoration-color: rgba(242,209,138,.55);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 16px !important;
}

.legal-links a {
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.legal-section--contact {
    margin-top: 34px !important;
    padding: 24px !important;
    border: 1px solid rgba(199,125,255,.28) !important;
    border-radius: 8px;
    background: rgba(157,78,221,.07);
}

.legal-section--contact h2 {
    margin-bottom: 8px;
}

.legal-section--contact p:not(.eyebrow) {
    max-width: 700px;
}

.legal-section--contact .button {
    margin-top: 16px;
}

@media (max-width: 680px) {
    .legal-document {
        width: min(calc(100% - 20px), 940px);
        padding: 24px 20px;
    }

    .legal-section + .legal-section {
        margin-top: 24px;
        padding-top: 22px;
    }

    .legal-links {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* --- ui.css --- */
/* Netherite Realms UI refinement layer - loaded after site.css */

:root {
    --ui-gold: #d7aa55;
    --ui-gold-light: #f2d18a;
    --ui-gold-dark: #76562b;
    --ui-purple: #9d4edd;
    --ui-purple-light: #c77dff;
}

html,
body {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
option,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

body {
    background-image:
        linear-gradient(rgba(9, 12, 18, .968), rgba(9, 12, 18, .992)),
        url('../img/ui/bg-stars.svg');
    background-repeat: no-repeat, repeat;
    background-size: auto, 640px 640px;
}

body::before {
    opacity: .55;
}

.site-header {
    position: relative;
    padding-top: 10px;
    background-color: #090c12;
    background-image:
        linear-gradient(180deg, rgba(5, 8, 13, .04) 0%, rgba(5, 8, 13, .12) 58%, rgba(9, 12, 18, .98) 100%),
        url('../img/ui/header-realm-backdrop.webp');
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.brand-banner {
    min-height: 285px;
    margin-bottom: 6px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 780px);
}

.brand::before,
.brand::after,
.brand-kicker,
.brand-name,
.brand-crystals {
    display: none !important;
}

.brand-logo {
    width: min(100%, 740px);
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .56));
}

/* Navigation is intentionally isolated in nav-reference.css.
   Keep all navbar frame/layout rules out of this file to avoid conflicts. */

.fantasy-panel {
    background: linear-gradient(180deg, rgba(68, 58, 59, .14), rgba(12, 14, 20, .95) 18%, rgba(12, 14, 20, .97));
    border: 1px solid rgba(181, 139, 75, .32);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 18px 42px rgba(0, 0, 0, .24);
}

.fantasy-panel::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 209, 138, .42), transparent);
    pointer-events: none;
}

.product-card::before,
.page-hero::after,
.footer-mark::before,
.footer-mark::after {
    content: none !important;
}


/* Homepage sale event banner visual treatment */
.sale-event-banner--home,
.sale-event-banner--store {
    min-height: 182px;
    max-height: 198px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-color: rgba(215, 170, 85, .46);
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            rgba(6, 8, 12, .95) 0%,
            rgba(12, 9, 18, .84) 34%,
            rgba(20, 10, 30, .62) 62%,
            rgba(8, 9, 14, .78) 100%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(157, 78, 221, .22),
            transparent 48%
        ),
        url('../img/ui/home-sale-event-banner.png') center center / cover no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .02),
        inset 0 -40px 70px rgba(0, 0, 0, .26),
        0 18px 42px rgba(0, 0, 0, .30);
    isolation: isolate;
}

.sale-event-banner--home::after,
.sale-event-banner--store::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 230, 170, .05),
            transparent 32%,
            rgba(0, 0, 0, .14)
        ),
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .32) 100%
        );
}

.sale-event-banner--home .sale-event-banner__name,
.sale-event-banner--store .sale-event-banner__name {
    color: var(--ui-gold-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: .025em;
    text-shadow:
        0 3px 8px rgba(0, 0, 0, .95),
        0 0 18px rgba(215, 170, 85, .25),
        0 0 28px rgba(157, 78, 221, .18);
}

.sale-event-banner--home .sale-event-banner__meta,
.sale-event-banner--store .sale-event-banner__meta {
    margin-top: 12px;
    color: #f4efe6;
    font-size: .92rem;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, .95),
        0 0 12px rgba(0, 0, 0, .72);
}

.sale-event-banner--home .sale-event-banner__discount,
.sale-event-banner--store .sale-event-banner__discount {
    color: var(--ui-gold);
}

.sale-event-banner--home .sale-event-banner__separator,
.sale-event-banner--store .sale-event-banner__separator {
    color: rgba(242, 209, 138, .72);
}

.sale-event-banner--home .sale-event-banner__countdown,
.sale-event-banner--store .sale-event-banner__countdown {
    color: #f4efe6;
}

.sale-event-banner--home [data-sale-countdown],
.sale-event-banner--store [data-sale-countdown] {
    color: var(--ui-gold-light);
    font-weight: 900;
    letter-spacing: .04em;
}

@media (max-width: 700px) {
    .sale-event-banner--home,
    .sale-event-banner--store {
        min-height: 220px;
        max-height: none;
        padding: 28px 18px;
        background:
            linear-gradient(
                180deg,
                rgba(8, 9, 14, .70) 0%,
                rgba(10, 9, 16, .80) 44%,
                rgba(8, 9, 14, .96) 100%
            ),
            radial-gradient(
                circle at 50% 34%,
                rgba(157, 78, 221, .20),
                transparent 50%
            ),
            url('../img/ui/home-sale-event-banner.png') 62% center / cover no-repeat;
    }

    .sale-event-banner--home .sale-event-banner__name,
    .sale-event-banner--store .sale-event-banner__name {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
    }

    .sale-event-banner--home .sale-event-banner__meta,
    .sale-event-banner--store .sale-event-banner__meta {
        flex-direction: column;
        gap: 7px;
        font-size: .84rem;
    }

    .sale-event-banner--home .sale-event-banner__separator,
    .sale-event-banner--store .sale-event-banner__separator {
        display: none;
    }
}

@media (max-width: 420px) {
    .sale-event-banner--home {
        min-height: 236px;
        padding: 26px 16px;
        background-position: 64% center;
    }

    .sale-event-banner--home .sale-event-banner__discount,
    .sale-event-banner--store .sale-event-banner__discount {
        font-size: .78rem;
    }

    .sale-event-banner--home .sale-event-banner__countdown,
    .sale-event-banner--store .sale-event-banner__countdown {
        font-size: .82rem;
    }
}

.button {
    border-radius: 10px;
    border: 1px solid rgba(215, 170, 85, .42);
    background: linear-gradient(180deg, rgba(30, 33, 44, .94), rgba(17, 18, 24, .98));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.button::before {
    display: none;
}

.button--primary {
    background: linear-gradient(180deg, #7d37ad, #4e206f);
    border-color: rgba(215, 170, 85, .75);
}

.button--ghost,
.button--small.button--ghost {
    background: linear-gradient(180deg, rgba(32, 35, 46, .92), rgba(15, 17, 24, .98));
}

.button:hover {
    transform: translateY(-1px);
}

.section-heading {
    padding-bottom: 16px;
}

.section-heading::after {
    left: 0;
    width: min(100%, 420px);
    height: 18px;
    background: url('../img/ui/divider.svg') left center / contain no-repeat;
    opacity: .92;
}

.feature-card {
    position: relative;
    grid-template-columns: 94px 1fr;
    gap: 18px;
    padding: 20px 10px;
	transition: all 0.25s ease-in;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card__icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.feature-card__icon img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.34));
}


.server-strip {
    /* grid-template-columns: 1.45fr repeat(4, minmax(145px, 1fr)); */
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.server-strip > div {
    min-height: 98px;
    padding: 20px 24px;
    border-left: 1px solid rgba(215,170,85,.18);
}

.server-strip > div:first-child {
    padding-left: 34px;
}

.server-strip__metric {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.server-strip__metric--newest {
    align-items: normal !important;
}

.newest-member-links {
	display: flex;
	gap: 10px;
}

.newest-member-links a {
	font-size: 1rem;
	text-decoration: none;
}

.newest-member-links > span {
	font-size: 1rem;
}

.server-strip__metric img {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    opacity: .95;
}

.server-strip__metric strong {
    font-size: 1.05rem;
    line-height: 1;
}

.server-strip__metric span {
    font-size: .69rem !important;
    letter-spacing: .1em;
}

.product-card {
    background: linear-gradient(180deg, rgba(68, 58, 59, .24), rgba(12,14,20,.94));
}

.rank-list li {
    grid-template-columns: 44px 1fr auto;
    min-height: 54px;
}

.rank-badge {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 38px;
    flex: 0 0 auto;
}

.rank-badge > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.5));
}

.rank-badge--generic > span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -52%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #d7d1c7;
    border-radius: 50%;
    background: radial-gradient(circle, #23262d 0 58%, rgba(35,38,45,.96) 59%, transparent 64%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px #000;
}

.table-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-table .rank-badge {
    width: 36px;
    height: 34px;
}

.leaderboard-table .rank-badge--generic > span {
    width: 20px;
    height: 20px;
    font-size: .7rem;
}

.footer-mark {
    width: 78px;
    height: 78px;
    border: 0;
    transform: none;
    background: none;
}

.footer-mark img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
}

.footer-mark span {
    display: none;
}

@media (max-width: 900px) {
    .brand-banner {
        min-height: 112px;
    }

    .brand-logo {
        width: min(100%, 620px);
    }

    .server-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .server-strip > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .server-strip {
        grid-template-columns: 1fr;
    }

    .server-strip > div {
        border-left: 0;
        border-top: 1px solid rgba(215,170,85,.18);
        min-height: 0;
    }

    .server-strip > div:first-child {
        grid-column: auto;
        border-top: 0;
    }

    .feature-card {
        grid-template-columns: 70px 1fr;
    }

    .feature-card__icon,
    .feature-card__icon img {
        width: 66px;
        height: 66px;
    }

    .rank-list li {
        grid-template-columns: 40px 1fr;
    }
}

/* Native select arrows sit against the edge in several browsers. Use a
   consistent custom arrow positioned approximately 10px farther inward. */
select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-color: #0d1017;
    background-image: url('../img/ui/select-arrow.svg');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
}

.leaderboard-toolbar--stacked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.leaderboard-toolbar--stacked .tab-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(215, 170, 85, .25);
    border-radius: 7px;
    overflow: hidden;
}

.leaderboard-toolbar--stacked .tab-list a {
    display: grid;
    place-items: center;
    min-height: 45px;
    padding: 9px 10px;
    border: 0;
    border-left: 1px solid rgba(215, 170, 85, .18);
    border-radius: 0;
    text-align: center;
}

.leaderboard-toolbar--stacked .tab-list a:first-child {
    border-left: 0;
}

.leaderboard-toolbar--stacked .tab-list a.is-active {
    box-shadow: inset 0 -2px 0 #c77dff, inset 0 0 24px rgba(157, 78, 221, .15);
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dataset-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid rgba(215, 170, 85, .28);
    border-radius: 7px;
    background: rgba(9, 12, 18, .5);
}

.dataset-switch a {
    padding: 8px 13px;
    border-radius: 5px;
    color: #aaa3a0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.dataset-switch a:hover {
    color: #f2d18a;
}

.dataset-switch a.is-active {
    color: #fff;
    background: linear-gradient(145deg, #5d217b, #341242);
    box-shadow: inset 0 0 0 1px rgba(199, 125, 255, .3);
}

.realm-rank-name {
    color: #f2d18a;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

@media (max-width: 900px) {
    .leaderboard-toolbar--stacked .tab-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .leaderboard-toolbar--stacked .tab-list a:nth-child(4) {
        border-left: 0;
    }

    .leaderboard-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dataset-switch {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    .leaderboard-toolbar--stacked .tab-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leaderboard-toolbar--stacked .tab-list a:nth-child(odd) {
        border-left: 0;
    }

    .dataset-switch {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .dataset-switch a {
        padding-inline: 8px;
        text-align: center;
    }
}

/* August 2026 refinement: typography, centered medallions, status art,
   select placement, and expanded player profiles. */
h1,
h2,
h3,
.eyebrow,
.section-heading,
.tab-list,
.dataset-switch,
.realm-rank-name,
.footer-panel h2,
.player-card h2,
.profile-card-heading,
.profile-rank-card strong,
.profile-guild-card h2 {
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
}

/* Move the custom select caret another 10px inward from the prior position. */
select {
    padding-right: 54px;
    background-position: right 28px center;
}

/* Reference medallions are exported into identical centered canvases. */

.feature-card-link {
	text-decoration: none;
}

.feature-card {
    grid-template-columns: 96px 1fr;
}

.feature-card span{
    color: var(--purple-light);
}

.feature-card__icon,
.feature-card__icon img {
    width: 92px;
    height: 92px;
}

.feature-card__icon img {
    object-position: 50% 50%;
    filter: none;
}

/* Status graphics taken from the supplied reference strip. */
.server-strip__metric {
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 5px;
}

.server-strip__metric img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}

.server-strip__metric strong {
    color: #ead9ba;
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.22rem;
}

.server-strip__metric--players strong {
    color: var(--purple-light);
}

/* Expanded player profile. */
.profile-grid--expanded {
    align-items: start;
}

.profile-stats--expanded {
    align-items: stretch;
}

.profile-combat-card,
.profile-activity-card,
.profile-ranks,
.profile-guild-card {
    padding: 24px;
}

.profile-card-heading > span,
.profile-activity-card > span,
.profile-rank-card > span,
.profile-guild-card > div > span,
.player-guild-summary > span {
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.profile-card-heading h2,
.profile-guild-card h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 1.25rem;
}

.combat-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.combat-metrics > div {
    padding: 14px 10px;
    border: 1px solid rgba(215, 170, 85, .22);
    border-radius: 8px;
    background: rgba(8, 11, 17, .48);
    text-align: center;
}

.combat-metrics span {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.combat-metrics strong {
    display: block;
    margin-top: 5px;
    color: var(--gold-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.profile-activity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.profile-activity-card strong {
    margin: 10px 0 3px;
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.profile-activity-card small,
.profile-rank-card small,
.player-guild-summary small {
    color: var(--muted);
}

.profile-ranks,
.profile-guild-card {
    grid-column: 1 / -1;
}

.profile-rank-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profile-rank-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(215, 170, 85, .22);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(68, 58, 59, .22), rgba(8, 11, 17, .56));
}

.profile-rank-card strong {
    display: block;
    margin: 7px 0 5px;
    color: var(--gold-light);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.profile-rank-card small {
    display: block;
    font-size: .72rem;
    line-height: 1.45;
}

.profile-guild-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-guild-card > strong {
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
}

.player-guild-summary {
    margin: 0 0 22px;
    padding: 13px;
    border: 1px solid rgba(199, 125, 255, .24);
    border-radius: 8px;
    background: rgba(75, 27, 105, .16);
}

.player-guild-summary strong,
.player-guild-summary small {
    display: block;
}

.player-guild-summary strong {
    margin: 4px 0 2px;
    color: var(--purple-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 900px) {
    .profile-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .feature-card {
        grid-template-columns: 72px 1fr;
    }

    .feature-card__icon,
    .feature-card__icon img {
        width: 68px;
        height: 68px;
    }

    .combat-metrics,
    .profile-rank-grid {
        grid-template-columns: 1fr;
    }

    .profile-guild-card {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Home server strip — final responsive layout */
.server-strip.server-strip--compact {
    display: grid;
    grid-template-columns: 240px 120px 120px minmax(0, 1fr);
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.server-strip.server-strip--compact > div {
    min-width: 0;
    min-height: 98px;
    padding: 18px;
    border-left: 1px solid rgba(215, 170, 85, .18);
}

.server-strip.server-strip--compact > .server-strip__status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 24px;
    border-left: 0;
}

.server-strip.server-strip--compact .server-strip__metric--players,
.server-strip.server-strip--compact .server-strip__metric--members {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-inline: 10px;
    text-align: center;
}

.server-strip.server-strip--compact .server-strip__metric--players img,
.server-strip.server-strip--compact .server-strip__metric--members img {
    width: 34px;
    height: 34px;
    margin: 0 auto 2px;
}

.server-strip.server-strip--compact .server-strip__metric--players strong,
.server-strip.server-strip--compact .server-strip__metric--members strong {
    width: 100%;
    text-align: center;
}

.server-strip.server-strip--compact .server-strip__metric--players > span,
.server-strip.server-strip--compact .server-strip__metric--members > span {
    width: 100%;
    text-align: center;
    line-height: 1.25;
}

.server-strip.server-strip--compact .server-strip__metric--newest {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    padding: 18px 30px 18px 24px;
}

.server-strip.server-strip--compact .server-strip__metric--newest > strong {
	display: block;
	padding: 10px 0;
	width:100%;
}

.newest-member-links {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding-right: 4px;
}

.newest-member-links a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
	padding:0;
    word-break: break-word;
}

.newest-member-links a:hover {
    color: var(--gold-light);
}

@media (max-width: 900px) {
    .server-strip.server-strip--compact {
        grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "status players members"
            "newest newest newest";
    }

    .server-strip.server-strip--compact > div {
        min-height: 0;
        border: 0 !important;
    }

    .server-strip.server-strip--compact > .server-strip__status {
        grid-area: status;
        align-items: center;
        padding: 14px 12px;
        text-align: center;
    }

    .server-strip.server-strip--compact .server-strip__metric--players {
        grid-area: players;
        padding: 14px 8px;
    }

    .server-strip.server-strip--compact .server-strip__metric--members {
        grid-area: members;
        padding: 14px 8px;
    }

    .server-strip.server-strip--compact .server-strip__metric--newest {
        grid-area: newest;
        align-items: center !important;
        padding: 40px 18px 16px;
        text-align: center;
    }
	
	.server-strip.server-strip--compact .server-strip__metric--newest > strong {
		display: block;
		border-bottom: 1px solid rgba(181, 139, 75, .32);
		padding: 20px 0;
		margin-bottom: 15px;
		width:100%;
	}

    .server-strip.server-strip--compact .server-strip__metric--players img,
    .server-strip.server-strip--compact .server-strip__metric--members img {
        width: 30px;
        height: 30px;
    }

    .newest-member-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding-right: 0;
    }

    .newest-member-links > span {
        display: none;
    }

    .newest-member-links a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .server-strip.server-strip--compact {
        grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    }

    .server-strip.server-strip--compact > .server-strip__status,
    .server-strip.server-strip--compact .server-strip__metric--players,
    .server-strip.server-strip--compact .server-strip__metric--members {
        padding-inline: 6px;
    }

    .server-strip.server-strip--compact .server-strip__metric--players img,
    .server-strip.server-strip--compact .server-strip__metric--members img {
        width: 26px;
        height: 26px;
    }

    .server-strip.server-strip--compact .server-strip__metric strong {
        font-size: 1rem;
    }

    .server-strip.server-strip--compact .server-strip__metric span {
        font-size: .58rem !important;
        letter-spacing: .07em;
    }

    .server-strip.server-strip--compact .server-strip__status .eyebrow {
        font-size: .68rem;
    }
}

/* --- nav-reference.css --- */
/* Netherite Realms navbar
   Desktop layout is a true three-piece flex frame:
   [transparent left cap] [solid/repeating center bar] [transparent right cap]
   The center background never renders behind either transparent end cap.
*/

.nav-wrap,
.nav-frame,
.nav-frame__cap {
    transform: none !important;
    rotate: none !important;
    clip-path: none !important;
}

.nav-wrap::before,
.nav-wrap::after,
.nav-frame::before,
.nav-frame::after,
.nav-frame-detail {
    content: none !important;
    display: none !important;
    transform: none !important;
    rotate: none !important;
    clip-path: none !important;
}

.copy-icon img {
    width: 20px;
    height: 20px;
}

.copy-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border-color: rgba(199, 125, 255, .62);
    background: linear-gradient(180deg, #713095, #42185b);
}

@media (min-width: 1101px) {
    .nav-frame {
        position: relative;
        z-index: 10;
        display: flex;
        align-items: stretch;
        gap: 0;
        min-height: 82px;
        padding: 0;
        isolation: isolate;
    }

    .nav-frame__cap {
        display: block;
        flex: 0 0 auto;
        min-height: 82px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        pointer-events: none;
    }

    .nav-frame__cap--left {
        width: 54px;
        background-image: url('../img/ui/nav-end-left-flex.png');
    }

    .nav-frame__cap--right {
        width: 27px;
        background-image: url('../img/ui/nav-end-right-flex.png');
    }

    .nav-wrap {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 82px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: center;
        column-gap: 18px;
        margin: 0;
        padding: 0 14px 0 0;
        border: 0;
        border-radius: 0;
        background-image: url('../img/ui/nav-middle-lines-flex.png');
        background-position: left center;
        background-repeat: repeat-x;
        background-size: auto 100%;
        box-shadow: none;
        overflow: visible;
    }

    .nav-toggle {
        display: none !important;
    }

    .primary-nav,
    .server-address {
        position: relative;
        z-index: 1;
        transform: none !important;
    }

    .primary-nav {
        display: flex;
        align-items: center;
        gap: clamp(15px, 1.35vw, 25px);
        min-width: 0;
        padding-left: 36px;
    }

    .primary-nav a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex: 0 0 auto;
        padding: 23px 10px 19px 0;
        color: #ddd6cd;
        font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
        font-size: .72rem;
        font-weight: 400;
        letter-spacing: .025em;
        line-height: 1;
        text-decoration: none;
        text-transform: uppercase;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .78);
    }

    .nav-link__icon {
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .nav-link__icon img {
        width: 18px;
        height: 18px;
        opacity: .94;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
    }

    .nav-link__label {
        white-space: nowrap;
    }

    .primary-nav a::after {
        content: "";
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: 10px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #c77dff 15%, #9d4edd 50%, #c77dff 85%, transparent);
        box-shadow: 0 0 8px rgba(157, 78, 221, .95), 0 0 16px rgba(157, 78, 221, .46);
        transition: left .18s ease, right .18s ease;
    }

    .primary-nav a:hover,
    .primary-nav a.is-active {
        color: #f2d18a;
    }

    .primary-nav a:hover::after,
    .primary-nav a.is-active::after {
        left: 0;
        right: 0;
    }

    .server-address {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 48px;
        margin: 0;
        padding: 3px 11px 3px 15px;
        border: 1px solid rgba(181, 132, 62, .72);
        border-radius: 11px;
        background: linear-gradient(180deg, rgba(68, 58, 59, .77), rgba(25, 22, 29, .97));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
    }

    .server-address__label {
        display: block;
        color: #f2d18a;
        font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
        font-size: .62rem;
        letter-spacing: .12em;
    }

    .server-address strong {
        display: block;
        overflow: visible;
        font-size: .78rem;
        white-space: nowrap;
    }
}

@media (min-width: 1101px) and (max-width: 1240px) {
    .nav-wrap {
        grid-template-columns: minmax(0, 1fr) 270px;
        column-gap: 12px;
        padding-right: 10px;
    }

    .primary-nav {
        gap: 18px;
        padding-left: 28px;
    }

    .primary-nav a {
        gap: 5px;
        font-size: .66rem;
    }

    .nav-link__icon,
    .nav-link__icon img {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .server-address {
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }
}

@media (max-width: 1100px) {
    .nav-frame {
        position: relative;
        z-index: 10;
        display: block;
        min-height: 64px;
        padding: 0;
    }

    .nav-frame__cap {
        display: none;
    }

    .nav-wrap {
        position: relative;
        min-height: 64px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) minmax(220px, 270px);
        align-items: center;
        gap: 12px;
        margin: 0;
        padding: 8px 10px;
        border: 1px solid rgba(181, 139, 75, .4);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(18, 20, 28, .97), rgba(11, 13, 19, .99));
        overflow: visible;
    }

    .nav-toggle {
        display: block;
        margin-left: 2px;
    }

    .primary-nav {
        position: absolute;
        z-index: 20;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px;
        border: 1px solid rgba(181, 139, 75, .42);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(18, 20, 28, .995), rgba(11, 13, 19, .995));
        box-shadow: 0 18px 42px rgba(0, 0, 0, .48);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 12px;
        font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
        text-decoration: none;
    }

    .primary-nav a::after {
        display: none;
    }

    .nav-link__icon,
    .nav-link__icon img {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .nav-link__label {
        position: relative;
        display: inline-block;
        width: max-content;
        padding-bottom: 4px;
    }

    .nav-link__label::after {
        content: "";
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #c77dff 15%, #9d4edd 50%, #c77dff 85%, transparent);
        box-shadow: 0 0 8px rgba(157, 78, 221, .82);
        transition: left .18s ease, right .18s ease;
    }

    .primary-nav a:hover .nav-link__label::after,
    .primary-nav a.is-active .nav-link__label::after {
        left: 0;
        right: 0;
    }

    .server-address {
        grid-column: 3;
        justify-self: end;
        width: min(270px, 100%);
        min-width: 220px;
        max-width: 270px;
        height: 48px;
        padding: 6px 8px 6px 12px;
    }

    .server-address__label,
    .server-address strong {
        display: block !important;
        white-space: nowrap;
    }

    .server-address strong {
        font-size: clamp(.68rem, 1.7vw, .78rem);
    }
}

@media (max-width: 520px) {
    .nav-wrap {
        grid-template-columns: 42px minmax(0, 1fr) 220px;
        gap: 8px;
        padding-inline: 8px;
    }

    .server-address {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        padding-left: 10px;
    }

    .server-address strong {
        font-size: .68rem;
    }

    .server-address__label {
        font-size: .54rem;
    }
}


/* --- data-widgets.css --- */
/* Server status, dungeon leaderboards, player dungeon details, and name tags.
   Loaded after the current site.css, ui.css, and nav-reference.css. */

.server-strip--compact {
    /* grid-template-columns: 1.25fr repeat(2, minmax(180px, 1fr)); */
}

.server-state {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.server-state.is-offline {
    color: var(--muted);
}

.server-state.is-offline .status-dot {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 140, 140, .65);
}

/* Primary leaderboard categories stay readable without forcing a
   single overcrowded row. */
.leaderboard-toolbar--stacked .tab-list {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.leaderboard-toolbar--stacked .tab-list a,
.leaderboard-toolbar--stacked .tab-list a:first-child,
.leaderboard-toolbar--stacked .tab-list a:nth-child(4),
.leaderboard-toolbar--stacked .tab-list a:nth-child(odd) {
    border-left: 1px solid rgba(215, 170, 85, .18);
}

.leaderboard-toolbar--stacked .tab-list a:first-child {
    border-left: 0;
}

.leaderboard-controls--dungeon {
    align-items: flex-start;
}

.leaderboard-datasets {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dataset-switch--dungeon {
    flex-wrap: wrap;
}

.dataset-switch--dungeon a,
.dataset-switch--period a {
    white-space: nowrap;
}

.player-avatar {
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.profile-dungeon,
.profile-name-tags {
    grid-column: 1 / -1;
    padding: 24px;
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.profile-dungeon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.profile-dungeon-card {
    min-width: 0;
    padding: 17px 14px;
    border: 1px solid rgba(215, 170, 85, .22);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(68, 58, 59, .22), rgba(8, 11, 17, .56));
    text-align: center;
}

.profile-dungeon-card span {
    display: block;
    color: var(--muted);
    font-size: .67rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-dungeon-card strong {
    display: block;
    margin-top: 8px;
    color: var(--gold-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
}

.name-tag-grid {
    display: flex;
	flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.name-tag-preview {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(199, 125, 255, .35);
    border-radius: 6px;
    color: var(--purple-light);
    background: rgba(78, 32, 105, .2);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: .82rem;
    font-weight: 700;
}

.name-tag-card p {
    margin: 7px 0 0;
    font-size: .78rem;
}

.name-tag--gold .name-tag-preview {
    color: #f2d18a;
    border-color: rgba(215, 170, 85, .48);
    background: rgba(110, 72, 20, .22);
}

.name-tag--blue .name-tag-preview {
    color: #a9c6ff;
    border-color: rgba(110, 134, 255, .45);
    background: rgba(39, 61, 133, .22);
}

.profile-empty-message {
    margin: 18px 0 0;
}

@media (max-width: 900px) {
    .server-strip--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .server-strip--compact > div:first-child {
        grid-column: 1 / -1;
    }

    .leaderboard-controls--dungeon,
    .profile-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 620px) {
    .server-strip--compact,
    .profile-dungeon-grid {
        grid-template-columns: 1fr;
    }

    .server-strip--compact > div:first-child {
        grid-column: auto;
    }

    .leaderboard-datasets,
    .dataset-switch--dungeon,
    .dataset-switch--period {
        width: 100%;
    }

    .dataset-switch--dungeon {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dataset-switch--period {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dataset-switch--dungeon a,
    .dataset-switch--period a {
        text-align: center;
    }
}

/* Guild directory and guild profiles. */
.guild-directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.guild-directory-toolbar__summary {
    color: var(--muted);
    font-size: .78rem;
}

.guild-search {
    display: flex;
    gap: 8px;
    width: min(420px, 100%);
}

.guild-search input {
    min-width: 0;
}

.guild-table {
    min-width: 760px;
}

.guild-name-link {
    color: #f0e5d6;
    font-weight: 800;
    text-decoration: none;
}

.guild-name-link:hover,
.profile-guild-card__heading h2 a:hover {
    color: var(--purple-light);
}

.guild-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(215, 170, 85, .28);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(215, 170, 85, .08);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.guild-status--open {
    color: var(--success);
    border-color: rgba(134, 223, 88, .32);
    background: rgba(134, 223, 88, .08);
}

.profile-guild-card--details {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
    align-items: center;
}

.profile-guild-card__heading h2 a {
    color: inherit;
    text-decoration: none;
}

.profile-guild-card__heading small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.profile-guild-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-guild-details > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(215, 170, 85, .2);
    border-radius: 8px;
    background: rgba(8, 11, 17, .46);
}

.profile-guild-details span,
.guild-profile-stat span,
.guild-profile-description > span {
    display: block;
    color: var(--muted);
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-guild-details strong {
    display: block;
    margin-top: 5px;
    color: var(--gold-light);
    overflow-wrap: anywhere;
}

.guild-profile-summary,
.guild-members-panel {
    padding: 26px;
}

.guild-profile-heading,
.guild-members-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.guild-profile-heading h2,
.guild-members-heading h2 {
    margin-bottom: 0;
}

.guild-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.guild-profile-stat {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(215, 170, 85, .2);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(68, 58, 59, .22), rgba(8, 11, 17, .56));
}

.guild-profile-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--gold-light);
    font-family: "Mooli", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
}

.guild-profile-description {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(215, 170, 85, .16);
}

.guild-profile-description p {
    margin: 7px 0 0;
}

.guild-members-panel {
    margin-top: 18px;
}

.guild-member-rank {
    color: var(--gold-light);
    font-weight: 800;
}

.guild-member-uuid {
    color: var(--muted);
    font-size: .72rem;
}

@media (max-width: 760px) {
    .guild-directory-toolbar,
    .guild-profile-heading,
    .guild-members-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .guild-search {
        width: 100%;
    }

    .profile-guild-card--details {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-guild-details,
    .guild-profile-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guild-search {
        display: grid;
        grid-template-columns: 1fr;
    }
}


