:root {
    --ink: #0b1714;
    --muted: #66736d;
    --line: #dfe7e1;
    --panel: #ffffff;
    --paper: #f4f7f1;
    --green: #006b48;
    --green-dark: #003d32;
    --gold: #d9a441;
    --blue: #1f5fa8;
    --red: #b93d2b;
    --shadow: 0 20px 50px rgba(10, 23, 20, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 241, 0.96)),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 12px 28px;
    border-bottom: 1px solid rgba(223, 231, 225, 0.86);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-size: 0.82rem;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.98rem;
}

.brand small,
.user-chip small,
.muted,
.panel-title a,
.sync-line {
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: #33433e;
    white-space: nowrap;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--green-dark);
    background: #e8f2ec;
}

.user-chip {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 10px;
    align-items: center;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.user-chip span,
.user-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip a {
    grid-row: span 2;
    color: var(--red);
    font-weight: 700;
}

.flash {
    width: min(1100px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 22px rgba(10, 23, 20, 0.07);
}

.flash-success {
    border-color: #a7d8bd;
    color: #075f3f;
}

.flash-error {
    border-color: #f1b1a6;
    color: #8f2419;
}

.flash-warning {
    border-color: #e7c778;
    color: #76500d;
}

.auth-page {
    background: #08110f;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
    min-height: calc(100vh - 72px);
}

.auth-layout.compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 40px 20px;
    background:
        linear-gradient(135deg, rgba(0, 61, 50, 0.86), rgba(8, 17, 15, 0.9)),
        url("../images/copa-hero.png") center / cover;
}

.auth-hero {
    display: flex;
    align-items: end;
    padding: 64px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 27, 20, 0.88), rgba(0, 107, 72, 0.34)),
        url("../images/copa-hero.png") center / cover;
}

.auth-hero h1,
.hero-panel h1,
.page-heading h1 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.04;
}

.auth-hero p,
.hero-panel p {
    max-width: 580px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.03rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.77rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-card {
    align-self: center;
    width: min(100%, 440px);
    margin: 24px;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card.centered-card {
    margin: 0;
}

.auth-card h2,
.panel h2,
.page-heading h1,
.section-title h2 {
    margin: 0;
}

.login-centered-layout {
    padding: 56px 20px;
}

.login-card {
    width: min(100%, 420px);
    padding: 32px;
}

.login-card h2 {
    font-size: 1.8rem;
    line-height: 1.12;
}

.auth-subtitle {
    margin: 8px 0 22px;
    color: var(--muted);
    font-weight: 700;
}

.login-card .btn {
    width: 100%;
    min-height: 46px;
}

.login-card .muted-link {
    justify-self: center;
}

.stack-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: #263833;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #ccd8d1;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 107, 72, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd8d1;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--green);
}

.btn-primary {
    border-color: var(--green);
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.72);
    color: #073b31;
    background: #fff;
}

.btn-small {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.88rem;
}

.muted-link {
    color: var(--green);
    font-weight: 800;
}

