/* Elenco 3D */
.tpl-elenco { overflow: hidden; }
/* WhatsApp flotante: sube por encima de las miniaturas y se aparta cuando se abre un perfil
   (el perfil ya tiene su propio botón de WhatsApp con el bailarín elegido). */
.tpl-elenco .wa-float { bottom: 150px; transition: right .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, transform .2s; }
.tpl-elenco:has(.profile.is-open) .wa-float { right: 436px; }
@media (max-width: 760px) {
  .tpl-elenco .wa-float { bottom: calc(72px + 200px + env(safe-area-inset-bottom)); }
  .tpl-elenco:has(.profile.is-open) .wa-float { right: 14px; opacity: 0; pointer-events: none; }
}
.stage { position: relative; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 520px; background: #0c0907; overflow: hidden; }
#stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
#stage-canvas.is-dragging { cursor: grabbing; }
#stage-canvas.is-hover { cursor: pointer; }
.stage-ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 0 16px; }
.stage-ui > * { pointer-events: auto; }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; width: min(1180px, 100% - 32px); margin: 0 auto; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.stage-title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.stage-help { font-size: .88rem; margin: 6px 0 0; }
.stage-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: auto; margin-bottom: 12px; }
.stage-counter { min-width: 180px; text-align: center; }
.stage-counter strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .03em; }
.stage-counter span { font-size: .8rem; color: var(--muted); letter-spacing: .14em; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(27, 21, 16, .7); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, transform .15s; }
.round:hover { background: rgba(255, 178, 31, .2); transform: scale(1.06); }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; justify-content: safe center; scroll-snap-type: x proximity; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 52px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #1b1510; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; scroll-snap-align: center; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--mango-2); transform: translateY(-4px); }
.thumbs button:hover { opacity: 1; }

/* Perfil */
.profile { position: absolute; z-index: 5; top: 16px; right: 16px; bottom: 16px; width: min(400px, 100% - 32px); background: rgba(21, 16, 12, .92); border: 1px solid var(--line); border-radius: 24px; overflow-y: auto; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); transform: translateX(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.profile.is-open { transform: none; }
.profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.profile-body { padding: 20px 22px 24px; }
.profile-body h2 { font-size: 2.6rem; margin-bottom: 4px; }
.profile .chips { margin: 12px 0; }
.profile-actions { display: grid; gap: 10px; margin-top: 18px; }
.profile-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 760px) {
  .stage { height: calc(100dvh - var(--header-h) - 72px); }
  .profile { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 82%; transform: translateY(110%); }
  .profile img { aspect-ratio: 16 / 11; }
  .stage-top .btn { display: none; }
  .stage-help { display: none; }
  .round { width: 46px; height: 46px; }
}

.stage-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #0c0907; z-index: 4; transition: opacity .6s; color: var(--muted); }
.stage-loading.is-done { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 178, 31, .2); border-top-color: var(--mango-2); animation: spin 1s linear infinite; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; z-index: 6; background: #0c0907; }
