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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 90%;
}

h1 {
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 2.5em;
}

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

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 5px solid #fff;
    background: #f7fafc;
}

.wheel-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wheel-section-text {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transform-origin: left center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background: #e53e3e;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 10;
    border-radius: 5px 5px 0 0;
}

.controls {
    margin: 20px 0;
}

button {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

button:active {
    transform: translateY(0);
}

.settings-panel {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-content {
    text-align: left;
}

.settings-content h3 {
    margin: 15px 0 10px;
    color: #4a5568;
}

.prize-input, .weight-input {
    display: flex;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.prize-input input, .weight-input input {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    flex: 1;
}

.prize-input button, .weight-input button {
    padding: 8px 12px;
    margin: 0;
    background: #e53e3e;
    font-size: 14px;
}

.actions {
    margin-top: 20px;
    text-align: center;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #ebf8ff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #2b6cb0;
    min-height: 25px;
}

.wheel.spinning {
    transition: transform 4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    h1 {
        font-size: 2em;
    }
}