/* Grundinställningar */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    color: #fff;
    text-align: center;
    min-height: 100vh;
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    margin: 20px 0;
    color: #ffea00;
    text-shadow: 2px 2px #000;
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

/* Pil ovanför hjulet */
.pointer {
    position: absolute;
    top: -30px; /* ovanför hjulet */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid #ffea00;
    box-shadow: 0 0 5px #000;
}

#wheel {
    border: 8px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 30px #000;
    max-width: 90vw;
}

#spinBtn {
    margin-top: 20px;
    padding: 15px 35px;
    background: linear-gradient(90deg, #ff6f61, #ffcc80);
    border: none;
    font-size: 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #222;
}

#spinBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #fff;
}

#winner {
    margin-top: 30px;
    font-size: 28px;
    color: #00ffae;
    text-shadow: 1px 1px #000;
}

/* Konfetti */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    animation: fall linear forwards;
    border-radius: 50%;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobilvänligt */
@media (max-width: 600px) {
    #wheel {
        width: 300px;
        height: 300px;
    }

    #spinBtn {
        padding: 12px 25px;
        font-size: 16px;
    }

    header h1 {
        font-size: 20px;
    }

    #winner {
        font-size: 20px;
    }

    .pointer {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 20px solid #ffea00;
        top: -20px;
    }
}
