/* Only the Polo Norte HUD changes; board geometry and cannon stay in the game bundles. */
/* HUD do jogo: aposta (esquerda), valor atual (centro), meta (direita) */
html[data-visual-theme="bubble-natal"] .bb-hud,
html[data-visual-theme="bubble-natal"] .tutorial-game-page .bb-hud {
  padding: 16px 6px 8px;
  overflow: visible;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-top {
  gap: 8px;
  align-items: center;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner {
  position: relative;
  gap: 4px;
  padding: 7px 9px 5px;
  border: 2px solid #d9a441;
  border-radius: 12px;
  color: #fff6e0;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 #3b1d0b, 0 0 6px #00000073;
  font-size: clamp(0.74rem, 3.3vw, 1rem);
  font-weight: 900;
  background:
    repeating-linear-gradient(180deg, #ffffff0d 0 2px, #0000000f 2px 5px),
    linear-gradient(180deg, #a5652e 0%, #7a4219 55%, #592d0f 100%);
  box-shadow:
    0 0 0 2px #4a230b,
    inset 0 1px 0 #ffe6b473,
    inset 0 -2px 0 #0000004d,
    0 4px 10px #00000073;
}

html[data-visual-theme="bubble-natal"] .tutorial-game-page .bb-hud .bb-hud-corner {
  padding-block: 7px 5px;
  font-size: clamp(0.74rem, 3.3vw, 1rem);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner:not(.bb-hud-corner--right) {
  padding-left: 20px;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner--right {
  padding-right: 25px;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-icon,
html[data-visual-theme="bubble-natal"] .tutorial-game-page .bb-hud .bb-hud-icon {
  width: 17px;
  height: 17px;
  color: #ffd54a;
  filter: drop-shadow(0 1px 0 #3b1d0b);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner::before,
html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -6px;
  height: 11px;
  pointer-events: none;
  border-radius: 8px 8px 4px 4px;
  background:
    radial-gradient(circle at 50% 0, #fff 0 5px, #0000 5.5px) 0 3px / 13px 9px repeat-x,
    linear-gradient(#fff, #e6f1ff) 0 0 / 100% 6px no-repeat;
  filter: drop-shadow(0 1px 1px #0000004d);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #00000073);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner:not(.bb-hud-corner--right)::after {
  left: -9px;
  top: -17px;
  width: 28px;
  height: 28px;
  background-image: url(/images/themes/natal-v2/images/hud/gift.png);
  transform: rotate(-10deg);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner--right::after {
  right: -8px;
  top: 50%;
  width: 29px;
  height: 29px;
  background-image: url(/images/themes/natal-v2/images/hud/target.png);
  transform: translateY(-50%);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score,
html[data-visual-theme="bubble-natal"] .tutorial-game-page .bb-hud .bb-hud-score {
  position: relative;
  margin: 0;
  padding: 8px 13px 6px;
  border: 3px solid #f4c04e;
  border-radius: 16px;
  color: #fff;
  -webkit-text-stroke: 1px #5a0710;
  text-shadow: 0 3px 0 #5a0710, 0 0 10px #00000059;
  font-size: clamp(1.2rem, 5.6vw, 2rem);
  font-weight: 900;
  background: radial-gradient(120% 90% at 50% 0%, #ff4b4b 0%, #d01f2a 45%, #8e0f18 100%);
  box-shadow:
    0 0 0 2px #6b0a10,
    inset 0 2px 0 #ffffff59,
    inset 0 -3px 0 #00000040,
    0 6px 16px #00000080;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score::before {
  top: -8px;
  left: 6px;
  right: 6px;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  width: 46px;
  height: 23px;
  pointer-events: none;
  background: url(/images/themes/natal-v2/images/hud/holly.png) center / contain no-repeat;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 2px #00000073);
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score.ready {
  color: #ffe27a;
  text-shadow: 0 3px 0 #5a0710, 0 0 12px #ffc10799;
  box-shadow:
    0 0 0 2px #6b0a10,
    inset 0 2px 0 #ffffff59,
    inset 0 -3px 0 #00000040,
    0 0 20px #ffc107b3,
    0 6px 16px #00000080;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress {
  width: min(300px, 78%);
  height: 14px;
  margin-top: 9px;
  border: 2px solid #f4c04e;
  background: repeating-linear-gradient(-45deg, #5c1a22 0 7px, #3d0d14 7px 14px);
  box-shadow:
    0 0 0 2px #6b0a10,
    inset 0 2px 4px #00000099,
    0 3px 8px #00000073;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress.complete {
  border-color: #ffe27a;
  box-shadow:
    0 0 0 2px #6b0a10,
    inset 0 2px 4px #00000099,
    0 0 14px #ffc107a6;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress-fill {
  background: repeating-linear-gradient(-45deg, #fff 0 7px, #e3263b 7px 14px) 0 0 / 19.8px 19.8px;
  box-shadow: inset 0 2px 0 #ffffff80, inset 0 -2px 0 #00000033;
  animation: polo-norte-candy 0.9s linear infinite;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress-fill.complete {
  background: repeating-linear-gradient(-45deg, #fff6c8 0 7px, #f2b600 7px 14px) 0 0 / 19.8px 19.8px;
  box-shadow: inset 0 2px 0 #ffffff80, 0 0 8px #ffc1078c;
}

@keyframes polo-norte-candy {
  to { background-position: 19.8px 0; }
}

/* Valor atual no topo ao receber ganho */
html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score.rising {
  animation: polo-norte-score-pop 0.55s ease-out;
}

@keyframes polo-norte-score-pop {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.14); filter: brightness(1.35) drop-shadow(0 0 12px #ffd54acc); }
  100% { transform: scale(1); filter: brightness(1); }
}


html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress {
  overflow: hidden;
}

html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress-fill::after {
  content: none;
}

@media (max-width: 360px) {
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-top {
    gap: 5px;
  }
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner {
    padding-inline: 6px;
  }
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner:not(.bb-hud-corner--right) {
    padding-left: 17px;
  }
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-corner--right {
    padding-right: 21px;
  }
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-progress-fill,
  html[data-visual-theme="bubble-natal"] .bb-hud .bb-hud-score.rising {
    animation: none;
  }
}
