* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    padding: 40px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* Abas */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Modos */
.modes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.mode-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.mode-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Conteúdo das Abas */
.tab-content {
    margin-bottom: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Tournamento */
.tournament-container {
    min-height: 400px;
}

.tournament-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

.round-number {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 1.1em;
    font-weight: bold;
}

.matchup {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 640px;
}

.matchup-title {
    text-align: center;
    color: #999;
    font-size: 0.85em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matchup-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    padding: 30px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.option-image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

.option-name {
    font-weight: 600;
    color: #333;
}

.option-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Resultado Final */
.winner-display {
    text-align: center;
    padding: 40px 20px;
}

.winner-trophy {
    font-size: 4em;
    margin-bottom: 20px;
}

.winner-title {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.winner-name {
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 20px;
}

.winner-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.winner-text {
    color: #666;
    font-size: 1.1em;
}

/* Controles */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #999;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 140px;
    }

    .matchup-options {
        grid-template-columns: 1fr;
    }

    .option-btn {
        padding: 20px 10px;
        font-size: 0.95em;
    }

    .option-image {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1;
    }

    .matchup {
        padding: 15px;
    }
}
