/* Dub booth CSS scene: spotlight mic + animated talent (no grey circle). Shirt: amo doblaje de voz */
.dublab-scene {
  --shadow-color: #000;
  --background-color: #003454;
  --highlight-color: #004268;
  --spot-color: #d4da2a;
  --dub-mouth: 0;
  --dub-scene-scale: 0.6;
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 520;
  max-height: min(52vh, 380px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--background-color);
  border-radius: 12px;
}
.dublab-scene__art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 520px;
  margin: -260px 0 0 -300px;
  transform: scale(var(--dub-scene-scale));
  transform-origin: center center;
  pointer-events: none;
}

.dublab-scene__spot {
  position: absolute;
  left: 70px;
  top: 0;
  width: 420px;
  height: 390px;
  background: var(--spot-color);
  clip-path: polygon(22% 0, 52% 0, 100% 100%, 0 100%);
  opacity: 0.95;
}
.dublab-scene__spot-end {
  position: absolute;
  top: 380px;
  left: 70px;
  width: 420px;
  height: 120px;
  border-radius: 50%;
  background: #e9ec1d;
}
.dublab.is-rec .dublab-scene__spot,
.dublab-scene.is-hot .dublab-scene__spot {
  filter: brightness(1.12);
}

.dub-mic-stage {
  position: absolute;
  width: 220px;
  top: 228px;
  left: 258px;
  z-index: 4;
}
.dub-mic-stage__stand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 150px;
  background: linear-gradient(to right, var(--highlight-color), var(--shadow-color));
  border-radius: 0 0 10% 10% / 0 0 50% 50%;
}
.dub-mic-stage__base {
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  width: 46px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, var(--highlight-color), var(--shadow-color));
  top: 138px;
}
.dub-mic-stage__capsule {
  position: absolute;
  width: 45px;
  height: 15px;
  background: linear-gradient(var(--highlight-color), var(--shadow-color));
  transform: rotate(20deg) translateX(-50%);
  left: 50%;
  top: 0;
  z-index: 2;
}
.dub-mic-stage__capsule::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -5px;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle at top left, var(--highlight-color), var(--shadow-color));
  border-radius: 50%;
}
.dub-mic-stage__capsule::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  background: linear-gradient(var(--highlight-color), var(--shadow-color));
  right: -10px;
  top: 5px;
}

/* Talent: original drawing, no circular grey backdrop */
.dub-talent {
  position: absolute;
  width: 400px;
  height: 400px;
  left: 78px;
  top: 54px;
  z-index: 5;
  transform: scale(0.82);
  transform-origin: top left;
}
.dub-talent__torso {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: #222;
  border-radius: 100px 100px 40px 40px;
  position: relative;
  top: 188px;
  overflow: hidden;
  animation: dubtalent-body 0.7s 0.2s 1 ease both;
}
.dub-talent__shirt {
  font-family: Fredoka, Montserrat, Nunito, sans-serif;
  font-weight: 700;
  color: #fff;
  position: relative;
  top: 100px;
  font-size: 22px;
  line-height: 1.05;
  display: inline-block;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
  transform: translate(0, 40px);
  animation-fill-mode: forwards !important;
  letter-spacing: 0.02em;
  text-align: center;
}
.dub-talent__shirtline {
  display: block;
  text-align: center;
  width: 100%;
  line-height: 1;
}
.dub-talent__shirt--heart {
  color: #ef4136;
  font-size: 24px;
  padding: 0 4px;
}
.dub-talent__shirt--d1 { animation: dubtalent-text 0.7s 3s 1 ease both; }
.dub-talent__shirt--d2 { animation: dubtalent-text 0.7s 3.1s 1 ease both; }
.dub-talent__shirt--d3 { animation: dubtalent-text 0.7s 3.2s 1 ease both; font-size: 20px; }
.dub-talent__shirt--d4 { animation: dubtalent-text 0.7s 3.3s 1 ease both; font-size: 16px; }
.dub-talent__shirt--d5 { animation: dubtalent-text 0.7s 3.4s 1 ease both; font-size: 16px; }

