:root {
  --jade: #173f39;
  --ink: #263f36;
  --clay: #ab442e;
  --brass: #d9b979;
  --cream: #faf4e6;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box }
body.gate, body.policy { margin: 0; color: var(--ink); background: #f6f1e6; font-family: var(--sans); }
.gate a, .policy a { color: inherit }
.gate button, .gate a { -webkit-tap-highlight-color: transparent }
.gate button { color: inherit; font: inherit; cursor: pointer }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #d28534; outline-offset: 4px }
.mast, .grounds, .colophon { width: min(1440px, 92%); margin: auto }
.mast, .brand, .mast nav, .section-head, .colophon { display: flex; align-items: center }
.mast { justify-content: space-between; padding: 17px 0 }
.brand { gap: 10px; color: var(--jade); font: 700 21px/1.2 var(--serif); letter-spacing: .1em; text-decoration: none }
.brand small { display: block; font: 650 9px/1.8 var(--sans); letter-spacing: .23em }
.seal { padding: 4px; border-radius: 7px; background: #a64732; box-shadow: inset 0 0 0 2px #a64732,inset 0 0 0 3px #e6ac83; color: #ffeed2; font: 700 15px/1 var(--serif); letter-spacing: .04em; text-align: center }
.mast nav { gap: clamp(16px, 3vw, 48px); font-size: 14px }
.mast nav a, .mast nav button { background: none; border: 0; text-decoration: none; padding: 8px 0 }
.mast nav [aria-current] { border-bottom: 2px solid #a84732; font-weight: 700 }
.mast nav :hover, .colophon a:hover { color: var(--clay) }
.cover { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(420px, 57vh, 620px); background: #173e37; color: #fff4d9; border-radius: 24px; box-shadow: 0 9px 25px #3a251323 }
.cover-art { position: absolute; z-index: -3; inset: 0 0 0 auto; width: 80%; height: 100%; object-fit: cover; object-position: center 58% }
.cover::before { content:""; position:absolute; inset:0; z-index:-2; background:linear-gradient(90deg,#133f38 0%,#133f38 17%,#133f38f5 24%,#153e36bd 34%,#16392e38 48%,transparent 66%) }
.cover::after { content:""; position:absolute; inset:9px; border:1px solid #f9dda94d; border-radius:17px; pointer-events:none }
.cover-copy { padding: clamp(32px, 4.4vw, 75px); width: fit-content }
.location, .roman, .intro { margin: 0 }
.location { display:flex; align-items:center; gap:10px; color:#f3dbab; font: 600 13px var(--sans); letter-spacing:.1em }
.location span { width:23px; height:1px; background:#d9b979 }
.cover h1 { margin:.25em 0 0; font: 700 clamp(54px,6vw,97px)/1.22 var(--serif); letter-spacing:.04em; text-shadow:0 3px 1px #112d28 }
.roman { font: 500 clamp(12px,1vw,17px)/1.8 Georgia,serif; letter-spacing:.38em; color:#ebce99; }
.intro { margin: 25px 0; font: 450 clamp(15px,1.13vw,19px)/1.85 var(--sans); color:#fbedd7 }
.gate .enter { display:inline-flex; align-items:center; justify-content:space-between; gap:24px; padding:13px 20px; background:linear-gradient(#f5dab0,#e6b982); border:1px solid #ffdfb3; border-radius:12px; box-shadow:0 3px 0 #9c6b42,0 6px 18px #112b242b; color:#483522; font-weight:750; text-decoration:none }
.enter span { font:22px/1 system-ui }
.enter:hover { filter:brightness(1.07) }
.manual { padding:27px 0 31px; scroll-margin-top:12px }
.section-head { gap:14px; margin:0 0 16px }
.section-head h2 { margin:0; font:700 clamp(24px,2vw,32px)/1.4 var(--serif) }
.section-head span { color:#786e56; font:600 10px/1.5 var(--sans); letter-spacing:.19em }
.section-head::after { content:""; flex:1; height:1px; background:#d9cfb8 }
.rite-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px }
.rite-grid button { position:relative; display:flex; align-items:center; gap:10px; text-align:left; padding:12px; min-height:100px; border:1px solid #d8cdb4; border-radius:16px; background:#fffaf0; box-shadow:0 3px 0 #e5dac8; transition:transform .15s }
.rite-grid button:hover { transform:translateY(-3px); border-color:#af9772 }
.rite-grid img { width:clamp(52px,5.6vw,88px); aspect-ratio:1; object-fit:contain; border-radius:12px; mix-blend-mode:multiply }
.rite-grid strong, .rite-grid small { display:block }
.rite-grid strong { font:700 clamp(16px,1.3vw,22px)/1.5 var(--serif); white-space:nowrap }
.rite-grid small { margin-top:3px; font-size:12px; color:#70644f }
.rite-grid i { position:absolute; right:9px; top:6px; color:#96774e; font-style:normal }
.colophon { padding:16px 0 22px; gap:12px; justify-content:space-between; border-top:1px solid #d8cdb4; color:#766951; font-size:12px }
.gate dialog { width:min(390px,90vw); padding:28px; text-align:center; border:1px solid #cfb991; border-radius:24px; color:var(--ink); background:#fff9ed; box-shadow:0 24px 85px #112d2850 }
.gate dialog::backdrop { background:#102d29a8 }
.gate dialog img { width:105px; border-radius:22px; mix-blend-mode:multiply }
.gate dialog h2 { font:700 27px/1.4 var(--serif); margin:8px 0 }
.gate dialog p { text-align:left; margin:8px 0 22px; line-height:1.8 }
.dismiss { position:absolute; top:12px; right:12px; border:1px solid #d4c4a7; background:#fff9eb; width:36px; height:36px; border-radius:50%; font-size:20px!important }
@media(max-width:940px) { .rite-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } .rite-grid img { width:68px } }
@media(max-width:620px) {
  .mast,.grounds,.colophon { width:92% }
  .mast { padding:12px 0 }
  .brand { font-size:16px; gap:6px }.brand small { font-size:7px }.seal { font-size:12px }
  .mast nav { gap:13px; font-size:12px }
  .cover { min-height:0; aspect-ratio: .85; align-items:end; border-radius:18px }
  .cover-art { width:100%; height:87%; top:0; object-position:center top }
  .cover::before { background:linear-gradient(0deg,#123d36 0%,#123d36fa 12%,#173d35d9 27%,#173d3570 44%,transparent 67%) }
  .cover::after { inset:6px; border-radius:13px }
  .cover-copy { width:100%; padding:20px 22px; position:relative }
  .location { font-size:10px; gap:6px; text-shadow:0 1px 4px #193227 }
  .cover h1 { font-size:clamp(40px,11vw,62px); margin-top:5px }
  .roman { font-size:10px }.intro { font-size:12px; margin:12px 0 0; line-height:1.65 }
  .cover-copy .enter { position:absolute; bottom:23px; right:18px; padding:10px 12px; font-size:13px; gap:13px }
  .manual { padding:20px 0 23px }.section-head { margin-bottom:12px }.rite-grid { gap:10px }
  .rite-grid button { padding:7px; gap:5px; min-height:76px; border-radius:12px }.rite-grid img { width:clamp(40px,12vw,65px) }
  .rite-grid strong { font-size:16px }.rite-grid small { font-size:10px }
}
@media(max-width:350px) { .mast nav { gap:8px }.cover-copy { padding:18px 13px }.cover-copy .enter { right:12px; gap:4px }.rite-grid strong {font-size:14px} }
@media(prefers-reduced-motion:reduce) { .rite-grid button { transition:none } }
.policy main { max-width:760px; background:#fffbf1; border:1px solid #d8cdb4; border-radius:20px; padding:clamp(20px,4vw,54px); margin:clamp(12px,4vw,54px) auto }
.policy .brand { width:fit-content; margin-bottom:28px }
.policy h1,.policy h2 { color:var(--jade); font-family:var(--serif) }
