:root {
  color-scheme: dark;
  --wall: #16231f;
  --wall-top: #263e33;
  --panel: #213029;
  --panel-top: #2a3a31;
  --pale: #f6f1dd;
  --muted: #c0c9b8;
  --brass: #e4bd78;
  --border: #53604c;
  --edge: #121a15;
}
:root[data-world="nether"] { --wall:#281c20; --wall-top:#4a2c2a; --panel:#352627; --panel-top:#452f2e; --border:#715548; }
:root[data-world="end"] { --wall:#201e30; --wall-top:#38334c; --panel:#2e2a3d; --panel-top:#393348; --border:#69647c; }
* { box-sizing:border-box; }
html { scroll-padding-top:1rem; }
body { margin:0; min-height:100vh; font:1rem/1.75 system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; color:var(--pale); background:radial-gradient(ellipse at 29% 6%,var(--wall-top),transparent 48rem),var(--wall); }
a { color:inherit; text-underline-offset:.23em; }
button,select,a { touch-action:manipulation; }
a:focus-visible,button:focus-visible,select:focus-visible,canvas:focus-visible { outline:3px solid #ffe5a7; outline-offset:3px; }
[hidden] { display:none !important; }
.skip-link { position:absolute; left:.6rem; top:-8rem; z-index:2; padding:.6rem; color:#172319; background:#fff2c7; }
.skip-link:focus { top:.4rem; }
.top { border-bottom:1px solid var(--border); background:rgb(12 20 18 / .7); }
.top-inner,.room { width:min(100% - 2.25rem,72rem); margin-inline:auto; }
.top-inner { min-height:4rem; display:flex; align-items:center; gap:1.15rem; }
.brand { display:inline-flex; align-items:center; gap:.55rem; font-weight:800; text-decoration:none; }
.brand img { image-rendering:pixelated; }
.top-inner>span { font-size:.82rem; color:var(--brass); }
.board-link { margin-left:auto; font-size:.875rem; }
.top a,footer a { min-height:44px; display:inline-flex; align-items:center; }
.room-heading { padding:clamp(1.6rem,3.5vw,3.1rem) 0 1rem; }
h1,h2,p,figure { margin:0; }
h1,h2 { line-height:1.24; text-wrap:balance; }
h1 { font-size:clamp(2rem,5vw,3.9rem); letter-spacing:.025em; }
.room-heading p { margin-top:.6rem; color:var(--muted); }
.exhibit-shelf { position:relative; isolation:isolate; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(.65rem,2.4vw,2rem); padding:clamp(.75rem,1.8vw,1.5rem) clamp(.8rem,2.8vw,2.1rem) 1.02rem; background:linear-gradient(90deg,#101913 0%,#293126 33%,#202a22 68%,#121c17); border:1px solid #5f6451; border-top:4px solid #9b855e; box-shadow:inset 0 7px 18px #0006,0 4px 15px #0003; }
.exhibit-shelf::after { content:""; position:absolute; bottom:-1px; inset-inline:-2px; height:13px; background:linear-gradient(#a88758 0 3px,#675034 3px 8px,#4a3829 8px); border-bottom:2px solid #211d16; box-shadow:0 4px #10151055; z-index:-1; }
.shelf-piece { display:grid; min-width:0; grid-template-rows:1fr auto; text-decoration:none; border:2px solid #68553b; background:#202921; color:#efe8d3; box-shadow:inset 0 0 0 1px #342b21,2px 2px 0 #0b100d; }
.specimen-window { position:relative; display:block; overflow:hidden; height:clamp(4.8rem,9vw,7.2rem); margin:4px 4px 0; background:radial-gradient(ellipse at center,#4c5642,#202922 78%); }
.specimen-window img { display:block; width:100%; height:100%; object-fit:cover; }
[data-piece="sky-harbor"] .specimen-window img { object-position:center 47%; }
[data-piece="achievement-journal"] .specimen-window { display:grid; place-items:center; }
[data-piece="achievement-journal"] img { width:auto; height:82%; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(4px 5px 0 #10171073); }
[data-piece="oak-chest-ui"] .specimen-window img { position:absolute; width:218.5%; max-width:none; height:auto; left:-110%; top:0; }
.shelf-plaque { display:flex; align-items:center; justify-content:center; min-height:2.55rem; padding:.3rem .25rem; text-align:center; line-height:1.35; font-weight:750; font-size:clamp(.875rem,1.6vw,1rem); }
.shelf-piece:hover,.shelf-piece[aria-current] { border-color:var(--brass); }
.shelf-piece[aria-current] .shelf-plaque { background:#e2c38a; color:#2c251b; box-shadow:inset 0 2px #f2dba5; }
.exhibit { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(16rem,1fr); grid-template-areas:"stage heading" "stage notes"; grid-template-rows:auto 1fr; gap:0 clamp(1.3rem,3vw,2.8rem); align-items:start; margin:clamp(1.4rem,3vw,2.4rem) 0 1.5rem; outline:none; }
.exhibit-heading { grid-area:heading; }
.exhibit-heading p { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; color:var(--brass); font-size:.875rem; font-weight:650; }
.exhibit-heading p span { color:var(--muted); font-variant-numeric:tabular-nums; }
h2 { font-size:clamp(1.55rem,3.1vw,2.65rem); margin:.5rem 0 1rem; }
.display-case { grid-area:stage; border:1px solid var(--border); background:var(--panel); min-width:0; box-shadow:3px 4px 0 #0d140f70; }
.photo-stage,.model-stage,.journal-stage { position:relative; width:100%; aspect-ratio:1.98; border:5px solid #29352d; background:#101b18; box-shadow:inset 0 0 0 1px #797e66; overflow:hidden; }
.photo-stage img,.model-stage img,.model-stage canvas { display:block; width:100%; height:100%; object-fit:contain; }
.storage-photo { background:#19201c; }
.journal-stage { display:flex; align-items:center; justify-content:center; gap:clamp(.7rem,3vw,2.4rem); padding:.75rem; background:radial-gradient(ellipse at 36% 30%,#576148,#28362d 54%,#17201b); }
.journal-book { width:24%; max-width:8.5rem; }
.journal-book img { width:100%; height:auto; image-rendering:pixelated; filter:drop-shadow(.35rem .5rem #17221975); }
.journal-card { display:flex; gap:.7rem; align-items:center; padding:clamp(.5rem,2vw,1.2rem); background:#28332c; border:2px solid #a1895e; box-shadow:inset 0 0 0 2px #424c3c,3px 4px #16221b; }
.journal-card img { width:clamp(2rem,5.2vw,3.65rem); height:auto; image-rendering:pixelated; }
.journal-card small,.journal-card strong { display:block; }
.journal-card small { color:#dcc894; font-size:.8rem; }
.journal-card strong { font-size:clamp(1rem,2.25vw,1.45rem); line-height:1.4; }
figcaption { padding:.75rem .9rem; font-size:.9375rem; line-height:1.65; color:var(--muted); }
.views { display:flex; align-items:stretch; flex-wrap:wrap; gap:.4rem; padding:0 .85rem .85rem; }
.views a,.actions a,.model-tools button,.model-tools select { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.35rem .75rem; border:1px solid var(--border); background:var(--panel-top); color:var(--pale); font:inherit; font-size:.9rem; font-weight:650; text-decoration:none; }
.views a:hover,.actions a:hover,footer a:hover,.model-tools button:hover { text-decoration:underline; }
.views a[aria-current] { color:#2b2619; background:#dbc68b; border-color:#e8d69c; }
.exhibit-notes { grid-area:notes; }
.exhibit-notes p { line-height:1.9; }
.exhibit-notes .note { font-size:.875rem; border-inline-start:3px solid var(--brass); padding-inline-start:.75rem; color:var(--muted); margin:1rem 0; }
.exhibit-story,
.journal-conditions { grid-column:1 / -1; min-width:0; margin-top:1.5rem; border-top:1px solid var(--border); padding-top:1rem; scroll-margin-top:1rem; }
.exhibit-story h2,
.journal-conditions h2 { font-size:clamp(1.3rem,3vw,1.85rem); }
.exhibit-story p,.journal-conditions p,.journal-conditions dd,.journal-conditions li { line-height:1.75; }
.journal-conditions details { border-bottom:1px solid var(--border); }
.journal-conditions summary { cursor:pointer; padding:.85rem .35rem; line-height:1.5; }
.journal-conditions dl { margin:0 .35rem 1rem; }
.journal-conditions dt { margin-top:.85rem; }
.journal-conditions dd { margin:.2rem 0 0; }
.journal-conditions ul { padding-left:1.45rem; }
.actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.2rem; }
.actions .guide { background:#dfbc76; color:#2b2317; border-color:#f0d6a1; }
footer { border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:.7rem; flex-wrap:wrap; padding:.7rem 0 1.8rem; color:var(--muted); font-size:.9rem; }
.model-stage canvas { touch-action:pan-y; cursor:grab; }
.model-stage canvas.dragging { cursor:grabbing; }
.model-tools { padding:.65rem .85rem 0; }
.model-tools label { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem; font-size:.9rem; }
.model-tools select { cursor:pointer; color-scheme:dark; }
.camera-controls { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.5rem; }
.model-tools button { cursor:pointer; }
.model-status:not(:empty),noscript p { margin:.55rem .85rem 0; font-size:.875rem; color:var(--muted); }
@media(max-width:760px){
  .exhibit { grid-template-columns:minmax(0,1fr); grid-template-areas:"heading" "stage" "notes"; grid-template-rows:auto; }
  .exhibit-notes { margin-top:1rem; }
  .exhibit-heading p { margin-top:.1rem; }
}
@media(max-width:560px){
  .top-inner,.room { width:calc(100% - 1.5rem); }
  .top-inner { gap:.6rem; flex-wrap:wrap; min-height:3.5rem; }
  .brand { gap:.35rem; }
  .brand img { width:22px; height:24px; }
  .exhibit-shelf { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:.8rem; padding:.65rem .65rem 1rem; }
  .specimen-window { height:clamp(3.7rem,15vw,5.1rem); }
  .shelf-plaque { min-height:2rem; }
  .room-heading { padding-top:1.35rem; }
  .actions a { flex:1 1 auto; }
}
@media(forced-colors:active){ .shelf-piece[aria-current],.views a[aria-current] { outline:3px solid Highlight; } }

body:has(.museum-walk){
  --wall:#17171b; --wall-top:#303037; --panel:#212126; --panel-top:#29292d;
  --pale:#f4f1e9; --muted:#c8c6c5; --brass:#e8ded0; --border:#535259;
}
.museum-walk {
  --stand:43%; --surface:57.8%;
  container-type:inline-size;
  display:flex; align-items:stretch; position:relative; width:100%;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
  scrollbar-color:#918a86 #222226;
  background:#1d1d21; border-block:2px solid #888382;
}
.museum-walk::before,.museum-walk::after{
  content:""; flex:0 0 calc((100% - var(--stand))/2);
  background-image:url("/base-camp/gallery-bay.webp");
  align-self:flex-start; aspect-ratio:0.9942;
  background-repeat:no-repeat;background-size:43cqw auto;
  background-position:left bottom;transform:scaleX(-1);
}
.museum-walk:has(> :last-child:nth-child(odd))::after{background-position:right bottom}
.museum-walk:has(> :last-child:nth-child(even))::after{transform:none}
.museum-walk .shelf-piece,.museum-walk .upcoming {
  flex:0 0 var(--stand);display:flex; flex-direction:column; min-width:0;
  scroll-snap-align:center;scroll-snap-stop:always;
  text-decoration:none;color:#f6f3ed;border:0;box-shadow:none;background:transparent;
}
.museum-walk .alcove{
  position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:3/2;
}
.museum-walk .alcove::after {
  content:"";position:absolute;inset:0;z-index:-1;
  background:url("/base-camp/gallery-bay.webp") center top/100% 200% no-repeat;
}
.museum-walk > :nth-child(even) .alcove::after {transform:scaleX(-1)}
.museum-walk .alcove::before{
  content:"";position:absolute;left:50%;top:var(--surface);transform:translate(-50%,-50%);
  width:30%;height:4%;border-radius:50%;
  background:radial-gradient(ellipse,#281a12bc 0%,#3a251a75 42%,transparent 73%);
}
.museum-walk .artifact,.museum-walk .fallback-art{
  position:absolute;display:block;left:50%;bottom:calc(100% - var(--surface) - 1.7%);
  transform:translateX(-50%);width:31%;aspect-ratio:1;object-fit:contain;
  filter:drop-shadow(1px 2px 1px #3827166b);
}
.museum-walk .artifact{background:url("/base-camp/museum-art.webp") no-repeat;background-size:300% 200%}
.museum-walk [data-piece="sky-harbor"] .artifact {background-position:0 0}
.museum-walk [data-piece="trap-workshops"] .artifact {background-position:50% 0}
.museum-walk [data-piece="achievement-journal"] .artifact {background-position:100% 0}
.museum-walk [data-piece="oak-chest-ui"] .artifact {background-position:0 100%}
.museum-walk [data-piece="grinning-mimic"] .artifact {background-position:50% 100%}
.museum-walk .upcoming .artifact {background-position:100% 100%}

.gallery-label{
  display:grid;align-content:start;justify-items:start; width:100%;
  padding:1.1rem clamp(.65rem,2.4vw,2.25rem) 1.45rem;
  font-family:system-ui,sans-serif;line-height:1.7;
}
.gallery-label small{font-size:.9rem;color:#cdc3bb}
.gallery-label strong{margin:.12rem 0;font-size:clamp(1.35rem,2.6vw,2rem);line-height:1.4}
.wall-note{margin:.35rem 0 .7rem;color:#e3e1dd;font-size:1rem;max-width:32em}
.visit-work{font-size:1rem;font-weight:700;color:#f7eee7;text-decoration:underline;text-underline-offset:.2em}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:1rem;margin:.7rem auto 1.2rem}
.gallery-controls button{min-height:44px;padding:.45rem .95rem;border:1px solid #89878c;background:#29292d;color:#faf8f2;font:inherit;font-weight:700;cursor:pointer}
.gallery-controls button:disabled{opacity:.48;cursor:default}
.gallery-count{font-variant-numeric:tabular-nums}
.museum-walk .shelf-piece:focus-visible{outline-offset:-4px}
@media(max-width:700px){
  .museum-walk{--stand:79%}
  .museum-walk::before,.museum-walk::after{aspect-ratio:0.19937;background-size:79cqw auto}
  .gallery-label{padding:.85rem .55rem 1rem}
}

.room > .pack-ad {
  display:grid;
  justify-items:center;
  gap:.4rem;
  margin:1.8rem auto;
  padding:1rem 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:.875rem;
}
.room > .pack-ad iframe {display:block;border:0;max-width:100%}
@media(max-width:323px){.room > .pack-ad{display:none}}
