/* ==========================================================================
   XP-ШАПКА В КАНОНИЧНОМ ВИДЕ (Luna) + ОКНА ПАСХАЛОК
   --------------------------------------------------------------------------
   Подключается ПОСЛЕДНИМ из стилей в index.html. Ничего не ломает в старом:
   - всё про шапку живёт внутри @media (min-width: 769px) и селекторов
     .ie6-header-zone / body > .ie6-window-wrapper — на телефонах шапка
     и так скрыта, а окно поста (.xp-post-window) не задевается;
   - скругления ставим с !important — в style.css стоит глобальное
     `* { border-radius: 0 !important }`, класс его перебивает.
   Иконки нарисованы с нуля (SVG прямо здесь), чужих логотипов нет.
   Файл собирается скриптом из шаблона, править можно и руками.
   ========================================================================== */

@media screen and (min-width: 769px) {

/* --- Рамка окна: скруглённый верх, синяя кайма Luna --- */
body > .ie6-window-wrapper:not(.taskbar-minimized) {
    border: 3px solid #0831d9;
    border-top: 0;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 0 0 1px rgba(0, 20, 90, 0.35), 4px 6px 22px rgba(0, 0, 0, 0.38);
}

/* --- Заголовок окна --- */
.ie6-header-zone .xp-title-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 5px 0 7px;
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
    border-radius: 7px 7px 0 0 / 8px 8px 0 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 1px 0 0 rgba(255, 255, 255, 0.18), inset -1px 0 0 rgba(0, 0, 0, 0.15);
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    text-shadow: 1px 1px 0 #0f1089;
    cursor: default;
}
.ie6-header-zone .xp-title-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.ie6-header-zone .xp-title-icon {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cg fill='%23e4f5ff' fill-opacity='.92' stroke='%23ffffff' stroke-width='.5'%3E %3Cellipse cx='4.4' cy='5' rx='3.9' ry='1.5' transform='rotate(-14 4.4 5)'/%3E %3Cellipse cx='11.6' cy='5' rx='3.9' ry='1.5' transform='rotate(14 11.6 5)'/%3E %3Cellipse cx='4.8' cy='7.9' rx='3.4' ry='1.3' transform='rotate(16 4.8 7.9)'/%3E %3Cellipse cx='11.2' cy='7.9' rx='3.4' ry='1.3' transform='rotate(-16 11.2 7.9)'/%3E%3C/g%3E %3Crect x='7.25' y='5' width='1.5' height='10' rx='.75' fill='%2327c2d8' stroke='%230b5b78' stroke-width='.5'/%3E %3Ccircle cx='8' cy='3.6' r='1.9' fill='%233dd06e' stroke='%230d5c2a' stroke-width='.5'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 40, 0.35));
    cursor: pointer;
}
.ie6-header-zone .xp-title-text {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.ie6-header-zone .xp-title-buttons {
    display: flex;
    gap: 2px;
    width: auto;
    flex-shrink: 0;
}

/* Кнопки «свернуть / развернуть / закрыть» */
.ie6-header-zone .xp-title-buttons button {
    width: 21px;
    height: 21px;
    margin: 0;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 3px !important;
    background: linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%);
    box-shadow: inset -1px -1px 1px rgba(0, 0, 60, 0.45), inset 1px 1px 1px rgba(255, 255, 255, 0.55);
    background-repeat: no-repeat;
    cursor: pointer;
    transition: filter 0.08s;
}
.ie6-header-zone .xp-title-buttons button::before { display: none !important; content: none !important; }
.ie6-header-zone .xp-title-buttons button:hover { filter: brightness(1.15) saturate(1.05); }
.ie6-header-zone .xp-title-buttons button:active {
    filter: brightness(0.9);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 50, 0.6);
}
.ie6-header-zone .xp-btn-minimize { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='5' y='13' width='7' height='3' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%) !important; }
.ie6-header-zone .xp-btn-maximize { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M5 5h11v11H5z' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3Crect x='5' y='4.3' width='11' height='2.6' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%) !important; }
body.xpe-maximized .ie6-header-zone .xp-btn-maximize { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M8 4.5h8.5V13' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3Crect x='8' y='3.8' width='8.5' height='2.2' fill='%23fff'/%3E%3Cpath d='M4.5 8h8.5v8.5H4.5z' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3Crect x='4.5' y='7.3' width='8.5' height='2.2' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%) !important; }
.ie6-header-zone .xp-btn-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M6 6l9 9M15 6l-9 9' stroke='%23fff' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E"), linear-gradient(135deg, #f4a184 0%, #e3633b 38%, #d0441b 70%, #b8360f 100%) !important;
    border-color: #ffffff !important;
    margin-left: 2px !important;
}

/* --- Полосы-«ребары» (меню, кнопки, адрес): ручка слева и гравировка --- */
.ie6-header-zone .ie6-menu-bar,
.ie6-header-zone .ie6-nav-toolbar,
.ie6-header-zone .ie6-address-bar {
    position: relative;
    background: #ece9d8;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #c5c2b2;
    padding-left: 14px;
}
.ie6-header-zone .ie6-menu-bar::before,
.ie6-header-zone .ie6-nav-toolbar::before,
.ie6-header-zone .ie6-address-bar::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: radial-gradient(circle at 1px 1px, #ffffff 0.9px, transparent 1px) 0 0 / 3px 3px,
                radial-gradient(circle at 1px 1px, #a7a28c 0.9px, transparent 1px) 1px 1px / 3px 3px;
}

/* Меню */
.ie6-header-zone .ie6-menu-bar {
    gap: 0;
    padding-top: 1px;
    padding-bottom: 1px;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    min-height: 22px;
}
.ie6-header-zone .ie6-menu-item {
    padding: 2px 7px 3px;
    color: #000;
    line-height: 15px;
}
.ie6-header-zone .ie6-menu-item:hover,
.ie6-header-zone .ie6-menu-item.xpe-open {
    background: #316ac5;
    color: #ffffff;
}
.ie6-header-zone .ie6-menu-brand-icon,
.ie6-header-zone .ie6-menu-brand-icon.ie6-loading-spin {
    width: 22px;
    height: 22px;
    margin-left: auto;
    margin-right: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cdefs%3E %3CradialGradient id='o' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23bfe3ff'/%3E%3Cstop offset='.55' stop-color='%233b86e6'/%3E%3Cstop offset='1' stop-color='%23123e9c'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='11' cy='11' r='9' fill='url(%23o)' stroke='%230d2f7a'/%3E %3Cpath d='M5.5 7.5c2 .5 2.5 2 4 2s1 2.5-.5 3.5-1 3-2.5 3.5M12.5 4.5c.5 1.5 2.5 1.5 3 3s-1.5 2-.5 3.5 2 1 2.5 2.5' fill='none' stroke='%237be07a' stroke-width='1.6' stroke-linecap='round'/%3E %3Cellipse cx='11' cy='11' rx='4' ry='9' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='.7'/%3E %3Cpath d='M2 11h18' stroke='%23ffffff' stroke-opacity='.45' stroke-width='.7'/%3E%3C/svg%3E") no-repeat center / 20px 20px !important;
    cursor: pointer;
}

/* Панель кнопок */
.ie6-header-zone .ie6-nav-toolbar {
    gap: 1px;
    padding-top: 1px;
    padding-bottom: 1px;
    min-height: 36px;
}
.ie6-header-zone .ie6-nav-btn {
    height: 32px;
    padding: 0 6px 0 4px;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 3px !important;
    background: transparent;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    box-shadow: none;
}
.ie6-header-zone .ie6-nav-btn:hover {
    border-color: #cdc8b2;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4ee 45%, #e8e5d6 100%);
    box-shadow: inset 0 -1px 0 #d6d2c0, 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ie6-header-zone .ie6-nav-btn:active {
    border-color: #a7a28c;
    background: linear-gradient(180deg, #dedbcb 0%, #e9e6d8 100%);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.22);
}
.ie6-header-zone .ie6-nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}
.ie6-header-zone .ie6-nav-icon::before { content: none !important; display: none !important; }
.ie6-header-zone .ie6-nav-text:empty { display: none; }
.ie6-header-zone .btn-back .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23c9f7b4'/%3E%3Cstop offset='.42' stop-color='%2355c435'/%3E%3Cstop offset='1' stop-color='%231b7410'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='12' cy='12' r='10.3' fill='url(%23g)' stroke='%2317620d'/%3E %3Cpath d='M5.6 12 12.4 5.8v3.9h5.8v4.6h-5.8v3.9z' fill='%23fff' stroke='%231c6b12' stroke-width='.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-forward .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23c9f7b4'/%3E%3Cstop offset='.42' stop-color='%2355c435'/%3E%3Cstop offset='1' stop-color='%231b7410'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='12' cy='12' r='10.3' fill='url(%23g)' stroke='%2317620d'/%3E %3Cpath d='M18.4 12 11.6 5.8v3.9H5.8v4.6h5.8v3.9z' fill='%23fff' stroke='%231c6b12' stroke-width='.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-forward { filter: grayscale(1) opacity(0.55); }
.ie6-header-zone .btn-forward:hover { filter: none; }
.ie6-header-zone .btn-stop .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='r' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23ffb39a'/%3E%3Cstop offset='.45' stop-color='%23e8461d'/%3E%3Cstop offset='1' stop-color='%239c1c06'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M4.5 2.5h9l4.5 4.5v14.5H4.5z' fill='%23fff' stroke='%237d8ea8'/%3E%3Cpath d='M13.5 2.5V7h4.5' fill='%23e6edf7' stroke='%237d8ea8' stroke-linejoin='round'/%3E%3Cpath d='M6.5 9h6M6.5 11h5M6.5 13h4' stroke='%23c3cfdf'/%3E %3Ccircle cx='15' cy='16' r='6' fill='url(%23r)' stroke='%238a1704'/%3E %3Cpath d='M12.6 13.6l4.8 4.8M17.4 13.6l-4.8 4.8' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-refresh .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23c9f7b4'/%3E%3Cstop offset='.42' stop-color='%2355c435'/%3E%3Cstop offset='1' stop-color='%231b7410'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M4.5 2.5h9l4.5 4.5v14.5H4.5z' fill='%23fff' stroke='%237d8ea8'/%3E%3Cpath d='M13.5 2.5V7h4.5' fill='%23e6edf7' stroke='%237d8ea8' stroke-linejoin='round'/%3E%3Cpath d='M6.5 9h6M6.5 11h5M6.5 13h4' stroke='%23c3cfdf'/%3E %3Ccircle cx='15' cy='16' r='6' fill='url(%23g)' stroke='%2317620d'/%3E %3Cpath d='M11.9 15.4a3.2 3.2 0 0 1 5.4-1.9' fill='none' stroke='%23fff' stroke-width='1.5'/%3E %3Cpath d='M18.4 11.9l-.2 3-2.8-.9z' fill='%23fff'/%3E %3Cpath d='M18.1 16.6a3.2 3.2 0 0 1-5.4 1.9' fill='none' stroke='%23fff' stroke-width='1.5'/%3E %3Cpath d='M11.6 20.1l.2-3 2.8.9z' fill='%23fff'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-home .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E %3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fffaf0'/%3E%3Cstop offset='1' stop-color='%23ecd3a0'/%3E%3C/linearGradient%3E %3ClinearGradient id='rf' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2774f'/%3E%3Cstop offset='1' stop-color='%23c2330f'/%3E%3C/linearGradient%3E%3C/defs%3E %3Crect x='15.6' y='4' width='2.2' height='5' fill='%23a3532d' stroke='%236e3418' stroke-width='.6'/%3E %3Cpath d='M5.5 11v10h13V11L12 5.2z' fill='url(%23w)' stroke='%237b5d2c' stroke-width='.8'/%3E %3Cpath d='M2.6 12.2 12 3.4l9.4 8.8-1.5 1.3L12 6.2l-7.9 7.3z' fill='url(%23rf)' stroke='%237c200a' stroke-width='.8' stroke-linejoin='round'/%3E %3Crect x='10' y='14.5' width='4' height='6.5' fill='%238a5323' stroke='%235a3410' stroke-width='.6'/%3E %3Crect x='15' y='12.6' width='2.6' height='2.6' fill='%23a8d6ff' stroke='%234f6075' stroke-width='.6'/%3E %3Crect x='6.4' y='12.6' width='2.6' height='2.6' fill='%23a8d6ff' stroke='%234f6075' stroke-width='.6'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-search .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E %3CradialGradient id='l' cx='38%25' cy='35%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.6' stop-color='%23bfe0fb'/%3E%3Cstop offset='1' stop-color='%2378aee0'/%3E%3C/radialGradient%3E%3C/defs%3E %3Cpath d='M14.6 14.6l6 6' stroke='%235a3b14' stroke-width='3.6' stroke-linecap='round'/%3E %3Cpath d='M14.6 14.6l6 6' stroke='%23b07a35' stroke-width='1.6' stroke-linecap='round'/%3E %3Ccircle cx='9.8' cy='9.8' r='6.6' fill='url(%23l)' stroke='%232f3f60' stroke-width='1.8'/%3E %3Cpath d='M6.8 8.2a3.4 3.4 0 0 1 3-2.6' stroke='%23fff' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-favorites .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E %3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff7b8'/%3E%3Cstop offset='.5' stop-color='%23ffd02a'/%3E%3Cstop offset='1' stop-color='%23ec9a00'/%3E%3C/linearGradient%3E%3C/defs%3E %3Cpath d='M12 2.2l2.9 6.2 6.7.7-5 4.5 1.4 6.7L12 16.9l-6 3.4 1.4-6.7-5-4.5 6.7-.7z' fill='url(%23s)' stroke='%239a6200' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ie6-header-zone .btn-media .ie6-nav-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E %3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235c8ae6'/%3E%3Cstop offset='1' stop-color='%231a3a96'/%3E%3C/linearGradient%3E%3C/defs%3E %3Crect x='2.5' y='4.5' width='19' height='15' rx='2' fill='url(%23m)' stroke='%2313286b'/%3E %3Cg fill='%23d6e4ff'%3E%3Crect x='4' y='6' width='1.6' height='1.6'/%3E%3Crect x='4' y='9.4' width='1.6' height='1.6'/%3E%3Crect x='4' y='12.8' width='1.6' height='1.6'/%3E%3Crect x='4' y='16.2' width='1.6' height='1.6'/%3E %3Crect x='18.4' y='6' width='1.6' height='1.6'/%3E%3Crect x='18.4' y='9.4' width='1.6' height='1.6'/%3E%3Crect x='18.4' y='12.8' width='1.6' height='1.6'/%3E%3Crect x='18.4' y='16.2' width='1.6' height='1.6'/%3E%3C/g%3E %3Cpath d='M9.6 8.2 15.6 12l-6 3.8z' fill='%2386ef5f' stroke='%23256d10' stroke-width='.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Стрелочка-«история» у «Назад» и «Вперёд», как в настоящем IE */
.ie6-header-zone .btn-back::after,
.ie6-header-zone .btn-forward::after {
    content: "";
    width: 5px;
    height: 3px;
    margin-left: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5L2.5 3z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / 5px 3px;
}
.ie6-header-zone .ie6-nav-separator {
    width: 2px;
    height: 26px;
    margin: 0 3px;
    background: none;
    border-left: 1px solid #c5c2b2;
    border-right: 1px solid #ffffff;
}

/* Адресная строка */
.ie6-header-zone .ie6-address-bar {
    gap: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 4px;
}
.ie6-header-zone .ie6-address-label {
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #3d3d3d;
}
.ie6-header-zone .ie6-address-input-container {
    height: 22px;
    padding: 0 0 0 3px;
    border: 1px solid #7f9db9;
    background: #ffffff;
}
.ie6-header-zone .ie6-address-url-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cpath d='M2.5 1.5h7l3 3v10h-10z' fill='%23fff' stroke='%237d8ea8'/%3E %3Cpath d='M9.5 1.5v3h3' fill='%23e6edf7' stroke='%237d8ea8'/%3E %3Ccircle cx='8.5' cy='10' r='3.4' fill='%233b86e6' stroke='%23123e9c' stroke-width='.6'/%3E %3Cpath d='M6.6 8.6c1 .3 1.3 1 2 1s.5 1.3-.3 1.8' stroke='%237be07a' stroke-width='.9' fill='none'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.ie6-header-zone .ie6-address-input {
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    height: 18px;
    background: transparent;
}
.ie6-header-zone .ie6-address-input:not([readonly]) { cursor: text; }
/* Кнопка-стрелка выпадающего списка — как у комбобокса XP */
.ie6-header-zone .ie6-address-dropdown-arrow {
    width: 17px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #c3d3fd;
    border-radius: 2px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M.5 .8 4.5 4.8 8.5 .8' fill='none' stroke='%234d6185' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / 9px 6px, linear-gradient(180deg, #e6eefc 0%, #d1dffc 45%, #b9cefa 100%);
    box-shadow: inset 1px 1px 0 #ffffff;
}
.ie6-header-zone .ie6-address-dropdown-arrow:hover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M.5 .8 4.5 4.8 8.5 .8' fill='none' stroke='%234d6185' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / 9px 6px, linear-gradient(180deg, #f3f7ff 0%, #dde8ff 45%, #c9daff 100%);
}
.ie6-header-zone .ie6-address-dropdown-arrow:active {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Cpath d='M.5 .8 4.5 4.8 8.5 .8' fill='none' stroke='%234d6185' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / 9px 6px, linear-gradient(180deg, #b9cefa 0%, #d1dffc 100%);
}
.ie6-header-zone .ie6-go-btn {
    height: 22px;
    padding: 0 6px 0 3px;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 3px !important;
    background: transparent;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    font-weight: normal;
}
.ie6-header-zone .ie6-go-btn:hover {
    border-color: #cdc8b2;
    background: linear-gradient(180deg, #ffffff 0%, #f5f4ee 45%, #e8e5d6 100%);
}
.ie6-header-zone .ie6-go-btn:active {
    border-color: #a7a28c;
    background: #e3e0d0;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.22);
}
.ie6-header-zone .ie6-go-icon {
    width: 16px;
    height: 16px;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23c9f7b4'/%3E%3Cstop offset='.42' stop-color='%2355c435'/%3E%3Cstop offset='1' stop-color='%231b7410'/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect x='1' y='1' width='14' height='14' rx='2.5' fill='url(%23g)' stroke='%2317620d'/%3E %3Cpath d='M4.5 6.6h3.6V4.2L12 8l-3.9 3.8V9.4H4.5z' fill='%23fff' stroke='%231c6b12' stroke-width='.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}
.ie6-header-zone .xpe-links {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 22px;
    padding: 0 6px 0 9px;
    border-left: 1px solid #c5c2b2;
    box-shadow: inset 1px 0 0 #ffffff;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #3d3d3d;
    cursor: pointer;
    user-select: none;
    border-radius: 0 3px 3px 0 !important;
}
.ie6-header-zone .xpe-links:hover,
.ie6-header-zone .xpe-links.xpe-open { background: #316ac5; color: #fff; }
.ie6-header-zone .xpe-links b { font-weight: bold; letter-spacing: -1px; }

/* --- Полоса сезона: как строка состояния XP --- */
.ie6-header-zone .season-strip {
    background: linear-gradient(180deg, #f3f1e7 0%, #ebe8d9 100%);
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #a9a48f;
}
.ie6-header-zone .season-online,
.ie6-header-zone .season-radio-btn {
    border: 1px solid;
    border-color: #a5a191 #ffffff #ffffff #a5a191;
    box-shadow: inset 1px 1px 0 #d8d4c4;
    padding: 2px 8px;
}
.ie6-header-zone .season-radio-btn:hover { border-color: #7f9db9; }

/* Боковое меню: значок слева, текст переносится в своей колонке */
.side-menu li a { display: flex; align-items: center; gap: 7px; line-height: 1.25; }
.side-menu li a .menu-icon.xpi { margin-right: 0; }
.side-menu li a .menu-badge { margin-left: auto; float: none; }

/* Развёрнуто на весь экран (двойной щелчок по заголовку или □) */
body.xpe-maximized.xp-desktop { padding: 0 !important; }
body.xpe-maximized > .ie6-window-wrapper:not(.taskbar-minimized) {
    max-width: none !important;
    border-radius: 0 !important;
    border-width: 0 !important;
}
body.xpe-maximized .ie6-header-zone .xp-title-bar { border-radius: 0 !important; }
body.xpe-maximized .left-col { width: 180px; }

/* Скрытые панели (Вид → Панели инструментов) */
body.xpe-hide-nav .ie6-header-zone .ie6-nav-toolbar,
body.xpe-hide-addr .ie6-header-zone .ie6-address-bar { display: none !important; }

} /* конец @media (min-width: 769px) */

/* Разделитель «· за сутки» — на любой ширине */
.season-online-daily-sep { color: #9a9686; }
.season-online-daily-count { color: #0e44b8; font-weight: bold; }

/* ==========================================================================
   ОКНА, МЕНЮ И ДИАЛОГИ ПАСХАЛОК (xp_eggs.js) — существуют только на ПК
   ========================================================================== */
.xpe-menu {
    position: fixed;
    z-index: 100900;
    min-width: 190px;
    padding: 2px;
    background: #ffffff;
    border: 1px solid #aca899;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.35);
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    user-select: none;
    animation: xpe-menu-in 0.12s ease-out;
}
@keyframes xpe-menu-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.xpe-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px 18px 3px 22px;
    white-space: nowrap;
    cursor: default;
    line-height: 15px;
}
.xpe-menu-item:hover,
.xpe-menu-item.xpe-hot { background: #316ac5; color: #ffffff; }
.xpe-menu-item.xpe-disabled { color: #aca899; }
.xpe-menu-item.xpe-disabled:hover { background: transparent; color: #aca899; }
.xpe-menu-item .xpe-mi-key { margin-left: auto; padding-left: 24px; }
.xpe-menu-item .xpe-mi-check { position: absolute; left: 7px; font-weight: bold; }
.xpe-menu-item .xpe-mi-icon { position: absolute; left: 4px; width: 14px; text-align: center; font-size: 11px; }
.xpe-menu-item.xpe-has-sub::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    margin-top: -4px;
    border-left: 4px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
.xpe-menu-item.xpe-default { font-weight: bold; }
.xpe-menu-sep { height: 1px; margin: 3px 1px; background: #aca899; }

/* Окно XP */
.xpe-win {
    position: fixed;
    z-index: 100500;
    display: flex;
    flex-direction: column;
    background: #ece9d8;
    border: 3px solid #0831d9;
    border-top: 0;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 0 0 1px rgba(0, 20, 90, 0.4), 3px 6px 20px rgba(0, 0, 0, 0.45);
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    animation: xpe-win-in 0.16s ease-out;
}
@keyframes xpe-win-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.xpe-win.xpe-inactive { border-color: #7a96df; }
.xpe-win-title {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 4px 0 6px;
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
    border-radius: 7px 7px 0 0 / 8px 8px 0 0 !important;
    color: #fff;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #0f1089;
    cursor: default;
    user-select: none;
    flex-shrink: 0;
}
.xpe-win.xpe-inactive .xpe-win-title {
    background: linear-gradient(180deg, #a9c1f0 0%, #7a9de6 10%, #7c9fe8 85%, #6a8bd6 100%);
    color: #dfe7fb;
    text-shadow: none;
}
.xpe-win-title-icon { width: 16px; height: 16px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cg fill='%23e4f5ff' fill-opacity='.92' stroke='%23ffffff' stroke-width='.5'%3E %3Cellipse cx='4.4' cy='5' rx='3.9' ry='1.5' transform='rotate(-14 4.4 5)'/%3E %3Cellipse cx='11.6' cy='5' rx='3.9' ry='1.5' transform='rotate(14 11.6 5)'/%3E %3Cellipse cx='4.8' cy='7.9' rx='3.4' ry='1.3' transform='rotate(16 4.8 7.9)'/%3E %3Cellipse cx='11.2' cy='7.9' rx='3.4' ry='1.3' transform='rotate(-16 11.2 7.9)'/%3E%3C/g%3E %3Crect x='7.25' y='5' width='1.5' height='10' rx='.75' fill='%2327c2d8' stroke='%230b5b78' stroke-width='.5'/%3E %3Ccircle cx='8' cy='3.6' r='1.9' fill='%233dd06e' stroke='%230d5c2a' stroke-width='.5'/%3E%3C/svg%3E") no-repeat center / 16px 16px; }
.xpe-win-title-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xpe-win-btn {
    width: 21px;
    height: 21px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 3px !important;
    cursor: pointer;
    flex-shrink: 0;
    background-repeat: no-repeat;
    box-shadow: inset -1px -1px 1px rgba(0, 0, 60, 0.45), inset 1px 1px 1px rgba(255, 255, 255, 0.55);
}
.xpe-win-btn:hover { filter: brightness(1.15); }
.xpe-win-btn:active { filter: brightness(0.9); box-shadow: inset 1px 1px 2px rgba(0, 0, 50, 0.6); }
.xpe-win-btn.xpe-close { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M6 6l9 9M15 6l-9 9' stroke='%23fff' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E"), linear-gradient(135deg, #f4a184 0%, #e3633b 38%, #d0441b 70%, #b8360f 100%); }
.xpe-win-btn.xpe-help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Ctext x='10.5' y='15.5' text-anchor='middle' font-family='Tahoma,Arial' font-weight='bold' font-size='13' fill='%23fff'%3E%3F%3C/text%3E%3C/svg%3E"), linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%); }
.xpe-win-btn.xpe-min { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Crect x='5' y='13' width='7' height='3' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(135deg, #6c9cf8 0%, #2f6bea 38%, #1652d8 70%, #1a4ec4 100%); }
.xpe-win-menubar {
    display: flex;
    padding: 1px 2px;
    border-bottom: 1px solid #c5c2b2;
    box-shadow: 0 1px 0 #ffffff;
    flex-shrink: 0;
}
.xpe-win-menubar span { padding: 2px 7px 3px; cursor: default; }
.xpe-win-menubar span:hover, .xpe-win-menubar span.xpe-open { background: #316ac5; color: #fff; }
.xpe-win-body { padding: 12px; overflow: auto; min-height: 0; flex: 1; }
.xpe-win-status {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-top: 1px solid #c5c2b2;
    box-shadow: inset 0 1px 0 #ffffff;
    flex-shrink: 0;
}
.xpe-win-status > span {
    padding: 1px 6px;
    border: 1px solid;
    border-color: #a5a191 #ffffff #ffffff #a5a191;
    white-space: nowrap;
}
.xpe-win-status > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* Диалог-сообщение */
.xpe-msg { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px 2px; line-height: 1.45; }
.xpe-msg-icon { width: 32px; height: 32px; flex-shrink: 0; background-repeat: no-repeat; background-size: 32px 32px; }
.xpe-ico-info { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='i' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23cfe6ff'/%3E%3Cstop offset='.5' stop-color='%233a83e8'/%3E%3Cstop offset='1' stop-color='%230f3c9e'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='16' cy='16' r='14' fill='url(%23i)' stroke='%230b2c76'/%3E%3Ccircle cx='16' cy='9.5' r='2.3' fill='%23fff'/%3E%3Crect x='13.8' y='13.5' width='4.4' height='11' rx='1' fill='%23fff'/%3E%3C/svg%3E"); }
.xpe-ico-warn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='y' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff2a0'/%3E%3Cstop offset='1' stop-color='%23f4b400'/%3E%3C/linearGradient%3E%3C/defs%3E %3Cpath d='M16 2.5 30 28.5H2z' fill='url(%23y)' stroke='%237a5a00' stroke-linejoin='round'/%3E%3Crect x='14.2' y='10' width='3.6' height='11' rx='1' fill='%23222'/%3E%3Ccircle cx='16' cy='24.4' r='2' fill='%23222'/%3E%3C/svg%3E"); }
.xpe-ico-error { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='r' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23ffb39a'/%3E%3Cstop offset='.45' stop-color='%23e8461d'/%3E%3Cstop offset='1' stop-color='%239c1c06'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='16' cy='16' r='14' fill='url(%23r)' stroke='%237a1203'/%3E%3Cpath d='M10.5 10.5l11 11M21.5 10.5l-11 11' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.xpe-ico-question { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CradialGradient id='q' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23cfe6ff'/%3E%3Cstop offset='.5' stop-color='%233a83e8'/%3E%3Cstop offset='1' stop-color='%230f3c9e'/%3E%3C/radialGradient%3E%3C/defs%3E %3Ccircle cx='16' cy='16' r='14' fill='url(%23q)' stroke='%230b2c76'/%3E%3Ctext x='16' y='23' text-anchor='middle' font-family='Tahoma,Arial' font-weight='bold' font-size='19' fill='%23fff'%3E%3F%3C/text%3E%3C/svg%3E"); }
.xpe-ico-floppy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='3' y='3' width='26' height='26' rx='2' fill='%232c5bc4' stroke='%23122f72'/%3E%3Crect x='9' y='3' width='14' height='9' fill='%23c9ced6' stroke='%235a6270'/%3E%3Crect x='17' y='5' width='3.5' height='5.5' fill='%233a4250'/%3E%3Crect x='7' y='16' width='18' height='12' fill='%23fff' stroke='%239aa4b4'/%3E%3Cpath d='M9 20h14M9 23h10' stroke='%239aa4b4'/%3E%3C/svg%3E"); }
.xpe-msg-text { padding-top: 2px; white-space: pre-line; max-width: 360px; }
.xpe-msg-text b { font-weight: bold; }
.xpe-buttons { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.xpe-buttons.xpe-right { justify-content: flex-end; }
.xpe-btn {
    min-width: 75px;
    height: 23px;
    padding: 0 10px;
    border: 1px solid #003c74;
    border-radius: 3px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f2ec 40%, #e6e3d6 85%, #d6d0c0 100%);
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.06);
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    cursor: pointer;
}
.xpe-btn:hover { box-shadow: inset 0 0 0 2px #f8b636, inset 0 -2px 0 #e5a01a; }
.xpe-btn.xpe-default, .xpe-btn:focus-visible { box-shadow: inset 0 0 0 2px #98b8ea, inset 0 -2px 0 #6c92d8; outline: none; }
.xpe-btn.xpe-default:hover { box-shadow: inset 0 0 0 2px #f8b636, inset 0 -2px 0 #e5a01a; }
.xpe-btn:active { background: linear-gradient(180deg, #d6d0c0 0%, #e6e3d6 30%, #f3f2ec 100%); }
.xpe-btn[disabled] { color: #aca899; border-color: #c9c7ba; cursor: default; box-shadow: none; }

/* Прогресс-бар XP: зелёные «кирпичики» */
.xpe-progress {
    height: 16px;
    padding: 1px;
    border: 1px solid #686868;
    border-radius: 3px !important;
    background: #ffffff;
    box-shadow: inset 1px 1px 0 #d0d0d0;
}
.xpe-progress-fill {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(90deg, transparent 0 1px, #33cc33 1px 8px, transparent 8px 10px);
    background-color: transparent;
    -webkit-mask: linear-gradient(180deg, rgba(0,0,0,.75), #000 40%, rgba(0,0,0,.8));
    transition: width 0.2s linear;
}
.xpe-field-label { display: block; margin: 8px 0 3px; }
.xpe-input {
    width: 100%;
    height: 21px;
    padding: 1px 4px;
    border: 1px solid #7f9db9;
    background: #fff;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    outline: none;
}
.xpe-input:focus { border-color: #316ac5; }
.xpe-group {
    position: relative;
    margin-top: 12px;
    padding: 12px 8px 8px;
    border: 1px solid #d0d0bf;
    border-radius: 4px !important;
}
.xpe-group > legend, .xpe-group > .xpe-group-title {
    position: absolute;
    top: -7px;
    left: 7px;
    padding: 0 3px;
    background: #ece9d8;
    color: #0046d5;
}
.xpe-check { display: flex; align-items: center; gap: 6px; margin: 4px 0; cursor: pointer; }
.xpe-check input { margin: 0; }
.xpe-tabs { display: flex; gap: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.xpe-tab {
    padding: 3px 9px;
    border: 1px solid #919b9c;
    border-bottom: 0;
    border-radius: 3px 3px 0 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0ea 100%);
    margin-right: -1px;
    cursor: default;
}
.xpe-tab.xpe-active { background: #fcfcfe; border-top: 2px solid #ffc83c; padding-bottom: 4px; margin-top: -2px; }
.xpe-tabpage { border: 1px solid #919b9c; background: #fcfcfe; padding: 10px; }

/* Справка */
.xpe-help { display: flex; gap: 8px; height: 100%; }
.xpe-help-list {
    width: 190px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #7f9db9;
    overflow: auto;
}
.xpe-help-list div { padding: 4px 8px; cursor: pointer; color: #0046d5; }
.xpe-help-list div:hover { text-decoration: underline; }
.xpe-help-list div.xpe-active { background: #316ac5; color: #fff; text-decoration: none; }
.xpe-help-page {
    flex: 1;
    background: #fff;
    border: 1px solid #7f9db9;
    padding: 10px 12px;
    overflow: auto;
    line-height: 1.5;
}
.xpe-help-page h3 { font-size: 13px; color: #0e44b8; margin-bottom: 8px; }
.xpe-help-page p { margin-bottom: 8px; }

/* Блокнот */
.xpe-notepad {
    width: 100%;
    height: 100%;
    min-height: 300px;
    resize: none;
    border: 0;
    border-top: 1px solid #c5c2b2;
    outline: none;
    padding: 2px 4px;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre;
    background: #fff;
    color: #000;
}

/* Дефрагментация */
.xpe-defrag-map {
    display: grid;
    grid-template-columns: repeat(60, 1fr);
    gap: 0;
    height: 90px;
    padding: 2px;
    border: 1px solid;
    border-color: #a5a191 #ffffff #ffffff #a5a191;
    background: #ffffff;
}
.xpe-defrag-map i { display: block; border-right: 1px solid rgba(255,255,255,.7); }
.xpe-defrag-map i.f { background: #e2231a; }
.xpe-defrag-map i.c { background: #1a4fe0; }
.xpe-defrag-map i.u { background: #2fa832; }
.xpe-defrag-map i.m { background: #f0d200; }
.xpe-defrag-legend { display: flex; gap: 14px; margin: 6px 0 10px; color: #333; }
.xpe-defrag-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; border: 1px solid #777; }
.xpe-defrag-legend .lf::before { background: #e2231a; }
.xpe-defrag-legend .lc::before { background: #1a4fe0; }
.xpe-defrag-legend .lu::before { background: #2fa832; }
.xpe-defrag-legend .le::before { background: #fff; }

/* Синий экран */
.xpe-bsod {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #0000aa;
    color: #ffffff;
    padding: 40px 6vw;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.55;
    cursor: none;
    overflow: hidden;
    white-space: pre-wrap;
}
.xpe-bsod .xpe-cursor { animation: xpe-blink 1s steps(1) infinite; }
@keyframes xpe-blink { 50% { opacity: 0; } }

/* «Не отвечает» */
.xpe-frozen-veil {
    position: absolute;
    inset: 0;
    z-index: 99990;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: grayscale(0.4);
    cursor: wait;
    animation: xpe-fade 0.8s ease-out;
}
@keyframes xpe-fade { from { opacity: 0; } to { opacity: 1; } }

/* Панель задач, когда окно свёрнуто («Босс идёт») */
body.xpe-on .ie6-window-wrapper.taskbar-minimized { display: none !important; }
.xpe-taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100400;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 0 4px;
    background: linear-gradient(180deg, #3168d5 0%, #4993e6 3%, #2157d7 10%, #2663e0 50%, #1941a5 95%, #1941a5 100%);
    border-top: 1px solid #0c3daa;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    color: #fff;
    user-select: none;
}
.xpe-task {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 180px;
    height: 24px;
    padding: 0 8px;
    border-radius: 3px !important;
    background: linear-gradient(180deg, #3c81f3 0%, #3277eb 50%, #2a6be0 100%);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,.45), inset -1px -1px 1px rgba(0,0,0,.35);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.xpe-task:hover { filter: brightness(1.12); }
.xpe-task i { width: 16px; height: 16px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cg fill='%23e4f5ff' fill-opacity='.92' stroke='%23ffffff' stroke-width='.5'%3E %3Cellipse cx='4.4' cy='5' rx='3.9' ry='1.5' transform='rotate(-14 4.4 5)'/%3E %3Cellipse cx='11.6' cy='5' rx='3.9' ry='1.5' transform='rotate(14 11.6 5)'/%3E %3Cellipse cx='4.8' cy='7.9' rx='3.4' ry='1.3' transform='rotate(16 4.8 7.9)'/%3E %3Cellipse cx='11.2' cy='7.9' rx='3.4' ry='1.3' transform='rotate(-16 11.2 7.9)'/%3E%3C/g%3E %3Crect x='7.25' y='5' width='1.5' height='10' rx='.75' fill='%2327c2d8' stroke='%230b5b78' stroke-width='.5'/%3E %3Ccircle cx='8' cy='3.6' r='1.9' fill='%233dd06e' stroke='%230d5c2a' stroke-width='.5'/%3E%3C/svg%3E") no-repeat center / 16px; }
.xpe-tray {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: linear-gradient(180deg, #0c59b9 0%, #139ee9 3%, #18b5f2 8%, #139beb 20%, #1290e8 50%, #0d8dea 85%, #095bc9 100%);
    border-left: 1px solid #092e8b;
    box-shadow: inset 1px 0 1px #18bbff;
}

/* Окно игры (xp_game.js). Размер холста задаёт скрипт: 320×176 × масштаб. */
.xpe-game-body { padding: 4px !important; overflow: hidden !important; }
.xpg-wrap { position: relative; line-height: 0; }
.xpe-game-canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background: #6fb2f2;
    border: 1px solid;
    border-color: #a5a191 #ffffff #ffffff #a5a191;
    outline: none;
}
.xpg-overlay {
    position: absolute;
    inset: 1px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 18, 70, 0.55);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}
.xpg-overlay.xpg-clear { background: rgba(0, 40, 10, 0.35); }
.xpg-box {
    min-width: 300px;
    max-width: 88%;
    padding: 14px 20px 12px;
    background: rgba(236, 233, 216, 0.96);
    border: 2px solid #0831d9;
    border-radius: 6px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    text-align: center;
    color: #000;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}
.xpg-logo {
    font: bold 26px "Trebuchet MS", Tahoma, sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0 #0f1089, -1px -1px 0 #0f1089, 1px -1px 0 #0f1089, -1px 1px 0 #0f1089;
    margin-bottom: 4px;
}
.xpg-title { font: bold 18px "Trebuchet MS", Tahoma, sans-serif; color: #0e44b8; margin-bottom: 8px; }
.xpg-sub { color: #444; margin: 4px 0 8px; }
.xpg-lines { display: inline-block; text-align: left; margin: 4px 0 6px; }
.xpg-line { display: flex; justify-content: space-between; gap: 18px; padding: 1px 0; }
.xpg-line span { color: #333; }
.xpg-line b { color: #0e44b8; font-weight: bold; }
.xpg-hint { margin-top: 8px; font-weight: bold; color: #1c6b32; animation: xpe-blink 1.1s steps(1) infinite; }
.xpg-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 4px 14px;
    background: rgba(8, 49, 217, 0.85);
    border: 1px solid #ffffff;
    border-radius: 4px !important;
    color: #ffffff;
    font: bold 13px "Trebuchet MS", Tahoma, sans-serif;
    line-height: 1.4;
    text-shadow: 1px 1px 0 #0f1089;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .xpe-menu, .xpe-win, .xpe-frozen-veil { animation: none !important; }
}

/* ==========================================================================
   ВСЕ УСТРОЙСТВА (04.10.2026): статус-иконки, окна на весь экран, пальцы
   ========================================================================== */
.xpe-win-status .xpi { width: 14px; height: 14px; vertical-align: -2px; }
.xpe-st-text { font-weight: normal; }
.xpe-win.xpe-full {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0 !important;
    animation: none;
}
.xpe-win.xpe-full .xpe-win-title { border-radius: 0 !important; }
html.xpe-noscroll, html.xpe-noscroll body { overflow: hidden !important; overscroll-behavior: none; }

/* Окна на узком экране: содержимое тянется по ширине окна */
@media (max-width: 600px) {
    .xpe-win-body > div { width: auto !important; max-width: 100%; }
    .xpe-msg-text { width: auto !important; max-width: none; }
    .xpe-help { flex-direction: column; height: auto !important; }
    .xpe-help-list { width: auto; max-height: 150px; }
    .xpe-help-page { min-height: 180px; }
    .xpe-defrag-legend { flex-wrap: wrap; gap: 4px 12px; }
    .xpe-buttons { flex-wrap: wrap; }
    .xpe-bsod { font-size: 12px; padding: 22px 16px; line-height: 1.5; }
}

/* Пальцем по меню и кнопкам — крупнее (телефоны и планшеты) */
@media (pointer: coarse) {
    .xpe-menu { min-width: 220px; }
    .xpe-menu-item { padding: 9px 22px 9px 32px; font-size: 13px; }
    .xpe-menu-item .xpe-mi-icon { left: 8px; }
    .xpe-menu-item .xpe-mi-check { left: 11px; }
    .xpe-btn { height: 34px; min-width: 88px; font-size: 13px; }
    .xpe-win-title { height: 34px; }
    .xpe-win-btn { width: 28px; height: 28px; background-size: 100% 100%; }
    .xpe-win-menubar span { padding: 6px 12px; font-size: 13px; }
    .xpe-input { height: 34px; font-size: 16px; }
    .xpe-notepad { font-size: 13px; }
}

/* ---------------- «Выход из Стрекозы» / «Выключить Стрекозу» ------------- */
.xpe-lo-dim {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 10, 40, 0.38);
    -webkit-backdrop-filter: grayscale(1) brightness(0.92);
    backdrop-filter: grayscale(1) brightness(0.92);
    animation: xpe-fade 0.45s ease-out;
}
.xpe-lo {
    width: 360px;
    max-width: 100%;
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
    font-family: Tahoma, sans-serif;
    animation: xpe-win-in 0.18s ease-out;
}
.xpe-lo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 14px;
    background: linear-gradient(180deg, #00309c 0%, #0042c6 100%);
    color: #fff;
    font: bold 17px "Trebuchet MS", Tahoma, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #9db7f0;
}
.xpe-lo-logo {
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cg fill='%23e4f5ff' fill-opacity='.92' stroke='%23ffffff' stroke-width='.5'%3E %3Cellipse cx='4.4' cy='5' rx='3.9' ry='1.5' transform='rotate(-14 4.4 5)'/%3E %3Cellipse cx='11.6' cy='5' rx='3.9' ry='1.5' transform='rotate(14 11.6 5)'/%3E %3Cellipse cx='4.8' cy='7.9' rx='3.4' ry='1.3' transform='rotate(16 4.8 7.9)'/%3E %3Cellipse cx='11.2' cy='7.9' rx='3.4' ry='1.3' transform='rotate(-16 11.2 7.9)'/%3E%3C/g%3E %3Crect x='7.25' y='5' width='1.5' height='10' rx='.75' fill='%2327c2d8' stroke='%230b5b78' stroke-width='.5'/%3E %3Ccircle cx='8' cy='3.6' r='1.9' fill='%233dd06e' stroke='%230d5c2a' stroke-width='.5'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 40, 0.5));
}
.xpe-lo-mid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 14px;
    background: linear-gradient(180deg, #5a7edc 0%, #6d90e6 45%, #4f74d6 100%);
}
.xpe-lo-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 96px;
    padding: 8px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px !important;
    color: #fff;
    font: 12px Tahoma, sans-serif;
    text-shadow: 1px 1px 1px rgba(0, 0, 40, 0.6);
    cursor: pointer;
}
.xpe-lo-btn:hover, .xpe-lo-btn:focus-visible { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); outline: none; }
.xpe-lo-btn:active { background: rgba(0, 0, 60, 0.15); }
.xpe-lo-btn .xpi { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(0, 0, 40, 0.35)); }
.xpe-lo-bot {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    background: linear-gradient(180deg, #0042c6 0%, #00309c 100%);
    border-top: 2px solid #9db7f0;
}

/* Чёрные экраны: «можно отключить питание» и ждущий режим */
.xpe-black {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000;
    cursor: none;
    animation: xpe-fade 0.7s ease-out;
    transition: opacity 0.45s;
}
.xpe-black-out { opacity: 0; }
.xpe-black-text { white-space: pre-line; text-align: center; }
.xpe-safe .xpe-black-text { color: #f0a020; font: bold clamp(18px, 4.6vw, 34px) "Trebuchet MS", Tahoma, sans-serif; line-height: 1.45; }
.xpe-standby .xpe-black-text { color: #6a7a9a; font: 13px Tahoma, sans-serif; line-height: 1.6; animation: xpe-breathe 3.2s ease-in-out infinite; }
@keyframes xpe-breathe { 50% { opacity: 0.3; } }

/* «Все программы»: значки как в папке XP */
.xpe-iconview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid #7f9db9;
    max-height: min(62vh, 430px);
    overflow: auto;
}
.xpe-iv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px !important;
    font: 11px Tahoma, sans-serif;
    color: #000;
    text-align: center;
    cursor: pointer;
}
.xpe-iv-item:hover, .xpe-iv-item:focus-visible { background: #e8f0fb; border-color: #a8c4ec; outline: none; }
.xpe-iv-item:active span { background: #316ac5; color: #fff; }
.xpe-iv-item span { padding: 1px 3px; line-height: 1.25; }

/* Ссылка «Выйти» в шапке */
.logout-link { display: inline-flex; align-items: center; gap: 4px; }
.logout-link .xpi { width: 16px; height: 16px; }

/* «Пуск» и его подвал есть только в мобильной шторке */
.xpe-allprog, .xpe-start-footer { display: none; }

/* ==========================================================================
   ТЕЛЕФОН (≤ 768px): шапка-заголовок Luna с кнопкой «пуск», шторка = «Пуск»
   Высота шапки не меняется (40px) — под неё рассчитан мобильный чат.
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header {
        background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%) !important;
        border: 0 !important;
        border-bottom: 1px solid #002fa8 !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    .header-content { padding: 0 8px 0 0 !important; }
    .header-left-side { gap: 9px !important; min-width: 0; }
    #mobile-hamburger-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        height: 40px;
        margin: 0;
        padding: 0 17px 0 9px;
        border: 0;
        border-radius: 0 15px 15px 0 !important;
        background: linear-gradient(180deg, #6fbf63 0%, #4fa646 10%, #3f9a36 45%, #34882c 80%, #2c7a25 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset -2px -1px 3px rgba(0, 0, 0, 0.28), 2px 0 4px rgba(0, 0, 30, 0.4);
        color: #fff;
        font-size: 0 !important;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    #mobile-hamburger-btn::before {
        content: "";
        width: 22px;
        height: 22px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E %3Cg fill='%23e4f5ff' fill-opacity='.92' stroke='%23ffffff' stroke-width='.5'%3E %3Cellipse cx='4.4' cy='5' rx='3.9' ry='1.5' transform='rotate(-14 4.4 5)'/%3E %3Cellipse cx='11.6' cy='5' rx='3.9' ry='1.5' transform='rotate(14 11.6 5)'/%3E %3Cellipse cx='4.8' cy='7.9' rx='3.4' ry='1.3' transform='rotate(16 4.8 7.9)'/%3E %3Cellipse cx='11.2' cy='7.9' rx='3.4' ry='1.3' transform='rotate(-16 11.2 7.9)'/%3E%3C/g%3E %3Crect x='7.25' y='5' width='1.5' height='10' rx='.75' fill='%2327c2d8' stroke='%230b5b78' stroke-width='.5'/%3E %3Ccircle cx='8' cy='3.6' r='1.9' fill='%233dd06e' stroke='%230d5c2a' stroke-width='.5'/%3E%3C/svg%3E") no-repeat center / contain;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.45));
    }
    #mobile-hamburger-btn::after {
        content: "пуск";
        font: italic bold 18px "Trebuchet MS", Tahoma, sans-serif;
        letter-spacing: 0.3px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55);
    }
    #mobile-hamburger-btn:active { filter: brightness(0.9); box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.45); }
    .header-logo {
        font: bold 17px "Trebuchet MS", Tahoma, sans-serif !important;
        letter-spacing: 0 !important;
        text-shadow: 1px 1px 0 #0f1089 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .header-links { gap: 10px !important; }
    .logout-link {
        padding: 4px 8px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 3px !important;
        background: rgba(255, 255, 255, 0.12);
        font-size: 12px !important;
    }
    .logout-link:active { background: rgba(0, 0, 40, 0.2); }
    /* Играет музыка — логотип уступает место плееру */
    .header-content:has(#global-player-bar[style*="flex"]) .header-logo { display: none; }

    /* Полоса сезона — те же «вдавленные» ячейки, что и на ПК */
    .season-online, .season-radio-btn {
        border: 1px solid !important;
        border-color: #a5a191 #ffffff #ffffff #a5a191 !important;
        box-shadow: inset 1px 1px 0 #d8d4c4;
    }

    /* ----- Шторка меню = меню «Пуск» ----- */
    .left-col {
        background: #ffffff !important;
        border-right: 0 !important;
        border-radius: 0 8px 8px 0 !important;
        overflow: hidden !important;
        box-shadow: 0 0 0 1px #0831d9, 4px 0 18px rgba(0, 0, 0, 0.5) !important;
    }
    .drawer-profile-header {
        position: relative;
        flex-shrink: 0;
        padding: 14px 14px 17px !important;
        background: linear-gradient(180deg, #1868ce 0%, #0e60d8 12%, #0f5ed9 60%, #0a52c6 100%) !important;
        border-bottom: 0 !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    .drawer-profile-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: linear-gradient(90deg, rgba(247, 164, 56, 0) 0%, #f7a438 28%, #fcd18c 50%, #f7a438 72%, rgba(247, 164, 56, 0) 100%);
    }
    .drawer-avatar {
        border: 2px solid #ffffff !important;
        border-radius: 5px !important;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 30, 0.6) !important;
    }
    .drawer-username { font: bold 16px "Trebuchet MS", Tahoma, sans-serif !important; text-shadow: 1px 1px 1px rgba(0, 0, 40, 0.6) !important; }
    .drawer-status { color: #c9f7b4 !important; }
    .side-menu { background: #ffffff !important; padding: 6px 0 10px !important; }
    .side-menu li { border-bottom: 0 !important; }
    .side-menu li a {
        padding: 7px 14px !important;
        gap: 11px !important;
        font: 13px Tahoma, sans-serif !important;
        background: transparent !important;
        -webkit-tap-highlight-color: transparent;
    }
    .side-menu li a:hover, .side-menu li a:active { background: #316ac5 !important; color: #ffffff !important; }
    .side-menu li a .menu-icon.xpi { width: 28px !important; height: 28px !important; margin: 0 !important; font-size: 0 !important; }
    .side-menu li[style] { border-top: 1px solid #e3e1d7 !important; margin-top: 6px !important; padding-top: 6px !important; }
    .side-menu li.xpe-allprog {
        display: block;
        position: sticky;
        bottom: -10px;
        margin-top: auto !important;
        padding: 4px 0 6px;
        border-top: 1px solid #e3e1d7 !important;
        background: #ffffff;
        box-shadow: 0 -6px 8px -6px rgba(0, 0, 0, 0.12);
    }
    .side-menu li.xpe-allprog a { font-weight: bold !important; }
    .xpe-allprog-arrow {
        margin-left: auto;
        width: 18px;
        height: 18px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='28%25' r='80%25'%3E%3Cstop offset='0' stop-color='%23c9f7b4'/%3E%3Cstop offset='.42' stop-color='%2355c435'/%3E%3Cstop offset='1' stop-color='%231b7410'/%3E%3C/radialGradient%3E%3C/defs%3E %3Crect x='1' y='1' width='14' height='14' rx='2.5' fill='url(%23g)' stroke='%2317620d'/%3E %3Cpath d='M4.5 6.6h3.6V4.2L12 8l-3.9 3.8V9.4H4.5z' fill='%23fff' stroke='%231c6b12' stroke-width='.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    }
    .xpe-start-footer {
        display: flex;
        flex-shrink: 0;
        justify-content: flex-end;
        gap: 6px;
        padding: 7px 10px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, #4282d6 0%, #3b7ad6 8%, #2c69cf 50%, #1f5ac0 100%);
        border-top: 1px solid #6a9ae4;
    }
    .xpe-start-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 3px !important;
        color: #ffffff;
        font: 12px Tahoma, sans-serif;
        text-shadow: 1px 1px 0 rgba(0, 0, 40, 0.5);
        -webkit-tap-highlight-color: transparent;
    }
    .xpe-start-btn:active { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.45); }
}
@media screen and (max-width: 400px) {
    .logout-link .logout-text { display: none; }
    .logout-link { padding: 4px 6px; }
    .logout-link .xpi { width: 18px; height: 18px; }
}

/* ==========================================================================
   ИГРА НА СЕНСОРНОМ ЭКРАНЕ: крестовина, прыжок, бег, пауза
   ========================================================================== */
.xpg-touch .xpe-game-body { display: flex; flex-direction: column; padding: 4px !important; }
.xpg-body { display: flex; flex-direction: column; align-items: center; flex: 1; min-height: 0; height: 100%; }
.xpg-pad {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 8px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.xpg-pad button { -webkit-tap-highlight-color: transparent; touch-action: none; cursor: pointer; padding: 0; }
.xpg-dpad {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 140px;
    height: 74px;
    border: 1px solid #4a6290;
    border-radius: 37px !important;
    background: linear-gradient(180deg, #eef3fc 0%, #c6d4ee 55%, #a9bde2 100%);
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(0, 0, 40, 0.35);
    touch-action: none;
}
.xpg-dpad::after { content: ""; position: absolute; left: 50%; top: 16px; bottom: 16px; width: 1px; background: #8aa0c8; }
.xpg-dl, .xpg-dr { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 37px !important; }
.xpg-dl::before, .xpg-dr::before { content: ""; border-top: 12px solid transparent; border-bottom: 12px solid transparent; filter: drop-shadow(0 1px 0 #ffffff); }
.xpg-dl::before { border-right: 17px solid #1d4fc0; }
.xpg-dr::before { border-left: 17px solid #1d4fc0; }
.xpg-dpad.xpg-on-l .xpg-dl, .xpg-dpad.xpg-on-r .xpg-dr { background: rgba(29, 79, 192, 0.2); }
.xpg-mid { display: flex; flex-direction: column; align-items: center; }
.xpg-pause {
    position: relative;
    width: 46px;
    height: 34px;
    border: 1px solid #003c74;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f2ec 40%, #e2dfd0 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.xpg-pause::before, .xpg-pause::after { content: ""; position: absolute; top: 9px; width: 5px; height: 14px; background: #1d4fc0; border-radius: 1px !important; }
.xpg-pause::before { left: 15px; }
.xpg-pause::after { right: 15px; }
.xpg-ab { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.xpg-b {
    width: 50px;
    height: 50px;
    border: 1px solid #8a4a00;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 30%, #ffe2a6 0%, #f59a1e 55%, #c86a00 100%);
    color: #ffffff;
    font: bold 24px Tahoma, sans-serif;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.xpg-b.xpg-on { box-shadow: 0 0 0 3px #ffd34a, inset 0 2px 5px rgba(0, 0, 0, 0.35); }
.xpg-a {
    position: relative;
    width: 78px;
    height: 78px;
    border: 1px solid #17620d;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 30%, #d2f7b8 0%, #55c435 50%, #1b7410 100%);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.05s;
}
.xpg-a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -62%);
    border-bottom: 21px solid #ffffff;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.xpg-a.xpg-on { transform: scale(0.94); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 3px 7px rgba(0, 0, 0, 0.35); }
/* Альбомная ориентация: кнопки поверх поля, по краям */
.xpg-land .xpg-body { position: relative; justify-content: center; }
.xpg-land .xpg-pad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    flex: none;
    padding: 0 8px;
    pointer-events: none;
}
.xpg-land .xpg-pad > * { pointer-events: auto; opacity: 0.8; }
.xpg-land .xpg-mid { position: absolute; left: 10px; bottom: 92px; }
.xpg-land .xpg-dpad { width: 124px; }
.xpg-pad .xpg-mid { margin-bottom: 20px; }
.xpg-land .xpg-pad .xpg-mid { margin-bottom: 0; }
/* Экраны-подсказки на сенсорных экранах — на всю игровую область (поле + кнопки) */
.xpg-touch .xpg-body { position: relative; }
.xpg-touch .xpg-wrap { position: static; }
.xpg-touch .xpg-overlay { inset: 0; z-index: 2; }
.xpg-touch .xpg-banner { z-index: 1; }
.xpg-touch .xpg-box { font-size: 13px; max-width: 94%; }
.xpg-touch .xpg-line { gap: 12px; }
@media (max-width: 420px) {
    .xpg-touch .xpg-logo { font-size: 22px; }
}