:root {
    --wheel-font-size: 14px;
}

.wheel-arrow {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 30px solid black;
    z-index: 20;
}

#wheel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    aspect-ratio: 1;
    background-color: transparent;
    filter: drop-shadow(0px 15px 20px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wheel-container.ready {
    opacity: 1;
}

#wheel-container:hover {
    filter: drop-shadow(0px 20px 25px rgba(255, 105, 0, 0.25));
}

#wheel {
    width: 100%;
    height: 100%;
    display: block;
}

.wheel-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: auto;
    z-index: 5;
    pointer-events: none;
    margin-top: -20px;
}

#spin-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff6900;
    border: 2px solid white;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#spin-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#spin-button img {
    width: 50px;
    height: 50px;
}

#spin-button span {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-top: 13px;
    display: none;
}

.wheel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-message {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 20%;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.result-message button {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result-message button:hover {
    background-color: #45a049;
}

.inactive-sector {
    opacity: 0.5;
    filter: grayscale(100%);
}

#wheel-container[data-no-prizes="true"] #spin-button {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
}

#wheel-container[data-no-prizes="true"] #spin-button:hover {
    background-color: #999;
    transform: translate(-50%, -50%);
}

.wheel-spin-counter {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 15px auto;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.counter-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.counter-label {
    font-weight: bold;
    color: #333;
}

.counter-value {
    color: #ff6900;
    font-weight: bold;
}

.counter-progress {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.counter-progress-bar {
    height: 100%;
    background-color: #ff6900;
    transition: width 0.3s ease;
}

.wheel-instruction {
       text-align: center;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 90%;
    max-width: 600px;
}

body.wheel-page-active {
    /* Ð’ÐÐ–ÐÐž: Ð˜Ð·Ð¿Ð¾Ð»Ð·Ð²Ð° ÑÐµ ÐºÐ¾Ð»ÐµÐ´Ð½Ð¸ÑÑ‚ Ñ„Ð¾Ð½ */
    background-image: url('https://xiaomi-bulgaria.bg/wp-content/uploads/2025/12/christmas-back.png');
    
    /* ÐÐ›Ð¢Ð•Ð ÐÐÐ¢Ð˜Ð’Ð: ÐšÐ¾Ð»ÐµÐ´ÐµÐ½ Ð³Ñ€Ð°Ð´Ð¸ÐµÐ½Ñ‚ Ð²Ð¼ÐµÑÑ‚Ð¾ ÑÐ½Ð¸Ð¼ÐºÐ° */
    /* background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #1a472a 100%); */
    
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ÐšÐžÐ›Ð•Ð”ÐÐ˜ Ð”Ð•ÐšÐžÐ ÐÐ¦Ð˜Ð˜
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* ÐŸÐ°Ð´Ð°Ñ‰Ð¸ ÑÐ½ÐµÐ¶Ð¸Ð½ÐºÐ¸ - Ð¿Ð¾Ð´Ð¾Ð±Ñ€ÐµÐ½Ð¸ */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 1;
    color: #fff;
    font-size: 1.2em;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(150, 200, 255, 0.5);
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
    opacity: 0.85;
}

#wheel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    aspect-ratio: 1;
    background-color: transparent;
    filter: drop-shadow(0px 15px 20px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ Ð·Ð° ÐºÐ¾Ð»ÐµÐ´Ð½Ð¸Ñ‚Ðµ ÑƒÐºÑ€Ð°ÑÐ¸ Ð¾ÐºÐ¾Ð»Ð¾ ÐºÐ¾Ð»ÐµÐ»Ð¾Ñ‚Ð¾ */
.christmas-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    top: 0;
    left: 0;
}

/* ÐšÐ¾Ð»ÐµÐ´Ð½Ð¸ ÑÐ²ÐµÑ‚Ð»Ð¸Ð½ÐºÐ¸ Ð¾ÐºÐ¾Ð»Ð¾ ÐºÐ¾Ð»ÐµÐ»Ð¾Ñ‚Ð¾ - Ð¿Ð¾Ð´Ð¾Ð±Ñ€ÐµÐ½Ð¸ */
.christmas-light {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 
        0 0 20px currentColor, 
        0 0 35px currentColor,
        0 0 50px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Ð Ð°Ð·Ð»Ð¸Ñ‡Ð½Ð¸ Ñ†Ð²ÐµÑ‚Ð¾Ð²Ðµ Ð½Ð° ÑÐ²ÐµÑ‚Ð»Ð¸Ð½ÐºÐ¸Ñ‚Ðµ */
.christmas-light.red { 
    background: radial-gradient(circle at 30% 30%, #ff6666, #ff0000);
    color: #ff0000;
    animation: twinkle 1.4s infinite alternate ease-in-out;
}

.christmas-light.green { 
    background: radial-gradient(circle at 30% 30%, #66ff66, #00dd00);
    color: #00dd00;
    animation: twinkle 1.6s infinite alternate ease-in-out;
}

.christmas-light.blue { 
    background: radial-gradient(circle at 30% 30%, #6699ff, #4169E1);
    color: #4169E1;
    animation: twinkle 1.9s infinite alternate ease-in-out;
}

.christmas-light.yellow { 
    background: radial-gradient(circle at 30% 30%, #ffff99, #ffd700);
    color: #ffd700;
    animation: twinkle 2.1s infinite alternate ease-in-out;
}

.christmas-light.orange { 
    background: radial-gradient(circle at 30% 30%, #ffaa66, #ff6900);
    color: #ff6900;
    animation: twinkle 1.7s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% { 
        opacity: 0.5;
        transform: scale(0.9);
        box-shadow: 
            0 0 15px currentColor, 
            0 0 25px currentColor;
    }
    100% { 
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 
            0 0 25px currentColor, 
            0 0 40px currentColor,
            0 0 55px rgba(255, 255, 255, 0.4);
    }
}

/* ÐšÐ¾Ð»ÐµÐ´Ð½Ð° Ð·Ð²ÐµÐ·Ð´Ð° Ð½Ð°Ð´ ÐºÐ¾Ð»ÐµÐ»Ð¾Ñ‚Ð¾ - Ð¿Ð¾Ð´Ð¾Ð±Ñ€ÐµÐ½Ð° */
.christmas-star {
    position: absolute;
    top: -170px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 70px;
    color: #ffd700;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1))
            drop-shadow(0 0 45px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 65px rgba(255, 180, 0, 0.4));
    animation: starGlow 3s infinite alternate ease-in-out;
    z-index: 15;
    pointer-events: none;
}

@keyframes starGlow {
    0% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1))
                drop-shadow(0 0 45px rgba(255, 215, 0, 0.7));
        transform: translateX(-50%) scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, 1))
                drop-shadow(0 0 60px rgba(255, 215, 0, 0.9))
                drop-shadow(0 0 80px rgba(255, 180, 0, 0.6));
        transform: translateX(-50%) scale(1.08);
    }
}

/* ÐšÐ¾Ð»ÐµÐ´Ð½Ð¸ Ñ‚Ð¾Ð¿ÐºÐ¸ - ÐŸÐ Ð•ÐœÐÐ¥ÐÐÐ¢Ð˜ Ð·Ð° Ð¿Ð¾-Ñ‡Ð¸ÑÑ‚ Ð²Ð¸Ð´ */
/* ÐšÐ¾Ð¼ÐµÐ½Ñ‚Ð¸Ñ€Ð°Ð½Ð¾ Ð·Ð° Ð´Ð° ÑÐµ Ð¿Ñ€ÐµÐ¼Ð°Ñ…Ð½Ðµ Ð²Ð¸Ð·ÑƒÐ°Ð»Ð½Ð¸ÑÑ‚ ÑˆÑƒÐ¼ */
/*
.christmas-ornament {
    display: none;
}
*/

/* Ð‘Ð»ÑÑÑŠÐº Ð¸ Ð¸ÑÐºÑ€Ð¸ - ÐŸÐ Ð•ÐœÐÐ¥ÐÐÐ¢Ð˜ Ð·Ð° Ð¿Ð¾-Ñ‡Ð¸ÑÑ‚ Ð²Ð¸Ð´ */
/* ÐšÐ¾Ð¼ÐµÐ½Ñ‚Ð¸Ñ€Ð°Ð½Ð¾ Ð·Ð° Ð´Ð° ÑÐµ Ð½Ð°Ð¼Ð°Ð»Ð¸ Ð²Ð¸Ð·ÑƒÐ°Ð»Ð½Ð¸ÑÑ‚ ÑˆÑƒÐ¼ */
/*
.sparkle {
    display: none;
}
*/

/* ÐšÐ¾Ð»ÐµÐ´ÐµÐ½ Ð²ÐµÐ½ÐµÑ† ÐµÑ„ÐµÐºÑ‚ - ÐŸÐ Ð•ÐœÐÐ¥ÐÐÐ¢ Ð·Ð° Ð¿Ð¾-Ñ‡Ð¸ÑÑ‚ Ð²Ð¸Ð´ */
/* ÐŸÐ¾-Ð¼Ð°Ð»ÐºÐ¾ Ðµ Ð¿Ð¾Ð²ÐµÑ‡Ðµ - Ñ„Ð¾ÐºÑƒÑ Ð²ÑŠÑ€Ñ…Ñƒ ÐºÐ¾Ð»ÐµÐ»Ð¾Ñ‚Ð¾ */
#wheel-container::after {
    display: none;
}

/* ÐšÐ¾Ð»ÐµÐ´Ð½Ð¾ Ð¿Ð¾ÑÐ»Ð°Ð½Ð¸Ðµ - Ð¿Ð¾Ð´Ð¾Ð±Ñ€ÐµÐ½Ð¾ */
.christmas-message {
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    padding: 15px 30px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 10px;
    position: relative;
    z-index: 20;
}

/* Ð˜Ð½ÑÑ‚Ñ€ÑƒÐºÑ†Ð¸Ñ Ð·Ð° Ð·Ð°Ð²ÑŠÑ€Ñ‚Ð°Ð½Ðµ - ÐÐÐ” Ð·Ð²ÐµÐ·Ð´Ð°Ñ‚Ð° */
.christmas-instruction {
    text-align: center;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding: 12px 20px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.5) 20%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.5) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    max-width: 600px;
    width: 90%;
    line-height: 1.4;
}

