/* EN / RU controls across all themes, all screen sizes */
.cn-lang-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;background:rgba(8,13,25,.82);border:1px solid rgba(55,226,233,.44);border-radius:999px;box-shadow:0 1px 6px rgba(0,0,0,.25);vertical-align:middle;white-space:nowrap;z-index:1001;flex:0 0 auto}
.cn-lang-switch button{font:700 11px/1.3 ui-monospace,monospace;letter-spacing:.08em;min-height:30px;min-width:35px;padding:6px 8px;border:0;border-radius:999px;background:transparent;color:#b5c5d2;cursor:pointer;transition:background .15s,color .15s}
.cn-lang-switch button.selected{background:#08cddb;color:#04101b}
.cn-lang-switch button:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cn-lang-switch button:hover:not(.selected){background:#27374a;color:white}
.cn-lang-switch.cn-lang-pages{margin-left:auto;margin-right:clamp(6px,1.5vw,18px)}
.cn-lang-switch.cn-lang-boot{justify-self:center;margin:0 auto 10px;position:relative}
.cn-lang-switch.cn-lang-mobile{display:none}
@media (max-width:720px){
 .cn-lang-switch.cn-lang-desktop{display:none}
 .cn-lang-switch.cn-lang-mobile{display:inline-flex;width:max-content;max-width:100%;margin:0}
 .cn-lang-switch.cn-lang-boot{margin:0 auto 10px}
 .site-nav,.sitehead{flex-wrap:wrap;gap:8px}
 .cn-lang-switch.cn-lang-pages{order:2;margin-left:auto}
 .mobile-hero-actions{flex-wrap:wrap;gap:8px}
 .mobile-hero-actions .cn-lang-switch{flex:0 0 auto}
}
html[lang="ru"] .desktop-icon>span:last-child{overflow-wrap:anywhere}
html[lang="ru"] .win-title, html[lang="ru"] .task-app span{overflow-wrap:anywhere}
html[lang="ru"] .arcade-tile-copy{overflow-wrap:anywhere}
html[lang="ru"] .app-title,html[lang="ru"] .media-title{overflow-wrap:anywhere}
@media (max-width:480px){html[lang="ru"] .mobile-hero h1{font-size:clamp(21px,7vw,34px)} html[lang="ru"] .boot-glitch{font-size:clamp(22px,8vw,46px)}}

.cn-lang-ru{display:none}
html[lang="ru"] .cn-lang-en{display:none}
html[lang="ru"] .cn-lang-ru{display:inline}
@media(max-width:480px){.module-hero h1{overflow-wrap:anywhere}}
/* Russian words are longer; avoid clipping in the Academy hero on phones. */
@media (max-width:520px) {
 html[lang="ru"] .hero h1 {font-size:clamp(25px,7vw,34px);line-height:1.12;letter-spacing:-.055em;overflow-wrap:anywhere;max-width:100%}
 html[lang="ru"] .headline,html[lang="ru"] .module h3{overflow-wrap:anywhere}
 html[lang="ru"] .hero{padding:28px 18px}
}

.cn-lang-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0;padding:12px 14px;border:1px solid rgba(55,226,233,.3);border-radius:12px;background:rgba(4,12,25,.42)}
.cn-lang-setting-row>strong{color:inherit;font:700 12px ui-monospace,monospace;letter-spacing:.07em}
@media (max-width:750px){.tab-nav{position:static;top:auto}}
