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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tombola-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wheel-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.wheel-container {
    position: relative;
    width: 600px;
    height: 600px;
}

.wheel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 0.05s ease-out;
    border: 20px solid #fff;
    box-shadow: 
        0 0 0 5px #ffd700,
        0 0 100px rgba(255,215,0,0.6),
        inset 0 0 50px rgba(0,0,0,0.2);
}

canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-center {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    box-shadow: 
        0 0 0 10px #fff,
        0 0 40px rgba(255,215,0,1),
        inset 0 4px 15px rgba(255,255,255,0.5),
        inset 0 -4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.pointer {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 60px solid #ff1744;
    filter: drop-shadow(0 8px 15px rgba(255,23,68,0.8));
    z-index: 200;
    animation: pointerPulse 0.8s ease-in-out infinite;
}

@keyframes pointerPulse {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1);
        filter: drop-shadow(0 8px 15px rgba(255,23,68,0.8));
    }
    50% { 
        transform: translateX(-50%) translateY(8px) scale(1.05);
        filter: drop-shadow(0 12px 20px rgba(255,23,68,1));
    }
}

.pointer::after {
    content: '';
    position: absolute;
    top: -65px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ff1744, #c41230);
    border-radius: 50%;
    box-shadow: 
        0 0 25px rgba(255,23,68,1),
        inset 0 2px 5px rgba(255,255,255,0.4);
}

.spin-button {
    padding: 25px 80px;
    font-size: 32px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #ff1744 0%, #f50057 50%, #ff4081 100%);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 
        0 15px 35px rgba(255,23,68,0.5),
        0 5px 15px rgba(0,0,0,0.3),
        inset 0 -4px 0 rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.spin-button:hover::before {
    left: 100%;
}

.spin-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 45px rgba(255,23,68,0.6),
        0 8px 20px rgba(0,0,0,0.4),
        inset 0 -4px 0 rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

.spin-button:active {
    transform: translateY(-2px) scale(1.02);
}

.spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.winner-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-10deg);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    padding: 60px 90px;
    border-radius: 40px;
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.6),
        0 0 100px rgba(255,215,0,0.8),
        inset 0 4px 20px rgba(255,255,255,0.5);
    z-index: 1000;
    text-align: center;
    border: 8px solid white;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
}

.winner-popup.show {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.winner-popup h2 {
    font-size: 56px;
    color: #ff1744;
    margin-bottom: 25px;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.3),
        0 0 30px rgba(255,23,68,0.5);
    animation: winnerBounce 0.8s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: 4px;
}

@keyframes winnerBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-10px); }
}

.winner-popup p {
    font-size: 42px;
    color: #1a1a2e;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    animation: confettiFall 3s linear;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(255,215,0,0.4), 0 0 80px rgba(255,215,0,0.2);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255,215,0,0.6), 0 0 120px rgba(255,215,0,0.4);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 3s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--tx)) scale(0);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .wheel-container {
        width: 320px;
        height: 320px;
    }
    .glow-ring {
        width: 350px;
        height: 350px;
    }
    .spin-button {
        padding: 18px 40px;
        font-size: 22px;
    }
    .winner-popup {
        padding: 30px 25px;
    }
    .winner-popup h2 {
        font-size: 36px;
    }
    .winner-popup p {
        font-size: 22px;
    }
    canvas {
        width: 320px;
        height: 320px;
    }
}
.winner-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 34px;
    line-height: 48px;
    font-weight: 900;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

    .winner-close:hover {
        transform: scale(1.06);
    }

    .winner-close:active {
        transform: scale(0.98);
    }
.restart-button {
    padding: 16px 60px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    letter-spacing: 1px;
}

    .restart-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.30);
    }

    .restart-button:active {
        transform: translateY(-1px);
    }
/* Step 1 premium banner (matches Step 3 vibe) */
.step1-hero {
    position: relative;
    padding: 18px 18px 16px 18px;
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

    .step1-hero::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,215,0,0.45) 0%, rgba(255,215,0,0.0) 65%);
        filter: blur(0px);
    }

    .step1-hero::after {
        content: "";
        position: absolute;
        left: -80px;
        bottom: -80px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,23,68,0.35) 0%, rgba(255,23,68,0.0) 70%);
    }

.step1-hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(255,215,0,0.18);
    border: 1px solid rgba(255,215,0,0.28);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    margin-bottom: 10px;
}

.step1-hero-title {
    font-weight: 900;
    letter-spacing: 0.4px;
    margin: 0;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.step1-hero-sub {
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
    text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/*.step1-hero-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 88px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
    user-select: none;
    pointer-events: none;
}*/

/*@media (max-width: 576px) {
    .step1-hero-logo {
        width: 64px;
        top: 10px;
        right: 10px;
    }
}*/
.step1-hero-logo-inline {
    width: 86px;
    height: auto;
    margin-left: 10px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
    user-select: none;
    pointer-events: none;
}

@media (max-width: 576px) {
    .step1-hero-logo-inline {
        width: 64px;
        margin-left: 8px;
    }
}

/* Step progress (Step 3 vibe) */
.step-progress {
    height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
    overflow: hidden;
}

.step-progress-bar {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 45%, #ffd700 100%);
    box-shadow: 0 10px 22px rgba(255,215,0,0.35), inset 0 2px 10px rgba(255,255,255,0.45), inset 0 -2px 10px rgba(0,0,0,0.18);
}
/* Progress bar styled like the Spin button (red/pink) */
.spin-progress {
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.10);
}

.spin-progress-bar {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Same gradient as .spin-button */
    background: linear-gradient(135deg, #ff1744 0%, #f50057 50%, #ff4081 100%);
    box-shadow: 0 10px 22px rgba(255,23,68,0.35), inset 0 2px 10px rgba(255,255,255,0.18), inset 0 -2px 10px rgba(0,0,0,0.22);
}
/* Progress bar styled like the Spin button (red/pink) */
.spin-progress {
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.10);
}

.spin-progress-bar {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Same gradient as .spin-button */
    background: linear-gradient(135deg, #ff1744 0%, #f50057 50%, #ff4081 100%);
    box-shadow: 0 10px 22px rgba(255,23,68,0.35), inset 0 2px 10px rgba(255,255,255,0.18), inset 0 -2px 10px rgba(0,0,0,0.22);
}
/* Progress bar: Step 3 dark background */
.step3-progress {
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    /* SAME vibe as Step 3 background */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.55), 0 10px 25px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
}

.step3-progress-bar {
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* Fill matches spin button (red/pink) */
    background: linear-gradient(135deg, #ff1744 0%, #f50057 50%, #ff4081 100%);
    box-shadow: 0 10px 22px rgba(255,23,68,0.35), inset 0 2px 10px rgba(255,255,255,0.18), inset 0 -2px 10px rgba(0,0,0,0.22);
}