/* ÐŸÑ€ÐµÐ¼Ð°Ñ…Ð²Ð°Ð¼Ðµ Ð°Ð½Ð¸Ð¼Ð°Ñ†Ð¸ÑÑ‚Ð° Ð·Ð° Ð¿Ð¾-ÐµÐ»ÐµÐ³Ð°Ð½Ñ‚ÐµÐ½ Ð²Ð¸Ð´ */

/* ÐœÐ¾Ð±Ð¸Ð»Ð½Ð¸ ÑƒÑÑ‚Ñ€Ð¾Ð¹ÑÑ‚Ð²Ð° */
@media (max-width: 768px) {
    :root {
        --wheel-font-size: 16px;
    }
    
    .result-message {
        background: white;
        padding: 30px;
        border-radius: 10px;
        text-align: center;
        max-width: 90%;
        margin: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
   
    #spin-button {
        width: 70px;
        height: 70px;
    }
    
    #spin-button span {
        color: white;
        font-size: 9px;
        font-weight: bold;
        letter-spacing: 0px;
        margin-top: -6px;
    }
    
    #spin-button img {
        width: 35px;
        height: 35px;
    }
    
    .wheel-instruction {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .christmas-instruction {
        font-size: 13px;
        padding: 10px 15px;
        margin-bottom: 15px;
        top: 170px;
    }
    
    .christmas-star {
        font-size: 50px;
        top: -120px;
    }
    
    .christmas-message {
        font-size: 22px;
        padding: 12px 20px;
        margin-bottom: 10px;
    }
    
    .christmas-light {
        width: 12px;
        height: 12px;
    }
    
    .snowflake {
        font-size: 1em;
    }
}