img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Game Dialog class */
.game-dialog__overlay {
    position: fixed;
    inset: 0;
    /* Фон - зимнее небо с лёгкими снежинками */
    background:
        radial-gradient(circle at 20% 30%, rgba(30, 60, 120, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(50, 100, 180, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 25, 50, 0.9) 0%, rgba(20, 40, 80, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    /* Эффект падающего снега на фоне */
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    backdrop-filter: blur(3px);
}

.game-dialog {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: clamp(300px, 50%, 640px);
    border-radius: 12px;
    padding: 12px;
    font-family: sans-serif;
}

.game-dialog__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 100%;
    scroll-behavior: smooth;
}

.game-dialog__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;

    /* Фон - зимнее ночное небо с лёгким синим оттенком */
    background: linear-gradient(135deg,
        rgba(10, 25, 47, 0.9) 0%,
        rgba(22, 55, 105, 0.85) 50%,
        rgba(14, 35, 70, 0.9) 100%);

    /* Рамка - лёд/иней */
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-left: 4px solid rgba(173, 216, 230, 0.3);
    border-radius: 12px;

    /* Текст - холодный белый с голубым оттенком */
    color: #e6f7ff;

    /* Тень - как будто на снегу */
    box-shadow:
        0 4px 15px rgba(0, 30, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Для анимации */
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.5s ease-out forwards;
}

/* Анимация появления справа - как прилетающий снежный ком */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Эффект инея по краям */
.game-dialog__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 230, 255, 0.4) 50%,
        transparent 100%);
}

/* Снежинки на фоне (опционально) */
.game-dialog__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* Цвета для разных говорящих */
.game-dialog__item[data-speaker="dedmoroz"] {
    border-left: 4px solid #ff6b6b; /* Красный акцент для Деда Мороза */
    background: linear-gradient(135deg,
        rgba(47, 10, 10, 0.9) 0%,
        rgba(105, 22, 22, 0.85) 50%,
        rgba(70, 14, 14, 0.9) 100%);
}

.game-dialog__item[data-speaker="snowflake"] {
    border-left: 4px solid #4dc9ff; /* Голубой акцент для снежинки */
    background: linear-gradient(135deg,
        rgba(10, 47, 47, 0.9) 0%,
        rgba(22, 105, 105, 0.85) 50%,
        rgba(14, 70, 70, 0.9) 100%);
}

.game-dialog__item[data-speaker="player"] {
    border-left: 4px solid #6bffb8; /* Зелёный акцент для игрока */
    background: linear-gradient(135deg,
        rgba(10, 47, 25, 0.9) 0%,
        rgba(22, 105, 55, 0.85) 50%,
        rgba(14, 70, 35, 0.9) 100%);
}

/* Стили для текста */
.game-dialog__item .speaker-name {
    color: #88d3ff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-dialog__item .dialog-text {
    color: #f0f8ff;
    text-shadow: 0 1px 1px rgba(0, 10, 20, 0.5);
    line-height: 1.5;
}

