:root {
    --green: #006847;
    --green-dark: #053d2d;
    --red: #ce1126;
    --red-dark: #8f0d20;
    --white: #fffaf0;
    --ink: #101410;
    --muted: #5d665f;
    --gold: #d8a43b;
    --paper: #f7f2e7;
    --line: rgba(16, 20, 16, 0.12);
    --shadow: 0 22px 60px rgba(13, 29, 20, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(0, 104, 71, 0.08), transparent 32%),
        linear-gradient(245deg, rgba(206, 17, 38, 0.08), transparent 30%),
        linear-gradient(180deg, #fffdf7, var(--paper) 48%, #ece2d1);
    font-family: "Inter", Arial, sans-serif;
}

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

button,
input {
    font: inherit;
}

.site-header {
    min-height: 96vh;
    color: white;
    background:
        linear-gradient(90deg, rgba(0, 40, 28, 0.92), rgba(0, 40, 28, 0.68) 42%, rgba(104, 10, 24, 0.44)),
        url("../assets/hero-mexico-worldcup.png") center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.home-header {
    min-height: 78vh;
}

.page-header {
    --host-primary: var(--green);
    --host-secondary: var(--red);
    --host-soft: #fff2cf;
    --host-shadow: rgba(0, 104, 71, 0.34);
    --host-select: var(--green-dark);
    color: white;
    background:
        linear-gradient(90deg, rgba(0, 40, 28, 0.96), rgba(0, 40, 28, 0.78) 54%, rgba(104, 10, 24, 0.68)),
        url("../assets/hero-mexico-worldcup.png") center 42% / cover no-repeat;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.history-header {
    background:
        linear-gradient(90deg, rgba(16, 20, 16, 0.92), rgba(0, 104, 71, 0.78), rgba(216, 164, 59, 0.62)),
        url("../assets/hero-mexico-worldcup.png") center / cover no-repeat;
}

.page-title {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 62px;
}

.page-title h1 {
    font-size: clamp(4rem, 12vw, 8rem);
}

.page-title p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 1.08rem;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--paper));
    pointer-events: none;
}

.page-header::after {
    display: none;
}

body[data-host-country="Canada"] .page-header {
    --host-primary: #c9152e;
    --host-secondary: #8b0016;
    --host-soft: #ffe8ee;
    --host-shadow: rgba(201, 21, 46, 0.38);
    --host-select: #8b0016;
    background:
        linear-gradient(90deg, rgba(88, 0, 18, 0.94), rgba(176, 18, 30, 0.78), rgba(255, 255, 255, 0.18)),
        url("../assets/stadium-toronto.png") center 46% / cover no-repeat;
}

body[data-host-country="Mexico"] .page-header {
    --host-primary: #008a5f;
    --host-secondary: #004d37;
    --host-soft: #e8fff6;
    --host-shadow: rgba(0, 138, 95, 0.38);
    --host-select: #004d37;
    background:
        linear-gradient(90deg, rgba(0, 40, 28, 0.95), rgba(0, 104, 71, 0.76), rgba(206, 17, 38, 0.58)),
        url("../assets/stadium-azteca.png") center 48% / cover no-repeat;
}

body[data-host-country="Estados Unidos"] .page-header {
    --host-primary: #143680;
    --host-secondary: #0b1d4f;
    --host-soft: #e8f0ff;
    --host-shadow: rgba(20, 54, 128, 0.42);
    --host-select: #0b1d4f;
    background:
        linear-gradient(90deg, rgba(8, 23, 63, 0.94), rgba(19, 51, 117, 0.74) 52%, rgba(188, 24, 48, 0.62)),
        url("../assets/stadium-metlife.png") center 48% / cover no-repeat;
}

.nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 253, 247, 0.96) 0 48%, transparent 49%),
        conic-gradient(from 225deg, var(--host-primary), var(--gold), var(--host-secondary), var(--host-primary));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px var(--host-shadow), inset 0 0 0 3px rgba(255, 255, 255, 0.42);
    color: transparent;
    font-family: "Oswald", sans-serif;
    font-size: 0;
    position: relative;
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    width: 22px;
    height: 28px;
    border-radius: 9px 9px 4px 4px;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.5) 19% 28%, transparent 29%),
        linear-gradient(180deg, #ffe7a3 0 22%, var(--gold) 23% 70%, #a66f10 71%);
    clip-path: polygon(14% 0, 86% 0, 76% 46%, 61% 46%, 61% 72%, 82% 72%, 82% 88%, 18% 88%, 18% 72%, 39% 72%, 39% 46%, 24% 46%);
    filter: drop-shadow(0 2px 2px rgba(16, 20, 16, 0.32));
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(16, 20, 16, 0.84);
    background:
        radial-gradient(circle at 50% 50%, #101410 0 18%, transparent 19%),
        linear-gradient(90deg, transparent 46%, rgba(16, 20, 16, 0.7) 47% 53%, transparent 54%),
        linear-gradient(0deg, transparent 46%, rgba(16, 20, 16, 0.7) 47% 53%, transparent 54%),
        #fffdf7;
    box-shadow: 0 2px 6px rgba(16, 20, 16, 0.24);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.page-chooser {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--host-primary), var(--host-secondary)),
        linear-gradient(90deg, var(--host-primary), var(--gold), var(--host-secondary));
    box-shadow: 0 12px 30px var(--host-shadow);
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
}

