:root {
  color-scheme: dark;
  --ink: #161210;
  --panel: #211914;
  --line: #554131;
  --paper: #fff0da;
  --muted: #d0bcaa;
  --gold: #ffc777;
  --orange: #ffad50;
  --rust: #f4774f;
  --nav-height: 70px;
  --text: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Arial Black", "DejaVu Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 14px); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 var(--text); }
body:has(.lightbox[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffe4a4; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, ul, dl { margin: 0; }
ul { padding: 0; }
.wrap { width: min(100% - 40px, 1272px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 10; top: 10px; left: 10px; background: var(--paper); color: var(--ink); padding: 8px 14px; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #15110ff5;
  border-bottom: 1px solid #5b412f;
}
.topbar-inner {
  position: relative;
  width: min(100% - 40px, 1440px);
  min-height: var(--nav-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .24em;
  flex: none;
  font: 950 clamp(.96rem, 3.8vw, 1.17rem)/1 var(--display);
  font-style: italic;
  letter-spacing: -.06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong { color: var(--rust); font-weight: inherit; }
.top-nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.top-nav a { color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.top-nav a:hover, .footer a:hover { color: var(--gold); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  min-height: 54px;
  padding: .65em 1.3em;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #201209;
  text-decoration: none;
  font-weight: 900;
  font-size: .87rem;
  line-height: 1.2;
  letter-spacing: .07em;
  text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: #ffd28c; border-color: #ffd28c; }
.button-small { min-height: 42px; margin-left: auto; padding-inline: .95em; font-size: .72rem; white-space: nowrap; }
.button-outline { background: #19110eda; border-color: #ce9973; color: var(--paper); }
.button-outline:hover { background: #3a251a; border-color: var(--gold); }
.icon-play {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.icon-arrow {
  position: relative;
  width: 11px;
  height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  rotate: 45deg;
  flex: none;
}
.icon-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  rotate: 45deg;
}
.hero-down .icon-arrow { rotate: 180deg; }
.menu-toggle {
  display: none;
  width: 40px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #211813;
  flex: none;
}
.menu-toggle span { display: block; height: 2px; background: var(--paper); margin: 4px 0; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  background: #160f11;
  border-bottom: 1px solid #a4663c;
}
.hero-art, .hero-shade, .embers { position: absolute; inset: 0; z-index: -1; }
.hero-art { transform: translateY(var(--parallax, 0px)); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.hero-shade {
  background:
    linear-gradient(0deg, #15100fee 0%, #160e0e18 32%, transparent 73%, #190e162e),
    linear-gradient(90deg, #140e10fa 0%, #1d1115e8 15%, #2114158c 36%, #2214140d 66%, #1b10152b 100%);
}
.hero-inner { padding-block: 80px 97px; }
.eyebrow { color: var(--gold); font-size: .72rem; line-height: 1.5; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; text-shadow: 0 2px 8px #000; }
.hero .eyebrow span { display: inline-block; height: 1px; width: 20px; background: var(--orange); }
.hero h1 {
  width: fit-content;
  margin: .18em 0 .22em;
  font: 950 clamp(5rem, 10.2vw, 9.65rem)/.81 var(--display);
  letter-spacing: -.1em;
  font-style: italic;
  text-shadow: .032em .036em #291713, 0 .05em .15em #130a0be0;
}
.hero h1 span, .hero h1 strong { display: block; padding-right: .13em; }
.hero h1 strong { color: #ff8656; font-weight: inherit; }
.hero-tagline { font-size: clamp(1.28rem, 2.5vw, 2.15rem); font-weight: 750; line-height: 1.18; letter-spacing: -.035em; text-shadow: 0 2px 12px #150d0d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #906448;
  color: var(--gold);
  background: #1b130fe8;
  text-decoration: none;
}
.embers { overflow: hidden; pointer-events: none; }
.embers i {
  position: absolute;
  left: 66%;
  bottom: -5%;
  width: 3px;
  height: 3px;
  background: #ffe0a2;
  box-shadow: 0 0 9px 2px #fa7f36;
  border-radius: 50%;
  animation: ember 9s linear infinite;
}
.embers i:nth-child(2) { left: 78%; animation-delay: -2s; }
.embers i:nth-child(3) { left: 89%; animation-delay: -5s; }
.embers i:nth-child(4) { left: 43%; animation-delay: -7s; }
.embers i:nth-child(5) { left: 56%; animation-delay: -4s; animation-duration: 13s; }
.embers i:nth-child(6) { left: 97%; animation-delay: -3s; animation-duration: 11s; }
@keyframes ember {
  0% { transform: translate(0,0); opacity: 0; }
  22% { opacity: .75; }
  100% { transform: translate(-36px,-46vh); opacity: 0; }
}

.section { padding-block: clamp(64px, 8vw, 114px); border-bottom: 1px solid #463226; }
.section h2, .error-page h1 {
  font: 950 clamp(2rem, 5.3vw, 4.8rem)/.98 var(--display);
  letter-spacing: -.077em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.section h2 em { color: var(--gold); font-style: normal; }
.section-head { margin-bottom: clamp(24px, 4vw, 42px); }
.section-head p, .lead { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.enter { animation: enter .58s ease-out both; }
@keyframes enter {
  from { opacity: .7; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.game { background: radial-gradient(ellipse at 80% 40%, #402617 0%, transparent 54%), #1c1512; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 28px clamp(30px, 6vw, 88px); }
.game h2 { margin-top: 13px; }
.game h2 em { display: block; }
.features { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.features li { padding: 12px 0 12px 19px; border-bottom: 1px solid var(--line); position: relative; display: grid; gap: 0; }
.features li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; background: var(--rust); rotate: 45deg; }
.features strong { color: var(--paper); }
.features span { color: var(--muted); font-size: .91rem; }
.cover { border: 1px solid #9e633b; padding: 5px; background: #201410; box-shadow: 0 16px 46px #0006; }
.cover img { width: 100%; }
.districts { grid-column: 1 / -1; border-block: 1px solid var(--line); padding: 15px 0; display: flex; align-items: baseline; gap: 12px 27px; }
.districts h3 { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.districts ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; }
.districts li { font-size: .88rem; color: var(--muted); }
.districts small { font-size: .85em; }

.roster { background: #181413; }
.hero-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.hero-tabs button {
  min-width: 0;
  --tab-image-height: 70px;
  min-height: 117px;
  display: grid;
  grid-template-rows: var(--tab-image-height) auto;
  align-content: start;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 9px;
  font-weight: 800;
  line-height: 1.15;
  border: 1px solid var(--line);
  background: #211a17;
  transition: background .2s, border-color .2s;
}
.hero-tabs button:hover { background: #312219; border-color: var(--gold); }
.hero-tabs button[aria-selected="true"] { background: #41291c; border-color: var(--orange); color: var(--gold); box-shadow: inset 0 -3px var(--orange); }
.tab-portrait { display: grid; place-items: center; height: var(--tab-image-height); overflow: hidden; }
.tab-portrait img { height: var(--tab-image-height); width: auto; object-fit: contain; }
.hero-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 1px solid var(--line); background: #231b16; min-height: 341px; }
.hero-portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: clip;
  min-height: 280px;
  padding: 14px 18px;
  background:
    radial-gradient(ellipse at 50% 75%, #b46838a3, transparent 54%),
    repeating-linear-gradient(-38deg, transparent 0 24px, #ffd59c0b 24px 25px),
    #382319;
  border-right: 1px solid var(--line);
}
.hero-portrait img { max-height: 300px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 9px #090707aa); }
.hero-details { align-self: center; padding: clamp(21px, 4.4vw, 58px); }
.hero-details h3 { margin: 7px 0 20px; font: 900 clamp(1.65rem, 3.3vw, 3.15rem)/1 var(--display); letter-spacing: -.065em; }
.hero-details h4 { margin-bottom: 8px; font-size: .88rem; color: var(--muted); }
.skills { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.skills li { display: flex; align-items: center; gap: 8px; font-size: .88rem; line-height: 1.25; border: 1px solid var(--line); padding: 7px; background: #1b1512; }
kbd { display: inline-grid; place-items: center; min-width: 30px; min-height: 29px; padding-inline: .35rem; background: #332219; color: var(--gold); border: 1px solid #765138; border-bottom-width: 2px; font: 750 .83rem/1 ui-monospace, monospace; white-space: nowrap; }
.skills kbd { flex: none; }

.gallery { background: #1c1512; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 15px; }
.gallery-grid figure { border: 1px solid var(--line); background: #221916; min-width: 0; }
.gallery-link { display: block; position: relative; }
.gallery-link img { width: 100%; }
.gallery-link:hover img { filter: brightness(1.12); }
.gallery-grid figcaption { font-weight: 750; font-size: .9rem; padding: 7px 12px; color: var(--paper); }
.enlarge { position: absolute; bottom: 7px; right: 7px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #8d674d; background: #18110ff5; color: var(--gold); }
.lightbox { width: min(1100px, 100% - 24px); padding: 0; max-width: none; max-height: calc(100% - 24px); color: var(--paper); background: #211713; border: 1px solid #a67351; }
.lightbox::backdrop { background: #0e0908e8; }
.lightbox-inner { padding: 9px 12px; }
.lightbox-bar, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lightbox-bar { padding-bottom: 9px; }
.lightbox-bar h2 { font-size: clamp(1rem, 3vw, 1.35rem); line-height: 1.15; }
.lightbox button { border: 1px solid #916445; background: #332219; color: var(--gold); width: 44px; height: 44px; flex: none; font-size: 1.4rem; }
.lightbox button:hover { color: #1c130f; background: var(--gold); }
.lightbox-image { width: 100%; max-height: calc(100dvh - 155px); object-fit: contain; background: #110e0d; }
.lightbox-controls { padding-top: 9px; }
.lightbox-status { color: var(--muted); text-align: center; font-size: .86rem; }

.updates { background: linear-gradient(110deg, #211814, #261911); }
.updates-grid, .guide-grid, .faq-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: 25px clamp(25px, 5vw, 72px); }
.updates-grid .section-head, .guide-grid .section-head, .faq-grid .section-head { margin-bottom: 0; }
.faq-grid h2 { font-size: clamp(1.6rem, 3.2vw, 2.9rem); }
.releases { display: grid; gap: 14px; }
.release { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-left: 3px solid var(--rust); background: #191310; }
.release h3 { margin-bottom: 9px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .035em; }
.release h3 strong { color: var(--gold); }
.release ul { padding-left: 20px; color: var(--muted); }
.release li::marker { color: var(--rust); }
.guide { background: #181413; }
.guide .button { margin-top: 18px; }
.controls { border-top: 1px solid var(--line); }
.controls > div { min-height: 43px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.controls dt { font-weight: 750; }
.controls dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: flex-end; color: var(--muted); font-size: .87rem; }
.controls dd span { padding-left: 4px; }
.faq { background: #211813; }
.answers { border-top: 1px solid var(--line); }
.answers details { border-bottom: 1px solid var(--line); }
.answers summary { position: relative; cursor: pointer; list-style: none; padding: 13px 32px 13px 0; font-weight: 750; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 20px;
  width: 11px;
  height: 11px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat,
              linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat;
}
.answers details[open] summary::after { background-size: 100% 2px, 0 0; }
.answers p { padding: 0 18px 13px 0; color: var(--muted); }
.footer { padding-block: 33px; background: #110e0d; }
.footer-inner { display: flex; gap: 18px 26px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer nav a { color: var(--gold); font-size: .9rem; }
.footer p { width: 100%; color: var(--muted); font-size: .83rem; }
.error-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 22% 75%, #4b2818, transparent 65%), var(--ink); }
.error-page h1 { margin-block: 14px 24px; }

@media (min-width: 1400px) {
  .hero-inner { width: min(100% - 40px, 1536px); }
}
@media (min-width: 601px) and (max-width: 1050px) {
  .hero-art img { object-position: 46% center; }
}
@media (max-width: 1050px) {
  .top-nav { gap: 13px; flex-wrap: wrap; }
  .top-nav.has-toggle { display: none; }
  .top-nav.has-toggle.is-open {
    position: absolute;
    display: grid;
    top: 100%;
    right: 0;
    width: min(100%, 320px);
    gap: 0;
    border: 1px solid var(--line);
    background: #201713;
    box-shadow: 0 13px 30px #0009;
  }
  .top-nav a { padding: 9px 15px; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) {
  .game-grid, .updates-grid, .guide-grid, .faq-grid { grid-template-columns: 1fr; }
  .cover { width: min(100%, 470px); }
  .districts { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { min-height: 214px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-portrait img { max-height: 199px; }
  .hero-tabs button { min-height: 91px; --tab-image-height: 43px; font-size: .69rem; }
}
@media (max-width: 600px) {
  :root { --nav-height: 61px; }
  .wrap, .topbar-inner { width: calc(100% - 32px); }
  .topbar-inner { gap: 8px; }
  .button-small { padding-inline: .64em; font-size: .68rem; letter-spacing: .035em; }
  .hero { align-items: end; }
  .hero-art { bottom: 28%; }
  .hero-art img { object-position: 54% center; }
  .hero-shade {
    background: linear-gradient(0deg, #160f11 15%, #160f11 32%, #160f11e0 45%, #160f1140 66%, #1b111223 100%);
  }
  .hero-inner { padding-block: clamp(152px, 34vh, 258px) 73px; }
  .hero h1 { font-size: clamp(3.85rem, 17vw, 6.8rem); }
  .hero .eyebrow { font-size: .63rem; letter-spacing: .14em; }
  .hero-actions { display: grid; gap: 8px; margin-top: 19px; }
  .hero-actions .button { min-height: 48px; }
  .hero-tabs { gap: 4px; }
  .hero-tabs button { padding-inline: 2px; font-size: .64rem; overflow-wrap: anywhere; }
  .hero-down { width: 34px; height: 34px; bottom: 14px; }
}
@media (max-width: 360px) {
  .wrap, .topbar-inner { width: calc(100% - 24px); }
  .hero-tabs { gap: 4px; }
  .hero-tabs button { font-size: .62rem; }
  .skills { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-art { transform: none; }
  .embers { display: none; }
}
