
/* Russian delivery overrides: Cyrillic metrics, wrapping, and 200% zoom safety. */
html[lang="ru"] { font-family: Arial, "Noto Sans", "Segoe UI", sans-serif; }
html[lang="ru"] body, html[lang="ru"] button, html[lang="ru"] input, html[lang="ru"] select { font-family: inherit; }
html[lang="ru"] button, html[lang="ru"] .uqr-prompt, html[lang="ru"] .dialogue-text, html[lang="ru"] .tutorial-dialogue__text,
html[lang="ru"] .tutorial-caption__text, html[lang="ru"] .uqr-feedback, html[lang="ru"] .standard-modal-card, html[lang="ru"] .modal-root,
html[lang="ru"] .growth-card, html[lang="ru"] .settings-card { overflow-wrap: anywhere; word-break: normal; }
html[lang="ru"] .title-screen__logo { max-width: 100%; }
html[lang="ru"] .action-button { word-break: keep-all; overflow-wrap: normal; hyphens: none; font-size: clamp(12px, 3.25vw, 17px); }
html[lang="ru"] .teacher-answer-warning { margin: 12px auto 0; max-width: 1400px; padding: 10px 14px; border: 1px solid #c96c21; border-radius: 8px; background: #fff4e8; color: #6d3512; font-weight: 700; }
html[lang="ru"] .museum-hud__hall-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.05; }
html[lang="ru"] .museum-hud__growth-label, html[lang="ru"] .museum-hud__research { overflow-wrap: anywhere; white-space: normal; line-height: 1.05; }
@media (max-width: 600px) {
  html[lang="ru"] .standard-topbar { height: auto; min-height: 88px; display: grid; grid-template-columns: minmax(84px, 30%) minmax(0, 1fr); align-items: start; gap: 5px; padding: 6px 7px; }
  html[lang="ru"] .standard-topbar .brand { min-width: 0; max-width: 120px; }
  html[lang="ru"] .standard-topbar .brand span { font-size: 10px; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
  html[lang="ru"] .standard-topbar .brand h1 { font-size: 16px; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
  html[lang="ru"] .standard-stats { min-width: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; align-items: start; }
  html[lang="ru"] .standard-stats > * { min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.1; font-size: 11px; padding: 3px 4px; }
  html[lang="ru"] .standard-stats > #phaseLabel { grid-column: 1 / -1; }
  html[lang="ru"] .standard-screen { height: calc(100dvh - 88px); }
  html[lang="ru"] .device[data-form-factor="phone"] { --museum-bottom-hud-height: 144px; }
  html[lang="ru"] .museum-bottom-hud { --museum-bottom-hud-height: 144px; height: 144px; grid-template-rows: minmax(0, 1fr) 58px; }
  html[lang="ru"] .museum-hud__halls { gap: 3px; padding: 6px 4px 4px; }
  html[lang="ru"] .museum-hud__hall { min-width: 0; padding: 4px 3px 3px; }
  html[lang="ru"] .museum-hud__hall-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 27px; font-size: clamp(8px, 2.15vw, 10px); }
  html[lang="ru"] .museum-hud__stage { font-size: 8px; }
  html[lang="ru"] .museum-hud__main { grid-template-columns: 58px minmax(0, 1fr) 90px; gap: 4px; padding: 4px 5px 6px; }
  html[lang="ru"] .museum-hud__menu-button { font-size: 10px; word-break: normal; }
  html[lang="ru"] .museum-hud__growth { grid-template-columns: minmax(0, 1fr) minmax(40px, 1fr); }
  html[lang="ru"] .museum-hud__growth-label, html[lang="ru"] .museum-hud__research { font-size: 9px; }
  html[lang="ru"] .museum-hud__research strong { font-size: 12px; }
}
@media (min-resolution: 1.5dppx) { html[lang="ru"] body { text-rendering: optimizeLegibility; } }
