.surprise {
	margin-top: 40px;
	padding: 40px 0;
	width: 100%;
}
/* =========================================================
   ПАЛИТРА КОЛЕСА
   ========================================================= */
/*
:root {
    --wheel-color-0: #FF6B6B;
    --wheel-color-1: #4ECDC4;
    --wheel-color-2: #45B7D1;
    --wheel-color-3: #96CEB4;
    --wheel-color-4: #FFEAA7;
    --wheel-color-5: #DDA0DD;
    --wheel-color-6: #98D8C8;
    --wheel-color-7: #F7DC6F;
    --wheel-color-8: #BB8FCE;
    --wheel-color-9: #85C1E9;
    --wheel-color-10: #F8C471;
    --wheel-color-11: #82E0AA;
    --wheel-color-12: #F1948A;
    --wheel-color-13: #85C1E9;
    --wheel-color-14: #D7BDE2;
    --wheel-color-15: #F9E79F;
    --wheel-color-16: #A3E4D7;
    --wheel-color-17: #FADBD8;
    --wheel-color-18: #D5F5E3;
    --wheel-color-19: #FCF3CF;
}
*/
:root {
    --wheel-color-0: #fff;
    --wheel-color-1: #e2eafd;
    --wheel-color-2: #fff;
    --wheel-color-3: #e2eafd;
    --wheel-color-4: #fff;
    --wheel-color-5: #e2eafd;
    --wheel-color-6: #fff;
    --wheel-color-7: #e2eafd;
    --wheel-color-8: #fff;
    --wheel-color-9: #e2eafd;
    --wheel-color-10: #fff;
    --wheel-color-11: #e2eafd;
    --wheel-color-12: #F1948A;
    --wheel-color-13: #85C1E9;
    --wheel-color-14: #D7BDE2;
    --wheel-color-15: #F9E79F;
    --wheel-color-16: #A3E4D7;
    --wheel-color-17: #FADBD8;
    --wheel-color-18: #D5F5E3;
    --wheel-color-19: #FCF3CF;
}

.prize_btn.color-0 {background: var(--wheel-color-0);}
.prize_btn.color-1 {background: var(--wheel-color-1);}
.prize_btn.color-2 {background: var(--wheel-color-2);}
.prize_btn.color-3 {background: var(--wheel-color-3);}
.prize_btn.color-4 {background: var(--wheel-color-4);}
.prize_btn.color-5 {background: var(--wheel-color-5);}
.prize_btn.color-6 {background: var(--wheel-color-6);}
.prize_btn.color-7 {background: var(--wheel-color-7);}
.prize_btn.color-8 {background: var(--wheel-color-8);}
.prize_btn.color-9 {background: var(--wheel-color-9);}
.prize_btn.color-10 {background: var(--wheel-color-10);}
.prize_btn.color-11 {background: var(--wheel-color-11);}
.prize_btn.color-12 {background: var(--wheel-color-12);}
.prize_btn.color-13 {background: var(--wheel-color-13);}
.prize_btn.color-14 {background: var(--wheel-color-14);}
.prize_btn.color-15 {background: var(--wheel-color-15);}
.prize_btn.color-16 {background: var(--wheel-color-16);}
.prize_btn.color-17 {background: var(--wheel-color-17);}
.prize_btn.color-18 {background: var(--wheel-color-18);}
.prize_btn.color-19 {background: var(--wheel-color-19);}

/* =========================================================
   КОЛЕСО
   ========================================================= */
.wheel_container {
    margin: 0 auto;
    flex: 0 0 auto;
    align-self: flex-start;
    position: relative;
    aspect-ratio: 1 / 1;
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff4757;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.take_the_prize {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 18px;
    color: #4f46e5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 4;
    display: none;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
}

.wheel {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1 / 1;
    will-change: transform;
    transform: translateZ(0);
    touch-action: pan-y pan-x;
}

@keyframes gentle-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.prize_btn {
    font: 1.2em "Lato", sans-serif;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 25%;
    height: 25%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #fff;
    box-shadow: 0 0 0 6px currentColor, 0 0px 12px 4px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: 0.8s;
    text-align: center;
    border: none;
    animation: gentle-pulse 2s infinite ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Внутренняя мягкая круговая тень по краю кнопки */
.prize_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 72%,
        rgba(0, 0, 0, 0.8) 88%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* Верхний указатель-треугольник */
.prize_btn::after {
    content: "";
    position: absolute;
    top: -14px;
    border: 8px solid transparent;
    border-bottom-color: currentColor;
    border-top: none;
}

.prize_btn:hover {
    transform: translateY(-2px) translate(-50%, -50%);
}

.prize_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
    box-shadow: none;
    animation: none;
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО (база)
   ========================================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.modal_content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: min(90vw, 500px);
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    margin: 20px;
    box-sizing: border-box;
}

.modal_close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s;
    z-index: 3;
}

.modal_close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

