#kqb-game-root {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Baloo 2", "Comic Sans MS", "Segoe UI", sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.kqb-wrap {
  background: linear-gradient(180deg, #ffe9a8 0%, #ffd3e8 100%);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.kqb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 12px;
}

.kqb-score-badge {
  background: #fff;
  border-radius: 30px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 18px;
  color: #ff7a3d;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kqb-lives span {
  font-size: 22px;
  margin-left: 2px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

.kqb-prompt {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  animation: kqb-pop-in 0.35s ease;
  border: 4px solid #ffd166;
}

.kqb-prompt img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.kqb-prompt-text {
  font-size: 32px;
  font-weight: 800;
  color: #3a3a6b;
}

.kqb-prompt-sub {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

@keyframes kqb-pop-in {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.kqb-play-area {
  position: relative;
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd3ff 0%, #d6f5ff 70%, #e8fff0 100%);
  border: 4px solid #6ec6ff;
  touch-action: none;
  cursor: grab;
}

.kqb-cloud {
  position: absolute;
  background: #ffffffcc;
  border-radius: 50px;
  opacity: 0.9;
}

.kqb-cloud::before, .kqb-cloud::after {
  content: "";
  position: absolute;
  background: #ffffffcc;
  border-radius: 50%;
}

.kqb-sun {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c9 0%, #ffdd55 70%);
  box-shadow: 0 0 20px #ffdd55aa;
  animation: kqb-sun-spin 8s linear infinite;
}

@keyframes kqb-sun-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.kqb-item {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25), inset 0 -6px 10px rgba(0,0,0,0.15), inset 0 4px 6px rgba(255,255,255,0.5);
  pointer-events: none;
}

.kqb-basket {
  position: absolute;
  bottom: 8px;
  width: 100px;
  height: 66px;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.25));
  transition: transform 0.08s ease;
}

.kqb-basket.kqb-basket-bounce {
  animation: kqb-basket-bounce 0.3s ease;
}

@keyframes kqb-basket-bounce {
  0%   { transform: scale(1, 1); }
  30%  { transform: scale(1.15, 0.85); }
  100% { transform: scale(1, 1); }
}

.kqb-basket.kqb-basket-shake {
  animation: kqb-shake 0.35s ease;
}

@keyframes kqb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px) rotate(-4deg); }
  75% { transform: translateX(8px) rotate(4deg); }
}

.kqb-confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: kqb-confetti-fall 0.8s ease-out forwards;
}

@keyframes kqb-confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120px) rotate(360deg); opacity: 0; }
}

.kqb-floattext {
  position: absolute;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
  animation: kqb-float-up 0.7s ease-out forwards;
}

@keyframes kqb-float-up {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-50px); opacity: 0; }
}

.kqb-message-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, #fff7e0 0%, #ffe3ef 100%);
  z-index: 5;
}

.kqb-message-screen h2 {
  font-size: 26px;
  color: #3a3a6b;
  margin: 6px 0;
}

.kqb-message-screen .kqb-emoji-big {
  font-size: 54px;
  margin-bottom: 6px;
  animation: kqb-bob 1.4s ease-in-out infinite;
}

@keyframes kqb-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kqb-btn {
  margin-top: 16px;
  background: linear-gradient(180deg, #ffb347, #ff7a3d);
  border: none;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 34px;
  cursor: pointer;
  box-shadow: 0 5px 0 #d85e1f, 0 8px 14px rgba(0,0,0,0.2);
  transition: transform 0.08s ease;
}

.kqb-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #d85e1f, 0 4px 8px rgba(0,0,0,0.2);
}

.kqb-hint {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}