.page-grid {
    display: grid;
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 250px;
    padding: 34px;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.copa-hero,
.admin-hero {
    background:
        linear-gradient(135deg, rgba(2, 30, 25, 0.9), rgba(0, 107, 72, 0.45)),
        url("../images/copa-hero.png") center / cover;
}

.countdown {
    display: grid;
    place-items: center;
    width: 180px;
    min-height: 136px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.countdown span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
}

.countdown small {
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.panel,
.action-tile,
.podium-card,
.match-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 26px rgba(10, 23, 20, 0.06);
}

.metric-card {
    display: grid;
    gap: 6px;
    min-height: 104px;
    padding: 18px;
}

.metric-card span {
    color: var(--muted);
    font-weight: 800;
}

.metric-card strong {
    font-size: 1.7rem;
}

.action-band,
.two-column,
.champion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.two-column.align-start {
    align-items: start;
}

.action-tile {
    display: grid;
    gap: 5px;
    padding: 20px;
}

.action-tile.primary {
    color: #fff;
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.action-tile strong {
    font-size: 1.18rem;
}

.action-tile span {
    color: inherit;
    opacity: 0.78;
}

.panel {
    padding: 20px;
}

.panel-title,
.page-heading,
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-title {
    margin-bottom: 16px;
}

.rules-grid {
    display: grid;
    grid-template-columns: minmax(85px, 1fr) 48px minmax(120px, 1.2fr);
    gap: 10px;
    align-items: center;
}

.rules-grid span,
.rules-grid small {
    color: var(--muted);
}

.rules-grid strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
}

.curiosity-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.curiosity-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.curiosity-item img {
    width: 84px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.curiosity-item p {
    margin: 4px 0 0;
    color: var(--muted);
}

.status-pill {
    display: inline-grid;
    min-width: 94px;
    min-height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
}

.status-pill.open {
    background: var(--green);
}

.status-pill.closed {
    background: var(--red);
}

.champion-panel {
    background:
        linear-gradient(135deg, rgba(217, 164, 65, 0.16), rgba(31, 95, 168, 0.08)),
        #fff;
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
}

.tab-button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #33433e;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    white-space: nowrap;
}

.tab-button.is-active {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

.stage-section {
    display: none;
}

.stage-section.is-active {
    display: grid;
    gap: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-card {
    display: grid;
    gap: 14px;
    min-height: 174px;
    padding: 16px;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.scoreline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 18px 54px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.scoreline input,
.score-edit input {
    min-height: 44px;
    padding: 8px;
    text-align: center;
    font-weight: 900;
}

.scoreline > span,
.score-edit span {
    text-align: center;
    color: var(--muted);
    font-weight: 900;
}

.team-badge {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.team-badge img,
.team-badge > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #f8faf9;
}

.team-badge img {
    object-fit: contain;
    padding: 3px;
}

.team-badge > span {
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 900;
}

.team-badge strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
}

.advance-select {
    grid-template-columns: 104px 1fr;
    align-items: center;
    color: var(--muted);
}

.points-chip {
    justify-self: start;
    padding: 6px 9px;
    border-radius: 8px;
    color: #073b31;
    background: #dff0e6;
    font-weight: 800;
    font-size: 0.86rem;
}

.sticky-actions {
    position: sticky;
    bottom: 14px;
    display: flex;
    justify-content: end;
    padding: 12px;
    border: 1px solid rgba(223, 231, 225, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.podium-card {
    display: grid;
    gap: 5px;
    min-height: 140px;
    padding: 18px;
}

.podium-card span {
    color: var(--gold);
    font-weight: 900;
}

.podium-card b {
    font-size: 1.4rem;
}

.place-1 {
    min-height: 168px;
    border-color: rgba(217, 164, 65, 0.6);
    background: linear-gradient(180deg, rgba(217, 164, 65, 0.16), #fff);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.row-actions,
.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-row td {
    background: #f8faf8;
}

.inline-form input {
    max-width: 190px;
}

.manual-match-form {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1fr 1fr 1fr auto;
    gap: 10px;
}

.matches-table input,
.matches-table select {
    min-width: 90px;
}

.score-edit {
    display: grid;
    grid-template-columns: 48px 16px 48px;
    gap: 6px;
    align-items: center;
}

.sync-line,
.sync-status {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.sync-status.success {
    color: var(--green);
}

.sync-status.error {
    color: var(--red);
}

.curiosity-admin-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.curiosity-admin-item:first-of-type {
    border-top: 0;
}

.standings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mini-standings {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fbfcfb;
}

.mini-standings h3,
.bracket-column h3 {
    margin: 0;
    padding: 10px 12px;
    color: #fff;
    background: var(--green-dark);
    font-size: 0.9rem;
}

.mini-standings table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.mini-standings th,
.mini-standings td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.mini-standings th {
    color: var(--muted);
    font-size: 0.75rem;
}

.bracket-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bracket-column {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fbfcfb;
}

.bracket-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.bracket-match span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-match b {
    text-align: center;
}

.narrow-panel,
.empty-state {
    width: min(720px, calc(100% - 32px));
    margin: 50px auto;
}

.error-box {
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
    color: #8f2419;
    background: #fff3f1;
}

code {
    padding: 2px 5px;
    border-radius: 6px;
    color: #1c4e3f;
    background: #e8f2ec;
}

@media (max-width: 980px) {
    .topbar {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .brand {
        min-width: 0;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
    }

    .user-chip {
        min-width: 150px;
        margin-left: auto;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 320px;
        padding: 34px 24px;
    }

    .auth-card {
        justify-self: center;
    }

    .metric-grid,
    .matches-grid,
    .two-column,
    .action-band,
    .champion-grid,
    .podium,
    .standings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .manual-match-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .topbar {
        align-items: start;
    }

    .user-chip {
        width: 100%;
        grid-template-columns: 1fr auto;
    }

    .auth-hero h1,
    .hero-panel h1,
    .page-heading h1 {
        font-size: 2rem;
    }

    .auth-card {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 20px;
    }

    .page-grid {
        width: min(100% - 20px, 1180px);
        margin-top: 14px;
    }

    .hero-panel {
        display: grid;
        min-height: 300px;
        padding: 22px;
    }

    .countdown {
        width: 100%;
        min-height: 104px;
    }

    .metric-grid,
    .matches-grid,
    .two-column,
    .action-band,
    .champion-grid,
    .podium,
    .standings-grid {
        grid-template-columns: 1fr;
    }

    .scoreline {
        grid-template-columns: 1fr 42px 18px 42px 1fr;
        gap: 5px;
    }

    .team-badge {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .team-badge img,
    .team-badge > span {
        width: 28px;
        height: 28px;
    }

    .team-badge strong {
        font-size: 0.82rem;
    }

    .advance-select,
    .manual-match-form,
    .curiosity-admin-item {
        grid-template-columns: 1fr;
    }

    .rules-grid {
        grid-template-columns: 1fr 42px;
    }

    .rules-grid small {
        grid-column: 1 / -1;
    }
}

/* Copa dashboard skin */
body:not(.auth-page) {
    background: #f3f6fb;
    color: #07123f;
}

.app-shell.with-sidebar {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    min-height: 100vh;
}

.content-shell {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
    height: 100vh;
    padding: 28px 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0, 18, 43, 0.96), rgba(0, 9, 20, 0.99)),
        url("../images/copa-hero.png") center / cover;
    overflow-y: auto;
}

.side-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    color: #fff;
    font-size: 1.54rem;
    font-weight: 1000;
    line-height: 0.95;
}

.side-logo strong {
    color: #ffd22f;
    font-size: 1.72rem;
}

.logo-ball {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 24%, transparent 25%),
        conic-gradient(from 22deg, #04102d 0 12%, #fff 12% 24%, #04102d 24% 36%, #fff 36% 48%, #04102d 48% 60%, #fff 60% 72%, #04102d 72% 84%, #fff 84% 100%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 0 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    font-weight: 850;
}

.side-nav a span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
}

.side-nav a.is-active,
.side-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, #009734, #006e2a);
    box-shadow: 0 12px 26px rgba(0, 151, 52, 0.24);
}

.sidebar-card {
    display: grid;
    gap: 14px;
    margin-top: auto;
    min-height: 300px;
    padding: 26px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 32, 57, 0.74), rgba(0, 8, 20, 0.92)),
        url("../images/copa-hero.png") bottom / cover;
}

.sidebar-card strong {
    align-self: end;
    font-size: 1.2rem;
}

.sidebar-card small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.with-sidebar .dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(280px, 520px) auto;
    gap: 22px;
    min-height: 118px;
    padding: 18px 26px;
    border-bottom: 1px solid #e4eaf2;
    background: rgba(255, 255, 255, 0.94);
}

.page-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-medal {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    color: #ffd22f;
    background: #061a62;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 1000;
    letter-spacing: 0;
}

.page-brand h1 {
    margin: 0;
    color: #070d3a;
    font-size: 2.55rem;
    line-height: 1;
}

.page-brand p {
    margin: 8px 0 0;
    color: #667085;
    font-weight: 650;
}

.top-splash {
    min-height: 78px;
    border-radius: 8px;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0) 0 18%, rgba(255, 210, 47, 0.86) 18% 30%, rgba(0, 151, 52, 0.92) 30% 60%, rgba(255, 255, 255, 0) 60%),
        url("../images/copa-hero.png") center / cover;
    clip-path: polygon(8% 8%, 100% 0, 92% 100%, 0 88%);
}

