:root {
    --bg: #061021;
    --surface: rgba(45, 45, 45, 0.95);
    --surface-strong: rgba(255,255,255,0.14);
    --text: #e8eff9;
    --muted: #9fb5d1;
    --accent: #3a86ff;
    --danger: #ef476f;
    --success: #06d6a0;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('img2/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -1;
}

.logo {
    display: block;
    margin: -4rem auto;
    width: clamp(180px, 28vw, 320px);
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
    transition: width 0.3s ease, transform 0.3s ease;
}

body { margin: 0; padding: 0; min-height: 100vh; display: flex; flex-direction: column; }

section { flex: 1; display: flex; flex-direction: column; }
.app-shell { flex: 1; 
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 16px 0 32px;
}

.topbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 0 20px;
    position: relative;
    width: 100%;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--text);
}

.site-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%; margin: auto 0 0 0;
}

.site-footer .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
    border-bottom: 1px solid transparent;
}

.site-footer .footer-links a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.site-footer .footer-contact {
    color: #ffffff;
    font-size: 0.85rem;
}

.site-footer .footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-contact a:hover {
    color: var(--text);
    text-decoration: underline;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.title-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.title-group h1,
.title-group h2,
.title-group h3 {
    margin: 0;
}

.description {
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.6;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
}

button,
input[type="button"],
input[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    
    filter: brightness(1.06);
}

button.secondary,
button.secondary:hover {
    background: rgba(255,255,255,0.09);
    color: var(--text);
}

button.danger {
    background: var(--danger);
}

button.success {
    background: linear-gradient(135deg, #48cae4, #0096c7);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 150, 199, 0.3);
}
button.success:hover {
    background: linear-gradient(135deg, #90e0ef, #00b4d8);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
}

/* ======================================================== 
   ESTILOS PARA OS BOTÃ•ES DO MENU PRINCIPAL (LIGAS) 
   ======================================================== */
.league-btn {
    width: 100%;
    min-height: 3.5em;
    background: black;
    color: white;
    border: none;
    border-radius: 0.625em;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.5s;
    padding: 0;
}

.league-btn:hover {
    color: black;
    transform: none;
    filter: none;
}

.league-btn::after {
    content: "";
    background: white;
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.5s;
}

.league-btn:hover::after {
    transform: skewX(-45deg) scale(1, 1);
    transition: all 0.5s;
}
/* ======================================================== */

.grid-2 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.section-panel {
    margin-top: 18px;
}

.inline-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.inline-info span {
    background: rgba(255,255,255,0.06);
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
}

.league-summary,
.match-history,
.team-selection,
.table-wrapper,
.group-grid {
    margin-top: 14px;
}

.team-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.team-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.team-card--selected {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.24), rgba(255, 214, 10, 0.12));
    border-color: rgba(255, 214, 10, 0.45);
    box-shadow: 0 0 0 1px rgba(255,214,10,0.18) inset;
}

.team-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    line-height: 1;
}

.team-avatar {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-name--selected {
    color: #e6b800;
    font-weight: 700;
}

.team-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.team-card input:checked + .custom-checkbox {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--success), #10b981);
    box-shadow: 0 0 0 4px rgba(6,214,160,0.18);
}

.team-card input:checked + .custom-checkbox::after {
    content: '\2713';
    font-size: 12px;
    color: white;
    font-weight: 700;
}

.team-card {
    user-select: none;
}

.match-history,
.group-list,
.knockout-list {
    display: grid;
    gap: 12px;
}

.match-item,
.knockout-item,
.group-table {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px 16px;
}

.match-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.match-item span {
    display: block;
    text-align: center;
}

.score-badge {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(6, 214, 160, 0.1)) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #3a86ff !important;
    border: 1px solid rgba(58, 134, 255, 0.3) !important;
    min-width: 70px !important;
}

.group-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

@media (max-width: 980px) {
    .group-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 660px) {
    .group-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 10px 12px;
    }

    .match-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "score score"
            "teamA teamB"
            "actions actions";
        align-items: center;
        padding: 12px 8px;
        gap: 12px 8px;
    }

    .match-item > *:nth-child(1), .match-team-a {
        grid-area: teamA;
        text-align: left;
    }

    .match-item > *:nth-child(3), .match-team-b {
        grid-area: teamB;
        text-align: right;
    }

    .match-item > *:nth-child(2), .match-score-center {
        grid-area: score;
        text-align: center;
    }

    .match-actions, .match-buttons-row {
        grid-area: actions;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}

.match-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.group-table {
    overflow: hidden;
}

.group-table .table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

