/* Number Balloon Pop — pop-the-number-in-sequence game */

.nbp-setup { display: flex; flex-direction: column; gap: 18px; }
.nbp-setup h3 { margin: 0 0 8px; font-size: 1.05rem; }

.nbp-pick-row { display: flex; flex-wrap: wrap; gap: 10px; }

.nbp-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  min-width: 190px;
  text-align: left;
}
.nbp-pick strong { font-size: 1rem; }
.nbp-pick small { color: var(--color-text-soft); }
.nbp-pick[aria-pressed="true"] { border-color: var(--color-primary); background: rgba(79, 216, 224, 0.12); }

.nbp-start-btn { align-self: flex-start; margin-top: 4px; }

.nbp-rewards { font-size: 0.85rem; color: var(--color-text-soft); }
.nbp-rewards strong { color: var(--color-text); }

.nbp-play { display: flex; flex-direction: column; gap: 14px; }

.nbp-banner {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
}

.nbp-sky {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.16), rgba(179, 229, 252, 0.08));
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.nbp-balloon {
  position: absolute;
  bottom: -90px;
  width: 56px;
  height: 68px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -6px -6px 0 rgba(255, 255, 255, 0.2), inset 6px 6px 0 rgba(0, 0, 0, 0.1);
  animation-name: nbp-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.nbp-balloon:hover { filter: brightness(1.08); }
.nbp-balloon-knot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid currentColor;
  color: inherit;
}
.nbp-balloon--pop { animation-play-state: paused !important; transform: scale(1.5); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.nbp-balloon--wrong { animation-play-state: paused; }
.nbp-balloon--wrong .nbp-balloon-label { display: inline-block; animation: nbp-wobble 0.4s ease; }

@keyframes nbp-rise {
  from { bottom: -90px; }
  to { bottom: 100%; }
}

@keyframes nbp-wobble {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-4px) rotate(-6deg); }
  40% { transform: translateX(4px) rotate(6deg); }
  60% { transform: translateX(-3px) rotate(-3deg); }
  80% { transform: translateX(3px) rotate(3deg); }
}

.nbp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
