:root {
  color-scheme: dark;
  --bg: #101018;
  --surface: #171923;
  --ink: #f6eee1;
  --muted: #c8c0b7;
  --gold: #efc489;
  --line: #5e4935;
  font-family: Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; object-fit: contain; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: Georgia, serif; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.7rem); }
p { margin: 0; }
.wrap { width: min(100% - 36px, 1140px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; left: 10px; top: -80px; padding: 8px 14px; background: var(--gold); color: #17120d; }
.skip-link:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); background: #13131c; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font: 700 1.22rem Georgia, serif; text-decoration: none; }
.site-header nav, .site-footer nav, .actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.site-header nav a, .site-footer nav a { text-decoration: none; font-size: .9rem; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--gold); }
.button { display: inline-block; padding: .62rem .9rem; border: 1px solid var(--line); border-radius: 5px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.button-primary { background: linear-gradient(135deg,#f8d69d,#c9904c); color: #23180e; border-color: #d4a96e; }
.button-outline { background: #181823e6; }
.button:hover { border-color: #f0c88e; box-shadow: 0 0 14px #d4a96e32; }
.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #101018f7 0%, #171628e8 45%, #15162470 100%), url("assets/main-bg.jpg") center 35% / cover;
}
.hero-inner { min-height: 385px; display: grid; align-items: center; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; padding-block: 45px; }
.hero-logo { justify-self: center; height: auto; width: min(100%, 280px); filter: drop-shadow(0 14px 32px #000b); }
.eyebrow { color: var(--gold); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); margin-block: 8px 14px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 44ch; color: #e0d6cb; margin-bottom: 22px; }
.section { padding-block: clamp(26px, 5vw, 58px) 0; scroll-margin-top: 12px; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.realm-grid, .competition { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.alpha { --accent: #88daca; }
.omega { --accent: #f0b379; }
.legacy { --accent: #d4b6f2; }
.realm {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  align-items: end; min-height: 218px; padding: 18px;
  border: 1px solid #483b41; border-top-color: var(--accent); border-radius: 6px;
  background: radial-gradient(ellipse at 78% 35%,#303246,var(--surface) 70%);
}
.realm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#151721f7 15%,#151721cc 57%,#15172112); }
.realm-character { position: absolute; z-index: -2; width: 66%; height: 100%; right: -3%; bottom: 0; object-position: right bottom; opacity: .86; }
.realm-logo { width: 84px; height: 44px; object-position: left center; margin-bottom: 8px; }
.realm .eyebrow { color: var(--accent); }
.realm h3 { margin-top: 4px; }
.realm-info > p:not(.eyebrow), .lineage p:not(.eyebrow), .download-panel p { color: var(--muted); margin-block: 6px 12px; }
.realm-links { display: flex; flex-wrap: wrap; gap: 5px 13px; }
.realm-links a, .lineage a { color: var(--accent, var(--gold)); font-size: .86rem; font-weight: 650; }
.lineage { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(100px, 29%); gap: 8px; padding: 17px 20px; margin-top: 12px; border: 1px solid #534963; border-radius: 6px; background: linear-gradient(105deg,#211d30,#171923 73%); }
.lineage h3 img { width: min(100%, 215px); height: auto; margin-top: 5px; }
.lineage-art { width: 100%; height: clamp(100px, 20vw, 178px); object-position: center bottom; }
.compact { display: flex; gap: 9px; align-items: center; padding: 14px; border: 1px solid #433741; border-left-color: var(--accent); background: var(--surface); border-radius: 5px; }
.compact img { flex: none; }
.compact h3 { font-size: 1.12rem; margin-bottom: 5px; }
.download-panel { padding: clamp(15px,3vw,28px); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(115deg,#221c27,#171923); }
.download-panel p { margin-bottom: 15px; }
.community { padding-bottom: 36px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 830px) {
  .realm-grid, .competition { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 26px); }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 24px 14px; }
  .hero-logo { width: 134px; justify-self: end; }
  .realm-grid, .competition { grid-template-columns: 1fr; }
  .realm { min-height: 185px; }
  .realm-character { width: 52%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid #483b41; border-radius: 5px; background: var(--surface); }
.faq summary { padding: 11px 14px; cursor: pointer; color: var(--ink); font-weight: 650; }
.faq summary:hover { color: var(--gold); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq details[open] { border-color: var(--line); }
.faq details > p { padding: 0 14px 13px; color: var(--muted); }
.faq a { color: var(--gold); }
@media (max-width: 540px) {
  .site-header nav { width: 100%; gap: 6px 10px; }
  .site-header nav a { padding-block: 7px; }
  .actions { gap: 8px; }
  .button { min-height: 42px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 16px; }
}
