* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.form-container {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.result-container {
    margin: 20px 0;
    animation: slideIn 0.5s ease-out;
}

.result-container.hidden {
    display: none;
}

.result-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.result-box h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.winner-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.winner-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.winner-phone {
    font-size: 18px;
    opacity: 0.9;
}

.status-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

.status-info span {
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.wheels-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.wheel-item {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.wheel-item.rolling {
    border-color: #f5576c;
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}

.wheel-header {
    text-align: center;
    margin-bottom: 15px;
}

.wheel-title {
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.wheel-display {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 15px;
}

.wheel-content {
    position: absolute;
    width: 100%;
    transition: transform 0.1s linear;
}

.wheel-participant {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wheel-participant.current {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    font-size: 1.1em;
}

.wheel-participant .participant-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wheel-participant .participant-phone {
    font-size: 14px;
    opacity: 0.9;
}

.wheel-result {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    margin-top: 10px;
}

.wheel-result .winner-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wheel-result .winner-phone {
    font-size: 16px;
    opacity: 0.9;
}
