body {
    overflow-x: hidden;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.wheel-wrapper .pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 40px;
    height: 40px;
}

.wheel-wrapper .pointer svg {
    width: 100%;
    height: 100%;
}

#wheelContainer {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: white;
    border: 4px solid #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheel {
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    transform-origin: center center;
}

/* Responsive design */
@media (max-width: 640px) {
    .wheel-wrapper {
        max-width: 90vw;
    }
    
    .wheel-wrapper .pointer {
        width: 30px;
        height: 30px;
        top: -8px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    #spinButton {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    #result {
        padding: 1rem !important;
    }
    
    #resultText {
        font-size: 1.5rem !important;
    }
    
    #resultTextEn {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .wheel-wrapper {
        max-width: 85vw;
    }
    
    .wheel-wrapper .pointer {
        width: 25px;
        height: 25px;
        top: -6px;
    }
    
    body {
        padding: 1rem !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.result-modal.active {
    display: flex;
}

.result-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
