
/* 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; }
/* "Пропустить" is wider than "건너뛰기": move the sound button left while the story skip button is shown (2026-11-28). */
html[lang="ru"] .device:has(.tutorial-skip:not(.hidden)) .game-audio-quick { right: 144px; }
@media (max-width: 600px) { html[lang="ru"] .device:has(.tutorial-skip:not(.hidden)) .game-audio-quick { right: 122px; } }
@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-width: 601px) {
  /* Tablet/desktop: keep Russian words whole in compact controls (2026-11-06). */
  html[lang="ru"] .action-button, html[lang="ru"] .room-action-button { font-size: 13px; line-height: 1.12; padding: 6px; overflow-wrap: normal; }
  html[lang="ru"] .room-exit-hotspot { font-size: 13px; line-height: 1.1; overflow-wrap: normal; }
  html[lang="ru"] .museum-hud__main { grid-template-columns: 92px minmax(0, 1fr) 168px; }
  html[lang="ru"] .museum-hud__menu-button, html[lang="ru"] .museum-hud__menu-button span { font-size: 13px; overflow-wrap: normal; }
  html[lang="ru"] .museum-hud__research { gap: 6px; padding: 0 6px; line-height: 1.05; font-size: 10px; overflow-wrap: normal; text-align: left; }
  html[lang="ru"] .museum-hud__research span { overflow-wrap: normal; }
  html[lang="ru"] .museum-hud__research strong { white-space: nowrap; overflow-wrap: normal; }
  html[lang="ru"] .standard-topbar .brand h1 { font-size: 20px; line-height: 1.1; white-space: nowrap; }
  html[lang="ru"] .unit-card strong { word-break: keep-all; overflow-wrap: normal; }
  /* Map nodes: wider box so two-line labels such as "Наблюдение/Классификация" stay inside (2026-11-28). */
  html[lang="ru"] .map-node { width: 140px; min-height: 80px; padding: 4px 6px 8px; overflow-wrap: normal; }
  html[lang="ru"] .map-node b { font-size: 14px; overflow-wrap: normal; }
  html[lang="ru"] .map-node span { font-size: 11px; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: normal; }
  html[lang="ru"] .map-node[class*="node-start"] span { font-size: 10px; }
}
/* 2학기(2026-11-28): 분류, 순서 카드에서 긴 러시아어 낱말이 글자 중간에서 끊기지 않게 칸을 넓히고 하이픈 줄바꿈을 쓴다. */
html[lang="ru"] .uqr-card-item, html[lang="ru"] .uqr-choice { overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
html[lang="ru"] .uqr-classify-bank { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 601px) { html[lang="ru"] .uqr-card-item { font-size: 15px; line-height: 1.35; } }
@media (min-resolution: 1.5dppx) { html[lang="ru"] body { text-rendering: optimizeLegibility; } }
