body {
    margin: 0;
    padding: 0;
    font-family: verdana, Sans-serif
}

.head1 {
    background-color: #458af1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    letter-spacing: .4px;
    width: 100%
}

.head2 {
    display: flex;
    flex-direction: row;
    padding: 15px
}

.foot {
    position: fixed;
    bottom: 0;
    width: 100%
}

.foot1 {
    background-color: #458af1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    height: 50px;
    color: #fff;
    letter-spacing: .4px
}

.container {
    border: 1px solid #fff;
    position: relative;
    width: 310px;
    height: 300px;
    margin: 0 auto;
    margin-top: 20px
}

.spin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px
}

.spin-overlay.hidden {
    display: none
}

.spin-wheel-wrap {
    position: relative;
    width: 220px;
    height: 220px
}

.spin-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #e74c3c;
    z-index: 5;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3))
}

.spin-wheel {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid #2A2076;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(
        #34a853 0deg 45deg,
        #f2d74e 45deg 90deg,
        #458af1 90deg 135deg,
        #ff9a91 135deg 180deg,
        #9c27b0 180deg 225deg,
        #00bcd4 225deg 270deg,
        #ff9800 270deg 315deg,
        #e91e63 315deg 360deg
    );
    position: relative
}

.spin-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid #2A2076;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #2A2076
}

.spin-label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none
}

.spin-label span {
    position: absolute;
    left: 50%;
    top: 18px;
    transform-origin: 0 92px;
    white-space: nowrap
}

.spin-btn {
    margin-top: 18px;
    background: linear-gradient(135deg, #34a853, #2d8f47);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.4);
    transition: transform 0.2s, box-shadow 0.2s
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 168, 83, 0.5)
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed
}

.spin-title {
    font-family: verdana, Sans-serif;
    color: #2A2076;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center
}

.confetti {
    visibility: hidden;
    width: 15px;
    height: 15px;
    background-color: #f2d74e;
    position: absolute;
    left: 50%;
    animation: confetti 5s ease-in-out -1s infinite;
    transform-origin: left top
}

.confetti:nth-child(1) {
    background-color: #34a853;
    left: 20%;
    animation-delay: -5s
}

.confetti:nth-child(3) {
    background-color: #ff9a91;
    left: 30%;
    animation-delay: -3s
}

.confetti:nth-child(4) {
    background-color: #f2d74e;
    left: 40%;
    animation-delay: -2.5s
}

.confetti:nth-child(5) {
    background-color: #458af1;
    left: 50%;
    animation-delay: -4s
}

.confetti:nth-child(6) {
    background-color: #ff9a91;
    left: 60%;
    animation-delay: -6s
}

.confetti:nth-child(7) {
    background-color: #34a853;
    left: 70%;
    animation-delay: -1.5s
}

.confetti:nth-child(8) {
    background-color: #458af1;
    left: 80%;
    animation-delay: -2s
}

.confetti:nth-child(9) {
    background-color: #ff9a91;
    left: 90%;
    animation-delay: -3.5s
}

.confetti:nth-child(10) {
    background-color: #f2d74e;
    left: 100%;
    animation-delay: -2.5s
}

@keyframes confetti {
    0% {
        transform: rotateZ(15deg) rotateY(0deg) translate(0, 0)
    }
    25% {
        transform: rotateZ(5deg) rotateY(360deg) translate(-5vw, 20vh)
    }
    50% {
        transform: rotateZ(15deg) rotateY(720deg) translate(5vw, 60vh)
    }
    75% {
        transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw, 80vh)
    }
    100% {
        transform: rotateZ(15deg) rotateY(1440deg) translate(10vw, 110vh)
    }
}