/* --- Lottery / Wheel Module --- */

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.wheel-border {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #b91c1c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background: #fff;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(#fecaca 0deg 60deg,
            #ffffff 60deg 120deg,
            #fecaca 120deg 180deg,
            #ffffff 180deg 240deg,
            #fecaca 240deg 300deg,
            #ffffff 300deg 360deg);
}

.wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 20px;
    transform-origin: 0% 50%;
    text-align: right;
    padding-right: 30px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    user-select: none;
    color: #7f1d1d;
}

.wheel-label span {
    display: inline-block;
    white-space: nowrap;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #b91c1c;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.wheel-center::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.bulb {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
}

/* Stamp Styles (Used in Lottery & Results) */
.stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(2);
    color: #b91c1c;
    border: 6px solid #b91c1c;
    padding: 10px 20px;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1) inset;
}

.stamp.visible {
    animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
    0% {
        transform: translate(-50%, -50%) scale(3) rotate(-30deg);
        opacity: 0;
    }

    70% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-15deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(-15deg);
        opacity: 0.9;
    }
}

/* --- Stamp Card Layout --- */

.lottery-promo-text {
    position: absolute;
    left: 2.5rem;
    bottom: 11rem;
    color: #D32F2F;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    transform: rotate(-12deg);
    z-index: 20;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    margin-top: 13rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.lottery-stamp-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.25rem;
}

.lottery-stamp-img {
    width: 7rem;
    height: 7rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

.lottery-btn-container {
    margin-top: auto;
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    z-index: 20;
}

.lottery-btn {
    background-color: white;
    border: 4px solid #5D4037;
    color: #5D4037;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s;
}

.lottery-btn:active {
    transform: scale(0.95);
}

.lottery-btn-start {
    padding: 0.5rem 0;
    width: 9rem;
}

.lottery-btn-home {
    padding: 0.5rem 0;
    width: 9rem;
}

.lottery-btn-text-lg {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.lottery-btn-text-md {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}