:root {
  --ink: #17120d;
  --ink-soft: #2a2118;
  --lacquer: #7c251d;
  --lacquer-dark: #4f1713;
  --paper: #e4d1a8;
  --paper-light: #f0e1bf;
  --paper-deep: #c7ad7b;
  --bronze: #99703c;
  --bronze-light: #c49a5a;
  --jade: #426052;
  --muted: #75644c;
  --line: rgba(75, 48, 23, .32);
  --max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(38,22,10,.045) 4px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(245,225,184,.02) 12px);
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }

/* Common navigation */
.site-nav {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
  padding: 0 26px;
  color: #ead9b7;
  background: rgba(24, 16, 11, .92);
  border-bottom: 1px solid rgba(196,154,90,.32);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; font: 800 20px "STKaiti","KaiTi",serif; letter-spacing: .16em; }
.brand-seal { width: 37px; height: 37px; display: grid; place-items: center; color: #f2dfb9; background: var(--lacquer); border: 1px solid #bd8a4d; font: 800 20px "KaiTi",serif; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px rgba(238,213,167,.1); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(24px,3vw,48px); }
.nav-links a { position: relative; padding: 27px 0 25px; color: #aa9b82; font-size: 12px; letter-spacing: .14em; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 17px; width: 5px; height: 5px; background: var(--lacquer); transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .2s ease; }
.nav-links a:hover, .nav-links a.active { color: #f0dcb5; }
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-text { color: #a79982; font-size: 11px; letter-spacing: .1em; }
.nav-text:hover { color: #efd9b1; }
.nav-button, .btn-red, .btn-ink, .form-submit, .account-action, .pay-submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid #b8864b;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .12em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-button, .btn-red, .form-submit, .account-action.primary, .pay-submit { color: #f5e4c3; background: linear-gradient(135deg,#8c2c22,#681c17); }
.nav-button:hover, .btn-red:hover, .form-submit:hover, .account-action.primary:hover, .pay-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,23,19,.25); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(196,154,90,.38); color: #ead6af; background: transparent; font-size: 20px; cursor: pointer; }

/* Home: painted scroll hero */
.painted-hero {
  position: relative;
  min-height: 860px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #f0dfbe;
  background: #1c130d url("bg.jpg") 55% center / cover no-repeat;
}
.painted-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,15,10,.98) 0, rgba(32,20,12,.79) 30%, rgba(41,23,12,.03) 60%, rgba(26,15,10,.25) 100%),
    linear-gradient(0deg, #17120d 0, transparent 25%, rgba(25,15,10,.3) 100%);
}
.painted-hero::after { content: ""; position: absolute; z-index: -1; left: 0; top: 72px; bottom: 0; width: 46%; background: repeating-linear-gradient(90deg,transparent 0 108px,rgba(210,174,110,.08) 109px); mask-image: linear-gradient(90deg,#000,transparent); }
.hero-inscription { position: absolute; top: 112px; right: 28px; color: rgba(242,221,181,.72); font: 13px/1.5 "KaiTi",serif; letter-spacing: .3em; writing-mode: vertical-rl; }
.hero-content { width: min(calc(100% - 72px),var(--max)); height: 100%; min-height: 860px; margin: 0 auto; padding-top: 120px; display: flex; align-items: center; }
.hero-copy { width: 47%; padding-bottom: 90px; }
.hero-era, .kicker { display: flex; align-items: center; gap: 11px; color: var(--bronze-light); font-size: 10px; font-weight: 800; letter-spacing: .28em; }
.hero-era::before, .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-copy h1 { margin: 23px 0 18px; font: 900 clamp(70px,8.4vw,126px)/.83 "STKaiti","KaiTi",serif; letter-spacing: -.03em; text-shadow: 0 8px 32px rgba(0,0,0,.72); }
.hero-copy h1 span { display: block; }.hero-copy h1 em { margin-left: .55em; color: #cf4938; font-style: normal; }
.hero-slogan { margin: 0 0 17px; color: #e8c98f; font: 700 clamp(20px,2vw,28px) "KaiTi",serif; letter-spacing: .2em; }
.hero-description { max-width: 480px; margin: 0; padding-left: 16px; border-left: 2px solid #ad7d43; color: #c8baa2; font-size: 13px; line-height: 1.95; }
.hero-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-buttons a { min-height: 52px; }
.btn-ink { color: #ead8b5; background: rgba(25,16,11,.62); border-color: rgba(224,197,149,.38); }
.btn-ink:hover { background: rgba(56,34,19,.78); transform: translateY(-2px); }
.war-report {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 72px),var(--max));
  display: grid;
  grid-template-columns: 180px repeat(3,1fr);
  color: #2a1d12;
  background: linear-gradient(90deg,#cfb27c,#ebd8ae 45%,#c5a66e);
  border-top: 4px solid #7b261e;
  transform: translateX(-50%);
  box-shadow: 0 -14px 40px rgba(26,14,7,.24);
}
.report-title { padding: 22px; display: grid; place-items: center; color: #f1ddba; background: #74231c; font: 800 20px "KaiTi",serif; letter-spacing: .12em; }
.report-item { padding: 20px 24px; border-right: 1px solid rgba(77,47,20,.24); }
.report-item:last-child { border-right: 0; }
.report-item b { display: block; margin-bottom: 6px; color: #6d241d; font: 800 17px "KaiTi",serif; letter-spacing: .08em; }
.report-item span { color: #6b5941; font-size: 10px; }

/* Home chapters */
.paper-chapter { position: relative; padding: 125px 0; color: #23180f; background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(84,51,22,.025) 5px),#dfcca2; }
.paper-chapter::before, .paper-chapter::after { content: ""; position: absolute; left: 0; right: 0; height: 15px; background: repeating-linear-gradient(90deg,#73502b 0 42px,#947044 42px 45px); opacity: .46; }
.paper-chapter::before { top: 0; }.paper-chapter::after { bottom: 0; }
.chapter-shell { width: min(calc(100% - 56px),var(--max)); margin: 0 auto; display: grid; grid-template-columns: 165px 1fr; gap: 64px; }
.chapter-label { display: flex; align-items: flex-start; justify-content: center; border-right: 1px solid rgba(87,56,27,.3); }
.chapter-label-inner { position: sticky; top: 120px; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; }
.chapter-label strong { color: var(--lacquer); font: 900 42px "KaiTi",serif; letter-spacing: .1em; }
.chapter-label span { color: #7e684a; font-size: 10px; letter-spacing: .26em; }
.chapter-intro { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 46px; margin-bottom: 58px; }
.chapter-intro h2 { margin: 13px 0 0; font: 900 clamp(46px,5.5vw,74px)/1.06 "KaiTi",serif; }
.chapter-intro p { margin: 0; color: #6e5e48; font-size: 13px; line-height: 1.95; }
.strategy-list { border-top: 1px solid #72502c; }
.strategy-row { position: relative; display: grid; grid-template-columns: 70px 100px 1fr; align-items: center; gap: 28px; min-height: 175px; border-bottom: 1px solid rgba(80,52,25,.35); overflow: hidden; }
.strategy-row small { color: var(--lacquer); font: italic 12px Georgia,serif; }
.strategy-glyph { color: rgba(124,37,29,.86); font: 900 62px "KaiTi",serif; }
.strategy-text h3 { margin: 0 0 9px; font: 800 27px "KaiTi",serif; letter-spacing: .08em; }
.strategy-text p { max-width: 670px; margin: 0; color: #6e5e48; font-size: 12px; line-height: 1.8; }
.strategy-row::after { content: attr(data-ghost); position: absolute; right: 2%; bottom: -50px; color: rgba(104,70,32,.045); font: 900 170px "KaiTi",serif; }

.soul-scroll { position: relative; min-height: 790px; overflow: hidden; color: #ead9b7; background: radial-gradient(circle at 65% 45%,#563023 0,#271911 42%,#17110d 74%); }
.soul-scroll::before { content: "魂"; position: absolute; left: 2%; top: -120px; color: rgba(204,160,91,.045); font: 900 600px "KaiTi",serif; }
.soul-shell { position: relative; width: min(calc(100% - 56px),var(--max)); min-height: 790px; margin: 0 auto; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; }
.soul-copy { position: relative; z-index: 4; max-width: 540px; }
.soul-copy h2 { margin: 18px 0 18px; font: 900 clamp(52px,6.4vw,86px)/.98 "KaiTi",serif; }
.soul-copy h2 em { color: #cf4938; font-style: normal; }
.soul-copy > p { color: #bbaa8e; font-size: 13px; line-height: 2; }
.soul-notes { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.soul-note { padding: 15px 17px; border-left: 2px solid #a8763d; background: rgba(236,214,174,.035); }
.soul-note b { display: block; margin-bottom: 4px; color: #e5c58d; font: 700 16px "KaiTi",serif; }.soul-note span { color: #8f816d; font-size: 10px; }
.soul-art { position: relative; align-self: end; height: 720px; }
.soul-art::before { content: ""; position: absolute; left: 50%; top: 47%; width: 440px; height: 440px; border: 1px solid rgba(190,143,75,.35); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: inset 0 0 0 15px rgba(190,143,75,.025); }
.soul-art img { position: absolute; z-index: 2; left: 50%; bottom: -32px; height: 700px; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 28px 25px rgba(0,0,0,.48)); }
.weapon-tag { position: absolute; z-index: 3; padding: 9px 13px; color: #ead4aa; border: 1px solid #a7783f; background: #74231c; font: 700 13px "KaiTi",serif; transform: rotate(-3deg); }
.weapon-tag.t1 { left: 5%; top: 25%; }.weapon-tag.t2 { right: 5%; top: 42%; }.weapon-tag.t3 { left: 13%; bottom: 18%; }

.roster-scroll { padding: 120px 0 140px; color: #24190f; background: #d2bb8c; }
.roster-head { width: min(calc(100% - 56px),var(--max)); margin: 0 auto 54px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.roster-head h2 { margin: 12px 0 0; font: 900 clamp(48px,6vw,78px) "KaiTi",serif; }
.roster-head p { max-width: 460px; margin: 0; color: #695943; font-size: 13px; line-height: 1.9; }
.portrait-stage { width: min(calc(100% - 56px),var(--max)); min-height: 590px; margin: 0 auto; display: grid; grid-template-columns: repeat(12,1fr); align-items: end; }
.portrait { position: relative; height: 520px; overflow: hidden; border: 1px solid #72502c; background: linear-gradient(#493422,#1d140e); box-shadow: 0 24px 42px rgba(61,36,15,.26); transition: transform .3s ease; }
.portrait:nth-child(1) { grid-column: 1/6; transform: rotate(-2deg); }.portrait:nth-child(2) { z-index: 2; grid-column: 5/9; height: 580px; transform: translateY(18px); }.portrait:nth-child(3) { grid-column: 8/13; transform: rotate(2deg); }
.portrait:hover { z-index: 5; transform: translateY(-8px) rotate(0); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(24,14,8,.98),transparent 58%); }
.portrait img { position: absolute; left: 50%; bottom: 0; height: 94%; width: auto; max-width: none; transform: translateX(-50%); }
.portrait-info { position: absolute; z-index: 3; left: 25px; right: 25px; bottom: 23px; color: #eeddb9; }
.portrait-info small { color: #bf9456; font-size: 9px; letter-spacing: .16em; }.portrait-info h3 { margin: 6px 0 7px; font: 800 28px "KaiTi",serif; letter-spacing: .1em; }.portrait-info p { margin: 0; color: #988a74; font-size: 10px; }
.portrait-seal { position: absolute; z-index: 3; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; color: #f0dcba; background: #84281f; border: 1px solid #bd8c4d; font: 800 18px "KaiTi",serif; transform: rotate(4deg); }

.arena-scroll { position: relative; min-height: 680px; display: grid; place-items: center; padding: 100px 24px; overflow: hidden; color: #eeddbb; text-align: center; background: #24170f url("74d2c7ce-971f-4d71-bc3b-abc6d0c69b75.83779.jpg") center 43% / cover no-repeat; }
.arena-scroll::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(28,17,10,.94),rgba(65,36,18,.45),rgba(28,17,10,.94)),linear-gradient(0deg,#17120d,transparent 52%,#17120d); }
.arena-copy { position: relative; z-index: 2; max-width: 770px; }
.arena-copy .kicker { justify-content: center; }.arena-copy .kicker::before { display: none; }
.arena-copy h2 { margin: 20px 0 14px; font: 900 clamp(55px,7vw,94px)/1 "KaiTi",serif; text-shadow: 0 8px 28px #000; }.arena-copy h2 em { color: #d04b39; font-style: normal; }
.arena-copy p { margin: 0 auto 25px; color: #c0b198; font-size: 13px; line-height: 1.95; }
.arena-rules { margin-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }.arena-rules span { padding: 8px 13px; color: #e0c597; border: 1px solid rgba(190,143,75,.48); background: rgba(37,22,13,.7); font-size: 10px; }
.closing-banner { padding: 65px 24px; display: flex; justify-content: center; align-items: center; gap: 48px; color: #f1deba; background: repeating-linear-gradient(90deg,transparent 0 84px,rgba(226,194,137,.035) 85px),linear-gradient(105deg,#4e1713,#81261e,#4e1713); border-top: 1px solid #b68548; border-bottom: 1px solid #b68548; }
.closing-banner h2 { margin: 0; font: 800 clamp(34px,4vw,52px) "KaiTi",serif; letter-spacing: .1em; }.closing-banner p { margin: 7px 0 0; color: #d8ad84; font-size: 12px; }

.site-footer { padding: 40px max(24px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1fr auto; gap: 32px; color: #756957; background: #120d09; border-top: 1px solid rgba(196,154,90,.18); font-size: 10px; line-height: 1.8; }
.footer-name { margin-bottom: 7px; color: #c2ad89; font: 700 17px "KaiTi",serif; letter-spacing: .15em; }.footer-right { text-align: right; }

/* Account scroll */
.account-page { min-height: 100svh; padding: 118px 6vw 70px; display: grid; grid-template-columns: minmax(360px,1fr) minmax(420px,560px); align-items: center; gap: 7vw; color: #eddbb7; background: #1d140e url("6f984ad1-5da5-4b95-92ed-b488d2f2f403.a015d.jpg") center 45% / cover fixed no-repeat; position: relative; isolation: isolate; }
.account-page::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(20,13,9,.62),rgba(20,13,9,.25) 46%,rgba(20,13,9,.82)),linear-gradient(0deg,rgba(19,12,8,.91),transparent 55%,rgba(20,13,9,.45)); }
.account-aside { max-width: 560px; }
.account-aside h1 { margin: 20px 0 17px; font: 900 clamp(62px,7vw,100px)/.92 "KaiTi",serif; text-shadow: 0 9px 30px #000; }.account-aside h1 em { color: #d04a38; font-style: normal; }.account-aside p { max-width: 440px; padding-left: 17px; border-left: 2px solid #a9773d; color: #bfb098; font-size: 13px; line-height: 1.9; }
.account-scroll, .ledger-scroll { position: relative; color: #261a11; background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(83,52,24,.027) 5px),#e2cfa6; border-left: 1px solid #8d6738; border-right: 1px solid #8d6738; box-shadow: 0 34px 80px rgba(0,0,0,.48); }
.account-scroll { width: 100%; padding: 58px 52px 42px; }
.account-scroll::before, .account-scroll::after, .ledger-scroll::before, .ledger-scroll::after { content: ""; position: absolute; left: -18px; right: -18px; height: 18px; border: 1px solid #69451f; background: linear-gradient(#a77c43,#69451f 48%,#b3894e 54%,#704923); box-shadow: 0 7px 13px rgba(41,22,9,.28); }
.account-scroll::before, .ledger-scroll::before { top: -9px; }.account-scroll::after, .ledger-scroll::after { bottom: -9px; }
.scroll-code { display: flex; align-items: center; gap: 13px; color: #846e50; font: 10px "KaiTi",serif; letter-spacing: .18em; }.scroll-code::after { content: ""; flex: 1; height: 1px; background: rgba(91,59,27,.3); }
.account-scroll h2, .ledger-scroll h2 { margin: 12px 0 25px; font: 900 clamp(38px,4vw,52px) "KaiTi",serif; letter-spacing: .05em; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; border-bottom: 1px solid rgba(88,57,27,.32); }
.auth-tab { position: relative; padding: 13px; border: 0; color: #806f57; background: transparent; cursor: pointer; letter-spacing: .1em; }.auth-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lacquer); transform: scaleX(0); }.auth-tab.active { color: #6d211a; font-weight: 700; }.auth-tab.active::after { transform: scaleX(1); }
.hidden { display: none !important; }
.field { margin-bottom: 18px; }.field label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #4d3d2a; font-size: 11px; letter-spacing: .1em; }.field label small { color: #927d5e; font: 9px Georgia,serif; }
.field input, .amount-input { width: 100%; border: 1px solid rgba(91,59,27,.4); outline: 0; color: #291d13; background: rgba(255,246,219,.32); transition: border .2s, box-shadow .2s; }.field input { height: 52px; padding: 0 15px; }.field input::placeholder,.amount-input::placeholder { color: #9b8767; }.field input:focus,.amount-input:focus { border-color: var(--lacquer); box-shadow: 0 0 0 3px rgba(124,37,29,.08); }
.form-submit { width: 100%; min-height: 52px; border-color: #6a201a; }.form-note { margin: 11px 0 0; color: #84735a; font-size: 9px; text-align: center; }
.message,.success-message,.error-message { margin-bottom: 18px; padding: 11px 13px; border-left: 2px solid; font-size: 11px; line-height: 1.6; }.message.success,.success-message { color: #315243; border-color: var(--jade); background: rgba(66,96,82,.1); }.message.error,.error-message { color: #7c251d; border-color: var(--lacquer); background: rgba(124,37,29,.08); }
.account-legal { margin-top: 28px; padding-top: 17px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(91,59,27,.23); color: #806f56; font-size: 9px; line-height: 1.65; }
.verified { text-align: center; }.verified-seal { width: 84px; height: 84px; margin: 0 auto 18px; display: grid; place-items: center; color: #84271f; border: 2px solid #84271f; border-radius: 50%; font: 800 18px "KaiTi",serif; transform: rotate(-8deg); }.verified h2 { margin-bottom: 12px; }.verified p { color: #6d5d47; }
.account-actions { margin-top: 24px; display: grid; gap: 9px; }.account-action { border-color: rgba(91,59,27,.4); color: #55432d; }.account-action.primary { border-color: #6a201a; }

/* Supply ledger */
.supply-page { min-height: 100svh; padding: 112px 5vw 60px; display: grid; grid-template-columns: minmax(300px,.75fr) minmax(580px,1.25fr); align-items: center; gap: 5vw; color: #eddbb7; background: #25170f url("74d2c7ce-971f-4d71-bc3b-abc6d0c69b75.83779.jpg") center 43% / cover fixed no-repeat; position: relative; isolation: isolate; }
.supply-page::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(26,15,9,.78),rgba(32,18,10,.4),rgba(26,15,9,.76)),linear-gradient(0deg,rgba(23,14,9,.9),transparent 58%,rgba(26,15,9,.4)); }
.supply-aside h1 { margin: 20px 0 16px; font: 900 clamp(55px,6vw,88px)/.94 "KaiTi",serif; text-shadow: 0 8px 28px #000; }.supply-aside h1 em { color: #d04a38; font-style: normal; }.supply-aside p { max-width: 380px; padding-left: 16px; border-left: 2px solid #aa783d; color: #bcad94; font-size: 12px; line-height: 1.9; }
.ledger-scroll { justify-self: end; width: min(100%,760px); padding: 44px 50px 38px; }
.ledger-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }.ledger-head h2 { margin-bottom: 20px; }.safe-status { padding-bottom: 24px; color: var(--jade); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.order-summary { display: grid; grid-template-columns: 1.2fr .8fr 1fr; margin-bottom: 26px; border-top: 1px solid #6f4b27; border-bottom: 1px solid #6f4b27; }.summary-cell { min-width: 0; padding: 14px; border-right: 1px solid rgba(91,59,27,.25); }.summary-cell:first-child { padding-left: 0; }.summary-cell:last-child { padding-right: 0; border-right: 0; }.summary-label { display: block; margin-bottom: 6px; color: #8a7658; font-size: 8px; letter-spacing: .12em; }.summary-value { display: block; overflow: hidden; color: #483721; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.summary-value.price { color: var(--lacquer); font: 800 20px Georgia,serif; }
.ledger-step { margin: 20px 0 9px; display: flex; align-items: center; gap: 10px; font: 700 14px "KaiTi",serif; letter-spacing: .1em; }.ledger-step b { width: 25px; height: 25px; display: grid; place-items: center; color: #f0ddb8; background: var(--lacquer); font: 700 11px "KaiTi",serif; transform: rotate(-3deg); }
.amount-wrap { position: relative; }.amount-input { height: 62px; padding: 0 94px 0 16px; font: 700 29px Georgia,"Microsoft YaHei",sans-serif; }.amount-unit { position: absolute; right: 16px; top: 50%; color: #756247; font-size: 11px; transform: translateY(-50%); }.amount-result { margin-top: 9px; padding: 10px 12px; color: #715f47; background: rgba(100,65,30,.055); font-size: 10px; }.amount-result strong { color: var(--lacquer); }.exchange-note { margin: 9px 0 0; color: #88765b; font-size: 9px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.pay-method { width: 100%; min-height: 50px; border: 1px solid #8a2a21; color: #6f211a; background: rgba(124,37,29,.06); cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .1em; }.pay-method::before { content: "支"; width: 22px; height: 22px; margin-right: 9px; display: inline-grid; place-items: center; color: white; background: #1678ff; border-radius: 3px; }.pay-submit { width: 100%; min-height: 50px; border-color: #6a201a; }
.loading { display: none; margin-top: 15px; align-items: center; justify-content: center; gap: 9px; color: #75644c; font-size: 10px; }.loading.show { display: flex; }.spinner { width: 17px; height: 17px; border: 2px solid rgba(124,37,29,.16); border-top-color: var(--lacquer); border-radius: 50%; animation: spin .75s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
.ledger-safe { margin-top: 21px; padding-top: 15px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(91,59,27,.23); color: #806f56; font-size: 9px; line-height: 1.6; }.ledger-safe b { color: var(--jade); }
.payment-popup { position: fixed; z-index: 200; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(19,12,8,.84); backdrop-filter: blur(10px); }.payment-popup.show { display: grid; }.popup-card { width: min(100%,420px); padding: 32px; color: #ead7b1; border: 1px solid #ad7e43; background: #261810; text-align: center; box-shadow: 0 28px 70px rgba(0,0,0,.45); }.popup-mark { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid #b68448; color: #e0c08a; font: 800 23px Georgia,serif; }.popup-card h3 { margin: 0 0 9px; font: 800 25px "KaiTi",serif; }.popup-card p { color: #a69781; font-size: 11px; line-height: 1.75; }.popup-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.popup-actions button { min-height: 42px; border: 1px solid #996d38; color: #f0dbb7; background: #7d261e; cursor: pointer; }.popup-actions button.secondary { color: #b9a88d; background: transparent; border-color: rgba(196,154,90,.28); }
.modal-mode .site-nav,.modal-mode .supply-aside { display: none; }.modal-mode .supply-page { display: block; min-height: 100svh; padding: 34px 24px; background: #1b120d; }.modal-mode .supply-page::before { display: none; }.modal-mode .ledger-scroll { width: min(100%,720px); margin: 0 auto; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease,transform .7s ease; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .site-nav { grid-template-columns: 1fr auto; padding: 0 18px; }.nav-links { position: fixed; top: 72px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 15px 20px; background: rgba(25,16,11,.98); border-bottom: 1px solid rgba(196,154,90,.3); }.nav-links.open { display: flex; }.nav-links a { width: 100%; padding: 13px; text-align: center; }.nav-actions .nav-text,.nav-actions .nav-button { display: none; }.menu-toggle { display: grid; place-items: center; }
  .hero-copy { width: 60%; }.war-report { grid-template-columns: 150px repeat(3,1fr); }.report-item { padding: 17px; }
  .chapter-shell { grid-template-columns: 100px 1fr; gap: 40px; }.chapter-intro { grid-template-columns: 1fr; }.chapter-intro p { max-width: 650px; }
  .soul-shell { grid-template-columns: 1fr; padding-top: 90px; }.soul-copy { max-width: 670px; }.soul-art { height: 590px; }.soul-art img { height: 590px; }
  .account-page,.supply-page { grid-template-columns: 1fr; gap: 50px; padding-top: 120px; background-attachment: scroll; }.account-aside,.supply-aside { max-width: 620px; }.account-scroll,.ledger-scroll { justify-self: center; }.supply-aside { padding-top: 70px; }
}

@media (max-width: 700px) {
  .site-nav { height: 64px; }.nav-links { top: 64px; }.brand { font-size: 18px; }.brand-seal { width: 33px; height: 33px; font-size: 17px; }
  .painted-hero { min-height: 790px; height: 100svh; background-position: 64% center; }.painted-hero::before { background: linear-gradient(90deg,rgba(23,15,10,.96),rgba(31,19,11,.35)),linear-gradient(0deg,#17120d,transparent 43%,rgba(23,15,10,.5)); }.hero-content { width: calc(100% - 34px); min-height: 790px; padding-top: 82px; align-items: flex-start; }.hero-copy { width: 100%; padding-top: 90px; }.hero-copy h1 { font-size: clamp(66px,22vw,92px); }.hero-description { max-width: 90%; }.hero-inscription { display: none; }.hero-buttons { display: grid; max-width: 300px; }.hero-buttons a { width: 100%; }.war-report { width: 100%; grid-template-columns: repeat(3,1fr); }.report-title { display: none; }.report-item { padding: 14px 9px; text-align: center; }.report-item b { font-size: 14px; }.report-item span { display: none; }
  .paper-chapter { padding: 85px 0; }.chapter-shell { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 30px; }.chapter-label { justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(87,56,27,.28); padding-bottom: 18px; }.chapter-label-inner { position: static; writing-mode: horizontal-tb; }.chapter-label strong { font-size: 34px; }.chapter-intro { margin-bottom: 35px; }.chapter-intro h2 { font-size: 45px; }.strategy-row { grid-template-columns: 45px 60px 1fr; gap: 12px; min-height: 160px; }.strategy-glyph { font-size: 43px; }.strategy-text h3 { font-size: 21px; }
  .soul-scroll,.soul-shell { min-height: 900px; }.soul-shell { width: calc(100% - 32px); padding-top: 75px; }.soul-copy h2 { font-size: 54px; }.soul-notes { grid-template-columns: 1fr; }.soul-art { height: 500px; }.soul-art img { height: 500px; }.soul-art::before { width: 300px; height: 300px; }.weapon-tag.t1 { left: 0; }.weapon-tag.t2 { right: 0; }
  .roster-scroll { padding: 85px 0 105px; }.roster-head { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; }.roster-head h2 { font-size: 52px; }.portrait-stage { width: calc(100% - 32px); min-height: auto; display: grid; grid-template-columns: 1fr; gap: 16px; }.portrait,.portrait:nth-child(1),.portrait:nth-child(2),.portrait:nth-child(3) { grid-column: auto; height: 500px; transform: none; }.portrait:hover { transform: translateY(-5px); }
  .arena-scroll { min-height: 620px; }.arena-copy h2 { font-size: 55px; }.closing-banner { align-items: stretch; flex-direction: column; gap: 22px; text-align: center; }.closing-banner .btn-red { width: 100%; }.site-footer { grid-template-columns: 1fr; }.footer-right { text-align: left; }
  .account-page,.supply-page { padding: 104px 18px 58px; }.account-aside h1,.supply-aside h1 { font-size: 58px; }.account-scroll { padding: 48px 24px 34px; }.account-scroll::before,.account-scroll::after,.ledger-scroll::before,.ledger-scroll::after { left: -7px; right: -7px; }.account-legal { flex-direction: column; }
  .ledger-scroll { padding: 40px 22px 32px; }.ledger-head { align-items: flex-start; flex-direction: column; }.safe-status { padding: 0; }.order-summary { grid-template-columns: 1fr 1fr; }.summary-cell:nth-child(2) { border-right: 0; }.summary-cell:last-child { grid-column: 1/-1; padding: 12px 0; border-top: 1px solid rgba(91,59,27,.24); }.pay-grid { grid-template-columns: 1fr; }.ledger-safe { flex-direction: column; }.popup-actions { grid-template-columns: 1fr; }.modal-mode .supply-page { padding: 25px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
