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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Arial Black', sans-serif;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 25%, #4ECDC4 50%, #FF6B6B 75%, #FFE66D 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #333;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Decoraties */
.decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bunting {
    position: absolute;
    top: 30px;
    height: 40px;
    z-index: 2;
}

.bunting.left {
    left: 0;
    width: 50%;
    background: repeating-linear-gradient(
        45deg,
        #FF6B6B,
        #FF6B6B 20px,
        #FFE66D 20px,
        #FFE66D 40px,
        #4ECDC4 40px,
        #4ECDC4 60px,
        #FF6B6B 60px
    );
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.bunting.right {
    right: 0;
    width: 50%;
    background: repeating-linear-gradient(
        -45deg,
        #FF6B6B,
        #FF6B6B 20px,
        #FFE66D 20px,
        #FFE66D 40px,
        #4ECDC4 40px,
        #4ECDC4 60px,
        #FF6B6B 60px
    );
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.horn {
    position: absolute;
    font-size: 60px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.horn1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.horn2 {
    top: 15%;
    right: 5%;
    animation-delay: 1s;
}

.horn3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.balloons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    width: 50px;
    height: 70px;
    border-radius: 50% 50% 50% 0;
    bottom: -100px;
    animation: rise 8s ease-in infinite;
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.balloon.red {
    background: #FF6B6B;
    left: 10%;
    animation-delay: 0s;
}

.balloon.blue {
    background: #4ECDC4;
    left: 30%;
    animation-delay: 2s;
    width: 45px;
    height: 65px;
}

.balloon.yellow {
    background: #FFE66D;
    left: 50%;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        opacity: 1;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
    }
}

/* Content Sections */
.content, .spin-screen, .won-screen {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 20px;
    border: 5px dashed #FF6B6B;
}

/* Typography */
.title {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(45deg, #FF6B6B, #FFE66D, #4ECDC4, #FF6B6B);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
    margin-bottom: 20px;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-2deg) scale(1.05); }
    75% { transform: rotate(2deg) scale(1.05); }
}

.title.wobble {
    animation: gradientText 4s ease infinite, wobble 2s ease-in-out infinite;
}

.subtitle {
    font-size: 36px;
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subtitle.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.main-message {
    margin: 30px 0;
}

.message-text {
    font-size: 32px;
    font-weight: bold;
    color: #4ECDC4;
    margin-bottom: 15px;
}

.highlight {
    background: #FFE66D;
    padding: 5px 15px;
    border-radius: 20px;
    transform: rotate(-2deg);
    display: inline-block;
}

.celebration-text {
    font-size: 24px;
    color: #FF6B6B;
    font-weight: bold;
}

/* Button Styling */
.claim-button, .spin-button, .reset-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 50px;
    font-size: 28px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    margin-top: 30px;
    font-family: 'Comic Sans MS', 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.claim-button:hover, .spin-button:hover, .reset-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.claim-button:active, .spin-button:active, .reset-button:active {
    transform: translateY(-2px) scale(0.98);
}

.button-text {
    display: block;
}

.button-emoji {
    font-size: 32px;
    animation: pointFinger 1s ease-in-out infinite;
}

@keyframes pointFinger {
    0%, 100% { transform: translateY(0px) scaleX(1); }
    50% { transform: translateY(-5px) scaleX(1.1); }
}

.small-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    font-style: italic;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Spinner Styling */
.spin-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spin-title {
    font-size: 32px;
    color: #FF6B6B;
    margin-bottom: 30px;
    font-weight: bold;
}

.spinner-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 30px 0;
    perspective: 1000px;
}

.spinner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.pool-option {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 15px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #2a9d8f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 10px;
    gap: 10px;
}

.pool-image {
    width: 100px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pool-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pool-label {
    font-size: 14px;
    text-align: center;
    line-height: 1.3;
}

.pool-option:nth-child(1) { transform: rotateY(0deg) translateZ(140px); }
.pool-option:nth-child(2) { transform: rotateY(60deg) translateZ(140px); }
.pool-option:nth-child(3) { transform: rotateY(120deg) translateZ(140px); }
.pool-option:nth-child(4) { transform: rotateY(180deg) translateZ(140px); }
.pool-option:nth-child(5) { transform: rotateY(240deg) translateZ(140px); }
.pool-option:nth-child(6) { transform: rotateY(300deg) translateZ(140px); }

.spinner.spinning {
    animation: spin 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(3600deg);
    }
}

.spinner-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #FF6B6B;
    z-index: 100;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.spinning-text {
    font-size: 20px;
    color: #FF6B6B;
    font-weight: bold;
    animation: pulse 1s ease-in-out infinite;
}

.spin-button {
    margin-top: 30px;
}

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

/* Won Screen */
.won-screen {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.won-title {
    font-size: 56px;
    color: #FF6B6B;
    margin-bottom: 20px;
    font-weight: 900;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.won-subtitle {
    font-size: 24px;
    color: #4ECDC4;
    margin-bottom: 30px;
    font-weight: bold;
}

.pool-result {
    padding: 30px;
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    border-radius: 20px;
    margin: 30px 0;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.celebration-message {
    background: #4ECDC4;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    color: white;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.celebration-message p {
    margin: 8px 0;
}

.reset-button {
    margin-top: 20px;
}

/* Responsief */
@media (max-width: 600px) {
    .content, .spin-screen, .won-screen {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .title {
        font-size: 48px;
    }

    .subtitle {
        font-size: 24px;
    }

    .message-text {
        font-size: 24px;
    }

    .celebration-text {
        font-size: 18px;
    }

    .claim-button, .spin-button, .reset-button {
        padding: 18px 35px;
        font-size: 20px;
    }

    .horn {
        font-size: 40px;
    }

    .won-title {
        font-size: 40px;
    }

    .pool-result {
        font-size: 36px;
        min-height: 100px;
    }

    .celebration-message {
        font-size: 16px;
    }
}
