.spin-wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    will-change: transform;
}

.wheel-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
}

.wheel-segment {
    cursor: pointer;
    transition: opacity 0.2s;
}

.wheel-segment:hover {
    opacity: 0.9;
}

.segment-text {
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.spin-button span {
    color: white;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.spin-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ff4757;
    z-index: 20;
    filter: drop-shadow(0 3px 10px rgba(255, 71, 87, 0.5));
}

@media (prefers-reduced-motion: reduce) {
    .wheel-wrapper {
        transition: transform 2s linear;
    }
}

@media (max-width: 600px) {
    .spin-wheel-container {
        padding: 20px 10px;
    }

    .spin-button {
        width: 80px;
        height: 80px;
    }

    .spin-button span {
        font-size: 16px;
    }

    .pointer {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 30px;
    }
}
