:root {
  color-scheme:dark;
  --gold:#d5b77a;
  --light:#f4ead8;
  --muted:#c1b8a8
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:#080a0b;
  color:var(--light);
  font:14px/1.6 Arial,sans-serif;
  overflow:hidden
}
button,a {
  touch-action:manipulation
}
button {
  font:inherit;
  color:inherit;
  background:#171b1be6;
  border:1px solid #d5b77a65;
  padding:12px 20px;
  cursor:pointer;
  border-radius:2px
}
button:hover:not(:disabled) {
  background:#433b29
}
button:disabled {
  opacity:.35;
  cursor:default
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible {
  outline:3px solid #f4dca2;
  outline-offset:5px
}
[hidden] {
  display:none!important
}
.hud {
  position:fixed;
  z-index:5;
  inset:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 4%;
  background:linear-gradient(#080a0bf5,#080a0b00)
}
.hud a {
  text-decoration:none;
  font-size:12px
}
.brand {
  letter-spacing:3px;
  color:var(--gold);
  font-weight:bold
}
.brand span {
  display:block;
  font-size:9px;
  letter-spacing:2px
}
.hud button {
  font-size:11px;
  padding:8px 12px
}
#viewport {
  position:fixed;
  inset:0;
  perspective:850px;
  perspective-origin:50% 46%;
  overflow:hidden;
  background:radial-gradient(ellipse at 50% 40%,#493e28,#0b1010 65%)
}
#world {
  position:absolute;
  left:50%;
  top:46%;
  width:0;
  height:0;
  transform-style:preserve-3d;
  will-change:transform
}
.surface {
  position:absolute;
  transform-style:preserve-3d;
  backface-visibility:hidden;
  background:repeating-linear-gradient(113deg,transparent 0 120px,#b4b8b50a 121px,transparent 123px 290px),linear-gradient(100deg,#111818,#242b29 45%,#101616);
  border:1px solid #79644455
}
.floor {
  background:repeating-linear-gradient(90deg,transparent 0 239px,#c1aa6f40 240px,transparent 241px 480px),repeating-linear-gradient(0deg,#111716 0 239px,#776b4c 240px,#121918 241px 480px);
  box-shadow:inset 0 0 180px #000
}
.ceiling {
  background:#101414;
  border:8px solid #806d45
}
.wall {
  box-shadow:inset 0 0 120px #000;
  border-top:12px solid #b69a61;
  border-bottom:16px solid #7f6940
}
.column {
  background:linear-gradient(90deg,#080c0b,#3d4135 40%,#171c19 80%);
  border-inline:4px solid #9b8255;
  box-shadow:0 0 20px #000
}
.beam {
  background:linear-gradient(#baa16a,#3e3828);
  box-shadow:0 8px 25px #e5b85b30
}
.sign {
  background:#101916;
  border:2px solid #b99c61;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#f7dda0;
  font:24px/1.3 Georgia,serif;
  letter-spacing:6px;
  box-shadow:0 0 25px #dab36620,inset 0 0 25px #dab36610;
  text-shadow:0 0 15px #ffdf8d
}
.door {
  background:repeating-linear-gradient(90deg,#101918 0 34px,#1f2823 35px,#101918 38px);
  border:8px double #b49a62;
  box-shadow:inset 0 0 60px #000;
  transition:rotate 2.2s cubic-bezier(.4,0,.2,1);
  transform-origin:left center
}
.door.right {
  transform-origin:right center
}
.door::after {
  content:'';
  position:absolute;
  inset:28px;
  border:1px solid #977c48
}
.door.open {
  rotate:y -86deg
}
.door.right.open {
  rotate:y 86deg
}
.crest-half {
  z-index:2;
  pointer-events:none;
  position:absolute;
  top:110px;
  width:110px;
  height:292px;
  overflow:hidden
}
.door.left .crest-half {
  z-index:2;
  pointer-events:none;
  right:-8px
}
.door.right .crest-half {
  z-index:2;
  pointer-events:none;
  left:-8px
}
.crest-half img {
  filter:grayscale(1) sepia(1) saturate(1.5) brightness(.9);
  position:absolute;
  width:220px;
  height:292px;
  object-fit:contain
}
.door.right .crest-half img {
  filter:grayscale(1) sepia(1) saturate(1.5) brightness(.9);
  left:-110px
}
.exhibit {
  border:8px double #9d824d;
  box-shadow:0 -25px 65px #f5c46f28,inset 0 0 30px #000;
  background:radial-gradient(ellipse at top,#50482f44,#0a100e 70%)
}
.exhibit img {
  width:100%;
  height:100%;
  object-fit:contain
}
.exhibit-label {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  padding:18px 0;
  font:15px Georgia,serif;
  color:#eddaa6;
  text-align:center
}
.case {
  background:linear-gradient(120deg,#e2e4d20d,#f2edd21a 48%,#b6cfbe05 49%);
  border:2px solid #d5b77a70;
  box-shadow:0 0 22px #e7c47c18
}
.plinth {
  background:linear-gradient(90deg,#101713,#3b4031,#111814);
  border-top:5px solid #c9ae71
}
.light {
  background:#ffdfa0;
  box-shadow:0 0 35px 10px #ffd68955
}
.vignette {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%,transparent 30%,#0009 100%)
}
.caption {
  position:fixed;
  z-index:3;
  left:6%;
  top:19%;
  max-width:340px;
  pointer-events:none;
  text-shadow:0 2px 15px #000
}
.caption button {
  pointer-events:auto;
  background:#d5b77a;
  color:#111b15;
  font-size:11px;
  font-weight:bold;
  letter-spacing:2px;
  margin-top:16px
}
.caption p {
  color:#d7c8a5;
  font-size:12px
}
.caption #place {
  letter-spacing:3px;
  font-size:10px
}
h1 {
  font:clamp(32px,4vw,62px)/1.05 Georgia,serif;
  margin:20px 0
}
.walking .caption {
  top:105px;
  left:4%;
  max-width:250px
}
.walking h1 {
  font-size:24px
}
.walking #instruction {
  max-width:240px
}
.controls {
  position:fixed;
  z-index:5;
  bottom:48px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  max-width:96%;
  width:max-content;
  padding:10px;
  background:#080d0de8;
  border:1px solid #a68a4c55
}
.controls button {
  white-space:nowrap
}
#progress {
  font-size:11px;
  min-width:90px;
  text-align:center;
  color:var(--gold)
}
.help {
  position:fixed;
  bottom:12px;
  left:10px;
  right:10px;
  text-align:center;
  font-size:10px;
  color:#c1b8a8;
  z-index:4
}
#nearby {
  position:fixed;
  right:4%;
  bottom:165px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:4;
  max-width:270px
}
#nearby button {
  background:#0a1612e8;
  text-align:left
}
dialog {
  width:min(650px,92vw);
  max-height:85dvh;
  overflow:auto;
  background:#101714;
  color:var(--light);
  border:1px solid var(--gold);
  padding:28px
}
dialog::backdrop {
  background:#000b
}
dialog img {
  max-width:100%;
  max-height:45vh;
  display:block;
  margin:auto;
  object-fit:contain
}
dialog h2 {
  font:32px Georgia,serif
}
dialog p {
  white-space:pre-line
}
#close-detail {
  display:block;
  margin:0 0 20px auto
}
#reading {
  position:fixed;
  inset:260px 6% 180px;
  overflow:auto;
  padding:25px;
  border:1px solid #bca06b55;
  background:#101713;
  max-width:700px
}
.simple #viewport {
  display:none
}
.simple #nearby {
  position:fixed;
  right:5%;
  max-height:35vh;
  overflow:auto
}
.simple .caption {
  top:100px
}
.simple h1 {
  font-size:28px
}
.no-script {
  position:fixed;
  z-index:20;
  inset:40% 10% auto;
  background:#111;
  padding:30px
}
@media(max-width:700px) {
  #viewport {
  perspective:500px
}
.hud {
  padding:15px 4%;
  gap:12px;
  flex-wrap:wrap
}
.hud a {
  font-size:10px
}
.brand {
  letter-spacing:1px
}
.hud button {
  font-size:10px
}
.caption {
  top:16%;
  left:7%;
  max-width:230px
}
.caption h1 {
  font-size:35px
}
.walking .caption {
  top:95px
}
.walking h1 {
  font-size:22px
}
.controls {
  gap:5px;
  padding:6px;
  bottom:62px;
  flex-wrap:wrap;
  width:94%
}
.controls button {
  padding:10px 12px;
  font-size:12px
}
#progress {
  min-width:60px
}
.help {
  bottom:14px;
  padding:0 20px
}
#nearby {
  bottom:185px;
  right:6%;
  max-width:220px
}
.caption #instruction {
  font-size:11px
}
.simple #reading {
  inset:265px 5% 230px
}
.simple #nearby {
  bottom:165px;
  max-height:100px
}
.door {
  transition-duration:1.8s
}

}
@media(prefers-reduced-motion:reduce) {
  .door {
  transition:none
}

}

