/* Preserve the original playful artwork; allow translated text to wrap. */
html:not([lang="ja"]) {
  --round: ui-rounded, "Arial Rounded MT Bold", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Malgun Gothic", system-ui, sans-serif;
  --chunky: ui-rounded, "Arial Rounded MT Bold", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Malgun Gothic", system-ui, sans-serif;
}
.language-bar { align-self: flex-start; display: flex; align-items: center; gap: 6px; margin: 0 106px 0 0; min-height: 36px; max-width: calc(100% - 106px); font-size: 12px; }
.language-bar label { display: none; }
.language-bar select { width: 100%; max-width: 170px; min-height: 40px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); padding: 6px 24px 6px 10px; font: inherit; font-weight: 700; }
.language-bar select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.adaptation-note { text-align: center; max-width: 360px; color: var(--ink); font-size: 11px; line-height: 1.6; }
.adaptation-note strong { font-size: 16px; }
.adaptation-note p { margin: 3px 0; }
.adaptation-note a { color: #254fca; text-underline-offset: 3px; }
html:not([lang="ja"]) .logo { --chunky: "Dela Gothic One", sans-serif; }
html:not([lang="ja"]) .big-btn { font-size: clamp(18px, 5vw, 25px); letter-spacing: 0; line-height: 1.3; white-space: normal; }
html:not([lang="ja"]) .big-btn small { display: block; font-size: 13px; margin-top: 4px; }
html:not([lang="ja"]) .sub-btn { white-space: normal; line-height: 1.3; }
html:not([lang="ja"]) .chip { letter-spacing: 0; line-height: 1.35; }
html:not([lang="ja"]) .card-top { align-items: start; gap: 8px; }
html:not([lang="ja"]) #qtitle { max-width: 72%; }
html:not([lang="ja"]) .qno { font-size: 12px; white-space: nowrap; }
html:not([lang="ja"]) .step-label { line-height: 1.4; overflow-wrap: anywhere; }
html:not([lang="ja"]) .help-text { white-space: normal; }
html:not([lang="ja"]) .node { font-size: 9px; line-height: 1.13; word-break: normal; }
html:not([lang="ja"]) .tree-head h2 { font-size: 19px; }
html:not([lang="ja"]) .co-name { overflow-wrap: anywhere; }
html:not([lang="ja"]) .tally { font-size: 11px; }
html:not([lang="ja"]) .tr-filter { flex-wrap: wrap; }
html:not([lang="ja"]) .stats dt { font-size: 12px; }
@media (max-width: 380px) {
  html:not([lang="ja"]) .mode-row { gap: 8px; }
  html:not([lang="ja"]) .mode-row .sub-btn { min-width: 130px; font-size: 13px; }
  html:not([lang="ja"]) .grades button small { font-size: 10px; }
}
html:not([lang="ja"]) .cell.word { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.12; font-size: clamp(10px, calc(var(--ch) * .30), 15px); }
