/* RePiT — Animation 03 v7
   Truth source = supplied RePiT captures.
   During Pitch Picker: complete screenshot at 80%, pitch buttons from the SAME state at 100%.
   Pitch changes are discrete states, never vertical movement. */

.repit-pitch-v7 {
  --repit-w: 528;
  --repit-open-h: 877;
  --repit-ease: cubic-bezier(.22,.72,.18,1);
  position: relative;
  width: min(100%, 528px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  transition: height 720ms var(--repit-ease);
  background: #000;
}

.repit-pitch-v7__stage,
.repit-pitch-v7__closed,
.repit-pitch-v7__picker-scene {
  position: absolute;
  inset: 0;
}

.repit-pitch-v7 img {
  display: block;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.repit-pitch-v7__closed-base,
.repit-pitch-v7__final {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.repit-pitch-v7__closed {
  opacity: 1;
  transition: opacity 320ms ease;
  z-index: 1;
}

.repit-pitch-v7__note {
  position: absolute;
  top: 80.113636%; /* 423 / 528 */
  width: 13.257576%; /* 70 / 528 */
  height: auto;
  opacity: 0;
  transform: translateY(5px) scale(.94);
  transform-origin: center;
  transition: opacity 300ms ease, transform 420ms var(--repit-ease);
}
.repit-pitch-v7__note--2 { left: 21.212121%; } /* 112 / 528 */
.repit-pitch-v7__note--3 { left: 35.795455%; } /* 189 / 528 */
.repit-pitch-v7__note.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.repit-pitch-v7__picker-scene {
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease;
}
.repit-pitch-v7.is-picker-open .repit-pitch-v7__picker-scene {
  opacity: 1;
  visibility: visible;
}
.repit-pitch-v7.is-picker-open .repit-pitch-v7__closed { opacity: 0; }

/* Four background states: the whole application is deliberately 20% darker. */
.repit-pitch-v7__picker-bg,
.repit-pitch-v7__picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
}
.repit-pitch-v7__picker-bg.is-current { opacity: .8; }
.repit-pitch-v7__picker-overlay.is-current { opacity: 1; }

/* Picker overlay contains only pixels belonging to the 25 pitch buttons.
   It is extracted from each matching screenshot: no SVG and no redrawing. */
.repit-pitch-v7__picker-overlay { z-index: 2; }
.repit-pitch-v7__picker-bg { z-index: 1; }

.repit-pitch-v7__final {
  z-index: 5;
  opacity: 0;
  transition: opacity 480ms ease;
}
.repit-pitch-v7.is-final .repit-pitch-v7__final { opacity: 1; }
.repit-pitch-v7.is-final .repit-pitch-v7__picker-scene,
.repit-pitch-v7.is-final .repit-pitch-v7__closed { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .repit-pitch-v7 { transition: none !important; }
  .repit-pitch-v7 * { transition: none !important; }
}
