/* The frame stays steady while the actual rendered text determines its size. */
.tj-question.tj-question {
  --tj-q-min: 18;
  --tj-q-max: 96;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: clamp(180px, 32svh, 460px);
  margin: 14px 0;
  padding: 2px;
  overflow: auto;
  font-size: var(--tj-q-size, 32px);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}
.tj-question .tj-q-content {
  display: grid;
  gap: .28em;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
}
.tj-question .tj-q-text,
.tj-question .tj-q-focus {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  white-space: pre-wrap;
  color: inherit;
  font: inherit;
}
.tj-question .tj-q-focus {
  justify-self: center;
  padding: .16em .32em;
  border: 1px solid var(--accent, #387064);
  border-radius: .22em;
  background: var(--soft, #eaf3ee);
  color: var(--ink, #203b32);
  font-size: 1.45em;
  font-weight: 950;
  line-height: 1.1;
}
.tj-question[data-question-mode="display"] {
  --tj-q-max: 128;
  height: clamp(180px, 40svh, 620px);
  margin: 12px auto;
  max-width: 1400px;
}
.tj-question[data-question-mode="player"] {
  --tj-q-min: 16;
  --tj-q-max: 48;
  height: clamp(120px, 27svh, 240px);
  margin: 12px 0;
}
.tj-question[data-question-mode="preview"] {
  height: auto;
  min-height: 0;
  overflow: visible;
  font-size: 20px;
  margin: 8px 0 12px;
}
.tj-q-help { font-size: 13px; line-height: 1.45; color: var(--muted, #63756c); }
.tj-q-overflow { justify-content: flex-start; }
@media (max-width: 600px) {
  .tj-question[data-question-mode="host"],
  .tj-question[data-question-mode="display"] { --tj-q-max: 64; }
}
