/**
 * Tribute — continuous scroll, goo pour, shop panel.
 */

:root {
  --tribute-black: #050505;
  --tribute-red: #8b0000;
  --tribute-muted: #8a8a8a;
  --tribute-stroke: #e91e8c;
}

body:has(.tribute-page) {
  background: var(--tribute-black);
}

#goo-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tribute-page.page {
  padding-top: 0;
}

.tribute-page {
  position: relative;
  z-index: 1;
}

.tribute-page__scatter {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.tribute-placeholder,
.tribute-shop {
  position: relative;
  z-index: 1;
}

/* --- Panel 1 --- */

.tribute-placeholder {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3vh, 1.75rem);
  padding:
    calc(var(--site-header-height, calc(min(24vw, 140px) + 1.7rem)) + clamp(0.5rem, 1.5vh, 1rem))
    1.5rem
    3rem;
  text-align: center;
}

/* T3 — stacked offset shadow (sticker playground) */
@keyframes tribute-txt-stack-shadow {
  0%,
  49.99% {
    text-shadow:
      6px 6px 0 #050505,
      12px 12px 0 #e91e8c;
  }

  50%,
  100% {
    text-shadow:
      10px 10px 0 #050505,
      19px 19px 0 #e91e8c;
  }
}

.tribute-placeholder__title-wrap {
  margin: 0;
}

.tribute-placeholder__title {
  margin: 0;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #f5f5f5;
  -webkit-text-stroke: 3px #050505;
  paint-order: stroke fill;
  text-shadow:
    6px 6px 0 #050505,
    12px 12px 0 #e91e8c;
  animation: tribute-txt-stack-shadow calc(var(--frame-ms, 600ms) * 2) steps(1, end) infinite;
  animation-delay: var(--anim-delay, 0ms);
}

.tribute-placeholder__sticker {
  position: relative;
  flex: 0 0 auto;
  width: min(72vw, 18rem);
  margin: 0;
  aspect-ratio: var(--stage-aspect, 1274 / 1264);
}

.tribute-placeholder__sticker .img-sticker__shadow,
.tribute-placeholder__sticker .img-sticker__frame,
.tribute-placeholder__sticker .img-sticker__photo {
  position: absolute;
  inset: 0;
}

.tribute-placeholder__sticker .img-sticker__photo {
  z-index: 2;
  overflow: hidden;
}

.tribute-placeholder__sticker .img-sticker__frame {
  box-shadow:
    0 0 0 4px #050505,
    0 0 0 9px var(--stroke, #ff5ec8),
    0 0 16px color-mix(in srgb, var(--stroke, #ff5ec8) 72%, transparent);
}

.tribute-placeholder__sticker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tribute-placeholder__tagline {
  margin: 0;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 3.2vw, 1.55rem);
  letter-spacing: 0.02em;
  color: var(--tribute-stroke);
}

.tribute-placeholder__hint {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: tribute-hint-bob 1.4s ease-in-out infinite;
}

@keyframes tribute-hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* --- Panel 2 — shop scrolls in while goo pours behind it --- */

.tribute-shop {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--site-header-height, calc(min(24vw, 140px) + 1.7rem)) 1rem 2rem;
  background: transparent;
}

.tribute-page .shop {
  min-height: 0;
  width: 100%;
  padding: 0;
  background: transparent;
}

.tribute-page .shop__scene-wrap {
  position: relative;
  width: min(88vw, 720px);
  margin: 0 auto;
  overflow: visible;
}

.tribute-page .shop__scene {
  position: relative;
  z-index: 2;
  transform: none;
}

.tribute-page .scatter-sticker {
  position: absolute;
  left: var(--sticker-x);
  top: var(--sticker-y);
  width: min(52vw, 640px);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--sticker-rotate, 0deg)) scale(var(--sticker-scale, 1));
  transform-origin: center center;
  will-change: transform, opacity;
}

.tribute-page .scatter-sticker__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tribute-page .scatter-sticker .stroke-text,
.tribute-page .scatter-sticker .stroke-text__line {
  stroke-linejoin: round;
  stroke-linecap: round;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 900;
  font-size: 104px;
}

.tribute-page .scatter-sticker .stroke-text__layer--stroke .stroke-text__line {
  fill: none;
  stroke: var(--stroke-color, #e91e8c);
  stroke-width: var(--stroke-width, 16px);
}

.tribute-page .scatter-sticker .stroke-text__layer--fill .stroke-text__line {
  fill: var(--fill-color, #fff);
  stroke: none;
  stroke-width: 0;
}

.tribute-page .scatter-sticker .stroke-text__rotator {
  transform-box: fill-box;
  transform-origin: center center;
}

.tribute-page .shop__art,
.tribute-page .shop__art svg {
  background: transparent;
}

/* Censor bars sit under labels / buttons / pay */
.tribute-page .shop-censor__bar {
  position: relative;
  z-index: 1;
}

.tribute-page .shop-censor__actions,
.tribute-page .shop__sticker--bottom {
  z-index: 3;
}

/* Compact pay bar — always visible, ~2:1 wide:tall */
.tribute-page .shop__censor--bottom {
  bottom: 0;
  width: auto;
  transform: translate(-170%, -50%);
}

.tribute-page .shop-censor__bar--compact {
  width: auto;
}

.tribute-page .shop-censor__bar-face--compact {
  --shop-pay-bar-height: clamp(1.75rem, 5vw, 2.25rem);

  width: calc(var(--shop-pay-bar-height) * 2);
  height: var(--shop-pay-bar-height);
  min-height: 0;
}

.tribute-page .shop__censor--bottom .shop__sticker--bottom {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
  .tribute-page__scatter {
    opacity: 0.72;
  }

  .tribute-page .scatter-sticker {
    width: min(88vw, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tribute-placeholder__title {
    animation: none;
  }

  .tribute-placeholder__hint {
    animation: none;
  }
}
