/* PLABS_KIDS_DUB_MAP — mundodoblajedevoz: arte lateral + carril blanco + repeat-y */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&display=swap");

body.pl-kids[data-world="dub"] #app,
body.theme-dub #app,
html.theme-dub body #app,
body[data-world="dub"] #app,
#app.theme-dub-map {
  --lingo-ink: #0c4a6e;
  font-family: Outfit, Fredoka, Nunito, system-ui, sans-serif;
  background-color: #ffffff !important;
  background-image: none !important;
  min-height: 100vh;
  max-width: none !important;
}

body.pl-kids[data-world="dub"] #starfield,
body.theme-dub #starfield,
html.theme-dub #starfield,
body[data-world="dub"] #starfield {
  display: none !important;
}

body.pl-kids[data-world="dub"] .hud,
body.theme-dub .hud,
body[data-world="dub"] .hud,
#app.theme-dub-map .hud {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 2px solid #67e8f9 !important;
  box-shadow: 0 6px 18px rgba(8, 47, 73, 0.1);
  color: #0c4a6e !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 30;
}

body.pl-kids[data-world="dub"] .hud__name,
body.theme-dub .hud__name,
#app.theme-dub-map .hud__name {
  color: #0c4a6e !important;
  font-weight: 800;
}

body.pl-kids[data-world="dub"] .stat,
body.pl-kids[data-world="dub"] .lang,
body.pl-kids[data-world="dub"] .hud__back,
body.theme-dub .stat,
body.theme-dub .lang,
body.theme-dub .hud__back,
#app.theme-dub-map .stat,
#app.theme-dub-map .lang,
#app.theme-dub-map .hud__back {
  background: #ecfeff !important;
  border: 2px solid #22d3ee !important;
  color: #0c4a6e !important;
  font-weight: 800;
}

/* ===== MAP FULL BLEED ===== */
body[data-world="dub"] #mapwrap.mapwrap,
body[data-world="dub"] .mapwrap.mapwrap--dub,
body.pl-kids[data-world="dub"] .mapwrap--lingo,
body.pl-kids[data-world="dub"] .mapwrap--dub,
.mapwrap--dub {
  position: relative !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 0 120px !important;
  min-height: calc(100vh - 64px) !important;
  background-color: #ffffff !important;
  background-image: url("../assets/dublab/map-bg-ui.png") !important;
  background-size: 100% auto !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
}

body[data-world="dub"] .mapwrap--lingo::before,
body.pl-kids[data-world="dub"] .mapwrap--lingo::before,
.mapwrap--dub::before {
  display: none !important;
}

.mapwrap--dub .mappath {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 0.72;
}

.mapwrap--dub .mappath .lingo-path-bg {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
}

.mapwrap--dub .mappath .lingo-path-fg {
  stroke: #0891b2;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(8, 145, 178, 0.3));
}

.mapwrap--dub .map {
  position: relative !important;
  z-index: 4 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 6px 8px 40px;
  box-sizing: border-box;
}

.mapwrap--dub .node,
.mapwrap--dub .unit-banner--lingo,
.mapwrap--dub .map-lingo-hero {
  position: relative;
  z-index: 5;
  transform: none !important;
}

.mapwrap--dub .map-lingo-hero--dub,
.mapwrap--dub .map-lingo-hero {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 12px !important;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 2px solid #22d3ee !important;
  border-radius: 16px 20px 20px 8px !important;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.12) !important;
  backdrop-filter: blur(6px);
}

.mapwrap--dub .map-lingo-hero__mascot {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  flex: 0 0 auto;
}

.mapwrap--dub .map-lingo-hero__bubble {
  margin: 0;
  color: #0c4a6e !important;
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}

.mapwrap--dub .map-lingo-hero__bubble small {
  display: block;
  margin-top: 2px;
  color: #0891b2 !important;
  font-weight: 600;
  font-size: 0.68rem;
}

.mapwrap--dub .unit-banner--lingo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 14px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  border: 3px solid rgba(34, 211, 238, 0.65) !important;
  color: #ecfeff !important;
  font-family: Fredoka, Nunito, sans-serif;
  box-shadow: 0 6px 0 rgba(8, 47, 73, 0.18), 0 10px 22px rgba(8, 145, 178, 0.2) !important;
  background: linear-gradient(90deg, #0e7490, #155e75 40%, #164e63) !important;
  position: relative;
  overflow: hidden;
}

.mapwrap--dub .unit-banner--lingo::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 14px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    #22d3ee 0 3px,
    transparent 3px 6px,
    #fbbf24 6px 9px,
    transparent 9px 12px
  );
  opacity: 0.85;
  pointer-events: none;
}

