#gallery-guide, .hp-corner-tools, .hp-settings, .hp-deck-page {
  --hp-cream: #fff3d6;
  --hp-gold: #f3d18a;
  --hp-wood: #382a21;
  --hp-brass: #b49662;
  --hp-teal: #203e3b;
  --hp-muted: #d3d6c8;
  --hp-focus: #fff0a5;
  scroll-margin-top: 1rem;
}
#gallery-guide *, .hp-corner-tools *, .hp-settings *, .hp-deck-page * { box-sizing: border-box; }
:is(#gallery-guide, .hp-corner-tools, .hp-settings, .hp-deck-page) :is(a, summary):focus-visible {
  outline: 3px solid var(--hp-focus); outline-offset: 3px;
}
:is(#gallery-guide, .hp-corner-tools, .hp-settings, .hp-deck-page) summary { cursor: pointer; }
:is(.gg-desk, .gg-second, .hp-parcel, .hp-look) > summary { list-style: none; }
:is(.gg-desk, .gg-second, .hp-parcel, .hp-look) > summary::-webkit-details-marker { display: none; }

/* The keeper occupies the first bay of the same gallery as the exhibits. */
#gallery-guide { color: var(--hp-cream); font: 1rem/1.6 system-ui, sans-serif; }
.gg-desk { width: 100%; min-width: 0; }
.gg-desk > summary { display: block; width: 100%; }
.gg-desk > summary:focus-visible { outline-offset: -4px; }
.gg-stage img {
  position: absolute; object-fit: contain; object-position: bottom; image-rendering: pixelated;
  left: 50%; bottom: calc(100% - var(--surface) - 1.2%); transform: translateX(-50%);
  height: 47%; width: 40%; filter: drop-shadow(1px 2px 1px #211b1488);
}
.gg-stage .gg-apprentice {
  display: none; height: 23%; width: 19%; left: 34%;
  bottom: calc(100% - var(--surface) + 1%);
}
.gg-stage .gg-wave, .gg-stage .gg-brandish, .gg-desk > summary .gg-when-open, .gg-second > summary .gg-when-open { display: none; }
.gg-desk[open] > summary :is(.gg-idle, .gg-when-shut), .gg-second[open] > summary .gg-when-shut { display: none; }
.gg-desk[open] > summary :is(.gg-wave, .gg-when-open), .gg-second[open] > summary .gg-when-open { display: block; }
.gg-desk[open]:has(.gg-second[open]) > summary :is(.gg-apprentice, .gg-brandish) { display: block; }
.gg-desk[open]:has(.gg-second[open]) > summary .gg-wave { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .gg-desk[open]:not(:has(.gg-second[open])) > summary .gg-brandish {
    display: block; animation: gg-outer .85s step-end both;
  }
  .gg-desk[open]:not(:has(.gg-second[open])) > summary .gg-wave { animation: gg-salute .85s step-end both; }
}
@keyframes gg-outer { 0%, 68% { visibility: visible; } 34%, 100% { visibility: hidden; } }
@keyframes gg-salute { 0%, 68% { visibility: hidden; } 34%, 100% { visibility: visible; } }
.gg-invitation { display: block; min-height: 44px; align-content: center; color: var(--hp-gold); font-size: 1rem; font-weight: 650; text-decoration: underline; text-underline-offset: .23em; }
.gg-greeting { padding: 0 clamp(.55rem, 2vw, 1.6rem) .85rem; }
.gg-greeting p { margin: 0 0 .6rem; line-height: 1.72; overflow-wrap: anywhere; }
.gg-second { margin: .3rem 0; }
.gg-second > summary, .gg-browse { display: inline-flex; min-height: 44px; align-items: center; line-height: 1.5; }
.gg-second > summary { border: 1px solid var(--hp-brass); padding: .45rem .8rem; color: var(--hp-cream); background: #463b32; }
.gg-second > p { margin: .5rem 0 0; color: var(--hp-gold); }
.gg-browse { color: var(--hp-cream); text-decoration: underline; text-underline-offset: .22em; }

.gg-credit { flex-basis: 100%; font-size: .875rem; line-height: 1.5; }
.gg-credit a { color: inherit; text-decoration: underline; }

/* The passing ship shares the corner of the existing camp navigation. */
.scene-top .hp-corner-tools { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: .5rem; }
.hp-corner-tools > span:first-child { font-size: .875rem; line-height: 1.35; text-align: right; color: var(--muted); }
.hp-corner { display: inline-flex; position: relative; align-items: center; justify-content: flex-end; }
.hp-ticket {
  display: inline-flex; align-items: center; justify-content: center; width: 3.35rem; height: 2.8rem;
  border: 1px solid #968365; border-bottom: 2px solid #71634c; background: #28352c;
}
.hp-ticket:hover { background: #38483a; border-color: #d6bd88; }
.hp-ticket img { width: 2.85rem; height: auto; image-rendering: pixelated; }
.hp-ticket[hidden], .hp-away-note[hidden] { display: none; }
.hp-away-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
.hp-settings { margin: .7rem 0; padding-top: .55rem; border-top: 1px solid #857653; color: var(--hp-cream); }
.hp-settings p { color: var(--hp-muted); margin: 0 0 .5rem; font-size: .9rem; }
.hp-settings nav, .hp-deck-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-settings nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .7rem;
  font-size: .95rem; color: var(--hp-cream); border: 1px solid var(--hp-brass); background: #353932; text-decoration: none;
}
.hp-settings nav a[aria-current] { background: var(--hp-gold); color: #2c281d; font-weight: 700; }
.hp-settings nav a[aria-current]::before { content: '✓'; margin-right: .3em; }
.hp-log { display: block; color: var(--hp-gold); font-size: .9rem; font-weight: 700; letter-spacing: .12em; }
.hp-return {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  color: #2c281d; background: var(--hp-gold); border: 2px solid #fde8b6; border-bottom-color: #a88a57;
  padding: .45rem .88rem; line-height: 1.5; font-weight: 750;
}
.hp-return:hover { background: #ffe6aa; }
@media (max-width: 600px) {
  .scene-top .hp-corner-tools > span:first-child { display: none; }
}
/* An illustrated lookout with a single, reader-initiated discovery. */
.hp-deck-page {
  margin: 0; min-height: 100vh; background: #162c2d; color: var(--hp-cream);
  font: 1rem/1.75 system-ui, sans-serif; color-scheme: dark;
}
.hp-mast {
  padding: .55rem max(1rem, calc((100vw - 57rem) / 2));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem;
  background: #202f2a; border-bottom: 2px solid #8c714d;
}
.hp-mast > span { font-weight: 750; }
.hp-mast small { margin-left: .35rem; font-size: .875rem; font-weight: 450; color: var(--hp-muted); }
.hp-mast a, .hp-deck-nav a:not(.hp-return) {
  min-height: 44px; display: inline-flex; align-items: center; color: var(--hp-cream); text-underline-offset: .23em;
}
.hp-deck { width: min(100% - 2rem, 57rem); margin: 0 auto; padding: clamp(1rem, 4vw, 2.6rem) 0 2.2rem; }
.hp-deck-heading { margin: 0 0 1rem; }
.hp-deck-heading h1 { margin: .2rem 0 .3rem; color: var(--hp-cream); font-size: clamp(1.6rem, 4.8vw, 2.65rem); line-height: 1.3; }
.hp-deck-heading p { margin: 0; max-width: 42em; color: #d8ded4; }
.hp-cargo { margin: 0 0 1.1rem; }
.hp-cargo h2 { margin: .3rem 0 .4rem; color: var(--hp-gold); font-size: 1.05rem; }
.hp-parcel { background: #30291f; border: 1px solid var(--hp-brass); border-left: 4px solid #a88f57; }
.hp-parcel + .hp-parcel { margin-top: .45rem; }
.hp-parcel summary { display: flex; gap: .8rem; align-items: center; min-height: 54px; padding: .45rem .85rem; }
.hp-parcel summary img { flex: none; width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.hp-parcel summary > span { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem .75rem; }
.hp-cargo-note { padding: .5rem .9rem .7rem; border-top: 1px solid #776043; }
.hp-cargo-note p { margin: 0 0 .3rem; }
.hp-cargo-note small { color: #decc9f; font-size: .875rem; }
.hp-look { border: 2px solid var(--hp-brass); background: #302a23; }
.hp-look > summary { display: block; }
.hp-view { display: block; position: relative; overflow: hidden; background: #5c8076; }
.hp-view img { display: block; image-rendering: pixelated; }
.hp-panorama { width: 100%; height: auto; }
.hp-fisher { position: absolute; right: 4%; bottom: 3%; width: 22%; height: auto; }
.hp-catch {
  position: absolute; top: 51%; right: 22%; width: 7%; padding-top: 2%;
  filter: drop-shadow(1px 2px 0 #38271b);
}
.hp-catch::before { content: ''; position: absolute; top: 0; bottom: 75%; left: 52%; border-left: 2px solid #d6ba7a; }
.hp-catch img { position: relative; width: 100%; height: auto; }
.hp-look-sign {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .2rem .9rem;
  padding: .6rem 1rem; border-top: 2px solid #b49365; background: var(--hp-wood);
}
.hp-look-sign strong { font-size: 1.08rem; }
.hp-look-action { color: var(--hp-gold); text-decoration: underline; text-underline-offset: .22em; }
:is(.hp-look,.hp-parcel) .hp-open, :is(.hp-look,.hp-parcel)[open] .hp-closed { display: none; }
:is(.hp-look,.hp-parcel)[open] .hp-open { display: inline; }
.hp-observation {
  margin: 0; padding: .85rem 1rem 1rem; border-top: 1px solid #695a49; line-height: 1.8;
}
.hp-deck-nav { margin-top: 1rem; align-items: center; gap: .55rem 1.25rem; }
.hp-return { text-decoration: none; }
@media (max-width: 600px) {
  .hp-deck { width: calc(100% - 1.1rem); }
  .hp-mast { padding-inline: .65rem; }
  .hp-look-sign { align-items: start; flex-direction: column; }
}
