:root {
  color-scheme: dark;
  --ink: #111310;
  --surface: #181a16;
  --cream: #f6ecd9;
  --muted: #c6bca8;
  --gold: #e0bb82;
  --line: #d5b4803a;
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ink); color: var(--cream); font: 16px/1.55 var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid #efd49c; outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--gold); text-underline-offset: .22em; }
.museum { min-height: 100svh; display: flex; flex-direction: column; }
.topbar, .footer { display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(22px, 5vw, 80px); }
.topbar { height: 76px; flex: 0 0 76px; border-bottom: 1px solid var(--line); background: #121410; z-index: 3; }
.brand, .top-link, .text-button { background: transparent; border: 0; padding: 0; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-align: left; white-space: nowrap; }
.brand-mark { display: grid; place-content: center; gap: 0; width: 39px; height: 39px; padding-bottom: 1px; border-radius: 5px; border: 1px solid #f6ca9299; outline: 1px solid #6b332a; outline-offset: 2px; background: #843526; color: #f7d5a3; font: 700 14px/.99 var(--serif); }
.brand-mark span { display: block; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 21px/1.13 var(--serif); letter-spacing: .11em; }
.brand small { margin-top: 4px; color: #b9b29e; font-size: 11px; letter-spacing: .13em; }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 3.1vw, 46px); }
.top-link { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.top-link:hover, .text-button:hover { color: var(--cream); }
.journal-button { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: #25241b; color: #f1dec1; font-size: .875rem; white-space: nowrap; }
.journal-button:hover, .flat-button:hover { border-color: #c4a471; }
.journal-button svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.count { color: #dab681; font-size: .77rem; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
main { display: flex; flex: 1; }
.hero { isolation: isolate; width: 100%; min-height: max(665px, calc(100svh - 132px)); position: relative; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 75% 37%, #4b6355, #251c15 50%, #161714 80%); }
.hero-art, .hero-line { position: absolute; pointer-events: none; }
.hero-art { z-index: -3; inset: 0; background: url("./entry-hall.webp") center 53% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg,#141511f5 0%,#161610e8 19%,#17150dbf 37%,#1f1d1840 59%,#13140d08 100%), linear-gradient(0deg,#10120eea 1%,#10120e83 19%,transparent 48%); }
.hero-line { z-index: -1; inset: 19px max(17px, 2.8vw) 20px; border: 1px solid #edcf9f29; }
.hero-line::before, .hero-line::after { position: absolute; content: ""; width: 16px; height: 16px; }
.hero-line::before { top: -1px; left: -1px; border-top: 1px solid #efc8939c; border-left: 1px solid #efc8939c; }
.hero-line::after { bottom: -1px; right: -1px; border-bottom: 1px solid #efc8939c; border-right: 1px solid #efc8939c; }
.hero-copy { max-width: 710px; width: 100%; position: relative; align-self: center; margin: -60px 0 0; padding: 0 22px 0 clamp(41px, 8vw, 135px); }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 21px; color: var(--gold); font-size: .79rem; font-weight: 600; letter-spacing: .22em; }
.eyebrow span { display: inline-block; width: 17px; height: 1px; background: #c99961; }
.eyebrow b { font-weight: 400; }
.hero h1 { font-family: var(--serif); font-size: clamp(80px, 10.3vw, 157px); font-weight: 800; letter-spacing: .024em; line-height: .99; margin: 0 0 18px -.055em; white-space: nowrap; color: #faedd6; text-shadow: 0 3px 28px #08080767; }
.hero h1 span { color: inherit; }
.hero-subtitle { margin: 0 0 20px; font: 600 clamp(21px, 2.5vw, 36px)/1.3 var(--serif); color: #e6c496; letter-spacing: .27em; }
.hero-description { margin: 0; max-width: 440px; line-height: 1.85; color: #e1dbc9; letter-spacing: .035em; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.action-primary { color: #2b2116; background: #e6be83; border-color: #eac892; box-shadow: 0 3px 17px #0002; }
.action-primary:hover { background: #f2d6a4; border-color: #f6dfb8; }
.action-outline, .action-quiet { color: #f0dfc3; border-color: #eabd824f; background: #1d1e17aa; }
.action-outline:hover, .action-quiet:hover { background: #383224; border-color: #e4bd83a8; }
.action:disabled { opacity: .63; }
.enter { min-height: 50px; padding-inline: 17px 20px; }
.hero-actions .action-outline { min-height: 50px; padding-inline: 17px; }
.enter svg { width: 21px; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.loading-note { position: absolute; margin: 8px 0 0; color: #f1cd9d; font-size: .82rem; }
.art-caption { display: flex; gap: 8px; align-items: center; position: absolute; right: max(43px, 5.2vw); bottom: 143px; font-size: .75rem; letter-spacing: .12em; color: #f5e8d3; text-shadow: 0 2px 9px #000; }
.art-caption span { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid #e6bd7f; }
.exhibit-dock { position: absolute; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); bottom: 35px; left: clamp(41px, 8vw, 135px); right: clamp(41px, 8vw, 135px); background: #151712db; border: 1px solid #e8c39545; backdrop-filter: blur(14px); border-radius: 4px; overflow: hidden; }
.dock-item { min-width: 0; border: none; background: transparent; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; text-align: left; padding: 18px clamp(15px, 2.2vw, 34px); }
.dock-item + .dock-item { border-left: 1px solid #dfbe8d36; }
.dock-item:hover { background: #a3814a27; }
.dock-item:focus-visible { outline-offset: -4px; }
.dock-item svg { width: 31px; height: 31px; stroke: #dfb87b; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.dock-item strong, .dock-item small { display: block; }
.dock-item strong { color: #f5e7ce; font: 700 20px/1.28 var(--serif); letter-spacing: .08em; }
.dock-item small { color: #c0b6a2; font-size: .81rem; margin-top: 4px; letter-spacing: .045em; }
.dock-status { color: #c89d5e; font-size: 1.45rem; font-weight: 300; }
.footer { min-height: 56px; padding-block: 8px; color: #aaa290; font-size: .79rem; letter-spacing: .05em; border-top: 1px solid #d5b48029; }
.footer-divider { color: #ba9b70; margin-inline: 7px; }
.text-button { font-size: inherit; color: #c5b99e; }
.experience { position: relative; width: 100%; min-height: 500px; height: calc(100svh - 76px); background: #1b1d18; overflow: hidden; }
.museum.is-playing .footer { display: none; }
#world { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#world:active { cursor: grabbing; }
#world:focus-visible { outline-offset: -4px; }
.world-shading { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#11130e4d, transparent 25%, transparent 75%, #10120e60); }
.game-location, .hud-right, .world-controls, .game-context, .reticle { position: absolute; }
.game-location { top: 19px; left: clamp(14px, 3.6vw, 52px); display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 9px 14px; border: 1px solid #e3b97c55; border-radius: 4px; background: #181a14dd; }
.location-dot { display: block; width: 6px; height: 6px; background: #e4bd83; transform: rotate(45deg); }
#zone-label { font: 700 1.2rem/1.24 var(--serif); white-space: nowrap; }
.location-description { color: #d4c5ac; font-size: .83rem; margin-left: 3px; }
.hud-right { display: grid; justify-items: end; gap: 8px; top: 19px; right: clamp(14px, 3.6vw, 52px); }
.map-button { width: 145px; padding: 9px 10px 10px; border: 1px solid #e3b97c55; background: #191c15e6; border-radius: 4px; text-align: left; }
.map-button:hover { border-color: #e3b97caa; }
.map-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--cream); }
.map-north { font: 0.75rem/1 Georgia,serif; color: var(--gold); }
.map-plot { display: block; position: relative; height: 99px; margin-top: 7px; background: #10130f; border: 1px solid #e3b97c30; }
.mini-room, .mini-center { display: block; position: absolute; border: 1px solid #a9915e80; background: #ac8c5640; }
.mini-life { left: 3%; top: 26%; width: 29%; height: 65%; }
.mini-reform { left: 34%; top: 3%; width: 32%; height: 33%; }
.mini-poetry { right: 3%; top: 26%; width: 29%; height: 65%; }
.mini-center { left: 34%; top: 38%; width: 32%; height: 59%; }
.map-marker { position: absolute; top: 90%; left: 50%; width: 12px; height: 12px; background: #fbd295; clip-path: polygon(50% 0, 100% 100%, 50% 79%, 0 100%); transform: translate(-50%,-50%); }
.flat-button { background: #171a14ed; border: 1px solid #e3b97c66; padding: 7px 12px; font-size: .83rem; border-radius: 4px; }
.reticle { left: 50%; top: 50%; width: 11px; height: 11px; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid #fff4cd99; box-shadow: 0 0 2px #130d08; pointer-events: none; }
.game-context { bottom: 77px; left: 50%; transform: translateX(-50%); }
kbd { border: 1px solid #d6bc894f; background: #e5c48716; border-radius: 3px; min-width: 19px; display: inline-flex; justify-content: center; padding: 1px 4px; font: 12px/1.35 var(--sans); }
.interaction kbd { border-color: #a1734080; background: #a1734025; }
.world-controls { display: flex; justify-content: space-between; align-items: end; left: clamp(14px, 3.6vw, 52px); right: clamp(14px, 3.6vw, 52px); bottom: 20px; pointer-events: none; }
.world-controls > * { pointer-events: auto; }
.keyboard-tip { display: flex; gap: 5px; align-items: center; padding: 8px 10px; border: 1px solid #e3b97c45; border-radius: 4px; background: #151711df; color: #ede0ca; font-size: .79rem; }
.keyboard-tip span { margin: 0 2px; color: var(--gold); }
.touch-controls { display: none; gap: 4px; grid-template-columns: repeat(3, 44px); }
.touch-controls button { height: 44px; border: 1px solid #e3b97c78; background: #181b15eb; border-radius: 6px; touch-action: none; }
.touch-controls button:first-child { grid-column: 2; }
.touch-controls button:nth-child(2) { grid-column: 1; }
.touch-controls button:active { background: #775d36; }
dialog { position: fixed; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 36px); margin: auto; padding: 0; border: 1px solid #b8925d8c; background: #20221b; color: var(--cream); border-radius: 10px; box-shadow: 0 20px 85px #0009; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #0c0d0baf; backdrop-filter: blur(3px); }
.panel-shell { padding: clamp(20px, 4.1vw, 37px); position: relative; }
.close-button { position: absolute; right: 15px; top: 15px; width: 39px; height: 39px; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; background: #10120d; color: #f4dec0; font-size: 1.45rem; line-height: 1; }
.close-button:hover { background: #3d3425; }
.panel-kicker { margin-bottom: 10px; }
#panel-title { margin: 0 45px 17px 0; font: 700 clamp(29px, 5vw, 47px)/1.15 var(--serif); letter-spacing: .06em; }
#panel-content h3 { margin: 21px 0 9px; color: var(--gold); font: 700 1.2rem/1.25 var(--serif); }
.game-lead { margin: 0 0 17px; color: #e9decb; }
.game-note { color: #c2b7a3; font-size: .88rem; margin-block: 10px; }
.reference-list { list-style: none; padding: 0; margin: 0; }
.reference-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.reference-list li span { display: block; color: #cec1aa; font-size: .84rem; }
.guide-list { display: grid; gap: 13px; padding-left: 20px; }
.guide-list li { padding-left: 3px; }
.guide-list strong { color: var(--gold); }
.panel-rooms { display: grid; gap: 8px; margin-block: 13px 18px; }
.panel-room { display: grid; grid-template-columns: minmax(96px,1fr) minmax(0,1.5fr) auto; gap: 10px; align-items: center; text-align: left; min-height: 54px; padding: 10px 13px; background: #141610; border: 1px solid var(--line); border-radius: 4px; }
.panel-room:hover { background: #2d2a1e; border-color: #e4bd8380; }
.panel-room strong { color: #f4dfbc; font-family: var(--serif); font-size: 1.16rem; }
.panel-room span { color: #d4c6af; font-size: .83rem; }
.panel-room .room-mark { color: #eacc9b; }
.journal-progress { height: 5px; color: var(--gold); background: #12140f; border: 0; width: 100%; border-radius: 3px; overflow: hidden; appearance: none; }
.journal-progress::-webkit-progress-bar { background: #12140f; }
.journal-progress::-webkit-progress-value { background: #d9a961; }
.journal-progress::-moz-progress-bar { background: #d9a961; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 12px 0; }
.game-choice, .game-season button, button.game-season { color: var(--cream); border: 1px solid var(--line); padding: 10px 11px; background: #2b2b20; border-radius: 5px; min-height: 43px; }
.game-choice:not(:disabled):hover, .game-season button:hover, button.game-season:hover { border-color: var(--gold); background: #3a3223; }
.game-choice.is-selected, .game-season .is-selected, button.game-season.is-selected { border-color: #d4aa75; background: #3b3223; }
.game-choice:disabled { opacity: .65; }
.game-choice:has(span) { text-align: left; align-content: start; }
.game-choice strong, .game-choice span { display: block; }
.game-choice span { margin-top: 4px; color: #d5c7b0; font-size: .87rem; font-weight: 400; }
.game-order li > span { margin-right: 6px; }
.game-order li > strong { color: var(--cream); }
.game-board { margin: 13px 0; }
.game-order { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; list-style: decimal inside; padding: 0; }
.game-order li { color: #c3b8a4; padding: 9px; border: 1px dashed #caa26a4f; border-radius: 4px; min-height: 43px; }
.game-order li.is-set { color: #f5dfba; border-style: solid; background: #2c291e; }
.game-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
.game-feedback { color: #ebd7b9; margin: 14px 0; }
.game-feedback:empty { display: none; }
.game-feedback.is-error { border-left: 2px solid #e99b78; padding-left: 10px; }
.game-feedback.is-success { border-left: 2px solid #a8c28d; padding-left: 10px; }
.game-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 7px; margin: 10px 0; }
.game-stats > div { padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #171913; }
.game-stats dt { color: #d8c5a5; font-size: .85rem; }
.game-stats dd { margin: 5px 0 0; font-weight: 600; }
.game-season { display: flex; flex-wrap: wrap; gap: 6px; }
.game-poetry-scene { position: relative; height: 140px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(#172821, #748577); }
.poetry-moon { position: absolute; top: 18px; right: 18%; width: 33px; height: 33px; border-radius: 50%; background: #f4e3b0; box-shadow: 0 0 22px #fff0b067; }
.poetry-hill { position: absolute; left: 0; right: 0; height: 90%; bottom: 0; transition: background-color .8s; }
.poetry-hill-far { background: #495752; clip-path: polygon(0% 66%, 11% 45%, 19% 53%, 33% 22%, 43% 42%, 48% 39%, 61% 63%, 70% 40%, 84% 61%, 94% 37%, 100% 34%, 100% 100%, 0% 100%); }
.poetry-hill-near { background: #374439; clip-path: polygon(0% 53%, 14% 58%, 26% 84%, 35% 90%, 54% 82%, 69% 89%, 87% 69%, 100% 64%, 100% 100%, 0% 100%); }
.poetry-river { position: absolute; inset: 74% 0 0; background: linear-gradient(175deg, #93a396, #556d60); clip-path: polygon(25% 28%, 67% 28%, 83% 0%, 100% 0%, 100% 22%, 72% 63%, 54% 100%, 0% 100%, 0% 78%); }
.is-green .poetry-hill-far { background: #597956; }
.is-green .poetry-hill-near { background: #547941; }
.game-poetry-verse { margin-block: 9px; line-height: 1.7; text-align: center; font: 600 clamp(20px,4vw,27px)/1.75 var(--serif); }
.game-poetry-blank { color: #ebc688; border-bottom: 1px solid #dcbc8580; min-width: 1.2em; display: inline-block; }
@media (max-width: 775px) {
  .hero { min-height: max(665px, calc(100svh - 118px)); }
  .hero-copy { padding-left: max(37px, 6vw); }
  .exhibit-dock { left: max(31px, 5.8vw); right: max(31px, 5.8vw); }
  .dock-item { gap: 8px; padding-inline: 12px; }
  .dock-item svg { width: 26px; height: 26px; }
  .dock-item strong { font-size: 17px; }
  .dock-status { display: none; }
  .dock-item { grid-template-columns: auto 1fr; }
}
@media (max-width: 540px) {
  .topbar { height: 64px; flex-basis: 64px; padding-inline: 16px; }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; letter-spacing: .04em; }
  .top-nav { gap: 10px; }
  .desktop-link { display: none; }
  .journal-button { gap: 5px; padding: 6px 7px; font-size: .76rem; }
  .journal-button svg { display: none; }
  .top-link { font-size: .78rem; }
  .count { padding-left: 5px; margin-left: 0; font-size: .72rem; }
  .hero { align-items: start; min-height: max(670px, calc(100svh - 118px)); }
  .hero-art { background-position: 61% 47%; }
  .hero::before { background: linear-gradient(90deg, #11120eea 0%, #14130dad 59%, #17160e71 100%), linear-gradient(0deg,#10120ef4 3%,#10120e87 46%,transparent 64%); }
  .hero-line { inset: 13px 11px; }
  .hero-copy { align-self: start; margin: 0; padding: clamp(66px, 12svh, 114px) 27px 0; }
  .hero h1 { font-size: clamp(67px, 18vw, 95px); margin-bottom: 13px; }
  .hero-subtitle { margin-bottom: 12px; }
  .hero-description { font-size: .96rem; }
  .wide-only { display: none; }
  .eyebrow { margin-bottom: 16px; font-size: .71rem; letter-spacing: .15em; }
  .hero-actions { margin-top: 19px; gap: 8px; }
  .hero-actions .action { min-height: 45px; padding-inline: 10px; font-size: .9rem; }
  .exhibit-dock { grid-template-columns: 1fr; left: 24px; right: 24px; bottom: 24px; }
  .dock-item { grid-template-columns: 25px 1fr; padding: 8px 11px; gap: 8px; }
  .dock-item + .dock-item { border-left: 0; border-top: 1px solid #dfbe8d36; }
  .dock-item svg { width: 22px; height: 22px; }
  .dock-item strong, .dock-item small { display: inline; }
  .dock-item small { margin-left: 7px; }
  .art-caption { display: none; }
  .footer { padding-inline: 16px; min-height: 54px; font-size: .7rem; }
  .experience { height: calc(100svh - 64px); min-height: 420px; }
  .location-description { display: none; }
  .map-button { width: 111px; padding: 6px; }
  .map-plot { height: 69px; }
  .world-controls { bottom: 12px; }
  .game-context { bottom: 110px; }
  .keyboard-tip { display: none; }
  .touch-controls { display: grid; }
  .panel-room { grid-template-columns: minmax(90px,1fr) minmax(0,1fr) auto; gap: 5px; padding-inline: 8px; }
  .panel-room span { font-size: .75rem; }
}
@media (pointer: coarse) {
  .keyboard-tip { display: none; }
  .touch-controls { display: grid; }
  .game-context { bottom: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