.with-sidebar .user-chip {
    min-width: 210px;
    border: 0;
    box-shadow: none;
}

.with-sidebar .flash {
    width: calc(100% - 52px);
    margin: 16px 26px 0;
}

.with-sidebar .page-grid {
    width: auto;
    max-width: 1600px;
    margin: 18px auto 34px;
    padding: 0 22px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1.1fr) minmax(320px, 1fr) minmax(380px, 1.25fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-grid .panel,
.points-panel,
.podium-card,
.match-card,
.metric-card,
.action-tile {
    border-color: #dfe6f0;
    box-shadow: 0 10px 25px rgba(8, 25, 66, 0.08);
}

.next-game-panel {
    min-height: 330px;
}

.panel-title h2 {
    color: #003d8f;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.panel-title span {
    color: #445064;
    font-weight: 800;
}

.featured-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 26px 0 12px;
}

.featured-match .team-badge {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.featured-match .team-badge img,
.featured-match .team-badge > span {
    width: 78px;
    height: 78px;
}

.featured-match .team-badge strong {
    max-width: 150px;
    font-size: 1.02rem;
}

.versus {
    color: #07123f;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 900;
}

.match-time {
    color: #445064;
    text-align: center;
    font-weight: 850;
}

.quick-prediction {
    display: grid;
    grid-template-columns: 72px 24px 72px;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0 16px;
}

.quick-prediction span {
    display: grid;
    height: 58px;
    place-items: center;
    border: 1px solid #d7dfec;
    border-radius: 8px;
    font-size: 1.7rem;
    font-weight: 950;
}

.full-button {
    width: 100%;
}

.btn-warning {
    border-color: #ffc400;
    color: #06113d;
    background: linear-gradient(180deg, #ffd83d, #ffc000);
}

.points-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #00973c, #00682d);
    box-shadow: 0 16px 38px rgba(0, 117, 45, 0.22);
}

.points-panel .panel-title h2,
.points-panel .panel-title span,
.points-panel p {
    color: #fff;
}

.big-score {
    display: flex;
    align-items: end;
    gap: 10px;
    font-size: 4rem;
    font-weight: 1000;
    line-height: 1;
}

.big-score small {
    margin-bottom: 8px;
    font-size: 1rem;
}

.score-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.score-split span {
    display: grid;
    gap: 4px;
    padding: 16px 10px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.score-split span:first-child {
    border-left: 0;
}

.score-split strong {
    font-size: 1.45rem;
}

.ranking-panel {
    grid-row: span 2;
}

.ranking-panel .data-table,
.ranking-table {
    min-width: 0;
}

.ranking-link {
    color: #071a65;
    font-weight: 900;
}

.ranking-link:hover {
    color: #00872e;
}

.games-panel {
    grid-column: span 2;
}

.round-games {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.round-game-card {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    background: #fff;
}

.round-game-card span {
    color: #07123f;
    font-weight: 900;
}

.round-game-card small {
    color: #586579;
}

.round-game-card b {
    justify-self: start;
    padding: 4px 10px;
    border-radius: 8px;
    color: #007a2c;
    background: #e3f6e9;
    font-size: 0.82rem;
}

.curiosity-panel {
    grid-column: span 1;
}

.rules-panel {
    grid-column: 1 / -1;
}

.rules-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rules-strip span {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border-left: 1px solid #dfe6f0;
    color: #344054;
}

.rules-strip span:first-child {
    border-left: 0;
}

.rules-strip strong {
    color: #071a65;
}

.profile-heading p {
    margin: 8px 0 0;
    color: #667085;
}

.champion-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.champion-summary span {
    padding: 14px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    background: #f8fafc;
}

.predictions-page .page-heading,
.page-heading {
    padding: 0 4px;
}

.predictions-page .matches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.predictions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.prediction-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.prediction-sidebar {
    position: sticky;
    top: 136px;
    display: grid;
    gap: 14px;
}

.progress-panel {
    display: grid;
    gap: 12px;
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress-head span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 7px solid #00872e;
    border-radius: 50%;
    color: #07123f;
    font-weight: 950;
}

.progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #e7edf5;
    overflow: hidden;
}

.progress-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #00872e;
}

.side-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.side-metrics span,
.quick-rules span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #445064;
}