/* Эффект при наведении - плавное смещение */
.game-dialog__item:hover {
    border-color: rgba(173, 216, 230, 0.5);
    box-shadow:
        0 6px 20px rgba(0, 40, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    transition: all 0.3s ease;
}

/* Задержка для последовательного появления элементов */
.game-dialog__item:nth-child(1) { animation-delay: 0.1s; }
.game-dialog__item:nth-child(2) { animation-delay: 0.2s; }
.game-dialog__item:nth-child(3) { animation-delay: 0.3s; }
.game-dialog__item:nth-child(4) { animation-delay: 0.4s; }
.game-dialog__item:nth-child(5) { animation-delay: 0.5s; }
.game-dialog__item:nth-child(6) { animation-delay: 0.6s; }
.game-dialog__item:nth-child(7) { animation-delay: 0.7s; }
.game-dialog__item:nth-child(8) { animation-delay: 0.8s; }

/* Альтернативная анимация - как мягкое появление из снежной бури */
@keyframes snowDriftIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* Если хотите более плавное, размытое появление, используйте вместо slideInFromRight: */
/* animation: snowDriftIn 0.6s ease-out forwards; */

.game-dialog__close {
    margin-top: 12px;
    padding: 12px 20px;
    text-align: center;

    /* Фон - градиент от тёмно-красного к бордовому */
    background: linear-gradient(135deg,
        rgba(120, 20, 20, 0.9) 0%,
        rgba(160, 40, 40, 0.85) 50%,
        rgba(100, 15, 15, 0.9) 100%);

    color: #ffdddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    user-select: none;
    letter-spacing: 0.5px;

    /* Рамка как у других элементов, но в красных тонах */
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-left: 4px solid rgba(255, 80, 80, 0.8);

    /* Тень */
    box-shadow:
        0 3px 10px rgba(100, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    /* Для плавных переходов */
    transition: all 0.25s ease;

    /* Позиционирование */
    position: relative;
}

/* Эффект свечения при наведении */
.game-dialog__close:hover {
    background: linear-gradient(135deg,
        rgba(140, 30, 30, 0.95) 0%,
        rgba(180, 50, 50, 0.9) 50%,
        rgba(120, 25, 25, 0.95) 100%);

    color: #ffffff;
    border-color: rgba(255, 120, 120, 0.6);
    transform: translateY(-2px);
    box-shadow:
        0 6px 15px rgba(120, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Эффект нажатия */
.game-dialog__close:active {
    transform: translateY(0);
    box-shadow:
        0 2px 5px rgba(80, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

/* Эффект снежинок/инея в красном свете (опционально) */
.game-dialog__close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 180, 180, 0.5) 50%,
        transparent 100%);
}

/* Эффект внутреннего свечения при фокусе (для доступности) */
.game-dialog__close:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 100, 100, 0.3),
        0 3px 10px rgba(100, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Анимация появления - как у других элементов, но справа */
.game-dialog__close {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 0.5s ease-out 0.8s forwards;
}

/* Текст с лёгкой текстурой снега */
.game-dialog__close span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* Более яркий вариант для акцента */
.game-dialog__close.highlight {
    background: linear-gradient(135deg,
        rgba(160, 30, 30, 0.95) 0%,
        rgba(200, 50, 50, 0.9) 50%,
        rgba(140, 25, 25, 0.95) 100%);
    border-left: 4px solid rgba(255, 100, 100, 0.9);
    color: #fff;
}

.game-dialog__portrait {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.game-dialog__text {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}


/* Shop */
.shop-popup__overlay {
    position: fixed;
    inset: 0;
    /* Фон - зимнее небо с лёгкими снежинками */
    background:
        radial-gradient(circle at 20% 30%, rgba(30, 60, 120, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(50, 100, 180, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 25, 50, 0.9) 0%, rgba(20, 40, 80, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;

    /* Эффект падающего снега на фоне */
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    backdrop-filter: blur(3px);
}

.shop-popup__overlay.visible {
    opacity: 1;
}

.shop-popup {
    width: 340px;
    /* Фон - ледяной кристалл */
    background: linear-gradient(145deg,
        rgba(40, 80, 140, 0.9) 0%,
        rgba(30, 60, 120, 0.85) 30%,
        rgba(20, 40, 90, 0.9) 70%,
        rgba(15, 30, 70, 0.95) 100%);
    border-radius: 16px;
    padding: 24px;
    color: #e6f7ff;
    text-align: center;
    font-family: 'Segoe UI', system-ui, sans-serif;

    /* Ледяная рамка */
    border: 2px solid rgba(173, 216, 230, 0.4);
    border-top: 2px solid rgba(200, 230, 255, 0.6);
    border-left: 2px solid rgba(200, 230, 255, 0.6);

    /* Тень как от снежного кома */
    box-shadow:
        0 10px 30px rgba(0, 30, 60, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(100, 180, 255, 0.2) inset;

    /* transform: scale(0.9) translateY(20px); */
    transform: scale(var(--scale-factor));

    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Эффект инея по краям */
    position: relative;
    overflow: hidden;
}

.shop-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent);
    z-index: 1;
}

.shop-popup::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%);
    animation: iceShimmer 4s linear infinite;
    z-index: 0;
}

@keyframes iceShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.shop-popup.visible {
    /* transform: scale(1) translateY(0); */
    opacity: 1;
}

.shop-popup__image {
    /* width: 100%; */
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border: 1px solid rgba(173, 216, 230, 0.2);

    /* Эффект ледяного стекла */
    backdrop-filter: blur(5px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(200, 230, 255, 0.1);

    /* Анимация лёгкого мерцания */
    animation: gentleGlow 3s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
    from {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            inset 0 0 20px rgba(200, 230, 255, 0.1);
    }
    to {
        box-shadow:
            0 4px 20px rgba(100, 180, 255, 0.3),
            inset 0 0 25px rgba(220, 240, 255, 0.15);
    }
}

.shop-popup__title {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 20, 40, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.shop-popup__title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 200, 255, 0.8),
        transparent);
}

.shop-popup__text {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
    color: #cce7ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shop-popup__price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #88ddff;
    text-shadow: 0 0 10px rgba(136, 221, 255, 0.5);

    /* Стиль как ледяной кристалл */
    padding: 12px 24px;
    background: rgba(30, 70, 120, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    display: inline-block;
    position: relative;
}

.shop-popup__price::before {
    content: '❄';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.shop-popup__price::after {
    content: '❄';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.shop-popup__buy,
.shop-popup__cancel {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.shop-popup__buy {
    /* Цвет как у северного сияния */
    background: linear-gradient(135deg,
        #4facfe 0%,
        #00f2fe 50%,
        #4facfe 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 4px 15px rgba(79, 172, 254, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.shop-popup__buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.shop-popup__buy:hover::before {
    left: 100%;
}

.shop-popup__buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(79, 172, 254, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.shop-popup__buy:active:not(:disabled) {
    transform: translateY(0);
}

.shop-popup__buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg,
        #666 0%,
        #888 50%,
        #666 100%);
    box-shadow: none;
}

.shop-popup__cancel {
    background: transparent;
    color: #a8d8ff;
    border: 2px solid rgba(168, 216, 255, 0.4);
}

.shop-popup__cancel:hover {
    background: rgba(168, 216, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Анимация появления снежинок */
@keyframes snowflakeFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Снежинки вокруг попапа */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    animation: snowflakeFall linear infinite;
}

/* Создаём несколько снежинок с разной скоростью */
.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 6s; animation-delay: 4s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 8s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 6s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 7s; animation-delay: 7s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 9s; animation-delay: 8s; }

/* Адаптивность */
@media (max-width: 480px) {
    .shop-popup {
        width: 90%;
        max-width: 320px;
        margin: 20px;
        padding: 20px;
    }

    /*.shop-popup__image {
        / * height: 150px; * /
    }*/

    .shop-popup__title {
        font-size: 20px;
    }

    .shop-popup__price {
        font-size: 20px;
    }
}



/* Params Window */
.params-window__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 14, 28, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: frost-appear 0.3s ease-out;

    /* Эффект падающего снега на фоне */
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    backdrop-filter: blur(3px);
}

@keyframes frost-appear {
    from {
        opacity: 0;
        background: rgba(0, 14, 28, 0);
    }
    to {
        opacity: 1;
        background: rgba(0, 14, 28, 0.85);
    }
}

.params-window {
    width: 440px;
    background: linear-gradient(145deg, #1a2b3c 0%, #0d1b2a 100%);
    border-radius: 16px;
    padding: 20px;
    color: #e6f7ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid rgba(64, 156, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 40, 80, 0.4),
        0 0 0 1px rgba(64, 156, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: window-slide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(var(--scale-factor));
}

@keyframes window-slide {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.params-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(64, 156, 255, 0.3) 20%,
        rgba(64, 156, 255, 0.6) 50%,
        rgba(64, 156, 255, 0.3) 80%,
        transparent 100%);
}

.params-window__header {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 12px;
}

.params-window__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #4fc3f7 20%,
        #29b6f6 50%,
        #4fc3f7 80%,
        transparent 100%);
    border-radius: 2px;
}

.params-window__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 400px;
    padding-right: 4px;
}

/* Стили для скроллбара */
.params-window__list::-webkit-scrollbar {
    width: 6px;
}

.params-window__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.params-window__list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4fc3f7, #29b6f6);
    border-radius: 3px;
}

.params-window__row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(64, 156, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.params-window__row:hover {
    background: rgba(64, 156, 255, 0.1);
    border-color: rgba(64, 156, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 40, 80, 0.2);
}

.params-window__row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4fc3f7, #29b6f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.params-window__row:hover::before {
    opacity: 1;
}

.params-window__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.params-window__row:hover .params-window__icon {
    transform: scale(1.1);
}

.params-window__name {
    font-size: 15px;
    font-weight: 500;
    color: #e3f2fd;
    letter-spacing: 0.3px;
}

.params-window__value {
    font-size: 15px;
    font-weight: 600;
    color: #4fc3f7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: rgba(41, 182, 246, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: all 0.3s ease;
}

.params-window__row:hover .params-window__value {
    background: rgba(41, 182, 246, 0.2);
    color: #80deea;
    border-color: rgba(79, 195, 247, 0.4);
}

.params-window__close {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(145deg, #2a4b6c, #1a3a5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.params-window__close:hover {
    background: linear-gradient(145deg, #3a5b7c, #2a4a6a);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(41, 182, 246, 0.3),
        0 0 0 1px rgba(79, 195, 247, 0.3);
}

.params-window__close:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(41, 182, 246, 0.2),
        0 0 0 1px rgba(79, 195, 247, 0.2);
}

.params-window__close::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.6s ease;
}

.params-window__close:hover::after {
    left: 100%;
}

/* Дополнительные снежинки для украшения */
.params-window__snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    opacity: 0;
    animation: snowfall 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

/* Добавьте эти снежинки через JavaScript */
.params-window__snowflake:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.params-window__snowflake:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 22s; }
.params-window__snowflake:nth-child(3) { left: 50%; animation-delay: 6s; animation-duration: 20s; }
.params-window__snowflake:nth-child(4) { left: 70%; animation-delay: 9s; animation-duration: 24s; }
.params-window__snowflake:nth-child(5) { left: 90%; animation-delay: 12s; animation-duration: 19s; }

/* Эффект морозного свечения на заголовке */
.params-window__header {
    background: linear-gradient(45deg, #bbdefb, #e3f2fd, #bbdefb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}



/* ThankYouWindow */
#thankyou-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: snowFall 20s linear infinite;
}

/* Эффект падающего снега */
@keyframes snowFall {
    0% { background-position: 0px 0px, 0px 0px; }
    100% { background-position: 500px 1000px, 300px 1000px; }
}

#thankyou-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 60px 20px, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    animation: snowFall 20s linear infinite;
}

#thankyou-window {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 32px 40px;
    max-width: 440px;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(173, 216, 230, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(173, 216, 230, 0.2);
    border: 1px solid rgba(176, 224, 230, 0.6);
    position: relative;
    overflow: hidden;
    animation: frostGlow 3s ease-in-out infinite alternate;
}

/* Эффект мерцания инея */
@keyframes frostGlow {
    0% { box-shadow:
        0 20px 50px rgba(173, 216, 230, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(173, 216, 230, 0.2); }
    100% { box-shadow:
        0 20px 50px rgba(173, 216, 230, 0.6),
        inset 0 0 0 2px rgba(255, 255, 255, 0.9),
        inset 0 0 25px rgba(173, 216, 230, 0.4); }
}

/* Снежинки по краям окна */
#thankyou-window::before {
    content: '❄️❄️❄️';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 20px;
    opacity: 0.7;
    animation: snowflakesRotate 4s linear infinite;
}

#thankyou-window::after {
    content: '❄️❄️❄️';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 20px;
    opacity: 0.7;
    animation: snowflakesRotate 4s linear infinite reverse;
}

@keyframes snowflakesRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#thankyou-btn {
    margin-top: 24px;
    background: linear-gradient(180deg, #4fc3f7 0%, #0288d1 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow:
        0 4px 15px rgba(2, 136, 209, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#thankyou-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(2, 136, 209, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, #29b6f6 0%, #0277bd 100%);
}

#thankyou-btn:active {
    transform: translateY(0);
}

/* Эффект блеска снега на кнопке */
#thankyou-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 20%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 80%
    );
    transform: rotate(30deg);
    transition: transform 0.8s;
}

#thankyou-btn:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Добавляем зимний заголовок */
#thankyou-window h2 {
    color: #01579b;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    font-size: 28px;
    background: linear-gradient(45deg, #0277bd, #4fc3f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#thankyou-window p {
    color: #546e7a;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}