/* Reviewed spelling cards: chunks stay on one line; whole cards wrap. */
.hint-tokens:is([data-hint-mode="memory-trial"], [data-hint-mode="memory-chunks"]) {
  align-items: stretch;
}
.hint-tokens:is([data-hint-mode="memory-trial"], [data-hint-mode="memory-chunks"]) > .hint-word {
  flex: 0 0 auto;
  width: max-content;
  min-width: 90px;
  max-width: 100%;
}
.hint-tokens:is([data-hint-mode="memory-trial"], [data-hint-mode="memory-chunks"]) .hint-memory-chunks {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  padding-top: 9px;
}
.hint-memory-part {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 6px;
  background: #54cab816;
  color: #bdeee4;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}
.hint-memory-plus {
  flex: 0 0 auto;
  color: #a6b7bf;
  font-size: 12px;
  font-weight: 500;
}
.stage.is-light-mode .hint-memory-part { color: #236b5e; background: #39a58e12; }
.stage.is-light-mode .hint-memory-plus { color: #7c918e; }
@media (max-width: 760px) {
  .hint-tokens:is([data-hint-mode="memory-trial"], [data-hint-mode="memory-chunks"]) .hint-memory-chunks { gap: 4px; }
  .hint-memory-part { font-size: 15px; padding: 3px 4px; }
}

/* Keep long cards readable on narrow phones without vertical chunk stacks. */
.hint-tokens[data-hint-mode="memory-chunks"] > .hint-word { box-sizing: border-box; }
.hint-tokens[data-hint-mode="memory-chunks"] .hint-memory-chunks { max-width:100%; overflow-x:auto; }
