/* All art coordinates use the 1106 × 1422 face of the yellow cabinet. */
.cabinet { --panel-width: 85.24%; }
.hall-board, .cabinet > .selection, .cabinet > .offers { width: var(--panel-width); }
.hall-board {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  scroll-margin-top: clamp(32px, 7vh, 130px);
}
.panel-joint {
  position: relative;
  display: block;
  z-index: 2;
  width: 100.4%;
  max-width: none;
  height: auto;
  aspect-ratio: 1640 / 37;
  margin: -1px 0 -1px -.2%;
  pointer-events: none;
}
.hall-scene {
  position: relative;
  isolation: isolate;
  /* Anchor navigation must scroll the page, never the cropped artwork. */
  overflow: clip;
  aspect-ratio: 1106 / 1422;
  width: 100%;
  background-color: #f4b522;
  container-type: inline-size;
  --scroll-turn: 0;
  --cloud-shift: 0px;
}
.board-part {
  position: absolute;
  display: block;
  left: calc(100% * var(--x) / 1106);
  top: calc(100% * var(--y) / 1422);
  width: calc(100% * var(--w) / 1106);
  height: calc(100% * var(--h) / 1422);
  max-width: none;
  margin: 0;
  padding: 0;
  user-select: none;
  pointer-events: none;
}
.board-headline img, .can-pickup img {
  display: block;
  width: 100%;
  height: 100%;
}
.hall-scene .orbit {
  transform-origin: 50% 50%;
  transform: rotate(calc(var(--scroll-turn) * var(--sweep)));
  will-change: transform;
}
.cloud-sensor { --x: 0; --y: 947; --w: 1106; --h: 475; scroll-margin-top: min(23svh, 160px); }
.puppet-cup { z-index: 45; }
.swing {
  z-index: 46;
  transform-origin: 51.39535% 0%;
  transform: rotate(var(--angle, 0deg));
  will-change: transform;
  border: 0;
  background: transparent;
  touch-action: pan-y;
  appearance: none;
}
.swing-cord, .swing-body {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.swing-cord {
  /* The vertical axis starts at the pin and ends 3px inside the head seam. */
  left: 50.56%; top: -.18%; width: 1.68%; height: 41.45%;
  transform-origin: top center;
  transform: rotate(2.42deg);
  pointer-events: none;
  filter: drop-shadow(.1cqw .1cqw .09cqw rgb(42 26 16 / 38%));
}
.swing-body {
  left: 0; top: 35.655%; width: 89.737%; height: 64.204%;
  transform-origin: 53.38% 7.608%;
  transform: rotate(var(--lag,0deg));
  filter: drop-shadow(.27cqw .51cqw .36cqw rgb(46 24 18 / 33%));
  cursor: grab;
  pointer-events: auto;
}
.swing.dragging .swing-body { cursor: grabbing; }
.swing:focus-visible { outline: none; }
.swing:focus-visible .swing-body { filter: drop-shadow(0 0 .22rem #fbf5d4) drop-shadow(.2rem .3rem .2rem #42332170); }
.pickup-window {
  overflow: hidden;
  border-radius: 6.5% / 15%;
  clip-path: inset(0 round 6.5% / 15%);
  z-index: 35;
}
.can-pickup {
  position: absolute;
  left: 10.842%; top: 17.791%; width: 80.051%; height: 66.258%;
  margin: 0; padding: 0; border: 0; background: transparent;
  cursor: pointer; pointer-events: auto; appearance: none; touch-action: manipulation;
}
.can-pickup:focus-visible { outline: 2px solid #fff6c9; outline-offset: 3px; border-radius: 12% / 25%; }
.peek-head { z-index: 60; transform-origin: 40% 83%; }
@media (max-width: 700px) and (orientation: portrait) {
  .cabinet { --panel-width: 85.85%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hall-scene .float-print {
    animation: print-float 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    animation-play-state: paused;
  }
  .onstage .hall-scene .float-print { animation-play-state: running; }
  .peek-head { animation: cloud-peek 7s cubic-bezier(.43, .03, .32, 1) infinite paused; }
  .peek-visible .peek-head { animation-play-state: running; }
}
@keyframes print-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -.82cqw; }
}
@keyframes cloud-peek {
  0%, 9%, 100% { transform: translate(-5.2%, 109%) rotate(-3deg); }
  27% { transform: translate(-.6%, 7%) rotate(-1deg); }
  34%, 60% { transform: translate(0, 0) rotate(0); }
  66% { transform: translate(.4%, 5%) rotate(.6deg); }
  80%, 93% { transform: translate(-5.2%, 109%) rotate(-3deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .cloud-rear { translate: 0 calc(67 * var(--cloud-shift)); }
  .cloud-middle { translate: 0 calc(-77 * var(--cloud-shift)); }
}
