* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.input-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.input-section h2 {
    margin-bottom: 20px;
    color: #ff8c00;
}

.add-participant {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-participant input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.add-participant button {
    padding: 12px 30px;
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-participant button:hover {
    background: #ff8c00;
    transform: translateY(-2px);
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.participant-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.participant-item button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.draw-section {
    text-align: center;
    margin: 40px 0;
}

.draw-button {
    padding: 20px 60px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.draw-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
}

.draw-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.result-section.hidden {
    display: none;
}

.winner-card, .backup-card {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.winner-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.backup-card {
    background: linear-gradient(135deg, #4a90e2 0%, #67b5ff 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.winner-card h3, .backup-card h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.winner-name, .backup-name {
    font-size: 2em;
    font-weight: bold;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    animation: pulse 1s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .result-section {
        grid-template-columns: 1fr;
    }
    
    .participants-list {
        grid-template-columns: 1fr;
    }
}
