:root {
  --ink: #eadfc8; --dim: #a89a80; --gold: #f0c46a; --gold-2: #ffdf8f; --bronze: #8a6a34; --bronze-dark: #4a3a22;
  --bg: #120e0b; --board: #1d1712; --board-2: #261e16; --red: #c4492f;
  --sun: #ffc247; --moon: #6fa8ff; --star: #74d96c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--gold); }
img, .px { image-rendering: pixelated; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 10; background: #120e0bee; backdrop-filter: blur(6px); border-bottom: 1px solid var(--bronze-dark); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: bold 22px Georgia, serif; color: var(--gold); }
.logo .gem { width: 26px; height: 26px; }
.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--gold); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font: bold 17px system-ui, sans-serif; color: #2a1a05 !important; text-decoration: none;
  background: linear-gradient(#ffe39a, #e9a83c 55%, #b9741f); border: 2px solid #ffefc2; border-radius: 4px; box-shadow: 0 0 0 2px #6b4410, 0 6px 18px #f0a83c55; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #6b4410, 0 10px 28px #f0a83c88; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--gold) !important; border-color: var(--bronze); box-shadow: none; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; min-height: min(760px, 92vh); display: grid; place-items: center; text-align: center; padding: 70px 0 120px;
  background: radial-gradient(ellipse 60% 45% at 50% 38%, #f0a83c33, transparent 70%), radial-gradient(ellipse 80% 40% at 50% 100%, #3a2a16, transparent), linear-gradient(#0b0a12, #1a1420 60%, #241a12); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.6; background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 20%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 40% 12%, #ffe9a8, transparent), radial-gradient(1px 1px at 85% 45%, #fff5, transparent), radial-gradient(1px 1px at 10% 60%, #fff4, transparent), radial-gradient(1.5px 1.5px at 58% 8%, #fff7, transparent); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(46px, 9vw, 104px); margin-bottom: 0.15em; color: var(--gold-2); text-shadow: 0 0 30px #f0a83c88, 0 4px 0 #6b4410, 0 8px 20px #000; }
.hero .lead { font-size: clamp(18px, 2.4vw, 23px); max-width: 720px; margin: 0 auto 28px; color: #f3e8d2; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.online { margin-top: 18px; color: var(--dim); font-size: 14px; } .online b { color: var(--star); }
.stage { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 4vw, 48px); pointer-events: none;
  background: linear-gradient(transparent, #0008); }
.stage .px { animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 6px 4px #000a); }
.stage .px:nth-child(2n) { animation-delay: -0.8s; }
.stone-glow { position: absolute; left: 50%; top: 46%; width: 260px; height: 260px; margin: -130px; border-radius: 50%; background: radial-gradient(#ffd36b55, transparent 65%); animation: pulse 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { transform: scale(1.15); opacity: 0.6; } }

/* ---- sections ---- */
section.band { padding: 80px 0; border-top: 1px solid #2a2118; }
section.band.alt { background: linear-gradient(#17120e, #120e0b); }
.center { text-align: center; } .center p.sub { max-width: 680px; margin: 0 auto 40px; color: var(--dim); font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: linear-gradient(var(--board-2), var(--board)); border: 1px solid var(--bronze-dark); box-shadow: inset 0 0 0 1px #00000060, 0 6px 20px #0006; padding: 22px; border-radius: 4px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p:last-child { margin-bottom: 0; }
.feature .icon { width: 48px; height: 48px; margin-bottom: 10px; }
.mix { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.mix .side { border: 1px solid var(--bronze-dark); border-radius: 4px; padding: 26px; background: var(--board); }
.mix .side h3 small { display: block; font: 600 13px system-ui; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.mix ul { margin: 0; padding-left: 20px; } .mix li { margin: 6px 0; }
.plus { font: bold 46px Georgia; color: var(--gold); text-align: center; }
@media (max-width: 760px) { .mix { grid-template-columns: 1fr; } }

/* classes */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 18px; }
.cls { text-align: center; position: relative; overflow: hidden; }
.cls .px { margin: 4px auto 12px; display: block; }
.cls .role { color: var(--dim); font-size: 14px; margin-bottom: 10px; }
.bars { display: grid; gap: 5px; text-align: left; font-size: 13px; }
.bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; }
.bars i { display: block; height: 7px; background: #0008; border: 1px solid var(--bronze-dark); }
.bars i b { display: block; height: 100%; background: linear-gradient(90deg, #a2341f, #e9763f); }

/* realms */
.realms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.realm { text-align: center; padding: 30px 18px 48px; clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); border: none; }
.realm .crest { font-size: 64px; line-height: 1; display: block; margin-bottom: 6px; text-shadow: 0 4px 10px #000; }
.realm.sun { background: linear-gradient(#8a5a10, #3a1a08); } .realm.moon { background: linear-gradient(#234a8c, #0e1838); } .realm.star { background: linear-gradient(#2b6b34, #0d2614); }
.realm h3 { color: #fff3d0; }
@media (max-width: 760px) { .realms { grid-template-columns: 1fr; } }

/* gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots figure { margin: 0; border: 2px solid var(--bronze); background: #000; box-shadow: 0 8px 24px #000a; }
.shots img { display: block; width: 100%; height: auto; image-rendering: auto; }
.shots figcaption { padding: 8px 12px; font-size: 14px; color: var(--dim); background: var(--board); }

/* steps + faq */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  font: bold 20px Georgia; color: #2a1a05; background: linear-gradient(#ffe39a, #d9952f); }
details { background: var(--board); border: 1px solid var(--bronze-dark); padding: 14px 18px; margin-bottom: 10px; border-radius: 4px; }
summary { cursor: pointer; font-weight: 700; color: var(--gold); }
details p { margin: 10px 0 0; }
.cta { text-align: center; padding: 90px 0; background: radial-gradient(ellipse 50% 70% at 50% 50%, #f0a83c22, transparent), #0e0b09; }
.cta h2 { font-size: clamp(30px, 5vw, 50px); }

/* footer */
footer { border-top: 1px solid var(--bronze-dark); padding: 30px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dim); margin-right: 16px; }

/* ---- wiki ---- */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 34px 0 70px; }
.wiki aside nav { position: sticky; top: 80px; display: grid; gap: 2px; background: var(--board); border: 1px solid var(--bronze-dark); padding: 12px; border-radius: 4px; }
.wiki aside strong { color: var(--gold); font-family: Georgia; margin: 6px 6px 8px; }
.wiki aside a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 3px; }
.wiki aside a:hover, .wiki aside a[aria-current] { background: var(--board-2); color: var(--gold); }
.wiki article { min-width: 0; }
.wiki article h1 { font-size: 36px; }
.wiki article h2 { font-size: 26px; margin-top: 1.6em; }
.wiki .intro { font-size: 18px; color: #f3e8d2; }
.breadcrumb { font-size: 14px; color: var(--dim); margin-bottom: 10px; } .breadcrumb a { color: var(--dim); }
@media (max-width: 820px) { .wiki { grid-template-columns: 1fr; } .wiki aside nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; background: var(--board); border: 1px solid var(--bronze-dark); font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #2f261c; vertical-align: middle; }
th { color: var(--gold); background: var(--board-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
td .px, td img.icon { vertical-align: middle; }
.scroll-x { overflow-x: auto; }
.tag { display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--bronze-dark); border-radius: 10px; font-size: 13px; color: var(--ink); background: #0004; text-decoration: none; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; }
.note { border-left: 3px solid var(--gold); background: #f0c46a12; padding: 12px 16px; margin: 16px 0; }
.icon { width: 32px; height: 32px; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wiki-cards a { text-decoration: none; color: var(--ink); }
.wiki-cards .card:hover { border-color: var(--bronze); }
.monster-head { display: flex; gap: 14px; align-items: center; }
.legal main { padding: 40px 0 70px; } .legal .fill { background: #6a2a20; color: #fff; padding: 0 4px; }
.mobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mob h3 { margin: 0; } .mob .lvl { color: var(--dim); font-size: 14px; }
.mob dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 8px; margin: 12px 0; text-align: center; }
.mob dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); grid-row: 1; } .mob dd { margin: 0; font-weight: 700; grid-row: 2; }
.mob p { font-size: 14px; margin-bottom: 8px; } .mob details { background: #0003; padding: 8px 10px; margin: 0; } .mob summary { font-size: 14px; }
:target { scroll-margin-top: 80px; } .card:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px #f0c46a44; }
@media (max-width: 520px) { .stage { transform: scale(0.7); transform-origin: 50% 100%; } }
