/* Şans Çarkı — site tema değişkenleri + custom-modal */

.custom-modal--wheel {
    max-width: 460px;
    text-align: center;
}

.custom-modal--wheel .custom-modal-body {
    padding-top: 2px;
}

.wheel-modal-subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary, #9ca3af);
}

.wheel-stage {
    position: relative;
    width: min(320px, 78vw);
    margin: 8px auto 18px;
    aspect-ratio: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.25, 1);
    will-change: transform;
}

.wheel-stage.is-zooming {
    transform: scale(1.16);
    transition: transform 5.2s cubic-bezier(0.12, 0.75, 0.08, 1);
}

.wheel-stage.is-zooming-out {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.25, 1);
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 4;
    width: 22px;
    height: 30px;
    transform: translateX(-50%);
    background: var(--brand-red, #f59e0b);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--surface-900, #000) 55%, transparent));
}

.wheel-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--brand-red, #f59e0b);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--brand-red, #f59e0b) 18%, transparent),
        inset 0 0 36px color-mix(in srgb, var(--surface-900, #000) 55%, transparent);
    overflow: hidden;
    background: var(--surface-800, #111);
    will-change: transform;
}

.wheel-disc.is-spinning {
    transition: transform 5.2s cubic-bezier(0.12, 0.75, 0.08, 1);
}

.wheel-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 22%;
    height: 22%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid var(--brand-red, #f59e0b);
    box-shadow:
        0 0 0 3px var(--surface-800, #111),
        0 0 0 5px var(--brand-red, #f59e0b);
    background: var(--surface-900, #050505);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.wheel-hub img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.wheel-result {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-red, #f59e0b) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-red, #f59e0b) 28%, transparent);
    color: var(--brand-red-soft, var(--brand-red, #f59e0b));
    font-weight: 700;
    font-size: 13px;
}

.wheel-cooldown {
    margin: 0 0 12px;
    color: var(--text-muted, #8a9aa6);
    font-size: 12px;
}

.custom-modal--wheel .cm-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 420px) {
    .custom-modal--wheel {
        max-width: 100%;
    }

    .wheel-stage {
        width: min(280px, 82vw);
    }

    .wheel-stage.is-zooming {
        transform: scale(1.1);
    }
}
