.prompt {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #555;
  padding: 10px 14px 4px;
  line-height: 1.4;
}

.replay-btn {
  display: block;
  margin: 4px auto 6px;
  font-size: 14px;
  padding: 6px 16px;
  background: var(--color-accent);
}

/* ── Question card ── */
.question-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 6px auto 8px;
  padding: 10px 16px 12px;
  text-align: center;
  max-width: 320px;
}

.question-image-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.question-word {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-text);
  margin-top: 6px;
  letter-spacing: 4px;
}

/* ── Choices ── */
.choices-label {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin: 4px 0 6px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 20px;
}

.choice-btn {
  background: var(--color-card);
  border: 3px solid #eee;
  border-radius: var(--radius);
  padding: 8px 6px 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.choice-btn .choice-image {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-btn .choice-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.choice-btn .choice-word {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text);
  letter-spacing: 2px;
  min-height: 20px;
}

.choice-btn:active {
  transform: scale(0.97);
}

.choice-btn.correct {
  background: #d4edda;
  border-color: var(--color-correct);
}

.choice-btn.wrong {
  background: #fde2e2;
  border-color: var(--color-wrong);
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Highlight target character when answer revealed */
.hilite {
  color: var(--color-primary);
  background: #fff0f5;
  padding: 0 2px;
  border-radius: 4px;
}

/* ── Feedback ── */
.feedback {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 200;
}

.feedback.show { opacity: 1; }
.feedback.correct { color: var(--color-correct); }
.feedback.wrong   { color: var(--color-wrong); }

/* ── Result ── */
.result {
  text-align: center;
  padding: 40px 20px;
}

.result h2 {
  font-size: 36px;
  color: var(--color-primary);
}

.result .score {
  font-size: 24px;
  margin: 20px 0;
}

.result .candy-get {
  font-size: 56px;
  margin: 20px 0;
  word-break: break-all;
}

.result button {
  margin: 10px 8px;
  font-size: 18px;
}
