:root {
  color: #f9f1d8;
  background: #101a12;
  font-family: "DM Mono", monospace;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #101a12; }
a { color: inherit; }

.wiki-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 82px);
  border-bottom: 1px solid #c48a3848;
  background: #101a12f5;
}

.wiki-app { --sidebar-width: 282px; background: #111b12; }
.wiki-app > main, .wiki-app > .wiki-footer { margin-left: var(--sidebar-width); transition: margin 180ms ease; }
.wiki-sidebar { position: fixed; z-index: 1; top: 72px; bottom: 0; left: 0; width: var(--sidebar-width); overflow-y: auto; padding: 30px 20px; border-right: 1px solid #c48a3848; background: #0c160e; transition: transform 180ms ease; }
.wiki-sidebar-toggle { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-right: 18px; padding: 7px 9px; border: 1px solid #765a2c; background: #172318; color: #f5d47a; font-family: "Silkscreen", monospace; font-size: 9px; cursor: pointer; }
.wiki-sidebar-toggle:hover { border-color: #f5cc6d; background: #26371f; }
.sidebar-heading { margin-bottom: 28px; color: #f5d47a; font-family: "Silkscreen", monospace; font-size: 11px; }
.wiki-search-label { display: block; margin-bottom: 9px; color: #9eb372; font-family: "Silkscreen", monospace; font-size: 8px; }
.wiki-search { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #82652f; border-radius: 0; outline: none; background: #071008; color: #f5edd2; font: 13px "DM Mono", monospace; }
.wiki-search:focus { border-color: #9ed466; box-shadow: 0 0 0 2px #8ecb5833; }
.wiki-search::placeholder { color: #9b9c84; }
.wiki-search-results { margin-top: 9px; border: 1px solid #70552a; background: #121d13; }
.wiki-search-results a { display: block; padding: 12px; border-bottom: 1px solid #3c4b32; color: #f2e4b8; font-size: 12px; text-decoration: none; }
.wiki-search-results a:last-child { border-bottom: 0; }
.wiki-search-results a:hover { background: #293c24; }
.wiki-search-results strong, .wiki-search-results span { display: block; }
.wiki-search-results strong { margin-bottom: 5px; font-family: "Silkscreen", monospace; font-size: 9px; }
.wiki-search-results span, .wiki-search-results p { color: #c8c4aa; font-size: 11px; line-height: 1.45; }
.wiki-search-results p { margin: 0; padding: 12px; }
.wiki-tree { display: grid; gap: 4px; margin-top: 28px; }
.wiki-tree p { margin: 16px 0 5px; color: #7ea453; font-family: "Silkscreen", monospace; font-size: 8px; }
.wiki-tree a { padding: 11px 10px; border-left: 2px solid transparent; color: #d8d5bc; font-family: "Silkscreen", monospace; font-size: 9px; text-decoration: none; }
.wiki-tree a:hover { background: #1b2b19; color: #f5d47a; }
.wiki-tree a[aria-current="page"] { border-left-color: #9ed466; background: #26391f; color: #fff1b6; }
.sidebar-note { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid #35452f; color: #a6aa90; font-size: 11px; line-height: 1.65; }
.wiki-sidebar-collapsed > .wiki-sidebar { transform: translateX(-100%); }
.wiki-sidebar-collapsed > main, .wiki-sidebar-collapsed > .wiki-footer { margin-left: 0; }

.wiki-brand, .wiki-header nav, .wiki-header nav a { display: flex; align-items: center; }
.wiki-brand { gap: 11px; color: #ffe08a; font-family: "Silkscreen", monospace; font-size: 17px; text-decoration: none; }
.wiki-brand img { width: 38px; height: 38px; image-rendering: pixelated; }
.wiki-header nav { gap: clamp(14px, 3vw, 34px); color: #dfd1a9; font-size: 12px; }
.wiki-header nav a { min-height: 34px; text-decoration: none; }
.wiki-header nav a:hover { color: #ffe08a; }
.wiki-header .play-link { padding: 9px 13px; border: 2px solid #8ecb58; background: #2f7029; color: #fff5ce; font-family: "Silkscreen", monospace; font-size: 10px; }

.wiki-hero {
  position: relative;
  display: grid;
  min-height: min(670px, calc(100vh - 72px));
  place-items: center;
  overflow: hidden;
  background: #1f3523 url("/assets/lobby-forest-sunrise.jpg") center / cover no-repeat;
  text-align: center;
}
.wiki-hero::before { position: absolute; inset: 0; background: #1020199c; content: ""; }
.wiki-hero-content { position: relative; width: min(720px, calc(100% - 40px)); padding: 80px 0 94px; }
.eyebrow { margin: 0 0 15px; color: #c6db84; font-family: "Silkscreen", monospace; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Silkscreen", monospace; letter-spacing: 0; }
h1 { margin-bottom: 24px; color: #f5c95e; font-size: clamp(39px, 7vw, 76px); line-height: 1.2; text-shadow: 4px 4px 0 #372315; }
.hero-copy { max-width: 520px; margin: 0 auto 34px; color: #fff1ca; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.hero-command { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: 14px 22px; border: 3px solid #f5cc6d; background: #cb8d2c; color: #19140d; font-family: "Silkscreen", monospace; font-size: 12px; text-decoration: none; }
.hero-command:hover { background: #e1a83e; }

.wiki-section { padding: clamp(64px, 9vw, 118px) clamp(20px, 8vw, 150px); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:not(.eyebrow) { max-width: 610px; margin-bottom: 0; color: #d5d1ba; font-size: 16px; line-height: 1.75; }
h2 { margin-bottom: 22px; color: #f5d47a; font-size: clamp(25px, 3.4vw, 42px); line-height: 1.35; }
.about-section { background: #192619; }
.about-copy { max-width: 900px; color: #e8e1c8; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.9; }
.about-copy p { margin-bottom: 23px; }
.about-copy strong { color: #ffe28a; }

.explore-section { background: #26351f; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic-card { display: flex; min-height: 245px; flex-direction: column; padding: 28px 25px; border: 2px solid #86642e; background: #131a12e8; color: inherit; text-decoration: none; }
.topic-card:hover { border-color: #f5cc6d; background: #182317; transform: translateY(-2px); }
.topic-number { display: block; margin-bottom: 36px; color: #8dc95b; font-family: "Silkscreen", monospace; font-size: 12px; }
.topic-card h3 { margin-bottom: 15px; color: #f7da85; font-size: 18px; }
.topic-card p { margin: 0; color: #d7d3bd; font-size: 14px; line-height: 1.75; }
.topic-link { margin-top: auto; padding-top: 24px; color: #9ed466; font-family: "Silkscreen", monospace; font-size: 9px; }

.guide-hero { min-height: 290px; }
.guide-hero-content { max-width: 820px; padding: 56px 0 62px; }
.guide-main { max-width: none; }
.guide-main .wiki-hero { text-align: left; }
.guide-main .wiki-hero-content { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.guide-main .hero-copy { max-width: 680px; margin-left: 0; }
.guide-section { padding: clamp(48px, 6vw, 78px) max(24px, calc((100vw - var(--sidebar-width) - 920px) / 2)); border-bottom: 1px solid #3b4b34; background: #162217; }
.guide-section:nth-of-type(even) { background: #1d2c1b; }
.guide-section p, .guide-section li { max-width: 850px; color: #e8e1c8; font-size: 16px; line-height: 1.85; }
.guide-section li + li { margin-top: 10px; }
.guide-section strong { color: #ffe28a; }
.guide-section ul, .guide-section ol { padding-left: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.guide-card { padding: 22px; border: 1px solid #765a2c; background: #101910; }
.guide-card h3 { color: #f7da85; font-size: 16px; }
.guide-card p { margin-bottom: 0; font-size: 14px; }
.guide-callout { max-width: 850px; margin-top: 32px; padding: 22px 24px; border-left: 4px solid #8ecb58; background: #111b12; }
.guide-callout p { margin-bottom: 0; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.guide-nav a { padding: 11px 13px; border: 1px solid #86642e; color: #f7da85; font-family: "Silkscreen", monospace; font-size: 9px; text-decoration: none; }
.guide-nav a:hover { border-color: #f5cc6d; background: #334925; }

.objective-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr); align-items: center; gap: 35px 78px; background: #101a12; }
.objective-section h2 { margin-bottom: 0; font-size: clamp(30px, 4.5vw, 58px); }
.objective-section > p { margin: 0; color: #d9d2bb; font-size: 16px; line-height: 1.8; }
.objective-section .hero-command { grid-column: 1 / -1; justify-self: start; }

.wiki-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 5vw, 82px); border-top: 1px solid #c48a3848; background: #0a100b; color: #a7a78e; font-family: "Silkscreen", monospace; font-size: 9px; }
.wiki-footer a { color: #d4c879; text-decoration: none; }
.wiki-footer a:hover { color: #ffe08a; }

@media (max-width: 900px) {
  .wiki-app { --sidebar-width: 260px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objective-section { grid-template-columns: 1fr; gap: 14px; }
  .objective-section .hero-command { margin-top: 18px; }
}

@media (max-width: 590px) {
  .wiki-header { min-height: 62px; padding: 10px 16px; }
  .wiki-brand span { display: none; }
  .wiki-header nav { gap: 12px; font-size: 10px; }
  .wiki-header nav a:nth-child(2) { display: none; }
  .wiki-sidebar-toggle { margin-right: 10px; }
  .toggle-label { display: none; }
  .wiki-sidebar { top: 62px; width: min(300px, calc(100vw - 38px)); box-shadow: 12px 0 30px #0008; }
  .wiki-app > main, .wiki-app > .wiki-footer { margin-left: 0; }
  .wiki-sidebar-collapsed > .wiki-sidebar { transform: translateX(-100%); }
  .wiki-hero { min-height: calc(100vh - 62px); }
  .wiki-hero-content { padding: 62px 0 74px; }
  .wiki-section { padding: 62px 22px; }
  .guide-section { padding: 48px 22px; }
  .topic-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: auto; }
  .wiki-footer { align-items: flex-start; flex-direction: column; }
}
