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

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

#app {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

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

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

.screen {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
}

.player-setup {
    margin-bottom: 20px;
    text-align: center;
}

.player-setup label {
    font-weight: bold;
    margin-right: 10px;
}

.player-setup select {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.player-names {
    margin-bottom: 25px;
}

.player-input {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player-input label {
    font-weight: 500;
    min-width: 100px;
    text-align: right;
}

.player-input input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    width: 200px;
}

.player-input input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.game-info {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

#current-turn {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

#round-info {
    font-size: 14px;
    color: #666;
}

.players-circle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 200px;
}

.player-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.player-card.current-turn {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0e6ff 100%);
    transform: scale(1.05);
}

.player-card.eliminated {
    opacity: 0.5;
    background: #f0f0f0;
}

.player-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.player-hands {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.hand {
    font-size: 30px;
    transition: all 0.3s ease;
}

.hand.raised {
    transform: translateY(-10px);
}

.hand.eliminated {
    opacity: 0.3;
}

.call-section, .thumb-selection {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
    margin-bottom: 20px;
}

.call-section h3, .thumb-selection h3 {
    margin-bottom: 20px;
    color: #333;
}

.number-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.number-btn, .thumb-btn {
    padding: 15px 25px;
    font-size: 20px;
    font-weight: bold;
    background: white;
    color: #667eea;
    border: 3px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-btn:hover, .thumb-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.thumb-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.result-display {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
}

#call-result {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

#call-result.success {
    color: #4caf50;
}

#call-result.fail {
    color: #f44336;
}

#thumbs-result {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

#winner-announcement {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
}

.rankings {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
}

.rankings h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.ranking-list {
    list-style-position: inside;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.ranking-list li {
    padding: 8px 15px;
    background: white;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ranking-list li.human-player {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .player-card {
        min-width: 100px;
        padding: 15px;
    }

    .number-btn, .thumb-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
}