.winner_modal .modal_close {
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.winner_modal .modal_close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   АДАПТИВ (общие правила)
   ========================================================= */
@media (max-width: 768px) {
    .winner_modal .winner_name_display {
        font-size: 1.2rem;
        padding: 20px 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 80px);
    }

    .winner_modal h2 {
        font-size: 2.2rem;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .winner_modal button {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    button,
    a,
    [role="button"] {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .winner_modal .winner_name_display {
        font-size: 1rem;
        padding: 15px 10px;
        max-width: calc(100vw - 60px);
    }

    .winner_modal h2 {
        font-size: 1.8rem;
        gap: 8px;
        letter-spacing: 2px;
    }

    .winner_modal button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .winner_modal .winner_name_display {
        font-size: 0.9rem;
        padding: 12px 8px;
        max-width: calc(100vw - 40px);
    }

    .winner_modal h2 {
        font-size: 1.5rem;
        gap: 6px;
        letter-spacing: 1px;
    }

    .winner_modal button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Мобильный layout для кнопки prize и колеса */
@media screen and (max-width: 767px) {
    .prize_btn {
        width: min(25vw, 25vh, 100px) !important;
        height: min(25vw, 25vh, 100px) !important;
        max-width: 100px !important;
        max-height: 100px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: clamp(10px, 3vw, 16px) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .prize_btn:hover,
    .prize_btn:disabled {
        transform: translate(-50%, -50%) !important;
    }

    .wheel_container {
        position: relative !important;
        aspect-ratio: 1 / 1 !important;
        align-self: flex-start !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    .wheel,
    canvas.wheel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        display: block !important;
    }
}

@media screen and (max-width: 380px) {
    .prize_btn {
        width: min(22vw, 22vh, 80px) !important;
        height: min(22vw, 22vh, 80px) !important;
        max-width: 80px !important;
        max-height: 80px !important;
        font-size: clamp(8px, 2.5vw, 14px) !important;
    }
}

/* =========================================================
   ДЕСКТОПНЫЙ LAYOUT (уменьшено на треть)
   ========================================================= */
@media screen and (min-width: 1024px) {
    .wheel_container {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        width: min(calc(100vw - 621px), 640px, 56.7vh) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto;
    }

    .prize_btn {
        width: 25%;
        height: 25%;
        font-size: 1em;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pointer {
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 22px solid #ff4757;
    }

    .take_the_prize {
        font-size: 15px;
    }
}

@media screen and (min-width: 1200px) {
    .wheel_container {
        width: min(calc(100vw - 681px), 600px, 56.7vh) !important;
    }

    .prize_btn {
        font-size: 1.1em;
    }

    .pointer {
        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
        border-top: 25px solid #ff4757;
    }
}

@media screen and (min-width: 1400px) {
    .wheel_container {
        width: min(calc(100vw - 721px), 707px, 56.7vh) !important;
        margin: 0 auto;
    }

    .prize_btn {
        font-size: 1.15em;
    }

    .pointer {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-top: 28px solid #ff4757;
    }
}

/* =========================================================
   WINNER MODAL (стилизованное окно победителя)
   ========================================================= */
#winnerModal.winner_modal {
    background: radial-gradient(ellipse at 50% 38%, rgba(120, 60, 10, 0.38) 0%, rgba(5, 5, 22, 0.93) 68%) !important;
    backdrop-filter: blur(14px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
}

#winnerModal .modal_content {
    background: linear-gradient(160deg,
            rgba(18, 8, 42, 0.99) 0%,
            rgba(32, 13, 66, 0.98) 45%,
            rgba(16, 22, 58, 0.99) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.38) !important;
    border-radius: 28px !important;
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.72),
        0 0 70px rgba(251, 191, 36, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    animation: wmEntrance 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) both !important;
    width: min(88vw, 480px) !important;
    padding: 48px 40px 40px !important;
    text-align: center !important;
    overflow: hidden !important;
    position: relative !important;
}

@keyframes wmEntrance {
    0% {
        opacity: 0;
        transform: scale(0.74) translateY(-36px);
    }

    62% {
        opacity: 1;
        transform: scale(1.045) translateY(5px);
    }

    80% {
        transform: scale(0.985) translateY(-2px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Конфетти внутри модалки */
.wm_confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 28px;
}

.wm_confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0;
    animation: wmConfettiFall 3s ease-in infinite;
}

.wm_confetti span:nth-child(1) {
    left: 9%;
    background: #fbbf24;
    animation-delay: 0.1s;
    animation-duration: 2.8s;
    width: 10px;
    height: 10px;
}

.wm_confetti span:nth-child(2) {
    left: 22%;
    background: #a78bfa;
    animation-delay: 0.5s;
    border-radius: 50%;
}

.wm_confetti span:nth-child(3) {
    left: 34%;
    background: #34d399;
    animation-delay: 0.9s;
    animation-duration: 3.2s;
}

.wm_confetti span:nth-child(4) {
    left: 49%;
    background: #f472b6;
    animation-delay: 0.3s;
    border-radius: 50%;
    width: 6px;
    height: 6px;
}

.wm_confetti span:nth-child(5) {
    left: 63%;
    background: #60a5fa;
    animation-delay: 0.7s;
    animation-duration: 2.6s;
}

.wm_confetti span:nth-child(6) {
    left: 77%;
    background: #fbbf24;
    animation-delay: 1.1s;
    border-radius: 50%;
}

.wm_confetti span:nth-child(7) {
    left: 88%;
    background: #f87171;
    animation-delay: 0.4s;
    animation-duration: 3.4s;
    width: 6px;
}

.wm_confetti span:nth-child(8) {
    left: 15%;
    background: #34d399;
    animation-delay: 1.4s;
    border-radius: 50%;
    width: 5px;
    height: 5px;
}

.wm_confetti span:nth-child(9) {
    left: 43%;
    background: #a78bfa;
    animation-delay: 0.8s;
    animation-duration: 2.9s;
}

.wm_confetti span:nth-child(10) {
    left: 60%;
    background: #fbbf24;
    animation-delay: 1.6s;
    width: 7px;
    height: 7px;
}

.wm_confetti span:nth-child(11) {
    left: 74%;
    background: #f472b6;
    animation-delay: 0.2s;
    animation-duration: 3.1s;
    border-radius: 50%;
    width: 5px;
    height: 5px;
}

.wm_confetti span:nth-child(12) {
    left: 92%;
    background: #60a5fa;
    animation-delay: 1.2s;
}

@keyframes wmConfettiFall {
    0% {
        opacity: 0;
        top: -10px;
        transform: rotate(0deg) translateX(0);
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        top: 108%;
        transform: rotate(520deg) translateX(28px);
    }
}

/* Кубок */
.wm_trophy {
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    animation: wmTrophyBounce 0.8s cubic-bezier(0.34, 1.6, 0.64, 1) 0.3s both;
    filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.65));
    position: relative;
    z-index: 2;
}

@keyframes wmTrophyBounce {
    0% {
        transform: scale(0) rotate(-18deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.18) rotate(6deg);
        opacity: 1;
    }

    80% {
        transform: scale(0.94) rotate(-2deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Заголовок */
#winnerModal h2 {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 28%, #fffbeb 52%, #f59e0b 74%, #fbbf24 100%) !important;
    background-size: 220% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: wmGoldShine 3s linear infinite, wmFadeUp 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.45s both !important;
    margin-bottom: 0 !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

@keyframes wmGoldShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 220% center;
    }
}

@keyframes wmFadeUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подзаголовок */
.wm_subtitle {
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 3.5px !important;    
    margin: 8px 0 0 !important;
    padding: 0 !important;   
    position: relative;
    z-index: 2;
}

/* Имя победителя */
#winnerModal .winner_name_display {
    background: rgba(251, 191, 36, 0.07) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.32) !important;
    border-radius: 16px !important;
    padding: 22px 28px !important;
    margin: 28px 0 !important;
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #fffde7 !important;
    text-shadow: 0 0 28px rgba(251, 191, 36, 0.45) !important;
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(251, 191, 36, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    animation: wmNameIn 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.65s both,
        wmNameGlow 2.5s ease-in-out 1.2s infinite alternate !important;
    position: relative !important;
    z-index: 2 !important;
}

@keyframes wmNameIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wmNameGlow {
    0% {
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(251, 191, 36, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    100% {
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32), 0 0 32px rgba(251, 191, 36, 0.14), 0 0 0 1px rgba(251, 191, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

/* Кнопки */
#winnerModal #doneBtn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
    color: #1a0a00 !important;
    padding: 13px 32px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    box-shadow: 0 4px 22px rgba(245, 158, 11, 0.32) !important;
    transition: all 0.22s ease !important;
}

#winnerModal #doneBtn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.42) !important;
}

#winnerModal #doneBtn:active {
    transform: translateY(0) scale(1) !important;
}

/* Кнопка закрытия в winner-модалке */
#winnerModal .modal_close {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    top: 14px !important;
    right: 14px !important;
}

#winnerModal .modal_close:hover {
    background: rgba(239, 68, 68, 0.78) !important;
    border-color: transparent !important;
    color: white !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28) !important;
}

/* Мобильные уточнения для winner-модалки */
@media (max-width: 480px) {
    #winnerModal .modal_content {
        padding: 38px 24px 32px !important;
    }

    .wm_trophy {
        font-size: 2.9rem !important;
    }

    #winnerModal h2 {
        font-size: 2rem !important;
        letter-spacing: 4px !important;
    }

    #winnerModal .winner_name_display {
        font-size: 1.3rem !important;
        padding: 18px 20px !important;
    }

    #winnerModal #doneBtn {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 360px) {
    #winnerModal h2 {
        font-size: 1.7rem !important;
        letter-spacing: 3px !important;
    }

    .wm_trophy {
        font-size: 2.4rem !important;
    }
}