/* ==========================================================================
   uWoWA — модальное окно загрузки лаунчера (см. assets/js/launcher-modal.js)
   Оформление в стиле темы: шрифт beaufort-for-lol-bold, панели #151a25/#10141d,
   золото #ffcc00, фиолетовая линия #8272e1, контурные кнопки как .all-button-2,
   приглушённый текст #7b7ca2, рамки #47485f. Все классы с префиксом lm-.
   ========================================================================== */

html.lm-open { overflow: hidden; }

.lm-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100000;
    background: rgba(8, 10, 16, 0.88);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    -webkit-transition: opacity 0.18s ease-out;
    transition: opacity 0.18s ease-out;
    font-family: "beaufort-for-lol-bold", "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
    text-align: left;
    text-shadow: none;
    box-sizing: border-box;
    padding: 24px 16px;
}
.lm-overlay.is-open { display: block; }
.lm-overlay.is-shown { opacity: 1; }
.lm-overlay *, .lm-overlay *:before, .lm-overlay *:after { box-sizing: border-box; }

.lm-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 4vh auto 24px;
    background: #151a25;
    background: -webkit-linear-gradient(top, #1a2030 0%, #10141d 100%);
    background: linear-gradient(180deg, #1a2030 0%, #10141d 100%);
    border-top: 2px solid #8272e1;
    -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.85);
    padding: 34px 40px 24px;
    outline: none;
    -webkit-transform: translateY(14px);
    transform: translateY(14px);
    -webkit-transition: -webkit-transform 0.22s ease-out;
    transition: transform 0.22s ease-out;
}
.lm-overlay.is-shown .lm-dialog { -webkit-transform: translateY(0); transform: translateY(0); }

/* Кнопка закрытия — как крестик формы регистрации (.start-content .form .close) */
.lm-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #4b4765;
    cursor: pointer;
    font: inherit;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}
.lm-close:hover, .lm-close:focus { color: #ffcc00; }
.lm-close .lm-ico { width: 26px; height: 26px; }

/* Иконки */
.lm-ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; fill: currentColor; }