.group-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    table-layout: fixed;
}

.group-table th,
.group-table td {
    padding: 10px 8px;
    text-align: left;
    font-size: 0.94rem;
    white-space: nowrap;
    vertical-align: middle;
}

.group-table td:nth-child(2),
.group-table th:nth-child(2) {
    width: 38%;
    min-width: 140px;
}

.group-table .team-label {
    max-width: 100%;
}

.group-table .team-name {
    display: inline-block;
    max-width: 100%;
}

.group-table th {
    color: var(--muted);
}

.group-table tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.table-wrapper {
    overflow-x: auto;
}

table.standings {
    width: 100%;
    border-collapse: collapse;
}

table.standings,
table.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

table.standings th,
table.stats-table td,
table.standings td {
    padding: 12px 10px;
    text-align: left;
    font-size: 0.92rem;
    vertical-align: middle;
}

table.standings th,
table.stats-table th {
    color: var(--muted);
}

table.standings tr + tr td,
table.stats-table tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.stats-panel {
    overflow: hidden;
    padding: 14px 16px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.stats-panel .title-group {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.stats-panel .title-group h3 {
    font-size: 1rem;
}

.stats-panel .description {
    margin-top: 4px;
    font-size: 0.84rem;
}

.stats-panel .table-wrapper {
    margin-top: 8px;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

.stats-panel .table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.stats-panel .table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.stats-panel .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.stats-panel .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stats-table {
    min-width: 320px;
}

.stats-table th,
.stats-table td {
    padding: 7px 8px;
    font-size: 0.82rem;
}

.stats-table .team-name {
    font-size: 0.82rem;
}

.stats-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.03);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.history-table th,
.history-table td {
    padding: 10px 8px;
    text-align: left;
    font-size: 0.92rem;
    vertical-align: middle;
}

.history-table th {
    color: var(--muted);
}

.history-table tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.status-line {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-line strong {
    color: #fff;
}

@keyframes pulseTime {
    0% {
        transform: scale(1) translateY(0);
        color: #fff;
        text-shadow: 0 0 0 rgba(255, 214, 10, 0);
    }
    25% {
        transform: scale(1.12) translateY(-2px);
        color: #ffd60a;
        text-shadow: 0 0 8px rgba(255, 214, 10, 0.4);
    }
    50% {
        transform: scale(1.15) translateY(0);
        color: #ffd60a;
        text-shadow: 0 0 16px rgba(255, 214, 10, 0.8);
    }
    75% {
        transform: scale(1.12) translateY(-2px);
        color: #ffd60a;
        text-shadow: 0 0 8px rgba(255, 214, 10, 0.4);
    }
    100% {
        transform: scale(1) translateY(0);
        color: #fff;
        text-shadow: 0 0 0 rgba(255, 214, 10, 0);
    }
}

.status-line span:first-child strong {
    animation: pulseTime 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    display: inline-block;
    font-weight: 900;
    min-width: 40px;
}

@keyframes minuteGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 214, 10, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0);
    }
}

.status-line span:first-child {
    animation: minuteGlow 1.5s ease-out infinite;
    padding: 8px 12px;
    border-radius: 8px;
}

.penalty-panel {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.penalty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.penalty-circles {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
}

.hidden {
    display: none !important;
}

.alert-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
}

@media (max-width: 600px) {
    .stats-panel {
        max-height: none;
        padding: 14px 12px;
    }

    .stats-panel .table-wrapper {
        margin-top: 12px;
    }

    table.history-table {
        min-width: 100%;
        display: block;
    }

    table.history-table thead {
        display: none;
    }

    table.history-table tbody {
        display: block;
    }

    table.history-table tr {
        display: block;
        margin-bottom: 12px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 12px;
        border-top: none !important;
    }

    table.history-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.06);
        font-size: 0.9rem;
    }

    table.history-table td:first-child {
        border-top: none;
    }

    table.history-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
        font-size: 0.85rem;
        flex: 0 0 35%;
    }

    table.history-table tr > td:nth-child(4) {
        background: rgba(58, 134, 255, 0.12);
        padding: 10px;
        margin: 8px -12px -8px -12px;
        border-radius: 10px;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1.1rem;
        color: #3a86ff;
    }

    table.history-table tr > td:nth-child(4)::before {
        display: none;
    }
}

@keyframes goalPulse {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.08) translateY(-4px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
}

.match-history .match-item {
    animation: goalPulse 0.8s ease-out;
}

