/* Shared bits used by every mockup */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Papel picado strip */
.picado { display: flex; gap: 6px; padding: 0 6px; position: relative; height: 62px; overflow: hidden; }
.picado::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: var(--string, #5A3D5C); opacity: .45; }
.picado span {
  flex: 1; min-width: 0; margin-top: 4px; background: var(--p1, #F7A6B4);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 87.5% 100%, 75% 78%, 62.5% 100%, 50% 78%, 37.5% 100%, 25% 78%, 12.5% 100%, 0 78%);
  -webkit-mask: radial-gradient(circle, transparent 2.6px, #000 3.2px) 50% 40% / 11px 11px;
          mask: radial-gradient(circle, transparent 2.6px, #000 3.2px) 50% 40% / 11px 11px;
  transform-origin: top center; animation: sway 3.6s ease-in-out infinite alternate;
}
.picado span:nth-child(4n+2) { background: var(--p2, #F9D56E); animation-delay: -1s; }
.picado span:nth-child(4n+3) { background: var(--p3, #3CC8EC); animation-delay: -2s; }
.picado span:nth-child(4n+4) { background: var(--p4, #B79CF2); animation-delay: -3s; }
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

/* Sprinkle shower */
.sprinkle {
  position: fixed; width: 13px; height: 4px; border-radius: 2px; pointer-events: none; z-index: 999;
  transform: rotate(var(--r)); animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(300px) rotate(calc(var(--r) + 360deg)); opacity: 0; } }

/* Text the owner still needs to confirm */
.ph { border-bottom: 2px dashed currentColor; font-style: italic; opacity: .85; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
