/* site.css - the whole look of the website: a 2008 MMORPG site, but modern (docs/design/website.md 9). Tokens first, then base, chrome, components, pages, admin, responsive. */

:root {
  --bg-0: #07090d; --bg-1: #0d1118; --bg-2: #151b26; --line: #2a3142;
  --gold: #d8b25a; --gold-hi: #f3dc9a; --gold-lo: #8d6b25;
  --crimson: #b3262e; --crimson-hi: #e04a52; --jade: #35c49a; --azure: #4aa3df;
  --text: #e9e3d4; --text-dim: #a8a290; --text-mute: #6f6b5f;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
  --maxw: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-0); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 var(--font-body); color: var(--text);
  background:
    radial-gradient(1100px 560px at 50% -160px, rgba(179, 38, 46, .22), transparent 70%),
    radial-gradient(900px 700px at 105% 38%, rgba(216, 178, 90, .06), transparent 70%),
    radial-gradient(800px 600px at -10% 70%, rgba(74, 163, 223, .05), transparent 70%),
    var(--bg-0);
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main { flex: 1; position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff6d8; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(216, 178, 90, .35); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6rem; color: var(--gold-hi); font-weight: 700; }
p { margin: 0 0 1rem; }
code, pre, .mono { font-family: var(--font-mono); }
code { background: rgba(255, 255, 255, .06); padding: .08em .35em; border-radius: 3px; font-size: .88em; }
hr, .rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 1.4rem 0; }
.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--gold); color: #1a1306; padding: .5rem .9rem; border-radius: 3px; }
.skip:focus { top: .5rem; text-decoration: none; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.muted { color: var(--text-dim); }
.ok { color: var(--jade); } .bad { color: var(--crimson-hi); }
.nowrap { white-space: nowrap; } .wrap { word-break: break-word; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- top bar ---------- */
.banner { position: relative; z-index: 21; font-size: .9rem; padding: .5rem 0; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .4); }
.banner .container { display: flex; gap: .6rem; justify-content: center; align-items: center; }
.banner--info { background: linear-gradient(90deg, #2a2210, #3a2e12, #2a2210); color: var(--gold-hi); }
.banner--warn { background: linear-gradient(90deg, #3a1114, #4d1519, #3a1114); color: #ffb4b8; }
.top {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7, 9, 13, .97), rgba(7, 9, 13, .84));
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold-lo) 20%, var(--gold) 50%, var(--gold-lo) 80%, transparent) 1;
}
.top__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--gold-hi); font: 700 1.05rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; color: #fff6d8; }
.logo { width: 42px; height: 42px; filter: drop-shadow(0 0 8px rgba(216, 178, 90, .35)); flex: none; }
.nav { display: flex; gap: .25rem; margin-left: 1.25rem; }
.nav a { position: relative; padding: .5rem .85rem; font: 600 .82rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: .15rem; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: left .2s, right .2s; }
.nav a:hover { color: var(--gold-hi); text-decoration: none; }
.nav a:hover::after, .nav a.is-active::after { left: .85rem; right: .85rem; }
.nav a.is-active { color: var(--gold-hi); }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.burger { display: none; width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 4px; }
.burger i { width: 20px; height: 2px; background: var(--gold-hi); transition: transform .2s, opacity .2s; }
.nav-toggle:checked + .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .burger i:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .burger { outline: 2px solid var(--gold); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .18rem .7rem; border-radius: 999px; border: 1px solid; font: 600 .76rem var(--font-body); letter-spacing: .04em; white-space: nowrap; }
.pill--on { color: #aef0d8; border-color: rgba(53, 196, 154, .5); background: rgba(53, 196, 154, .1); }
.pill--off { color: #ffb4b8; border-color: rgba(224, 74, 82, .5); background: rgba(224, 74, 82, .1); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill--on .dot { animation: pulse 2.2s ease-in-out infinite; }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 .95rem var(--font-display); color: #1a1306; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 0 0 3px rgba(216, 178, 90, .4); flex: none; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.9rem; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: .2rem .35rem; border-radius: 999px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: rgba(216, 178, 90, .08); }
.usermenu__name { font-size: .88rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + .55rem); min-width: 210px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: .4rem; z-index: 30; }
.usermenu__panel a, .usermenu__panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; font: inherit; font-size: .92rem; color: var(--text); background: none; border: 0; border-radius: 3px; text-align: left; cursor: pointer; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: rgba(216, 178, 90, .12); color: var(--gold-hi); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .66em 1.25em; overflow: hidden; white-space: nowrap;
  font: 700 .84rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--gold-hi); border: 1px solid var(--gold-lo); border-radius: 3px;
  background: linear-gradient(180deg, rgba(216, 178, 90, .12), rgba(216, 178, 90, .02));
  transition: background .18s, border-color .18s, box-shadow .18s, color .18s, transform .08s;
}
.btn:hover { text-decoration: none; color: #fff6d8; border-color: var(--gold); background: rgba(216, 178, 90, .17); box-shadow: 0 0 18px rgba(216, 178, 90, .22); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--primary { color: #1a1306; border-color: #f3dc9a; background: linear-gradient(180deg, #f7e2a4 0%, #d8b25a 48%, #a77f30 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(0, 0, 0, .45), 0 6px 22px rgba(216, 178, 90, .26); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn--primary:hover { color: #1a1306; filter: brightness(1.07); background: linear-gradient(180deg, #fbe9b4 0%, #e2bd66 48%, #b78a34 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(0, 0, 0, .45), 0 8px 30px rgba(216, 178, 90, .45); }
.btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); transition: left .5s; }
.btn--primary:hover::after { left: 130%; }
.btn--ghost { background: rgba(7, 9, 13, .35); }
.btn--danger { color: #ffb4b8; border-color: #7a1d23; background: linear-gradient(180deg, rgba(179, 38, 46, .25), rgba(179, 38, 46, .08)); }
.btn--danger:hover { color: #fff; border-color: var(--crimson-hi); background: rgba(179, 38, 46, .4); box-shadow: 0 0 18px rgba(224, 74, 82, .3); }
.btn--lg { padding: .95em 1.9em; font-size: 1rem; letter-spacing: .14em; }
.btn--sm { padding: .55em 1em; font-size: .78rem; }
.btn--xs { padding: .38em .7em; font-size: .7rem; letter-spacing: .08em; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:disabled { color: var(--text-mute); cursor: not-allowed; text-decoration: none; }

/* ---------- panels and small parts ---------- */
.panel { position: relative; padding: 1.3rem 1.45rem; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 27, 38, .9), rgba(13, 17, 24, .92)); box-shadow: var(--shadow); }
.frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(216, 178, 90, .15); border-radius: 2px; pointer-events: none; }
.frame::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 18px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 18px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 18px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 100% / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 18px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 18px no-repeat;
}
.empty { text-align: center; color: var(--text-dim); padding: 2.2rem 1rem; }
.empty p { margin: 0; }
.notice, .flash { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 3px; border: 1px solid; margin: 0 0 1rem; font-size: .93rem; }
.notice--err, .flash--err { color: #ffc2c5; border-color: rgba(224, 74, 82, .55); background: rgba(179, 38, 46, .16); }
.notice--warn { color: var(--gold-hi); border-color: rgba(216, 178, 90, .5); background: rgba(216, 178, 90, .1); }
.notice--info, .flash--info { color: #b9d9f2; border-color: rgba(74, 163, 223, .45); background: rgba(74, 163, 223, .1); }
.flash--ok { color: #b5f0dc; border-color: rgba(53, 196, 154, .5); background: rgba(53, 196, 154, .1); }
.flash { margin-top: 1.25rem; }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 2px; font: 700 .68rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; border: 1px solid; vertical-align: middle; }
.badge--notice { color: var(--gold-hi); border-color: rgba(216, 178, 90, .55); background: rgba(216, 178, 90, .12); }
.badge--update { color: #aef0d8; border-color: rgba(53, 196, 154, .5); background: rgba(53, 196, 154, .1); }
.badge--event { color: #ffb4b8; border-color: rgba(224, 74, 82, .5); background: rgba(224, 74, 82, .1); }
.badge--maintenance { color: #c9ced9; border-color: rgba(160, 170, 190, .45); background: rgba(160, 170, 190, .1); }
.badge--guide { color: #b9d9f2; border-color: rgba(74, 163, 223, .5); background: rgba(74, 163, 223, .1); }
.badge--role { color: #1a1306; border-color: var(--gold-hi); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.badge--on { color: #aef0d8; border-color: rgba(53, 196, 154, .5); background: rgba(53, 196, 154, .12); }
.fac { display: inline-flex; align-items: center; gap: .35rem; padding: .08rem .55rem; border-radius: 999px; font: 600 .74rem var(--font-body); border: 1px solid; }
.fac__seal { width: 1.35rem; height: 1.35rem; margin: -.3rem 0 -.3rem -.45rem; border-radius: 50%; flex: none; }
.fac--zhuang { color: #b9dcf5; border-color: rgba(74, 163, 223, .55); background: rgba(74, 163, 223, .12); }
.fac--shao { color: #ffb4b8; border-color: rgba(224, 74, 82, .55); background: rgba(224, 74, 82, .12); }
.fac--none { color: var(--text-mute); border-color: var(--line); }
.medal { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font: 700 .8rem var(--font-display); color: var(--text-dim); background: #131a27; border: 1px solid var(--line); }
.medal--1 { color: #2a1d04; border-color: #f3dc9a; background: radial-gradient(circle at 30% 25%, #fff3c9, #d8b25a 55%, #8d6b25); box-shadow: 0 0 14px rgba(216, 178, 90, .55); }
.medal--2 { color: #1c222c; border-color: #e3e8f0; background: radial-gradient(circle at 30% 25%, #ffffff, #bcc5d4 55%, #7d879a); box-shadow: 0 0 12px rgba(190, 200, 220, .35); }
.medal--3 { color: #2b1706; border-color: #e0a874; background: radial-gradient(circle at 30% 25%, #ffd9b2, #c27d3d 55%, #7a4519); box-shadow: 0 0 12px rgba(194, 125, 61, .35); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: .82rem; color: var(--text-dim); }
.meta time { color: var(--text-dim); }
.pinned { display: inline-flex; gap: .25rem; align-items: center; color: var(--gold); font-size: .78rem; }
.more { display: inline-flex; align-items: center; gap: .25rem; font: 700 .78rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.more .i { transition: transform .18s; }
.more:hover .i { transform: translateX(3px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1rem; font-size: .85rem; color: var(--text-dim); }
.crumbs span:not(:last-child) { color: var(--text-mute); }

.section-title { display: flex; align-items: center; gap: 1rem; margin: 2.8rem 0 1.3rem; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 1.05rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.section-title h2::before, .section-title h2::after { content: "◆"; color: var(--gold); font-size: .55em; vertical-align: middle; margin: 0 .85rem; opacity: .85; }
.section-title__rule { flex: 1; height: 1px; min-width: 2rem; background: linear-gradient(90deg, transparent, var(--gold-lo)); }
.section-title__rule:last-of-type { background: linear-gradient(90deg, var(--gold-lo), transparent); }
.section-title p { flex-basis: 100%; text-align: center; color: var(--text-dim); margin: 0; }
.h-sub { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; letter-spacing: .08em; margin: 0 0 1rem; }
.h-sub .i { color: var(--gold); }
.h-mini { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 .7rem; }
.pagehead { text-align: center; padding: 2.6rem 0 1.4rem; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; background: linear-gradient(180deg, #fff3c9, #d8b25a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pagehead p { color: var(--text-dim); margin: 0; }
.pagehead--left { text-align: left; padding-top: 0; }
/* a page header with its own painting: a framed plaque, the picture under a scrim that keeps the title readable whatever the art does */
.pagehead--art { position: relative; isolation: isolate; overflow: hidden; margin: 1.8rem 0 1.4rem; padding: 3.4rem 1.5rem 3rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-1); box-shadow: var(--shadow); }
.pagehead--art > * { position: relative; }
.pagehead__art { position: absolute; inset: 0; z-index: -1; display: block; }
.pagehead__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pagehead__art::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 120% at 50% 50%, rgba(7, 9, 13, .74), rgba(7, 9, 13, .34) 72%, rgba(7, 9, 13, .18)),
  linear-gradient(180deg, rgba(7, 9, 13, .1), rgba(7, 9, 13, .58)); }
.pagehead--art h1 { text-shadow: none; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .75)); }
.pagehead--art p { color: var(--text); text-shadow: 0 2px 12px #000, 0 0 3px #000; }
.page { padding-bottom: 3rem; }
.page--narrow { max-width: 860px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(520px, 50vw, 880px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid #1b2230; }
.hero__art { position: absolute; inset: 0; background: var(--bg-0); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 16%; transform-origin: 0% 40%; display: block; animation: heroin 1.6s ease-out both, heroslow 60s ease-in-out 1.6s infinite alternate; }
/* the veil keeps the title readable whatever the picture does: darker left and bottom, a soft vignette, and the page's ink at the foot */
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7, 9, 13, .78) 0%, rgba(7, 9, 13, .46) 34%, rgba(7, 9, 13, 0) 62%),
  linear-gradient(180deg, rgba(7, 9, 13, .5) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0) 58%, var(--bg-0) 100%),
  radial-gradient(120% 100% at 60% 40%, transparent 45%, rgba(7, 9, 13, .5) 100%); }
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: #ffb25a; box-shadow: 0 0 8px 2px rgba(255, 150, 70, .65); opacity: 0; animation: ember 10s linear infinite; }
.embers i:nth-child(1)  { left: 6%;  --dx: 40px;  animation-duration: 11s; animation-delay: -1s; }
.embers i:nth-child(2)  { left: 14%; --dx: -30px; animation-duration: 13s; animation-delay: -6s; width: 3px; height: 3px; }
.embers i:nth-child(3)  { left: 22%; --dx: 60px;  animation-duration: 9s;  animation-delay: -3s; }
.embers i:nth-child(4)  { left: 31%; --dx: -50px; animation-duration: 12s; animation-delay: -8s; width: 5px; height: 5px; }
.embers i:nth-child(5)  { left: 39%; --dx: 20px;  animation-duration: 14s; animation-delay: -2s; width: 3px; height: 3px; }
.embers i:nth-child(6)  { left: 47%; --dx: -70px; animation-duration: 10s; animation-delay: -5s; }
.embers i:nth-child(7)  { left: 55%; --dx: 50px;  animation-duration: 15s; animation-delay: -9s; width: 3px; height: 3px; }
.embers i:nth-child(8)  { left: 62%; --dx: -20px; animation-duration: 11s; animation-delay: -4s; }
.embers i:nth-child(9)  { left: 70%; --dx: 80px;  animation-duration: 13s; animation-delay: -7s; width: 5px; height: 5px; }
.embers i:nth-child(10) { left: 77%; --dx: -40px; animation-duration: 9s;  animation-delay: -1.5s; width: 3px; height: 3px; }
.embers i:nth-child(11) { left: 84%; --dx: 30px;  animation-duration: 12s; animation-delay: -10s; }
.embers i:nth-child(12) { left: 90%; --dx: -60px; animation-duration: 14s; animation-delay: -3.5s; }
.embers i:nth-child(13) { left: 95%; --dx: 20px;  animation-duration: 10s; animation-delay: -6.5s; width: 3px; height: 3px; }
.embers i:nth-child(14) { left: 27%; --dx: -20px; animation-duration: 16s; animation-delay: -11s; width: 3px; height: 3px; }
.hero__body { position: relative; z-index: 2; text-align: left; padding: 7rem 0 5.5rem; }
.hero__body > * { max-width: 600px; }
.hero__kicker { margin: 0; font: 600 .82rem var(--font-display); letter-spacing: .55em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 10px #000; }
.hero__title { margin: 1.1rem 0 .9rem; line-height: 0; }
.hero__wordmark { width: min(540px, 86vw); height: auto; display: block; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .7)) drop-shadow(0 0 34px rgba(216, 178, 90, .2)); }
.hero__tag { font-size: clamp(1.02rem, 2.2vw, 1.4rem); color: var(--text); text-shadow: 0 2px 14px #000, 0 0 3px #000; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; }
.hero__status { display: flex; justify-content: flex-start; align-items: center; gap: .8rem; margin: 1.6rem 0 0; font-size: .92rem; color: var(--text-dim); text-shadow: 0 1px 8px #000; }

/* ---------- home ---------- */
.home { padding-bottom: 3rem; }
.strip { list-style: none; margin: -2.2rem 0 0; padding: 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.strip li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1rem 1.2rem; background: linear-gradient(180deg, #121823, #0d1118); }
.strip .i { grid-row: span 2; width: 2rem; height: 2rem; color: var(--gold); }
.strip b { font: 700 .88rem var(--font-display); letter-spacing: .08em; color: var(--gold-hi); }
.strip span { font-size: .82rem; color: var(--text-dim); line-height: 1.35; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.8rem; align-items: start; }
.home__grid .section-title { margin-top: 2.4rem; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 0; overflow: hidden; }
.feature__media { display: block; position: relative; min-height: 230px; background: #0a0e15; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__art { display: grid; place-items: center; position: absolute; inset: 0; color: var(--gold); }
.feature__art .i { width: 4rem; height: 4rem; stroke-width: 1.1; filter: drop-shadow(0 0 14px currentColor); }
.feature__art--notice { background: radial-gradient(circle at 30% 30%, rgba(216, 178, 90, .38), transparent 62%), linear-gradient(135deg, #20190b, #0d1118); }
.feature__art--update { color: var(--jade); background: radial-gradient(circle at 30% 30%, rgba(53, 196, 154, .3), transparent 62%), linear-gradient(135deg, #0c1f1b, #0d1118); }
.feature__art--event { color: var(--crimson-hi); background: radial-gradient(circle at 30% 30%, rgba(224, 74, 82, .34), transparent 62%), linear-gradient(135deg, #240f12, #0d1118); }
.feature__art--maintenance { color: #b9c2d6; background: radial-gradient(circle at 30% 30%, rgba(160, 170, 190, .25), transparent 62%), linear-gradient(135deg, #151a25, #0d1118); }
.feature__body { padding: 1.5rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }
.feature__body h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.feature__body h3 a { color: var(--gold-hi); }
.feature__body p { color: var(--text-dim); }
.newslist { list-style: none; margin: 1rem 0 0; padding: 0; }
.newslist li { display: grid; grid-template-columns: 7.2rem auto 1fr; gap: .8rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid rgba(42, 49, 66, .7); }
.newslist time { font-size: .82rem; color: var(--text-mute); }
.newslist a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newslist a:hover { color: var(--gold-hi); }
.home__more { text-align: right; margin: 1rem 0 0; }
.home__side { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
.side { padding: 1.1rem 1.25rem 1.2rem; }
.side__title { display: flex; align-items: center; gap: .55rem; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.side__title .i { color: var(--gold); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; text-align: right; }
.kv--wide { grid-template-columns: 11rem 1fr; }
.kv--wide dd { text-align: left; word-break: break-all; }
.toplist { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: none; }
.toplist li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .42rem 0; border-bottom: 1px dashed rgba(42, 49, 66, .8); }
.toplist li:last-child { border-bottom: 0; }
.toplist__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.toplist__lv { font-size: .8rem; color: var(--gold); font-weight: 700; }
.discord { display: flex; align-items: center; gap: .9rem; color: var(--text); }
.discord:hover { text-decoration: none; border-color: var(--gold-lo); }
.discord span { display: grid; flex: 1; line-height: 1.3; }
.discord small { color: var(--text-dim); }
.discord .i:first-child { width: 1.8rem; height: 1.8rem; color: #8ea1ff; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.step { text-align: center; padding-top: 2.2rem; }
.step__n { position: absolute; top: -1.15rem; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; font: 700 1.1rem var(--font-display); color: #1a1306; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 0 0 4px var(--bg-0), 0 0 18px rgba(216, 178, 90, .45); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: .93rem; min-height: 4.2em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { display: flex; flex-direction: column; gap: .35rem; color: var(--text); transition: transform .2s, border-color .2s; }
.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--gold-lo); }
.card__kicker { font: 700 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 1.15rem; margin: 0; }
.card p { color: var(--text-dim); font-size: .92rem; flex: 1; margin: 0 0 .6rem; }

/* ---------- news / guide / article ---------- */
.tabs, .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; }
.tabs a, .chips a { padding: .45rem 1rem; font: 700 .76rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 17, 24, .7); }
.tabs a:hover, .chips a:hover { color: var(--gold-hi); border-color: var(--gold-lo); text-decoration: none; }
.tabs a.is-active, .chips a.is-active { color: #1a1306; border-color: var(--gold-hi); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 16px rgba(216, 178, 90, .3); }
.chips a.chip--zhuang.is-active { color: #05121c; border-color: #b9dcf5; background: linear-gradient(180deg, #b9dcf5, var(--azure)); box-shadow: 0 0 16px rgba(74, 163, 223, .3); }
.chips a.chip--shao.is-active { color: #fff; border-color: #ffb4b8; background: linear-gradient(180deg, #e8626a, var(--crimson)); box-shadow: 0 0 16px rgba(224, 74, 82, .3); }
.newsgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.newscard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.newscard__media { display: block; position: relative; aspect-ratio: 16 / 7; background: #0a0e15; }
.newscard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newscard__body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.newscard h2 { font-size: 1.28rem; margin-bottom: .5rem; }
.newscard h2 a { color: var(--gold-hi); }
.newscard p { color: var(--text-dim); flex: 1; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem 0 0; }
.pager__a { min-width: 2.3rem; padding: .4rem .7rem; text-align: center; font-size: .9rem; color: var(--text-dim); border: 1px solid var(--line); border-radius: 3px; background: rgba(13, 17, 24, .7); }
a.pager__a:hover { color: var(--gold-hi); border-color: var(--gold-lo); text-decoration: none; }
.pager__a.is-cur { color: #1a1306; border-color: var(--gold-hi); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); font-weight: 700; }
.pager__gap { padding: .4rem .3rem; color: var(--text-mute); }
.article { padding: 2rem 2.2rem 2.2rem; }
.article__cover { display: block; width: calc(100% + 4.4rem); margin: -2rem -2.2rem 1.6rem; max-width: none; aspect-ratio: 16 / 6; object-fit: cover; border-bottom: 1px solid var(--line); }
.article__head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.article__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.prose { font-size: 1.04rem; line-height: 1.75; color: #ddd7c7; }
.prose h2, .prose h3, .prose h4 { margin: 2rem 0 .7rem; }
.prose h2 { font-size: 1.5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; letter-spacing: .06em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(216, 178, 90, .5); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin: .25rem 0; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.2rem 0; padding: .6rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(216, 178, 90, .07); border-radius: 0 3px 3px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose pre { overflow-x: auto; padding: 1rem 1.1rem; background: #080b10; border: 1px solid var(--line); border-radius: 3px; font-size: .9rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose hr { margin: 2rem 0; }
.prose img { border-radius: 3px; border: 1px solid var(--line); margin: .6rem 0; }
.related { margin-top: 1rem; }
.search { display: flex; gap: .6rem; max-width: 560px; margin: 0 auto 2rem; }
.search input { flex: 1; }
.guidegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.guidecat > header { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .6rem; }
.guidecat h2 { font-size: 1.2rem; margin-bottom: .15rem; }
.guidecat p { color: var(--text-dim); font-size: .9rem; margin: 0; }
.guidecat__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--gold-lo); border-radius: 50%; color: var(--gold); flex: none; background: rgba(216, 178, 90, .08); }
.guidecat__icon .i { width: 1.3rem; height: 1.3rem; }
.guidelist { list-style: none; margin: 0; padding: 0; }
.guidelist li + li { border-top: 1px solid rgba(42, 49, 66, .75); }
.guidelist a { display: grid; padding: .7rem .35rem; color: var(--text); }
.guidelist a:hover { background: rgba(216, 178, 90, .07); text-decoration: none; }
.guidelist b { color: var(--gold-hi); font-weight: 600; }
.guidelist span { color: var(--text-dim); font-size: .86rem; }
.panel.guidelist { padding: .6rem 1rem; }
.split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.side-nav { position: sticky; top: 90px; padding: 1.1rem 1.2rem; }
.side-nav h3 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.side-nav ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; color: var(--text-dim); border-radius: 3px; font-size: .93rem; }
.side-nav a:hover { color: var(--gold-hi); background: rgba(216, 178, 90, .07); text-decoration: none; }
.side-nav a.is-active { color: var(--gold-hi); background: rgba(216, 178, 90, .12); box-shadow: inset 2px 0 0 var(--gold); }
.side-nav small { color: var(--text-mute); }

/* ---------- ranking ---------- */
.rankbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; align-items: center; }
.podium { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 1.1rem; align-items: end; }
.podium li { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.2rem 1rem 1.3rem; }
.podium__1 { padding-block: 2rem 2.2rem !important; border-color: var(--gold-lo) !important; box-shadow: 0 0 40px rgba(216, 178, 90, .15), var(--shadow); }
.podium__medal { width: 2.8rem; height: 2.8rem; font-size: 1.15rem; }
.podium__1 .podium__medal { width: 3.4rem; height: 3.4rem; font-size: 1.4rem; }
.podium__name { font: 700 1.2rem var(--font-display); color: var(--gold-hi); overflow-wrap: anywhere; }
.podium__lv { color: var(--text-dim); font-size: .9rem; }
.tablewrap { padding: .4rem; overflow-x: auto; overflow-y: hidden; }
table.rank { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.rank th { padding: .75rem .9rem; text-align: left; font: 700 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-lo); white-space: nowrap; }
table.rank td { padding: .65rem .9rem; border-bottom: 1px solid rgba(42, 49, 66, .55); vertical-align: middle; }
table.rank tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
table.rank tbody tr:hover { background: rgba(216, 178, 90, .06); }
table.rank tbody tr:last-child td { border-bottom: 0; }
.rank--tight td, .rank--tight th { padding: .5rem .7rem; }
.c-rank { width: 3.2rem; } .c-num { text-align: right; font-variant-numeric: tabular-nums; } .c-act { text-align: right; white-space: nowrap; }
.c-name { font-weight: 600; color: var(--text); }
.c-name a { color: var(--gold-hi); }
.lv { display: inline-block; min-width: 2.4rem; text-align: center; padding: .05rem .5rem; border-radius: 3px; font-weight: 700; color: var(--gold-hi); background: rgba(216, 178, 90, .1); border: 1px solid rgba(216, 178, 90, .3); }
.is-mine td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.is-mine { background: rgba(216, 178, 90, .09) !important; }
.is-banned { opacity: .6; }
.you { color: #1a1306; background: var(--gold); padding: .05rem .4rem; border-radius: 2px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 2rem 2.4rem; margin-bottom: 1.5rem; background: radial-gradient(600px 240px at 0% 0%, rgba(216, 178, 90, .12), transparent 70%), linear-gradient(180deg, rgba(21, 27, 38, .92), rgba(13, 17, 24, .94)); }
.dl__art .logo { width: 120px; height: 120px; }
.dl h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.dl__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.1rem 0 .8rem; }
.dl__ver { margin: 0; color: var(--text-dim); font-size: .9rem; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 1rem 2.6rem; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font: 700 .9rem var(--font-display); color: #1a1306; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.numbered--inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding: .3rem 0 .3rem 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .75rem; width: .55rem; height: .3rem; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }

/* ---------- forms / auth ---------- */
.form { display: grid; gap: .95rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.form--inline { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font: 700 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-mute); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; padding: .72rem .85rem; font: inherit; color: var(--text); background: #090d14; border: 1px solid var(--line); border-radius: 3px; transition: border-color .15s, box-shadow .15s;
}
input[type=datetime-local] { color-scheme: dark; }
textarea { resize: vertical; min-height: 4rem; line-height: 1.5; }
textarea.mono { font-size: .9rem; min-height: 16rem; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: #3a4358; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 178, 90, .18); }
input::placeholder { color: var(--text-mute); }
.field--err input, .field--err select, .field--err textarea { border-color: var(--crimson-hi); }
.field__help { margin: .35rem 0 0; font-size: .8rem; color: var(--text-mute); }
.field__err { margin: .35rem 0 0; font-size: .84rem; color: #ff9aa0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; font-size: .92rem; color: var(--text-dim); }
.check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--gold); }
.check .field__err { grid-column: 2; }
.authpage { display: grid; place-items: start center; padding: 3.2rem 0 4rem; }
/* the key art, far behind the form: fixed, dim, darker toward the edges */
.authbg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.authbg img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 24%; opacity: .5; }
.authbg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 38%, rgba(7, 9, 13, .35), rgba(7, 9, 13, .86) 78%), linear-gradient(180deg, rgba(7, 9, 13, .6), rgba(7, 9, 13, .2) 30%, var(--bg-0)); }
.auth { width: min(480px, 100%); padding: 2rem 2.1rem 1.7rem; }
.auth__head { text-align: center; margin-bottom: 1.4rem; }
.auth__head h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.auth__head p { color: var(--text-dim); margin: 0; }
.auth__icon { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: .8rem; border-radius: 50%; color: var(--gold-hi); border: 1px solid var(--gold-lo); background: radial-gradient(circle at 30% 25%, rgba(216, 178, 90, .25), rgba(216, 178, 90, .04)); box-shadow: 0 0 22px rgba(216, 178, 90, .2); }
.auth__icon .i { width: 1.6rem; height: 1.6rem; }
.auth__foot { text-align: center; margin: 1.3rem 0 0; font-size: .92rem; color: var(--text-dim); }
.auth__resend { display: flex; gap: .5rem; justify-content: center; align-items: center; margin-top: 1rem; font-size: .92rem; color: var(--text-dim); }
.auth input[name=code] { text-align: center; font: 700 1.9rem var(--font-mono); letter-spacing: .5em; padding-left: 1.2em; }

/* ---------- account ---------- */
.welcome { margin: 1.6rem 0 0; background: radial-gradient(500px 160px at 0% 0%, rgba(53, 196, 154, .14), transparent 70%), linear-gradient(180deg, rgba(21, 27, 38, .92), rgba(13, 17, 24, .94)); }
.welcome h2 { display: flex; align-items: center; gap: .5rem; color: #aef0d8; }
.profilehead { display: flex; align-items: center; gap: 1.3rem; margin: 1.6rem 0 1.3rem; }
.profilehead__main { flex: 1; min-width: 0; }
.profilehead h1 { font-size: 1.7rem; margin-bottom: .15rem; overflow-wrap: anywhere; }
.profilehead p { margin: 0; font-size: .9rem; }
.account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; align-items: start; }
.account__wide { grid-column: 1 / -1; }
.wallet { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: .9rem; }
.wallet__cell { display: grid; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 3px; background: rgba(7, 9, 13, .5); }
.wallet__cell span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.wallet__cell b { font: 700 1.7rem var(--font-display); color: var(--gold-hi); }
.wallet--inline { display: flex; gap: 1.4rem; }
.wallet--inline span { color: var(--text-dim); } .wallet--inline b { color: var(--gold-hi); font-family: var(--font-display); font-size: 1.2rem; margin-left: .3rem; }
.premium { display: flex; gap: .5rem; align-items: center; color: var(--gold-hi); }
.sessions { list-style: none; margin: 0 0 1rem; padding: 0; }
.sessions li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; padding: .6rem 0; border-bottom: 1px dashed rgba(42, 49, 66, .8); }
.sessions li .muted { flex-basis: 100%; font-size: .85rem; }

/* ---------- error + footer ---------- */
.errorpage { padding: 4rem 0; }
.errorbox { text-align: center; max-width: 560px; margin: 0 auto; padding: 2.6rem 2rem; }
.errorbox .logo { width: 92px; height: 92px; margin: 0 auto .6rem; display: block; }
.errorbox__code { font: 700 5rem/1 var(--font-display); margin: 0; background: linear-gradient(180deg, #fff3c9, #8d6b25); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot { position: relative; z-index: 1; margin-top: 3rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45)); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.6rem 0 1.6rem; }
.foot h4 { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.foot a { display: block; padding: .18rem 0; color: var(--text-dim); font-size: .93rem; }
.foot a:hover { color: var(--gold-hi); }
.foot__brand .logo { width: 56px; height: 56px; }
.foot__name { font: 700 1.05rem var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin: .4rem 0; }
.foot__blurb { color: var(--text-mute); font-size: .85rem; max-width: 34rem; }
.foot__line { border-top: 1px solid rgba(42, 49, 66, .6); padding: 1rem 0; font-size: .82rem; color: var(--text-mute); }
.foot__line .container { display: flex; gap: .8rem; justify-content: center; align-items: center; }
.foot__dot { color: var(--gold-lo); font-size: .6rem; }

/* ---------- admin ---------- */
.adminwrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; padding: 2rem 0 3rem; align-items: start; }
.adminnav { position: sticky; top: 90px; padding: 1rem .8rem; display: grid; gap: .1rem; }
.adminnav h3 { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); padding: 0 .6rem .5rem; margin: 0; }
.adminnav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; color: var(--text-dim); border-radius: 3px; font-size: .93rem; }
.adminnav a:hover { color: var(--gold-hi); background: rgba(216, 178, 90, .07); text-decoration: none; }
.adminnav a.is-active { color: var(--gold-hi); background: rgba(216, 178, 90, .12); box-shadow: inset 2px 0 0 var(--gold); }
.adminmain { min-width: 0; display: grid; gap: 1.2rem; }
.adminmain__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.adminmain__title { margin: 0; font-size: 1.6rem; }
.adminmain__title small { font: 600 .9rem var(--font-body); color: var(--text-mute); margin-left: .5rem; }
.adminmain__tools { display: flex; gap: .6rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { display: grid; gap: .1rem; padding: 1rem 1.2rem; }
.stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.stat b { font: 700 2.1rem/1.1 var(--font-display); color: var(--gold-hi); }
.stat b.ok { color: var(--jade); } .stat b.bad { color: var(--crimson-hi); }
.stat small { color: var(--text-mute); }
.admingrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.admingrid__wide { grid-column: 1 / -1; }
.bars { width: 100%; height: auto; }
.bars rect { fill: url(#g-gold); }
.bars text { fill: var(--text-dim); font: 11px var(--font-body); }
.bars .bars__n { fill: var(--gold-hi); font-weight: 700; }
.auditmini { list-style: none; margin: 0 0 .8rem; padding: 0; font-size: .9rem; }
.auditmini li { display: flex; flex-wrap: wrap; gap: .1rem .6rem; padding: .4rem 0; border-bottom: 1px dashed rgba(42, 49, 66, .8); }
.auditmini small { flex-basis: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filters input[type=search] { flex: 1; min-width: 12rem; max-width: 24rem; }
.filters select { width: auto; min-width: 9rem; }
.editor { padding: 1.4rem 1.5rem; }
.editor__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .35rem; }
.editor__bar label { margin: 0; }
.editor__help { flex: 1; font-size: .78rem; color: var(--text-mute); }
.preview { margin-top: .8rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--gold-lo); border-radius: 3px; background: rgba(7, 9, 13, .5); }
.danger-zone { display: flex; justify-content: flex-end; }
.inlineform { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inlineform input[type=text] { flex: 1; min-width: 8rem; padding: .45rem .6rem; }
.inlineform .narrow, input.narrow { width: 5rem; flex: none; padding: .45rem .6rem; }
.code { margin: 0 0 1rem; padding: .9rem 1rem; overflow-x: auto; background: #080b10; border: 1px solid var(--line); border-radius: 3px; font-size: .86rem; color: #cfc8b4; }

/* ---------- motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes heroin { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.07); } }
@keyframes heroslow { from { transform: scale(1.07); } to { transform: scale(1.11); } }
@keyframes ember {
  0% { transform: translate(0, 0) scale(.7); opacity: 0; }
  10% { opacity: .95; }
  65% { opacity: .65; }
  100% { transform: translate(var(--dx, 30px), -520px) scale(.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .home__grid { grid-template-columns: 1fr; }
  .home__side { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .adminwrap { grid-template-columns: 1fr; }
  .adminnav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
  .adminnav h3 { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: flex; order: 3; }
  .top__right { order: 2; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: .6rem 1.25rem 1rem; flex-direction: column; background: rgba(7, 9, 13, .98); border-bottom: 1px solid var(--gold-lo); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid rgba(42, 49, 66, .6); }
  .nav a::after { display: none; }
  .usermenu__name { display: none; }
  .brand__name { font-size: .92rem; letter-spacing: .1em; }
}
@media (max-width: 720px) {
  .newsgrid, .guidegrid, .two, .cards, .steps__list, .account__grid, .admingrid, .numbered--inline { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 170px; }
  .podium { grid-template-columns: 1fr; }
  .podium li { order: initial; }
  .podium__1 { order: -1; }
  .form__row { grid-template-columns: 1fr; }
  .newslist li { grid-template-columns: 1fr auto; }
  .newslist time { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; text-align: center; padding: 1.6rem 1.2rem; }
  .dl__art .logo { width: 84px; height: 84px; }
  .dl__cta { justify-content: center; }
  .profilehead { flex-wrap: wrap; }
  .article { padding: 1.4rem 1.2rem; }
  .article__cover { width: calc(100% + 2.4rem); margin: -1.4rem -1.2rem 1.2rem; }
  .step { padding-top: 2.2rem; }
  .step p { min-height: 0; }
}
@media (max-width: 720px) { /* a phone sees about half of the 3:2 picture: keep the moon, the pagoda and the swordsman in it */
  .hero__img { object-position: 82% 20%; transform-origin: 80% 40%; }
  .hero__veil { background:
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, .1) 24%, rgba(7, 9, 13, .35) 60%, var(--bg-0) 100%); }
}
@media (max-width: 520px) {
  .top__in { gap: .5rem; }
  .brand__name { display: none; }
  .pill { font-size: .7rem; padding-inline: .5rem; }
  .top__right--guest .pill { display: none; } /* a visitor's row (logo, Sign in, Register, burger) must fit a 375 px phone without a sideways scroll; the status stays on the home page */
  .hero__body { padding: 5rem 0 4rem; }
  .hero__cta .btn { width: 100%; }
  .strip { grid-template-columns: 1fr; }
  .home__side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .auth { padding: 1.5rem 1.1rem; }
}
@media (max-width: 360px) { /* the smallest phones: Sign in + Register + logo + burger still fit one row */
  .top__right { gap: .35rem; }
  .top__right .btn--sm { padding-inline: .6em; letter-spacing: .08em; }
}
