#popup-wheel-container {
    position: fixed;
    z-index: 2000;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.75);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
    .wheel-hidden {
        display: none !important;
    }

.popup {
    background: #fff9ed;
    border-radius: 10px;
    padding: 30px;
    width: 440px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.close-btn {
    position: absolute;
    color: black;
    top: 10px;
    right: 15px;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}
#headerText {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
    min-height: 28px;
}
canvas {
    width: 400px;
    height: 400px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 50%;
    background: #222;
}
.pointer {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #d62800;
    position: absolute;
    top: calc(50% - 170px - 30px);
    left: calc(50% - 20px);
    z-index: 10;
}
#spinBtn {
    margin-top: 40px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background: #ff7a00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px #cc6200;
    transition: background-color 0.2s ease;
}
#spinBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #cc6200;
}
#spinBtn.flash-red {
    background-color: #ff4d4d !important;
}
#spinBtn.shake {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}