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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.roulette-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

canvas {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff6b6b;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
    margin: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    font-size: 1.3rem;
    color: #333;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.result.show {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emoji {
    font-size: 2rem;
    margin-right: 10px;
}

.footer {
    margin-top: 30px;
    color: #999;
    font-size: 0.85rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 540px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        max-width: 100%;
    }
    h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .roulette-container {
        width: 250px;
        height: 250px;
    }
    canvas {
        width: 250px;
        height: 250px;
    }
    .center-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
    .result {
        font-size: 1.1rem;
        padding: 15px;
        min-height: 50px;
    }
}

@media (max-width: 370px) {
    .roulette-container {
        width: 220px;
        height: 220px;
    }
    canvas {
        width: 220px;
        height: 220px;
    }
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
    }
}