.page-chooser span {
    color: #fffdf7;
    text-transform: uppercase;
}

.page-chooser select {
    width: 220px;
    max-width: 220px;
    min-height: 30px;
    border: 1px solid rgba(216, 164, 59, 0.7);
    border-radius: 6px;
    color: var(--host-select) !important;
    background-color: #fffdf7;
    background-image: linear-gradient(180deg, #fffdf7, var(--host-soft));
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.page-chooser select option {
    color: #101410;
    background: #fffdf7;
    font-weight: 800;
}

.nav-links a,
.btn,
.filter-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}

.nav-links a {
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.88);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(96vh - 88px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 38px;
    position: relative;
    z-index: 2;
    padding: 54px 0 120px;
}

.home-hero {
    min-height: calc(78vh - 88px);
    padding-bottom: 76px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Oswald", Impact, sans-serif;
    letter-spacing: 0;
    line-height: 0.98;
}

h1 {
    max-width: 760px;
    font-size: clamp(4.4rem, 15vw, 10rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

h3 {
    font-size: 1.4rem;
}

.hero-copy {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.04rem, 2vw, 1.28rem);
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    padding: 0 18px;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn.primary {
    background: var(--red);
    color: white;
    box-shadow: 0 12px 34px rgba(206, 17, 38, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.btn.light {
    background: #fffdf7;
    color: var(--green-dark);
    border-color: rgba(0, 104, 71, 0.16);
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(6, 39, 29, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.hero-panel strong {
    display: block;
    margin: 8px 0;
    font-family: "Oswald", sans-serif;
    font-size: 2.3rem;
    text-transform: uppercase;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0;
}

.home-short {
    padding-top: 30px;
}

.live-strip-section {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -46px;
    position: relative;
    z-index: 4;
}

.live-strip {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.live-strip > div:first-child {
    padding: 14px;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.live-strip strong,
.live-strip small {
    display: block;
}

.live-strip small {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.4;
}

.live-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(216, 164, 59, 0.18);
}

#homeTicker {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
    overflow-x: auto;
}

.ticker-item {
    min-height: 104px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.ticker-item span,
.ticker-item small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.ticker-item strong {
    margin: 8px 0;
    color: var(--ink);
    line-height: 1.2;
}

.ticker-item.is-played {
    border-color: rgba(0, 104, 71, 0.28);
    background: rgba(0, 104, 71, 0.08);
}

.page-section {
    padding-top: 46px;
    padding-bottom: 46px;
}

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

.country-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.country-links a {
    min-height: 118px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdf7, rgba(0, 104, 71, 0.08));
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
}

.country-links span {
    color: var(--red);
    font-weight: 900;
}

.country-links strong {
    color: var(--green-dark);
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
}

.quick-card,
.prediction-card,
.prediction-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
}

.quick-card {
    min-height: 178px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 22px solid rgba(206, 17, 38, 0.08);
}

.quick-card:hover,
.country-links a:hover,
.stat-card:hover,
.venue-card:hover,
.prediction-card:hover,
.bracket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(13, 29, 20, 0.12);
    border-color: rgba(0, 104, 71, 0.22);
}

.quick-card span {
    color: var(--red);
    font-family: "Oswald", sans-serif;
    font-size: 1.8rem;
}

.quick-card strong {
    display: block;
    color: var(--green-dark);
    font-family: "Oswald", sans-serif;
    font-size: 1.7rem;
}

.quick-card small {
    color: var(--muted);
    line-height: 1.45;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading.compact {
    display: block;
    max-width: 760px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
}

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

.stat-card,
.match-card,
.venue-card,
.bracket-card,
.timeline-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.82);
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stat-card {
    min-height: 158px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card strong {
    font-family: "Oswald", sans-serif;
    font-size: 2.5rem;
    color: var(--green);
}

.stat-card span {
    color: var(--muted);
    line-height: 1.45;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.copy-block {
    padding-right: 20px;
}

.copy-block p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.04rem;
}

.mexico-record {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.mexico-record div {
    min-height: 128px;
    padding: 18px;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.mexico-record div:last-child {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.mexico-record span {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 3rem;
}

.mexico-record small {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.match-list {
    padding: 18px;
    border-radius: 8px;
    background: #fffdf7;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
}

.list-header span,
.tag {
    border-radius: 999px;
    border: 1px solid rgba(0, 104, 71, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 10px;
    white-space: nowrap;
}

.match-card {
    padding: 16px;
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: 16px;
    margin-top: 12px;
}

.match-date {
    min-height: 92px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--red));
    text-align: center;
    font-weight: 900;
}

.match-date span {
    display: block;
    font-size: 1.65rem;
    font-family: "Oswald", sans-serif;
}

.match-info strong {
    display: block;
    font-size: 1.03rem;
    margin: 4px 0 8px;
}

.match-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.timeline-item {
    min-height: 150px;
    padding: 18px;
    border-top: 5px solid var(--green);
}

.timeline-item:nth-child(even) {
    border-top-color: var(--red);
}

.timeline-item strong {
    display: block;
    margin: 8px 0;
    font-size: 1.02rem;
}

.timeline-item span {
    color: var(--muted);
    line-height: 1.45;
}

.bracket-section {
    width: min(1380px, calc(100% - 32px));
}

.bracket-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.source-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
}

.source-bar span {
    color: var(--muted);
    font-weight: 900;
}

.source-bar div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-bar a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 104, 71, 0.1);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
}

.country-overview {
    display: grid;
    grid-template-columns: 300px minmax(280px, 1fr) 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.country-overview > div:first-child,
.country-notes article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
}

.country-overview > div:first-child {
    padding: 24px;
}

.country-overview h2 {
    margin-top: 12px;
    font-size: clamp(1.95rem, 4vw, 3.35rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.country-overview p {
    color: var(--muted);
    line-height: 1.65;
}

.country-decor {
    min-height: 260px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.country-decor > img:first-child {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
}

.country-jersey {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: min(34%, 150px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

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

.country-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 42px;
}

.country-notes article {
    min-height: 110px;
    padding: 20px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.5;
}

.country-venues {
    margin-top: 22px;
}

.filter-btn {
    min-width: 96px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #fffdf7;
    color: var(--muted);
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--ink);
    color: white;
}

.bracket {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    overflow: visible;
    padding-bottom: 0;
}

.bracket-column {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 10px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.72);
    box-shadow: 0 12px 32px rgba(13, 29, 20, 0.06);
}

.bracket-column h3 {
    grid-column: 1 / -1;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.bracket-note {
    grid-column: 1 / -1;
    margin: -4px 0 12px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.bracket-card {
    min-height: 0;
    padding: 12px;
    margin-bottom: 0;
    position: relative;
}

.bracket-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--red);
}

.bracket-card.played::before {
    background: var(--green);
}

.bracket-card strong {
    display: block;
    margin: 8px 0;
}

.bracket-card span,
.bracket-card small {
    color: var(--muted);
    line-height: 1.45;
}

.bracket-card .teams,
.bracket-card .score,
.bracket-card .status,
.bracket-card .winner {
    display: block;
}

.bracket-card .teams {
    margin-top: 4px;
    color: var(--ink);
    font-weight: 900;
}

.bracket-card .score {
    margin: 8px 0;
    color: var(--red);
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
}

.bracket-card .status {
    width: fit-content;
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(206, 17, 38, 0.08);
    color: var(--red-dark);
    font-size: 0.76rem;
    font-weight: 900;
}

.bracket-card.played .status,
.bracket-card .winner {
    background: rgba(0, 104, 71, 0.1);
    color: var(--green-dark);
}

.bracket-card .winner {
    width: fit-content;
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.bracket[data-view="all"] .bracket-column[data-round="r32"],
.bracket[data-view="all"] .bracket-column[data-round="r16"] {
    grid-column: span 6;
}

.bracket[data-view="all"] .bracket-column[data-round="qf"],
.bracket[data-view="all"] .bracket-column[data-round="sf"] {
    grid-column: span 4;
}

.bracket[data-view="all"] .bracket-column[data-round="third"],
.bracket[data-view="all"] .bracket-column[data-round="final"] {
    grid-column: span 2;
}

.bracket[data-view="all"] .bracket-column[data-round="final"] {
    border-color: rgba(216, 164, 59, 0.52);
    background: linear-gradient(135deg, #fffdf7, rgba(216, 164, 59, 0.16));
}

.bracket[data-view="single"] {
    grid-template-columns: 1fr;
}

.bracket[data-view="single"] .bracket-column {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.bracket[data-view="all"] {
    display: block;
}

.google-bracket-shell {
    color: #202124;
}

.google-bracket-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 8px 0 18px;
}

.tournament-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 18%, #f7d36b 0 13%, transparent 14%),
        linear-gradient(180deg, #101410 0 100%);
    color: #f7d36b;
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(32, 33, 36, 0.12);
}

.google-bracket-header h2 {
    color: #202124;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
}

.google-bracket-header p {
    margin: 6px 0 0;
    color: #3c4043;
    font-size: 1rem;
}

.google-bracket-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: -52px 0 28px;
}

.google-bracket-tabs span {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 999px;
    background: #f1f3f4;
    color: #202124;
    font-weight: 700;
}

.google-bracket-tabs .active {
    border: 1px solid #202124;
    background: #ffffff;
}

.google-bracket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.google-panel {
    border-radius: 24px;
    background: #f1f3f4;
    overflow: hidden;
}

.google-panel > header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #d5d8dc;
}

.google-panel h3 {
    color: #202124;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.google-panel h3 span,
.knockout-panel > p {
    color: #5f6368;
    font-weight: 600;
}

.knockout-panel > p {
    margin: -2px 18px 16px;
    font-size: 0.9rem;
}

.google-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 18px 18px;
}

.google-match-card {
    min-height: 124px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #d5d8dc;
}

.google-match-card:nth-child(odd) {
    border-right: 1px solid #d5d8dc;
}

.google-match-card small {
    display: block;
    margin-bottom: 10px;
    color: #5f6368;
    font-size: 0.85rem;
}

.google-score-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 46px 34px;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #202124;
}

.google-score-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
}

.google-score-row b {
    text-align: right;
    font-size: 1.05rem;
}

.team-chance {
    justify-self: end;
    min-width: 42px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
}

.played .team-chance {
    background: #e6f4ea;
    color: #137333;
}

.played .google-score-row:not(.winner-row) .team-chance {
    background: #f1f3f4;
    color: #5f6368;
}

.winner-row strong,
.winner-row b {
    font-weight: 900;
}

.team-badge {
    width: 28px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(32, 33, 36, 0.14);
    border-radius: 2px;
    background: #fff;
    color: #202124;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(32, 33, 36, 0.12);
}

.team-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.team-badge.pending {
    border-radius: 50%;
    background: #c6c9ce;
    color: #5f6368;
    font-size: 0.8rem;
}

.google-match-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 10px;
    color: #188038;
    font-size: 0.86rem;
}

.google-match-meta span {
    overflow: hidden;
    color: #5f6368;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.google-match-meta strong {
    color: #188038;
    font-weight: 800;
}

.knockout-board {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(180px, 0.85fr);
    gap: 30px;
    padding: 0 16px 18px;
    align-items: center;
}

.knockout-round {
    display: grid;
    gap: 12px;
}

.knockout-pair {
    position: relative;
    display: grid;
    gap: 8px;
}

.knockout-pair::after {
    content: "";
    position: absolute;
    right: -19px;
    top: 34px;
    width: 18px;
    height: 44px;
    border: 2px solid #b9bdc1;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.knockout-team,
.next-slot {
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 46px 28px 28px 46px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
    background: #dfe3e7;
    color: #202124;
}

.knockout-team strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.knockout-team small,
.next-slot small {
    color: #202124;
    font-weight: 800;
    text-align: center;
}

.knockout-next {
    display: grid;
    gap: 44px;
    align-content: space-around;
    height: 100%;
}

.next-slot {
    position: relative;
    grid-template-columns: 28px 1fr 30px 28px;
}

.next-slot::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #b9bdc1;
}

.shield {
    color: #5f6368;
    font-size: 1.25rem;
}

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

.venue-card {
    min-height: 300px;
    padding: 0 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, #fffdf7, rgba(255, 250, 240, 0.92)),
        linear-gradient(135deg, rgba(0, 104, 71, 0.08), rgba(206, 17, 38, 0.06));
}

.venue-card-image {
    width: calc(100% + 44px);
    height: 168px;
    margin: 0 -22px 18px;
    display: block;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.venue-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 132px;
    height: 46px;
    background: linear-gradient(180deg, transparent, rgba(16, 20, 16, 0.34));
    pointer-events: none;
}

.venue-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 24px solid rgba(0, 104, 71, 0.08);
}

.venue-new-york-new-jersey {
    border-color: rgba(20, 54, 128, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.96)),
        linear-gradient(135deg, rgba(17, 50, 122, 0.16), rgba(189, 28, 52, 0.12));
}

.venue-new-york-new-jersey::after {
    border-color: rgba(189, 28, 52, 0.16);
}

.venue-new-york-new-jersey h3,
.venue-new-york-new-jersey strong {
    color: #12327a;
}

.venue-new-york-new-jersey .tag {
    border-color: rgba(189, 28, 52, 0.22);
    background: linear-gradient(135deg, #12327a, #bd1c34);
    color: white;
}

.venue-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    line-height: 1.08;
}

.venue-card p {
    color: var(--muted);
    line-height: 1.55;
}

.venue-card strong,
.venue-card small {
    display: block;
}

.venue-card strong {
    margin-top: 10px;
    color: var(--green-dark);
    font-size: 1.02rem;
}

.venue-card small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

.venue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.venue-toolbar {
    margin-top: 0;
}

.prediction-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

.predictions-page {
    padding-top: 56px;
}

.prediction-notice {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid rgba(0, 104, 71, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, #fffdf7, rgba(216, 164, 59, 0.12));
    box-shadow: 0 14px 34px rgba(13, 29, 20, 0.08);
}

.prediction-notice strong,
.prediction-notice p {
    display: block;
}

.prediction-notice strong {
    margin-top: 12px;
    color: var(--green-dark);
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
}

.prediction-notice p {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.65;
}

.prediction-summary,
.prediction-card {
    padding: 22px;
}

.prediction-summary {
    position: sticky;
    top: 18px;
}

.prediction-summary p,
.prediction-card p {
    color: var(--muted);
    line-height: 1.6;
}

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

.prediction-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.prediction-card h3 {
    margin-top: 12px;
    color: var(--green-dark);
    font-size: 2rem;
}

.meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(16, 20, 16, 0.1);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.meter.secondary span {
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.prediction-bars {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.prediction-bars > div:not(.meter) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--green-dark);
    font-weight: 900;
}

.prediction-bars > div:not(.meter) span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.prediction-card.high-confidence {
    border-color: rgba(206, 17, 38, 0.24);
    background: linear-gradient(180deg, #fffdf7, rgba(206, 17, 38, 0.07));
}

.prediction-card > strong {
    color: var(--red-dark);
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 44px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer a {
    color: var(--green);
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.main-menu-link {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--green-dark);
    color: white !important;
}

.feature-band {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 36px;
    padding: 28px;
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 104, 71, 0.96), rgba(5, 61, 45, 0.94) 52%, rgba(206, 17, 38, 0.88)),
        url("../assets/hero-mexico-worldcup.png") center / cover no-repeat;
    box-shadow: var(--shadow);
}

.feature-copy {
    max-width: 760px;
}

.feature-copy p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.card-link {
    width: fit-content;
    margin-top: 16px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--green-dark);
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
}

.venue-detail-page {
    display: grid;
    gap: 36px;
}

.venue-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    padding: 30px;
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 104, 71, 0.96), rgba(5, 61, 45, 0.9), rgba(206, 17, 38, 0.8)),
        var(--venue-image, url("../assets/hero-mexico-worldcup.png")) center / cover no-repeat;
    box-shadow: var(--shadow);
}

