:root {
  --ink: #17140f;
  --paper: #e4d0a4;
  --paper-light: #f0dfbb;
  --paper-dark: #9d8151;
  --gold: #d7a845;
  --gold-light: #f3d177;
  --red: #8f1f18;
  --night: #0d1110;
  --night-soft: #171d18;
  --line: rgba(87, 57, 24, 0.32);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(171, 130, 64, .13), transparent 24%),
    repeating-linear-gradient(0deg, rgba(56, 36, 12, .025) 0, rgba(56, 36, 12, .025) 1px, transparent 1px, transparent 4px),
    #d8c28f;
  font-family: "SimSun", "STSong", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { overflow: hidden; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  color: #efe3bf;
  background: linear-gradient(180deg, rgba(10,13,11,.97), rgba(15,19,16,.9));
  border-bottom: 1px solid rgba(222, 174, 73, .38);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; line-height: 1.1; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #1b1209; font-weight: 900; font-size: 22px;
  background: linear-gradient(145deg, var(--gold-light), #9e6820);
  border: 1px solid #f0d98f; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: inset 0 0 0 3px rgba(49,28,7,.28), 0 0 18px rgba(214,166,65,.18);
}
.brand > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.brand strong { font-size: 21px; letter-spacing: .12em; color: #f3d98f; }
.brand small { font-size: 10px; letter-spacing: .18em; color: #a99b7c; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { position: relative; font-size: 14px; letter-spacing: .08em; color: #cbbf9f; transition: color .2s ease; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .2s ease; }
.topbar nav a:hover { color: #fff0bd; }
.topbar nav a:hover::after { right: 0; }
.license-mini { padding: 5px 10px; border: 1px solid #9f772a; color: #efcc76; font-size: 12px; letter-spacing: .12em; background: rgba(139,91,22,.15); }

.hero { position: relative; min-height: 830px; display: flex; align-items: center; color: white; background: #0b0e0d; }
.hero-image { position: absolute; inset: 0; background: url('assets/hero.png') center/cover no-repeat; filter: saturate(.9) brightness(.84) contrast(1.04); transform: scale(1.01); image-rendering: auto; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,7,.88) 0%, rgba(8,10,9,.70) 39%, rgba(9,11,9,.12) 69%, rgba(7,9,8,.25) 100%), linear-gradient(0deg, rgba(14,18,15,.94) 0%, transparent 23%, rgba(0,0,0,.12) 100%); }
.hero-copy { position: relative; z-index: 2; width: min(700px, calc(100% - 48px)); margin: 70px auto 0; transform: translateX(calc((700px - min(700px, calc(100vw - 48px))) / -2)); }
@media (min-width: 1180px) { .hero-copy { width: var(--max); transform: none; } .hero-copy > * { max-width: 650px; } }
.eyebrow { margin: 0 0 20px; color: #c8a65b; font: 600 12px/1.4 Georgia, serif; letter-spacing: .3em; }
.hero-title-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero h1 { margin: 0; color: #f6e6b8; font-size: clamp(58px, 8.6vw, 108px); line-height: .98; letter-spacing: .11em; text-shadow: 0 5px 1px #351e0b, 0 0 28px rgba(224,178,78,.2); }
.license-badge { padding: 6px 13px 5px; border: 1px solid #d2a449; box-shadow: inset 0 0 0 2px rgba(209,163,72,.18); color: #f5d988; font-size: 13px; letter-spacing: .15em; background: rgba(35,24,10,.62); }
.hero-slogan { margin: 24px 0 9px; color: #e4ba5e; font-size: clamp(23px, 3vw, 38px); letter-spacing: .32em; font-weight: 700; }
.hero-desc { margin: 0; max-width: 620px; color: #d2c8ad; font-size: 17px; line-height: 2; text-shadow: 0 1px 4px #000; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; font-weight: 700; letter-spacing: .12em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #1a1208; background: linear-gradient(135deg, #f0ce77, #b57b25); border-color: #f4dc98; box-shadow: 0 8px 24px rgba(169,108,21,.25); }
.button.ghost { color: #e9d9af; border-color: rgba(232,201,124,.55); background: rgba(21,21,17,.46); }
.button.download { color: #f6df9d; border-color: #9c3b2e; background: linear-gradient(135deg, rgba(126,31,24,.92), rgba(68,18,14,.92)); box-shadow: inset 0 0 0 1px rgba(243,201,111,.14); }
.button.download:hover { border-color: #d36f51; background: linear-gradient(135deg, #9d3025, #611b15); }
.scroll-note { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); color: #9f9479; font-size: 11px; letter-spacing: .23em; writing-mode: horizontal-tb; }
.scroll-note::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto -36px; background: linear-gradient(#b59550, transparent); }

.quick-facts { position: relative; z-index: 5; max-width: var(--max); margin: -28px auto 0; display: grid; grid-template-columns: repeat(4,1fr); color: #e6d6ac; background: linear-gradient(135deg, #171b17, #0c100e); border: 1px solid #6f562b; box-shadow: 0 18px 38px rgba(41,28,12,.25); }
.quick-facts div { padding: 19px 25px; border-right: 1px solid rgba(215,168,69,.2); }
.quick-facts div:last-child { border-right: 0; }
.quick-facts small, .quick-facts strong { display: block; }
.quick-facts small { margin-bottom: 4px; color: #887f6a; font-size: 11px; letter-spacing: .16em; }
.quick-facts strong { color: #e8ce88; font-size: 15px; }
.qq-ribbon { max-width: 760px; margin: 30px auto 0; padding: 12px 24px; display: flex; align-items: center; justify-content: center; gap: 16px; color: #75603a; border: 1px solid rgba(128,91,37,.42); background: rgba(239,218,175,.55); box-shadow: inset 0 0 0 3px rgba(255,245,216,.22); }
.qq-ribbon span { color: #7c241d; font-weight: 700; letter-spacing: .08em; }
.qq-ribbon strong { color: #272015; font: 700 20px/1.2 Georgia, serif; letter-spacing: .06em; user-select: all; }
.qq-ribbon small { color: #88724b; }
.free-tools { max-width: var(--max); margin: 22px auto 0; display: grid; grid-template-columns: 1.1fr repeat(3,1fr); color: #e7d8ae; border: 1px solid #66502b; background: linear-gradient(135deg, #171b17, #0d110e); box-shadow: 0 14px 34px rgba(70,47,18,.14); }
.free-tools > div { min-height: 82px; padding: 14px 20px; display: grid; grid-template-columns: 38px 1fr; align-content: center; column-gap: 12px; border-right: 1px solid rgba(215,168,69,.18); }
.free-tools > div:last-child { border-right: 0; }
.free-tools span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; align-self: center; color: #1a1208; background: linear-gradient(135deg, #efd17c, #a97527); font-weight: 700; }
.free-tools strong, .free-tools small { display: block; }
.free-tools strong { color: #ead08c; font-size: 15px; }
.free-tools small { color: #807865; font-size: 11px; }
.free-tools-title { grid-template-columns: 1fr !important; padding-left: 27px !important; background: rgba(145,31,23,.15); }
.free-tools-title small { color: #a99772; letter-spacing: .2em; }
.free-tools-title strong { font-size: 19px; letter-spacing: .1em; }

.section { position: relative; padding: 116px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { margin: 8px 0 11px; font-size: clamp(34px, 4vw, 54px); line-height: 1.25; letter-spacing: .06em; }
.section-heading p { margin: 0; color: #67563b; }
.section-heading.centered { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.split-heading > p { max-width: 470px; padding-bottom: 8px; }
.chapter { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .24em; }
.chapter::before, .chapter::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

.gm-section { background: linear-gradient(rgba(225,205,161,.84), rgba(225,205,161,.84)), repeating-linear-gradient(90deg, transparent 0 31px, rgba(95,63,22,.05) 31px 32px); }
.letter-card { position: relative; max-width: 930px; margin: 0 auto; padding: 62px 84px; color: #332614; background: linear-gradient(135deg, rgba(248,231,194,.98), rgba(209,180,124,.96)); border: 1px solid #9c7437; box-shadow: inset 0 0 0 7px rgba(99,65,25,.08), 0 24px 60px rgba(76,50,18,.18); }
.letter-card::before, .letter-card::after { content: ""; position: absolute; width: 44px; height: 44px; border: solid #916c35; }
.letter-card::before { left: 18px; top: 18px; border-width: 1px 0 0 1px; }
.letter-card::after { right: 18px; bottom: 18px; border-width: 0 1px 1px 0; }
.letter-card p { margin: 0 0 22px; font-size: 18px; line-height: 2.05; }
.wax-seal { position: absolute; right: 45px; top: -33px; width: 68px; height: 68px; display: grid; place-items: center; color: #d8aa69; background: radial-gradient(circle at 40% 35%, #b83e2d, #6e1712 69%); border: 4px double #65120f; border-radius: 50%; font: 700 14px Georgia, serif; box-shadow: 0 6px 13px rgba(59,20,13,.35); transform: rotate(8deg); }
.ink-gold { color: #946416; font-weight: 700; }
.ink-red { color: #b11b14; font-size: 1.22em; }
.ink-green { color: #2d6840; font-weight: 700; }
.ink-blue { color: #235f73; font-weight: 700; }
.letter-oath { text-align: center; color: #7f1b16; font-size: 22px !important; letter-spacing: .08em; }
.signature { margin-bottom: 0 !important; text-align: right; color: #624926; font-weight: 700; }

.why-section { background: #d5bc85; }
.why-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 20% 40%, #fff3c9, transparent 32%), linear-gradient(120deg, transparent 45%, rgba(63,40,11,.18) 45.2%, transparent 45.4%); pointer-events: none; }
.feature-grid { position: relative; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #987243; }
.feature-card { min-height: 240px; padding: 34px 32px; background: rgba(231,207,158,.55); border-right: 1px solid #a98755; border-bottom: 1px solid #a98755; }
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:nth-child(n+4) { border-bottom: 0; }
.feature-card > span { color: #a57a32; font: italic 24px/1 Georgia, serif; }
.feature-card h3 { margin: 23px 0 10px; font-size: 23px; }
.feature-card p { margin: 0; color: #604e32; }

.newcomer-section { color: #ece1bf; background: radial-gradient(circle at 50% 0, rgba(116,79,30,.3), transparent 33%), linear-gradient(135deg, #161b17, #0a0e0c); }
.light-heading h2 { color: #f0dca6; }
.light-heading p { color: #a9a087; }
.newcomer-section .chapter { color: #d7a845; }
.journey { max-width: 980px; margin: 0 auto; }
.journey-step { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 26px; padding: 0 0 38px; }
.journey-step:not(:last-child)::before { content: ""; position: absolute; left: 37px; top: 62px; bottom: 1px; width: 1px; background: linear-gradient(#8c6a2e, #332b1e); }
.step-no { width: 76px; height: 58px; display: grid; place-items: center; color: #e8c66b; border: 1px solid #6e552a; background: #101410; font: 700 20px/1 Georgia, serif; box-shadow: inset 0 0 0 4px #171d17; }
.journey-step small { color: #8d846e; letter-spacing: .12em; }
.journey-step h3 { margin: 2px 0 6px; color: #efd690; font-size: 26px; }
.journey-step p { margin: 0; color: #bcb39d; }
.newcomer-tip { max-width: 980px; margin: 15px auto 0; padding: 24px 28px; display: grid; grid-template-columns: 130px 1fr; gap: 24px; border: 1px solid #5f4a27; background: rgba(184,135,51,.08); }
.newcomer-tip strong { color: #edc86a; letter-spacing: .12em; }
.newcomer-tip p { margin: 0; color: #aaa18a; }

.guide-section { background: #e1cca0; }
.guide-list { border-top: 1px solid #8d6a38; }
.guide-entry { border-bottom: 1px solid #987748; background: rgba(238,217,174,.28); }
.guide-entry summary { list-style: none; cursor: pointer; min-height: 96px; display: grid; grid-template-columns: 72px 1fr 48px; align-items: center; gap: 20px; padding: 16px 25px; transition: background .2s ease; }
.guide-entry summary::-webkit-details-marker { display: none; }
.guide-entry summary:hover { background: rgba(255,239,202,.35); }
.guide-number { color: #8e6729; font-size: 28px; text-align: center; }
.guide-summary { display: flex; flex-direction: column; }
.guide-summary strong { font-size: 23px; letter-spacing: .08em; }
.guide-summary small { color: #6e5a3b; font-size: 14px; }
.plus { font: 300 32px/1 Arial, sans-serif; text-align: center; transition: transform .2s ease; }
.guide-entry[open] .plus { transform: rotate(45deg); }
.guide-content { padding: 0 36px 30px 116px; }
.guide-content ul { margin: 0; padding: 22px 28px 19px 47px; border-left: 3px solid #a67934; background: rgba(246,228,188,.48); }
.guide-content li { margin-bottom: 9px; color: #4e3e27; }

.boss-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; color: #e8ddbd; background: linear-gradient(90deg, rgba(10,13,11,.84), rgba(14,18,15,.55)), url('assets/boss.png') center/cover no-repeat; }
.boss-copy h2 { margin: 13px 0 18px; max-width: 720px; color: #f0d99b; font-size: clamp(36px, 4vw, 52px); line-height: 1.28; }
.boss-copy p { color: #b5ad96; }
.boss-copy .chapter { color: #d7a845; }
.boss-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.boss-tags span { padding: 5px 10px; color: #d5c39c; border: 1px solid #514328; background: rgba(21,23,19,.72); font-size: 12px; }
.boss-ledger { padding: 35px; border: 1px solid #735b2e; background: rgba(11,14,12,.86); box-shadow: inset 0 0 0 5px rgba(149,111,46,.08); }
.boss-ledger h3 { margin: 0 0 22px; color: #e8c96f; font-size: 25px; }
.boss-ledger dl { margin: 0; }
.boss-ledger dl div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dotted #4e452f; }
.boss-ledger dt { color: #a8a08b; }
.boss-ledger dd { margin: 0; color: #f0d285; font-weight: 700; }
.boss-ledger p { margin: 20px 0 0; color: #8f8877; font-size: 13px; }

.routes-section { background: linear-gradient(rgba(216,193,143,.93), rgba(216,193,143,.93)), repeating-linear-gradient(0deg, transparent 0 28px, rgba(89,57,17,.07) 28px 29px); }
.route-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: start; }
.paper-card { padding: 35px; background: rgba(242,221,180,.7); border: 1px solid #99703a; box-shadow: 7px 8px 0 rgba(93,62,25,.08); }
.paper-title { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 17px; border-bottom: 1px solid #aa8751; }
.paper-title > span { width: 48px; height: 48px; display: grid; place-items: center; color: #f1d398; background: #781c18; border-radius: 50%; font-size: 13px; }
.paper-title h3 { margin: 0; font-size: 25px; }
.sanctuary-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #a88a5b; border-left: 1px solid #a88a5b; }
.sanctuary-grid > div { padding: 14px 8px; text-align: center; border-right: 1px solid #a88a5b; border-bottom: 1px solid #a88a5b; }
.sanctuary-grid strong, .sanctuary-grid span, .sanctuary-grid em { display: block; }
.sanctuary-grid strong { color: #8e241d; font-size: 22px; }
.sanctuary-grid span { font-size: 13px; }
.sanctuary-grid em { color: #826a45; font-size: 12px; font-style: normal; }
.paper-note { margin: 18px 0 0; color: #765d37; font-size: 13px; }
.maze-list > div { padding: 12px 0; display: grid; grid-template-columns: 160px 1fr; gap: 18px; border-bottom: 1px dotted #ad8b58; }
.maze-list > div:last-child { border-bottom: 0; }
.maze-list strong { color: #74241e; }
.maze-list p { margin: 0; color: #5e4b2f; }

.closing-section { padding-top: 100px; padding-bottom: 100px; text-align: center; color: #ece0bd; background: radial-gradient(circle at 50% 0, #3a2a13, transparent 45%), #0e120f; }
.closing-inner { max-width: 780px; margin: 0 auto; }
.closing-inner .chapter { color: #d7a845; }
.closing-inner h2 { margin: 17px 0 18px; color: #f1daa0; font-size: clamp(35px, 5vw, 55px); line-height: 1.35; }
.closing-inner p { margin: 0 auto 32px; color: #aaa18b; }

footer { min-height: 185px; padding: 40px max(24px, calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #837b68; background: #090c0a; border-top: 1px solid #423720; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #dabc70; font-size: 23px; letter-spacing: .12em; }
.footer-brand span { padding: 2px 7px; color: #a98438; border: 1px solid #68512a; font-size: 10px; }
footer p { margin: 5px 0; color: #8d846f; }
footer small { color: #575349; }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .hero { min-height: 760px; }
  .hero-copy { transform: none; }
  .quick-facts { margin-left: 20px; margin-right: 20px; grid-template-columns: repeat(2,1fr); }
  .quick-facts div:nth-child(2) { border-right: 0; }
  .quick-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(215,168,69,.2); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-card:nth-child(3n) { border-right: 1px solid #a98755; }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-child(n+4) { border-bottom: 1px solid #a98755; }
  .feature-card:nth-child(n+5) { border-bottom: 0; }
  .boss-section, .route-layout { grid-template-columns: 1fr; }
  .free-tools { margin-left: 20px; margin-right: 20px; grid-template-columns: repeat(2,1fr); }
  .free-tools > div:nth-child(2) { border-right: 0; }
  .free-tools > div:nth-child(-n+2) { border-bottom: 1px solid rgba(215,168,69,.18); }
  .boss-section { gap: 40px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .topbar { height: 62px; padding: 0 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .brand strong { font-size: 17px; }
  .brand small, .license-mini { display: none; }
  .hero { min-height: 700px; }
  .hero-image { background-position: 58% center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(7,9,8,.94), rgba(7,9,8,.55)), linear-gradient(0deg, #0e120f, transparent 35%); }
  .hero-copy { width: calc(100% - 36px); margin-top: 40px; }
  .hero-title-row { gap: 13px; }
  .hero h1 { font-size: clamp(50px, 17vw, 76px); }
  .hero-slogan { font-size: 21px; letter-spacing: .18em; }
  .hero-desc { font-size: 15px; line-height: 1.8; }
  .scroll-note { display: none; }
  .quick-facts { grid-template-columns: 1fr; margin-top: -18px; }
  .quick-facts div { border-right: 0; border-bottom: 1px solid rgba(215,168,69,.2); }
  .quick-facts div:last-child { border-bottom: 0; }
  .qq-ribbon { margin-left: 20px; margin-right: 20px; flex-wrap: wrap; gap: 6px 13px; text-align: center; }
  .qq-ribbon small { width: 100%; }
  .free-tools { grid-template-columns: 1fr; }
  .free-tools > div { border-right: 0; border-bottom: 1px solid rgba(215,168,69,.18); }
  .free-tools > div:last-child { border-bottom: 0; }
  .section { padding: 80px 20px; }
  .section-heading { margin-bottom: 34px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 14px; }
  .letter-card { padding: 48px 28px 35px; }
  .letter-card p { font-size: 16px; }
  .wax-seal { right: 25px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(n) { border-right: 0; border-bottom: 1px solid #a98755; min-height: auto; }
  .feature-card:last-child { border-bottom: 0; }
  .journey-step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-no { width: 54px; height: 46px; font-size: 17px; }
  .journey-step:not(:last-child)::before { left: 27px; top: 49px; }
  .newcomer-tip { grid-template-columns: 1fr; gap: 8px; }
  .guide-entry summary { grid-template-columns: 46px 1fr 24px; gap: 10px; padding: 14px 10px; }
  .guide-number { font-size: 22px; }
  .guide-summary strong { font-size: 19px; }
  .guide-summary small { line-height: 1.55; }
  .guide-content { padding: 0 8px 22px 56px; }
  .guide-content ul { padding: 18px 16px 15px 32px; }
  .boss-ledger, .paper-card { padding: 25px 20px; }
  .sanctuary-grid { grid-template-columns: repeat(2,1fr); }
  .maze-list > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
