:root {
  --bg:#090f16; --panel:#111d29; --line:#31404c; --muted:#adb9c3; --text:#f1eee7;
  --gold:#dfb979; --gold-light:#f3d29d; --rail:clamp(165px,14.7vw,222px);
  --elf:url("/art/chronicles.webp"); --castle:url("/art/gate.webp");
}
html.plain-theme {--elf:none;--castle:none}
body {background:linear-gradient(180deg,#090f16 10%,#101b27 75%,#0a1018);min-height:100svh}
#portal {min-height:100svh;display:flex;flex-direction:column}
#main {flex:1}
.topbar {background:#0a1119eb;border-color:#27333e;position:relative;z-index:5}
.navbar {min-height:62px}
.realm {color:#aeb9c4;display:flex;align-items:center;gap:8px;font-size:.86rem}
.realm strong{font-weight:500;color:#eee8dd}.realm-diamond{color:var(--gold);font-size:.63rem}
.nav-links a {gap:13px}
.nav-links .glyph {width:19px;height:19px;color:#aaaeb2}
.sigil {font:400 2rem/1 Georgia,serif;color:#e3b96d;text-shadow:0 0 12px #b78b503d}
.sigil:before {display:none}
.brand-copy strong {white-space:nowrap;font-size:1.25rem;letter-spacing:.085em}
.brand-copy small {font-size:.59rem;color:#beb8a9}
.hero,.hero.with-media {
  min-height:clamp(335px,28vw,440px);padding:clamp(28px,3.4vw,54px);align-items:center;
  border-color:#675a46;border-radius:7px;background-color:#16212d;background-image:linear-gradient(90deg,#0a131fea 0%,#0b1524c2 26%,#0b142438 54%,transparent 77%),var(--hero-bg,var(--elf));
  background-size:cover;background-position:center;box-shadow:0 10px 38px #0003;
}
.hero:before {inset:5px;border-color:#d8bf8440;z-index:0}
.hero:after{display:none}
.hero-copy {width:54%;padding-bottom:8px}
.hero .eyebrow {font-size:.72rem;letter-spacing:.26em;color:#f0c47f;margin-bottom:16px}.hero .eyebrow:before{display:none}
.hero h1 {max-width:8ch;font:500 clamp(3rem,4.8vw,5.5rem)/.91 var(--display);text-transform:uppercase;color:#fff9e9;letter-spacing:.015em;text-shadow:0 3px 15px #080d15a8}
.hero-copy p {font-size:1rem;line-height:1.5;color:#ebe8df;max-width:420px;text-shadow:0 1px 5px #10131a}
.actions{margin-top:22px}.btn,button.btn{border-radius:4px}
.btn.primary{background:linear-gradient(115deg,#f2d395,#d4aa68);border-color:#e6c58e;color:#282018}
.btn.ghost,.head-login {background:#0b141fc7;border-color:#59616a}
.hero-status {left:auto;right:14px;bottom:12px;width:auto;min-height:26px;border:1px solid #c7ae7d44;border-radius:3px;background:#08121bcc;padding:4px 9px;font-size:.74rem;gap:6px}
.panel,.link-card {background:linear-gradient(125deg,#192733,#0e1823);border-color:#34414c;border-radius:6px}
.dashboard {display:grid;gap:15px;grid-template-columns:1.25fr 1fr}
.dashboard:has(.launch-panel) .launch-panel{order:-1}
.launch-panel {background-image:linear-gradient(90deg,#0b141fee,#0c16239c 57%,#111d283b),var(--castle);background-size:cover;background-position:50% 52%;border-color:#756044}
.panel-head> .icon,.link-card>.icon {background:transparent;border:0;border-radius:0;width:auto;height:auto}
.online-panel .panel-head h3,.launch-panel .panel-head h3 {font:600 .83rem/1.4 var(--body);text-transform:uppercase;letter-spacing:.16em;color:#ecc78a}
.launch-body {border-color:#d9c49b33;padding:22px 0 0}.launch-body strong{font-size:clamp(1.6rem,2.5vw,2.7rem);color:#fff4df;text-shadow:0 1px 9px #10151be6}
.online-count {font-size:2.5rem;line-height:1;color:#efe3cc}
.section-head {margin:23px 0 12px}.section-head h2 {font-size:1.55rem;letter-spacing:0}
.link-card {align-items:flex-start;min-height:108px;flex-direction:column;gap:10px;overflow:hidden;background-image:linear-gradient(90deg,#13202cf2,#13202cda 55%,#13202c66),var(--castle);background-size:cover;background-position:50% 70%}
.link-card:nth-child(2){background-position:center 15%}.link-card:nth-child(3){background-position:right 40%}
.link-card:hover {border-color:#d4ad70;background-color:#243544}.link-card>.icon .glyph{width:24px;height:24px;color:#e6c180}.link-card strong{color:#f3e9d8}.link-card small{color:#c6ced3}
.waiting {max-width:790px;margin:32px auto;min-height:260px;padding:clamp(24px,5vw,65px);background-image:linear-gradient(90deg,#101b29f0,#111b29aa),var(--castle);background-size:cover;background-position:center}.waiting h1{font-size:clamp(2.3rem,4vw,4.5rem)}.waiting .btn{margin-top:20px}
#portal:after{content:none}.footer {position:relative;align-items:center;min-height:76px;margin-top:30px;border-color:#394554;background:#0a1018}.footer:before {content:"";position:absolute;pointer-events:none;bottom:100%;left:0;right:0;height:30px;background:linear-gradient(0deg,#090f1640,transparent)}
@media(min-width:901px){
 #portal{padding-left:var(--rail)}
 #portal:before{content:"";position:fixed;left:0;top:0;bottom:0;width:var(--rail);background-color:#0c141e;background-image:linear-gradient(180deg,#091019 27%,#0b151ff2 52%,#0b172a52 86%),var(--castle);background-position:center,48% bottom;background-size:cover,auto 65%;background-repeat:no-repeat;border-right:1px solid #3b4245}
 .shell{width:min(calc(100% - 40px),1450px)}
 .brand {position:fixed;left:0;top:17px;width:var(--rail);display:flex;flex-direction:column;gap:6px;text-align:center}
 .sigil {height:46px;width:56px;font-size:3rem}.brand-copy{gap:8px}
 .nav-links {position:fixed;top:145px;left:0;width:var(--rail);padding:0 9px;display:flex;flex-direction:column;gap:5px;align-items:stretch}
 .nav-links a {padding:13px 14px;white-space:normal;border-left:2px solid transparent;border-radius:3px;font-size:.94rem}
 .nav-links a.active {color:#f4ca83;border-color:#deb87d;background:linear-gradient(90deg,#53452e9c,#22293240)}
 .nav-links a.active .glyph{color:#e9bd72}.nav-links a.active:after{display:none}.burger{display:none}
 main.shell{padding-top:18px;padding-bottom:18px}
}
@media(max-width:900px){
 .realm{display:none}.navbar{position:relative;flex-wrap:wrap;padding-block:10px}.burger{display:inline-flex;align-items:center;justify-content:center;border:1px solid #454344;background:transparent;border-radius:5px;padding:8px}.nav-links{display:none}.nav-links.open{display:flex;order:9;flex-basis:100%;flex-wrap:wrap;padding:8px 0}
}
@media(max-width:640px){
 .hero,.hero.with-media {min-height:420px;align-items:flex-end;padding:24px 16px 40px;background-image:linear-gradient(0deg,#09121dfd 0%,#09121de8 32%,#09121d75 62%,#09121d05 93%),var(--hero-mobile,var(--hero-bg,var(--elf)));background-size:cover,auto 73%;background-position:center,78% top;background-repeat:no-repeat}
 .hero-copy{width:100%;max-width:460px;padding:0}.hero h1{font-size:2.9rem;max-width:9ch}.hero-copy p{max-width:100%;font-size:.92rem}.hero .eyebrow{margin-bottom:10px}
 .hero-status{bottom:6px;right:8px;background:transparent;border:0}.dashboard{grid-template-columns:1fr}.community-grid{grid-template-columns:1fr}.link-card{flex-direction:row;align-items:center;min-height:78px}
 .footer{margin-top:12px}.section-head h2{font-size:1.4rem}.online-body{gap:12px}
}
.hero h1{max-width:11.3ch}.sigil:not(:has(img)){font-size:0}.sigil:not(:has(img)):after{content:"";height:80%;width:12px;border-inline:3px solid #d3aa6f;transform:skewY(-10deg);filter:drop-shadow(0 1px 4px #b8986830)}