body:not(.walking):not(.simple) .caption {
  top:auto;
  bottom:155px;
  left:0;
  right:0;
  max-width:none;
  text-align:center
}
body:not(.walking):not(.simple) .caption h1 {
  font-size:24px;
  margin:8px 0
}
body:not(.walking):not(.simple) .caption #place {
  display:none
}
body:not(.walking):not(.simple) .caption button {
  margin-top:5px
}
.highlights {
  background:#d5b77a;
  color:#101713;
  font-weight:bold;
  display:block;
  margin:25px 0
}
dialog select {
  background:#18231d;
  color:#f4ead8;
  border:1px solid #d5b77a;
  padding:10px;
  max-width:100%;
  margin:15px 0
}
dialog video {
  margin-top:20px;
  border:1px solid #d5b77a55
}
#nearby {
  max-height:38vh;
  overflow:auto
}
.exhibit-case img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.exhibit-label {
  overflow-wrap:anywhere;
}
/* Individual display frames with a recessed mount and a physical picture light. */
.exhibit:not(.exhibit-case) {
  padding:18px;
  border:12px solid #9b7e46;
  outline:3px solid #302718;
  background:radial-gradient(ellipse at top,#67634d,#18221d 65%);
  box-shadow:inset 0 0 0 3px #e2cc8e,inset 0 0 32px #000,12px 18px 22px #0009,0 -35px 65px #e8c87835;
}
.exhibit:not(.exhibit-case)::before {
  content:'';
  position:absolute;
  top:-48px;
  left:18%;
  right:18%;
  height:10px;
  background:linear-gradient(#453c29,#d3b16b 60%,#fff1c2);
  box-shadow:0 12px 26px #ffe4a96b;
}
.exhibit:not(.exhibit-case)::after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,#fff9de0b,transparent 40%,#fff9de08 41%,transparent 60%);
  border:2px solid #f1e0b044;
}
.exhibit:not(.exhibit-case) img {
  background:transparent;
  box-shadow:none;
  filter:drop-shadow(0 5px 9px #0009) drop-shadow(0 0 5px #ffdf9420);
}
.exhibit-case {
  padding:18px 16px 8px;
  background:linear-gradient(115deg,#edf5ed08,transparent 45%,#edf5ed05 46%,transparent);
  border:2px solid #d6d8bc70;
  border-top:9px solid #b5965d;
  box-shadow:inset 0 18px 28px #f7d5811c,0 0 25px #f9d57918;
}
.exhibit-case::before {
  content:'';
  position:absolute;
  top:4px;
  left:30%;
  right:30%;
  height:5px;
  background:#fff0bd;
  box-shadow:0 20px 40px 13px #ffe4a33d;
}
.exhibit-case::after {
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-inline:2px solid #fff3c62b;
  background:linear-gradient(110deg,transparent 60%,#ffffff08 61%,transparent 75%);
}
.exhibit-case img {
  position:relative;
  filter:drop-shadow(0 0 8px #ffdd8340) drop-shadow(0 10px 9px #0008);
}

/* The entrance keeps only the split crest and the invitation to enter. */
.entrance-door .crest-half { top:auto; bottom:165px; }
body:not(.walking) .hud,
body:not(.walking) .caption h1,
body:not(.walking) .caption p,
body:not(.walking) .controls,
body:not(.walking) .help,
body:not(.walking) #reading { display:none; }
body:not(.walking) .caption {
  top:auto; bottom:7vh; left:0; right:0;
  max-width:none; text-align:center;
}
body:not(.walking) .caption button {
  margin:0; letter-spacing:2px; font-size:13px;
  background:#101714d9; padding:16px 22px;
}

body:not(.walking) #world > .surface:not(.entrance-door):not(.outer-facade):not(.entrance-architecture) { visibility:hidden!important; }
body:not(.walking) .caption button { color:var(--gold); }

.tribute-silhouette { background:radial-gradient(ellipse,#a58a51,#3a3425 75%)!important; }
.tribute-silhouette img { width:100%; height:100%; object-fit:contain; filter:brightness(0)!important; }

/* Continuous, softly lit stone enclosure for the tribute room. */
.room-wall {
  border:0; box-shadow:none;
  background:linear-gradient(to bottom,#292824 0%,#77705e 9%,#524e43 18%,#353731 42%,#282d29 84%,#393b30 97%,#a18c59 99%,#242925);
}
.room-ceiling { border:0; background:radial-gradient(ellipse,#3b3b33,#121815 75%); }
.room-floor { border:0; background:radial-gradient(ellipse at center,#3e4037,#1a211d 75%); box-shadow:inset 0 0 160px #0005; }
.in-tribute-room .caption,
.in-tribute-room .help,
.in-tribute-room #progress { display:none; }
.in-tribute-room .controls { width:auto; bottom:25px; padding:8px; border:0; background:#101713a8; border-radius:30px; }
.in-tribute-room .controls button { border:0; background:transparent; }
.in-tribute-room #forward { display:none; }
.tribute-silhouette.exhibit {
  padding:0; border:3px solid #a18b60; outline:1px solid #211e18;
  background:#151913!important;
  box-shadow:0 25px 45px #0008,0 -50px 110px #e5d1a32a!important;
}
.tribute-silhouette.exhibit::before { display:none; }
.tribute-silhouette.exhibit::after { border:0; background:none; }
.tribute-silhouette.exhibit img { filter:none!important; object-fit:contain; }

/* Shared gallery finish: restrained stone, warm brass and soft light. */
.hud { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:22px 4%; background:linear-gradient(#080d0cdd,transparent); }
.hud .brand,.hall-title { font:600 11px/1.5 Arial,sans-serif; letter-spacing:2px; color:#d8c7a5; }
.hall-title { text-align:right; }
.hud #mode { grid-column:2; justify-self:end; border:0; padding:4px 0; background:transparent; color:#b7b9b1; font-size:10px; }
.wall:not(.room-wall) { border-top:3px solid #8d7d59; border-bottom:3px solid #5f5945; box-shadow:none; background:linear-gradient(#565548,#2a302b 25%,#222a26 80%,#383c31); }
.column { border:0; background:linear-gradient(90deg,#19211d,#41463b 45%,#252e28); box-shadow:8px 0 25px #0003; }
.beam { border:0; background:linear-gradient(#69614e,#343a30); box-shadow:0 8px 35px #ead6a220; }
.floor:not(.room-floor) { border:0; background:linear-gradient(90deg,#1d2621,#343b31 50%,#1d2621); box-shadow:inset 0 0 180px #0006; }
.ceiling:not(.room-ceiling) { border:0; background:#202820; }
.sign { border:0; background:transparent; box-shadow:none; text-shadow:none; font:20px/1.4 Georgia,serif; letter-spacing:7px; color:#cbb990; }
.light { border:0; background:#dfcc9d; box-shadow:0 0 55px 18px #edddab26; }
.exhibit:not(.exhibit-case):not(.tribute-silhouette) { border:5px solid #8c7952; outline:1px solid #25271d; padding:24px; background:radial-gradient(ellipse at top,#5d5d4c,#252d27 75%); box-shadow:inset 0 0 25px #0005,8px 16px 28px #0006,0 -35px 65px #e8c87820; }
.exhibit:not(.exhibit-case)::before { height:5px; background:#b4a079; box-shadow:0 16px 35px #e6d7ad35; }
.exhibit:not(.exhibit-case)::after { border:0; }
body:not(.simple).walking:not(.in-tribute-room) .caption h1,
body:not(.simple).walking:not(.in-tribute-room) .caption #instruction,
.caption #place { display:none; }
body:not(.simple).walking .caption { top:auto; bottom:160px; left:0; right:0; max-width:none; text-align:center; background:transparent; }
.controls { border:0; border-radius:30px; background:#111a15d9; }
.controls button { border:0; background:transparent; }
#nearby button { background:#17211bd9; border:1px solid #c5b38835; }
.help { color:#b8bbae; font-size:10px; }
@media(max-width:700px) {
 .hud .brand,.hall-title { font-size:9px; letter-spacing:1.2px; }
 .hud { padding:16px 5%; }
 .hall-title { max-width:130px; justify-self:end; }
 .hud .brand { max-width:180px; }
}

.walking .outer-facade,.walking .entrance-door { visibility:hidden!important; }

/* Proportioned entrance, lit stone and visitor-scale exhibits. */
body:not(.walking) #world > .outer-facade,
body:not(.walking) #world > .entrance-architecture {visibility:visible!important}
.walking .entrance-architecture {visibility:hidden!important}
#viewport{background:radial-gradient(ellipse at 50% 46%,#6a6250,#28312b 62%,#101914)}
.entrance-door .crest-half{top:190px;bottom:auto}
.outer-facade{background:linear-gradient(105deg,#4b4b40,#777361 48%,#3c443a)!important;border-color:#a79264!important}
.entrance-lintel{box-shadow:inset 0 -12px 30px #0004!important}
.entrance-step{background:linear-gradient(#aaa087,#454b40);border:1px solid #c5b18370;box-shadow:0 10px 18px #0004}
.entrance-door{background:linear-gradient(100deg,#15251e,#2e3d2e 65%,#14241b);border:7px double #c3a369;box-shadow:inset 0 0 55px #0007,0 4px 20px #0005}
.crest-half img{filter:grayscale(1) sepia(1) saturate(1.8) brightness(1.2) drop-shadow(2px 3px 2px #0008)!important}
.sign{font:600 24px/1.35 Georgia,serif;letter-spacing:3px;padding:12px 20px;text-shadow:0 0 16px #e2bb6e55;white-space:normal;max-width:none;margin:0}
.wall:not(.room-wall):not(.outer-facade){background:linear-gradient(#807b65,#485347 30%,#35463a 82%,#68634e)}
.floor:not(.room-floor){background:linear-gradient(90deg,#293c31,#566352 50%,#293c31);box-shadow:inset 0 0 120px #0004}
.ceiling:not(.room-ceiling){background:#374438}
.room-wall{background:linear-gradient(#464b3e 0%,#a79c78 10%,#797b63 24%,#626e59 65%,#535f4e 90%,#ae9b6e 99%,#444f40);border:0;box-shadow:none}
.room-floor{background:radial-gradient(ellipse,#68715c,#334538 80%);box-shadow:inset 0 0 110px #0003}
.room-ceiling{background:radial-gradient(ellipse,#666b54,#263b2d 80%)}
.vignette{opacity:.35}
body:not(.walking) .caption{bottom:max(24px,5vh)}
@media(max-height:500px){body:not(.walking) .caption{bottom:14px}body:not(.walking) .caption button{padding:10px 16px;font-size:12px}}
/* Transparent relief floats directly on the continuous wall material. */
.tribute-silhouette.exhibit{border:0;outline:0;padding:0;background:transparent!important;box-shadow:none!important}
.tribute-silhouette.exhibit::before,.tribute-silhouette.exhibit::after{display:none}
.tribute-silhouette.exhibit img{background:transparent;filter:drop-shadow(3px 5px 3px #302b2366) drop-shadow(0 -3px 8px #eed29d22)!important;transition:filter .35s ease}
.tribute-silhouette.exhibit:hover img{filter:brightness(1.12) drop-shadow(0 0 18px #ebc57b55)!important}
.viewing-detail #viewport{filter:brightness(.7);transition:filter .35s ease}
dialog::backdrop{background:#050b0870}
.depth-veil{border:0;background:radial-gradient(ellipse,#344b3de8,#3c4f40f5 65%,#485347);box-shadow:0 0 120px 80px #425342;pointer-events:none}
body:not(.walking) .caption{bottom:24px;padding:0;margin:0}

/* Supplied frames retain their original mounts and inscriptions. */
.exhibit.original-frame:not(.tribute-silhouette){padding:0;border:0;outline:0;background:transparent;box-shadow:0 -25px 60px #e8c87828}
.exhibit.original-frame::before,.exhibit.original-frame::after{display:none}
.exhibit-label{line-height:1.4;padding:16px 8px;font-size:18px;background:#152019e8;border-bottom:1px solid #c5ad7555}
.exhibit-case .exhibit-label{top:calc(100% + 78px)}
.exhibit img,.exhibit-case img{transition:filter .6s ease}
.approached img{filter:drop-shadow(0 0 12px #ffe0a64d) drop-shadow(0 8px 10px #0006)}
#nearby button{font-size:14px;line-height:1.45}
@media(max-width:700px){#nearby{max-width: min(260px,75vw);max-height:24vh}dialog{padding:20px}dialog h2{font-size:25px;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.exhibit img,.exhibit-case img{transition:none}}
