/* Bubble Shooter — scoped styles, prefix .cc-bs- / .cc-bubble-shooter */

.cc-bubble-shooter {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FFF0F4 0%, #FBF4EE 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  border-radius: 18px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.cc-bubble-shooter * {
  box-sizing: border-box;
}

.cc-bs-hud {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  z-index: 2;
}

.cc-bs-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 2px solid #FFE1E9;
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 2px 0 rgba(212, 113, 90, 0.12);
}

.cc-bs-pill-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7A9B8A;
}

.cc-bs-pill-value {
  font-size: 16px;
  font-weight: 800;
  color: #243B45;
  min-width: 1.5em;
  text-align: right;
}

.cc-bs-pill-next {
  padding-right: 8px;
}

.cc-bs-next-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.18), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.cc-bs-canvas {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  touch-action: none;
  cursor: pointer;
}

.cc-bs-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 59, 69, 0.45);
  backdrop-filter: blur(2px);
  animation: cc-bs-fade-in 0.2s ease-out;
}

.cc-bs-overlay[hidden] {
  display: none;
}

.cc-bs-overlay-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 28px 26px 24px;
  width: min(84%, 300px);
  text-align: center;
  box-shadow: 0 12px 30px rgba(36, 59, 69, 0.28);
  border: 3px solid #FFE1E9;
}

.cc-bs-overlay-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
}

.cc-bs-overlay-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #243B45;
}

.cc-bs-overlay-text {
  margin: 0 0 18px;
  font-size: 15px;
  color: #243B45;
  opacity: 0.75;
}

.cc-bs-btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(180deg, #FF6B8A 0%, #D4715A 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #B4543F, 0 6px 12px rgba(212, 113, 90, 0.3);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}

.cc-bs-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #B4543F, 0 2px 6px rgba(212, 113, 90, 0.3);
}

@keyframes cc-bs-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 360px) {
  .cc-bs-overlay-title {
    font-size: 19px;
  }
  .cc-bs-btn {
    padding: 11px 26px;
    font-size: 15px;
  }
}
