* {
    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 {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px 0;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.card h3 {
    color: #34495e;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.room-info {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-info p {
    margin: 0;
    font-size: 18px;
}

.participants-section, .observers-section {
    margin-bottom: 20px;
}

.participants-section ul, .observers-section ul {
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-height: 50px;
}

.participants-section li, .observers-section li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.participants-section li:last-child, .observers-section li:last-child {
    border-bottom: none;
}

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

#roulette-wheel {
    border: 5px solid #2c3e50;
    border-radius: 50%;
    margin-bottom: 20px;
    background: white;
}

.spin-button {
    font-size: 20px;
    padding: 15px 30px;
    background: #e74c3c;
    border-radius: 50px;
}

.spin-button:hover {
    background: #c0392b;
}

.spin-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

#current-turn {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f1c40f;
    border-radius: 8px;
}

#spin-result {
    text-align: center;
    padding: 20px;
    background: #2ecc71;
    color: white;
    border-radius: 8px;
    margin: 20px 0;
}

#results-summary {
    margin-top: 30px;
}

#assignments-list {
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

#assignments-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#assignments-list li:last-child {
    border-bottom: none;
}

#game-complete {
    text-align: center;
    padding: 30px;
    background: #27ae60;
    color: white;
    border-radius: 15px;
    margin-top: 30px;
}

#waiting-message {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e74c3c;
}

.notification.success {
    background: #27ae60;
}

.notification.info {
    background: #3498db;
}

.reroll-btn {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
}

.reroll-btn:hover {
    background: #e67e22;
}

.kick-btn {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
}

.kick-btn:hover {
    background: #c0392b;
}

.skip-btn {
    background: #f39c12;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 15px;
}

.skip-btn:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    #roulette-wheel {
        width: 300px;
        height: 300px;
    }

    .room-info {
        flex-direction: column;
        gap: 10px;
    }
}