/* MU Insta - site v3. Brand: "Ember & Gold" - warm black, blood crimson, molten ember and old gold.
   Display font: Cormorant Garamond. Body: Manrope. Art comes from our own game client (static/img, tools/build_assets.py).
   Mobile first; no inline styles (the CSP forbids them). */
@font-face { font-family: "Cormorant Garamond"; src: url(/static/fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/static/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0c0708;
  --bg-2: #120a0b;
  --panel: #170d0e;
  --panel-2: #1f1112;
  --line: rgba(233, 184, 92, .12);
  --line-2: rgba(233, 184, 92, .26);
  --text: #f3e7d6;
  --muted: #b39d8a;
  --dim: #7d6858;
  --crimson: #a3182a;
  --crimson-2: #6d0d19;
  --ember: #ff6a2b;
  --ember-2: #ffb35a;
  --gold: #e9b85c;
  --gold-2: #fff1c4;
  --green: #5ed39a;
  --red: #ff6464;
  --radius: 14px;
  --display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 85% -120px, rgba(163, 24, 42, .16), transparent 70%), radial-gradient(700px 500px at -10% 30%, rgba(255, 106, 43, .05), transparent 70%); background-repeat: no-repeat; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--crimson); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold-text { background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, #9a6620 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ember-text { color: var(--ember-2); }

/* headings */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--ember-2); margin-bottom: 10px; }
.kicker::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.h2 { font-family: var(--display); font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: .005em; }
.h2 em { font-style: italic; font-weight: 600; color: var(--gold); }
.divider { display: block; width: 180px; height: 18px; margin: 14px 0 0; background: url(/static/img/divider.svg) center / contain no-repeat; }
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin-top: 14px; }
.center .lede { margin-left: auto; margin-right: auto; }
.sec { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }
.sec-head { margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }

