/* Bubble Pop ABC — pop-the-letter-in-sequence game */

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

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

.bpa-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;
}
.bpa-pick strong { font-size: 1rem; }
.bpa-pick small { color: var(--color-text-soft); }
.bpa-pick[aria-pressed="true"] { border-color: var(--color-primary); background: rgba(79, 216, 224, 0.12); }

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

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

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

.bpa-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;
}

.bpa-tank {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(41, 121, 255, 0.14), rgba(3, 155, 229, 0.08));
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.bpa-bubble {
  position: absolute;
  bottom: -70px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  color: #0e0f13;
  font-weight: 800;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -6px -6px 0 rgba(255, 255, 255, 0.25), inset 6px 6px 0 rgba(0, 0, 0, 0.08);
  animation-name: bpa-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.bpa-bubble:hover { filter: brightness(1.08); }
.bpa-bubble--pop { animation-play-state: paused !important; transform: scale(1.5); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.bpa-bubble--wrong { animation-play-state: paused; }
.bpa-bubble--wrong .bpa-bubble-label { display: inline-block; animation: bpa-wobble 0.4s ease; }

@keyframes bpa-rise {
  from { bottom: -70px; }
  to { bottom: 100%; }
}

@keyframes bpa-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); }
}

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