: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-radius: 50%;
    background: #101410;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px var(--host-shadow);
    position: relative;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2.5px;
    background: conic-gradient(from 225deg, var(--host-primary), var(--gold), var(--host-secondary), var(--host-primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.brand-mark svg {
    width: 27px;
    height: 27px;
    position: relative;
    z-index: 1;
}

.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;
}

.confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    opacity: 0.95;
    animation-name: confettiFall;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1);
    animation-fill-mode: forwards;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

@keyframes confettiFall {
    0% {
        transform: translate(0, -10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--drift), 110vh) rotate(var(--spin));
        opacity: 0.85;
    }
}

.music-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: #101410;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), inset 0 0 0 2px rgba(0, 104, 71, 0.55);
    color: #ffffff;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.music-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(90deg, #006847 0 34%, #ffffff 34% 66%, #ce1126 66% 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.music-toggle span:last-child {
    position: relative;
    z-index: 1;
}

.music-toggle.is-playing {
    box-shadow: 0 14px 34px rgba(255, 122, 26, 0.34), inset 0 0 0 2px rgba(255, 122, 26, 0.7);
}

.mexico-mode-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

.mexico-mode-mark svg {
    width: 100%;
    height: 100%;
}

.music-toggle.is-playing .mexico-mode-mark {
    animation: mexicoModePulse 0.9s ease-in-out infinite;
}

@keyframes mexicoModePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.14); }
}

.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-credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-family: "Oswald", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gold);
}

.hero-credit span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.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, 1fr);
    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) 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: 58px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #174ea6;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
}

.team-score {
    justify-self: end;
    min-width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    color: #202124;
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.12);
}

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

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

.knockout-team.winner-a .team-side:first-child .team-chance,
.knockout-team.winner-b .team-side:last-child .team-chance {
    background: #e6f4ea;
    color: #137333;
}

.knockout-team.winner-a .team-side:first-child .team-score,
.knockout-team.winner-b .team-side:last-child .team-score {
    background: #e6f4ea;
    color: #137333;
    box-shadow: inset 0 0 0 1px rgba(19, 115, 51, 0.22);
}

.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: 1fr;
    gap: 14px;
    padding: 0 16px 18px;
    align-items: stretch;
}

.bracket-paths {
    display: grid;
    gap: 16px;
}

.bracket-path-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 28px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.08);
}

.bracket-path-group.no-advance {
    grid-template-columns: 1fr;
}

.bracket-path-lanes {
    display: grid;
    gap: 12px;
}

.bracket-path-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
    gap: 26px;
    align-items: center;
}

.bracket-advance-slot {
    display: grid;
    align-content: center;
    min-height: 100%;
}

.bracket-advance-slot:empty {
    display: none;
}

.bracket-advance-slot .next-slot {
    background: linear-gradient(135deg, #eef7ff, #dfe7ee);
    border-color: rgba(66, 133, 244, 0.22);
}

.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: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
    background: #dfe3e7;
    color: #202124;
}

.knockout-team {
    position: relative;
}

.knockout-team.has-winner {
    background: linear-gradient(90deg, #e6f4ea 0%, #eef2f5 100%);
    border: 1px solid rgba(19, 115, 51, 0.28);
}

.knockout-team.winner-a {
    box-shadow: inset 4px 0 0 #188038;
}

.knockout-team.winner-b {
    box-shadow: inset -4px 0 0 #188038;
}

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

.knockout-team.winner-a .team-side:first-child .side-name::after,
.knockout-team.winner-b .team-side:last-child .side-name::after {
    content: "\2605";
    color: #188038;
    font-size: 0.84rem;
    line-height: 1;
    margin-left: 6px;
}

.knockout-match {
    display: grid;
    gap: 4px;
    position: relative;
}

.knockout-match.is-live {
    padding-top: 20px;
}

.knockout-live-badge {
    position: absolute;
    top: 0;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #c8141e;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 0 0 6px 6px;
    z-index: 1;
}

.knockout-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: panelPulse 1.4s ease-in-out infinite;
}

.knockout-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 8px;
    padding: 0 14px;
    color: #5f6368;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.knockout-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.knockout-meta span:last-child {
    text-align: right;
}

.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: 12px;
    align-content: center;
    height: auto;
}

