html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Fira Sans", "Trebuchet MS", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    background: radial-gradient(1200px 600px at 50% 0%, #fff1f8 0%, #ffd9ee 45%, #ffcfe8 100%);
    color: #6a2a4d;
}

h1 {
    margin: 0;
    color: #9a3b6f;
}

p {
    margin: 0;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 247, 251, 0.85);
    border: 1px solid #ffd0e6;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(154, 59, 111, 0.12);
}

label {
    font-weight: 600;
    color: #8a2a5e;
}

select {
    border: 2px solid #f6bfd9;
    background: #fff6fb;
    color: #9a3b6f;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 1rem;
}

button {
    border: none;
    background: #ff8fc7;
    color: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(154, 59, 111, 0.2);
}

button.spin-top {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10;
}

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

.roulette {
    position: relative;
    width: min(70vw, 340px);
    height: min(70vw, 340px);
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 16px 28px rgba(154, 59, 111, 0.22);
    transition: transform 5s cubic-bezier(0.12, 0.6, 0.05, 1);
    background: #fff7fb;
}

.pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 28px solid #ff5aa5;
    filter: drop-shadow(0 4px 8px rgba(154, 59, 111, 0.25));
    z-index: 2;
}

#result {
    min-height: 1.5em;
    font-size: 1.2em;
    color: #7a2c52;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }
}