/* buttons */
.btn { --bh: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border-radius: 999px; font: 800 .86rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-fire { color: #fff7ec; background: linear-gradient(180deg, #e2452a 0%, var(--crimson) 55%, #5e0a15 100%); border-color: rgba(255, 179, 90, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 10px 30px rgba(255, 80, 30, .28); }
.btn-fire:hover { color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 14px 40px rgba(255, 90, 35, .45); }
.btn-gold { color: var(--gold-2); background: rgba(23, 13, 14, .7); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-gold:hover { color: #fff; border-color: var(--gold); background: rgba(233, 184, 92, .08); }
.btn-sm { --bh: 40px; padding: 0 16px; font-size: .74rem; }
.btn-lg { --bh: 58px; padding: 0 32px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 7, 8, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 43, .5), transparent); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.brand img { width: 38px; height: 38px; transition: transform .4s var(--ease), filter .3s; filter: drop-shadow(0 2px 10px rgba(255, 90, 40, .3)); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; line-height: 1; }
.nav { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.live b { color: var(--text); }
.live .lbl { display: none; }
@media (min-width: 560px) { .live .lbl { display: inline; } }
.beacon { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.beacon.on { background: var(--green); }
.beacon.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.top .acc-link { display: none; }
.burger { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.burger span { width: 18px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.navtoggle:focus-visible ~ .top-actions .burger { outline: 2px solid var(--gold); outline-offset: 2px; }
.navtoggle:checked ~ .top-actions .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle:checked ~ .top-actions .burger span:nth-child(2) { opacity: 0; }
.navtoggle:checked ~ .top-actions .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; padding: 6px 0 18px; border-top: 1px solid var(--line); }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.drawer a.on { color: var(--ember-2); }
.drawer .drawer-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.drawer .drawer-btns a { border: 0; padding: 0 12px; justify-content: center; }
.navtoggle:checked ~ .drawer { display: block; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: 4px; margin-left: 26px; }
  .nav a { position: relative; padding: 10px 12px; font-size: .9rem; font-weight: 600; color: #d9c9b6; }
  .nav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; background: var(--ember); box-shadow: 0 0 10px var(--ember); transition: width .25s var(--ease), left .25s var(--ease); border-radius: 2px; }
  .nav a:hover, .nav a.on { color: #fff; }
  .nav a:hover::after, .nav a.on::after { left: 12px; width: calc(100% - 24px); }
  .burger, .drawer, .navtoggle:checked ~ .drawer { display: none; }
  .top .acc-link { display: inline-flex; }
}

/* ---------- hero (centered crest over the art) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 46px 0 0; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 22%; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 38%, rgba(12, 7, 8, .25), rgba(12, 7, 8, .85) 75%), linear-gradient(180deg, rgba(12, 7, 8, .3), transparent 30%, transparent 60%, var(--bg)); }
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 10px 2px var(--ember); opacity: 0; animation: rise 9s linear infinite; }
.embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 26%; animation-delay: 2.5s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 41%; animation-delay: 5s; width: 3px; height: 3px; }
.embers i:nth-child(4) { left: 58%; animation-delay: 1.2s; animation-duration: 12s; }
.embers i:nth-child(5) { left: 71%; animation-delay: 3.8s; }
.embers i:nth-child(6) { left: 84%; animation-delay: 6.5s; width: 3px; height: 3px; animation-duration: 10s; }
.embers i:nth-child(7) { left: 92%; animation-delay: 8s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(30px, -620px); opacity: 0; } }
.crest { width: 96px; height: 96px; margin: 0 auto 14px; filter: drop-shadow(0 10px 34px rgba(255, 90, 40, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wordmark { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 15vw, 7.2rem); letter-spacing: .07em; line-height: .95; padding-left: .07em; }
.hero .sub { display: block; margin-top: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); padding-left: .38em; }
.hero-tag { font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.1rem); font-style: italic; font-weight: 600; margin: 18px auto 0; color: var(--text); }
.hero-tag em { color: var(--ember-2); }
.hero-text { color: #dccbb7; max-width: 520px; margin: 10px auto 0; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 26px auto 0; }
@media (min-width: 520px) { .hero-cta { flex-direction: row; justify-content: center; max-width: none; } }
.reveal { animation: fadeUp .8s var(--ease) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; } .reveal.d4 { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* server pulse panel docked at the bottom of the hero */
.pulse { position: relative; margin: 40px auto 0; max-width: 980px; border: 1px solid var(--line-2); border-radius: 18px 18px 0 0; border-bottom: 0; background: linear-gradient(180deg, rgba(31, 17, 18, .92), rgba(23, 13, 14, .96)); backdrop-filter: blur(10px); text-align: left; overflow: hidden; }
.pulse::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ember), var(--gold), var(--ember), transparent); }
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pulse-head .state { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pulse-cell { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pulse-cell:nth-child(2n) { border-right: 0; }
.pulse-cell .v { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--gold-2); }
.pulse-cell .k { font-size: .76rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.pulse-cell .v small { font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
@media (min-width: 760px) {
  .pulse-grid { grid-template-columns: repeat(4, 1fr); }
  .pulse-cell { border-bottom: 0; }
  .pulse-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .pulse-cell:last-child { border-right: 0; }
  .pulse-cell .v { font-size: 2.4rem; }
}
@media (min-width: 980px) { .hero { padding-top: 72px; } .crest { width: 120px; height: 120px; } }
@media (min-width: 640px) and (max-width: 979px) and (orientation: landscape) {
  .hero { padding-top: 18px; }
  .crest { width: 64px; height: 64px; margin-bottom: 6px; }
  .wordmark { font-size: 3.6rem; }
  .hero .sub { margin-top: 6px; }
  .hero-tag { margin-top: 8px; font-size: 1.4rem; }
  .hero-text { display: none; }
  .hero-cta { margin-top: 14px; }
  .hero-cta .btn-lg { --bh: 48px; }
  .pulse { margin-top: 22px; }
}

/* ---------- path (3 steps) ---------- */
.path { display: grid; gap: 14px; counter-reset: p; }
@media (min-width: 820px) { .path { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--panel)); transition: border-color .25s, transform .25s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.seal { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8402c, var(--crimson-2) 70%); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(233, 184, 92, .08), 0 8px 24px rgba(255, 80, 30, .25); color: var(--gold-2); }
.seal svg { width: 24px; height: 24px; }
.step h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: 4px; }
.step h3 small { display: block; font-family: var(--body); font-size: .7rem; letter-spacing: .24em; color: var(--ember-2); font-weight: 800; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- class picker (radio tabs, no JS) ---------- */
.picker { display: grid; gap: 16px; }
.picker > input { position: absolute; opacity: 0; pointer-events: none; }
.tokens { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.tokens::-webkit-scrollbar { display: none; }
.token { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 82px; cursor: pointer; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.2; }
.token .face { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); background: var(--panel); }
.token .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.6) brightness(.8); transition: filter .25s; }
.token:hover .face { transform: translateY(-2px); border-color: var(--gold); }
.token:hover .face img { filter: none; }
.panels { position: relative; }
.cpanel { display: none; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.cpanel .art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cpanel .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.cpanel .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--panel-2)); }
.cpanel .info { padding: 4px 20px 24px; }
.cpanel h3 { font-family: var(--display); font-size: 2.1rem; }
.cpanel .evo { color: var(--gold); font-size: .85rem; font-weight: 700; margin: 4px 0 10px; }
.cpanel .role { color: #dccbb7; margin-bottom: 16px; }
.bars { display: grid; gap: 10px; margin: 0; }
.bar { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.bar .track { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--crimson), var(--ember), var(--ember-2)); box-shadow: 0 0 12px rgba(255, 106, 43, .45); transform-origin: left; }
.bar dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.w10 { width: 29%; } .w15 { width: 43%; } .w16 { width: 46%; } .w18 { width: 51%; } .w20 { width: 57%; } .w21 { width: 60%; } .w22 { width: 63%; } .w23 { width: 66%; }
.w25 { width: 71%; } .w26 { width: 74%; } .w27 { width: 77%; } .w28 { width: 80%; } .w30 { width: 86%; } .w32 { width: 91%; }
#c-dw:checked ~ .panels .p-dw, #c-dk:checked ~ .panels .p-dk, #c-elf:checked ~ .panels .p-elf, #c-mg:checked ~ .panels .p-mg,
#c-dl:checked ~ .panels .p-dl, #c-sum:checked ~ .panels .p-sum, #c-rf:checked ~ .panels .p-rf { display: block; animation: fadeUp .45s var(--ease); }
#c-dw:checked ~ .panels .p-dw .fill, #c-dk:checked ~ .panels .p-dk .fill, #c-elf:checked ~ .panels .p-elf .fill, #c-mg:checked ~ .panels .p-mg .fill,
#c-dl:checked ~ .panels .p-dl .fill, #c-sum:checked ~ .panels .p-sum .fill, #c-rf:checked ~ .panels .p-rf .fill { animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#c-dw:checked ~ .tokens label[for=c-dw], #c-dk:checked ~ .tokens label[for=c-dk], #c-elf:checked ~ .tokens label[for=c-elf], #c-mg:checked ~ .tokens label[for=c-mg],
#c-dl:checked ~ .tokens label[for=c-dl], #c-sum:checked ~ .tokens label[for=c-sum], #c-rf:checked ~ .tokens label[for=c-rf] { color: var(--gold-2); }
#c-dw:checked ~ .tokens label[for=c-dw] .face, #c-dk:checked ~ .tokens label[for=c-dk] .face, #c-elf:checked ~ .tokens label[for=c-elf] .face, #c-mg:checked ~ .tokens label[for=c-mg] .face,
#c-dl:checked ~ .tokens label[for=c-dl] .face, #c-sum:checked ~ .tokens label[for=c-sum] .face, #c-rf:checked ~ .tokens label[for=c-rf] .face { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 43, .18), 0 0 24px rgba(255, 106, 43, .4); }
#c-dw:checked ~ .tokens label[for=c-dw] img, #c-dk:checked ~ .tokens label[for=c-dk] img, #c-elf:checked ~ .tokens label[for=c-elf] img, #c-mg:checked ~ .tokens label[for=c-mg] img,
#c-dl:checked ~ .tokens label[for=c-dl] img, #c-sum:checked ~ .tokens label[for=c-sum] img, #c-rf:checked ~ .tokens label[for=c-rf] img { filter: none; }
.picker > input:focus-visible ~ .tokens { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
@media (min-width: 900px) {
  .picker { grid-template-columns: 300px 1fr; align-items: start; gap: 26px; }
  .tokens { flex-direction: column; overflow: visible; gap: 6px; padding: 0; }
  .token { width: auto; flex-direction: row; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid transparent; font-size: .95rem; text-align: left; transition: background-color .2s, border-color .2s; }
  .token .face { width: 52px; height: 52px; }
  .token:hover { background: rgba(255, 255, 255, .02); border-color: var(--line); }
  .token small { display: block; font-size: .72rem; font-weight: 600; color: var(--dim); margin-top: 2px; }
  #c-dw:checked ~ .tokens label[for=c-dw], #c-dk:checked ~ .tokens label[for=c-dk], #c-elf:checked ~ .tokens label[for=c-elf], #c-mg:checked ~ .tokens label[for=c-mg],
  #c-dl:checked ~ .tokens label[for=c-dl], #c-sum:checked ~ .tokens label[for=c-sum], #c-rf:checked ~ .tokens label[for=c-rf] { background: linear-gradient(90deg, rgba(163, 24, 42, .28), transparent); border-color: var(--line-2); }
  .cpanel { display: none; grid-template-columns: 1fr 1fr; }
  #c-dw:checked ~ .panels .p-dw, #c-dk:checked ~ .panels .p-dk, #c-elf:checked ~ .panels .p-elf, #c-mg:checked ~ .panels .p-mg,
  #c-dl:checked ~ .panels .p-dl, #c-sum:checked ~ .panels .p-sum, #c-rf:checked ~ .panels .p-rf { display: grid; }
  .cpanel .art { aspect-ratio: auto; min-height: 460px; }
  .cpanel .art::after { background: linear-gradient(90deg, transparent 55%, var(--panel-2)); }
  .cpanel .info { padding: 40px 34px; align-self: center; }
  .cpanel h3 { font-size: 2.8rem; }
}
@media (max-width: 899px) { .token small { display: none; } }

/* ---------- legends (top 3 hero cards) ---------- */
.legends { display: grid; gap: 16px; }
@media (min-width: 760px) { .legends { grid-template-columns: repeat(3, 1fr); } }
.legend { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); aspect-ratio: 4 / 4.6; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s; }
.legend:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 106, 43, .25); }
.legend > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; transition: transform .6s var(--ease); }
.legend:hover > img { transform: scale(1.05); }
.legend::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 7, 8, .1) 30%, rgba(12, 7, 8, .95) 85%); }
.legend .medal { position: absolute; top: 14px; left: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #2a1405; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #8a5a1a); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.legend.r2 .medal { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ccd6 60%, #7b7f8c); }
.legend.r3 .medal { background: radial-gradient(circle at 35% 30%, #ffd9b8, #c47a45 60%, #6e3a17); }
.legend .body { padding: 20px; }
.legend h3 { font-family: var(--display); font-size: 1.9rem; overflow-wrap: anywhere; }
.legend .cls { color: var(--gold); font-weight: 700; font-size: .88rem; margin: 2px 0 12px; }
.legend .stats { display: flex; gap: 18px; font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legend .stats b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--text); letter-spacing: 0; text-transform: none; }



/* chronicle (news timeline) + codex */
.split { display: grid; gap: 30px; }
@media (min-width: 980px) { .split { grid-template-columns: 1.35fr 1fr; gap: 40px; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--ember), var(--line-2) 30%, transparent); }
.timeline li { position: relative; margin-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 22px; width: 14px; height: 14px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--gold); }
.timeline li:first-child::before { background: var(--ember); border-color: var(--ember-2); box-shadow: 0 0 14px var(--ember); }
.entry { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.entry:hover { border-color: var(--line-2); transform: translateX(4px); color: var(--text); background: var(--panel-2); }
.entry img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.entry time { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); }
.entry h3 { font-family: var(--display); font-size: 1.35rem; margin: 2px 0 2px; }
.entry p { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 600px) { .entry { grid-template-columns: 150px 1fr; padding: 14px; } .entry img { width: 150px; height: 96px; } }
.codex { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); padding: 22px; position: relative; }
.codex h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: 8px; }
.codex dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.codex dl div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(0, 0, 0, .18); }
.codex dt { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.codex dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--gold-2); line-height: 1.15; }
.codex ul { list-style: none; margin: 18px 0 0; padding: 0; }
.codex li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.codex li span:last-child { color: var(--muted); text-align: right; }

