:root {
  color-scheme: dark;
  --ink: #100f0e;
  --panel: #181512;
  --paper: #eee2c8;
  --text: #dfd3bd;
  --quiet: #b9ac99;
  --amber: #e5ae5e;
  --line: #483a2b;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); line-height: 1.62; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
p, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--paper); font-family: var(--display); line-height: 1.1; }
h2 { font-size: clamp(2.35rem, 5.1vw, 4.45rem); font-weight: 500; letter-spacing: -.044em; text-wrap: balance; }
h3 { font-size: clamp(1.24rem, 2.5vw, 1.62rem); font-weight: 500; }
h4 { font-size: 1.22rem; font-weight: 500; }
:focus-visible { outline: 2px solid #ffd589; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.section-spacing { padding-block: clamp(3.75rem, 8vw, 7.25rem); }
.skip-link { position: fixed; z-index: 9; top: .75rem; left: 1rem; padding: .55rem .9rem; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #12110f; }
.header-inner { min-height: 4.7rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 2rem; }
.wordmark { display: inline-flex; width: max-content; gap: .65rem; align-items: center; color: var(--paper); font: bold 1.29rem/1 var(--display); letter-spacing: -.035em; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid #8f6037; transform: rotate(45deg); color: var(--amber); }
.brand-mark i { width: .52rem; height: .65rem; transform: rotate(-55deg); border-radius: .62rem .1rem .62rem .62rem; background: currentColor; box-shadow: 0 0 .65rem #d2863a85; }
.header-inner nav { display: flex; gap: clamp(1rem, 3.1vw, 2.65rem); }
.header-inner nav a { color: var(--quiet); text-decoration: none; white-space: nowrap; font-size: .93rem; }
.header-inner nav a:hover { color: var(--amber); }
.header-download { justify-self: end; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 38.8rem; display: grid; align-items: center; background: #130f0d; }
.hero-art { position: absolute; z-index: -2; top: 0; bottom: 0; right: 0; width: min(55%, 70rem); height: 100%; object-fit: cover; object-position: 0% 55%; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, #140f0d 2%, #140f0d 26%, #140f0de8 40%, #130f0d7a 58%, #130f0d10 76%, #130f0d1f), linear-gradient(0deg, #130f0dc2, transparent 28%); }
.hero-inner { padding-block: 5.4rem 5.9rem; }
.hero-copy { max-width: 40rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--amber); font-size: .875rem; font-weight: 650; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; }
.cinder { width: .45rem; height: .45rem; flex: 0 0 auto; transform: rotate(45deg); background: var(--amber); box-shadow: 0 0 .7rem #e5ae5e80; }
.eyebrow-divider { height: .85rem; width: 1px; background: #9a6b43; }
.hero h1 { margin: .65rem 0 .85rem -.055em; color: #f4e6c6; font-size: clamp(5rem, 11.8vw, 10.1rem); line-height: .99; font-weight: 600; letter-spacing: -.088em; }
.hero-genre { max-width: 31rem; color: var(--paper); font: 500 clamp(1.35rem, 2.65vw, 2.05rem)/1.22 var(--display); text-wrap: balance; }
.hero-description { max-width: 29.5rem; margin-top: 1rem; color: var(--quiet); font-size: 1.04rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .59rem 1.14rem; border: 1px solid transparent; border-radius: 0; text-decoration: none; text-align: center; font-size: .94rem; font-weight: 660; line-height: 1.25; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.button-primary { background: #d49a52; border-color: #e5ae69; color: #190f07; }
.button-primary:hover { background: #f0b76c; }
.button-outline { background: #1b1511e0; border-color: #70553c; color: var(--paper); }
.button-outline:hover { background: #312319; border-color: #bc8b56; }
.actions .button { min-height: 3.2rem; }
.download-note { color: var(--quiet); font-size: .875rem; margin-top: .85rem; }

.facts { border-block: 1px solid var(--line); background: #1a1511; }
.fact-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact-list div { display: grid; align-content: start; gap: .18rem; padding: 1.25rem 1.55rem; border-left: 1px solid var(--line); }
.fact-list div:first-child { padding-left: 0; border-left: 0; }
.fact-list strong { color: var(--paper); font: 500 1.28rem/1.24 var(--display); }
.fact-list span { color: var(--quiet); font-size: .94rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-heading .eyebrow, .roadmap-layout .eyebrow, .download-section .eyebrow { margin-bottom: .75rem; }
.section-note { color: var(--quiet); font-size: .94rem; text-align: right; min-width: max-content; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.25rem; }
.gallery-main, .thumb { border: 1px solid var(--line); background: var(--panel); }
.gallery-frame { display: block; position: relative; overflow: hidden; }
.gallery-frame img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.expand { position: absolute; bottom: .8rem; right: .8rem; padding: .3rem .6rem; border: 1px solid #8b6a49; background: #14100ded; color: var(--paper); font-size: .875rem; line-height: 1.5; }
.gallery-frame:hover .expand { background: #36271c; }
.gallery figcaption { display: flex; align-items: baseline; gap: .3rem 1rem; flex-wrap: wrap; padding: .92rem 1rem; border-top: 1px solid var(--line); }
.gallery figcaption strong { color: var(--paper); }
.gallery figcaption span { color: var(--quiet); }
.thumbs { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .64rem; }
.thumb { min-width: 0; padding: 0; color: var(--quiet); text-align: left; cursor: pointer; font-size: .875rem; }
.thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.thumb span { display: block; padding: .15rem .48rem .24rem; }
.thumb:hover, .thumb[aria-pressed='true'] { color: var(--paper); border-color: #b5804d; }
.thumb[aria-pressed='true'] span { background: #2d2118; color: #f0c182; }
dialog { width: min(calc(100% - 2rem), 85rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #886644; color: var(--paper); background: var(--panel); }
dialog::backdrop { background: #080707ec; }
.lightbox-header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.lightbox-body img { width: 100%; height: auto; max-height: calc(100dvh - 6.5rem); object-fit: contain; background: #0d0c0c; }

.game-section { background: #171410; border-block: 1px solid var(--line); }
.game-heading > p { max-width: 29rem; color: var(--quiet); }
.loop { display: grid; list-style: none; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.75rem; border-block: 1px solid var(--line); }
.loop li { padding: 1.25rem 1.15rem 1.75rem; border-left: 1px solid var(--line); }
.loop li:first-child { padding-left: 0; border-left: 0; }
.phase { color: var(--amber); font-size: .875rem; font-weight: 600; }
.loop h3 { margin: .62rem 0 .55rem; }
.loop p, .hunter-list p, .timeline p, .roadmap-list p { color: var(--quiet); }
.hunters { margin-top: 3.45rem; }
.hunters-heading { align-items: baseline; margin-bottom: 1.15rem; }
.hunters-heading h3, .tech h3 { font-size: 1.7rem; }
.hunters-heading p { color: var(--quiet); }
.hunter-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; list-style: none; }
.hunter-list li { background: #1c1813; border: 1px solid var(--line); padding: 1rem .9rem; }
.hunter-list img { width: 3.3rem; height: 3.3rem; object-fit: contain; margin-bottom: .7rem; image-rendering: auto; }
.hunter-list p { margin-top: .42rem; }
.tech { display: flex; align-items: center; gap: .7rem 1.65rem; flex-wrap: wrap; margin-top: 2.55rem; }
.tech ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tech li { padding: .28rem .62rem; border: 1px solid var(--line); color: var(--quiet); font-size: .875rem; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem; list-style: none; }
.timeline li { position: relative; border-top: 1px solid var(--line); padding: 1.35rem .55rem 0 0; }
.timeline li::before { content: ''; position: absolute; top: -.19rem; left: .16rem; width: .35rem; height: .35rem; transform: rotate(45deg); background: var(--amber); }
.timeline time { color: var(--amber); font-size: .94rem; }
.timeline h3, .roadmap-list h3 { margin: .55rem 0 .45rem; }
.roadmap-section { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 6% 94%, #382218, transparent 58%), #1c1511; }
.roadmap-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2rem, 8vw, 7rem); }
.roadmap-year { margin-top: 1rem; color: var(--amber); font: 500 clamp(5.1rem, 12vw, 9.15rem)/.97 var(--display); letter-spacing: -.07em; }
.roadmap-note { margin-top: .7rem; color: var(--quiet); }
.roadmap-list { list-style: none; border-top: 1px solid var(--line); }
.roadmap-list li { border-bottom: 1px solid var(--line); padding: .8rem 0 1rem; }
.roadmap-list h3 { margin-top: 0; }

.download-section { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem 3rem; }
.download-section p:not(.eyebrow) { margin-top: .75rem; max-width: 32rem; color: var(--quiet); }
.download-actions { display: flex; flex-direction: column; align-items: start; gap: .7rem; flex-shrink: 0; }
.text-link { color: var(--amber); text-underline-offset: .23em; font-size: .94rem; }
.text-link:hover { color: var(--paper); }
.footer { background: #181410; border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3rem); }
  .hero { min-height: 35rem; }
  .hero-art { width: 62%; }
  .hero::after { background: linear-gradient(90deg, #140f0d 9%, #140f0de8 29%, #140f0d9b 53%, #130f0d0a 87%), linear-gradient(0deg, #130f0dca, transparent 33%); }
  .game-heading { align-items: start; flex-direction: column; gap: .9rem; }
  .gallery { grid-template-columns: minmax(0, 1fr) 8rem; gap: .8rem; }
  .loop, .hunter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop li:nth-child(3) { border-left: 0; padding-left: 0; }
  .loop li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; row-gap: .68rem; padding-block: .83rem .65rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; gap: .4rem .9rem; flex-wrap: wrap; padding-top: .45rem; border-top: 1px solid var(--line); }
  .header-inner nav a { font-size: .875rem; }
  .header-download { min-height: 2.35rem; }
  .hero { min-height: auto; }
  .hero-art { width: 100%; height: 22rem; right: -.5rem; object-position: 0% 63%; }
  .hero::after { background: linear-gradient(0deg, #140f0d 3%, #140f0d 27%, #140f0deb 49%, #130f0d26 83%), linear-gradient(90deg, #140f0d6b, transparent 72%); }
  .hero-inner { padding-block: 10.8rem 2.5rem; }
  .hero h1 { margin: .5rem 0 .55rem -.042em; font-size: clamp(4.3rem, 18vw, 6rem); }
  .hero-description { margin-top: .68rem; }
  .eyebrow { letter-spacing: .08em; gap: .49rem; }
  .actions { margin-top: 1.3rem; gap: .52rem; }
  .actions .button { min-height: 2.75rem; padding-inline: .78rem; }
  .fact-list { grid-template-columns: 1fr; }
  .fact-list div { grid-template-columns: 1fr; gap: .03rem; border-left: 0; padding: .72rem 0; }
  .fact-list div + div { border-top: 1px solid var(--line); }
  .section-heading { display: grid; gap: .65rem; margin-bottom: 1.12rem; }
  .section-note { text-align: left; }
  .section-note br { display: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .thumb span { padding-inline: .24rem; }
  .expand { bottom: .45rem; right: .45rem; }
  .wide-break { display: none; }
  .loop { margin-top: 1.4rem; }
  .loop li { padding: .85rem .65rem 1.1rem; }
  .hunters { margin-top: 2.1rem; }
  .hunter-list { gap: .5rem; }
  .hunter-list li { padding: .66rem; overflow-wrap: anywhere; }
  .timeline, .roadmap-layout { grid-template-columns: minmax(0, 1fr); }
  .timeline { gap: .95rem; }
  .timeline li { padding-top: .85rem; }
  .download-section { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
