/* Give the rocket the visual priority on short iPhone viewports. */
@media (max-height: 700px) {
  .playfield { height: 63% !important; min-height: 0 !important; }
  .quiz-panel { height: 37% !important; padding-top: 10px !important; }
  .quiz-panel .question { margin-top: 8px; }
  .quiz-panel .choices { margin-top: 10px; }
}

/* Keep the detailed answer result visible above the choices on short screens. */
.app[data-phase="feedback"] .feedback {
  position: absolute;
  z-index: 26;
  right: 16px;
  bottom: calc(100% + 6px);
  left: 16px;
  display: block !important;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(7,21,47,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  pointer-events: none;
}

/* Modern answer feedback: compact glass toast, not a large game-over card. */
#playfield.answer-correct::after,
#playfield.answer-wrong::after {
  position: absolute;
  z-index: 24;
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  transform: translateY(12px) scale(.96);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  animation: answer-result-slide .72s cubic-bezier(.22,.8,.28,1) both;
}
#playfield.answer-correct::after {
  content: '✓  正解';
  background: rgba(32, 167, 130, .78);
  box-shadow: 0 8px 22px rgba(24, 221, 166, .24), inset 0 1px 0 rgba(255,255,255,.28);
}
#playfield.answer-wrong::after {
  content: '×  不正解';
  background: rgba(195, 69, 84, .8);
  box-shadow: 0 8px 22px rgba(255, 75, 91, .22), inset 0 1px 0 rgba(255,255,255,.28);
}
#playfield.answer-correct,
#playfield.answer-wrong {
  animation: answer-field-tint .72s ease both;
}
#playfield.answer-correct .fuel-toast,
#playfield.answer-wrong .fuel-toast {
  display: none !important;
}
@keyframes answer-result-slide {
  0% { opacity: 0; transform: translateY(12px) scale(.96); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-3px) scale(.98); }
}
@keyframes answer-field-tint {
  0%, 100% { filter: none; }
  12% { filter: brightness(1.16) saturate(1.14); }
  34% { filter: brightness(1.04) saturate(1.04); }
}
