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

:root {
  color-scheme: dark;
  --night: #080a0f;
  --deep: #0d111a;
  --panel: #111722;
  --panel-light: #151d2a;
  --line: rgba(194, 155, 83, .28);
  --line-cool: rgba(119, 151, 184, .16);
  --gold: #dcb967;
  --gold-bright: #f3d997;
  --blue: #81b5d1;
  --text: #ece8df;
  --muted: #a3a8b0;
  --dim: #727b87;
  --green: #79c49a;
  --red: #d68476;
  --serif: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(67, 91, 125, .18), transparent 38rem),
    linear-gradient(180deg, #0a0e15, var(--night) 42rem);
  font: 14px/1.65 var(--sans);
}
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: repeating-linear-gradient(132deg, transparent 0 8px, rgba(255,255,255,.018) 8px 9px, transparent 9px 20px);
}
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff2cc; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.site-frame { width: min(100%, var(--max)); margin: 0 auto; padding: 0 28px; }
.realm-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 30px; border-bottom: 1px solid rgba(220,185,103,.16);
  color: #b8a779; font: 600 9px/1 var(--serif); letter-spacing: .22em;
}
.ribbon-mark, .rune { color: var(--gold); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 86px; border-bottom: 1px solid var(--line-cool);
}
.brand { display: block; flex: 0 0 294px; }
.brand img { width: 294px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.site-nav a { color: #c2c4c6; font-size: 11px; font-weight: 600; letter-spacing: .07em; transition: color .18s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-bright); }
.site-nav .nav-cta { padding: 10px 15px; border: 1px solid rgba(220,185,103,.54); color: var(--gold-bright); background: linear-gradient(180deg, rgba(105,79,38,.25), rgba(47,37,25,.35)); }
.site-nav .nav-cta:hover { border-color: var(--gold-bright); background: rgba(220,185,103,.13); }
.nav-toggle { display: none; }
.site-notice { margin: 16px 0 0; padding: 11px 14px; border: 1px solid rgba(121,196,154,.3); background: rgba(25,66,51,.25); color: #c2efd1; }
.site-notice.error { border-color: rgba(214,132,118,.4); background: rgba(88,34,34,.3); color: #f0beb2; }

.hero {
  position: relative; isolation: isolate; min-height: 518px; margin-top: 24px; overflow: hidden;
  border: 1px solid rgba(192,165,111,.38); background: #111722;
  box-shadow: 0 22px 72px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.035);
}
.hero::before, .panel::before { content: ''; position: absolute; z-index: 2; width: 7px; height: 7px; border: 1px solid var(--gold); background: var(--night); transform: rotate(45deg); }
.hero::before { top: 11px; left: 11px; }
.hero-art { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: #101b2a url('creature-realm-bg.svg') center / cover no-repeat; transform: scale(1.02); }
.hero-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,13,.45), transparent 70%), linear-gradient(0deg, rgba(3,6,10,.32), transparent 55%); }
.hero-creatures { position: absolute; z-index: 0; right: 2%; bottom: 0; width: 53%; height: 76%; pointer-events: none; }
.hero-creature { position: absolute; bottom: -3%; width: auto; max-width: 34%; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 14px rgba(0,0,0,.72)); image-rendering: auto; }
.hero-wolf { left: 1%; height: 49%; }
.hero-bear { left: 19%; height: 69%; }
.hero-harpy { left: 48%; height: 91%; }
.hero-demon { right: 0; height: 76%; }
.realm-status { z-index: 1; }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,10,15,.97) 0%, rgba(7,10,15,.83) 35%, rgba(7,10,15,.2) 74%, rgba(7,10,15,.22) 100%), linear-gradient(0deg, rgba(7,10,15,.58), transparent 35%); }
.hero-content { position: relative; max-width: 650px; padding: 72px 68px 44px; }
.overline, .eyebrow { color: var(--gold); font: 600 10px/1.4 var(--serif); letter-spacing: .2em; }
.overline { display: flex; align-items: center; gap: 9px; }
.hero h1 { margin: 24px 0 18px; font: 500 clamp(42px, 5.8vw, 72px)/1.08 var(--serif); letter-spacing: -.035em; text-shadow: 0 3px 22px #000; }
h1 em, h2 em { color: var(--gold-bright); font-style: normal; }
.hero-content > p { max-width: 420px; margin: 0; color: #d2d0cc; font-size: 14px; line-height: 1.9; text-shadow: 0 2px 12px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .045em; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-gold { border-color: #f3d58f; color: #20190e; background: linear-gradient(180deg, #f2d894, #c99e4e); box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.5); }
.button-gold:hover { color: #100d08; background: linear-gradient(180deg, #ffe8aa, #d8ac57); }
.button-ghost { border-color: rgba(226,210,173,.56); color: #eee6d3; background: rgba(8,11,16,.55); }
.button-ghost:hover { color: white; border-color: var(--gold-bright); background: rgba(8,11,16,.78); }
.button-wide { width: 100%; margin-top: 10px; }
.button-small { min-height: 36px; gap: 8px; padding: 0 12px; }
.hero-footnote { margin-top: 28px; color: #c0b8a7; font-size: 10px; letter-spacing: .06em; }
.tiny-star { margin-right: 5px; color: var(--gold); }
.realm-status { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 11px; min-width: 210px; padding: 12px 14px; border: 1px solid rgba(211,187,140,.38); background: rgba(7,10,15,.82); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.realm-status > div { display: flex; flex: 1; flex-direction: column; }
.realm-status strong { color: #e7e1d4; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.realm-status small { color: #aeb4bd; font-size: 10px; }
.realm-status > a { color: var(--gold); font-size: 17px; }
.status-light, .player-presence i, .character-status i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px rgba(114,123,135,.12); }
.status-light.online { background: var(--green); box-shadow: 0 0 0 3px rgba(121,196,154,.14), 0 0 12px rgba(121,196,154,.68); }
.status-light.offline { background: var(--red); box-shadow: 0 0 0 3px rgba(214,132,118,.12); }
.hero-index { position: absolute; left: 22px; bottom: 22px; color: #bdb9ae; font: 600 9px var(--serif); letter-spacing: .15em; }
.hero-index span { color: var(--gold); }

.quick-path { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); align-items: stretch; margin: 22px 0 0; border: 1px solid var(--line-cool); background: linear-gradient(110deg, rgba(17,23,34,.93), rgba(11,15,22,.9)); }
.path-heading { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 22px; }
.path-heading .eyebrow { font-size: 9px; }
.path-line { width: 46px; height: 1px; background: var(--gold); opacity: .55; }
.path-card { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 12px 17px; border-left: 1px solid var(--line-cool); color: var(--text); transition: background .2s ease; }
.path-card:hover { color: #fff; background: rgba(220,185,103,.06); }
.path-number { color: #a18c60; font: 600 11px var(--serif); }
.path-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.path-card strong { font-size: 11px; font-weight: 600; }
.path-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.path-card > b { color: var(--gold); font-size: 15px; font-weight: 400; }

.world-section { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; padding: 100px 20px 90px; }
.section-intro h2 { margin: 18px 0; font: 500 clamp(32px, 4vw, 48px)/1.18 var(--serif); }
.section-intro p { max-width: 370px; color: #aeb3bc; font-size: 12px; line-height: 2; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--gold-bright); font: 600 10px var(--serif); letter-spacing: .04em; }
.text-link span { font-size: 18px; transition: transform .16s ease; }
.text-link:hover span { transform: translateX(5px); }
.bestiary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bestiary-card { position: relative; display: flex; min-height: 218px; overflow: hidden; flex-direction: column; justify-content: flex-end; margin: 0; border: 1px solid rgba(220,185,103,.42); background: var(--biome-scene); box-shadow: inset 0 0 30px rgba(0,0,0,.28), 0 10px 25px rgba(0,0,0,.22); }
.bestiary-card::after { position: absolute; z-index: 0; inset: 34% 0 0; content: ''; background: linear-gradient(0deg, rgba(5,8,12,.96), rgba(5,8,12,.48) 38%, transparent); pointer-events: none; }
.bestiary-card img { position: absolute; z-index: 0; right: 4%; bottom: 1px; width: auto; max-width: 70%; height: 82%; object-fit: contain; object-position: bottom; image-rendering: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.75)); transition: transform .22s ease; }
.bestiary-card:hover img { transform: scale(1.08) translateY(-3px); }
.bestiary-card figcaption { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 15px; }
.bestiary-card figcaption strong { color: #fff4d6; font: 500 17px var(--serif); text-shadow: 0 2px 8px #000; }
.bestiary-card figcaption small { color: #c2c6c9; font-size: 10px; text-shadow: 0 2px 6px #000; }
.bestiary-label { position: absolute; z-index: 1; top: 12px; left: 13px; color: #f3d58f; font: 600 8px var(--serif); letter-spacing: .16em; text-shadow: 0 1px 6px #000; }
.biome-forest { --biome-scene: radial-gradient(ellipse at 78% 48%, rgba(118,145,91,.48), transparent 34%), linear-gradient(135deg, #293c31, #18291f 50%, #101822); }
.biome-pines { --biome-scene: radial-gradient(ellipse at 70% 40%, rgba(117,157,99,.35), transparent 35%), linear-gradient(150deg, #31483c, #182a26 52%, #101923); }
.biome-cliffs { --biome-scene: radial-gradient(ellipse at 68% 25%, rgba(119,197,221,.34), transparent 23%), linear-gradient(150deg, #45677a, #273c4b 55%, #151e2a); }
.biome-mines { --biome-scene: radial-gradient(ellipse at 73% 42%, rgba(230,154,74,.47), transparent 22%), linear-gradient(145deg, #51402c, #2d2927 52%, #171a20); }
.biome-hell { --biome-scene: radial-gradient(ellipse at 73% 48%, rgba(209,74,37,.52), transparent 29%), linear-gradient(145deg, #4a2725, #291b22 54%, #121720); }
.biome-cavern { --biome-scene: radial-gradient(ellipse at 73% 43%, rgba(193,106,51,.4), transparent 26%), linear-gradient(145deg, #453932, #29232a 50%, #131a23); }
.callout-band { position: relative; display: flex; align-items: center; gap: 24px; margin: 0 0 64px; padding: 25px 30px; border: 1px solid rgba(220,185,103,.34); background: linear-gradient(100deg, rgba(72,54,30,.34), rgba(17,23,34,.88) 50%, rgba(26,39,54,.58)); }
.callout-sigil { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid rgba(220,185,103,.48); color: var(--gold); font-size: 22px; transform: rotate(45deg); }
.callout-sigil::first-letter { transform: rotate(-45deg); }
.callout-band > div:nth-child(2) { flex: 1; }
.callout-band h2 { margin: 5px 0 2px; font: 500 22px var(--serif); }
.callout-band p { margin: 0; color: #aab1bb; font-size: 11px; }
.callout-band .button { flex: 0 0 auto; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; border-top: 1px solid var(--line-cool); color: #6f7782; font-size: 9px; letter-spacing: .1em; }
.site-footer span:first-child { color: #b09556; font: 600 9px var(--serif); letter-spacing: .16em; }
.site-footer a { color: #b6a87e; }

.inner-page { min-height: 65vh; padding: 54px 10px 78px; }
.page-heading { margin: 4px 0 30px; text-align: center; }
.page-heading h1 { margin: 14px 0 6px; font: 500 clamp(36px, 5vw, 54px)/1.15 var(--serif); }
.page-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.panel { position: relative; border: 1px solid rgba(192,165,111,.27); background: linear-gradient(145deg, rgba(19,26,38,.97), rgba(12,16,24,.98)); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 14px 35px rgba(0,0,0,.16); }
.panel::before { top: 10px; left: 10px; width: 5px; height: 5px; opacity: .8; }
.online-panel { max-width: 880px; margin: 0 auto; }
.panel-topline { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 23px; border-bottom: 1px solid var(--line-cool); }
.panel-topline > div { display: flex; align-items: center; gap: 12px; }
.panel-topline strong { font: 600 11px var(--serif); letter-spacing: .08em; }
.panel-count { color: var(--gold); font: 600 9px var(--serif); letter-spacing: .12em; }
.player-list { padding: 5px 23px; }
.player-row { display: grid; grid-template-columns: 40px 34px minmax(120px, 1fr) minmax(120px, 1fr) 108px; align-items: center; min-height: 64px; border-bottom: 1px solid rgba(119,151,184,.11); }
.player-row:last-child { border-bottom: 0; }
.player-index { color: #637185; font: 600 10px var(--serif); }
.player-avatar { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(220,185,103,.33); color: var(--gold); font-size: 11px; transform: rotate(45deg) scale(.82); }
.player-name { color: #e9e5da; font: 500 13px var(--serif); }
.player-area { color: #98a2af; font-size: 11px; }
.player-presence { display: flex; align-items: center; gap: 9px; color: #83c69e; font: 600 8px var(--serif); letter-spacing: .12em; }
.player-presence i { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 9px rgba(121,196,154,.75); }
.empty-state { padding: 68px 20px; text-align: center; }
.empty-state > span, .empty-roster > span { color: var(--gold); font-size: 28px; }
.empty-state h2 { margin: 9px 0; font: 500 20px var(--serif); }
.empty-state p { max-width: 390px; margin: 0 auto 12px; color: var(--muted); font-size: 11px; }
.panel-footer { display: flex; justify-content: space-between; padding: 13px 23px; border-top: 1px solid var(--line-cool); color: #657080; font: 600 8px var(--serif); letter-spacing: .11em; }
.panel-footer a { color: var(--gold); }

.download-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; max-width: 1020px; margin: 0 auto; }
.download-feature { overflow: hidden; }
.download-art { display: grid; place-items: center; min-height: 154px; padding: 26px; border-bottom: 1px solid var(--line-cool); background: radial-gradient(ellipse, rgba(50,74,104,.34), rgba(7,10,15,.1) 70%); }
.download-art img { width: min(100%, 560px); }
.download-copy { padding: 27px 30px 30px; }
.download-copy h2 { margin: 9px 0; font: 500 25px var(--serif); }
.download-copy p { max-width: 480px; margin: 0 0 20px; color: #a6adb8; font-size: 11px; line-height: 1.9; }
.download-copy small { display: block; margin-top: 12px; color: #75808e; font-size: 9px; }
.download-side { display: flex; flex-direction: column; padding: 9px 0; }
.side-note { display: flex; gap: 16px; padding: 17px 17px 18px 12px; border-bottom: 1px solid var(--line-cool); }
.note-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(220,185,103,.42); color: var(--gold); font: 600 11px var(--serif); }
.side-note strong { font: 600 11px var(--serif); color: #e4dfd2; }
.side-note p { margin: 5px 0 0; color: #929ca8; font-size: 10px; line-height: 1.8; }
.download-help { padding: 14px 12px; color: #7d8793; font-size: 10px; }

.auth-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(320px, 1.1fr); gap: 20px; max-width: 910px; margin: 0 auto; }
.auth-card { padding: 27px 30px 22px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line-cool); }
.panel-heading > span { color: var(--gold); font-size: 20px; }
.panel-heading div { display: flex; flex-direction: column; }
.panel-heading strong { font: 600 10px var(--serif); letter-spacing: .12em; }
.panel-heading small { margin-top: 4px; color: #828d9b; font-size: 9px; }
.site-form label, .character-form label { display: block; margin: 14px 0 6px; color: #c4b998; font: 600 9px var(--serif); letter-spacing: .07em; }
.site-form input, .character-form input, .character-form select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid rgba(128,144,162,.3); border-radius: 1px; outline: none; color: var(--text); background: rgba(5,8,13,.75); }
.site-form input:focus, .character-form input:focus, .character-form select:focus { border-color: rgba(220,185,103,.72); box-shadow: 0 0 0 2px rgba(220,185,103,.1); }
.form-hint { margin: 9px 0 15px; color: #788391; font-size: 9px; line-height: 1.7; }
.auth-switch { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-cool); color: #98a1ac; font-size: 10px; }
.form-alert { max-width: 1000px; margin: 0 auto 15px; padding: 12px 15px; border: 1px solid; font-size: 11px; }
.form-alert.error { border-color: rgba(214,132,118,.45); color: #efb9ae; background: rgba(90,37,37,.28); }
.auth-aside { position: relative; min-height: 430px; overflow: hidden; border: 1px solid rgba(192,165,111,.27); }
.auth-aside::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,10,15,.98), rgba(7,10,15,.08) 82%); }
.auth-aside-art { position: absolute; inset: 0; overflow: hidden; min-height: 430px; background: linear-gradient(155deg,#344638,#1b2730 55%,#241c22); }
.auth-aside-art::before { content: ''; position: absolute; inset: 0; background: url('astonia-relived-splash.png') center / cover no-repeat; opacity: .28; mix-blend-mode: screen; }
.auth-aside-art img { position: absolute; bottom: -2%; width: auto; height: 82%; object-fit: contain; object-position: bottom; image-rendering: auto; filter: drop-shadow(0 7px 12px rgba(0,0,0,.75)); }
.auth-aside-art img:first-child { right: 10%; height: 74%; }
.auth-aside-art img:last-child { left: 8%; height: 48%; }
.auth-aside-copy { position: absolute; z-index: 1; right: 25px; bottom: 22px; left: 25px; }
.auth-aside-copy h2, .account-info h2 { margin: 10px 0; font: 500 24px/1.35 var(--serif); }
.auth-aside-copy p, .account-info p { max-width: 340px; margin: 0; color: #a9afb8; font-size: 10px; }
.account-auth-layout { grid-template-columns: minmax(330px, .95fr) minmax(280px, .8fr); }
.account-info { padding: 35px 30px; background: linear-gradient(160deg, rgba(24,36,52,.97), rgba(13,17,25,.98)); }
.account-info > p { margin: 16px 0 27px; line-height: 1.9; }
.account-info-line { display: flex; align-items: center; gap: 14px; min-height: 43px; border-top: 1px solid var(--line-cool); }
.account-info-line span { color: var(--gold); font: 600 9px var(--serif); }
.account-info-line strong { color: #c2c7cd; font-size: 10px; font-weight: 500; }

.account-overview { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1000px; margin: 0 auto 38px; padding: 18px 22px; }
.account-overview > div { display: flex; flex-direction: column; }
.account-email { margin: 4px 0; font-size: 13px; }
.account-overview small { color: #7d8792; font-size: 9px; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; max-width: 1000px; margin: 0 auto 15px; }
.section-title-row h2 { margin: 5px 0 0; font: 500 23px var(--serif); }
.roster-count { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-left: 5px; border: 1px solid rgba(220,185,103,.35); color: var(--gold); font: 600 9px var(--sans); vertical-align: middle; }
.roster-note { color: #778391; font-size: 9px; }
.character-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto; }
.character-card { display: grid; grid-template-columns: 128px minmax(0,1fr); min-height: 202px; overflow: hidden; padding: 0; }
.character-card-art { position: relative; display: flex; overflow: hidden; align-items: end; justify-content: center; min-height: 202px; border-right: 1px solid rgba(220,185,103,.24); background: radial-gradient(ellipse at 50% 44%, rgba(72,129,144,.38), transparent 36%), radial-gradient(ellipse at 50% 100%, rgba(191,119,53,.21), transparent 55%), linear-gradient(155deg,#23313a,#111820 70%); }
.character-card-art::after { position: absolute; inset: auto 0 0; height: 40%; content: ''; background: linear-gradient(0deg,rgba(8,11,15,.7),transparent); }
.character-card-art img { position: relative; z-index: 1; width: 100%; height: 190px; object-fit: contain; object-position: center bottom; image-rendering: auto; filter: drop-shadow(0 5px 10px rgba(0,0,0,.65)); }
.character-card-art > span { position: absolute; z-index: 2; left: 10px; bottom: 8px; color: #f0d58e; font: 600 7px var(--serif); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 5px #000; }
.character-card-content { display: flex; min-width: 0; flex-direction: column; padding: 15px 15px 11px; }
.character-top { display: flex; align-items: center; justify-content: flex-end; }
.character-status { display: flex; align-items: center; gap: 7px; color: #8b96a3; font: 600 8px var(--serif); letter-spacing: .1em; }
.character-status i { width: 6px; height: 6px; }
.character-status.playing { color: var(--green); }
.character-status.playing i { background: var(--green); }
.character-card h3 { margin: 18px 0 4px; overflow-wrap: anywhere; color: #eee9dd; font: 500 17px var(--serif); }
.character-meta { display: flex; gap: 8px; align-items: center; color: #9ba4b0; font-size: 10px; text-transform: capitalize; }
.character-meta b { color: var(--gold); }
.character-mode-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.character-mode-badges span { padding: 3px 6px; border: 1px solid rgba(220,185,103,.28); color: #dfc47e; font: 600 7px var(--serif); letter-spacing: .06em; }
.character-bottom { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-cool); color: #687482; font-size: 8px; }
.character-bottom form { margin: 0; }
.remove-character { padding: 4px 7px; border: 1px solid rgba(214,132,118,.34); color: #dca49a; background: transparent; cursor: pointer; font-size: 8px; }
.remove-character:hover:not(:disabled) { border-color: var(--red); color: #ffcac0; background: rgba(214,132,118,.1); }
.remove-character:disabled { border-color: rgba(114,123,135,.18); color: #5e6670; cursor: not-allowed; }
.empty-roster { max-width: 1000px; margin: 0 auto; padding: 32px 20px; text-align: center; }
.empty-roster h3 { margin: 8px 0 4px; font: 500 17px var(--serif); }
.empty-roster p { margin: 0; color: var(--muted); font-size: 10px; }
.create-character-panel { max-width: 1000px; margin: 30px auto 0; padding: 22px 24px; }
.create-character-panel .panel-heading { margin-bottom: 8px; }
.character-form { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.8fr); gap: 22px; align-items: stretch; }
.character-create-preview { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid rgba(119,201,223,.23); background: linear-gradient(155deg,#1b2c37,#0b1119 72%); }
.preview-art { position: relative; display: flex; min-height: 230px; flex: 1; align-items: end; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 39%,rgba(96,168,181,.34),transparent 30%), radial-gradient(ellipse at 50% 100%,rgba(195,125,58,.23),transparent 56%); }
.preview-art::after { position: absolute; inset: auto 0 0; height: 30%; content: ''; background: linear-gradient(0deg,rgba(7,10,14,.8),transparent); }
.preview-art img { position: relative; z-index: 1; width: min(100%,190px); height: 225px; object-fit: contain; object-position: center bottom; image-rendering: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.66)); }
.preview-orbit { position: absolute; top: 20px; left: 50%; width: 118px; height: 118px; border: 1px solid rgba(220,185,103,.16); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 12px rgba(220,185,103,.025),inset 0 0 22px rgba(119,201,223,.06); }
.preview-caption { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px 12px; border-top: 1px solid rgba(119,201,223,.18); }
.preview-caption span { color: var(--gold); font: 600 7px var(--serif); letter-spacing: .16em; }
.preview-caption strong { color: #f3ecdc; font: 500 12px var(--serif); }
.preview-caption small { color: #7f8d9b; font-size: 8px; }
.character-create-controls { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 14px; }
.character-primary-fields { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(100px,.8fr) minmax(100px,.8fr); gap: 12px; align-items: end; }
.character-primary-fields > div { min-width: 0; }
.character-form label { margin-top: 7px; }
.character-form small { display: block; margin-top: 5px; color: #74808d; font-size: 8px; }
.character-create-controls > .button { align-self: end; min-width: 170px; margin: 0; white-space: nowrap; }
.character-modes { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; gap: 7px; margin: 0; padding: 0; border: 0; }
.character-modes legend { grid-column: 1 / -1; margin-bottom: -2px; padding: 0; color: #c4b998; font: 600 9px var(--serif); letter-spacing: .07em; }
.mode-option { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 7px; margin: 0 !important; padding: 8px; border: 1px solid rgba(128,144,162,.25); background: rgba(5,8,13,.45); cursor: pointer; }
.mode-option:has(input:checked) { border-color: rgba(220,185,103,.72); background: rgba(220,185,103,.1); }
.mode-option input { flex: 0 0 auto; width: 14px; height: 14px; min-height: 0; margin: 2px 0 0; padding: 0; border: 0; background: transparent; accent-color: #dcb967; }
.mode-option span { min-width: 0; }
.mode-option strong { display: block; color: #e9dfc8; font: 600 9px var(--serif); }
.mode-option small { color: #84909d; font-size: 7px; line-height: 1.45; }

@media (max-width: 900px) {
  .site-frame { padding: 0 20px; }
  .site-header { gap: 18px; }
  .brand { flex-basis: 230px; }
  .brand img { width: 230px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .quick-path { grid-template-columns: repeat(3, 1fr); }
  .path-heading { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line-cool); }
  .path-line { display: none; }
  .path-card:first-of-type { border-left: 0; }
  .world-section { grid-template-columns: 1fr; gap: 30px; padding-inline: 8px; }
  .character-form { grid-template-columns: 160px minmax(0,1fr); gap: 14px; }
  .preview-art { min-height: 205px; }
  .preview-art img { height: 200px; }
  .character-primary-fields { grid-template-columns: 1fr 1fr; }
  .character-primary-fields > div:first-child { grid-column: 1 / -1; }
  .character-create-controls > .button { align-self: stretch; }
}
@media (max-width: 680px) {
  .site-frame { padding: 0 13px; }
  .realm-ribbon { font-size: 8px; letter-spacing: .13em; }
  .site-header { min-height: 68px; position: relative; }
  .brand { flex-basis: 218px; }
  .brand img { width: 218px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 8px 10px; color: var(--gold-bright); background: var(--panel); font-size: 10px; }
  .nav-toggle span { font-size: 14px; }
  .site-nav { display: none; position: absolute; z-index: 5; top: calc(100% + 1px); right: 0; left: 0; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--line); background: #0d121b; box-shadow: 0 15px 25px rgba(0,0,0,.4); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 15px; border-bottom: 1px solid var(--line-cool); font-size: 11px; }
  .site-nav .nav-cta { margin: 8px; text-align: center; }
  .hero { min-height: 560px; margin-top: 14px; }
  .hero-art { background-position: 56% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,10,15,.92), rgba(7,10,15,.63) 65%, rgba(7,10,15,.35)), linear-gradient(0deg, rgba(7,10,15,.72), transparent 50%); }
  .hero-content { padding: 61px 24px 45px; }
  .hero h1 { font-size: clamp(40px, 11vw, 58px); }
  .hero-content > p { max-width: 345px; font-size: 12px; }
  .hero-actions { gap: 9px; }
  .button { padding: 0 13px; gap: 10px; font-size: 10px; }
  .realm-status { right: 12px; bottom: 14px; min-width: 185px; }
  .hero-index { bottom: 23px; left: 14px; }
  .quick-path { grid-template-columns: 1fr; }
  .path-heading { min-height: 42px; }
  .path-card { min-height: 68px; border-top: 1px solid var(--line-cool); border-left: 0; }
  .world-section { grid-template-columns: 1fr; gap: 30px; padding: 67px 3px 54px; }
  .section-intro h2 { font-size: 37px; }
  .bestiary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bestiary-card { min-height: 190px; }
  .bestiary-card img { max-width: 76%; height: 79%; }
  .bestiary-card figcaption { padding: 11px; }
  .bestiary-card figcaption strong { font-size: 14px; }
  .bestiary-card figcaption small { font-size: 8px; }
  .bestiary-label { top: 9px; left: 10px; font-size: 7px; }
  .callout-band { flex-wrap: wrap; gap: 15px; margin-bottom: 40px; padding: 20px 16px; }
  .callout-sigil { flex-basis: 38px; width: 38px; height: 38px; }
  .callout-band > div:nth-child(2) { width: calc(100% - 55px); flex: initial; }
  .callout-band h2 { font-size: 17px; }
  .callout-band p { font-size: 9px; }
  .callout-band .button { width: 100%; }
  .site-footer { flex-wrap: wrap; justify-content: center; padding: 15px 0; text-align: center; }
  .site-footer span:nth-child(2) { display: none; }
  .inner-page { padding: 41px 0 58px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading > p { padding: 0 12px; font-size: 10px; }
  .player-row { grid-template-columns: 25px 29px minmax(90px, 1fr) auto; gap: 5px; min-height: 58px; }
  .player-area { display: none; }
  .player-list, .panel-topline { padding-right: 12px; padding-left: 12px; }
  .player-name { font-size: 11px; }
  .player-presence { font-size: 7px; }
  .panel-footer { padding: 12px; font-size: 7px; }
  .download-layout, .auth-layout, .account-auth-layout { grid-template-columns: 1fr; gap: 13px; }
  .download-art { min-height: 110px; padding: 19px; }
  .download-copy { padding: 22px; }
  .download-copy h2 { font-size: 21px; }
  .download-side { padding: 4px 0; }
  .auth-card { padding: 23px 20px 19px; }
  .auth-aside, .auth-aside-art { min-height: 270px; height: 270px; }
  .account-info { padding: 28px 23px; }
  .account-overview { align-items: flex-start; margin-bottom: 29px; padding: 15px; }
  .account-email { max-width: 210px; overflow-wrap: anywhere; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .character-grid { grid-template-columns: 1fr; }
  .character-card { grid-template-columns: 104px minmax(0,1fr); min-height: 180px; }
  .character-card-art { min-height: 180px; }
  .character-card-art img { height: 172px; }
  .create-character-panel { padding: 18px 15px; }
  .character-form { grid-template-columns: 1fr; gap: 14px; }
  .character-create-preview { flex-direction: row; align-items: stretch; min-height: 180px; }
  .preview-art { flex: 0 0 142px; min-height: 180px; }
  .preview-art img { height: 176px; }
  .preview-orbit { top: 13px; width: 100px; height: 100px; }
  .preview-caption { justify-content: center; flex: 1; border-top: 0; border-left: 1px solid rgba(119,201,223,.18); }
  .character-create-controls { gap: 12px; }
  .character-primary-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .character-primary-fields > div:first-child { grid-column: 1 / -1; }
  .character-modes { grid-column: auto; }
  .mode-option { padding: 9px; }
  .mode-option strong { font-size: 10px; }
  .mode-option small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Homepage art direction: richer atmosphere, brighter magic, and engraved trim. */
:root {
  --gold: #e4bd68;
  --gold-bright: #ffe7a3;
  --blue: #77c9df;
  --max: 1380px;
}
body {
  background:
    radial-gradient(ellipse at 82% 17%, rgba(31,91,119,.19), transparent 34rem),
    radial-gradient(ellipse at 12% 49%, rgba(104,53,26,.13), transparent 28rem),
    radial-gradient(ellipse at 50% -10%, rgba(67,91,125,.18), transparent 38rem),
    linear-gradient(180deg, #0a0e15, var(--night) 42rem);
}
.site-header { min-height: 94px; border-bottom-color: rgba(119,151,184,.22); }
.brand { flex-basis: 330px; }
.brand img { width: 330px; filter: drop-shadow(0 0 12px rgba(220,185,103,.18)); }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ''; position: absolute; right: 50%; bottom: -9px; left: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: left .2s ease, right .2s ease; }
.site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta).active::after { right: 0; left: 0; }
.site-nav .nav-cta { box-shadow: 0 0 20px rgba(220,185,103,.09), inset 0 1px rgba(255,255,255,.05); }
.hero {
  min-height: 650px;
  border-color: rgba(224,190,116,.57);
  box-shadow: 0 28px 90px rgba(0,0,0,.52), 0 0 45px rgba(38,92,119,.13), inset 0 0 0 1px rgba(255,255,255,.045);
}
.hero::before { width: 9px; height: 9px; box-shadow: 0 0 16px rgba(243,217,151,.6); }
.hero::after { content: ''; position: absolute; z-index: 0; inset: 11px; border: 1px solid rgba(255,231,163,.13); pointer-events: none; }
.hero-art { background-position: center; filter: saturate(1.08) contrast(1.05); transform: scale(1.045); }
.hero-shade {
  background:
    radial-gradient(ellipse at 78% 38%, rgba(39,114,157,.19), transparent 31%),
    radial-gradient(ellipse at 83% 80%, rgba(198,111,40,.16), transparent 26%),
    linear-gradient(90deg, rgba(5,8,13,.98) 0%, rgba(7,10,15,.87) 33%, rgba(7,10,15,.35) 64%, rgba(7,10,15,.12) 100%),
    linear-gradient(0deg, rgba(5,7,10,.72), transparent 42%);
}
.hero-content { z-index: 1; max-width: 710px; padding-top: 64px; }
.hero h1 { margin-top: 24px; font-size: clamp(46px, 5.2vw, 66px); text-shadow: 0 4px 26px #000, 0 0 40px rgba(220,185,103,.13); }
.hero-content > p { color: #e1ded5; }
.hero-crest {
  position: absolute; z-index: 1; top: 36px; right: 42px;
  display: grid; place-items: center; width: 112px; height: 112px;
  border: 1px solid rgba(243,217,151,.42); border-radius: 50%;
  color: var(--gold-bright); background: radial-gradient(circle, rgba(10,20,29,.48), rgba(7,10,15,.1) 68%);
  box-shadow: 0 0 0 7px rgba(220,185,103,.035), 0 0 36px rgba(74,162,194,.18), inset 0 0 24px rgba(220,185,103,.08);
  text-align: center; transform: rotate(8deg);
}
.hero-crest::before, .hero-crest::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(119,201,223,.34); transform: rotate(45deg); }
.hero-crest::after { inset: 18px; border-color: rgba(243,217,151,.2); transform: rotate(0deg); }
.hero-crest span { z-index: 1; margin-top: -14px; color: #9de3ed; font: 36px/1 var(--serif); text-shadow: 0 0 18px rgba(119,201,223,.9); }
.hero-crest small { z-index: 1; margin-top: -28px; color: #f4dda5; font: 600 7px/1.55 var(--serif); letter-spacing: .2em; }
.button-gold { box-shadow: 0 7px 24px rgba(210,157,59,.25), inset 0 1px rgba(255,255,255,.58); }
.button-ghost { backdrop-filter: blur(5px); }
.realm-status { border-color: rgba(119,201,223,.4); box-shadow: 0 0 26px rgba(47,141,171,.12), 0 8px 28px rgba(0,0,0,.4); }
.quick-path { position: relative; margin-top: 25px; border-color: rgba(119,151,184,.24); box-shadow: 0 16px 46px rgba(0,0,0,.22); }
.quick-path::before { content: ''; position: absolute; top: -1px; left: 7%; width: 22%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); box-shadow: 0 0 14px rgba(243,217,151,.7); }
.path-heading { background: linear-gradient(135deg, rgba(220,185,103,.09), transparent); }
.path-card { min-height: 92px; position: relative; overflow: hidden; }
.path-card::after { content: ''; position: absolute; right: -24px; bottom: -43px; width: 90px; height: 90px; border: 1px solid rgba(119,201,223,.14); border-radius: 50%; box-shadow: 0 0 0 9px rgba(119,201,223,.025), 0 0 0 19px rgba(220,185,103,.025); transition: transform .3s ease; }
.path-card:hover::after { transform: scale(1.25); }
.path-number { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(220,185,103,.38); border-radius: 50%; color: var(--gold-bright); box-shadow: inset 0 0 12px rgba(220,185,103,.08); }
.path-card strong { font-family: var(--serif); }
.world-section { position: relative; }
.world-section::before { content: ''; position: absolute; top: 45px; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(119,201,223,.16), rgba(220,185,103,.34), transparent); }
.section-intro .eyebrow { color: #9ad8e3; }
.section-intro h2 { text-shadow: 0 8px 35px rgba(0,0,0,.55); }
.bestiary-grid { gap: 14px; }
.bestiary-card { min-height: 250px; }
.bestiary-card img { height: 84%; }
.callout-band { overflow: hidden; border-color: rgba(220,185,103,.52); background: radial-gradient(ellipse at 12% 50%, rgba(144,87,37,.28), transparent 34%), radial-gradient(ellipse at 90% 0%, rgba(40,123,154,.22), transparent 40%), linear-gradient(100deg, rgba(48,36,24,.84), rgba(16,22,32,.96) 54%, rgba(15,30,41,.92)); box-shadow: 0 18px 55px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.05); }
.callout-band::after { content: '✦'; position: absolute; right: 22%; top: -78px; color: rgba(243,217,151,.08); font: 190px/1 var(--serif); pointer-events: none; }
.callout-sigil { position: relative; z-index: 1; border-color: rgba(119,201,223,.56); color: #a5e6ed; box-shadow: 0 0 24px rgba(72,169,192,.12), inset 0 0 18px rgba(119,201,223,.1); }
.callout-band > div:nth-child(2), .callout-band .button { position: relative; z-index: 1; }
.site-footer { border-top-color: rgba(220,185,103,.2); }
@media (max-width: 900px) {
  .brand { flex-basis: 260px; }
  .brand img { width: 260px; }
  .hero-crest { right: 24px; width: 90px; height: 90px; }
}
@media (max-width: 680px) {
  .brand { flex-basis: 218px; }
  .brand img { width: 218px; }
  .hero { min-height: 700px; }
  .hero-crest { top: 20px; right: 18px; width: 66px; height: 66px; opacity: .78; }
  .hero-crest::before { inset: 5px; }
  .hero-crest::after { inset: 12px; }
  .hero-crest span { margin-top: -8px; font-size: 24px; }
  .hero-crest small { margin-top: -19px; font-size: 5px; }
  .hero-content { padding-top: 72px; }
  .hero-creatures { right: -8%; width: 78%; height: 47%; opacity: .84; }
  .hero-creature { max-width: 35%; }
  .hero-wolf { height: 40%; }
  .hero-bear { height: 58%; }
  .hero-harpy { height: 83%; }
  .hero-demon { display: none; }
  .hero h1 { max-width: 440px; font-size: clamp(42px, 11vw, 60px); }
  .path-card { min-height: 72px; }
  .world-section::before { top: 30px; }
}

/* Wide, readable live roster and the field-guide/wiki pages. */
.online-panel { width: min(100%, 1120px); max-width: 1120px; }
.player-list { padding: 8px 26px; }
.player-row { grid-template-columns: 48px 44px minmax(180px, 1.15fr) minmax(190px, 1fr) 124px; min-height: 82px; gap: 6px; }
.player-avatar { width: 34px; height: 34px; border-radius: 50%; transform: none; background: radial-gradient(circle at 35% 28%, rgba(119,201,223,.2), rgba(220,185,103,.08) 62%, transparent 70%); box-shadow: 0 0 18px rgba(119,201,223,.12), inset 0 0 12px rgba(220,185,103,.1); font: 600 13px var(--serif); }
.player-identity { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-name { overflow-wrap: anywhere; font-size: 15px; }
.player-identity small { color: #8da1b1; font-size: 10px; letter-spacing: .04em; }
.player-identity small b { margin: 0 7px; color: var(--gold); }
.player-area { display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; font-size: 12px; }
.player-area small { color: #71859b; font: 600 8px var(--serif); letter-spacing: .16em; }
.player-presence { justify-content: flex-end; font-size: 9px; }
.wiki-page { padding-top: 37px; }
.wiki-masthead { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 285px; margin: 0 auto 55px; padding: 45px clamp(24px, 6vw, 72px); overflow: hidden; border: 1px solid rgba(220,185,103,.42); background: radial-gradient(ellipse at 78% 46%, rgba(38,132,163,.22), transparent 28%), radial-gradient(ellipse at 82% 0%, rgba(183,108,47,.21), transparent 36%), linear-gradient(110deg, rgba(17,23,34,.98), rgba(10,15,23,.93) 60%, rgba(14,27,37,.92)); box-shadow: 0 25px 65px rgba(0,0,0,.31), inset 0 1px rgba(255,255,255,.045); }
.wiki-masthead::before { content: ''; position: absolute; z-index: -1; inset: 11px; border: 1px solid rgba(255,231,163,.13); pointer-events: none; }
.wiki-masthead-copy { position: relative; z-index: 1; max-width: 680px; }
.wiki-masthead h1 { margin: 10px 0 8px; font: 500 clamp(42px, 6vw, 68px)/1.1 var(--serif); }
.wiki-masthead-copy > p { max-width: 540px; margin: 0; color: #b9c0c8; font-size: 13px; }
.wiki-jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.wiki-jump-links a { padding: 7px 11px; border: 1px solid rgba(119,201,223,.24); color: #c9dbe0; background: rgba(7,12,18,.42); font-size: 10px; transition: border-color .2s, background .2s, color .2s; }
.wiki-jump-links a:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(220,185,103,.08); }
.wiki-masthead-art { position: absolute; z-index: -1; top: 50%; right: 10%; width: 258px; height: 258px; border: 1px solid rgba(119,201,223,.26); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 13px rgba(119,201,223,.025), 0 0 0 34px rgba(220,185,103,.025), 0 0 70px rgba(70,178,205,.12), inset 0 0 60px rgba(119,201,223,.08); }
.wiki-masthead-art::before, .wiki-masthead-art::after { content: ''; position: absolute; inset: 21px; border: 1px solid rgba(220,185,103,.25); transform: rotate(45deg); }
.wiki-masthead-art::after { inset: 44px; border-color: rgba(119,201,223,.26); transform: rotate(0); }
.wiki-masthead-art span { position: absolute; top: 50%; left: 50%; color: rgba(149,225,236,.72); font: 100px/1 var(--serif); text-shadow: 0 0 30px rgba(119,201,223,.65); transform: translate(-50%,-54%); }
.wiki-masthead-art i, .wiki-masthead-art b { position: absolute; top: 50%; left: 50%; display: block; width: 310px; height: 1px; background: linear-gradient(90deg, transparent, rgba(220,185,103,.44), transparent); transform: translate(-50%,-50%); }
.wiki-masthead-art b { transform: translate(-50%,-50%) rotate(90deg); }
.wiki-masthead-stamp { position: absolute; right: 6%; bottom: 22px; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(220,185,103,.38); border-radius: 50%; color: var(--gold-bright); background: rgba(7,11,17,.65); box-shadow: 0 0 24px rgba(220,185,103,.1); }
.wiki-masthead-stamp span { margin-top: 5px; font: 500 18px var(--serif); }
.wiki-masthead-stamp small { margin-top: -13px; color: #a99565; font: 600 5px/1.2 var(--serif); letter-spacing: .12em; text-align: center; }
.wiki-section { max-width: 1180px; margin: 0 auto 67px; scroll-margin-top: 25px; }
.wiki-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid rgba(119,151,184,.18); }
.wiki-section-heading h2 { margin: 7px 0 0; font: 500 clamp(27px, 3.5vw, 38px)/1.2 var(--serif); }
.wiki-section-heading > div > p { margin: 10px 0 0; }
.wiki-section-mark { color: rgba(220,185,103,.46); font: 500 31px var(--serif); }
.wiki-lead { max-width: 800px; color: #aab6c1; font-size: 12px; line-height: 1.9; }
.wiki-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.wiki-card { position: relative; min-height: 220px; padding: 22px 19px 18px; border: 1px solid rgba(119,151,184,.18); background: radial-gradient(ellipse at 100% 0%, rgba(41,117,142,.13), transparent 46%), linear-gradient(145deg, rgba(21,29,42,.9), rgba(11,16,24,.96)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.wiki-card::after { content: ''; position: absolute; right: 11px; top: 11px; width: 6px; height: 6px; border: 1px solid rgba(220,185,103,.62); transform: rotate(45deg); }
.wiki-card-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 15px; border: 1px solid rgba(119,201,223,.3); border-radius: 50%; color: #9de1ec; background: radial-gradient(circle, rgba(119,201,223,.12), transparent 75%); box-shadow: 0 0 20px rgba(119,201,223,.09); font-size: 18px; }
.wiki-card h3, .wiki-spell h3 { margin: 0 0 8px; color: #eee8d9; font: 600 13px var(--serif); }
.wiki-card p, .wiki-spell p { margin: 0; color: #a9b2bd; font-size: 10px; line-height: 1.8; }
.wiki-equation { margin-top: 13px; padding: 8px 9px; border-left: 2px solid rgba(220,185,103,.55); color: #e3cb91; background: rgba(220,185,103,.055); font: 600 9px/1.55 var(--sans); }
.wiki-source-note { margin: 14px 0 0; color: #758393; font-size: 9px; line-height: 1.8; }
.wiki-spell-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(119,151,184,.2); background: rgba(119,151,184,.18); }
.wiki-spell { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 14px; min-height: 125px; padding: 18px; background: linear-gradient(115deg, rgba(18,26,39,.98), rgba(10,15,23,.98)); }
.wiki-spell-glyph { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(220,185,103,.4); border-radius: 50%; color: #a8e5ed; background: radial-gradient(circle, rgba(51,127,150,.22), rgba(8,13,20,.3)); box-shadow: 0 0 18px rgba(93,197,212,.12); font: 20px var(--serif); }
.wiki-spell h3 { color: var(--gold-bright); }
.wiki-spell b { color: #e8d095; }
.wiki-spell code, .activity-body code { display: inline-block; margin-top: 8px; padding: 3px 6px; border: 1px solid rgba(119,201,223,.18); color: #9fdae4; background: rgba(3,8,13,.4); font: 9px var(--sans); }
.wiki-activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.wiki-activity { align-self: start; border: 1px solid rgba(119,151,184,.2); background: linear-gradient(145deg, rgba(19,27,40,.96), rgba(10,15,23,.98)); box-shadow: 0 10px 28px rgba(0,0,0,.13); }
.wiki-activity[open] { border-color: rgba(220,185,103,.38); }
.wiki-activity > summary { display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; align-items: center; gap: 12px; min-height: 76px; padding: 12px 17px; cursor: pointer; list-style: none; }
.wiki-activity > summary::-webkit-details-marker, .quest-region > summary::-webkit-details-marker, .wiki-quest > summary::-webkit-details-marker { display: none; }
.activity-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(220,185,103,.38); border-radius: 50%; color: #a6e4eb; background: radial-gradient(circle, rgba(119,201,223,.12), transparent); font: 18px var(--serif); }
.wiki-activity summary b { display: block; color: #eee7d8; font: 600 12px var(--serif); }
.wiki-activity summary small { display: block; margin-top: 4px; color: #8593a2; font-size: 9px; }
.activity-plus { color: var(--gold); font-size: 17px; transition: transform .2s ease; }
.wiki-activity[open] .activity-plus, .quest-region[open] > summary .activity-plus { transform: rotate(45deg); }
.activity-body { padding: 0 20px 18px 69px; color: #a9b2bc; font-size: 10px; line-height: 1.9; }
.activity-body p { margin: 0 0 9px; }
.activity-body p:last-child { margin-bottom: 0; }
.activity-body a { color: var(--gold-bright); }
.quest-search { display: flex; align-items: center; gap: 11px; min-height: 50px; margin: 20px 0 14px; padding: 0 14px; border: 1px solid rgba(119,201,223,.27); background: rgba(7,12,18,.82); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 8px 22px rgba(0,0,0,.15); }
.quest-search > span { color: var(--gold); font-size: 22px; }
.quest-search input { flex: 1; min-width: 0; border: 0; outline: none; color: var(--text); background: transparent; font: 11px var(--sans); }
.quest-search input::placeholder { color: #7e8a99; }
.quest-search small { color: #7c8c9c; font: 600 8px var(--serif); letter-spacing: .1em; white-space: nowrap; }
.quest-region { margin: 9px 0; border: 1px solid rgba(119,151,184,.18); background: rgba(13,19,28,.9); }
.quest-region[open] { border-color: rgba(220,185,103,.3); }
.quest-region > summary { display: grid; grid-template-columns: 28px 1fr auto 20px; align-items: center; gap: 11px; min-height: 54px; padding: 8px 16px; cursor: pointer; list-style: none; background: linear-gradient(90deg, rgba(220,185,103,.055), transparent 62%); }
.region-seal { color: var(--gold); font-size: 15px; text-align: center; }
.quest-region > summary strong { color: #e9e2d2; font: 600 11px var(--serif); }
.quest-region > summary small { color: #8794a1; font: 600 8px var(--serif); letter-spacing: .11em; }
.quest-region-list { border-top: 1px solid rgba(119,151,184,.15); }
.wiki-quest { border-bottom: 1px solid rgba(119,151,184,.12); background: rgba(8,13,20,.3); }
.wiki-quest:last-child { border-bottom: 0; }
.wiki-quest[open] { background: linear-gradient(90deg, rgba(25,43,52,.58), rgba(10,15,23,.65)); }
.wiki-quest[hidden], .quest-region[hidden] { display: none; }
.wiki-quest > summary { display: grid; grid-template-columns: 43px minmax(180px,1fr) minmax(170px,.8fr) 92px; align-items: center; gap: 13px; min-height: 50px; padding: 8px 16px; cursor: pointer; list-style: none; }
.quest-number { color: #66768a; font: 600 9px var(--serif); letter-spacing: .1em; }
.wiki-quest > summary strong { color: #d8dce0; font: 500 11px var(--serif); }
.quest-xp { color: #9bd8e2; font-size: 9px; line-height: 1.5; }
.quest-level { justify-self: end; color: var(--gold); font: 600 8px var(--serif); letter-spacing: .08em; white-space: nowrap; }
.quest-detail { padding: 1px 20px 17px 72px; }
.quest-detail > p { max-width: 870px; margin: 7px 0 14px; color: #b8c0c9; font-size: 10px; line-height: 1.85; }
.quest-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.quest-meta span { display: flex; flex-direction: column; gap: 4px; color: #d2d8dd; font-size: 9px; }
.quest-meta small { color: #788a9b; font: 600 7px var(--serif); letter-spacing: .14em; }
.quest-notes { margin-top: 10px; padding: 8px 11px; border-left: 2px solid rgba(220,185,103,.46); color: #a8b2bd; background: rgba(220,185,103,.045); font-size: 9px; line-height: 1.7; }
.quest-notes p { margin: 2px 0; }
.quest-notes b { color: #dfc77f; }
@media (max-width: 900px) {
  .wiki-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wiki-masthead-art { right: 7%; transform: translateY(-50%) scale(.8); }
}
@media (max-width: 680px) {
  .player-list { padding: 5px 12px; }
  .player-row { grid-template-columns: 25px 34px minmax(0,1fr); gap: 8px; padding: 10px 0; }
  .player-area { grid-column: 3; font-size: 10px; }
  .player-presence { grid-column: 2 / 4; justify-content: flex-start; padding-left: 2px; }
  .wiki-page { padding-top: 26px; }
  .wiki-masthead { min-height: 310px; margin-bottom: 42px; padding: 34px 22px; }
  .wiki-masthead-copy { max-width: 100%; }
  .wiki-masthead-copy > p { max-width: 280px; font-size: 11px; }
  .wiki-masthead-art { top: auto; right: 3px; bottom: -48px; transform: scale(.56); transform-origin: bottom right; opacity: .7; }
  .wiki-masthead-stamp { right: 20px; bottom: 20px; transform: scale(.8); }
  .wiki-section { margin-bottom: 49px; }
  .wiki-card-grid, .wiki-spell-table, .wiki-activity-grid { grid-template-columns: 1fr; }
  .wiki-card { min-height: 0; }
  .wiki-spell { min-height: 0; padding: 15px 13px; }
  .wiki-activity > summary { grid-template-columns: 37px minmax(0,1fr) 18px; padding: 10px 12px; }
  .activity-body { padding: 0 14px 15px 59px; }
  .quest-region > summary { grid-template-columns: 24px minmax(0,1fr) auto 16px; gap: 7px; padding-inline: 10px; }
  .quest-region > summary strong { font-size: 10px; }
  .quest-region > summary small { font-size: 7px; }
  .wiki-quest > summary { grid-template-columns: 34px minmax(0,1fr) auto; gap: 7px; padding: 9px 10px; }
  .quest-xp { grid-column: 2; font-size: 8px; }
  .quest-level { grid-column: 3; grid-row: 1 / span 2; font-size: 7px; }
  .quest-detail { padding: 2px 12px 13px 52px; }
  .quest-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
