:root {
  --ink: #31291f;
  --muted: #8b8172;
  --paper: #f5f0e6;
  --red: #913f30;
  --gold: #b6965a;
  --line: rgba(90,70,45,.17);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: "Microsoft YaHei","PingFang SC",sans-serif; background: #e8dfcd; overflow: hidden; }
button,a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; }
button:focus-visible,a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
button:disabled { opacity: .45; cursor: wait; }
[hidden] { display: none !important; }
#viewport { position: absolute; inset: 74px 0 0; }
#viewport canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#viewport canvas:active { cursor: grabbing; }
.site-header { height: 74px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 13px; }
.seal { display: grid; place-items: center; width: 39px; height: 42px; background: var(--red); color: #f5e9d1; font: 27px "STKaiti","KaiTi",serif; border-radius: 2px; outline: 1px solid rgba(255,255,255,.7); outline-offset: -5px; }
.brand strong { font: 23px "SimSun",serif; letter-spacing: 5px; display: block; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.65px; margin-top: 5px; color: var(--muted); }
.header-middle { display: flex; gap: 20px; align-items: center; font-size: 11px; letter-spacing: 3px; color: #7f7363; }
.header-line { width: 30px; height: 1px; background: #cfc4b1; }
nav { display: flex; align-items: center; gap: 26px; }
nav button { font-size: 12px; padding: 8px 0; }
nav button:hover { color: var(--red); }
.icon-button { width: 24px; height: 24px; border: 1px solid #bdb2a1; border-radius: 50%; font: 13px Georgia,serif; padding: 0; }
.scene-ui { position: absolute; inset: 74px 0 0; pointer-events: none; z-index: 5; }
.scene-ui button,.scene-ui aside { pointer-events: auto; }
.location { position: absolute; top: 27px; left: 38px; display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: 1px; color: #f9f0df; text-shadow: 0 1px 6px #302416; background: rgba(37,26,16,.25); border: 1px solid rgba(255,244,222,.16); padding: 10px 14px; backdrop-filter: blur(10px); border-radius: 3px; }
.live-dot { width: 5px; height: 5px; background: #d5b16e; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(220,183,111,.1); }
.location-divider { color: #c1b095; margin: 0 2px; }
.scene-tools { position: absolute; right: 34px; top: 25px; display: flex; gap: 8px; }
.round-tool { width: 35px; height: 35px; border: 1px solid rgba(255,245,229,.4); border-radius: 50%; background: rgba(47,35,24,.36); color: #f5eedf; backdrop-filter: blur(9px); display: grid; place-items: center; }
.round-tool:hover,.round-tool.active { background: var(--red); border-color: var(--red); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.intro-card { position: absolute; left: 38px; bottom: 143px; width: 248px; padding: 22px 23px 17px; background: rgba(247,242,231,.93); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 10px 40px #2d24141a; border-radius: 3px; pointer-events: auto; }
.eyebrow { font-size: 8px; letter-spacing: 2.3px; color: #9b8261; margin: 0 0 16px; }
.intro-card h1 { font: 37px "SimSun","Songti SC",serif; letter-spacing: 4px; line-height: 1.25; margin: 0 0 18px; }
.intro-card h1 span { color: var(--red); }
.card-rule { height: 1px; background: var(--line); width: 36px; margin-bottom: 16px; }
.intro-text { font-size: 11px; color: #796c5b; line-height: 2.15; letter-spacing: .3px; margin: 0 0 19px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--red); color: #fcf3e4; font-size: 12px; letter-spacing: 2px; padding: 12px 16px; border-radius: 2px; transition: background .2s; }
.primary-button:hover { background: #70291e; }
.primary-button span { font-size: 17px; }
.subtle { font-size: 9px; color: #a29788; margin: 12px 0 0; text-align: center; letter-spacing: .1px; }
.minimap { position: absolute; right: 34px; bottom: 139px; width: 147px; padding: 13px 11px 8px; border-radius: 3px; background: rgba(247,242,231,.93); border: 1px solid #fff7eab0; backdrop-filter: blur(10px); }
.minimap-title { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #736655; }
.minimap-title span:last-child { font-size: 7px; color: #a1917a; }
.minimap svg { width: 100%; height: 132px; margin-top: 6px; stroke: none; }
.compass-ring { fill: #ede5d6; stroke: #bca989; stroke-width: .8; }
.compass-inner { fill: #f6f0e6; stroke: #c9bba3; stroke-width: .45; }
.compass-ticks { fill: none; stroke: #aa9575; stroke-width: .7; }
.minimap .compass-label { fill: #89785d; font: 7px "Microsoft YaHei",sans-serif; }
.minimap .compass-degree { fill: #a39278; font: 8px Georgia,serif; letter-spacing: 1px; }
.compass-sector { fill: #913f3018; stroke: none; }
.compass-needle { fill: var(--red); stroke: #f7ebd6; stroke-width: .5; }
.compass-center { fill: var(--gold); }
.bottom-dock { position: absolute; bottom: 49px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-radius: 6px; background: rgba(247,242,231,.97); border: 1px solid rgba(255,255,255,.65); backdrop-filter: blur(12px); box-shadow: 0 5px 30px #28211329; pointer-events: auto; white-space: nowrap; }
.dock-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; font-size: 11px; border-radius: 3px; transition: .2s; }
.dock-button svg { width: 17px; height: 17px; }
.dock-button:hover { background: #e9dfce; }
.dock-button.active { background: var(--red); color: #fff4e5; }
.dock-divider { height: 21px; width: 1px; background: var(--line); margin: 0 3px; }
.bottom-caption { position: absolute; bottom: 20px; left: 38px; right: 38px; color: #fff1d8b3; font-size: 9px; letter-spacing: 3px; display: flex; justify-content: space-between; text-shadow: 0 1px 4px #302619; }
.numbering { font: 9px Georgia,serif; letter-spacing: 2px; }
.hotspot { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 8px; color: #fff3d7; background: rgba(35,29,23,.55); border: 1px solid #dfc99a59; border-radius: 2px; padding: 7px 11px 7px 8px; font-size: 10px; backdrop-filter: blur(8px); white-space: nowrap; box-shadow: 0 3px 15px #0003; }
.hotspot:hover,.hotspot.active { background: var(--red); border-color: #d9b890; }
.hotspot-ring { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #ebd5a4aa; border-radius: 50%; }
.hotspot-ring::before { content: ""; width: 4px; height: 4px; background: #ecd7aa; border-radius: 50%; }
.hotspot .arrow { font: 12px Georgia,serif; color: #bfb297; margin-left: 5px; }
.detail-panel { position: absolute; z-index: 30; top: 94px; right: 22px; bottom: 118px; width: 334px; max-height: 760px; overflow-y: auto; padding: 29px 27px 23px; background: #f7f2e9f5; border: 1px solid #fff6; box-shadow: 0 10px 45px #221a1c30; backdrop-filter: blur(16px); border-radius: 3px; scrollbar-width: thin; scrollbar-color: #c9bba3 transparent; }
.panel-close { position: absolute; right: 14px; top: 11px; font-size: 23px; color: #867964; width: 28px; height: 28px; padding: 0; }
.detail-panel h2 { font: 29px "SimSun",serif; letter-spacing: 4px; margin: 0 0 10px; }
.detail-type { font-size: 10px; color: #ad9271; letter-spacing: 1.5px; margin: 0 0 19px; }
.detail-preview { position: relative; margin: 0 0 19px; height: 164px; border: 1px solid #d9c9ad; background: #c4b49a; overflow: hidden; border-radius: 2px; }
#detail-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; transition: transform .4s; }
#detail-image.crop-main { transform: scale(1.3); object-position: 50% 49%; }
#detail-image.crop-left { transform: scale(1.8); object-position: 18% 54%; transform-origin: 18% 54%; }
#detail-image.crop-right { transform: scale(1.8); object-position: 83% 54%; transform-origin: 83% 54%; }
.detail-preview figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 9px; background: linear-gradient(transparent,#261d15a6); color: #fff1d7; font-size: 9px; letter-spacing: 1px; }
.detail-copy { font-size: 12px; line-height: 2; color: #756653; }
.detail-panel dl { padding: 1px 0 10px; margin: 0 0 11px; }
.detail-panel dl>div { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 11px; }
.detail-panel dt { color: #a38e71; flex: 0 0 44px; }
.detail-panel dd { margin: 0; color: #5c5040; }
.detail-photo-button { font-size: 11px; padding: 11px 14px; letter-spacing: 1px; }
.detail-actions { display: flex; gap: 8px; margin-top: 8px; }
.outline-button { border: 1px solid #c9bba5; width: 100%; padding: 11px 9px; font-size: 10px; letter-spacing: .3px; margin: 6px 0; border-radius: 2px; }
.outline-button:hover { border-color: var(--red); color: var(--red); }
.model-note { font-size: 9px; color: #a79781; line-height: 1.9; margin: 11px 0 0; }
.tour-progress { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 7px 12px; border: 1px solid #ead7b86b; background: #31281dd9; color: #fff1d4; border-radius: 3px; font-size: 11px; }
.tour-progress button { font-size: 20px; color: inherit; }
dialog { width: min(660px,calc(100vw - 32px)); max-height: 85vh; border: 1px solid #d4c4a5; background: var(--paper); border-radius: 5px; padding: 40px 38px; color: var(--ink); box-shadow: 0 30px 100px #0005; }
dialog::backdrop { background: #1e1b1777; backdrop-filter: blur(6px); }
dialog h2 { font: 29px "SimSun",serif; letter-spacing: 4px; margin: 5px 0 25px; }
dialog p { font-size: 12px; line-height: 2; color: #796951; }
dialog .eyebrow { margin-bottom: 17px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.catalog-item { padding: 22px 14px; text-align: left; border: 1px solid #d8cbb6; background: #eee6d7; border-radius: 3px; }
.catalog-item:hover { border-color: var(--red); background: #e6d8c0; }
.catalog-item .item-num { font: 11px Georgia,serif; color: #a58d67; }
.catalog-item .item-symbol { display: block; font: 40px "KaiTi",serif; color: var(--red); margin: 27px 0 24px; }
.catalog-item strong { display: block; font: 18px "SimSun",serif; letter-spacing: 2px; }
.catalog-item small { display: block; font-size: 9px; line-height: 1.8; color: #968164; margin-top: 10px; }
.help-list { display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: 12px; line-height: 1.8; }
.help-list dt { color: var(--red); }
.help-list dd { margin: 0; color: #796951; }
.modal-action { margin-top: 22px; }
/* Large exhibit photographs use the same quiet museum frame. */
dialog.photo-mode { width: min(1120px,calc(100vw - 40px)); padding: 30px 32px 23px; background: #f5eee0; }
.photo-viewer { display: flex; flex-direction: column; gap: 12px; }
.photo-viewer h2 { font-size: 24px; margin: 0 0 3px; }
.photo-stage,.photo-viewer-stage { position: relative; min-height: 220px; max-height: 60vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #2b241d; border: 1px solid #c8b592; border-radius: 2px; touch-action: none; }
.photo-stage img,.photo-viewer-stage img,.photo-image { display: block; width: 100%; max-height: 60vh; object-fit: contain; transform-origin: center center; cursor: zoom-in; user-select: none; }
.photo-stage.zoomed img,.photo-viewer-stage.zoomed img { cursor: grab; }
.photo-toolbar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.photo-toolbar button { border: 1px solid #c9bba5; border-radius: 2px; padding: 8px 12px; min-width: 36px; font-size: 11px; }
.photo-toolbar button:hover { color: var(--red); border-color: var(--red); }
.photo-toolbar span { font-size: 10px; color: #a18a67; min-width: 42px; text-align: center; }
.photo-caption { font-size: 10px !important; color: #9a8464 !important; text-align: center; margin: 0; }
#toast { position: absolute; z-index: 100; bottom: 139px; left: 50%; transform: translate(-50%,10px); background: #332a20ef; color: #f5e5c9; padding: 11px 20px; font-size: 12px; border: 1px solid #c2a26a55; border-radius: 4px; opacity: 0; transition: .25s; pointer-events: none; max-width: 80vw; text-align: center; line-height: 1.8; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#loading { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #f2ebde; transition: opacity .7s; }
.loading-seal { font: 40px "KaiTi",serif; background: var(--red); color: #f8e8ce; width: 65px; height: 72px; display: grid; place-items: center; outline: 1px solid #f1dcbf; outline-offset: -6px; }
.loading-line { height: 1px; width: 100px; background: #b39367; margin-top: 20px; animation: load-pulse 1s ease-in-out infinite; }
#loading h1 { font: 31px "SimSun",serif; letter-spacing: 8px; margin: 27px 0 10px; }
#loading p { font-size: 11px; color: #a38e6e; letter-spacing: 2px; }
#loading.done { opacity: 0; pointer-events: none; }
@keyframes load-pulse { 50% { opacity: .15; transform: scaleX(.5); } }
body.embed .site-header { display: none; }
body.embed #viewport,body.embed .scene-ui { top: 0; }
body.embed .intro-card,body.embed .location,body.embed .bottom-caption { display: none; }
body.embed .bottom-dock { bottom: 20px; }
body.embed .minimap { bottom: 105px; }
body.embed .detail-panel { top: 20px; bottom: 95px; }
body.vr-session .scene-ui,body.vr-session .site-header,body.vr-session .detail-panel { visibility: hidden; }
@media (min-width:1650px) {
  .intro-card { left: 48px; bottom: 165px; width: 266px; padding: 25px; }
  .intro-card h1 { font-size: 40px; }
  .intro-text { font-size: 12px; }
  .minimap { bottom: 165px; }
  .bottom-dock { bottom: 57px; }
}
@media (max-width:1080px) {
  .header-middle { display: none; }
  .intro-card { width: 230px; left: 24px; padding: 20px; bottom: 135px; }
  .intro-card h1 { font-size: 34px; }
  .intro-text { font-size: 10px; }
  .minimap { right: 24px; width: 130px; bottom: 135px; }
  .dock-button { padding: 10px 12px; }
  .location { left: 24px; }
  .site-header { padding: 0 24px; }
}
@media (max-width:700px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 6px; letter-spacing: 1px; }
  .seal { height: 35px; width: 32px; font-size: 23px; }
  .brand { gap: 9px; }
  nav { gap: 14px; }
  nav button { font-size: 10px; }
  nav #about-btn { display: none; }
  #viewport,.scene-ui { top: 64px; }
  .header-middle { display: none; }
  .location { top: 18px; left: 16px; font-size: 8px; padding: 8px 10px; letter-spacing: .3px; }
  .location span:last-child,.location-divider { display: none; }
  .scene-tools { right: 15px; top: 18px; gap: 6px; }
  .round-tool { width: 30px; height: 30px; }
  .round-tool svg { width: 15px; height: 15px; }
  .intro-card { bottom: 130px; left: 16px; width: 186px; padding: 16px 17px 12px; }
  .intro-card .eyebrow { font-size: 6px; letter-spacing: 1.2px; margin-bottom: 11px; }
  .intro-card h1 { font-size: 27px; margin-bottom: 12px; }
  .card-rule { margin-bottom: 12px; }
  .intro-text { font-size: 9px; margin-bottom: 14px; line-height: 1.9; }
  .primary-button { font-size: 10px; padding: 9px 12px; }
  .subtle { font-size: 7px; margin-top: 10px; letter-spacing: 0; }
  .minimap { width: 91px; right: 16px; bottom: 130px; padding: 10px 7px 5px; }
  .minimap-title { font-size: 7px; }
  .minimap-title span:last-child { display: none; }
  .minimap svg { height: 87px; }
  .bottom-dock { bottom: 45px; gap: 1px; padding: 7px 6px; width: calc(100% - 30px); justify-content: space-between; }
  .dock-button { padding: 8px 6px; flex-direction: column; gap: 6px; font-size: 8px; flex: 1; }
  .dock-divider { margin: 0 2px; height: 27px; }
  .dock-button svg { width: 16px; height: 16px; }
  .bottom-caption { left: 18px; right: 18px; bottom: 18px; font-size: 7px; letter-spacing: 1px; }
  .numbering { font-size: 7px; letter-spacing: 1px; }
  .hotspot { font-size: 8px; padding: 6px 7px; gap: 5px; }
  .hotspot-ring { width: 13px; height: 13px; }
  .hotspot .arrow { display: none; }
  .detail-panel { top: 82px; right: 12px; left: 12px; bottom: 121px; width: auto; max-height: 70vh; padding: 25px 23px 20px; overflow: auto; }
  .detail-panel h2 { font-size: 26px; }
  .detail-copy { font-size: 11px; line-height: 1.95; }
  .detail-preview { height: 146px; margin-bottom: 15px; }
  .detail-panel dl>div { font-size: 10px; padding: 8px 0; }
  .detail-actions { gap: 8px; }
  .detail-actions .outline-button { font-size: 10px; margin: 4px 0 0; padding: 10px 6px; }
  .model-note { margin-top: 10px; font-size: 8px; }
  .tour-progress { top: 62px; font-size: 9px; white-space: nowrap; }
  .catalog-grid { gap: 8px; }
  .catalog-item { padding: 15px 9px; }
  .catalog-item .item-symbol { font-size: 30px; margin: 23px 0; }
  .catalog-item strong { font-size: 14px; }
  .catalog-item small { font-size: 8px; }
  dialog { padding: 32px 24px; }
  dialog h2 { font-size: 25px; }
  dialog.photo-mode { width: calc(100vw - 20px); padding: 35px 13px 18px; }
  .photo-viewer h2 { font-size: 22px; }
  .photo-toolbar { gap: 8px; flex-wrap: wrap; }
  .photo-toolbar button { font-size: 10px; padding: 7px 10px; }
  .help-list { grid-template-columns: 85px 1fr; gap: 10px; font-size: 11px; }
  #toast { font-size: 10px; bottom: 113px; }
}
@media (max-height:600px) and (min-width:701px) {
  .intro-card { bottom: 115px; padding: 17px 20px; }
  .intro-card h1 { font-size: 30px; margin-bottom: 11px; }
  .intro-card .eyebrow { margin-bottom: 11px; }
  .intro-text { margin-bottom: 13px; line-height: 1.8; }
  .minimap { bottom: 115px; width: 116px; }
  .minimap svg { height: 106px; }
  .detail-panel { bottom: 104px; }
  .bottom-dock { bottom: 34px; }
  .bottom-caption { bottom: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.zoom-controls{position:absolute;right:35px;top:82px;display:flex;align-items:center;flex-direction:column;gap:3px;background:#f5efdfed;border:1px solid #ffffff99;border-radius:3px;padding:4px;pointer-events:auto;box-shadow:0 3px 16px #211b1622}
.intro-card{top:91px;bottom:auto;width:235px;padding:22px}.intro-card h1{font-size:34px;margin-bottom:15px}.intro-card .eyebrow{font-size:7px;margin-bottom:14px}.intro-text{font-size:10px;margin-bottom:18px}
@media(max-height:600px){.minimap{display:none}.intro-card{display:none!important}.bottom-dock{bottom:26px;padding:6px 8px}.bottom-caption{bottom:9px}.detail-panel{top:85px;bottom:94px}.location{top:18px}.scene-tools{top:18px}.zoom-controls{top:65px}}
@media(max-width:1100px){.intro-card{display:none!important}}
.zoom-controls button{width:30px;height:28px;font:20px Georgia,serif}.zoom-controls button:hover{color:var(--red);background:#e5d6bd}.zoom-controls span{font-size:8px;color:#a28b67;padding:2px 0}
.panorama-detail-image{object-fit:contain!important;object-position:center!important;background:#e5dccb}.download-panorama{text-decoration:none;margin-top:20px}.catalog-grid{grid-template-columns:repeat(4,1fr)}.catalog-item strong{font-size:16px;letter-spacing:1px}.catalog-item small{font-size:8px}.hotspot{background:#38291ee0}.hotspot-ring{background:#a0523c}.photo-stage{touch-action:none}.photo-stage img{transition:none;will-change:transform}
@media(max-width:700px){.zoom-controls{right:16px;top:65px}.zoom-controls button{width:26px;height:26px}.catalog-grid{grid-template-columns:repeat(2,1fr)}.catalog-item .item-symbol{margin:15px 0}.catalog-item strong{font-size:16px}.intro-card{bottom:117px}.minimap{bottom:117px}.hotspot{padding:7px 10px}.zoom-controls{z-index:5}}

/* The opening is a quiet museum antechamber, separate from the panorama. */
.entrance { position: fixed; inset: 0; z-index: 150; color: #ebe4d5; overflow: hidden; background: radial-gradient(ellipse at 74% 46%,#31382f 0,#222722 28%,#171b1a 64%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .75s ease,visibility .75s; }
body.at-entrance .entrance { opacity: 1; visibility: visible; pointer-events: auto; }
body.at-entrance .site-header,body.at-entrance .scene-ui,body.at-entrance #viewport,body.at-entrance .detail-panel { visibility: hidden; }
body.at-entrance #loading { display: none; }
.entrance::before { content: ""; position: absolute; inset: 18px; border: 1px solid #ba9d6226; pointer-events: none; }
.entrance::after { content: ""; position: absolute; top: 0; bottom: 0; left: 54%; width: 1px; background: linear-gradient(transparent,#bda66b0d 25%,#bda66b12 60%,transparent); pointer-events: none; }
.entrance-grain { position: absolute; inset: 0; opacity: .055; background-image: repeating-linear-gradient(0deg,transparent 0 3px,#decba34d 3px 4px),repeating-linear-gradient(90deg,transparent 0 4px,#decba326 4px 5px); pointer-events: none; }
.entrance-header { position: absolute; z-index: 5; top: 40px; left: 7.4%; right: 7.4%; display: flex; align-items: center; justify-content: space-between; }
.entrance-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #e7ddc7; font: 22px "SimSun","Songti SC",serif; letter-spacing: 4px; }
.entrance-brand small { display: block; font: 9px "Microsoft YaHei",sans-serif; letter-spacing: 2px; color: #9d927b; margin-top: 7px; }
.entrance-seal { width: 35px; height: 40px; display: grid; place-items: center; background: #873e2f; border: 1px solid #d49b6847; outline: 1px solid #d5b69780; outline-offset: -5px; color: #e4c9a3; font: 26px "KaiTi",serif; letter-spacing: 0; border-radius: 1px; }
.entrance-header-note { color: #a1967d; font: 11px "SimSun",serif; letter-spacing: 4px; }
.entrance-body { position: absolute; z-index: 3; left: 9%; top: 50%; width: 43%; max-width: 560px; transform: translateY(-46%); }
.entrance-kicker { margin: 0 0 25px; color: #c0ad85; font-size: 12px; letter-spacing: 4px; display: flex; align-items: center; gap: 12px; }
.entrance-kicker>span { width: 26px; height: 1px; background: #c1a368; }
.entrance-title { font: clamp(78px,8.2vw,130px)/.96 "SimSun","Songti SC","Noto Serif SC",serif; font-weight: 400; letter-spacing: .17em; margin: 0 0 30px -.04em; }
.entrance-title>span { display: block; }
.entrance-title>span+span { color: #c8ae78; margin-top: 11px; }
.entrance-poem { font: 20px "SimSun","Songti SC",serif; letter-spacing: 3px; color: #d1c4a6; margin: 0 0 19px; }
.entrance-description { color: #999a88; font-size: 11px; letter-spacing: .7px; line-height: 2; margin: 0 0 29px; }
.entrance-actions { display: flex; gap: 22px; align-items: center; }
.enter-gallery { width: 219px; height: 53px; border: 1px solid #c8b17b; background: linear-gradient(110deg,#cbb986,#b59a60); color: #282a23; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: 3px; transition: background .25s,box-shadow .25s,transform .25s; border-radius: 1px; }
.enter-gallery>svg { width: 31px; height: 16px; stroke-width: 1.15; transition: transform .25s; }
.enter-gallery:not(:disabled):hover { background: #d7c493; box-shadow: 0 7px 35px #bba46720; transform: translateY(-2px); }
.enter-gallery:not(:disabled):hover svg { transform: translateX(4px); }
.enter-gallery:disabled { opacity: .58; cursor: progress; }
.entrance-sound { display: grid; grid-template-columns: 20px auto; column-gap: 8px; row-gap: 4px; align-items: center; text-align: left; padding: 8px 0; font-size: 10px; letter-spacing: .8px; color: #bbb092; }
.entrance-sound svg { grid-row: span 2; width: 19px; height: 19px; stroke-width: 1.1; }
.entrance-sound-state { font-size: 8px; color: #7e8c7a; letter-spacing: 1px; }
.entrance-sound[aria-pressed="false"] { color: #8a8878; }
.entrance-sound[aria-pressed="false"] .entrance-sound-state { color: #8a8878; }
.entrance-sound:hover { color: #dfc591; }
.entrance-status { display: block; margin-top: 13px; color: #7e8476; font-size: 9px; letter-spacing: 1px; min-height: 14px; }
.entrance-art { position: absolute; z-index: 2; right: 3%; top: 100px; bottom: 100px; width: 53%; display: flex; align-items: center; justify-content: center; }
.entrance-art img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 25px 27px #0a0b0b80); user-select: none; }
.entrance-halo { position: absolute; width: 69%; aspect-ratio: 1; border: 1px solid #c1a7711c; border-radius: 50%; box-shadow: 0 0 0 29px #b39a6804,0 0 0 30px #c1a77110; background: radial-gradient(circle,#cbb98f15,transparent 68%); }
.entrance-cloud { position: absolute; width: 180px; height: 71px; color: #a48a53; opacity: .2; stroke-width: 1; }
.entrance-cloud-top { top: 15%; right: 2%; }
.entrance-cloud-bottom { bottom: 12%; left: 4%; transform: scaleX(-1); }
.entrance-art-caption { position: absolute; z-index: 3; bottom: -27px; left: 0; right: 0; text-align: center; font: 10px "SimSun",serif; color: #8e8f7c; letter-spacing: 5px; }
.entrance-footer { position: absolute; z-index: 3; left: 7.4%; right: 7.4%; bottom: 36px; border-top: 1px solid #b59d6929; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.entrance-features { display: flex; gap: 43px; align-items: center; }
.entrance-features>span { color: #a8a28b; font-size: 10px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.entrance-features i { display: inline-block; position: relative; width: 12px; height: 12px; color: #a99362; }
.feature-ring { border: 1px solid #a99362; border-radius: 50%; }
.feature-ring::after { content: ""; width: 3px; height: 3px; background: #a99362; border-radius: 50%; position: absolute; right: -1px; top: 0; }
.feature-diamond { border: 1px solid #a99362; transform: rotate(45deg) scale(.68); }
.feature-wave::before { content: ""; position: absolute; height: 7px; width: 2px; left: 2px; top: 3px; background: #a99362; box-shadow: 4px -2px #a99362,8px 0 #a99362; }
.entrance-footer-note { font: 10px "SimSun",serif; color: #757c6e; letter-spacing: 3px; }
.entrance button:focus-visible,.entrance a:focus-visible { outline-color: #d6bb83; }
.return-entrance { color: #8c7857; }
.return-entrance span { display: inline-block; margin-right: 5px; font-size: 15px; }
/* Inside, small warm-paper controls leave the artwork in view. */
.site-header { background: #f4efe4; }
.intro-card { width: 212px; padding: 18px; border-radius: 1px; background: #f4eee1e8; box-shadow: 0 3px 22px #30271512; }
.intro-card h1 { font-size: 29px; letter-spacing: 3px; }
.intro-card .eyebrow { font-size: 9px; letter-spacing: 2px; }
.intro-text { font-size: 9px; }
.intro-card .primary-button { font-size: 10px; padding: 10px 12px; }
.intro-card .subtle { font-size: 8px; }
.bottom-dock { border-radius: 2px; padding: 6px 8px; background: #f6f0e4f2; box-shadow: 0 5px 28px #211c171f; }
.dock-button { border-radius: 1px; padding: 10px 13px; }
.minimap { border-radius: 1px; width: 125px; padding: 11px 9px 6px; background: #f4eee1e6; }
.minimap svg { height: 112px; }
.detail-panel { border-radius: 1px; background: #f7f1e7f5; }
@media (max-width:1080px) and (min-width:701px) {
  .entrance-header { top: 31px; left: 6%; right: 6%; }
  .entrance-body { left: 7%; width: 44%; }
  .entrance-title { font-size: 89px; }
  .entrance-kicker { font-size: 10px; letter-spacing: 2px; }
  .entrance-poem { font-size: 17px; letter-spacing: 2px; }
  .entrance-description { font-size: 10px; }
  .entrance-actions { gap: 13px; }
  .enter-gallery { width: 192px; }
  .entrance-art { right: 1%; width: 54%; }
  .entrance-features { gap: 25px; }
  .entrance-cloud { width: 130px; height: 51px; }
}
@media (min-width:701px) and (max-height:720px) {
  .entrance-header { top: 29px; }
  .entrance-body { transform: translateY(-42%); }
  .entrance-title { font-size: 83px; margin-bottom: 23px; }
  .entrance-kicker { margin-bottom: 20px; }
  .entrance-poem { font-size: 18px; margin-bottom: 15px; }
  .entrance-description { margin-bottom: 22px; }
  .entrance-art { top: 80px; bottom: 85px; }
  .entrance-footer { bottom: 29px; padding-top: 15px; }
}
@media (min-width:701px) and (max-height:560px) {
  .entrance-header { top: 23px; }
  .entrance-brand { font-size: 17px; }
  .entrance-seal { width: 29px; height: 33px; font-size: 22px; }
  .entrance-body { top: 51%; transform: translateY(-44%); }
  .entrance-title { font-size: 64px; margin-bottom: 17px; }
  .entrance-kicker { font-size: 9px; margin-bottom: 15px; }
  .entrance-poem { font-size: 15px; margin-bottom: 11px; }
  .entrance-description { font-size: 9px; margin-bottom: 16px; }
  .enter-gallery { height: 43px; }
  .entrance-status { margin-top: 8px; }
  .entrance-footer { bottom: 23px; padding-top: 12px; }
  .entrance-footer-note { display: none; }
}
@media (max-width:700px) {
  .entrance { background: radial-gradient(ellipse at 55% 50%,#2e362c,#202621 48%,#171b1a 82%); }
  .entrance::before { inset: 11px; }
  .entrance::after { display: none; }
  .entrance-header { top: 25px; left: 28px; right: 28px; }
  .entrance-brand { font-size: 19px; gap: 10px; letter-spacing: 3px; }
  .entrance-brand small { font-size: 8px; letter-spacing: 1.5px; margin-top: 5px; }
  .entrance-seal { width: 29px; height: 34px; font-size: 23px; }
  .entrance-header-note { display: none; }
  .entrance-body { display: contents; }
  .entrance-kicker { position: absolute; z-index: 4; top: 103px; left: 29px; right: 29px; font-size: 9px; letter-spacing: 2px; margin: 0; gap: 9px; }
  .entrance-kicker>span { width: 19px; }
  .entrance-title { position: absolute; z-index: 4; top: 130px; left: 25px; right: 25px; margin: 0; font-size: clamp(45px,12.5vw,72px); letter-spacing: .09em; line-height: 1; white-space: nowrap; }
  .entrance-title>span { display: inline; }
  .entrance-title>span+span { margin-top: 0; }
  .entrance-poem { position: absolute; z-index: 4; top: 197px; left: 29px; right: 29px; font-size: 15px; letter-spacing: 2px; margin: 0; }
  .entrance-description { position: absolute; z-index: 4; top: 225px; left: 29px; right: 25px; font-size: 9px; letter-spacing: .3px; line-height: 1.9; margin: 0; }
  .entrance-art { top: 269px; bottom: 171px; left: 13px; right: 13px; width: auto; }
  .entrance-art img { width: 100%; height: 100%; }
  .entrance-halo { width: 64%; max-height: 100%; }
  .entrance-cloud { width: 103px; height: 42px; opacity: .15; }
  .entrance-cloud-top { top: 7%; right: 2%; }
  .entrance-cloud-bottom { bottom: 4%; left: 1%; }
  .entrance-art-caption { display: none; }
  .entrance-actions { position: absolute; z-index: 4; left: 29px; right: 29px; bottom: 92px; gap: 17px; }
  .enter-gallery { flex: 1; min-width: 0; width: auto; height: 49px; padding: 0 18px; font-size: 12px; letter-spacing: 3px; }
  .entrance-sound { flex-shrink: 0; column-gap: 6px; font-size: 9px; }
  .entrance-sound svg { width: 17px; height: 17px; }
  .entrance-sound-state { font-size: 7px; }
  .entrance-status { position: absolute; z-index: 4; bottom: 64px; left: 29px; right: 29px; margin: 0; font-size: 8px; }
  .entrance-footer { left: 29px; right: 29px; bottom: 24px; padding-top: 14px; }
  .entrance-features { width: 100%; justify-content: space-between; gap: 8px; }
  .entrance-features>span { font-size: 8px; letter-spacing: .4px; gap: 6px; }
  .entrance-features i { width: 10px; height: 10px; }
  .entrance-footer-note { display: none; }
  .return-entrance { font-size: 9px; }
  .return-entrance span { display: none; }
  nav { gap: 12px; }
  .brand small { letter-spacing: 1.5px; font-size: 7px; }
  .bottom-dock { padding: 6px 5px; border-radius: 2px; }
  .dock-button { padding: 8px 5px; }
  .minimap { width: 88px; padding: 9px 6px 4px; }
  .minimap svg { height: 83px; }
}
@media (max-width:700px) and (max-height:700px) {
  .entrance-header { top: 21px; }
  .entrance-kicker { top: 91px; }
  .entrance-title { top: 115px; font-size: clamp(43px,11.8vw,65px); }
  .entrance-poem { top: 174px; font-size: 14px; }
  .entrance-description { top: 199px; font-size: 8px; }
  .entrance-art { top: 239px; bottom: 150px; }
  .entrance-actions { bottom: 76px; }
  .enter-gallery { height: 43px; }
  .entrance-status { bottom: 51px; }
  .entrance-footer { bottom: 19px; padding-top: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .entrance,.enter-gallery,.enter-gallery>svg { transition: none; }
}
.entrance.entrance-leaving,.entrance.entering { opacity: 0; pointer-events: none; }
body.gallery-entering .site-header,body.gallery-entering .scene-ui { animation: gallery-arrive .7s ease both; }
@keyframes gallery-arrive { from { opacity: 0; } to { opacity: 1; } }
.audio-player { position: absolute; z-index: 36; right: 86px; top: 82px; width: 278px; padding: 13px 14px 11px; color: #5b4c37; background: #f5f0e4f5; border: 1px solid #d8c8a7ba; border-radius: 2px; box-shadow: 0 7px 28px #231d1621; backdrop-filter: blur(16px); pointer-events: auto; }
.voice-wave { position: absolute; top: 18px; left: 14px; width: 17px; height: 17px; display: flex; align-items: center; gap: 2px; color: var(--red); }
.voice-wave>i,.voice-wave>span { display: block; width: 2px; height: 8px; background: currentColor; border-radius: 1px; animation: voice-wave 1.1s ease-in-out infinite; }
.voice-wave>i:nth-child(2),.voice-wave>span:nth-child(2) { height: 14px; animation-delay: -.5s; }
.voice-wave>i:nth-child(3),.voice-wave>span:nth-child(3) { height: 10px; animation-delay: -.2s; }
.voice-wave>i:nth-child(4),.voice-wave>span:nth-child(4) { height: 6px; animation-delay: -.7s; }
.audio-player.paused .voice-wave>i,.audio-player.paused .voice-wave>span { animation-play-state: paused; opacity: .55; }
@keyframes voice-wave { 50% { transform: scaleY(.45); } }
#audio-track-title { display: block; margin: 0; padding: 0 55px 0 25px; font-size: 10px; font-weight: 400; line-height: 1.8; letter-spacing: .5px; min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-player .audio-caption { padding-left: 25px; color: #9b8764; font-size: 8px; letter-spacing: 1px; margin-bottom: 3px; }
#audio-pause,#audio-close { position: absolute; top: 11px; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; color: #79633f; border-radius: 50%; }
#audio-pause { right: 38px; border: 1px solid #baa78188; }
#audio-close { right: 9px; color: #9c8a6b; font-size: 21px; }
#audio-pause:hover,#audio-close:hover { color: var(--red); background: #e9ddc7; }
#audio-pause svg,#audio-close svg { width: 13px; height: 13px; stroke-width: 1.4; }
#audio-seek { width: 100%; height: 3px; margin: 11px 0 8px; accent-color: #9b7e4f; cursor: pointer; display: block; }
#audio-current,#audio-duration { font: 8px Georgia,serif; color: #9b8765; letter-spacing: .3px; }
#audio-duration { float: right; }
.audio-player .audio-times { display: flex; align-items: center; justify-content: space-between; }
@media (max-width:700px) {
  .audio-player { top: 108px; left: 16px; right: 16px; width: auto; padding: 12px 14px 9px; }
  #audio-track-title { font-size: 10px; }
  #audio-pause,#audio-close { width: 30px; height: 30px; top: 9px; }
  #audio-pause { right: 43px; }
  #audio-close { right: 9px; }
  #audio-track-title { padding-right: 64px; }
}
@media (prefers-reduced-motion:reduce) {
  .voice-wave>i,.voice-wave>span,body.gallery-entering .site-header,body.gallery-entering .scene-ui { animation: none; }
}
@media (max-height:500px) and (min-aspect-ratio:3/2) {
  .entrance-header { top: 19px; left: 5%; right: 5%; }
  .entrance-brand { font-size: 17px; gap: 9px; }
  .entrance-brand small { font-size: 7px; margin-top: 4px; }
  .entrance-seal { width: 26px; height: 31px; font-size: 21px; }
  .entrance-header-note { display: none; }
  .entrance-body { display: block; position: absolute; left: 6%; top: 86px; width: 44%; max-width: none; transform: none; }
  .entrance-kicker { position: static; margin: 0 0 13px; font-size: 8px; letter-spacing: 1px; gap: 8px; }
  .entrance-kicker>span { width: 16px; }
  .entrance-title { position: static; font-size: clamp(36px,6vw,48px); letter-spacing: .08em; line-height: 1; margin: 0 0 15px; white-space: nowrap; }
  .entrance-title>span { display: inline; }
  .entrance-title>span+span { margin-top: 0; }
  .entrance-poem { position: static; font-size: 12px; letter-spacing: 1px; margin: 0 0 10px; }
  .entrance-description { position: static; font-size: 8px; letter-spacing: 0; line-height: 1.8; margin: 0 0 16px; }
  .entrance-actions { position: static; gap: 12px; }
  .enter-gallery { flex: none; width: 151px; height: 41px; padding: 0 14px; font-size: 10px; letter-spacing: 2px; }
  .enter-gallery>svg { width: 25px; }
  .entrance-sound { font-size: 8px; column-gap: 5px; }
  .entrance-sound svg { width: 15px; height: 15px; }
  .entrance-status { position: static; font-size: 7px; margin: 8px 0 0; }
  .entrance-art { left: auto; right: 3%; top: 60px; bottom: 28px; width: 47%; }
  .entrance-art-caption { display: none; }
  .entrance-footer { display: none; }
}
@media (max-height:340px) and (min-aspect-ratio:3/2) {
  .entrance-body { top: 74px; }
  .entrance-kicker { margin-bottom: 9px; }
  .entrance-title { font-size: 36px; margin-bottom: 10px; }
  .entrance-poem { font-size: 11px; margin-bottom: 9px; }
  .entrance-description { margin-bottom: 10px; line-height: 1.65; }
  .enter-gallery { height: 36px; }
  .entrance-art { top: 53px; bottom: 23px; }
}
/* Final accessibility and compact-screen corrections. */
.entrance { isolation: isolate; }
.entrance-art { mix-blend-mode: lighten; }
input:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.audio-player .audio-caption { margin: 0 0 3px; line-height: 1.5; }
#audio-seek { height: 20px; margin: 4px 0 1px; }
.entrance-sound { min-height: 44px; }
@media (max-width:700px) {
  .audio-player { top: 65px; right: 68px; }
  #audio-pause,#audio-close { width: 44px; height: 44px; top: 5px; }
  #audio-pause { right: 48px; }
  #audio-close { right: 4px; }
  #audio-track-title { padding-right: 86px; }
  .enter-gallery { min-height: 44px; }
}
/* A short portrait window scrolls instead of squeezing the whole crown away. */
@media (max-width:700px) and (max-height:520px) and (max-aspect-ratio:1/1) {
  .entrance { overflow-y: auto; overscroll-behavior: contain; }
  .entrance::before { bottom: auto; height: 572px; }
  .entrance-art { top: 239px; bottom: auto; height: 190px; }
  .entrance-actions { top: 452px; bottom: auto; }
  .entrance-status { top: 511px; bottom: auto; }
  .entrance-footer { top: 547px; bottom: auto; padding-bottom: 19px; }
}
/* Let the player sit above a detail panel without raising every scene control. */
.scene-ui { z-index: auto; }
@media (min-width:701px) {
  body:has(#detail:not([hidden])) .audio-player { left: 38px; right: auto; }
}
@media (max-width:700px) {
  body:has(#audio-player:not([hidden])) #detail:not([hidden]) { top: 245px; bottom: 121px; max-height: none; }
  body:has(#audio-player:not([hidden])) .tour-progress { top: 175px; }
  body:has(#audio-player:not([hidden])):has(#tour-progress:not([hidden])) #detail:not([hidden]) { top: 290px; }
}
@media (max-height:600px) and (min-aspect-ratio:3/2) {
  #detail,body:has(#audio-player:not([hidden])) #detail:not([hidden]),body:has(#audio-player:not([hidden])):has(#tour-progress:not([hidden])) #detail:not([hidden]) { left: auto; right: 12px; top: 82px; bottom: 94px; width: 40%; max-height: none; }
  .audio-player,body:has(#detail:not([hidden])) .audio-player { left: 24px; right: auto; top: 65px; width: 32%; max-width: 278px; }
  body:has(#audio-player:not([hidden])) .tour-progress { top: 62px; }
}
#audio-seek { height: 24px; }
@media (pointer:coarse) {
  .enter-gallery { min-height: 44px; }
  #audio-pause,#audio-close { width: 44px; height: 44px; top: 5px; }
  #audio-pause { right: 48px; }
  #audio-close { right: 4px; }
  #audio-track-title { padding-right: 86px; }
}
/* Projected floor signs change to an independent close viewing point. */
.node-link { position: absolute; left: 0; top: 0; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; pointer-events: auto; color: #fff2d5; font-size: 11px; letter-spacing: 1px; white-space: nowrap; padding: 8px; text-shadow: 0 1px 6px #21160b; }
.node-link-ring { display: grid; place-items: center; width: 45px; height: 32px; border: 1px solid #f2d294c7; border-radius: 50%; background: #72523580; box-shadow: 0 0 0 6px #c7a56520,0 3px 15px #18130b44; font-size: 21px; transition: background .2s,transform .2s; }
.node-link>span:last-child { background: #2c2316b8; border: 1px solid #d6b8756b; border-radius: 2px; padding: 6px 10px; }
.node-link:hover .node-link-ring { background: #9b7344c2; transform: translateY(-3px); }
.node-nav { position: absolute; z-index: 8; bottom: 121px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 4px 12px; color: #e4d3ae; border: 1px solid #c8b38a70; background: #29251ddd; backdrop-filter: blur(9px); border-radius: 2px; pointer-events: auto; }
.node-nav button { color: #d6c7a8; padding: 7px 4px; font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.node-nav button.active,.node-nav button:hover { color: #fff1cf; }
.node-nav button.active::after { content: ""; display: block; height: 1px; background: #bda062; margin-top: 3px; }
.node-nav>span { color: #7f7259; font-size: 9px; align-self: center; }
.node-status { position: absolute; z-index: 38; left: 50%; top: 79px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 10px 16px; color: #f0dfba; background: #27241de8; border: 1px solid #b89a6099; border-radius: 2px; display: flex; gap: 13px; align-items: center; font-size: 11px; line-height: 1.7; pointer-events: auto; }
#node-retry { color: #efd6a2; padding: 6px; font-size: 10px; white-space: nowrap; border-left: 1px solid #b89a6070; }
.detail-stories { margin: 12px 0 22px; }
.repertoire-story { border: 1px solid #ccb998; border-left: 2px solid #a4814e; padding: 14px 13px; background: #ece1ce75; margin-top: 12px; }
.repertoire-story .story-play { font-size: 10px; color: #9b6d42; letter-spacing: 1px; margin: 0 0 7px; }
.repertoire-story h3 { font: 18px "SimSun",serif; letter-spacing: 1px; margin: 0 0 12px; }
.repertoire-story p { font-size: 11px; line-height: 1.95; color: #756653; }
.repertoire-story dl { padding: 0; margin: 0; }
.repertoire-story dl>div { border: 0; padding: 3px 0; font-size: 10px; gap: 12px; }
.repertoire-story dt { flex-basis: 32px; }
.repertoire-story a,.repertoire-story small { color: #a08050; font-size: 9px; line-height: 1.8; text-decoration: none; overflow-wrap: anywhere; }
.repertoire-story a:hover { text-decoration: underline; }
@media (max-width:700px) {
  .node-nav { bottom: 118px; gap: 8px; padding: 3px 10px; }
  .node-nav button { font-size: 9px; padding: 7px 4px; }
  .minimap { display: none; }
  .node-link { font-size: 9px; gap: 6px; }
  .node-link-ring { width: 39px; height: 29px; font-size: 18px; }
  .node-status { top: 68px; font-size: 10px; width: max-content; padding: 8px 12px; }
}
@media (max-height:600px) and (min-aspect-ratio:3/2) {
  .node-nav { bottom: 92px; }
  .node-status { top: 14px; }
}
body.embed .node-nav { bottom: 91px; }
/* Original photographs and hands-on making footage share the exhibit frame. */
.detail-media { margin: 22px 0; }
.detail-media h3 { color: #725c3c; font: 17px "SimSun","Songti SC",serif; letter-spacing: 1px; margin: 0 0 10px; }
.media-section-note { color: #9a876c; font-size: 10px; line-height: 1.8; margin: 0 0 12px; }
.reference-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.reference-card { padding: 0; min-width: 0; text-align: left; border: 1px solid #d5c2a2; background: #eee5d5; border-radius: 2px; overflow: hidden; }
.reference-card img { width: 100%; height: 106px; display: block; object-fit: contain; background: #2b261f; }
.reference-card span { display: block; font-size: 10px; color: #806a48; line-height: 1.65; padding: 7px 8px; }
.reference-card:hover,.reference-card:focus-visible { border-color: #9c7846; background: #e9dbc2; }
.craft-video-list { display: grid; gap: 10px; }
.craft-video-card { display: flex; align-items: stretch; gap: 10px; padding: 8px; border: 1px solid #d0bb95; border-radius: 2px; background: #e9dfcf99; text-align: left; }
.craft-video-card:hover { border-color: #987343; background: #e4d5bd; }
.video-thumbnail { position: relative; display: block; width: 93px; min-height: 71px; flex: 0 0 93px; overflow: hidden; background: #2b261f; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 23px; color: #fff0cf; background: #21170d44; text-shadow: 0 1px 6px #000; }
.video-card-copy { display: flex; flex-direction: column; min-width: 0; padding: 1px 0; gap: 5px; }
.video-card-copy strong { color: #71583a; font-size: 11px; line-height: 1.65; font-weight: 500; }
.video-card-copy small { color: #8e7c63; font-size: 9px; line-height: 1.8; }
.video-card-copy em { color: #a17a43; font-size: 9px; font-style: normal; line-height: 1.7; }
dialog.video-mode { width: min(1000px,calc(100vw - 40px)); padding: 32px; overflow: auto; background: #f5eee0; }
.video-viewer h2 { font-size: 25px; letter-spacing: 2px; margin-bottom: 11px; }
.video-viewer .video-description { color: #8e7654; font-size: 11px; line-height: 1.9; margin: 0 0 16px; }
.video-viewer video { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #17140f; border: 1px solid #b79c6e; }
.video-viewer .video-status { color: #9c8562; font-size: 10px; margin: 12px 0; }
.video-switch { gap: 9px; flex-wrap: wrap; }
.video-switch button { padding: 10px 14px; border: 1px solid #cdb995; border-radius: 2px; font-size: 11px; color: #846b46; line-height: 1.6; }
.video-switch button.active,.video-switch button:hover { color: #fff1d9; border-color: #8b3f30; background: #913f30; }
@media (max-width:700px) {
  dialog.video-mode { width: calc(100vw - 20px); padding: 34px 14px 19px; }
  .video-viewer h2 { font-size: 22px; }
  .video-viewer video { max-height: 48vh; }
  .reference-card img { height: 114px; }
  .video-switch button { flex: 1 1 130px; min-height: 44px; }
  .craft-video-card { min-height: 96px; }
}
@media (max-height:500px) and (min-aspect-ratio:3/2) {
  .video-viewer video { max-height: 50vh; }
  .video-viewer .eyebrow { margin-bottom: 8px; }
  .video-viewer h2 { font-size: 20px; margin-bottom: 8px; }
  .video-viewer .video-description { margin-bottom: 10px; }
}