.dub-talent__head-swing {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 196px;
  height: 260px;
  margin-left: -98px;
  transform-origin: bottom center;
  animation: dubtalent-music 1s 3.3s infinite alternate ease-in-out;
  z-index: 6;
}
.dub-talent__head {
  width: 196px;
  height: 260px;
  border-radius: 50px;
  background: #ffe4be;
  position: relative;
  transform-origin: bottom;
  transform: scale(0);
  animation: dubtalent-grow 0.7s 0.25s 1 ease forwards;
}
.dub-talent__hair {
  width: 220px;
  height: 0;
  background: #e7ab57;
  border-radius: 54px 54px 0 0;
  margin-left: -12px;
  margin-top: -10px;
  animation: dubtalent-hair 0.7s 0.9s 1 ease both;
  position: relative;
  z-index: 2;
}
.dub-talent__hair-top {
  width: 128px;
  height: 70px;
  opacity: 0;
  border-top-right-radius: 30px;
  background: #e7ab57;
  position: relative;
  top: -17px;
  left: 50%;
  transform-origin: right;
  animation: dubtalent-hair-top 0.7s 1s 1 ease both;
}
.dub-talent__hair-bottom {
  width: 54px;
  height: 50px;
  opacity: 0;
  border-bottom-left-radius: 25px;
  background: #e7ab57;
  position: relative;
  top: -20px;
  left: 50%;
  transform-origin: left;
  animation: dubtalent-hair-bottom 0.7s 1.4s 1 ease both;
}
.dub-talent__sideburn {
  width: 8px;
  height: 25px;
  background: #e7ab57;
  position: absolute;
  bottom: -25px;
  opacity: 0;
  animation: dubtalent-sideburn 0.7s 0.9s 1 ease both;
}
.dub-talent__sideburn--left { left: 12px; }
.dub-talent__sideburn--right { right: 12px; }
.dub-talent__face {
  width: 180px;
  height: 0;
  border-radius: 48px 48px 0 0;
  background: #ffe4be;
  position: absolute;
  top: 40px;
  left: 8px;
  animation: dubtalent-hair 0.1s 0.8s 1 linear both;
  z-index: 3;
}
.dub-talent__nose {
  width: 20px;
  height: 45px;
  background: #ffe4be;
  border-top-left-radius: 20px;
  position: absolute;
  left: 50%;
  top: 80px;
  margin-left: -20px;
  animation: dubtalent-shadow 0.7s 3s 1 ease both;
  opacity: 0;
  z-index: 5;
}
.dub-talent__ear {
  width: 24px;
  height: 35px;
  background: #ffe4be;
  border-radius: 12px;
  position: absolute;
  top: 116px;
  transform: scale(0);
  animation: dubtalent-grow 0.7s 1.3s 1 ease both;
}
.dub-talent__ear--left { left: -12px; }
.dub-talent__ear--right { right: -12px; }
.dub-talent__mouth {
  width: 66px;
  height: 33px;
  position: absolute;
  top: 150px;
  left: 50%;
  margin-left: -33px;
  transform: scale(0);
  animation: dubtalent-grow 0.7s 2.6s 1 ease both;
  z-index: 5;
}
.dub-talent__lips {
  width: 100%;
  height: 100%;
  border-radius: 0 0 33px 33px;
  background: #fff;
  transform: scaleY(calc(0.55 + var(--dub-mouth, 0) * 0.9));
  transform-origin: top center;
}
.dub-talent__eye-shadow {
  width: 30px;
  height: 15px;
  border-radius: 0 0 15px 15px;
  background: rgba(149, 36, 0, 0.1);
  position: absolute;
  top: 70px;
  transform: scale(0);
  animation: dubtalent-grow 0.7s 2s 1 ease both;
}
.dub-talent__eye-shadow--left { left: 35px; z-index: 5; }
.dub-talent__eye-shadow--right { right: 35px; }
.dub-talent__eyebrow {
  width: 40px;
  height: 10px;
  background: #e7ab57;
  position: absolute;
  top: -35px;
  left: 50%;
  margin-left: -20px;
  opacity: 0;
}
.dub-talent__eye-shadow--left .dub-talent__eyebrow {
  animation: dubtalent-brow-left 0.7s 2.2s 1 ease both;
}
.dub-talent__eye-shadow--right .dub-talent__eyebrow {
  animation: dubtalent-brow-right 0.7s 2.2s 1 ease both, dubtalent-brow-raise 2s 6.6s infinite alternate ease-in-out;
}
.dub-talent__eye {
  width: 20px;
  height: 28px;
  border-radius: 10px;
  background: #334c68;
  position: absolute;
  top: -18px;
  left: 50%;
  margin-left: -10px;
  transform: scale(0);
  transform-origin: bottom;
  animation: dubtalent-grow 0.7s 2.2s 1 ease forwards, dubtalent-blink 4s 4.4s infinite linear;
  animation-fill-mode: forwards, none;
}
.dub-talent__shade-wrap {
  width: 98px;
  height: 260px;
  position: absolute;
  left: -8px;
  bottom: -84px;
  z-index: 4;
  overflow: hidden;
}
.dub-talent__shade {
  width: 98px;
  height: 260px;
  border-radius: 50px;
  background: rgba(149, 36, 0, 0.1);
  position: absolute;
  opacity: 0;
  animation: dubtalent-shadow 1s 2.8s 1 ease both;
}
.dub-talent__note {
  position: absolute;
  font-size: 92px;
  color: #fcb040;
  width: 1px;
  left: 50%;
  opacity: 0;
  z-index: 8;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.dub-talent__note--one {
  margin-left: -210px;
  top: 18%;
  animation: dubtalent-note 2s 3.5s infinite ease;
}
.dub-talent__note--two {
  margin-left: 150px;
  top: 8%;
  animation: dubtalent-note 2s 4.3s infinite ease;
}

.dublab__window--ref {
  position: relative;
  overflow: hidden;
  display: block !important;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.dublab__window--ref .dublab-scene {
  display: block;
  width: 100%;
}
.dublab__window--ref .dublab__face {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.dublab__window--ref .dublab__badge,
.dublab__window--ref .dublab__tc,
.dublab__window--ref .dublab__refbar,
.dublab__window--ref .dublab__adrphase {
  z-index: 8;
}

/* Map world hero */
.mapwrap--dub .map-lingo-hero--dub {
  display: flex !important;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.mapwrap--dub .dublab-scene--map {
  width: 128px;
  min-width: 128px;
  height: 128px;
  max-height: 128px;
  aspect-ratio: 1;
  flex: 0 0 128px;
  border-radius: 16px;
  border: 2px solid rgba(212, 218, 42, 0.55);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
}
.mapwrap--dub .map-lingo-hero__mascot {
  display: none;
}

@keyframes dubtalent-grow {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes dubtalent-body {
  0% { transform: translateY(80px); opacity: 0; }
  60% { transform: translateY(-8px); opacity: 1; }
  80% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
@keyframes dubtalent-hair {
  0% { height: 0; transform: translateY(137px); }
  100% { height: 137px; transform: translateY(0); }
}
@keyframes dubtalent-sideburn {
  0% { opacity: 0; transform: translateY(-25px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dubtalent-hair-top {
  0% { opacity: 0; transform: translate(-64px, 30px); }
  60% { opacity: 1; transform: rotate(0deg) translate(-64px, 30px); }
  80% { opacity: 1; transform: rotate(10deg) translate(-64px, -5px); }
  100% { opacity: 1; transform: rotate(0deg) translate(-64px, 0); }
}
@keyframes dubtalent-hair-bottom {
  0% { opacity: 0; transform: translate(-27px, -40px); }
  60% { opacity: 1; transform: rotate(0deg) translate(-27px, -40px); }
  80% { opacity: 1; transform: rotate(10deg) translate(-27px, 5px); }
  100% { opacity: 1; transform: rotate(0deg) translate(-27px, 0); }
}
@keyframes dubtalent-music {
  0% { transform: rotate(0deg); }
  33% { transform: rotate(-5deg); }
  66% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
@keyframes dubtalent-brow-right {
  0% { opacity: 0; transform: translateY(-25px); }
  70% { opacity: 1; transform: translateY(5px); }
  100% { opacity: 1; transform: rotate(9deg) translateY(0); }
}
@keyframes dubtalent-brow-raise {
  0%, 80% { top: -35px; }
  100% { top: -45px; }
}
@keyframes dubtalent-brow-left {
  0% { opacity: 0; transform: translateY(-25px); }
  70% { opacity: 1; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes dubtalent-shadow {
  0% { opacity: 0; transform: translate(98px, 0); }
  50% { opacity: 0; }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes dubtalent-note {
  0% { opacity: 0; transform: translate(0, 50px); }
  30% { transform: rotate(12deg) translate(-30px, 0); }
  45% { opacity: 1; }
  60% { transform: rotate(-12deg) translate(30px, -100px); }
  100% { opacity: 0; transform: rotate(0deg) translate(0, -200px); }
}
@keyframes dubtalent-text {
  0% { transform: translate(0, 40px); }
  60% { transform: translate(0, -8px); }
  80% { transform: translate(0, 6px); }
  100% { transform: translate(0, 0); }
}
@keyframes dubtalent-blink {
  0%, 45%, 55%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

@media (max-width: 720px) {
  .dublab-scene {
    max-height: min(42vh, 280px);
    border-radius: 10px;
  }
  .mapwrap--dub .dublab-scene--map {
    width: 96px;
    min-width: 96px;
    height: 96px;
    max-height: 96px;
    flex-basis: 96px;
  }
}
@media (max-width: 420px) {
  .dublab-scene {
    max-height: min(38vh, 240px);
  }
  .mapwrap--dub .map-lingo-hero--dub {
    flex-wrap: wrap;
  }
  .mapwrap--dub .dublab-scene--map {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 168px;
    flex: 1 1 100%;
    aspect-ratio: 600 / 420;
  }
}

/* —— Dub lab premium UX: mic gate, no tips overlay, no duplicate howto —— */
.dublab [data-plux-howto],
body.pl-kids[data-world="dub"] #tipsBtn,
body.pl-kids[data-world="dub"] .plux-ai-inline,
body.pl-kids[data-world="dub"] #lessonModal.lesson--lab [data-plux-howto] {
  display: none !important;
}
.dublab {
  min-height: 0 !important;
}
.dublab__micgate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #451a03;
  font-family: Fredoka, Nunito, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 0 #b45309, 0 0 24px rgba(251, 191, 36, 0.35);
  z-index: 6;
  pointer-events: auto;
}
.dublab__micgate strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dublab__micgate small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  max-width: 36em;
  line-height: 1.35;
}
.dublab__micgate-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(251, 191, 36, 0.7);
  animation: dubMicPulse 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes dubMicPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.04); opacity: 0; }
}
.dublab.is-micon .dublab__micgate {
  display: none !important;
}
.dublab__miclive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
  font-family: Fredoka, Nunito, sans-serif;
}
.dublab__miclive[hidden] { display: none !important; }
.dublab__miclive-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: gdPulse 1.2s ease-in-out infinite;
}
.dublab__pill--mic {
  background: linear-gradient(180deg, #fde68a, #f59e0b) !important;
  border-color: #fef3c7 !important;
  color: #451a03 !important;
  font-weight: 900 !important;
  min-height: 44px;
  flex: 1 1 140px;
}
.dublab__pill--mic.is-on {
  background: linear-gradient(180deg, #6ee7b7, #059669) !important;
  color: #022c22 !important;
  border-color: #a7f3d0 !important;
}
.dublab__transport--primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dublab__transport--primary .dublab__pill {
  flex: 1 1 30%;
  min-height: 44px;
  font-size: 13px;
}
.dublab__more {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.45);
  padding: 0 10px 10px;
}
.dublab__more > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 800;
  color: #7dd3fc;
}
.dublab__more > summary::-webkit-details-marker { display: none; }
.dublab__meters {
  max-height: 88px;
}
.dublab__vu { max-height: 72px; }
.dublab__wave { max-height: 72px; }

@media (max-width: 860px) {
  .dublab {
    padding: 8px !important;
    gap: 8px !important;
  }
  .dublab__sub { display: none; }
  .dublab__title { font-size: 18px !important; }
  .dublab-scene {
    max-height: min(34vh, 220px);
  }
  .dublab__micgate {
    padding: 16px 12px 18px;
  }
  .dublab__micgate strong { font-size: 16px; }
  .dublab__transport--primary .dublab__pill {
    flex: 1 1 46%;
    min-height: 48px;
  }
}


/* PL_DUB_FIT_20261006 — picture stays visible and the buttons stay reachable */
.dublab {
  height: auto;
  min-height: 0;
  overflow: auto;
}
.dublab__booth { min-height: 0; }
.dublab__screens { flex: 0 0 auto; width: 100%; }
.dublab__window--ref {
  width: 100%;
  height: 230px;
  min-height: 200px;
  max-height: 240px;
  flex: 0 0 auto;
}
.dublab-scene {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}
.dublab__face { display: none !important; }
.dublab__meters { height: 56px; max-height: 56px; }
.dublab__vu,
.dublab__wave { max-height: 56px; height: 56px; }
.dublab__transport--primary,
.dublab__more { flex-shrink: 0; }

/* PL_DUB_SEQ_20261006 — current step is visible */
.dublab__now {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #fde68a;
}
.dublab__mission.is-now {
  outline: 2px solid #fbbf24;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
}
.dublab__line.is-now,
.dublab__pill.is-guide {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}
.dublab__pill--slate {
  background: linear-gradient(180deg, #fde68a, #f59e0b) !important;
  color: #451a03 !important;
  font-weight: 900 !important;
}

/* PL_DUB_ROLES_20261006 — class 2 is the four jobs, not another booth tour */
.dublab--roles .dublab__micgate { display: none !important; }
.dublab--roles .dublab__line-char { color: #fde68a; }

/* PL_DUB_GUIDE_20261006 — balloon floats to the control of the current step */
.dublab__coachhost {
  display: block !important;
  position: absolute !important;
  z-index: 40;
  width: 280px;
  max-width: calc(100% - 16px);
  margin: 0;
  pointer-events: none;
  left: 12px;
  top: 72px;
  right: auto;
  bottom: auto !important;
  height: auto;
  transition: left .35s ease, top .35s ease;
}
.dublab__coachhost .plcoach { pointer-events: auto; }
.dublab__coachhost .plcoach__bubble { max-height: none; overflow: visible; }
.dublab__coachhost .plcoach__line { max-height: 7.2em; min-height: 0; }
.dublab .is-aim {
  outline: 3px solid #fde68a !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(253, 224, 71, 0.28);
}

/* PL_DUB_AULA_20261007 — one clear row of steps, console stays underneath */
.dublab--aula .dublab__micgate,
.dublab--aula .dublab__transport--primary,
.dublab--aula .dublab__more { display: none !important; }
.dublab--aula .dublab__meters { display: none; }
.dublab--aula.dublab--meter .dublab__meters { display: flex; }
.dublab__frase {
  margin: 10px 12px 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fde68a;
}
.dublab__pracrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 14px;
  align-items: stretch;
}
.dublab__prac {
  flex: 1 1 132px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  border-radius: 16px;
  border: 2px solid rgba(253, 224, 71, 0.35);
  background: #132033;
  color: #f8fafc;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.dublab__prac b {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fde68a;
}
.dublab__prac.is-now {
  border-color: #fde68a;
  background: #3f2e12;
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.22);
}
.dublab__pracrow .dublab__gain {
  flex: 1 1 100%;
  color: #e2e8f0;
  font-weight: 700;
}

/* PL_DUB_AULA_PLACE_20261007 — balloon sits under the step buttons */
.dublab--aula .dublab__badge,
.dublab--aula [data-act="emotion"] { display: none !important; }
.dublab--aula:not(.dublab--clock) .dublab__tc,
.dublab--aula:not(.dublab--clock) .dublab__line-tc { display: none !important; }

.dublab--aula .dublab__miclive { display: none !important; }
.dublab--aula.dublab--meter .dublab__miclive:not([hidden]) { display: flex !important; }
