* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('images/BG.png') no-repeat center center;
    background-size: cover;
    font-family: 'Kanit', sans-serif;
    overflow: hidden;
    user-select: none;
}

.container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.logo {
    width: 500px;
    height: auto;
    margin-bottom: 30px;
}

.picker-container {
    position: relative;
    width: 1050px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    perspective: 1000px;
}

.picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 80px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    pointer-events: none;
    z-index: -1;
}

.prize-label {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 44px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.picker-container {
    cursor: pointer;
}

.picker-container:hover .picker-highlight {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.picker-container:active .picker-highlight {
    transform: translateY(-50%) scale(0.98);
}

.picker-container.disabled {
    cursor: not-allowed;
}

.picker-container.disabled .picker-highlight {
    opacity: 0.7;
}

.picker-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 1;
}

.picker-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index: 1;
}

.picker {
    position: absolute;
    width: 100%;
    height: 80px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transform-style: preserve-3d;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.picker.visible {
    opacity: 1;
}

.picker-inner {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform-style: preserve-3d;
}

.picker-item {
    position: absolute;
    width: 100%;
    height: 80px;
    left: 0;
    top: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 44px;
    font-weight: 400;
    color: #000;
    backface-visibility: hidden;
    padding: 0 20px;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.result {
    margin-top: 30px;
    font-size: 28px;
    color: #fff;
    min-height: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    padding: 0 20px;
    text-align: center;
}

.result.show {
    opacity: 1;
    transform: translateY(0);
}

.result.winner {
    color: #ffeaa7;
    text-shadow: 0 0 30px rgba(255, 234, 167, 0.5);
    animation: pulse 0.5s ease infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Confetti emitter */
.confetti-emitter {
    position: fixed;
    bottom: 0;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.confetti-emitter-left {
    left: 50px;
}

.confetti-emitter-right {
    right: 50px;
}

/* Confetti particle */
.confetti-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    transform-style: preserve-3d;
}
