/* Back room + star page sheets */

.page--star {
  --back-room-shade: rgba(10, 10, 10, 0.82);
}

/* Video stays full opacity — dimming is the rgba shade only (Safari breaks video opacity) */
.page--star .hero__bg {
  opacity: 1;
}

.page--star .star-tap.is-retreated {
  opacity: 0;
  transform: scale(0.85);
  animation: none;
  transition: opacity 250ms ease, transform 250ms ease;
}

.page--star .sheet {
  z-index: 25;
}

.page--star .peek-dismiss.is-active {
  z-index: 24;
}

.back-room {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.back-room.is-visible {
  display: block;
  pointer-events: auto;
}

.back-room__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--back-room-shade);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}

.back-room.is-open .back-room__shade {
  opacity: 1;
}

.back-room__menu {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

.back-room.is-open .pack-signup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 100ms;
}

.back-room.is-open .pack-sticker--tiktok {
  opacity: 1;
  transition-delay: 160ms;
}

.back-room.is-open .pack-sticker--instagram {
  opacity: 1;
  transition-delay: 200ms;
}

.back-room.is-open .pack-sticker--contact {
  opacity: 1;
  transition-delay: 240ms;
}

.back-room.is-open .pack-sticker--wiifendo {
  opacity: 1;
  transition-delay: 260ms;
}

.back-room.is-open .pack-sticker--legal {
  opacity: 1;
  transition-delay: 300ms;
}

.back-room.is-closing .back-room__menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  transition-delay: 0ms;
}

.back-room.is-closing .pack-signup,
.back-room.is-closing .pack-sticker {
  opacity: 0;
  transition-delay: 0ms;
  transition-duration: 200ms;
}

.pack-signup {
  position: absolute;
  top: clamp(18%, 22vh, 28%);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(440px, calc(100% - 48px));
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pack-signup__heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(32px, 8vw, 56px);
  color: var(--cream);
  line-height: 1;
  margin-bottom: 12px;
}

.pack-signup__sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.8);
  margin-bottom: 20px;
}

.pack-signup__form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pack-signup__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: transparent;
  border: 1.5px solid rgba(244, 239, 230, 0.4);
  border-radius: 10px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream);
}

.pack-signup__input::placeholder {
  color: rgba(244, 239, 230, 0.45);
}

.pack-signup__submit {
  flex-shrink: 0;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.pack-signup__submit:active {
  opacity: 0.85;
}

.pack-stickers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pack-sticker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px solid var(--black);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 18px;
  line-height: 1.1;
  opacity: 0;
  transition: opacity 220ms ease;
}

.pack-sticker:active {
  opacity: 0.85;
}

.pack-sticker__label {
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pack-sticker__text {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.pack-sticker__text--small {
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  text-transform: lowercase;
  letter-spacing: 0;
}

.pack-sticker--tiktok {
  top: 54%;
  left: 6%;
  width: 100px;
  height: 100px;
  padding: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--black);
  transform: rotate(-6deg);
}

.pack-sticker--tiktok .pack-sticker__label {
  font-size: 9px;
}

.pack-sticker--tiktok .pack-sticker__text {
  font-size: 11px;
}

.pack-sticker--instagram {
  top: 48%;
  right: 4%;
  width: 118px;
  min-height: 108px;
  background: var(--black);
  color: var(--cream);
  border-color: var(--cream);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  transform: rotate(5deg);
}

.pack-sticker--contact {
  top: 66%;
  left: 10%;
  min-width: 132px;
  background: var(--cream);
  color: var(--black);
  border-radius: 14px;
  transform: rotate(-4deg);
}

.pack-sticker--wiifendo {
  top: auto;
  bottom: 14%;
  left: 50%;
  right: auto;
  min-width: 116px;
  min-height: 100px;
  padding: 12px 16px;
  background: var(--cream);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 52% 48% 58% 42% / 46% 54% 46% 54%;
  transform: translateX(-50%) rotate(-9deg);
}

.pack-sticker--wiifendo .pack-sticker__label {
  font-size: 10px;
}

.pack-sticker--wiifendo .pack-sticker__text {
  font-size: 13px;
}

.pack-sticker--legal {
  top: 70%;
  right: 8%;
  min-width: 108px;
  padding: 12px 14px;
  background: var(--orange);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 12px;
  transform: rotate(8deg);
  -webkit-appearance: none;
  appearance: none;
}

.pack-sticker--legal .pack-sticker__text {
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 380px) {
  .pack-signup__form {
    flex-direction: column;
  }

  .pack-sticker--tiktok {
    width: 88px;
    height: 88px;
    left: 4%;
  }

  .pack-sticker--instagram {
    width: 104px;
    min-height: 96px;
    right: 2%;
  }

  .pack-sticker--contact {
    left: 6%;
    min-width: 120px;
  }

  .pack-sticker--wiifendo {
    bottom: 12%;
    min-width: 104px;
    min-height: 92px;
  }

  .pack-sticker--legal {
    right: 4%;
  }
}

.page--star .sheet--buy .sheet__scroll {
  padding-top: 12px;
}

.page--star #buySheet.sheet--buy {
  isolation: isolate;
}

.page--star #buySheet.sheet--buy::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: url(#grain);
  background: #000;
  opacity: 0.04;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: overlay;
}

.page--star #buySheet.sheet--buy > .sheet__scroll {
  position: relative;
  z-index: 1;
}

.page--star .sheet--why,
#whySheet.sheet--why {
  background: #F7F2E0;
  background-color: #F7F2E0;
}

.page--star .sheet--why .sheet__scroll,
#whySheet .sheet__scroll {
  background-color: #F7F2E0;
}

.page--star .sheet--why .sheet__handle,
#whySheet .sheet__handle {
  background: rgba(10, 10, 10, 0.2);
}

.page--star .sheet--buy .product__name {
  font-size: 36px;
  line-height: 1.05;
  padding-right: 44px;
}

.add-to-cart-error {
  margin: -12px 24px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #8B0000;
}

.add-to-cart:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.page--star .sheet__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 12;
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.94);
  box-shadow: 0 1px 6px rgba(10, 10, 10, 0.12);
  color: var(--black);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page--star .sheet__close:active {
  opacity: 0.65;
}

.buy-accordions {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-accordion {
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.buy-accordion:last-child {
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}

.buy-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: none;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
}

.buy-accordion__label {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--black);
}

.buy-accordion__icon {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}

.buy-accordion__trigger:active {
  opacity: 0.65;
}

.buy-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.buy-accordion.is-open .buy-accordion__panel {
  max-height: 160px;
}

.buy-accordion__panel p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.75);
  padding: 0 0 14px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page--star .star-tap.is-retreated,
  .back-room__shade,
  .pack-signup,
  .pack-sticker {
    transition: none;
  }

  .buy-accordion__panel {
    transition: none;
  }
}