/* final banner */
.banner { position: relative; overflow: hidden; isolation: isolate; margin: 0 var(--gutter) 70px; border-radius: 22px; border: 1px solid var(--line-2); padding: 54px 22px; text-align: center; }

.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(109, 13, 25, .92), rgba(12, 7, 8, .78) 55%, rgba(12, 7, 8, .55)); }
.banner .crest-sm { width: 64px; height: 64px; margin: 0 auto 10px; }
.banner .hero-cta { margin-top: 22px; }
@media (min-width: 900px) { .banner { max-width: var(--wrap); margin: 0 auto 96px; padding: 74px 40px; } }

/* empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 18px; background: radial-gradient(60% 80% at 50% 0%, rgba(163, 24, 42, .14), transparent 70%); }
.empty img { width: 60px; height: 60px; margin: 0 auto 12px; opacity: .85; }
.empty strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- inner page header ---------- */
.phead { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.phead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; }
.phead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 0%, rgba(163, 24, 42, .35), transparent 70%), linear-gradient(0deg, var(--bg), rgba(12, 7, 8, .55)); }
.phead .crest-sm { width: 46px; height: 46px; margin: 0 auto 10px; }
.phead h1 { font-family: var(--display); font-size: clamp(2.4rem, 9vw, 4.2rem); }
.phead .lede { margin-top: 10px; }
@media (min-width: 900px) { .phead { padding: 72px 0 56px; } }
.page { padding-top: 32px; padding-bottom: 80px; }
@media (min-width: 900px) { .page { padding-top: 48px; padding-bottom: 100px; } }