/* Заголовок — как .start-content .method-box .item .title */
.lm-head { padding-right: 40px; margin-bottom: 18px; }
.lm-title {
    font-family: inherit;
    font-weight: normal;
    font-size: 26px;
    line-height: 1.15;
    color: #ffcc00;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.lm-subtitle { color: #7b7ca2; font-size: 13px; }
.lm-notice {
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid rgba(130, 114, 225, 0.5);
    border-left-width: 3px;
    background: rgba(130, 114, 225, 0.10);
    color: #d9d4ff;
    font-size: 12px;
}

/* Вкладки */
.lm-tabs {
    display: -webkit-box; display: -webkit-flex; display: flex;
    margin: 0 0 18px;
    border-bottom: 1px solid #2a3040;
}
.lm-tab {
    position: relative;
    -webkit-box-flex: 1; -webkit-flex: 1 1 0; flex: 1 1 0;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
    min-height: 46px;
    margin: 0 0 -1px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #7b7ca2;
    font: inherit;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.lm-tab .lm-ico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; }
.lm-tab:hover, .lm-tab:focus { color: #ffffff; background: rgba(255, 255, 255, 0.03); }
.lm-tab.is-active { color: #ffcc00; border-bottom-color: #ffcc00; }
.lm-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border: 1px solid #8272e1;
    background: rgba(130, 114, 225, 0.15);
    color: #cfc8ff;
    font-size: 10px;
    line-height: 16px;
    text-transform: none;
    white-space: nowrap;
}

/* Панели */
.lm-panel[hidden] { display: none; }
.lm-panel { display: block; }

/* Главная кнопка загрузки — контурная золотая; ховер сдержанный, как у кнопок сайта (подсветка, без заливки) */
.lm-primary {
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    width: 100%;
    margin: 0 0 22px;
    padding: 12px 18px;
    border: 1px solid #ffcc00;
    background: rgba(255, 204, 0, 0.06);
    color: #ffffff;
    text-decoration: none;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.lm-primary:hover, .lm-primary:focus {
    background: rgba(255, 204, 0, 0.12);
    border-color: #ffe27a;
    color: #ffffff;
    text-decoration: none;
    -webkit-box-shadow: 0 0 18px rgba(255, 204, 0, 0.18), inset 0 0 0 1px rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.18), inset 0 0 0 1px rgba(255, 204, 0, 0.35);
}
.lm-primary:active { -webkit-transform: translateY(1px); transform: translateY(1px); }
.lm-primary-icon { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-right: 14px; line-height: 0; }
.lm-primary-icon .lm-ico { width: 30px; height: 30px; }
.lm-primary-text { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; }
.lm-primary-label { display: block; font-size: 17px; line-height: 1.2; text-transform: uppercase; -webkit-transition: color 0.2s ease; transition: color 0.2s ease; }
.lm-primary:hover .lm-primary-label, .lm-primary:focus .lm-primary-label { color: #ffcc00; }
.lm-primary-meta { display: block; margin-top: 3px; font-size: 11px; color: #ffe27a; }
.lm-primary-icon .lm-ico { -webkit-transition: color 0.2s ease; transition: color 0.2s ease; }
.lm-primary:hover .lm-primary-icon, .lm-primary:focus .lm-primary-icon { color: #ffcc00; }
.lm-primary-meta .lm-flag { vertical-align: -2px; margin-right: 2px; }

/* Секции */
.lm-section { margin: 0 0 18px; }
.lm-section-title {
    font-family: inherit;
    font-weight: normal;
    font-size: 13px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a3040;
}
.lm-req { list-style: none; margin: 0; padding: 0; }
.lm-req li { position: relative; padding: 2px 0 2px 16px; color: #d2d4e6; }
.lm-req li:before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #ffcc00;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.lm-hint { margin: -2px 0 10px; color: #7b7ca2; font-size: 12px; }

/* Список зеркал */
.lm-mirrors { border: 1px solid #2a3040; }
.lm-mirror-row {
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
    padding: 7px 10px;
    background: rgba(21, 26, 37, 0.55);
}
.lm-mirror-row:nth-child(2n) { background: rgba(21, 26, 37, 0.95); }
.lm-country {
    -webkit-box-flex: 0; -webkit-flex: 0 0 170px; flex: 0 0 170px;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    color: #ffffff;
}
.lm-country .lm-flag { margin-right: 9px; }
.lm-hosts {
    -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto;
    display: -webkit-box; display: -webkit-flex; display: flex;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
    margin: 0 -6px -6px 0;
}
/* Кнопки серверов — как .about .step-box .item .link.all-button-2 */
.lm-host {
    display: -webkit-inline-box; display: -webkit-inline-flex; display: inline-flex;
    -webkit-box-align: center; -webkit-align-items: center; align-items: center;
    margin: 0 6px 6px 0;
    padding: 3px 10px 3px 8px;
    border: 1px solid #47485f;
    background: rgba(0, 0, 0, 0.25);
    color: #7b7ca2;
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.lm-host .lm-ico { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; opacity: 0.8; }
.lm-host:hover, .lm-host:focus { background: #47485f; color: #ffffff; text-decoration: none; }
.lm-host.is-recommended { border-color: #ffcc00; color: #ffcc00; background: rgba(255, 204, 0, 0.06); }
.lm-host.is-recommended:hover, .lm-host.is-recommended:focus { background: rgba(255, 204, 0, 0.18); border-color: #ffe27a; color: #ffffff; }
.lm-host.is-recommended:before { content: '\2605'; margin-right: 5px; font-size: 11px; line-height: 1; }
.lm-host-http {
    margin-left: 6px;
    padding: 0 4px;
    border: 1px solid rgba(255, 120, 60, 0.5);
    background: rgba(255, 120, 60, 0.16);
    color: #ffb08a;
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0.04em;
}
.lm-host:hover .lm-host-http { color: #ffffff; }
.lm-hint-http { margin: 8px 0 0; }

/* Флаги (SVG data-URI, 3:2) */
.lm-flag {
    display: inline-block;
    width: 21px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
    vertical-align: -2px;
    -webkit-flex: 0 0 auto; flex: 0 0 auto;
}
.lm-flag-ru { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath fill='%23fff' d='M0 0h9v2H0z'/%3E%3Cpath fill='%230039a6' d='M0 2h9v2H0z'/%3E%3Cpath fill='%23d52b1e' d='M0 4h9v2H0z'/%3E%3C/svg%3E"); }
.lm-flag-pl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%23fff' d='M0 0h16v5H0z'/%3E%3Cpath fill='%23dc143c' d='M0 5h16v5H0z'/%3E%3C/svg%3E"); }
.lm-flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v1H0z'/%3E%3Cpath fill='%23d00' d='M0 1h5v1H0z'/%3E%3Cpath fill='%23ffce00' d='M0 2h5v1H0z'/%3E%3C/svg%3E"); }
.lm-flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%230055a4' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ef4135' d='M2 0h1v2H2z'/%3E%3C/svg%3E"); }
.lm-flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23c8102e' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23c8102e' stroke-width='6'/%3E%3C/svg%3E"); background-size: 100% 100%; }
.lm-flag-ca { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7200 4800'%3E%3Cpath fill='%23f00' d='M0 0h1800v4800H0zM5400 0h1800v4800H5400z'/%3E%3Cpath fill='%23fff' d='M1800 0h3600v4800H1800z'/%3E%3Cpath fill='%23f00' transform='translate(-1200)' d='m4800 875-270 494c-31 55-86 51-141 21l-195-102 145 770c31 141-68 141-117 80l-340-380-55 194c-6 25-33 51-74 45l-430-90 113 412c24 91 43 129-25 152l-153 71 738 601c29 23 44 64 34 101l-65 212c254-30 481-73 736-101 23-3 60 35 60 61l-34 777h124l-19-776c0-26 34-66 57-63 255 28 482 71 736 101l-65-212c-10-37 5-78 34-101l738-601-153-71c-68-23-49-61-25-152l113-412-430 90c-41 6-68-20-74-45l-55-194-340 380c-49 61-148 61-117-80l145-770-195 102c-55 30-110 34-141-21z'/%3E%3C/svg%3E"); }

/* Подвал */
.lm-foot {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #2a3040;
    color: #7b7ca2;
    font-size: 12px;
    text-align: center;
}
.lm-foot a { color: #ffcc00; text-decoration: none; border-bottom: 1px dotted rgba(255, 204, 0, 0.5); }
.lm-foot a:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* Фокус с клавиатуры (в теме outline глобально отключён через * { outline: none }) */
.lm-dialog a:focus-visible, .lm-dialog button:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }

/* Ссылки Windows · macOS под кнопкой на странице «Start game» */
.start-content .method-box .item .lm-os-links { margin-top: 8px; font-size: 13px; color: #7b7ca2; }
.start-content .method-box .item .lm-os-links a { color: #ffcc00; text-decoration: none; border-bottom: 1px dotted rgba(255, 204, 0, 0.5); }
.start-content .method-box .item .lm-os-links a:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* Узкие экраны */
@media (max-width: 640px) {
    .lm-overlay { padding: 12px 10px; }
    .lm-dialog { padding: 26px 16px 16px; margin-top: 2vh; }
    .lm-close { top: 12px; right: 12px; }
    .lm-title { font-size: 22px; }
    .lm-tab { font-size: 13px; padding: 8px 6px; }
    .lm-tab .lm-ico { margin-right: 5px; }
    .lm-badge { margin: 2px 4px; }
    .lm-country { -webkit-flex: 0 0 100%; flex: 0 0 100%; margin-bottom: 5px; }
    .lm-primary-label { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .lm-overlay, .lm-dialog, .lm-primary, .lm-tab, .lm-host, .lm-close { -webkit-transition: none; transition: none; }
}
