/* CSS Baru dari Spin Wheel App, diintegrasikan dengan gaya NamKata */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #2c3e50, #34495e);
    overflow: hidden;
}

.container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .spinBtn-container {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.1em;
    border: 4px solid rgba(0, 0, 0, 0.75);
    cursor: pointer;
    user-select: none;
}

.spinBtn-container .spinBtn {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.spinBtn-container::before {
    content: '';
    position: absolute;
    top: -28px;
    width: 20px;
    height: 30px;
    background: #fff;
    clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
}

.wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 5px #333,
    0 0 0 15px #fff,
    0 0 0 18px #111;
    transition: transform 5s ease-in-out;
}

.wheel .number {
    position: absolute;
    width: 50%;
    height: 50%;
    background: var(--clr);
    transform-origin: bottom right;
    transform: rotate(calc(45deg * var(--i)));
    clip-path: polygon(0 0, 56% 0, 100% 100%, 0 56%);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.wheel .number span {
    position: relative;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 5px 2px rgba(0, 0, 0, 0.15);
}

/* Gaya tambahan dari proyek NamKata yang dipertahankan */
.back-button, .chance-indicator {
    position: fixed;
    background: rgba(0,0,0,0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    z-index: 30;
    white-space: nowrap;
}

.back-button { top: 20px; left: 20px; }
.chance-indicator { bottom: 20px; left: 50%; transform: translateX(-50%); }

@media (max-width: 480px) {
    .container {
        width: 300px;
        height: 300px;
    }
    .wheel .number span {
        font-size: 12px;
    }
    .back-button { top: 15px; left: 15px; padding: 8px 15px; font-size: 14px;}
    .chance-indicator { width: 90%; text-align: center; }
}
/* Menangani kondisi tombol nonaktif */
.spinBtn-container.disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none; /* Mencegah tombol diklik */
}