/* panels, tables, chips */
.card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); padding: 22px; }
@media (min-width: 720px) { .card { padding: 28px; } }
.card-h { font-family: var(--display); font-size: 1.7rem; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); color: #dccbb7; font-size: .84rem; font-weight: 700; transition: border-color .2s, background-color .2s, color .2s; }
.chip.noimg { padding-left: 14px; }
.chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chip:hover { border-color: var(--gold); color: #fff; }
.chip.on { background: linear-gradient(180deg, rgba(163, 24, 42, .55), rgba(109, 13, 25, .55)); border-color: var(--ember); color: #fff; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); margin-bottom: 14px; }
.seg a { padding: 8px 18px; border-radius: 999px; font-size: .84rem; font-weight: 800; color: var(--muted); }
.seg a.on { background: var(--gold); color: #2a1405; }
.ladder { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); margin-top: 18px; }
.rung { display: grid; grid-template-columns: 36px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.rung:last-child { border-bottom: 0; }
.rung:hover { background: rgba(255, 255, 255, .02); }
.rung .pos { font-family: var(--display); font-size: 1.3rem; color: var(--dim); text-align: center; }
.rung .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-2); }
.rung .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rung .who span { font-size: .82rem; color: var(--muted); }
.rung .lv { text-align: right; font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.rung .lv small { display: block; font-family: var(--body); font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.rung-head { display: none; }
@media (min-width: 760px) {
  .rung, .rung-head { grid-template-columns: 50px 44px minmax(0, 1.4fr) 1fr 90px 90px 90px; }
  .rung-head { display: grid; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
  .rung-head span:nth-child(n+5) { text-align: right; }
  .rung .cls-col { display: block; color: var(--muted); font-size: .9rem; }
  .rung .who span { display: none; }
  .rung .lv small { display: none; }
  .rung .num { display: block; text-align: right; font-variant-numeric: tabular-nums; }
}
.rung .cls-col, .rung .num { display: none; }

/* gate (register / login) */
.gate { position: relative; overflow: hidden; isolation: isolate; padding: 36px 0 70px; min-height: calc(100vh - 67px); }
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 25%; z-index: -2; opacity: .45; filter: saturate(1.1); }
.gate::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 30%, rgba(12, 7, 8, .55), rgba(12, 7, 8, .92) 80%), linear-gradient(0deg, var(--bg), transparent 40%); }
.gate-card { position: relative; max-width: 500px; margin: 46px auto 0; padding: 50px 22px 26px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(31, 17, 18, .94), rgba(19, 10, 11, .97)); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 106, 43, .06) inset; backdrop-filter: blur(8px); }
.gate-card .crest-sm { position: absolute; top: -40px; left: 50%; width: 78px; height: 78px; margin-left: -39px; filter: drop-shadow(0 10px 26px rgba(255, 90, 40, .5)); }
.gate-card h1 { font-family: var(--display); font-size: 2.6rem; text-align: center; }
.gate-card .intro { text-align: center; color: var(--muted); margin: 6px 0 0; }
@media (min-width: 600px) { .gate-card { padding: 56px 38px 34px; } }
.perks { display: grid; gap: 10px; max-width: 500px; margin: 18px auto 0; grid-template-columns: repeat(3, 1fr); }
.perks div { text-align: center; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(23, 13, 14, .7); font-size: .76rem; font-weight: 700; color: #dccbb7; }
.perks b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--gold-2); }

