/* booth.css — cream scrapbook page: the photobooth strip + draggable stickers. */

.booth {
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(rgba(20, 10, 18, 0.06) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper);
  color: var(--ink);
  padding-bottom: 60px;
}

.booth__title {
  font-size: clamp(56px, 17vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: normal;
  color: var(--ink);
}

.booth__hint {
  margin: 0 auto;
  max-width: 310px;
  font-size: 15px;
  color: rgba(20, 10, 18, 0.72);
}

.booth__stage {
  position: relative;
  height: 600px;
  margin-top: 26px;
}

.strip {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 190px;
  margin-left: -95px;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 16px 30px rgba(20, 10, 18, 0.28), 0 2px 0 rgba(20, 10, 18, 0.08);
  transform-origin: 50% 0;
  animation: sway 5.5s var(--ease-in-out) infinite;
}

.strip img {
  width: 100%;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-1.5deg);
  }
}

.strip__tape {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -14px;
  width: 86px;
  height: 28px;
  margin-left: -43px;
  background: rgba(200, 255, 61, 0.82);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.booth__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  font-size: 26px;
  color: var(--rani-deep);
  transform: rotate(-3deg);
}

.booth__stickers {
  position: absolute;
  inset: 0;
}

.sticker {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--sc, 1));
  transition: transform 300ms var(--ease-spring);
  filter: drop-shadow(2px 4px 4px rgba(20, 10, 18, 0.25));
}

.sticker img {
  width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sticker.is-dragging {
  cursor: grabbing;
  --sc: 1.14;
  transition: none;
  z-index: 5;
}

.sticker.is-in {
  animation: sticker-pop 620ms var(--ease-spring) both;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes sticker-pop {
  from {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) - 30deg)) scale(0.3);
  }
}

.booth:not(.is-in) .sticker {
  opacity: 0;
}

/* camera flash, only over this section */
.booth__flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.booth__flash.is-on {
  animation: flash 520ms ease-out;
}
