.m-arrow { --c: #c8ff3e; position: absolute; top: 53.65%; width: max(calc(var(--F) * .148), 50px); aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; z-index: 5; transform: translate(-50%, -50%) scale(var(--pop, 1)); opacity: 0; -webkit-tap-highlight-color: transparent; }
.m-arrow-l { left: 6.2%; }
.m-arrow-r { left: 93.8%; }
.m-arrow-btn { position: absolute; inset: 7%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fbffd6, #d8ff5e 34%, #8fe01e 72%, #4f9a0c);
  box-shadow: inset 0 -3px 6px rgb(30 70 0 / .55), 0 0 0 3px #120d16, 0 0 16px 3px rgb(190 255 70 / .95), 0 0 42px 12px rgb(170 255 50 / .6);
  animation: m-arrow-breath 1.7s ease-in-out infinite; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), filter .2s; }
.m-arrow-btn svg { width: 62%; height: 62%; display: block; overflow: visible; transition: transform .15s; }
.m-arrow-btn path { fill: #14210a; stroke: #14210a; stroke-width: 4; stroke-linejoin: round; }
@keyframes m-arrow-breath { 50% { box-shadow: inset 0 -3px 6px rgb(30 70 0 / .55), 0 0 0 3px #120d16, 0 0 26px 8px rgb(214 255 110 / 1), 0 0 74px 26px rgb(170 255 50 / .78); filter: brightness(1.14); } }
/* two rings keep leaving the button, like ripples */
.m-arrow-ring { position: absolute; inset: 4%; border-radius: 50%; border: 3px solid var(--c); opacity: 0; animation: m-arrow-ring 2.4s ease-out infinite; pointer-events: none; box-shadow: 0 0 10px 1px rgb(190 255 70 / .7); }
.m-arrow-ring + .m-arrow-ring { animation-delay: -1.2s; }
@keyframes m-arrow-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
.m-arrow:hover .m-arrow-btn { transform: scale(1.14); filter: brightness(1.22); }
.m-arrow:active .m-arrow-btn { transform: scale(.88); }
.m-arrow-l:active svg { transform: translateX(-6%); }
.m-arrow-r:active svg { transform: translateX(6%); }
.m-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes m-sign-glow { 50% { opacity: .55; } }
@keyframes m-sign-sweep { 0% { background-position: 130% 0; } 34%, 100% { background-position: -30% 0; } }
.bay { position: relative; pointer-events: auto; flex: none; }

/* ---------- the sign: its two halves slide in from the sides and lock, then the letters light up ---------- */
.bay-sign { --seam: 50%; --img: none; position: absolute; left: 50%; top: 0; width: var(--sw); height: calc(var(--sw) * var(--sr)); margin: 0 0 0 calc(var(--sw) / -2); z-index: 6; pointer-events: none; }
.bay-sign-half { position: absolute; inset: 0; background: var(--img) 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 7px 10px rgb(0 0 0 / .65)); opacity: 0; will-change: transform, opacity; transition: transform .5s cubic-bezier(.5, 0, .9, .5), opacity .3s .2s; }
.bay-sign-l { clip-path: inset(-20% calc(100% - var(--seam)) -20% -2%); transform: translateX(-72vw); }
.bay-sign-r { clip-path: inset(-20% -2% -20% var(--seam)); transform: translateX(72vw); }
.is-in .bay-sign-half { opacity: 1; transform: none; transition: transform 1s cubic-bezier(.16, .9, .24, 1), opacity .25s; }
.is-in .bay-sign-r { transition-delay: .06s; }
.bay-sign-glow { position: absolute; inset: -22% -3%; background: var(--glow) center / 94.4% 72% no-repeat; mix-blend-mode: screen; opacity: 0; transition: opacity .25s; }
.is-in .bay-sign-glow { opacity: 1; transition: opacity 1s .95s; animation: m-sign-glow 3.4s ease-in-out 2s infinite; }
.bay-sign-sweep { position: absolute; inset: 0; opacity: 0; -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat; background: linear-gradient(105deg, transparent 42%, rgb(255 255 240 / .95) 50%, transparent 58%) 0 0 / 300% 100% no-repeat; background-position: 130% 0; }
.is-in .bay-sign-sweep { opacity: 1; animation: m-sign-sweep 5.5s ease-in-out 1.2s infinite; }
.bay-sign-merch { --sr: .2447; --seam: 45.7%; --img: url('./sign-merch.webp'); --glow: url('./sign-merch-glow.webp'); --mask: url('./sign-merch-mask.webp'); }

/* ---------- the machine's frame: steel, rivets and a pipe round all four sides; it stretches to any size without bending a rivet ---------- */
.bay-frame { --S: calc(var(--fb) / .1276); /* the frame picture's full size at this scale */
  position: relative; border-style: solid; border-color: transparent; border-width: var(--fb);
  border-image-source: url('./bay-frame.webp');
  border-image-slice: 25.2% 25.4% 23% 25.5%;
  border-image-width: calc(var(--S) * .252) calc(var(--S) * .254) calc(var(--S) * .23) calc(var(--S) * .255);
  border-image-repeat: round;
  background: radial-gradient(ellipse at 50% 30%, #1c1426, #0c0812 78%) padding-box; }
.bay-frame::before { content: ""; position: absolute; inset: calc(var(--fb) * -.9); border-radius: calc(var(--fb) * 1.2); background: transparent; z-index: -1; box-shadow: 0 26px 70px 14px rgb(0 0 0 / .72); }

/* a button in the same steel language */
.bay-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 2px solid #120d16; border-radius: 999px; background: #2a2a33; color: #fff; font: 600 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 3px 0 #120d16, inset 0 0 0 1px rgb(255 255 255 / .12); transition: background .2s, transform .12s, box-shadow .2s; }
.bay-btn:hover { background: #41414c; }
.bay-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.bay-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bay-btn-go { background: #c8ff3e; color: #14210a; box-shadow: 0 3px 0 #120d16, 0 0 18px 3px rgb(190 255 70 / .55); }
.bay-btn-go:hover { background: #e2ff8c; }

.belt-machine {
  --W: min(96vw, 1400px, calc((var(--vh) * 100 - var(--bar, 74px) - var(--dock, 0px) - 26px) * 1.78));
  --fb: calc(var(--W) * .03);
  --sw: min(calc(var(--W) * .3), 70vw);
  --item: clamp(150px, calc(var(--W) * .178), 250px);
  width: var(--W);
  padding-top: calc(var(--sw) * .2447 * .8);
}
.belt-frame { display: block; padding-bottom: 0; }
/* the lit back wall of the shop window */
.belt-glass { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #16321c, #1f4a28 40%, #122a18); box-shadow: inset 0 0 40px 10px rgb(0 0 0 / .6); display: flex; justify-content: space-around; }
/* the lamp hoods again, in front of the chains (their light stays behind the merch) */
.belt-hoods { position: absolute; inset: 0; z-index: 3; overflow: hidden; display: flex; justify-content: space-around; pointer-events: none; }
.belt-hood { width: calc(var(--item) * .34); aspect-ratio: 611 / 433; background: url('./lamp-hood.webp') center top / contain no-repeat; }
.belt-lamp { width: calc(var(--item) * .34); aspect-ratio: 611 / 433; background: url('./lamp-hood.webp') center top / contain no-repeat; position: relative; }
.belt-lamp::after { content: ""; position: absolute; left: -60%; right: -60%; top: 72%; height: calc(var(--item) * 1.7); background: radial-gradient(ellipse 50% 100% at 50% 0, rgb(255 244 150 / .26), transparent 72%); animation: belt-lamp 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.61s); pointer-events: none; }
@keyframes belt-lamp { 50% { opacity: .6; } }
.belt-window { position: relative; z-index: 2; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; margin-top: -2px; padding: calc(var(--item) * .17 + 2px) 0 0; outline-offset: -4px; }
.belt-window::-webkit-scrollbar { display: none; }
.belt-window.is-drag { cursor: grabbing; }
.belt-window.is-drag a { pointer-events: none; }
.belt-row { display: flex; width: max-content; list-style: none; margin: 0; padding: 0 calc(var(--item) * .1); }
.belt-item { flex: none; width: var(--item); margin-right: calc(var(--item) * .1); }
.belt-link { position: relative; display: block; color: inherit; -webkit-tap-highlight-color: transparent; user-select: none; }
/* the chains are two links longer than in price-tag.webp: they run up behind the lamps and about two thirds of each ring goes in behind the frame's top edge; the plate stays where it was */
.belt-tag { position: relative; display: block; width: 56%; height: calc(var(--item) * .6745 + 2px); margin: calc(var(--item) * -.2185 - 2px) auto calc(var(--item) * .025); background: url('./price-tag-long.webp') center / 100% 100% no-repeat; z-index: 2; transform-origin: 50% 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.belt-tag b { position: absolute; left: 10%; right: 10%; top: 74.3%; height: 24.3%; display: flex; align-items: center; justify-content: center; color: #241503; font: 700 clamp(13px, calc(var(--item) * .092), 21px)/1 var(--font); letter-spacing: .02em; }
.belt-chain { display: none; }
.belt-tray { position: relative; display: block; width: 100%; aspect-ratio: 1; background: #09090c; border: 3px solid #120d16; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 calc(var(--item) * .022) #7d7f89, 0 0 0 calc(var(--item) * .022 + 3px) #120d16, 0 10px 16px rgb(0 0 0 / .55); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.belt-tray img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.belt-label { display: block; margin-top: calc(var(--item) * .055); min-height: calc(var(--item) * .24); padding: 6px 8px; text-align: center; border: 2px solid #120d16; border-radius: 6px; background: linear-gradient(180deg, #3a3a44, #26262e); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); position: relative; z-index: 1; }
.belt-label b, .belt-label small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.belt-label b { color: #d8ff5e; font: 600 clamp(12px, calc(var(--item) * .07), 15px)/1.2 var(--font); letter-spacing: .02em; }
.belt-label small { color: #e6e3d8; font: 400 clamp(11px, calc(var(--item) * .058), 13px)/1.25 var(--font); }
.belt-link:hover .belt-tray, .belt-link:focus-visible .belt-tray { transform: translateY(calc(var(--item) * -.035)) scale(1.03); box-shadow: 0 0 0 calc(var(--item) * .022) #c9cbd3, 0 0 0 calc(var(--item) * .022 + 3px) #120d16, 0 0 26px 6px rgb(190 255 70 / .7); }
.belt-link:hover .belt-tag { transform: rotate(-4deg); }
.belt-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the belt: its surface moves, the rollers and gears turn with it */
.belt-track { position: relative; z-index: 4; height: calc(var(--item) * .22); margin-top: calc(var(--item) * .012); border-block: 3px solid #120d16; background: radial-gradient(circle at 50% 50%, #e0e2e8 0 12%, #7a7c86 14% 34%, #120d16 36% 42%, transparent 44%) 0 58% / calc(var(--item) * .24) 100% repeat-x, #24242c; }
.belt-surface { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: repeating-linear-gradient(90deg, #d59a3a 0 calc(var(--item) * .1), #b57d27 calc(var(--item) * .1) calc(var(--item) * .106), #120d16 calc(var(--item) * .106) calc(var(--item) * .112)); border-bottom: 3px solid #120d16; }
.belt-gear { position: absolute; top: 50%; width: calc(var(--item) * .4); aspect-ratio: 1; margin-top: calc(var(--item) * -.2); background: url('./gear.webp') center / contain no-repeat; will-change: transform; z-index: 2; }
.belt-gear-l { left: calc(var(--item) * -.08); }
.belt-gear-r { right: calc(var(--item) * -.08); }
.belt-arrow { top: 46%; width: clamp(50px, calc(var(--W) * .05), 76px); opacity: 1; --F: var(--W); z-index: 6; }
.belt-arrow-l { left: calc(var(--fb) * -.15); }
.belt-arrow-r { left: auto; right: calc(var(--fb) * -.15); transform: translate(50%, -50%) scale(var(--pop, 1)); }
.belt-foot { position: relative; z-index: 3; display: flex; justify-content: center; padding: calc(var(--item) * .05) 0 calc(var(--item) * .03); background: linear-gradient(180deg, #3a3a44, #26262e); border-top: 3px solid #120d16; }
.belt-foot .bay-btn { min-width: 180px; }

/* phones: the belt fills the screen's width, no pinning */
@media (max-width: 899px), (max-height: 560px) {
  .bay-track-merch { height: auto; }
  .bay-track-merch .bay-stage { position: relative; height: auto; padding-block: 34px; overflow: clip; }
  .belt-machine { --W: min(96vw, 720px); --fb: calc(var(--W) * .05); --sw: 64vw; --item: clamp(150px, 46vw, 220px); }
  .belt-arrow { width: 52px; top: 42%; }
  .belt-arrow-l { left: 14px; }
  .belt-arrow-r { right: 14px; }
}
#merch { overflow: clip; padding: 2rem 0; --font: inherit; }
#belt-machine { --W: min(92vw, 72rem); --font: system-ui, sans-serif; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) {
  #merch *, #merch *::after { animation: none; transition: none; }
}