/* forms */
.form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #e6d3bd; }
.field small { color: var(--muted); font-size: .8rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input:not([type]), .form input[inputmode] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0809; color: var(--text); font: 16px var(--body); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form input:hover { border-color: rgba(233, 184, 92, .4); }
.form input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 43, .16); background: #120a0b; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #dccbb7; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--crimson); flex: none; }
.form-foot { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 13px 16px; margin: 18px 0 0; border: 1px solid; font-size: .92rem; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: rgba(255, 100, 100, .08); border-color: rgba(255, 100, 100, .4); color: #ffd5d0; }
.alert-ok { background: rgba(94, 211, 154, .08); border-color: rgba(94, 211, 154, .4); color: #cdf3df; }

/* account */
.profile { display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center; }
.profile .avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(233, 184, 92, .1), 0 10px 30px rgba(255, 80, 30, .25); }
.profile .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile h1 { font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3.4rem); overflow-wrap: anywhere; }
.profile .meta { color: var(--muted); font-size: .9rem; }
.profile .meta b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.kpis div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--panel); }
.kpis b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--gold-2); }
.kpis span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.heroes { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
@media (min-width: 760px) { .heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .heroes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hcard { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .3s var(--ease), border-color .2s; }
.hcard:hover { transform: translateY(-3px); border-color: var(--gold); }
.hcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; }
.hcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(12, 7, 8, .95) 88%); }
.hcard .lvl { position: absolute; top: 10px; right: 10px; min-width: 46px; padding: 6px 8px; border-radius: 10px; text-align: center; background: rgba(12, 7, 8, .78); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--gold-2); }
.hcard .lvl small { display: block; font-family: var(--body); font-size: .56rem; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.hcard .b { padding: 12px; }
.hcard h3 { font-family: var(--display); font-size: 1.35rem; overflow-wrap: anywhere; }
.hcard p { margin: 0; font-size: .76rem; color: var(--gold); font-weight: 700; }
.hcard .extra { font-size: .72rem; color: var(--muted); font-weight: 600; }
.acc-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 980px) { .acc-grid { grid-template-columns: 1fr 1fr; } }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
details.fold summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-family: var(--body); font-size: 1.4rem; color: var(--gold); transition: transform .25s var(--ease); }
details.fold[open] summary::after { transform: rotate(45deg); }

/* prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-family: var(--display); font-size: 2rem; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.3em 0 .5em; }
.prose p, .prose li { color: #e2d3c1; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ember); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; height: 18px; background: url(/static/img/divider.svg) center / 180px 18px no-repeat; margin: 30px 0; }
.prose code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 1.2em; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold-2); background: radial-gradient(circle at 35% 30%, #d8402c, var(--crimson-2) 70%); border: 1px solid var(--gold); }
.article-meta { color: var(--ember-2); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.article-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); margin: 0 0 26px; aspect-ratio: 2 / 1; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li span:last-child { color: var(--muted); text-align: right; }
.list li strong { font-family: var(--display); font-size: 1.2rem; color: var(--gold-2); }

/* footer */
.foot { border-top: 1px solid var(--line); background: #090506; padding: 50px 0 24px; position: relative; }
.foot::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 43, .55), transparent); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 360px; margin: 14px 0 0; }
.foot h4 { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember-2); margin: 0 0 12px; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--muted); font-size: .94rem; }
.foot ul a:hover { color: var(--gold-2); }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: .8rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .foot-brand { grid-column: auto; } }

/* header pill is a link to the server page */
a.live { text-decoration: none; transition: border-color .2s, color .2s; }
a.live:hover { border-color: var(--line-2); color: var(--text); }
.live .ig { display: inline-flex; gap: 4px; color: var(--muted); font-weight: 600; }
.live .ig b { color: var(--text); }
@media (max-width: 380px) { .live .ig { display: none; } }

