.new-year-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.new-year-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    background: transparent;
    color: #fff;
    overflow: hidden;
    z-index: 9998;
    pointer-events: none;
}

.new-year-container * {
    pointer-events: auto;
}

/* Кнопка открытия настроек */
.new-year-settings-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.new-year-settings-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(0, 0, 0, 0.7);
}

/* Панель настроек */
.new-year-settings-panel {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
    max-width: 300px;
}

.new-year-settings-panel.open {
    transform: translateX(0);
}

.new-year-settings-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
}

.new-year-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 0;
}

.new-year-setting-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

/* Переключатель */
.new-year-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.new-year-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.new-year-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 20px;
}

.new-year-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.new-year-switch input:checked + .new-year-slider {
    background-color: #ffd700;
}

.new-year-switch input:checked + .new-year-slider:before {
    transform: translateX(20px);
}

/* Контейнер для ползунка и значения */
.new-year-range-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 4px;
}

.new-year-range-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #ccc;
    min-width: 50px;
}

.new-year-range-value {
    min-width: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #ffd700;
    font-weight: bold;
}

/* Ползунки для настроек */
.new-year-range {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.new-year-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.new-year-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border: none;
}

.new-year-action-btn {
    width: 100%;
    padding: 6px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 0.75rem;
}

.new-year-action-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

/* Разделитель */
.new-year-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
    width: 100%;
}

/* Подсказка для новых пользователей */
.new-year-hint {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    background: rgba(255, 215, 0, 0.9);
    color: #0a2e38;
    padding: 10px;
    border-radius: 8px;
    max-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    border: 2px solid #ffd700;
}

.new-year-hint.show {
    transform: translateX(0);
}

.new-year-hint-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.new-year-hint-title {
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-year-hint-text {
    font-size: 0.75rem;
    line-height: 1.2;
}

.new-year-hint-arrow {
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffd700;
}

.new-year-hint-close {
    position: absolute;
    top: 3px;
    right: 5px;
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    color: #0a2e38;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.new-year-hint-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Снежинки с эффектом метели */
.new-year-snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1.5rem;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.7),
        0 0 3px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.6);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

/* Огоньки */
.new-year-light {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 10px 2px;
    animation: new-year-twinkle 1.5s infinite alternate;
}

@keyframes new-year-twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* Конфетти */
.new-year-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 10000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .new-year-settings-toggle {
        right: 10px;
        top: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .new-year-settings-panel {
        right: 10px;
        top: 70px;
        min-width: 300px;
        max-width: 300px;
        padding: 10px;
    }
    
    .new-year-hint {
        right: 10px;
        top: 65px;
        max-width: 160px;
    }
    
    .new-year-range-value {
        font-size: 0.65rem;
        min-width: 16px;
    }
    
    .new-year-setting-label {
        font-size: 0.7rem;
    }
    
    .new-year-range-label {
        font-size: 0.65rem;
        min-width: 55px;
    }
}