#fortune-wheel-modal:not(.hidden) {
    display: flex;
}

.fortune-wheel-overlay {
    backdrop-filter: blur(4px);
}

.fortune-wheel-close {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}

.fortune-wheel-stage {
    position: relative;
    width: 280px;
    height: 280px;
}

.fortune-wheel-disk {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
    background: conic-gradient(
        from -90deg,
        #0e7490 0deg 45deg,
        #164e63 45deg 90deg,
        #0e7490 90deg 135deg,
        #164e63 135deg 180deg,
        #0e7490 180deg 225deg,
        #164e63 225deg 270deg,
        #0e7490 270deg 315deg,
        #164e63 315deg 360deg
    );
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fortune-wheel-disk.is-spinning {
    -webkit-transition-duration: 5s;
    transition-duration: 5s;
}

.fortune-wheel-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fortune-wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-origin: center center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ecfeff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.fortune-wheel-label span {
    display: inline-block;
    transform: translate(-50%, -118px);
    text-align: center;
}

.fortune-wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #fbbf24;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.fortune-wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #22d3ee, #0891b2);
    border: 3px solid #0f172a;
    z-index: 2;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.fortune-wheel-btn--primary {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    color: #0f172a;
}

.fortune-wheel-btn--primary:hover:not(:disabled) {
    opacity: 0.92;
}

.fortune-wheel-btn--secondary {
    color: #e5e7eb;
}

.fortune-wheel-no-tickets {
    color: #fbbf24;
    line-height: 1.4;
}

.fortune-wheel-no-tickets-slot {
    min-height: 1.4em;
}

.fortune-wheel-no-tickets--placeholder {
    visibility: hidden;
}

.fortune-wheel-overlay.is-result #fortune-wheel-title {
    color: #67e8f9;
    font-size: 1.125rem;
    line-height: 1.4;
}

.fortune-wheel-overlay.is-result #fortune-wheel-subtitle {
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

.fortune-wheel-banner-tickets--zero .fortune-wheel-banner-count {
    color: #9ca3af;
}

.fortune-wheel-banner-tickets--has .fortune-wheel-banner-count {
    color: #67e8f9;
}

.fortune-wheel-banner-tickets-hint {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #fbbf24;
}

.fortune-wheel-profile-tickets-wrap--zero .fortune-wheel-profile-tickets {
    color: #9ca3af;
}

.fortune-wheel-profile-tickets-wrap--has .fortune-wheel-profile-tickets {
    color: #67e8f9;
}

.fortune-wheel-profile-tickets-hint {
    font-weight: 500;
}

/* Мобилка: фиксированная высота шапки — текст не прыгает при смене состояния */
@media (max-width: 639px) {
    .fortune-wheel-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.5rem;
        transition: color 0.15s ease, background-color 0.15s ease;
    }

    .fortune-wheel-close:hover {
        color: #fff;
        background: rgba(55, 65, 81, 0.6);
    }

    #fortune-wheel-title {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        margin-bottom: 0.25rem;
        font-size: 1.125rem;
        line-height: 1.35;
    }

    #fortune-wheel-subtitle {
        min-height: 2.75rem;
        margin-bottom: 1.25rem;
    }

    #fortune-wheel-subtitle.hidden {
        display: block;
        visibility: hidden;
    }

    .fortune-wheel-overlay.is-result #fortune-wheel-title {
        font-size: 1.125rem;
        line-height: 1.35;
    }

    .fortune-wheel-overlay.is-result #fortune-wheel-subtitle {
        margin-bottom: 1.25rem;
    }
}