/* profile links */
.plink { color: inherit; text-decoration: none; background-image: linear-gradient(var(--ember), var(--ember)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s var(--ease), color .2s; }
.plink:hover { color: var(--gold-2); background-size: 100% 1px; }

/* guild marks */
.gmark { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2); flex: none; image-rendering: pixelated; }
.gmark.empty { display: inline-block; background: repeating-linear-gradient(45deg, var(--panel-2) 0 4px, var(--panel) 4px 8px); }
.rung .gmark { width: 40px; height: 40px; }
.gmark-big { display: flex; justify-content: center; margin-bottom: 12px; }
.gmark-big .gmark { width: 96px; height: 96px; border-radius: 14px; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
@media (min-width: 760px) {
  .guild-rung, .guild-head { grid-template-columns: 50px 44px minmax(0, 1.4fr) 1fr 110px 120px; }
}

/* event timers */
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev-name { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; min-width: 0; }
.ev-name small { font-weight: 600; font-size: .74rem; color: var(--muted); }
.ev-time { flex: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.ev.live-now .ev-time { color: var(--green); font-family: var(--body); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border: 1px solid rgba(94, 211, 154, .45); border-radius: 999px; animation: glow 2s ease-in-out infinite; }
.ev-time.soon { color: var(--ember-2); }
@keyframes glow { 50% { box-shadow: 0 0 14px rgba(94, 211, 154, .35); } }
.codex-sub { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ember-2); margin: 20px 0 4px; }
.codex dl small, .list li span small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 4px; line-height: 1.35; }
.codex dl small { font-family: var(--body); }
.list li.rate span:first-child { display: flex; flex-direction: column; }

/* account extras */
.note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--muted); font-size: .86rem; }
.note b { color: var(--gold-2); }
.hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: .74rem; }
.hstats dt { color: var(--muted); font-weight: 600; }
.hstats dd { margin: 0; font-weight: 800; color: var(--text); }
.hstats div { display: flex; justify-content: space-between; gap: 6px; }
.hstats .wide { grid-column: 1 / -1; }
.hstats small { color: var(--muted); font-weight: 600; }
.hcard { aspect-ratio: auto; min-height: 300px; }
.gs { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(12, 7, 8, .78); border: 1px solid var(--line-2); }
.gs.on { color: #0c0708; background: var(--green); border-color: var(--green); }
.unstuck { margin-top: 10px; }

/* character profile */
.profile-hero { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 50px; border-bottom: 1px solid var(--line); }
.profile-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .18; filter: blur(14px) saturate(1.2); transform: scale(1.1); }
.profile-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 30% 0%, rgba(163, 24, 42, .3), transparent 70%), linear-gradient(0deg, var(--bg), transparent 50%); }
.ph-grid { display: grid; gap: 26px; align-items: center; }
.portrait { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 5; max-width: 340px; width: 100%; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(233, 184, 92, .06); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile-hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 10vw, 4.6rem); overflow-wrap: anywhere; }
.ph-sub { color: var(--gold); font-weight: 700; margin: 4px 0 0; }
@media (min-width: 860px) { .ph-grid { grid-template-columns: 340px 1fr; gap: 50px; } .profile-hero { padding: 64px 0 70px; } }

