* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: rgba(30, 30, 30, 0.92);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 40px 32px 32px 32px;
}

h1 {
    color: #f8e9a1;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 8px #0008;
}

.wheel-container {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    position: relative;
    width: 320px;
    height: 320px;
    background: #222;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.15, 1);
    transform: rotate(0deg);
    box-shadow: 0 0 0 6px #f8e9a1, 0 0 0 18px #232526;
    border: 4px solid #f8e9a1;
}

.section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    transform: rotate(calc(var(--i) * 51.43deg));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr);
    opacity: 0.93;
    user-select: none;
    border-radius: 0 0 160px 0;
}

.section span {
    position: absolute;
    left: 38%;
    top: 28%;
    width: 80px;
    text-align: center;
    font-size: 1.08em;
    font-weight: 600;
    color: #232526;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 2px 0;
    transform: rotate(25deg);
    text-shadow: 0 1px 4px #fff8;
    pointer-events: none;
}

.arrow {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 48px;
    background: none;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 32px solid #f8e9a1;
    filter: drop-shadow(0 2px 4px #0006);
}

button {
    padding: 14px 36px;
    background: linear-gradient(90deg, #f8e9a1 0%, #f76d6d 100%);
    color: #232526;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #0003;
    transition: background 0.3s, color 0.3s, transform 0.1s;
    margin-top: 10px;
}
button:hover:not(:disabled) {
    background: linear-gradient(90deg, #f76d6d 0%, #f8e9a1 100%);
    color: #fff;
    transform: scale(1.04);
}
button:disabled {
    background: #cccccc;
    color: #888;
    cursor: not-allowed;
}

.result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8e9a1;
    text-align: center;
    height: 36px;
    margin-top: 12px;
    text-shadow: 0 2px 8px #0008;
}