@keyframes scoreFlash {
    0% {
        background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(6, 214, 160, 0.1));
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, rgba(58, 134, 255, 0.4), rgba(6, 214, 160, 0.2));
        transform: scale(1.05);
    }
    100% {
        background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(6, 214, 160, 0.1));
        transform: scale(1);
    }
}

.match-item .score-badge {
    transition: all 0.3s ease;
}

.knockout-list .match-item:has(.score-badge:not(:contains("A definir"))) .score-badge {
    animation: scoreFlash 0.8s ease-out 1;
}

/* ======================================================== 
   NOVO: BotÃµes Externos (Discord e Feedback)
   ======================================================== */
.top-external-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    align-items: center;
}

.btn-discord {
    background-color: #5865F2 !important;
    color: #ffffff !important;
    border-radius: 0.625em;
    font-size: 16px;
    font-weight: bold;
    padding: 0 18px;
    min-height: 3.5em; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-discord:hover {
    background-color: #4752C4 !important;
}

.btn-how-to-play {
    background-color: #fceea7 !important;
    color: #333333 !important;
    border-radius: 0.625em;
    font-size: 16px;
    font-weight: bold;
    padding: 0 18px;
    min-height: 3.5em; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
}

.btn-how-to-play:hover {
    background-color: #f7e076 !important;
}

.btn-how-to-play:active {
    transform: translateY(2px);
}

.btn-feedback {
    background-color: #05611c !important;
    color: #ffffff !important;
    border-radius: 0.625em;
    font-size: 16px;
    font-weight: bold;
    padding: 0 18px;
    min-height: 3.5em; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
}

.btn-feedback:hover {
    background-color: #044b15 !important;
}

.btn-feedback:active {
    transform: translateY(2px);
}

.btn-feedback::after {
    background: #751609 !important;
}

/* ======================================================== 
   NOVO: Ajustes de BotÃµes de CabeÃ§alho
   ======================================================== */
.header-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Campo de Busca de Times */
.search-container {
    margin-bottom: 16px;
}

.team-search-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: var(--text);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.team-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(58, 134, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.no-search-results {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 1rem;
}

/* ======================================================== 
   PAINEL DE ESTATÃSTICAS E PROBABILIDADE DE VITÃ“RIA
   ======================================================== */
.btn-stats, .btn-action {
    background: linear-gradient(135deg, #48cae4, #0096c7) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem !important;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 150, 199, 0.3);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-stats:hover, .btn-action:hover {
    background: linear-gradient(135deg, #90e0ef, #00b4d8) !important;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
    
}

.btn-stats:active, .btn-action:active {
    transform: translateY(0) scale(0.98);
}

.match-stats-panel {
    background: #181c26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    margin-top: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInSlide 0.3s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-header-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8eff9;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 4px 0;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #d1d5db;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.stats-badge--highlight {
    background: #ef476f !important;
    color: #ffffff !important;
}

.stats-badge--neutral {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #d1d5db !important;
}

.stats-metric-name {
    color: #9fb5d1;
    text-align: center;
    flex: 1;
    font-size: 0.92rem;
}

/* SeÃ§Ã£o de Probabilidade de VitÃ³ria */
.win-prob-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.win-prob-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 12px;
}

.win-prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #e8eff9;
    margin-bottom: 8px;
    padding: 0 4px;
}

.win-prob-bar-container {
    display: flex;
    height: 14px;
    width: 100%;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.win-prob-segment {
    height: 100%;
    transition: width 0.4s ease;
}

.win-prob-segment--teamA {
    background-color: #06d6a0; /* Verde */
}

.win-prob-segment--draw {
    background-color: #ffffff; /* Branco */
}

.win-prob-segment--teamB {
    background-color: #06d6a0; /* Verde */
}

/* ======================================================== 
   MELHORIAS COMPLETA DE RESPONSIVIDADE (DESKTOP, TABLET, MOBILE)
   ======================================================== */

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.table-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

/* Breakpoint para Dispositivos MÃ³veis (<= 600px) */
@media (max-width: 600px) {
    body {
        padding: 0 8px 16px;
    }

    .app-shell {
        padding: 8px 0 70px;
    }

    .top-external-links {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 60px auto 16px auto;
        width: 100%;
    }

    .top-external-links button {
        font-size: 12px !important;
        padding: 6px 16px !important;
        min-height: 32px !important;
        width: auto !important;
    }

    .card {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .title-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .title-group h1 {
        font-size: 1.3rem;
    }

    .title-group h2 {
        font-size: 1.2rem;
    }

    .title-group h3 {
        font-size: 1.1rem;
    }

    .header-action-buttons {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .header-action-buttons button {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .league-btn {
        font-size: 14px;
        min-height: 3.2em;
    }

    .team-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .team-card {
        padding: 10px 10px;
        gap: 6px;
        border-radius: 14px;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .team-avatar {
        width: 18px;
        height: 18px;
    }

    .custom-checkbox {
        width: 18px;
        height: 18px;
    }

    .status-line {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .status-line > span {
        text-align: center;
        width: 100%;
        font-size: 0.95rem;
    }

    .status-line > button {
        width: 100%;
    }

    .group-table th,
    .group-table td,
    table.standings th,
    table.standings td {
        padding: 8px 6px;
        font-size: 0.84rem;
    }

    .group-table table {
        min-width: 360px;
    }

    table.standings {
        min-width: 440px;
    }

    .match-stats-panel {
        padding: 14px 10px;
        margin-top: 10px;
    }

    .stats-header-title {
        font-size: 0.92rem;
    }

    .stats-badge {
        min-width: 32px;
        height: 24px;
        font-size: 0.8rem;
        padding: 0 6px;
    }

    .stats-metric-name {
        font-size: 0.82rem;
    }

    .win-prob-labels {
        font-size: 0.8rem;
    }

    .win-prob-section {
        margin-top: 16px;
        padding-top: 14px;
    }

    .team-search-input {
        padding: 10px 14px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .site-footer {
        font-size: 0.85rem;
        margin-top: 20px;
    }
}

/* Breakpoint para Celulares Muito Pequenos (<= 380px) */
@media (max-width: 380px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .league-btn {
        font-size: 13px;
        min-height: 3em;
    }

    .team-selection {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ======================================================== 
   NOVO: ConfiguraÃ§Ã£o de Campeonatos e Players
   ======================================================== */
.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.wizard-btn {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 2px solid transparent;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.wizard-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.wizard-btn.selected {
    border-color: var(--accent);
    background: rgba(58, 134, 255, 0.15);
}

.player-selector-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 14px;
    border-radius: 18px;
}
.player-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 2px solid transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.player-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.player-btn:hover {
    background: rgba(255,255,255,0.15);
}
.player-btn.active {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* ======================================================== 
   NOVO: Escudos 3x Maiores no Mata-Mata
   ======================================================== */
.knockout-list .team-avatar,
.knockout-match-block .team-avatar,
.match-stats-panel .team-avatar {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
}

.knockout-list .team-label,
.knockout-match-block .team-label,
.match-stats-panel .team-label {
    flex-direction: column;
    align-items: center !important;
    gap: 10px;
}
.knockout-list .team-name,
.knockout-match-block .team-name,
.match-stats-panel .team-name {
    font-size: 1.1rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.knockout-list .match-item,
.knockout-match-block .match-item {
    padding: 20px 16px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

@media (max-width: 660px) {
    .knockout-list .team-avatar,
    .knockout-match-block .team-avatar,
    .match-stats-panel .team-avatar {
        width: 35px !important;
        height: 35px !important;
    }
    .knockout-list .team-name,
    .knockout-match-block .team-name,
    .match-stats-panel .team-name {
        font-size: 0.85rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .player-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .wizard-options {
        grid-template-columns: 1fr;
    }
    .match-timer {
        font-size: 0.95rem;
        padding: 2px 4px;
        min-width: 50px;
        margin: 0 4px;
    }
    .match-item-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto;
        gap: 10px !important;
    }
    .match-team-a {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .match-team-b {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .match-score-center {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        width: 100%;
        margin-top: 5px;
    }
    .team-label {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* CSS para P1/P2 Badges */
.player-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    margin-right: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Temporizador Individual (Match Timer) */
.match-timer {
    display: inline-block;
    background: #111;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #333;
    margin: 0 10px;
    min-width: 65px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.match-timer.finished {
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

/* BotÃ£o de Ocultar/Mostrar */
.btn-toggle-panel {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

.btn-toggle-panel:hover {
    background: var(--surface-light);
    color: var(--text);
}

.multiplayer-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.multiplayer-sidebar h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.multiplayer-sidebar .sidebar-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.multiplayer-sidebar .sidebar-player-row:hover {
    background: rgba(255,255,255,0.08);
}

.multiplayer-sidebar .sidebar-player-row.active {
    border: 2px solid var(--text);
    background: rgba(255,255,255,0.1);
}

.multiplayer-sidebar .sidebar-player-row .player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.multiplayer-sidebar .sidebar-player-row .player-count {
    font-weight: bold;
}

@media (max-width: 1200px) {
    .multiplayer-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-bottom: 20px;
    }
}
.match-content-wrapper {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.match-item-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.match-item-grid > span {
    display: block;
    text-align: center;
}
.match-team-a { text-align: right !important; }
.match-team-b { text-align: left !important; }

.match-actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .knockout-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.league-standings-container {
    display: grid;
    .wizard-options {
        grid-template-columns: 1fr;
    }
    .match-timer {
        font-size: 0.95rem;
        padding: 2px 4px;
        min-width: 50px;
        margin: 0 4px;
    }
    .match-item-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto;
        gap: 10px !important;
    }
    .match-team-a {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .match-team-b {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .match-score-center {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        width: 100%;
        margin-top: 5px;
    }
    .team-label {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* CSS para P1/P2 Badges */
.player-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    margin-right: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Temporizador Individual (Match Timer) */
.match-timer {
    display: inline-block;
    background: #111;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #333;
    margin: 0 10px;
    min-width: 65px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.match-timer.finished {
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

/* BotÃ£o de Ocultar/Mostrar */
.btn-toggle-panel {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

.btn-toggle-panel:hover {
    background: var(--surface-light);
    color: var(--text);
}

.multiplayer-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.multiplayer-sidebar h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.multiplayer-sidebar .sidebar-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.multiplayer-sidebar .sidebar-player-row:hover {
    background: rgba(255,255,255,0.08);
}

.multiplayer-sidebar .sidebar-player-row.active {
    border: 2px solid var(--text);
    background: rgba(255,255,255,0.1);
}

.multiplayer-sidebar .sidebar-player-row .player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.multiplayer-sidebar .sidebar-player-row .player-count {
    font-weight: bold;
}

@media (max-width: 1200px) {
    .multiplayer-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-bottom: 20px;
    }
}
.match-content-wrapper {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.match-item-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.match-item-grid > span {
    display: block;
    text-align: center;
}
.match-team-a { text-align: right !important; }
.match-team-b { text-align: left !important; }

.match-actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .knockout-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .knockout-list.knockout-list-final {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

.league-standings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 981px) {
    .league-standings-container {
        grid-template-columns: 1fr;
    }
}

.player-ranking-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

@media (max-width: 1200px) {
    .player-ranking-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
    }
}

.simulate-buttons-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.simulate-buttons-container button {
    padding: 8px 16px !important;
    font-size: 0.85em !important;
    margin: 0 !important;
}

 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       N O V O :   E s t i l o s   d o   H i s t ó r i c o   d e   J o g o s   ( M a t c h   H i s t o r y ) 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . s e m i f i n a l i s t s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 0 0 p x ,   1 f r ) ) ; 
         g a p :   1 5 p x ; 
         m a r g i n - t o p :   1 5 p x ; 
 } 
 . s e m i f i n a l i s t - c a r d   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         b o r d e r - r a d i u s :   1 6 p x ; 
         p a d d i n g :   1 5 p x ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 8 p x ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ; 
 } 
 . s e m i f i n a l i s t - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 8 ) ; 
 } 
 . v i e w - h i s t o r y - b t n   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 c 5 c e 7 ,   # a 2 9 b f e ) ; 
         c o l o r :   # f f f ; 
         b o r d e r :   n o n e ; 
         b o r d e r - r a d i u s :   8 p x ; 
         p a d d i n g :   8 p x   1 2 p x ; 
         f o n t - w e i g h t :   b o l d ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         f o n t - s i z e :   0 . 8 r e m ; 
         b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 1 0 8 ,   9 2 ,   2 3 1 ,   0 . 3 ) ; 
 } 
 . v i e w - h i s t o r y - b t n : h o v e r   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # a 2 9 b f e ,   # 6 c 5 c e 7 ) ; 
         b o x - s h a d o w :   0   6 p x   2 0 p x   r g b a ( 1 0 8 ,   9 2 ,   2 3 1 ,   0 . 5 ) ; 
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
 } 
 . h i s t o r y - m o d a l   { 
         p o s i t i o n :   f i x e d ; 
         t o p :   0 ;   l e f t :   0 ;   w i d t h :   1 0 0 % ;   h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 8 ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         z - i n d e x :   9 9 9 9 ; 
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ; 
         a n i m a t i o n :   f a d e I n   0 . 3 s   e a s e ; 
 } 
 . h i s t o r y - m o d a l - i n n e r   { 
         b a c k g r o u n d :   v a r ( - - s u r f a c e ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         w i d t h :   9 0 % ; 
         m a x - w i d t h :   6 0 0 p x ; 
         m a x - h e i g h t :   8 5 v h ; 
         o v e r f l o w - y :   a u t o ; 
         p a d d i n g :   2 5 p x ; 
         p o s i t i o n :   r e l a t i v e ; 
         b o x - s h a d o w :   0   2 0 p x   5 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
 } 
 . h i s t o r y - h e a d e r   { 
         t e x t - a l i g n :   c e n t e r ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         p a d d i n g - b o t t o m :   1 5 p x ; 
 } 
 . h i s t o r y - h e a d e r   h 3   { 
         m a r g i n :   1 0 p x   0   0   0 ; 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         f o n t - s i z e :   1 . 5 r e m ; 
 } 
 . h i s t o r y - c l a s s i f i c a t i o n   { 
         f o n t - s i z e :   0 . 9 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
 } 
 . h i s t o r y - c l a s s i f i c a t i o n   s t r o n g   { 
         c o l o r :   # f f d 7 0 0 ; 
 } 
 . h i s t o r y - m a t c h - l i s t   { 
         l i s t - s t y l e :   n o n e ; 
         p a d d i n g :   0 ; 
         m a r g i n :   0   0   2 5 p x   0 ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i   { 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         p a d d i n g :   1 2 p x   1 5 p x ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         b o r d e r - l e f t :   5 p x   s o l i d   # 5 5 5 ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e X ( 5 p x ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - w i n   {   b o r d e r - l e f t - c o l o r :   # 0 0 b 8 9 4 ;   } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - d r a w   {   b o r d e r - l e f t - c o l o r :   # f d c b 6 e ;   } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - l o s s   {   b o r d e r - l e f t - c o l o r :   # f f 7 6 7 5 ;   } 
 
 . h i s t o r y - r o u n d   { 
         f o n t - s i z e :   0 . 7 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         l e t t e r - s p a c i n g :   1 p x ; 
         m a r g i n - b o t t o m :   5 p x ; 
 } 
 . h i s t o r y - s c o r e l i n e   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         f o n t - s i z e :   1 . 1 r e m ; 
 } 
 . h i s t o r y - s c o r e l i n e   s t r o n g   { 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 3 ) ; 
         p a d d i n g :   3 p x   1 0 p x ; 
         b o r d e r - r a d i u s :   6 p x ; 
         f o n t - f a m i l y :   m o n o s p a c e ; 
         f o n t - s i z e :   1 . 2 r e m ; 
 } 
 . h i s t o r y - s c o r e l i n e   s p a n   { 
         f l e x :   1 ; 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   0 . 9 r e m ; 
}

 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       N O V O :   E s t i l o s   d o   H i s t ó r i c o   d e   J o g o s   ( M a t c h   H i s t o r y ) 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . s e m i f i n a l i s t s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 0 0 p x ,   1 f r ) ) ; 
         g a p :   1 5 p x ; 
         m a r g i n - t o p :   1 5 p x ; 
 } 
 . s e m i f i n a l i s t - c a r d   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
         b o r d e r - r a d i u s :   1 6 p x ; 
         p a d d i n g :   1 5 p x ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 8 p x ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ; 
 } 
 . s e m i f i n a l i s t - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 8 ) ; 
 } 
 . v i e w - h i s t o r y - b t n   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # 6 c 5 c e 7 ,   # a 2 9 b f e ) ; 
         c o l o r :   # f f f ; 
         b o r d e r :   n o n e ; 
         b o r d e r - r a d i u s :   8 p x ; 
         p a d d i n g :   8 p x   1 2 p x ; 
         f o n t - w e i g h t :   b o l d ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         f o n t - s i z e :   0 . 8 r e m ; 
         b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 1 0 8 ,   9 2 ,   2 3 1 ,   0 . 3 ) ; 
 } 
 . v i e w - h i s t o r y - b t n : h o v e r   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   # a 2 9 b f e ,   # 6 c 5 c e 7 ) ; 
         b o x - s h a d o w :   0   6 p x   2 0 p x   r g b a ( 1 0 8 ,   9 2 ,   2 3 1 ,   0 . 5 ) ; 
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
 } 
 . h i s t o r y - m o d a l   { 
         p o s i t i o n :   f i x e d ; 
         t o p :   0 ;   l e f t :   0 ;   w i d t h :   1 0 0 % ;   h e i g h t :   1 0 0 % ; 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 8 ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         z - i n d e x :   9 9 9 9 ; 
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ; 
         a n i m a t i o n :   f a d e I n   0 . 3 s   e a s e ; 
 } 
 . h i s t o r y - m o d a l - i n n e r   { 
         b a c k g r o u n d :   v a r ( - - s u r f a c e ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         b o r d e r - r a d i u s :   2 0 p x ; 
         w i d t h :   9 0 % ; 
         m a x - w i d t h :   6 0 0 p x ; 
         m a x - h e i g h t :   8 5 v h ; 
         o v e r f l o w - y :   a u t o ; 
         p a d d i n g :   2 5 p x ; 
         p o s i t i o n :   r e l a t i v e ; 
         b o x - s h a d o w :   0   2 0 p x   5 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
 } 
 . h i s t o r y - h e a d e r   { 
         t e x t - a l i g n :   c e n t e r ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ; 
         p a d d i n g - b o t t o m :   1 5 p x ; 
 } 
 . h i s t o r y - h e a d e r   h 3   { 
         m a r g i n :   1 0 p x   0   0   0 ; 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         f o n t - s i z e :   1 . 5 r e m ; 
 } 
 . h i s t o r y - c l a s s i f i c a t i o n   { 
         f o n t - s i z e :   0 . 9 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
 } 
 . h i s t o r y - c l a s s i f i c a t i o n   s t r o n g   { 
         c o l o r :   # f f d 7 0 0 ; 
 } 
 . h i s t o r y - m a t c h - l i s t   { 
         l i s t - s t y l e :   n o n e ; 
         p a d d i n g :   0 ; 
         m a r g i n :   0   0   2 5 p x   0 ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i   { 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         p a d d i n g :   1 2 p x   1 5 p x ; 
         m a r g i n - b o t t o m :   1 0 p x ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         b o r d e r - l e f t :   5 p x   s o l i d   # 5 5 5 ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e X ( 5 p x ) ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ; 
 } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - w i n   {   b o r d e r - l e f t - c o l o r :   # 0 0 b 8 9 4 ;   } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - d r a w   {   b o r d e r - l e f t - c o l o r :   # f d c b 6 e ;   } 
 . h i s t o r y - m a t c h - l i s t   l i . m a t c h - l o s s   {   b o r d e r - l e f t - c o l o r :   # f f 7 6 7 5 ;   } 
 
 . h i s t o r y - r o u n d   { 
         f o n t - s i z e :   0 . 7 5 r e m ; 
         c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         l e t t e r - s p a c i n g :   1 p x ; 
         m a r g i n - b o t t o m :   5 p x ; 
 } 
 . h i s t o r y - s c o r e l i n e   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         f o n t - s i z e :   1 . 1 r e m ; 
 } 
 . h i s t o r y - s c o r e l i n e   s t r o n g   { 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 3 ) ; 
         p a d d i n g :   3 p x   1 0 p x ; 
         b o r d e r - r a d i u s :   6 p x ; 
         f o n t - f a m i l y :   m o n o s p a c e ; 
         f o n t - s i z e :   1 . 2 r e m ; 
 } 
 . h i s t o r y - s c o r e l i n e   s p a n   { 
         f l e x :   1 ; 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   0 . 9 r e m ; 
         o p a c i t y :   0 . 8 ; 
 } 
 . h i s t o r y - s c o r e l i n e   s p a n . h i g h l i g h t - t e a m   { 
         f o n t - w e i g h t :   b o l d ; 
         c o l o r :   # f f f ; 
         o p a c i t y :   1 ; 
 } 
  
 @media (max-width: 768px) {
    .multiplayer-sidebar {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        padding: 8px 6px;
        z-index: 1000;
        margin-bottom: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        border-radius: 8px 0 0 8px;
    }
    .multiplayer-sidebar h3 {
        display: none;
    }
    .multiplayer-sidebar .sidebar-player-row {
        padding: 6px 4px;
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
    }
    .player-name-full, .count-full {
        display: none !important;
    }
    .count-short {
        display: inline-block !important;
        font-size: 0.95rem;
        font-weight: bold;
    }
    .multiplayer-sidebar .player-info {
        gap: 0;
    }
}

.penalty-toast {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 10000;
    transition: bottom 0.4s ease;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.penalty-toast.show {
    bottom: 30px;
}

/* Form Guide Styles */
.form-guide {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}
.form-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.form-w { background-color: #2ecc71; }
.form-d { background-color: #ffffff; }
.form-l { background-color: #e74c3c; }
.form-empty { background-color: #444; border: 1px solid #555; }

/* Podium Styles */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin: 40px 0;
    height: 350px;
}
.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 150px;
}
.podium-team {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}
.podium-team .team-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.podium-team img.team-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.podium-team .team-name {
    font-size: 1.1rem;
    font-weight: bold;
    white-space: normal;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.podium-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}
.step-1 .podium-box { height: 160px; background: linear-gradient(135deg, #ffd700, #daa520); }
.step-2 .podium-box { height: 110px; background: linear-gradient(135deg, #e0e0e0, #9e9e9e); }
.step-3 .podium-box { height: 70px; background: linear-gradient(135deg, #cd7f32, #8b4513); }
/* Chat Multiplayer */
.mp-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mp-chat-container.collapsed {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    background: #00b894;
    border: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.mp-chat-container.collapsed .chat-header,
.mp-chat-container.collapsed .chat-messages,
.mp-chat-container.collapsed .chat-input-area {
    display: none;
}

.mp-chat-container.collapsed::after {
    content: "💬";
    font-size: 1.8rem;
}

.mp-chat-container.collapsed.has-unread::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid #00b894;
    z-index: 10;
}

.chat-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.chat-minimize-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

.chat-minimize-btn:hover {
    color: #fff;
}


.chat-title {
    font-family: 'Patua One', cursive;
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 5px;
    text-align: center;
}

.chat-players-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.chat-player-badge {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.chat-msg.me {
    align-self: flex-end;
    background: #00b894;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chat-msg.other {
    align-self: flex-start;
    background: rgba(255,255,255,0.15);
    border-bottom-left-radius: 2px;
}

.msg-sender {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 2px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #00b894;
}

.chat-input-area button {
    background: #00b894;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: #00a082;
}

.chat-input-area button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.mp-sidebar-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--surface-strong);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

.mp-sidebar-panel.collapsed {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mp-sidebar-panel.collapsed .mp-sidebar-content {
    display: none;
}

.mp-sidebar-panel.collapsed .mp-sidebar-header {
    background: none;
    padding: 0;
    justify-content: center;
}

.mp-sidebar-panel.collapsed .mp-sidebar-header h4 {
    display: none;
}

.mp-sidebar-panel.collapsed .mp-sidebar-header button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
}

.mp-sidebar-panel.collapsed .mp-sidebar-header button::after {
    content: "👥";
    font-size: 1.2rem;
}

.mp-sidebar-header {
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-strong);
}

.mp-sidebar-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.mp-sidebar-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

.mp-sidebar-content {
    padding: 10px 15px;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mp-chat-container {
        width: 250px;
        height: 300px;
        bottom: 10px;
        right: 10px;
    }
    
    .mp-sidebar-panel {
        top: 10px;
        right: 10px;
        width: 200px;
    }

    .chat-input-area button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .chat-input-area button .send-text {
        display: none;
    }

    .chat-input-area button .send-icon {
        display: block;
        margin-right: 2px; /* slight visual balance for paper plane */
    }
}


/* Home Screen Layout */
.home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

@media (max-width: 800px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.home-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.home-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--text);
    margin: 0;
    font-family: 'Bevan', cursive;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.home-desc {
    font-size: 1.2rem;
    color: #bdc3c7;
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

.home-stats {
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 10px;
}

.home-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #1e272e, #2d3436);
}

.card-title {
    margin-bottom: 10px;
    color: #fff;
    font-size: 2rem;
}

.card-subtitle {
    color: #bdc3c7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    color: #95a5a6;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid #34495e;
    background: #111;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

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

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    text-align: center;
}

.btn-action {
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 16px;
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s, filter 0.2s;
    cursor: pointer;
    border: none;
    margin-bottom: 15px;
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-ranking {
    background: #f39c12;
}

.btn-primary {
    background: #e74c3c;
}

.btn-info {
    background: #3498db;
    font-size: 1.1rem;
    padding: 14px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 1.1rem;
    padding: 14px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.rooms-dropdown {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    text-align: left;
}

.rooms-content {
    padding: 10px;
}

#active-rooms-content {
    max-height: 200px;
    overflow-y: auto;
}


.home-modal { max-width: 1000px; width: 100%; padding: 50px; box-sizing: border-box; }
.home-modal .home-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; max-width: none; margin: 0; padding: 0; text-align: left; }
.home-modal .home-left { padding-right: 30px; display: block; }
.home-modal .home-right { display: flex; flex-direction: column; text-align: center; width: 100%; }
.home-modal .home-actions { width: 100%; display: flex; flex-direction: column; }
@media (max-width: 800px) {
    .home-modal { padding: 30px 20px; }
    .home-modal .home-container { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .home-modal .home-left { padding-right: 0; }
    .home-modal .home-title { font-size: clamp(2rem, 6vw, 3rem); }
    .home-modal .home-desc { font-size: 1rem; margin: 0 auto; }
}

