:root {
  color-scheme: light;
  --paper: #f4f5f0;
  --mist: #e7edeb;
  --ink: #293d38;
  --muted: #687a72;
  --line: #cdd7ce;
  --bronze: #967345;
  --serif: 'Songti TC', 'Songti SC', 'Noto Serif CJK TC', 'PMingLiU', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --mono: 'SFMono-Regular', Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .32; }
button:focus-visible, a:focus-visible, canvas:focus-visible, input:focus-visible { outline: 2px solid var(--bronze); outline-offset: 5px; }
button { transition: background .18s, color .18s, border-color .18s; }
a { color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.masthead { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--serif); font-size: 20px; letter-spacing: .16em; }
.brand svg { width: 35px; height: 35px; stroke: var(--ink); stroke-width: 1.2; }
.brand small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; margin-top: 6px; }
.masthead-center { font-size: 11px; letter-spacing: .14em; color: var(--muted); display: flex; gap: 9px; align-items: center; }
.status-dot { width: 5px; height: 5px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: #6e8970; }
.text-button { padding: 8px 0; border: 0; background: none; font-size: 12px; display: inline-flex; gap: 18px; align-items: center; }
.text-button:hover { color: var(--bronze); }
.exhibition { max-width: 1800px; margin: 0 auto; display: grid; grid-template-columns: 284px minmax(0, 1fr); grid-template-rows: minmax(620px, auto) auto auto; }
.intro { grid-row: 1; padding: 30px 32px 22px 42px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.eyebrow { font-size: 10px; letter-spacing: .16em; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); }
.intro .eyebrow { font-size: 11px; display: block; }
.intro .eyebrow span { display: block; font: 8px var(--mono); letter-spacing: .1em; margin-top: 8px; }
.title-lockup { position: relative; margin-top: 20px; }
h1 { font: 500 64px/1.12 var(--serif); letter-spacing: .13em; margin: 0; }
.title-stop { color: var(--bronze); position: absolute; font-size: 52px; bottom: 5px; left: 145px; }
.seal { position: absolute; top: 10px; right: 6px; padding: 5px 4px; border: 1px solid var(--bronze); color: var(--bronze); font: 12px/1.3 var(--serif); }
.english-title { font: 11px/1.65 var(--serif); letter-spacing: .06em; margin: 14px 0 0; color: var(--muted); }
.intro-rule { height: 1px; width: 28px; margin: 18px 0 16px; background: var(--bronze); }
.intro-description { font: 14px/1.95 var(--serif); letter-spacing: .08em; margin: 0; }
.intro-caption { font-size: 9px; color: var(--muted); margin-top: 12px; letter-spacing: .06em; }
.facts { margin: auto 0 0; padding-top: 22px; }
.fact dt { font-size: 10px; letter-spacing: .09em; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font: 34px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.fact dd span { font: 10px var(--sans); margin-left: 8px; color: var(--muted); }
.fact-height dd { font-size: 47px; letter-spacing: -.045em; }
.fact small { font-size: 8px; color: var(--muted); }
.fact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 21px; }
.archive-id { margin: 16px 0 0; color: var(--muted); font: 8px var(--mono); display: flex; gap: 12px; }
.archive-id span { font: 9px var(--sans); }
.viewer { min-width: 0; height: 100%; min-height: 620px; position: relative; overflow: hidden; background: linear-gradient(180deg, #dce7e9 0%, #e8eeea 64%, #e0e5dc 100%); }
.viewer.is-sunset { background: linear-gradient(180deg, #dccfc0, #f0e3cd 70%, #e4d8c2); }
#yx-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#yx-canvas:active { cursor: grabbing; }
.viewer-top { position: absolute; top: 25px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.viewer-top > * { pointer-events: auto; }
.segmented { display: flex; gap: 3px; padding: 4px; border: 1px solid #bfcac27a; border-radius: 6px; background: #f4f5f06b; backdrop-filter: blur(12px); }
.segmented button { border: 0; padding: 9px 18px; border-radius: 3px; background: transparent; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.segmented button[aria-pressed='true'] { background: var(--ink); color: #f4f5f0; box-shadow: 0 2px 5px #263c3012; }
.light-toggle { border: 0; background: #f4f5f08c; display: flex; align-items: center; gap: 8px; font-size: 11px; border-radius: 4px; padding: 7px 12px; }
.sun-icon { font-size: 19px; line-height: 1; color: var(--bronze); }
.scene-caption { position: absolute; top: 91px; left: 32px; display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.scene-caption .mono { font-size: 8px; opacity: .8; }
.level-nav { position: absolute; top: 145px; right: 26px; width: 92px; display: grid; gap: 9px; }
.level-nav-heading { font-size: 9px; color: var(--muted); letter-spacing: .14em; margin-bottom: 9px; text-align: right; }
.level-nav button { display: flex; align-items: center; justify-content: flex-end; gap: 9px; height: 30px; padding: 0; border: 0; font-size: 10px; color: var(--muted); background: none; }
.level-nav button i { display: block; width: 14px; height: 1px; background: #99a79b; transition: width .2s; }
.level-nav button small { width: 20px; font: 8px var(--mono); text-align: right; }
.level-nav button:hover, .level-nav button[aria-current] { color: var(--bronze); }
.level-nav button[aria-current] i { width: 25px; height: 2px; background: var(--bronze); }
.dimension { position: absolute; left: 38px; top: 24%; bottom: 21%; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 9px var(--mono); color: #6d7f75; pointer-events: none; }
.dimension i { flex: 1; width: 1px; background: #9baaa15c; position: relative; }
.dimension i::before, .dimension i::after { content: ''; position: absolute; width: 7px; height: 1px; background: #9baaa1; left: -3px; }
.dimension i::after { bottom: 0; }
.dimension small { font-size: 8px; }
.camera-tools { position: absolute; bottom: 73px; left: 28px; display: grid; gap: 3px; border-radius: 5px; border: 1px solid #bfcac270; background: #f4f5f08c; padding: 4px; backdrop-filter: blur(10px); }
.camera-tools button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; }
.camera-tools button:nth-child(2), .camera-tools button:nth-child(3) { font-size: 11px; }
.camera-tools button:hover { background: #d4dfd3; border-radius: 3px; }
.camera-tools > span { width: 16px; margin: 2px auto; height: 1px; background: var(--line); }
.viewer-bottom { position: absolute; bottom: 23px; left: 30px; right: 28px; display: flex; align-items: center; justify-content: space-between; color: #617164; font-size: 9px; }
.viewer-bottom b { font-weight: 400; padding: 0 7px; opacity: .6; }
.viewer-bottom button { padding: 7px 0; border: 0; background: none; display: flex; gap: 8px; align-items: center; font-size: 10px; }
.viewer-bottom button span { font-size: 19px; }
.viewer-bottom button[aria-pressed='true'] { color: var(--bronze); }
.explorer { grid-column: 1 / -1; display: grid; grid-template-columns: 360px 1fr; gap: 42px; padding: 25px 42px 22px; border-top: 1px solid var(--line); }
.step-info h2 { font: 20px/1.5 var(--serif); margin: 11px 0 7px; }
.step-info > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.step-info .mono { font-size: 9px; }
.build-panel { min-width: 0; }
.build-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; letter-spacing: .04em; }
.build-top strong { font: 10px var(--mono); margin-left: 10px; color: var(--bronze); }
.counts { display: flex; gap: 22px; color: var(--muted); font-size: 9px; }
.counts b { font: 10px var(--mono); margin-left: 6px; font-weight: 400; }
.timeline { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.timeline button { flex: 0 0 22px; height: 24px; padding: 0; border: 0; background: none; font-size: 22px; color: var(--muted); }
.timeline input { min-width: 0; width: 100%; height: 22px; margin: 0; appearance: none; background: transparent; cursor: pointer; accent-color: var(--bronze); --progress: 100%; }
.timeline input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--bronze) var(--progress), var(--line) var(--progress)); }
.timeline input::-moz-range-track { height: 2px; background: var(--line); }
.timeline input::-moz-range-progress { height: 2px; background: var(--bronze); }
.timeline input::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--bronze); margin-top: -4px; box-shadow: 0 0 0 1px var(--bronze); }
.timeline input::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid var(--paper); border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 1px var(--bronze); }
.timeline-labels { display: flex; justify-content: space-between; margin: 0 34px; font-size: 8px; color: var(--muted); }
.build-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.primary-button, .secondary-button { display: inline-flex; gap: 8px; justify-content: center; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 3px; font-size: 10px; white-space: nowrap; }
.primary-button { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.primary-button:hover { background: #415a4c; }
.play-icon { font-size: 8px; }
.secondary-button { background: none; border: 1px solid var(--line); }
.secondary-button:hover, .secondary-button[aria-pressed='true'] { border-color: #8d9f8c; background: #e7ede3; }
.complete-button { margin-left: auto; font-size: 10px; gap: 8px; }
.inspection { grid-column: 1 / -1; padding: 14px 42px; display: flex; gap: 12px; align-items: baseline; background: #e9ede5; border-top: 1px solid var(--line); font-size: 10px; }
.inspection strong { font-size: 10px; font-weight: 500; flex-shrink: 0; }
.inspection > span:nth-of-type(2) { color: var(--muted); line-height: 1.7; }
.inspection-mark { color: var(--bronze); }
.inspection-hint { margin-left: auto; font: 8px var(--mono); letter-spacing: .06em; white-space: nowrap; color: var(--muted); }
.footer { padding: 17px 42px; font-size: 9px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.footer button { border: 0; padding: 0; margin-left: 16px; background: none; font-size: 9px; text-decoration: underline; text-underline-offset: 4px; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; background: #e7edeb; transition: opacity .35s; z-index: 5; }
.loading.is-ready { opacity: 0; pointer-events: none; }
.loading-pagoda { font: 40px var(--serif); color: var(--bronze); }
.loading p { font: 15px var(--serif); letter-spacing: .12em; }
.loading p span { display: block; margin-top: 10px; font: 10px var(--sans); color: var(--muted); }
.error-state { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; background: var(--mist); }
.error-state h2 { font: 23px var(--serif); }
.error-state p { max-width: 330px; font-size: 12px; line-height: 1.9; }
.error-state button { margin-top: 15px; padding: 10px 22px; background: var(--ink); color: var(--paper); border: 0; }
dialog { width: min(570px, calc(100% - 32px)); max-height: calc(100svh - 50px); padding: 42px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 100px #203a3830; }
dialog::backdrop { background: #23383166; backdrop-filter: blur(5px); }
dialog h2 { font: 26px/1.5 var(--serif); margin: 16px 0; }
dialog p { font-size: 12px; line-height: 1.95; color: var(--muted); }
.dialog-close { position: absolute; right: 16px; top: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 25px; }
.method-list { margin: 26px 0; }
.method-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.method-list dt { font-size: 12px; margin-bottom: 7px; }
.method-list dd { margin: 0; font-size: 11px; line-height: 1.85; color: var(--muted); }
.dialog-note { border-left: 2px solid var(--bronze); padding-left: 14px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 10px; }
.noscript { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; padding: 20px; background: var(--ink); color: var(--paper); font-size: 12px; }
@media (min-width: 1600px) { .exhibition { grid-template-columns: 340px minmax(0, 1fr); } .intro { padding-left: 52px; padding-right: 45px; } h1 { font-size: 80px; } .title-stop { left: 170px; } .explorer { grid-template-columns: 400px 1fr; gap: 70px; } }
@media (max-width: 1050px) { .masthead { padding: 0 26px; height: 74px; } .exhibition { grid-template-columns: 240px minmax(0, 1fr); } .intro { padding: 32px 24px; } h1 { font-size: 59px; } .title-stop { left: 124px; } .seal { right: 0; } .explorer { grid-template-columns: 285px 1fr; gap: 25px; padding: 24px; } .build-actions { gap: 7px; flex-wrap: wrap; } .primary-button, .secondary-button { padding: 0 10px; } .complete-button { margin-left: 0; } .dimension { display: none; } .level-nav { right: 18px; } .inspection, .footer { padding-left: 24px; padding-right: 24px; } .inspection-hint { display: none; } }
@media (max-width: 760px) {
  .masthead { height: 68px; padding: 0 20px; } .brand { font-size: 17px; gap: 10px; } .brand svg { width: 30px; height: 30px; } .brand small { font-size: 6px; } .masthead-center { display: none; } .masthead > .text-button { font-size: 10px; gap: 10px; }
  .exhibition { display: flex; flex-direction: column; } .intro { padding: 25px 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro .eyebrow { font-size: 9px; } .intro .eyebrow span { display: inline; font-size: 7px; margin-left: 8px; } .title-lockup { margin-top: 14px; } h1 { font-size: 43px; letter-spacing: .1em; } h1 br { display: none; } .title-stop, .seal, .intro-rule, .english-title, .intro-caption, .archive-id, .fact-height small { display: none; } .intro-description { font-size: 11px; line-height: 1.6; margin-top: 11px; letter-spacing: .04em; } .intro-description br { display: none; }
  .facts { padding-top: 6px; margin: 0; text-align: right; } .fact-height dt { font-size: 8px; } .fact-height dd { font-size: 35px; } .fact-height dd span { font-size: 9px; margin-left: 4px; } .fact-pair { gap: 14px; padding-top: 9px; margin-top: 10px; } .fact-pair dt { font-size: 7px; margin-bottom: 3px; } .fact-pair dd { font-size: 19px; } .fact-pair dd span { font-size: 8px; margin-left: 4px; }
  .viewer { height: 610px; min-height: 0; } .viewer-top { top: 19px; left: 18px; right: 18px; } .segmented button { padding: 8px 12px; font-size: 10px; } .light-toggle { font-size: 10px; padding: 8px; } .scene-caption { left: 21px; top: 77px; font-size: 8px; } .scene-caption .mono { font-size: 7px; }
  .level-nav { top: 128px; right: 14px; width: 60px; gap: 7px; } .level-nav-heading { font-size: 8px; } .level-nav button { height: 32px; font-size: 9px; gap: 5px; } .level-nav button small { font-size: 7px; width: 15px; } .level-nav button i { width: 7px; } .level-nav button[aria-current] i { width: 13px; }
  .camera-tools { left: 16px; bottom: 66px; } .camera-tools button { width: 29px; height: 32px; } .viewer-bottom { left: 18px; right: 18px; bottom: 17px; font-size: 8px; } .viewer-bottom b { padding: 0 4px; } .viewer-bottom button { font-size: 9px; }
  .explorer { display: flex; flex-direction: column; gap: 22px; padding: 24px 22px; } .step-info h2 { font-size: 21px; } .step-info > p:last-child { font-size: 11px; } .counts { gap: 12px; } .counts b { margin-left: 4px; font-size: 9px; } .build-actions { gap: 8px; } .primary-button, .secondary-button { min-height: 40px; padding: 0 12px; } .complete-button { margin-left: auto; font-size: 9px; gap: 5px; } .timeline-labels { font-size: 8px; }
  .inspection { padding: 15px 22px; flex-wrap: wrap; gap: 8px; } .inspection > span:nth-of-type(2) { flex: 1 1 220px; font-size: 10px; } .footer { padding: 18px 22px; gap: 12px; align-items: flex-start; font-size: 8px; } .footer > span:last-child { text-align: right; max-width: 170px; line-height: 1.8; } .footer button { font-size: 8px; margin-left: 8px; }
  dialog { padding: 32px 25px; } dialog h2 { font-size: 23px; }
}
@media (max-width: 380px) { h1 { font-size: 36px; } .intro-description { font-size: 10px; } .intro { padding: 22px 17px; } .viewer { height: 555px; } .viewer-bottom > span { max-width: 190px; line-height: 1.7; } .build-actions { gap: 7px; } .primary-button, .secondary-button { padding: 0 9px; font-size: 9px; } .complete-button { width: 100%; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
