@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@500;600;700&family=Instrument+Serif:ital@0;1&family=Noto+Serif+SC:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  --forest: #20251c;
  --forest-deep: #151910;
  --paper: #f4eddd;
  --paper-dark: #ebe0c9;
  --ink: #2b2b20;
  --muted: #5d594a;
  --gold: #e3b067;
  --line: #cbbda2;
  --sans: 'Instrument Sans', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', SimSun, serif;
  --latin-display: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); }
html { scroll-padding-top: 1rem; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b76522; outline-offset: 5px; }
.frame { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; padding: .5rem 1rem; top: .5rem; left: .5rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.masthead { background: var(--forest-deep); color: #fff5e3; border-bottom: 1px solid #a58a55; }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; flex-shrink: 0; }
.brand-type { font-family: var(--latin-display); font-size: 1.65rem; line-height: 1; letter-spacing: .09em; text-decoration: none; white-space: nowrap; }
.brand-type b { color: var(--gold); font-weight: 400; }
.brand-mark { position: relative; display: grid; width: 27px; height: 27px; place-items: center; transform: rotate(45deg); border: 1px solid var(--gold); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; background: var(--gold); }
.brand-mark::before { width: 15px; height: 1px; }
.brand-mark::after { width: 1px; height: 15px; }
.brand-mark span { width: 9px; height: 9px; border: 1px solid var(--gold); }
.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); font-size: .92rem; font-weight: 600; }
.masthead nav a { text-decoration: none; white-space: nowrap; }
.masthead nav a:not(.nav-download):hover, .masthead nav a[aria-current] { color: var(--gold); }
.nav-download { border: 1px solid #ab8957; padding: .48rem .95rem; }
.nav-download:hover { background: #fff3d51a; }

.hero, .download-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff6e5; background: var(--forest-deep); }
.hero-visual { position: absolute; z-index: -2; inset: 0 0 0 25%; overflow: hidden; }
.hero-visual img { position: absolute; top: 0; right: 0; height: 100%; width: 135%; max-width: none; object-fit: cover; object-position: right center; }
.hero::after, .download-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #151910 3%, #151910 23%, #151910ef 31%, #15191054 60%, #1519100f 100%), linear-gradient(0deg, #130f0c66, transparent 42%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(550px, 51vw, 710px); padding-block: 5rem; }
.hero-copy { max-width: 512px; }
.eyebrow { margin-bottom: .9rem; color: var(--gold); font: 600 .86rem/1.4 var(--sans); letter-spacing: .28em; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.075em; line-height: 1.07; text-wrap: balance; }
.hero h1 span { font: 400 .84em/1 var(--latin-display); letter-spacing: -.045em; color: var(--gold); white-space: nowrap; }
.hero-line { margin-top: 1.6rem; font: 700 clamp(1.15rem, 2.2vw, 1.55rem)/1.5 var(--serif); }
.hero-description { max-width: 390px; margin-top: .68rem; color: #f1e6d1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.55rem; margin-top: 1.85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: .68rem 1.32rem; border: 1px solid transparent; font-size: 1rem; font-weight: 700; letter-spacing: .01em; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s; }
.button-gold { background: var(--gold); color: #282016; border-color: #f6c884; }
.button-gold:hover { background: #ffd091; }
.button-dark { background: var(--forest); color: #fff1d6; border-color: var(--forest); }
.button-dark:hover { background: #35402d; }
.hero-secondary, .text-link { font-weight: 700; text-underline-offset: .28em; }
.hero-secondary:hover { color: var(--gold); }

.field-guide { border-top: 1px solid #ab8b52; padding-block: clamp(3.75rem, 8vw, 6.85rem); }
.section-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: end; padding-bottom: 2.45rem; }
.section-intro h2, .look-copy h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.055em; }
.section-intro p { max-width: 450px; color: var(--muted); }
.gameplay-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.gameplay-grid article { padding: 1.55rem clamp(1rem, 2.6vw, 2.1rem) 1.9rem; }
.gameplay-grid article:first-child { padding-left: 0; }
.gameplay-grid article + article { border-left: 1px solid var(--line); }
.feature-symbol { display: block; color: #895726; font-size: 1.4rem; line-height: 1.4; }
.gameplay-grid h3 { margin: .55rem 0 .65rem; font-size: 1.38rem; }
.gameplay-grid p { color: var(--muted); }

.look-inside { padding-block: clamp(3.4rem, 7vw, 6rem); background: var(--paper-dark); border-top: 1px solid #d5c6a9; }
.look-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.8rem, 6vw, 4.8rem); align-items: center; }
.game-image { overflow: hidden; background: var(--forest); color: #f7e9cc; border: 1px solid #8e764e; box-shadow: 0 14px 30px #3c30141a; }
.game-image img { width: 100%; height: auto; }
.game-image figcaption { padding: .52rem .8rem; font-size: .9rem; }
.ranger { width: 68px; height: 68px; margin-bottom: .85rem; object-fit: cover; object-position: center 30%; border: 1px solid #9e763e; }
.look-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
.look-copy p { margin: .85rem 0 1.25rem; color: var(--muted); }
.site-footer { padding-block: clamp(1.55rem, 4vw, 2.4rem); background: var(--forest-deep); color: #eee2cd; }
.footer-inner > a:last-child { font-weight: 700; text-underline-offset: .25em; }

.download-hero .hero-visual { inset-inline-start: 27%; }
.download-intro { padding-top: 4.2rem; padding-bottom: 5.25rem; }
.download-intro h1 { font-size: clamp(2.75rem, 7vw, 5.1rem); letter-spacing: -.065em; font-weight: 800; }
.download-intro > p:last-child { margin-top: 1rem; color: #f1e6d1; }
.download-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 5.4rem); align-items: start; padding-block: 0 clamp(3rem, 7vw, 6rem); }
.download-card { margin-top: -1.8rem; padding: clamp(1.55rem, 5vw, 2.75rem); background: #fcf6e9; border: 1px solid #c6b48f; box-shadow: 0 14px 28px #45321114; }
.platform-icon { display: grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 3px; margin-bottom: 1rem; color: #805825; }
.platform-icon i { background: currentColor; }
.download-card h2, .getting-started h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); letter-spacing: -.04em; }
.file-name { margin-top: .45rem; overflow-wrap: anywhere; color: var(--muted); }
.file-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1.35rem; padding: .8rem 0; border-block: 1px solid #e3d5b9; }
.file-meta dt { font-size: .9rem; color: var(--muted); }
.file-meta dd { font-weight: 700; }
.download-button { width: 100%; }
.checksum { margin-top: 1.1rem; color: var(--muted); font-size: .94rem; }
.checksum summary { cursor: pointer; font-weight: 700; }
.checksum code { display: block; margin-top: .5rem; padding: .62rem; background: #ede2ca; color: #342d1d; overflow-wrap: anywhere; white-space: normal; }
.copy-button { margin-top: .55rem; padding: .27rem .62rem; color: var(--ink); background: transparent; border: 1px solid #a7916b; cursor: pointer; }
.copy-status { margin-inline-start: .45rem; }
.getting-started { padding-top: 2.65rem; }
.start-steps { margin: 1.25rem 0 1.35rem; padding-left: 1.6rem; }
.start-steps li { padding-left: .4rem; margin-bottom: .95rem; }
.start-steps li::marker { color: #835927; font-weight: 700; }
.start-steps p { color: var(--muted); }
.inline-file { overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 56px); }
  .hero-visual { left: 13%; }
  .hero::after { background: linear-gradient(90deg, #151910 2%, #151910e8 24%, #15191080 57%, #15191020); }
  .hero-inner { min-height: 540px; }
}

@media (max-width: 640px) {
  .frame { width: calc(100% - 36px); }
  .masthead-inner { min-height: 65px; gap: .65rem; }
  .masthead nav { gap: .72rem; font-size: .875rem; }
  .masthead nav a[href='/#gameplay'] { display: none; }
  .brand { gap: .55rem; }
  .brand-type { font-size: 1.2rem; }
  .brand-mark { width: 20px; height: 20px; }
  .nav-download { padding: .36rem .55rem; }
  .hero-visual, .download-hero .hero-visual { inset-inline-start: 0; }
  .hero-visual img { width: 145%; object-position: 92% center; }
  .hero::after, .download-hero::after { background: linear-gradient(90deg, #151910f2, #1519107d 75%, #15191054), linear-gradient(0deg, #151910b5, transparent 80%); }
  .hero-inner { min-height: 515px; padding-block: 3.3rem; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 4.2rem); }
  .section-intro, .look-grid, .download-layout { grid-template-columns: 1fr; }
  .section-intro { gap: .85rem; padding-bottom: 1.6rem; }
  .gameplay-grid { grid-template-columns: 1fr; }
  .gameplay-grid article, .gameplay-grid article:first-child { padding: 1.3rem 0; }
  .gameplay-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .download-intro { padding-block: 3.25rem 4.3rem; }
  .download-layout { gap: 2.15rem; }
  .getting-started { padding-top: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner span { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
