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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.input-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #16213e;
    color: #eee;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-row input:focus {
    border-color: #e94560;
}

.input-row button,
#spinBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #e94560;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.1s;
}

#spinBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.input-row button:hover,
#spinBtn:hover:not(:disabled) {
    background: #c73652;
}

.input-row button:active,
#spinBtn:active:not(:disabled) {
    transform: scale(0.96);
}

#optionsList {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#optionsList li {
    background: #16213e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#optionsList li .remove {
    cursor: pointer;
    opacity: 0.5;
    font-size: 0.75rem;
}

#optionsList li .remove:hover {
    opacity: 1;
}

.hint {
    font-size: 0.85rem;
    color: #777;
}

.spinner-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pointer {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #e94560;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 40%));
}

canvas {
    margin-top: -6px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgb(233 69 96 / 20%);
}

.result {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 16px 32px;
    background: #16213e;
    border: 2px solid #e94560;
    border-radius: 12px;
    text-align: center;
    animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
