/* Keep the original Coco ice-cream catch game and make the prompt bilingual. */
.learning-game-page[data-game="icecream-catch"] .question-stem {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 6px 16px !important;
  padding: 13px 17px !important;
  direction: rtl !important;
}

/* Put the next event on its own line, then the Persian word beside Chinese+pinyin. */
.learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child {
  display: contents !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > span {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: block !important;
  color: #765d54 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > span::before {
  content: "اتفاق بعدی: ";
  color: #9b6047;
  font-weight: 800;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > strong {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  color: #302a2b !important;
  direction: rtl !important;
  font-size: clamp(20px, 2.7vw, 28px) !important;
  line-height: 1.45 !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > strong::before {
  content: "فارسی: ";
  color: #765d54;
  font-size: .55em;
  font-weight: 700;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-self: start !important;
  gap: 9px !important;
  width: auto !important;
  max-width: 100% !important;
  direction: ltr !important;
  white-space: nowrap !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > span,
.learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > small {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > span {
  color: #164d36 !important;
  font-family: "Aio Icecream CJK", "Noto Sans SC Local", "Noto Sans CJK SC", sans-serif !important;
  font-size: clamp(26px, 3.7vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
.learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > small {
  color: #4f5d70 !important;
  font-size: clamp(14px, 1.9vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
/* Keep the question area focused on the event and the bilingual word. */
.learning-game-page[data-game="icecream-catch"] .question-stem > .hint-button {
  display: none !important;
}

/* Image choices stay image-only; screen-reader labels remain available. */
.learning-game-page[data-game="icecream-catch"] .falling-cone > span:not(.falling-fruit-sprite),
.learning-game-page[data-game="icecream-catch"] .falling-cone > small {
  display: none !important;
}
.learning-game-page[data-game="icecream-catch"] .lane-options button > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .learning-game-page[data-game="icecream-catch"] .question-stem {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 5px 10px !important;
    padding: 11px 13px !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > span {
    font-size: 12px !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > strong {
    font-size: clamp(19px, 5.5vw, 24px) !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] {
    gap: 6px !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > span {
    font-size: clamp(24px, 7vw, 30px) !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] > small {
    font-size: clamp(12px, 3.7vw, 15px) !important;
  }
}
@media (max-width: 380px) {
  .learning-game-page[data-game="icecream-catch"] .question-stem {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div:first-child > strong {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .learning-game-page[data-game="icecream-catch"] .question-stem > div[role="group"] {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
}
