.wheel-cover {
background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    /* border: 3px solid #0a1b18; */
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.wheel-cover img {
width:100%;
}


.wheel-container {

    position: relative;
    /* width: 400px;
    height: 400px; */
    width: min(80vw, 80vh); /* Scales to 80% of the smaller dimension */
    height: min(80vw, 80vh);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0rem; /* Base for em units inside; scales with media queries */
    user-select: none;
    margin: 0 auto;
}


.wheel-container::before {
    background-image: url(../images/first-spin-fever/arrow.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* inset: 29%; */
    /* background: #39ffe2; */
    content: '';
    position: absolute;
    top: 7%;
    width: 7.5%;
    height: 22.5%;
    /* background: #f43648; */
    z-index: 11;
    /* clip-path: polygon(58% 0%, 100% 50%, 50% 100%, 0% 50%); */
    /* left: calc(50% - 15px); */
    left: calc(50% - 3.75%);
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.wheel-floating::before {
    animation: floating 3s infinite ease-in-out;
}

@keyframes floating {
    from { transform: translate(0,  0px); }
    65%  { transform: translate(0, 15px); }
    to   { transform: translate(0, -0px); }    
}

.wheel-fade::before {
    animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    /* border: 3px solid #0a1b18; */
    border: 0.2em solid #bafff9; /* Relative border; scales with size */
    border-radius: 50%;
    transition: transform 5s ease-in-out;
    overflow: visible;
}

.wheel span {
    position: absolute;
    left: 50%;
    /* width: 2px; */
    width: 0.5%; /* Thin line, scales */
    height: 100%;
    transform-origin: left center;
    transform: rotate(calc(var(--deg) * var(--i)));
    background: #bafff9;
    z-index: 0;
}

.wheel-background {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 0;
    transition: filter 0.5s ease-in-out;
}

.wheel .winning-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease-in-out;
}

.spinBtn {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* border: 3px solid #0a1b18; */
    border: 0.2em solid #0cddb7;
    position: absolute;
    /* inset: 140px; */
    inset: 33%;
    /* background: #39ffe2; */
    color: #0a1b18;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.spinBtn img {
    width:100%
}

.locked-wheel {
    filter: grayscale(100%);
}

.locked-spin {
    cursor: default;
    background-image: url('../images/first-spin-fever/spin.png') !important;
}

.unlocked-spin {
    cursor: pointer;
    background-image: url('../images/first-spin-fever/spin.gif');
}

.segment-text {
    margin: 0;
    font-size: 0.8em;
    padding-top: 33px;
    color: #ffffff;
}

.segment-image {
    width: 50%;
}

.segments {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.segments div {
    position: absolute;
    /* inset: 10px; */
    inset: 3.1%; /* Relative inset for padding around segments */
    transform: rotate(calc(var(--deg) * var(--i) + (var(--deg) / 2)));
    text-align: center;
    font-size: 2em; /* Scales with container */
    font-weight: 500;
}

.blur-element {
    filter: blur(2px) brightness(0.4);
    transition: filter 0.5s ease-in-out;
}

.inner {
    position: absolute;
    width: 65%;
    height: 65%;
    background: #0a1b18;
    border-radius: 50%;
    transition: transform 5s ease-in-out;
    overflow: visible;
    z-index: 5;
}

.inner span {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    transform-origin: left center;
    background: #1fc7a8;
    filter: brightness(0.5);
    z-index: 6;
}

.inner span.winning {
    background: linear-gradient(to bottom, #ffeb3b, #ffc107);
    transition: all 0.5s ease-in-out;
}

.inner .segments div {
    inset: 5.7%;
}

@media screen and (min-width: 240px) and (max-width: 1023px) and (orientation: landscape) {
    .segments div {
        inset: -3.3%;
    }

    .inner .segments div {
    inset: 1.0%;
}
}

@media screen and (min-width: 240px) and (max-width: 480px) and (orientation: portrait) {
/* .wheel-cover img {
        width: 345px;
} */

.segments div {
    inset: -1.5%;
}

.segment-text {
    font-size: 0.5em;
    padding-top: 8px;
}

.inner .segments div {
    inset: 1.7%;
}

.wheel-container::before {
    top: 1%;
}
}