.round-r32 .knockout-board {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.round-r32 .knockout-round {
    grid-template-columns: 1fr;
    align-content: start;
    height: auto;
    gap: 12px;
}

.round-r32 .knockout-next {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 14px;
}

.round-r32 .knockout-team {
    min-height: 48px;
    border-radius: 14px;
}

.round-r32 .next-slot {
    min-height: 58px;
    border-radius: 14px;
}

.round-r32 .knockout-pair::after {
    right: -20px;
    top: 32px;
    width: 20px;
    height: 48px;
}

.round-r32 .next-slot::before {
    left: -28px;
    width: 28px;
}

.medal-board {
    grid-template-columns: minmax(360px, 1fr) minmax(230px, 0.55fr);
}

.special-final .knockout-panel {
    background:
        linear-gradient(135deg, rgba(255, 214, 102, 0.22), rgba(255, 255, 255, 0) 42%),
        #f8f9fa;
    border: 1px solid rgba(180, 126, 18, 0.28);
}

.special-third .knockout-panel {
    background:
        linear-gradient(135deg, rgba(52, 168, 83, 0.14), rgba(255, 255, 255, 0) 44%),
        #f8f9fa;
    border: 1px solid rgba(52, 168, 83, 0.24);
}

.special-final .knockout-panel header h3,
.special-third .knockout-panel header h3 {
    font-size: 1.15rem;
    letter-spacing: 0;
}

.special-final .knockout-panel header h3 {
    color: #8a5a00;
}

.special-third .knockout-panel header h3 {
    color: #137333;
}

.special-final .knockout-team,
.special-third .knockout-team {
    min-height: 76px;
    border-radius: 22px;
}

.special-final .knockout-team {
    background: linear-gradient(135deg, #fff8df, #ffffff 55%, #f6d36f);
    border: 1px solid rgba(180, 126, 18, 0.34);
    box-shadow: 0 14px 30px rgba(180, 126, 18, 0.13);
}

.special-third .knockout-team {
    background: linear-gradient(135deg, #edf7ee, #ffffff 55%, #d0b08a);
    border: 1px solid rgba(132, 88, 45, 0.26);
    box-shadow: 0 14px 30px rgba(132, 88, 45, 0.12);
}

.special-final .knockout-team strong,
.special-third .knockout-team strong {
    font-size: 1rem;
}

.special-final .knockout-pair::after,
.special-third .knockout-pair::after {
    right: -30px;
    top: 50%;
    width: 30px;
    height: 2px;
    border: 0;
    border-radius: 0;
    background: #b9bdc1;
}

.special-result-card {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 22px 18px;
    border-radius: 22px;
    text-align: center;
    color: #202124;
    box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.08);
}

.special-result-card strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.special-result-card small {
    color: #5f6368;
    font-weight: 800;
}

.special-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.9rem;
}

.final-card {
    background: linear-gradient(145deg, #fff8df, #f4d06f);
}

.final-card .special-icon {
    background: #202124;
    box-shadow: 0 10px 24px rgba(180, 126, 18, 0.28);
}

.third-card {
    background: linear-gradient(145deg, #effaf2, #b7e4c7);
}

.third-card .special-icon {
    background: #188038;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 128, 56, 0.24);
}

.next-slot {
    position: relative;
    grid-template-columns: 28px minmax(0, 1fr) 30px 28px minmax(0, 1fr);
}

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

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

.next-slot strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}

.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 {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(0, 104, 71, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: var(--green);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

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

.footer-links a {
    min-width: 150px;
}

.main-menu-link {
    background: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
    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: 1fr;
    }

    .round-r32 .knockout-board {
        grid-template-columns: 1fr;
    }

    .bracket-path-row {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
        gap: 24px;
    }

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

    .bracket-advance-slot {
        display: grid;
    }
}

@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;
    }

    .music-toggle {
        right: 14px;
        bottom: 14px;
        min-height: 58px;
        padding: 0 18px 0 13px;
        font-size: 0.92rem;
        gap: 11px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 104, 71, 0.6), 0 0 22px rgba(206, 17, 38, 0.4);
        animation: musicToggleGlow 2.6s ease-in-out infinite;
    }

    .music-toggle::before {
        padding: 3px;
    }

    .music-toggle.is-playing {
        animation: none;
        box-shadow: 0 14px 34px rgba(255, 122, 26, 0.4), inset 0 0 0 2px rgba(255, 122, 26, 0.75), 0 0 26px rgba(255, 122, 26, 0.5);
    }

    @keyframes musicToggleGlow {
        0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 104, 71, 0.6), 0 0 14px rgba(206, 17, 38, 0.28); }
        50% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(0, 104, 71, 0.6), 0 0 26px rgba(206, 17, 38, 0.55); }
    }

    .mexico-mode-mark {
        width: 30px;
        height: 30px;
    }

    .page-chooser {
        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;
        align-items: stretch;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links a {
        flex: 1 1 220px;
        max-width: 320px;
    }

    .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;
    }

    .bracket-toolbar {
        position: sticky;
        top: 8px;
        z-index: 5;
        padding: 8px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 10px 26px rgba(32, 33, 36, 0.1);
        backdrop-filter: blur(10px);
    }

    .bracket-section {
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        cursor: grab;
        mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    }

    .bracket {
        min-width: 980px;
    }

    .google-bracket-shell {
        min-width: 980px;
    }

    .knockout-board {
        grid-template-columns: 1fr;
        min-width: 920px;
    }

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

    .bracket-path-row {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
        gap: 24px;
    }

    .bracket-path-group {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
        gap: 24px;
        padding: 12px;
    }

    .round-r32 .knockout-board {
        grid-template-columns: 1fr;
    }

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

    .knockout-next {
        gap: 12px;
    }

    .knockout-panel {
        border-radius: 18px;
    }

    .knockout-board {
        padding: 0 10px 16px;
        gap: 18px;
    }

    .knockout-round {
        gap: 12px;
    }

    .knockout-pair {
        gap: 12px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.74);
        box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.08);
    }

    .knockout-team {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }

    .knockout-team > small {
        display: block;
        width: auto;
        height: auto;
        margin: 0;
        border-radius: 0;
        background: transparent;
        color: #202124;
        font-size: 0.72rem;
    }

    .team-side {
        grid-template-columns: 28px minmax(0, 1fr) minmax(54px, auto);
        min-height: 34px;
        padding: 2px 0;
    }

    .team-side:last-child {
        padding-top: 2px;
        border-top: 0;
    }

    .knockout-team strong {
        font-size: 0.94rem;
    }

    .team-chance {
        min-width: 54px;
        padding: 4px 7px;
        font-size: 0.66rem;
    }

    .team-score {
        min-width: 32px;
        height: 28px;
        font-size: 1.05rem;
    }

    .knockout-meta {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 0 4px 2px;
        font-size: 0.72rem;
        text-align: center;
    }

    .knockout-meta span:last-child {
        text-align: center;
    }

    .round-r32 .knockout-team,
    .round-r32 .next-slot {
        min-height: auto;
    }

    .round-r32 .knockout-next::before {
        content: "Siguiente ronda";
        display: block;
        margin: 2px 0 0;
        color: #5f6368;
        font-size: 0.76rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .next-slot {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .next-slot small {
        grid-column: 1 / -1;
        width: 34px;
        height: 22px;
        display: grid;
        place-items: center;
        justify-self: center;
        border-radius: 999px;
        background: #ffffff;
        color: #5f6368;
        font-size: 0.72rem;
    }

    .next-slot strong:nth-of-type(2) {
        grid-column: 2;
    }
}

/* HOME PAGE REDISENO */

/* Hero mas dramatico */
.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 proximo partido */
.home-match-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 16px;
}

