@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* RuneLobby: carved slate, antique gold, and teal portal light. */
:root {
    color-scheme: dark;
    --bg: #0b1118;
    --panel: #141e28;
    --panel-hover: #1a2932;
    --border: #33404a;
    --text: #efe8d7;
    --muted: #a5b0bb;
    --gold: #dfb769;
    --gold-light: #f7df9e;
    --gold-border: #78623e;
    --teal: #66e2d1;
    --font: 'DM Sans', Arial, sans-serif;
    --heading: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(ellipse at 82% 10%, #12454732, transparent 32%),
        radial-gradient(ellipse at 4% 35%, #2534483d, transparent 40%),
        var(--bg);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-light); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
svg { flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 18px; color: var(--muted); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.9px; }
h1 span { color: var(--gold-light); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
a, button, input, select, textarea { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--teal); }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.muted { color: var(--muted); }

/* Masthead */
.site-header {
    background: linear-gradient(180deg, #19242d, #0e171f);
    border-top: 2px solid #907348;
    border-bottom: 1px solid #74603b;
    box-shadow: 0 5px 22px #0005, inset 0 -3px 0 #070c12;
}
.header-inner { min-height: 108px; display: flex; align-items: center; gap: 58px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-portal { width: 54px; height: 62px; object-fit: contain; filter: drop-shadow(0 0 10px #30c9bc25); }
.brand-wordmark { width: 245px; height: auto; filter: drop-shadow(0 3px 2px #0008); }
.primary-nav { display: flex; align-self: stretch; gap: 32px; }
.primary-nav a {
    display: flex; gap: 9px; align-items: center; position: relative;
    color: #bcc3c8; font-size: 14px; font-weight: 600;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--gold-light); }
.primary-nav a.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--gold); box-shadow: 0 -3px 15px #e4b76430;
}
.header-submit { margin-left: auto; }

/* Gold controls have a raised edge; teal marks voting and active state. */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 11px 20px; border-radius: 3px;
    border: 1px solid #e3bd73; border-bottom-color: #735022;
    background: linear-gradient(180deg, #efd291 0%, #d1a34e 55%, #b17d32 100%);
    box-shadow: inset 0 1px 0 #fff0bc, inset 0 -2px 0 #77532280, 0 3px 8px #0004;
    color: #241a0d; font-size: 14px; font-weight: 700; line-height: 1.4;
    text-shadow: 0 1px 0 #f5e1af60;
    transition: filter .15s, border-color .15s, transform .15s;
}
.button:hover { color: #1a1309; filter: brightness(1.1); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 10px 16px; }
.button-full { width: 100%; }
.button-secondary {
    color: var(--gold-light); border-color: #887047; text-shadow: none;
    background: linear-gradient(180deg, #29333c, #17212a);
    box-shadow: inset 0 1px 0 #d1b57418, 0 2px 5px #0004;
}
.button-secondary:hover { color: #fff0c9; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 14px; font-weight: 500; }
.text-link:hover { color: #a5fff0; text-decoration: underline; }

/* A portal, framed by light rather than another box. */
.intro { display: flex; justify-content: space-between; align-items: center; min-height: 330px; padding: 35px 0 30px; position: relative; }
.intro-copy { position: relative; z-index: 1; }
.intro-copy { animation: rise-in .65s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 11px; letter-spacing: 1.9px; font-weight: 700; margin-bottom: 18px; }
.live-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px #66e2d160; }
.intro h1 { margin-bottom: 19px; text-shadow: 0 3px 12px #0008; }
.intro h1 span { display: block; margin-top: 2px; }
.intro p { margin: 0; font-size: 16px; line-height: 1.85; }
.intro-emblem { width: 320px; height: 280px; flex-shrink: 0; display: grid; place-items: center; position: relative; margin-right: 30px; }
.intro-emblem img { width: 280px; position: relative; z-index: 1; filter: drop-shadow(0 12px 10px #0009) drop-shadow(0 0 23px #20bea52b); }
.intro-emblem img { animation: portal-drift 7s ease-in-out infinite; }
.portal-halo { position: absolute; width: 340px; height: 285px; border-radius: 50%; background: radial-gradient(ellipse, #2fbcab1c 0%, #27b6a508 45%, transparent 70%); }
.stat-strip {
    display: flex; align-items: center; gap: 30px; padding: 17px 21px; margin-bottom: 35px;
    font-size: 13px; color: var(--muted);
    background: linear-gradient(90deg, #19232d, #101c24);
    border: 1px solid #48504b; border-top-color: #7c6847;
    box-shadow: inset 0 1px 0 #dabc7920, 0 4px 14px #0002;
    position: relative;
}
.stat-strip::before, .stat-strip::after { content: ''; position: absolute; width: 5px; height: 5px; top: -3px; background: var(--gold); transform: rotate(45deg); }
.stat-strip::before { left: -3px; }
.stat-strip::after { right: -3px; }
.stat-strip > span { display: flex; align-items: center; gap: 8px; }
.stat-strip svg { color: var(--gold); }
.stat-strip strong { color: var(--text); font-weight: 600; }
.stat-strip .month-stat { margin-left: auto; font-size: 12px; gap: 10px; }

/* Toplist */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; padding-bottom: 55px; }
.content-grid { animation: rise-in .75s .12s ease-out both; }
.rankings { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; gap: 15px; }
.heading-with-icon { display: flex; align-items: center; gap: 12px; }
.heading-with-icon svg { color: var(--gold); }
.section-heading .muted { font-size: 13px; }
.filter-form { display: flex; gap: 10px; margin-bottom: 17px; }
.search-field { flex: 1; min-width: 80px; position: relative; }
.search-field svg { position: absolute; top: 14px; left: 14px; color: #929da6; }
.search-field input { width: 100%; padding-left: 43px; }
input, select, textarea {
    min-height: 47px; padding: 10px 13px; color: var(--text); line-height: 1.4;
    border: 1px solid #45515c; border-radius: 3px;
    background: #0c151e; box-shadow: inset 0 2px 6px #0005;
}
input::placeholder, textarea::placeholder { color: #929fae; font-size: 14px; opacity: 1; }
select { font-size: 14px; max-width: 100%; padding-right: 26px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.filter-tabs a { font-size: 14px; padding: 6px 14px; border: 1px solid transparent; border-radius: 3px; color: #b4bec7; }
.filter-tabs a.selected { color: #9aeee1; background: #123334; border-color: #397370; box-shadow: inset 0 1px 0 #69e3d01c; }
.filter-tabs a:hover { color: #a5fff0; background: #193033; }
.demo-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #92a4ad; margin: 0 0 12px; }
.server-list { display: grid; gap: 12px; }
.server-card {
    display: flex; align-items: center; gap: 18px; min-height: 139px;
    padding: 22px 20px 22px 15px; border: 1px solid #3b4651; border-radius: 4px;
    background: linear-gradient(135deg, #202b36, #151f29 50%, #121d25);
    box-shadow: inset 0 1px 0 #8194a518, inset 0 -2px 0 #080e1660, 0 4px 8px #0002;
    transition: border-color .15s, box-shadow .15s;
}
.server-card:hover { border-color: #8b764e; box-shadow: inset 0 1px 0 #d7bc8120, 0 4px 15px #0004; }
.server-card:first-child { border-color: #81704e; background: linear-gradient(115deg, #38332a70, #1b2730 40%, #142029); }
.rank-number { width: 27px; flex-shrink: 0; text-align: center; font: 16px var(--heading); color: #97a6b5; }
.rank-first { color: var(--gold-light); text-shadow: 0 0 12px #e9bd5f40; }
.accent-emerald { --accent: #82e3d5; --accent-bg: #194d50; --accent-dark: #102831; }
.accent-orange { --accent: #f0b88b; --accent-bg: #644034; --accent-dark: #29212a; }
.accent-violet { --accent: #c4b8ee; --accent-bg: #493f6b; --accent-dark: #202139; }
.accent-blue { --accent: #9bc5e9; --accent-bg: #304e6c; --accent-dark: #152534; }
.accent-pink { --accent: #e1accc; --accent-bg: #5a3755; --accent-dark: #2b2131; }
.accent-gold { --accent: #e5cc89; --accent-bg: #5a4a2b; --accent-dark: #292720; }
.server-sigil {
    position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center;
    flex-shrink: 0; overflow: hidden; width: 80px; height: 85px; border: 1px solid #9c8051; border-radius: 3px;
    background: radial-gradient(ellipse at 50% 20%, var(--accent-bg), var(--accent-dark));
    box-shadow: inset 0 0 0 3px #090f18, inset 0 0 0 4px #8a78594d, 0 3px 6px #0005;
}
.server-sigil span { z-index: 1; font: 42px var(--heading); color: var(--accent); text-shadow: 0 2px 5px #000, 0 0 12px color-mix(in srgb, var(--accent) 25%, transparent); }
.server-sigil::before { content: ''; position: absolute; width: 48px; height: 48px; transform: rotate(45deg); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.server-sigil::after { content: ''; position: absolute; inset: 8px; border: 1px solid #c4a45f1f; }
.server-sigil i { position: absolute; bottom: -18px; left: -10px; width: 100px; height: 40px; transform: rotate(-20deg); background: #090f1860; }
.server-info { flex: 1; min-width: 0; }
.server-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.server-title > a { font: 600 20px/1.3 var(--heading); color: #f0e3c3; overflow-wrap: anywhere; }
.server-title > a:hover { color: var(--gold-light); }
.sample-label { flex-shrink: 0; padding: 0 4px; border: 1px solid #51616c; border-radius: 2px; color: #a6b6c2; font-size: 9px; letter-spacing: 1px; }
.server-info > p { margin-bottom: 10px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tags span { border: 1px solid #3c4c59; border-radius: 2px; padding: 1px 7px; color: #aebbc8; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.tags .type-tag { color: var(--accent); background: color-mix(in srgb, var(--accent-bg) 35%, transparent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.vote-total {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 66px; padding: 8px 12px; border: 1px solid #377772; border-radius: 3px;
    color: #9dece0; background: linear-gradient(180deg, #1b3c3e, #12292e);
    box-shadow: inset 0 1px 0 #74e9d921, 0 2px 5px #0004; line-height: 1.3;
}
.vote-total:hover { color: #d2fff2; border-color: var(--teal); }
.vote-total strong { font: 600 21px var(--heading); }
.vote-total > span { margin-top: 2px; font-size: 11px; color: #a2c5c5; }
.ranking-footnote { display: flex; align-items: center; gap: 7px; margin: 19px 0 0; color: #92a1ae; font-size: 12px; }

/* Companion panels */
.sidebar { display: grid; align-content: start; gap: 20px; }
.owner-panel {
    position: relative; padding: 25px; border: 1px solid var(--gold-border); border-radius: 4px;
    background: radial-gradient(ellipse at top right, #227c7326, transparent 65%), linear-gradient(140deg, #202b33, #142229);
    box-shadow: inset 0 0 0 3px #0c141dcc, inset 0 0 0 4px #b99a5525, 0 6px 20px #0003;
}
.owner-panel::before { content: ''; position: absolute; top: -4px; left: calc(50% - 4px); width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.panel-portal { width: 76px; height: 76px; object-fit: contain; margin: -5px 0 18px; filter: drop-shadow(0 3px 10px #37d4bf1c); }
.panel-icon { display: grid; place-items: center; width: 51px; height: 51px; border: 1px solid #816b45; border-radius: 3px; background: #25333b; color: var(--gold); margin-bottom: 23px; box-shadow: inset 0 0 0 3px #101c25; }
.owner-panel .eyebrow { font-size: 10px; letter-spacing: 1.4px; margin-bottom: 12px; }
.owner-panel h2 { font-size: 27px; line-height: 1.35; margin-bottom: 16px; color: #f3e5c4; }
.owner-panel p { font-size: 14px; line-height: 1.8; margin-bottom: 23px; color: #b3c0c7; }
.owner-panel .button { justify-content: space-between; padding-inline: 14px; }
.small-note { display: block; text-align: center; font-size: 11px; color: #9aaeb6; margin-top: 12px; }
.sidebar-panel { padding: 24px; border: 1px solid #3d4c58; border-radius: 4px; background: linear-gradient(140deg, #1b2731, #121d27); box-shadow: inset 0 1px 0 #adb8c00b; }
.sidebar-panel h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 16px; }
.sidebar-panel h3 svg { color: var(--gold); }
.sidebar-panel h2 { margin-bottom: 16px; }
.sidebar-panel p { font-size: 14px; line-height: 1.8; }
.steps { display: grid; gap: 17px; list-style: none; padding: 0; margin: 20px 0 24px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; color: #b9c6cf; font-size: 13px; line-height: 1.8; }
.steps span { color: var(--gold); font: 14px/1.8 var(--heading); }
.community-link { display: flex; align-items: center; gap: 12px; padding: 5px 3px; }
.community-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #6a624d; border-radius: 3px; color: var(--gold); background: #1b2831; }
.community-link strong { font-size: 14px; display: block; font-weight: 500; }
.community-link small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.community-link > svg { margin-left: auto; color: var(--teal); }

/* Interior pages and forms */
.page-top { padding: 28px 0; }
.page-heading { padding: 20px 0 36px; }
.page-heading h1 { max-width: 950px; margin-bottom: 18px; }
.page-heading p { margin-bottom: 0; }
.surface { padding: 32px; background: linear-gradient(135deg, #1a2631, #131d28); border: 1px solid #46505a; border-top-color: #87724b; border-radius: 4px; box-shadow: inset 0 1px 0 #dfba7020, 0 5px 18px #0002; }
.profile-hero {
    display: flex; align-items: center; gap: 30px; padding: 34px; margin-bottom: 30px;
    border: 1px solid #85704c; border-radius: 4px;
    background: radial-gradient(ellipse at right, var(--accent-dark), #19242e);
    box-shadow: inset 0 0 0 4px #0b121944, inset 0 0 0 5px #bfa26915;
}
.large-sigil { width: 135px; height: 145px; }
.large-sigil span { font-size: 76px; }
.large-sigil::before { width: 90px; height: 90px; }
.profile-hero h1 { margin-bottom: 14px; overflow-wrap: anywhere; }
.profile-hero p { margin-bottom: 20px; overflow-wrap: anywhere; }
.article-content h2 { margin-bottom: 24px; color: #ead6ab; }
.article-content p { line-height: 1.9; }
.article-content .button { margin-top: 25px; }
.server-description { white-space: pre-line; line-height: 1.9; color: #b6c2cd; overflow-wrap: anywhere; }
.vote-panel { text-align: center; }
.vote-panel > svg { color: var(--gold); margin-bottom: 12px; }
.big-number { display: block; font: 54px/1.2 var(--heading); color: var(--gold-light); }
.vote-panel h2 { font-size: 23px; }
.vote-panel .button { justify-content: center; overflow-wrap: anywhere; }
.vote-panel p { font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 22px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: #d3d4cd; }
.field input, .field select, .field textarea { width: 100%; font-size: 16px; }
.field textarea { resize: vertical; min-height: 140px; }
.submission-form > p { font-size: 14px; margin: 10px 0 4px; }
.field-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 13px; color: #f3b6a9; }
[aria-invalid=true] { border-color: #c78474; }
.checkbox-field { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0; font-size: 14px; color: #b6c5cd; }
.checkbox-field input { min-height: 0; min-width: 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--teal); }
.checkbox-field a { color: var(--teal); text-decoration: underline; }
.form-actions { display: flex; gap: 20px; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }
.form-actions > span { font-size: 13px; }
.tips { padding-left: 20px; color: #b8c5cf; font-size: 14px; line-height: 1.8; }
.tips li { padding-left: 5px; margin-bottom: 14px; }
.tips li::marker { color: var(--gold); }
.community-heading { padding: 60px 0 38px; }
.community-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 28px; }
.community-cards .surface > svg { color: var(--gold); margin-bottom: 25px; }
.community-cards h2 { font-size: 23px; margin-bottom: 15px; }
.community-cards p { font-size: 15px; line-height: 1.8; }
.community-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 55px; }
.community-details p { font-size: 15px; }
.flash { margin-top: 24px; padding: 17px 22px; border: 1px solid #40817b; border-radius: 3px; color: #b0efe3; background: #153435; font-size: 14px; }
.flash.notice { color: #eedcb1; background: #393223; border-color: #85703c; }
.flash.error { color: #f0b9ad; background: #3b2529; border-color: #8d584c; }
.flash ul { margin-bottom: 0; }
.empty-state { text-align: center; padding: 55px 25px; background: var(--panel); border: 1px dashed #68634f; border-radius: 4px; }
.empty-state > svg { color: var(--gold); margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { font-size: 14px; }
.empty-state .text-link { margin-left: 18px; }
.error-page { margin: 60px 0; }
.error-page .eyebrow { justify-content: center; }
.error-page h1 { font-size: 38px; margin-bottom: 20px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 22px; font-size: 14px; }
.pagination > span { color: var(--muted); }
.pagination > a { color: var(--teal); }

/* Footer and accessibility */
.site-footer { border-top: 1px solid #64553b; background: linear-gradient(180deg, #131e27, #0b131d); padding-top: 25px; box-shadow: inset 0 3px 0 #070b1166; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; }
.footer-brand { display: inline-block; }
.footer-brand img { width: 185px; }
.footer-inner p { font-size: 12px; margin: 0; }
.footer-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #b8c1c9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid #2d3a46; padding-block: 18px; font-size: 11px; color: #929fac; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 20px; background: var(--gold-light); color: #171e27; }

/* Tablet */
@media (max-width: 1100px) {
    .container { width: calc(100% - 48px); }
    .header-inner { gap: 32px; }
    .brand-wordmark { width: 215px; }
    .brand-portal { width: 44px; }
    .content-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
    .owner-panel, .sidebar-panel { padding: 22px; }
    .server-card { gap: 13px; padding-inline: 13px; }
    .server-sigil { width: 65px; height: 76px; }
    .server-title > a { font-size: 18px; }
    .intro-emblem { width: 270px; margin-right: 0; }
    .intro-emblem img { width: 260px; }
    .server-info > p { font-size: 13px; }
    .community-cards .surface { padding: 24px; }
    .large-sigil { width: 120px; height: 135px; }
}
@media (max-width: 860px) {
    .header-inner { gap: 25px; }
    .brand-wordmark { width: 190px; }
    .brand-portal { display: none; }
    .primary-nav { gap: 22px; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr 1fr; }
    .community-link { grid-column: 1 / -1; max-width: 340px; }
    .owner-panel { padding: 26px; }
    .server-card { padding: 20px; gap: 22px; }
    .server-sigil { width: 80px; height: 85px; }
    .server-info > p { font-size: 14px; }
    .server-title > a { font-size: 21px; }
    .intro { min-height: 290px; }
    .intro h1 { font-size: 38px; }
    .intro .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
    .intro-emblem { width: 210px; height: 230px; }
    .intro-emblem img { width: 220px; max-width: none; }
    .portal-halo { width: 240px; height: 230px; }
    .community-cards, .community-details { grid-template-columns: 1fr; }
    .footer-links { gap: 17px; }
    .stat-strip { gap: 19px; padding-inline: 15px; }
    .form-grid { gap: 25px; }
}
/* Mobile */
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .header-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 7px; }
    .brand-wordmark { width: 185px; }
    .header-submit { font-size: 12px; padding: 9px 10px; min-height: 37px; gap: 4px; }
    .header-submit svg { width: 13px; }
    .primary-nav { order: 3; width: 100%; height: 48px; gap: 30px; }
    .primary-nav a { font-size: 14px; }
    .intro { min-height: 270px; padding: 32px 0 28px; overflow: hidden; }
    .intro-copy { max-width: 100%; }
    .intro h1 { font-size: 36px; max-width: 310px; }
    .intro p { font-size: 14px; max-width: 280px; }
    .intro .eyebrow { max-width: 250px; font-size: 9px; }
    .intro-emblem { position: absolute; right: -47px; top: 35px; width: 170px; height: 215px; opacity: .17; pointer-events: none; }
    .intro-emblem img { width: 200px; }
    .portal-halo { width: 210px; height: 210px; }
    h1 { font-size: 34px; }
    .eyebrow { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 14px; }
    .stat-strip { flex-wrap: wrap; gap: 12px 17px; padding: 15px 13px; margin-bottom: 27px; font-size: 12px; }
    .stat-strip .month-stat { margin-left: 0; font-size: 12px; }
    .content-grid { padding-bottom: 35px; gap: 30px; }
    .filter-form { flex-wrap: wrap; gap: 8px; }
    .search-field { flex-basis: 100%; }
    .filter-form select { flex: 1; }
    .filter-form .button { min-width: 100px; }
    .filter-tabs { gap: 3px; }
    .filter-tabs a { padding: 6px 10px; font-size: 13px; }
    .server-card { position: relative; gap: 10px; padding: 17px 11px; min-height: 145px; }
    .rank-number { width: 18px; font-size: 13px; align-self: flex-start; padding-top: 8px; }
    .server-sigil { width: 45px; height: 56px; align-self: flex-start; margin-top: 3px; }
    .server-sigil span { font-size: 29px; }
    .server-sigil::before { width: 32px; height: 32px; }
    .server-title { gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
    .server-title > a { font-size: 17px; }
    .server-info > p { font-size: 13px; margin-bottom: 12px; }
    .tags { gap: 4px; }
    .tags span { font-size: 10px; padding: 1px 5px; }
    .vote-total { min-width: 43px; padding: 7px 4px; align-self: flex-start; margin-top: 3px; }
    .vote-total strong { font-size: 17px; }
    .vote-total > span { font-size: 10px; }
    .sidebar { grid-template-columns: 1fr; }
    .community-link { grid-column: auto; }
    .ranking-footnote { align-items: flex-start; font-size: 12px; }
    .ranking-footnote svg { margin-top: 3px; }
    .footer-inner { flex-direction: column; gap: 23px; }
    .footer-links { flex-wrap: wrap; gap: 14px 20px; }
    .footer-bottom { flex-direction: column; gap: 7px; }
    .surface { padding: 23px; }
    .page-heading { padding-top: 10px; }
    .page-heading h1 { font-size: 32px; }
    .page-heading p { font-size: 15px; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .field-row .field:first-child { grid-column: 1 / -1; }
    .form-actions { flex-direction: column; align-items: flex-start; gap: 13px; }
    .profile-hero { padding: 23px; gap: 17px; align-items: flex-start; }
    .large-sigil { width: 62px; height: 76px; }
    .large-sigil span { font-size: 40px; }
    .large-sigil::before { width: 42px; height: 42px; }
    .profile-hero h1 { font-size: 30px; }
    .profile-hero p { font-size: 14px; }
    .profile-hero .eyebrow { font-size: 9px; }
    .community-heading { padding-top: 36px; }
    .community-cards { gap: 15px; }
    .empty-state .text-link { display: flex; justify-content: center; margin: 20px 0 0; }
    .error-page h1 { font-size: 30px; }
    .desktop-break { display: none; }
}
@media (max-width: 380px) {
    .brand-wordmark { width: 158px; }
    .header-submit { font-size: 11px; padding-inline: 8px; }
    .server-card { flex-wrap: wrap; gap: 10px; }
    .server-info { flex-basis: calc(100% - 100px); }
    .vote-total { flex-direction: row; gap: 6px; margin: 0 0 0 auto; min-width: 95px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes portal-drift {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

/* Owner accounts and listing moderation */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.header-actions .header-submit { margin-left: 0; white-space: nowrap; }
.header-login { color: var(--gold-light); font-size: 14px; white-space: nowrap; }
.account-menu { position: relative; z-index: 20; font-size: 14px; }
.account-menu > summary { cursor: pointer; color: var(--gold-light); white-space: nowrap; padding: 10px 0; }
.account-menu[open] > summary { color: var(--teal); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 12px; border: 1px solid var(--gold-border); background: #14212c; box-shadow: 0 12px 25px #0008; }
.account-dropdown > span { display: block; padding: 8px 10px 12px; font-size: 12px; overflow-wrap: anywhere; color: var(--muted); border-bottom: 1px solid var(--border); }
.account-dropdown a, .account-dropdown button { display: block; padding: 10px; width: 100%; text-align: left; color: var(--text); background: none; border: 0; border-radius: 2px; font: inherit; }
.account-dropdown a:hover, .account-dropdown button:hover { color: var(--teal); background: #20343b; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; max-width: 1000px; margin: 55px auto 65px; }
.auth-intro > img { width: 160px; margin: 0 0 20px; filter: drop-shadow(0 0 20px #20d4ba18); }
.auth-intro h1 { font-size: 42px; margin-bottom: 20px; }
.auth-intro p { max-width: 380px; }
.auth-form h2 { font-size: 24px; }
.auth-form .field-hint { margin: 7px 0 0; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.auth-options .checkbox-field { margin-block: 24px; }
.auth-options .text-link { font-size: 13px; }
.auth-submit { margin-top: 26px; }
.auth-switch { margin: 24px 0 0; text-align: center; font-size: 14px; }
.auth-switch a { color: var(--teal); }
.auth-single { max-width: 520px; margin: 60px auto; }
.auth-single h1 { font-size: 30px; margin-bottom: 18px; }
.management-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-top: 45px; }
.management-heading > div { min-width: 0; }
.management-heading h1 { font-size: 38px; overflow-wrap: anywhere; }
.management-heading > .button { flex-shrink: 0; }
.management-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.dashboard-stats .surface { padding: 20px 23px; }
.dashboard-stats span { display: block; font-size: 13px; color: var(--muted); }
.dashboard-stats strong { display: block; font: 32px/1.4 var(--heading); color: var(--gold-light); margin-top: 7px; }
.management-list { display: grid; gap: 16px; padding-bottom: 60px; }
.management-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px; }
.management-card > div { min-width: 0; }
.management-card > .button { flex-shrink: 0; }
.management-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 9px; }
.management-card h2 { font-size: 23px; overflow-wrap: anywhere; }
.management-card p { margin-bottom: 13px; overflow-wrap: anywhere; font-size: 14px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: #a4b5bf; }
.status-badge { display: inline-block; border: 1px solid; border-radius: 3px; padding: 4px 9px; font: 500 12px/1.4 var(--font); }
.status-pending { color: #f0d391; background: #493c243f; border-color: #8d7848; }
.status-approved { color: #92e4d2; background: #16453e5c; border-color: #397a6c; }
.status-rejected { color: #f2bfa1; background: #4b31253f; border-color: #9d7359; }
.status-removed { color: #eeb4b4; background: #482a333f; border-color: #90586a; }
.listing-details { margin: 30px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.listing-details > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--border); font-size: 14px; }
.listing-details dt { color: var(--muted); }
.listing-details dd { margin: 0; overflow-wrap: anywhere; }
.listing-details a { color: var(--teal); }
.review-feedback { border-top: 1px solid var(--border); padding-top: 19px; margin-top: 22px; }
.review-feedback h3 { font-size: 16px; margin-bottom: 12px; }
.review-feedback p { white-space: pre-line; overflow-wrap: anywhere; }
.admin-tabs { margin-bottom: 27px; }
.admin-tabs a span { margin-left: 6px; color: var(--gold-light); }
.management-list .empty-state h2 { margin-bottom: 16px; }
.review-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.review-grid .sidebar { grid-template-columns: 1fr; }
@media (max-width: 1100px) {
    .header-inner { gap: 25px; }
    .header-actions { gap: 14px; }
    .brand-wordmark { width: 195px; }
    .brand-portal { width: 40px; }
}
@media (max-width: 950px) {
    .header-inner { flex-wrap: wrap; padding-top: 8px; }
    .header-actions { margin-left: auto; }
    .primary-nav { order: 3; width: 100%; height: 45px; }
    .brand-wordmark { width: 220px; }
    .header-inner { gap: 0 20px; }
    .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .auth-shell { grid-template-columns: 1fr; gap: 25px; margin-block: 35px; max-width: 500px; }
    .auth-intro > img { display: none; }
    .auth-intro h1 { font-size: 34px; }
    .auth-intro p { max-width: none; }
    .management-heading { flex-direction: column; align-items: flex-start; }
    .management-heading h1 { font-size: 32px; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .management-card { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
    .brand-wordmark { width: 166px; }
    .header-actions { gap: 12px; }
    .header-actions .header-submit { display: none; }
    .account-menu, .header-login { font-size: 14px; }
    .dashboard-stats .surface { padding: 17px; }
    .dashboard-stats span { font-size: 12px; }
    .listing-details > div { grid-template-columns: 1fr; gap: 4px; }
    .auth-single { margin-block: 35px; }
    .auth-single h1 { font-size: 28px; }
    .auth-options { gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
    .auth-options .checkbox-field { margin: 20px 0 0; }
    .auth-options .text-link { margin-top: 16px; }
}