.mapwrap--dub .unit-banner.u2 { background: linear-gradient(90deg, #0284c7, #0c4a6e) !important; }
.mapwrap--dub .unit-banner.u3 { background: linear-gradient(90deg, #0891b2, #134e4a) !important; }
.mapwrap--dub .unit-banner.u4 { background: linear-gradient(90deg, #6366f1, #1e1b4b) !important; }
.mapwrap--dub .unit-banner.u5 { background: linear-gradient(90deg, #db2777, #4c0519) !important; }
.mapwrap--dub .unit-banner.u6 { background: linear-gradient(90deg, #ca8a04, #422006) !important; }
.mapwrap--dub .unit-banner.u7 { background: linear-gradient(90deg, #e11d48, #450a0a) !important; }
.mapwrap--dub .unit-banner.u8 { background: linear-gradient(90deg, #0ea5e9, #082f49) !important; }
.mapwrap--dub .unit-banner.u9 { background: linear-gradient(90deg, #14b8a6, #042f2e) !important; }

.mapwrap--dub .unit-banner__emoji {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 44, 58, 0.85);
  border: 2px solid #22d3ee;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.mapwrap--dub .unit-banner__kicker {
  display: inline;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-right: 6px;
}

.mapwrap--dub .unit-banner__title {
  display: inline;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.mapwrap--dub .unit-banner__text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.mapwrap--dub .node {
  margin: 22px auto !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mapwrap--dub .node__btn,
.mapwrap--dub .node--lingo .node__btn {
  width: 78px !important;
  height: 88px !important;
  border-radius: 39px !important;
  font-size: 34px !important;
  border: 4px solid #67e8f9 !important;
  background: linear-gradient(180deg, #22d3ee, #0e7490) !important;
  box-shadow:
    0 8px 0 #155e75,
    0 12px 24px rgba(8, 145, 178, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
  filter: none !important;
  color: #042f2e !important;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.mapwrap--dub .node__btn:active {
  transform: translateY(4px) scale(0.96) !important;
  box-shadow: 0 3px 0 #155e75, inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
}

.mapwrap--dub .node--eng-dublab .node__btn {
  background: linear-gradient(180deg, #67e8f9, #0284c7) !important;
  box-shadow: 0 8px 0 #075985, 0 12px 24px rgba(14, 165, 233, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}

.mapwrap--dub .node--done .node__btn {
  background: linear-gradient(180deg, #6ee7b7, #059669) !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 8px 0 #065f46, 0 12px 24px rgba(16, 185, 129, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}

.mapwrap--dub .node--active .node__btn {
  background: linear-gradient(180deg, #fde68a, #f59e0b) !important;
  border-color: #fef3c7 !important;
  box-shadow: 0 8px 0 #b45309, 0 12px 28px rgba(251, 191, 36, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.45) !important;
  animation: dubMapPulse 1.4s ease-in-out infinite;
}

@keyframes dubMapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.mapwrap--dub .node--active::before {
  content: "¡REC!" !important;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: #e11d48;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
  z-index: 6;
}

.mapwrap--dub .node--boss .node__btn {
  width: 88px !important;
  height: 98px !important;
  border-radius: 44px !important;
  font-size: 38px !important;
  background: linear-gradient(180deg, #f472b6, #be123c) !important;
  border-color: #fecdd3 !important;
  box-shadow: 0 10px 0 #9f1239, 0 14px 30px rgba(190, 18, 60, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}

.mapwrap--dub .node--locked .node__btn {
  background: linear-gradient(180deg, #e2e8f0, #94a3b8) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 0 #64748b, inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
  opacity: 0.85;
}

.mapwrap--dub .node__label { margin-top: 8px; }

.mapwrap--dub .node__labelpill {
  display: inline-block !important;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 2px solid #22d3ee !important;
  color: #0c4a6e !important;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 4px 0 rgba(8, 47, 73, 0.12);
  pointer-events: none;
}

.mapwrap--dub .node--done .node__labelpill {
  color: #064e3b !important;
  background: #d1fae5 !important;
  border-color: #34d399 !important;
}

.mapwrap--dub .node--active .node__labelpill {
  color: #78350f !important;
  background: #fef3c7 !important;
  border-color: #fbbf24 !important;
}

.mapwrap--dub .node--locked .node__labelpill {
  color: #64748b !important;
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.mapwrap--dub .stars {
  font-size: 0.7rem;
  margin-top: 4px;
}

@media (min-width: 900px) {
  .mapwrap--dub {
    background-size: 100% auto !important;
    background-repeat: repeat-y !important;
  }
  .mapwrap--dub .map { width: min(100%, 320px); }
}

@media (max-width: 560px) {
  .mapwrap--dub { padding: 4px 0 100px !important; }
  .mapwrap--dub .map { width: min(100%, 280px); }
  .mapwrap--dub .node__btn,
  .mapwrap--dub .node--lingo .node__btn {
    width: 72px !important;
    height: 82px !important;
  }
}

/* Lesson modal dub tip */
#lessonModal.lesson--lingo .learn-step--coach {
  border-color: #22d3ee !important;
}