.side-metrics strong {
    color: #07123f;
    font-size: 1.2rem;
}

.quick-rules {
    display: grid;
    gap: 8px;
}

.quick-rules span {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.quick-rules strong {
    color: #071a65;
}

.match-card {
    border-left: 6px solid #00872e;
}

.match-card .points-chip {
    background: #e3f6e9;
}

.data-table th {
    color: #475467;
    background: #f8fafc;
}

.data-table tr:hover td {
    background: #f6fbf8;
}

input[readonly] {
    color: #667085;
    background: #eef2f7;
    cursor: not-allowed;
}

@media (max-width: 1260px) {
    .app-shell.with-sidebar {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .with-sidebar .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .top-splash {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-panel,
    .games-panel,
    .curiosity-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .rules-panel {
        grid-column: 1 / -1;
    }

    .round-games,
    .rules-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell.with-sidebar {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 18px;
    }

    .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-card {
        display: none;
    }

    .with-sidebar .dashboard-topbar {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .page-brand h1 {
        font-size: 2rem;
    }

    .dashboard-grid,
    .predictions-page .matches-grid,
    .predictions-layout,
    .champion-summary {
        grid-template-columns: 1fr;
    }

    .prediction-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .side-nav {
        grid-template-columns: 1fr;
    }

    .page-medal {
        width: 56px;
        height: 56px;
        font-size: 0.78rem;
    }

    .round-games,
    .rules-strip,
    .score-split {
        grid-template-columns: 1fr;
    }

    .score-split span {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .score-split span:first-child {
        border-top: 0;
    }
}

/* Refinements for delicate dashboard */
.with-sidebar .dashboard-topbar {
    min-height: 104px;
}

.page-brand h1 {
    font-size: 2.18rem;
    font-weight: 850;
}

.page-brand p {
    margin-top: 6px;
    font-size: 0.95rem;
}

.panel,
.metric-card,
.match-card,
.podium-card,
.action-tile,
.round-game-card,
.window-card {
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(8, 25, 66, 0.055);
}

.panel {
    padding: 18px;
}

.panel-title h2 {
    font-size: 0.98rem;
}

.side-nav a {
    min-height: 52px;
    font-size: 0.98rem;
}

.sidebar {
    padding: 24px 16px;
}

.curiosity-item.no-image {
    grid-template-columns: 1fr;
}

.curiosity-item.no-image div {
    min-width: 0;
}

.curiosity-item.no-image p {
    max-width: 62ch;
}

.curiosity-panel .curiosity-item {
    align-items: start;
}

.curiosity-panel .curiosity-item strong {
    display: block;
    color: #07123f;
    line-height: 1.25;
}

.curiosity-panel .curiosity-item p {
    line-height: 1.45;
}

.locked-chip {
    color: #6b4f00;
    background: #fff2c2;
}

.section-title small {
    color: #667085;
    font-weight: 800;
}

.window-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.window-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dfe6f0;
    background: #fbfcff;
}

.window-card strong {
    color: #071a65;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.rules-prize-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    align-items: start;
}

.prize-hero {
    grid-row: span 2;
    color: #fff;
    background: linear-gradient(135deg, #071a65, #008f35);
}

.prize-hero h1 {
    max-width: 620px;
    margin: 0 0 22px;
    font-size: 2rem;
    line-height: 1.08;
}

.prize-list {
    display: grid;
    gap: 12px;
}

.prize-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.15rem;
    font-weight: 900;
}

.prize-list strong {
    color: #ffd83d;
}

.rule-copy {
    display: grid;
    gap: 10px;
    color: #445064;
}

.rule-copy p {
    margin: 0;
}

.quick-rules strong,
.data-table code {
    overflow-wrap: anywhere;
}

@media (max-width: 1260px) {
    .window-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .rules-prize-grid,
    .window-grid {
        grid-template-columns: 1fr;
    }

    .page-brand h1 {
        font-size: 1.8rem;
    }
}

/* Responsive polish */
.content-shell,
.page-grid,
.panel,
.metric-card,
.match-card,
.podium-card,
.action-tile,
.round-game-card,
.window-card,
.auth-card,
.data-table th,
.data-table td {
    min-width: 0;
}

.panel p,
.match-card,
.round-game-card,
.curiosity-item,
.quick-rules span,
.rules-strip span,
.prize-list span,
.data-table td {
    overflow-wrap: anywhere;
}

.table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.row-actions,
.inline-form,
.panel-title,
.page-heading,
.prize-list span {
    flex-wrap: wrap;
}

.row-actions,
.inline-form {
    align-items: stretch;
}

.inline-form {
    max-width: 100%;
}

.inline-form input {
    flex: 1 1 150px;
    min-width: 0;
}

.quick-rules strong,
.rules-strip strong,
.panel-title a {
    min-width: 0;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .predictions-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .round-games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-shell.with-sidebar {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 16px;
    }

    .side-logo {
        min-height: 48px;
        font-size: 1.18rem;
    }

    .side-logo strong {
        font-size: 1.32rem;
    }

    .logo-ball {
        width: 44px;
        height: 44px;
    }

    .side-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .side-nav a {
        grid-template-columns: 28px max-content;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.92rem;
    }

    .side-nav a span {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .sidebar-card {
        display: none;
    }

    .with-sidebar .dashboard-topbar {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
        padding: 16px;
    }

    .page-brand {
        gap: 12px;
    }

    .page-medal {
        width: 56px;
        height: 56px;
        font-size: 0.76rem;
    }

    .with-sidebar .user-chip {
        width: 100%;
        min-width: 0;
    }

    .with-sidebar .flash {
        width: calc(100% - 32px);
        margin: 14px 16px 0;
    }

    .with-sidebar .page-grid {
        width: auto;
        margin: 16px auto 28px;
        padding: 0 14px;
    }

    .dashboard-grid,
    .predictions-layout,
    .predictions-page .matches-grid,
    .rules-prize-grid,
    .window-grid,
    .champion-summary {
        grid-template-columns: 1fr;
    }

    .prediction-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .guest-topbar {
        position: relative;
        justify-content: center;
        min-height: 64px;
        padding: 10px 16px;
    }

    .brand {
        min-width: 0;
    }

    .brand strong,
    .brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 64px);
    }

    .login-centered-layout {
        min-height: calc(100vh - 64px);
        padding: 28px 14px;
    }

    .login-card,
    .auth-card {
        width: min(100%, 420px);
        padding: 22px;
    }

    .auth-hero {
        min-height: 260px;
        padding: 28px 20px;
    }

    .page-grid {
        width: min(100% - 20px, 1180px);
        margin: 16px auto 30px;
    }

    .page-heading,
    .panel-title {
        align-items: flex-start;
    }

    .page-heading {
        display: grid;
    }

    .page-brand h1 {
        font-size: 1.55rem;
        line-height: 1.05;
    }

    .page-brand p {
        font-size: 0.9rem;
    }

    .metric-grid,
    .matches-grid,
    .two-column,
    .action-band,
    .champion-grid,
    .podium,
    .standings-grid,
    .round-games,
    .rules-strip,
    .side-metrics,
    .manual-match-form {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 240px;
        padding: 20px;
    }

    .hero-panel h1,
    .auth-hero h1,
    .page-heading h1,
    .prize-hero h1 {
        font-size: 1.65rem;
    }

    .featured-match {
        grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
        gap: 8px;
        margin: 18px 0 10px;
    }

    .featured-match .team-badge img,
    .featured-match .team-badge > span {
        width: 58px;
        height: 58px;
    }

    .versus {
        font-size: 1.35rem;
    }

    .big-score {
        font-size: 3rem;
    }

    .score-split {
        grid-template-columns: 1fr;
    }

    .score-split span {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .score-split span:first-child {
        border-top: 0;
    }

    .quick-rules span {
        grid-template-columns: 1fr;
    }

    .prize-list span {
        align-items: flex-start;
    }

    .data-table {
        min-width: 620px;
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .manual-match-form input,
    .manual-match-form select,
    .manual-match-form button {
        width: 100%;
    }

    .matches-table input,
    .matches-table select {
        min-width: 76px;
    }

    .sticky-actions {
        right: 10px;
        bottom: 10px;
        justify-content: stretch;
    }

    .sticky-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .topbar {
        min-height: 60px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand strong {
        font-size: 0.92rem;
    }

    .brand small {
        font-size: 0.78rem;
    }

    .sidebar {
        padding: 14px 12px;
    }

    .side-nav a {
        min-width: 138px;
    }

    .with-sidebar .dashboard-topbar {
        padding: 14px 12px;
    }

    .with-sidebar .page-grid {
        padding: 0 10px;
    }

    .panel,
    .metric-card,
    .match-card,
    .podium-card,
    .action-tile,
    .round-game-card,
    .window-card {
        padding: 14px;
    }

    .login-card,
    .auth-card {
        padding: 20px;
    }

    .login-card h2 {
        font-size: 1.45rem;
    }

    .scoreline {
        grid-template-columns: minmax(0, 1fr) 38px 14px 38px minmax(0, 1fr);
        gap: 4px;
    }

    .scoreline input,
    .score-edit input {
        min-height: 40px;
        padding: 6px;
    }

    .team-badge {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 6px;
    }

    .team-badge img,
    .team-badge > span {
        width: 26px;
        height: 26px;
    }

    .team-badge strong {
        font-size: 0.8rem;
    }

    .advance-select,
    .curiosity-admin-item,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .curiosity-item {
        grid-template-columns: 64px 1fr;
    }

    .curiosity-item img {
        width: 64px;
        height: 58px;
    }

    .row-actions,
    .inline-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .row-actions .btn,
    .inline-form .btn,
    .inline-form input {
        width: 100%;
        max-width: none;
    }

    .data-table {
        min-width: 560px;
        font-size: 0.86rem;
    }

    .bracket-grid {
        grid-auto-columns: minmax(220px, 86vw);
    }
}

@media (max-width: 380px) {
    .scoreline {
        grid-template-columns: minmax(0, 1fr) 34px 12px 34px minmax(0, 1fr);
    }

    .quick-prediction {
        grid-template-columns: 58px 18px 58px;
    }

    .quick-prediction span {
        height: 50px;
        font-size: 1.35rem;
    }

    .data-table {
        min-width: 520px;
    }
}

/* Grupo Autobras skin */
:root {
    --ink: #202124;
    --muted: #69707a;
    --line: #e4e2de;
    --panel: #ffffff;
    --paper: #f6f4f1;
    --green: #f47b20;
    --green-dark: #c85d12;
    --gold: #ffb15f;
    --blue: #2c2f35;
    --red: #b42318;
    --shadow: 0 18px 45px rgba(26, 26, 26, 0.12);
    --autobras-orange: #f47b20;
    --autobras-orange-dark: #c85d12;
    --autobras-ink: #202124;
    --autobras-charcoal: #17181b;
    --autobras-soft: #fff7f0;
    --autobras-green: #0c7a55;
}

body:not(.auth-page) {
    color: var(--autobras-ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 244, 241, 0.96)),
        #f6f4f1;
}

.topbar,
.with-sidebar .dashboard-topbar {
    border-bottom-color: rgba(228, 226, 222, 0.95);
    background: rgba(255, 255, 255, 0.94);
}

.brand-mark,
.logo-ball,
.page-medal {
    background: var(--autobras-orange);
    box-shadow: 0 12px 24px rgba(244, 123, 32, 0.25);
}

.brand-mark {
    font-weight: 1000;
}

.brand strong {
    color: var(--autobras-ink);
}

.brand small {
    color: var(--autobras-orange);
    font-weight: 850;
}

.sidebar {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 21, 24, 0.97), rgba(12, 13, 15, 0.99)),
        url("../images/copa-hero.png") center / cover;
    border-right: 1px solid rgba(244, 123, 32, 0.22);
}

.side-logo {
    align-items: center;
    min-height: 76px;
}

.logo-ball {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--autobras-orange), #ff9a3d);
}

.logo-ball::before {
    content: "AB";
    color: #fff;
    font-size: 1rem;
    font-weight: 1000;
}

.brand-wordmark {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1;
}

.brand-wordmark small,
.brand-wordmark em {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.brand-wordmark strong {
    color: var(--autobras-orange);
    font-size: 1.42rem;
    line-height: 0.95;
}

.side-nav a {
    color: rgba(255, 255, 255, 0.78);
}

.side-nav a span {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.side-nav a:hover,
.side-nav a.is-active {
    color: #fff;
    background: rgba(244, 123, 32, 0.18);
}

.side-nav a.is-active span {
    color: #fff;
    background: var(--autobras-orange);
}

.sidebar-card {
    border: 1px solid rgba(244, 123, 32, 0.28);
    background:
        linear-gradient(135deg, rgba(244, 123, 32, 0.92), rgba(200, 93, 18, 0.88)),
        url("../images/copa-hero.png") center / cover;
}

.sidebar-card strong,
.sidebar-card small {
    color: #fff;
}

.page-medal {
    color: #fff;
    background: linear-gradient(135deg, var(--autobras-orange), var(--autobras-orange-dark));
}

.page-brand h1,
.panel-title h2,
.ranking-link,
.window-card strong,
.quick-rules strong,
.rules-strip strong,
.curiosity-panel .curiosity-item strong {
    color: var(--autobras-ink);
}

.page-brand p,
.panel-title span,
.match-time,
.profile-heading p,
.section-title small {
    color: var(--muted);
}

.top-splash {
    position: relative;
    background:
        linear-gradient(135deg, rgba(244, 123, 32, 0.94), rgba(32, 33, 36, 0.94)),
        url("../images/copa-hero.png") center / cover;
}

.top-splash::after {
    content: "AUTOBRAS";
    position: absolute;
    right: 24px;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.2rem;
    font-weight: 1000;
}

.panel,
.metric-card,
.match-card,
.podium-card,
.action-tile,
.round-game-card,
.window-card {
    border-color: #e4e2de;
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.07);
}

.panel:hover,
.match-card:hover,
.round-game-card:hover {
    border-color: rgba(244, 123, 32, 0.42);
}

.auth-page {
    background:
        linear-gradient(135deg, rgba(20, 21, 24, 0.95), rgba(46, 29, 18, 0.92)),
        url("../images/copa-hero.png") center / cover fixed;
}

.auth-layout.compact,
.auth-hero {
    background:
        linear-gradient(135deg, rgba(20, 21, 24, 0.92), rgba(244, 123, 32, 0.44)),
        url("../images/copa-hero.png") center / cover;
}

.auth-hero h1,
.login-card h2 {
    color: var(--autobras-ink);
}

.auth-hero h1,
.auth-hero p {
    color: #fff;
}

.login-card {
    border-top: 6px solid var(--autobras-orange);
}

.auth-subtitle,
.eyebrow,
.muted-link {
    color: var(--autobras-orange);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--autobras-orange);
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.16);
}

.btn:hover {
    border-color: var(--autobras-orange);
}

.btn-primary,
.btn-warning,
.tab-button.is-active,
.status-pill.open {
    border-color: var(--autobras-orange);
    color: #fff;
    background: linear-gradient(135deg, var(--autobras-orange), var(--autobras-orange-dark));
}

.btn-light {
    color: var(--autobras-ink);
}

.hero-panel,
.copa-hero,
.admin-hero,
.prize-hero {
    background:
        linear-gradient(135deg, rgba(23, 24, 27, 0.93), rgba(244, 123, 32, 0.68)),
        url("../images/copa-hero.png") center / cover;
}

.metric-card strong,
.big-score,
.quick-prediction span,
.score-split strong {
    color: var(--autobras-ink);
}

.points-panel {
    color: #fff;
    background:
        linear-gradient(135deg, var(--autobras-orange), var(--autobras-charcoal));
    box-shadow: 0 18px 40px rgba(244, 123, 32, 0.24);
}

.points-panel .big-score,
.points-panel .score-split strong,
.points-panel .panel-title h2,
.points-panel .panel-title span,
.points-panel p {
    color: #fff;
}

.champion-panel {
    background:
        linear-gradient(135deg, rgba(244, 123, 32, 0.12), rgba(12, 122, 85, 0.06)),
        #fff;
}

.match-card {
    border-left-color: var(--autobras-orange);
}

.points-chip,
.match-card .points-chip,
.round-game-card b {
    color: #8a3a09;
    background: #fff0e4;
}

.locked-chip {
    color: #6b5200;
    background: #fff5cc;
}

.team-badge > span {
    color: var(--autobras-orange);
    background: #fff7f0;
}

.rules-grid strong,
.progress-head span {
    border-color: var(--autobras-orange);
    color: var(--autobras-ink);
}

.progress-bar i {
    background: var(--autobras-orange);
}

.side-metrics span,
.quick-rules span,
.champion-summary span,
.window-card,
.mini-standings,
.bracket-column,
.data-table th {
    background: #fbfaf8;
}

.data-table th {
    color: #5c626b;
}

.data-table tr:hover td {
    background: #fff7f0;
}

.mini-standings h3,
.bracket-column h3 {
    color: #fff;
    background: var(--autobras-charcoal);
}

.ranking-link:hover,
.panel-title a:hover {
    color: var(--autobras-orange);
}

.prize-list strong {
    color: #fff0d6;
}

code {
    color: #8a3a09;
    background: #fff0e4;
}

@media (max-width: 920px) {
    .brand-wordmark strong {
        font-size: 1.16rem;
    }

    .brand-wordmark em {
        display: none;
    }
}
