/* Modular MMORPG — site stylesheet (dark fantasy: charcoal + gold) */
:root {
  --bg: #121216;
  --bg-2: #1a1a21;
  --bg-3: #23232c;
  --line: #34343f;
  --text: #e8e4da;
  --muted: #a9a496;
  --gold: #d4b26a;
  --gold-2: #f0d48a;
  --gold-dim: #8c7a4a;
  --red: #b8453f;
  --focus: #f0d48a;
  --radius: 10px;
  --max: 1120px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
}
*, *::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(--font-body);
  background-image: radial-gradient(1200px 500px at 50% -10%, rgba(212,178,106,.10), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--gold-2); }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,18,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { background: var(--bg-3); color: #fff; }
.lang { display: flex; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.lang a { padding: 6px 8px; font-size: .85rem; letter-spacing: .05em; }
.lang a[aria-current] { color: var(--gold-2); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .lang { border-left: 0; padding-left: 0; margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
}

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 40px; } .hero { padding: 72px 0 48px; } }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; margin: 0 0 .75rem; }
.tagline { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.25rem 0 0; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 8px 14px; border: 1px solid var(--gold-dim); border-radius: 8px; background: var(--bg-2); color: var(--text); text-decoration: none; line-height: 1.25; }
.badge small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.badge strong { font-size: .95rem; color: #fff; }
.badge[aria-disabled="true"] { opacity: .75; cursor: default; }
.frame { border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 6px; background: linear-gradient(160deg, rgba(212,178,106,.25), rgba(212,178,106,.05)); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.frame img { border-radius: 6px; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

/* Sections */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 24px; }
.section-head p { color: var(--muted); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.feature::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--gold); border-radius: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.gallery figure { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); }
.news { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .news { grid-template-columns: repeat(3, 1fr); } }
.news article { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.news time { display: block; color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.news p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta { background: var(--bg-2); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--gold); color: #141414; font-weight: 600; text-decoration: none; border: 1px solid var(--gold); }
.btn:hover { background: var(--gold-2); color: #000; }
.btn.ghost { background: transparent; color: var(--gold-2); }
.btn.ghost:hover { background: var(--bg-3); }

/* Documents (legal, support) */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2rem; padding-top: .4rem; }
.doc h3 { margin-top: 1.4rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1.2rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
.doc th { background: var(--bg-2); color: var(--gold-2); font-weight: 600; }
.note { background: var(--bg-2); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 1rem 0 1.4rem; }
.note.warn { border-left-color: var(--red); }
.note p:last-child { margin: 0; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.toc li { margin: 0 0 .25rem; break-inside: avoid; }
details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #fff; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 10px; color: var(--gold); font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin-bottom: 1rem; color: var(--text); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-3); padding: 1px 6px; border-radius: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #141414; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; margin-top: 24px; font-size: .92rem; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer .soon { color: var(--muted); }
.site-footer .soon small { font-size: .75rem; margin-left: 4px; }
.copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