.panel-live-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, rgba(255, 0, 64, 0.22), rgba(0, 150, 70, 0.16));
    transition: opacity 0.3s ease;
}

.panel-live-field.is-live {
    opacity: 1;
    animation: livePanelGlow 1.6s ease-in-out infinite;
}

.home-match-panel > *:not(.panel-live-field) {
    position: relative;
    z-index: 1;
}

.panel-eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 0.68rem;
    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: 10px;
}

.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-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.panel-countdown span {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 58px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.panel-countdown strong {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
    color: #fff;
}

.panel-countdown small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.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-playing,
.panel-live-label {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-live-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.panel-live-wave {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ff0044;
    box-shadow: 0 0 0 0 rgba(255, 0, 68, 0.5);
    animation: panelWave 1.1s ease-out infinite;
}

.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: 10px;
    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); }
}

@keyframes panelWave {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 68, 0.5); }
    100% { box-shadow: 0 0 0 8px rgba(255, 0, 68, 0); }
}

@keyframes livePanelGlow {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.35) brightness(1.12); }
}

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

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

/* Seccion 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;
}

/* Live match banner */
#liveBanner {
    margin-bottom: 16px;
}

.live-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(200, 20, 30, 0.08), rgba(200, 20, 30, 0.03));
    border: 1px solid rgba(200, 20, 30, 0.25);
    border-left: 4px solid #c8141e;
    border-radius: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #c8141e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.live-dot-sm {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: panelPulse 1.4s ease-in-out infinite;
}

.live-teams {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
}

.live-score {
    font-family: Oswald, sans-serif;
    font-size: 1rem;
    color: var(--ink);
}

.live-minute {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c8141e;
    flex-shrink: 0;
}

.live-venue {
    font-size: 0.78rem;
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

.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;
}

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

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

/* Tarjetas de navegacion */
.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;
    }

    .live-venue {
        display: none;
    }

    .live-banner-inner {
        gap: 8px;
        padding: 10px 12px;
    }

    .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-countdown {
        gap: 5px;
    }

    .panel-countdown span {
        min-height: 46px;
    }

    .panel-countdown strong {
        font-size: 1.08rem;
    }

    .panel-countdown small {
        font-size: 0.58rem;
    }

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

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