/* updates / roadmap */
.releases { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.releases::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--ember), var(--line-2) 25%, transparent); }
.release { position: relative; margin-bottom: 18px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.release::before { content: ""; position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--gold); }
.release.latest { border-color: var(--line-2); }
.release.latest::before { background: var(--ember); border-color: var(--ember-2); box-shadow: 0 0 14px var(--ember); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ver { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--gold-2); margin-right: 4px; }
.rel-head time { font-size: .76rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.tag { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: #dccbb7; }
.tag-client { border-color: rgba(255, 179, 90, .5); color: var(--ember-2); }
.tag-server { border-color: rgba(163, 24, 42, .7); color: #ff9aa6; }
.tag-site { border-color: rgba(233, 184, 92, .5); color: var(--gold); }
.tag-infra { border-color: rgba(94, 211, 154, .45); color: var(--green); }
.tag-new { background: var(--ember); border-color: var(--ember); color: #1a0a05; }
.release h2 { font-family: var(--display); font-size: 1.7rem; margin-bottom: 8px; }
.release ul { margin: 0; padding-left: 18px; color: #e2d3c1; }
.release li { margin-bottom: 5px; }
.release li::marker { color: var(--ember); }
.roadmap ol { list-style: none; margin: 14px 0 0; padding: 0; }
.rm { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rm b { display: block; }
.rm p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.rm-st { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rm-dot { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line-2); }
.rm-done .rm-dot { background: var(--green); border-color: var(--green); }
.rm-done .rm-st { color: var(--green); }
.rm-now .rm-dot { background: var(--ember); border-color: var(--ember-2); box-shadow: 0 0 12px var(--ember); }
.rm-now .rm-st { color: var(--ember-2); }
.rm-next .rm-dot { border-color: var(--gold); }
.rm-next .rm-st { color: var(--gold); }

/* support */
.channels { display: grid; gap: 14px; }
@media (min-width: 720px) { .channels { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.channel { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--text); transition: transform .25s var(--ease), border-color .2s; }
.channel:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.channel b { font-family: var(--display); font-size: 1.7rem; }
.channel span { color: var(--gold); font-weight: 700; font-size: .88rem; }
.channels .empty { grid-column: 1 / -1; }

/* utilities (no inline styles: the CSP forbids them) */
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .m-0 { margin: 0; }
.pt-0 { padding-top: 0 !important; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.text { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .embers { display: none; }
}
.rung .cls-col small { display: block; font-size: .78rem; }

/* fixes: centered section heads, unclaimed legend cards, banner background, small phones header */
.sec-head.center { display: block; text-align: center; }
.banner > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: 30% 30%; }
.banner .lede { margin-left: auto; margin-right: auto; }
.banner .crest-sm { display: block; }
.legend.unclaimed { border-style: dashed; }
.legend.unclaimed > img { filter: grayscale(1) brightness(.35); }
.legend.unclaimed h3 { color: var(--muted); font-style: italic; font-weight: 600; }
@media (max-width: 420px) {
  .brand span { font-size: 1.22rem; letter-spacing: .05em; }
  .brand img { width: 32px; height: 32px; }
  .top-in { gap: 8px; }
  .top-actions { gap: 6px; }
  .live { padding: 0 9px; }
  .top .btn-sm { padding: 0 12px; }
}
@media (min-width: 760px) { .rung .cls-col, .rung .num { display: block; } }
.phead .lede { margin-left: auto; margin-right: auto; }
.phead .profile { text-align: left; }
.acc-grid { align-items: start; }
.rung .gmark { align-self: center; }
@media (max-width: 420px) { .hero .sub { letter-spacing: .22em; font-size: .7rem; padding-left: .22em; } }
body { font-variant-numeric: lining-nums; }
.roadmap .rm { justify-content: flex-start; font-size: .92rem; }
.roadmap .rm > div { flex: 1; text-align: left; }
.roadmap .rm span:last-child { text-align: left; }
.top-sep { display: none; width: 1px; height: 26px; background: var(--line-2); margin: 0 4px; }
@media (min-width: 1080px) { .top-sep { display: block; } }
.empty p { max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
.empty .btn { margin-top: 16px; }