body[data-host-country="Mexico"] .venue-detail-hero {
    background:
        linear-gradient(135deg, rgba(0, 104, 71, 0.96), rgba(255, 250, 240, 0.22), rgba(206, 17, 38, 0.86)),
        var(--venue-image, url("../assets/stadium-azteca.png")) center / cover no-repeat;
}

body[data-host-country="Estados Unidos"] .venue-detail-hero {
    background:
        linear-gradient(135deg, rgba(20, 42, 94, 0.96), rgba(255, 255, 255, 0.18), rgba(178, 34, 52, 0.86)),
        var(--venue-image, url("../assets/stadium-new-york.png")) center / cover no-repeat;
}

body[data-host-country="Canada"] .venue-detail-hero {
    background:
        linear-gradient(135deg, rgba(190, 20, 28, 0.96), rgba(255, 255, 255, 0.22), rgba(100, 0, 18, 0.86)),
        var(--venue-image, url("../assets/stadium-toronto.png")) center / cover no-repeat;
}

.venue-detail-hero h2 {
    margin-top: 14px;
    font-size: clamp(3rem, 8vw, 7rem);
}

.venue-detail-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-size: 1.08rem;
}

.venue-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.venue-scoreboard {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.venue-jersey {
    width: min(100%, 180px);
    height: 150px;
    display: block;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.balls-decor {
    margin: 22px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: var(--shadow);
}

.balls-decor img {
    width: 100%;
    max-height: 260px;
    display: block;
    object-fit: cover;
}

.venue-scoreboard span,
.venue-scoreboard small {
    display: block;
    color: rgba(255, 255, 255, 0.75);
}

.venue-scoreboard strong {
    display: block;
    margin: 12px 0;
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    line-height: 1.06;
}

.venue-detail-grid,
.venue-moments > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.venue-detail-grid article,
.venue-moments article,
.venue-selector-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
}

.venue-detail-grid p,
.venue-moments p {
    color: var(--muted);
    line-height: 1.6;
}

.venue-moments article span {
    color: var(--red);
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
}

.venue-selector-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.venue-selector-panel label {
    color: var(--green-dark);
    font-weight: 900;
}

.venue-selector-panel select {
    width: min(100%, 620px);
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-weight: 800;
}

.worldcup-decor {
    padding-top: 34px;
    padding-bottom: 34px;
}

.decor-bracket {
    border-top: 1px solid rgba(206, 17, 38, 0.18);
}

.decor-predicciones .mini-ball-row a {
    background: linear-gradient(135deg, #fffdf7, rgba(216, 164, 59, 0.16));
}

.decor-calendario .mini-jersey {
    background: linear-gradient(135deg, #101410, var(--green));
}

.decor-sedes .mini-ball-row a {
    background: linear-gradient(135deg, #fffdf7, rgba(0, 104, 71, 0.14));
}

.decor-historia {
    display: none;
}

.decor-sede .mini-jersey,
.decor-mexico .mini-jersey {
    background: linear-gradient(135deg, var(--green), var(--red));
}

.decor-estados-unidos .mini-jersey {
    background: linear-gradient(135deg, #142a5e, #b22234);
}

.decor-canada .mini-jersey {
    background: linear-gradient(135deg, #be141c, #640012);
}

.decor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mini-ball-row,
.mini-jersey-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.mini-ball-row a,
.mini-jersey {
    min-height: 122px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
}

.mini-ball-row a {
    position: relative;
    overflow: hidden;
}

.mini-ball-row a::after,
.ball-card::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -24px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 32%, white 0 18%, transparent 19%),
        conic-gradient(from 20deg, var(--green), #fffdf7, var(--red), var(--gold), var(--green));
    opacity: 0.18;
}

.mini-ball-row span,
.mini-jersey span,
.ball-card span,
.jersey-card span {
    color: var(--red);
    font-family: "Oswald", sans-serif;
    font-size: 1.3rem;
}

.mini-ball-row strong,
.mini-jersey strong {
    color: var(--green-dark);
    line-height: 1.2;
}

.mini-jersey {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.mini-jersey::before,
.jersey-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.22) 34% 48%, transparent 48%),
        linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.14) 58%);
    pointer-events: none;
}

.mini-jersey strong,
.mini-jersey span {
    position: relative;
    color: white;
}

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

.ball-card,
.jersey-card {
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf7;
    box-shadow: 0 10px 30px rgba(13, 29, 20, 0.06);
    position: relative;
    overflow: hidden;
}

.ball-card h3,
.jersey-card h3 {
    margin: 14px 0 8px;
    color: var(--green-dark);
    font-size: 1.6rem;
}

.ball-card strong {
    color: var(--muted);
}

.ball-card p,
.jersey-card p {
    color: var(--muted);
    line-height: 1.55;
}

.jersey-card {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.jersey-card h3,
.jersey-card p,
.jersey-card span {
    position: relative;
    color: white;
}

.jersey-1 {
    background: linear-gradient(135deg, #f47c20, #111);
}

.jersey-2 {
    background: linear-gradient(135deg, #76aadb, #fff, #76aadb);
}

.jersey-3 {
    background: linear-gradient(135deg, #0b8f4d, #102f1e);
}

.jersey-4 {
    background: linear-gradient(135deg, #1f4ea3, #d31d2f);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

@media (max-width: 980px) {
    .hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 420px;
    }

    .stats-grid,
    .quick-grid,
    .country-links,
    .country-notes,
    .predictions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .live-strip,
    .feature-band,
    .venue-detail-hero {
        grid-template-columns: 1fr;
    }

    .venue-detail-grid,
    .venue-moments > div:last-child,
    .decor-grid {
        grid-template-columns: 1fr;
    }

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

    #homeTicker {
        grid-template-columns: repeat(5, minmax(190px, 1fr));
    }

    .country-overview {
        grid-template-columns: 1fr;
    }

    .prediction-summary {
        position: static;
    }

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

    .bracket[data-view="all"] .bracket-column[data-round="r32"],
    .bracket[data-view="all"] .bracket-column[data-round="r16"],
    .bracket[data-view="all"] .bracket-column[data-round="qf"],
    .bracket[data-view="all"] .bracket-column[data-round="sf"] {
        grid-column: span 3;
    }

    .bracket[data-view="all"] .bracket-column[data-round="third"],
    .bracket[data-view="all"] .bracket-column[data-round="final"] {
        grid-column: span 3;
    }

    .google-bracket-tabs {
        justify-content: flex-start;
        margin: 0 0 18px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

    .knockout-board {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 8px;
        background: rgba(4, 34, 25, 0.96);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        justify-content: flex-start;
    }

    .page-chooser {
        order: 3;
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    .page-chooser select {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: 1;
    }

    .hero {
        min-height: auto;
        padding: 44px 0 110px;
    }

    h1 {
        font-size: clamp(3.7rem, 19vw, 6.6rem);
    }

    .section {
        padding: 56px 0;
    }

    .section-heading {
        display: block;
    }

    .stats-grid,
    .venues-grid,
    .quick-grid,
    .country-links,
    .country-notes,
    .country-stats,
    .predictions-grid,
    .balls-grid,
    .jerseys-grid,
    .mexico-record {
        grid-template-columns: 1fr;
    }

    .mini-ball-row,
    .mini-jersey-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .source-bar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .match-date {
        min-height: 74px;
    }

    .footer {
        flex-direction: column;
    }

    .feature-actions {
        justify-content: flex-start;
    }

    .venue-selector-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .bracket {
        grid-template-columns: 1fr;
    }

    .bracket[data-view="all"] .bracket-column,
    .bracket[data-view="single"] .bracket-column {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .google-bracket-header {
        align-items: flex-start;
    }

    .tournament-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 auto;
        font-size: 1.1rem;
    }

    .google-bracket-tabs {
        margin-top: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .google-bracket-tabs span {
        min-height: 42px;
        padding: 0 16px;
        font-size: 0.86rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .google-match-grid,
    .knockout-board {
        grid-template-columns: 1fr;
    }

    .google-match-card:nth-child(odd) {
        border-right: 0;
    }

    .knockout-pair::after,
    .next-slot::before {
        display: none;
    }

    .knockout-next {
        gap: 12px;
    }
}

/* Mundial 2026 polish */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(216, 164, 59, 0.12) 48% 52%, transparent 52%),
        repeating-linear-gradient(135deg, rgba(0, 104, 71, 0.035) 0 2px, transparent 2px 18px);
    opacity: 0.72;
}

.page-title,
.hero-content,
.section,
.footer {
    position: relative;
}

.section-heading h2::after,
.page-title h1::after {
    content: "";
    display: block;
    width: 76px;
    height: 5px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.page-title h1::after {
    background: linear-gradient(90deg, #143680, #ffffff, #bd1c34);
}

.bracket-prediction {
    margin-top: 12px;
    padding: 12px;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(216, 164, 59, 0.34);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(216, 164, 59, 0.13));
}

.bracket-prediction span {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(206, 17, 38, 0.1);
    color: var(--red-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bracket-prediction strong {
    margin: 0;
    color: var(--green-dark);
    font-family: "Oswald", sans-serif;
    font-size: 1.28rem;
}

.bracket-prediction small {
    color: var(--muted);
    line-height: 1.45;
}

.bracket-card.played {
    background: linear-gradient(180deg, #fffdf7, rgba(0, 104, 71, 0.08));
}

.bracket-card:not(.played) {
    background: linear-gradient(180deg, #fffdf7, rgba(216, 164, 59, 0.08));
}

.country-overview,
.feature-band,
.venue-detail-hero,
.match-list,
.prediction-summary,
.prediction-card,
.bracket-card,
.venue-card,
.stat-card {
    backdrop-filter: saturate(1.05);
}

.country-decor::after,
.venue-detail-hero::after,
.feature-band::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 12px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px rgba(216, 164, 59, 0.38);
    pointer-events: none;
}

.country-decor::after {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 0 0 2px rgba(16, 20, 16, 0.16);
}

@media (max-width: 720px) {
    .bracket-prediction {
        padding: 10px;
    }

    .section-heading h2::after,
    .page-title h1::after {
        width: 58px;
    }
}

/* Live tournament update panel */
.live-update-section {
    padding-top: 34px;
}

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

.live-update-grid .ticker-item {
    border-color: rgba(0, 104, 71, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(216, 164, 59, 0.12)),
        #fffdf7;
}

.live-update-grid .ticker-item span {
    color: var(--red-dark);
}

.live-update-grid .ticker-item strong {
    color: var(--green-dark);
}

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

@media (max-width: 620px) {
    .live-update-grid {
        grid-template-columns: 1fr;
    }
}

/* Bracket team initials */
.bracket-card .teams.initials-only,
.ticker-initials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--ink);
}

.team-initials {
    min-width: 42px;
    height: 32px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(16, 20, 16, 0.12);
    border-radius: 999px;
    background: #fffdf7;
    box-shadow: 0 8px 18px rgba(13, 29, 20, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.team-initials.pending {
    opacity: 0.65;
    filter: grayscale(0.2);
}

.initials-vs {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ticker-initials .team-initials {
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
}

.ticker-initials .initials-vs {
    font-size: 0.68rem;
}

@media (max-width: 620px) {
    .team-initials {
        min-width: 38px;
        height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }
}

/* ═══════════════════════════════════════════════════
   HOME PAGE — REDISEÑO
═══════════════════════════════════════════════════ */

/* Hero más dramático */
.home-header {
    min-height: 92vh;
    background:
        linear-gradient(110deg, rgba(0, 30, 18, 0.97) 0%, rgba(0, 70, 45, 0.82) 46%, rgba(140, 10, 28, 0.64) 100%),
        url("../assets/hero-mexico-worldcup.png") center 38% / cover no-repeat;
}

.home-hero {
    min-height: calc(92vh - 88px);
    padding-bottom: 108px;
    align-items: center;
}

/* Panel de próximo partido */
.home-match-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 16px;
}

.panel-eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-match-vs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.panel-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.panel-flag {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.panel-team strong {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}

.panel-vs-text {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.36);
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.panel-info {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 14px;
    display: grid;
    gap: 5px;
}

.panel-info span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    font-size: 0.9rem;
}

.panel-info small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}

.panel-flag-img {
    width: 72px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
    display: block;
}

.panel-center-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 56px;
}

.panel-score {
    font-family: "Oswald", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.panel-time {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.panel-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f04;
    margin-right: 6px;
    animation: panelPulse 1.2s ease-in-out infinite;
}

@keyframes panelPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.panel-win {
    color: var(--gold);
    font-weight: 900;
}

.panel-lose {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 900;
}

/* Sección de partidos */
.home-matches-section {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -62px;
    position: relative;
    z-index: 4;
}

.home-matches-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 0 2px;
}

.home-matches-header .eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.home-matches-header h2 {
    color: var(--ink);
    margin-top: 6px;
}

.home-match-shell {
    border-radius: 24px;
    background: #f1f3f4;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(13, 29, 20, 0.12);
}

.home-match-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Bordes internos del grid de 3 columnas */
.home-match-grid .google-match-card {
    border-right: 1px solid #d5d8dc;
}

.home-match-grid .google-match-card:nth-child(3n),
.home-match-grid .google-match-card:last-child {
    border-right: 0;
}

/* La 4.ª tarjeta (1.ª del bloque de proximos) resalta el partido de Mexico */
.home-match-grid .google-match-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(0, 104, 71, 0.07), rgba(216, 164, 59, 0.1));
}

/* Sección stats */
.home-stats-section {
    padding-top: 64px;
    padding-bottom: 44px;
}

.home-stats-section > .eyebrow {
    margin-bottom: 20px;
    color: var(--muted);
}

/* Tarjetas de navegación */
.home-nav-section {
    padding-top: 64px;
    padding-bottom: 86px;
}

.home-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home-nav-card {
    min-height: 310px;
    padding: 38px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    background: #fffdf7;
    box-shadow: 0 16px 48px rgba(13, 29, 20, 0.07);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    position: relative;
    overflow: hidden;
}

.home-nav-card::after {
    content: "";
    position: absolute;
    right: -64px;
    bottom: -64px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 36px solid rgba(0, 104, 71, 0.06);
    pointer-events: none;
}

.home-nav-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 70px rgba(13, 29, 20, 0.15);
    border-color: rgba(0, 104, 71, 0.18);
}

.home-nav-card h2 {
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    color: var(--green-dark);
    line-height: 0.9;
    margin-top: 10px;
    margin-bottom: 0;
}

.home-nav-card > p {
    color: var(--muted);
    line-height: 1.62;
    font-size: 1.02rem;
    max-width: 440px;
    flex: 1;
}

.nav-card-arrow {
    color: var(--green);
    font-weight: 900;
    font-size: 0.96rem;
}

.primary-nav-card {
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 30, 18, 0.97) 0%, rgba(0, 86, 56, 0.9) 50%, rgba(160, 12, 28, 0.82) 100%),
        url("../assets/hero-mexico-worldcup.png") center / cover no-repeat;
    border-color: transparent;
    box-shadow: 0 20px 56px rgba(0, 104, 71, 0.22);
}

.primary-nav-card::after {
    border-color: rgba(216, 164, 59, 0.18);
}

.primary-nav-card .eyebrow {
    color: var(--gold);
}

.primary-nav-card h2 {
    color: white;
}

.primary-nav-card > p {
    color: rgba(255, 255, 255, 0.74);
}

.primary-nav-card .nav-card-arrow {
    color: var(--gold);
}

.primary-nav-card:hover {
    box-shadow: 0 30px 72px rgba(0, 104, 71, 0.32);
    border-color: transparent;
}

/* Responsive home */
@media (max-width: 980px) {
    .home-header {
        min-height: 86vh;
    }

    .home-hero {
        min-height: calc(86vh - 88px);
        align-items: start;
    }

    .home-match-panel {
        max-width: 480px;
    }

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

    .home-match-grid .google-match-card {
        border-right: 1px solid #d5d8dc;
    }

    .home-match-grid .google-match-card:nth-child(2n),
    .home-match-grid .google-match-card:last-child {
        border-right: 0;
    }

    .home-match-grid .google-match-card:nth-child(3n) {
        border-right: 1px solid #d5d8dc;
    }

    .home-match-grid .google-match-card:nth-child(2n):last-child {
        border-right: 0;
    }

    .home-nav-grid {
        grid-template-columns: 1fr;
    }

    .home-nav-card {
        min-height: 250px;
    }
}

@media (max-width: 760px) {
    .home-header {
        min-height: 100svh;
    }

    .home-hero {
        min-height: calc(100svh - 88px);
        padding-bottom: 90px;
    }

    .home-matches-section {
        margin-top: -48px;
    }

    .home-matches-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .home-match-grid .google-match-card,
    .home-match-grid .google-match-card:nth-child(2n),
    .home-match-grid .google-match-card:nth-child(3n),
    .home-match-grid .google-match-card:last-child {
        border-right: 0;
    }

    .home-hero {
        min-height: auto;
        padding-bottom: 80px;
    }

    .home-match-panel {
        max-width: 100%;
        padding: 18px 20px;
        gap: 12px;
    }

    .panel-flag {
        font-size: 2.2rem;
    }

    .panel-flag-img {
        width: 52px;
        height: 36px;
    }

    .panel-score {
        font-size: 1.6rem;
    }

    .panel-time {
        font-size: 0.7rem;
    }

    .panel-match-vs {
        gap: 8px;
    }

    .panel-team strong {
        font-size: 0.9rem;
    }
}
