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

body {
    font-family: sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

.roulette-box {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 25px solid #000000;
    z-index: 10;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
    transition: transform 2s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%;
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    outline: none;
}

.spin-btn:disabled {
    cursor: default;
    color: #cccccc;
}

#resultText {
    position: absolute;
    left: calc(50% + 280px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.8;
}

.wheel-item {
    position: absolute;
    top: 0;
    left: calc(50% - 15px);
    transform-origin: 15px 250px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    padding-top: 30px;
    width: 30px;
    writing-mode: vertical-rl;
    word-break: keep-all;
}