/* ROOT THEME VARIABLES - ELITE PITCH & TROPHY DUOTONE PALETTE */
:root {
    --pitch-dark: #020F0A;       /* Deepened luxurious sports pitch background */
    --pitch-deep: #052116;       /* Deep rich tactical shade */
    --pitch-medium: #093c29;     /* Vibrant mid-tone pitch green */
    --pitch-bright: #106b49;     /* Premium highlight grass green */
    --gold: #E6C35C;             /* Higher brilliance World Cup trophy gold */
    --gold-light: #F7EAD0;       /* Soft luxury warm gold highlight */
    --gold-hover: #D4AF37;       /* Iconic classic gold */
    --cream-light: #FDFDFB;      /* Warm premium paper white for ultimate text contrast */
    --cream-dark: #F5F5ED;       /* Warm secondary off-white */
    --cream-border: #E6E6DC;     /* Soft editorial border */
    --dark-charcoal: #0D0D0D;    /* Intense deep tone replacing raw black */
    --grey-text: #4E6058;        /* Muted pitch green tinted grey */
    
    /* SYSTEM CONFIG */
    --grid-line-color: rgba(230, 195, 92, 0.15);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0px !important; /* Non-negotiable: zero border radius everywhere */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--cream-light);
    color: var(--dark-charcoal);
    font-family: 'Source Serif 4', Georgia, serif;
}

body {
    overflow-x: hidden;
    line-height: 1.625;
    position: relative;
    background-color: var(--cream-light);
}

/* NOISE TEXTURE SYSTEM */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
}

/* GLOBAL PITCH LINES BACKGROUND PATTERN FOR DEPTH */
.hero-section, .matchups-grid-section, .groups-section, .guide-section {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(4, 30, 21, 0.03) 1px,
            rgba(4, 30, 21, 0.03) 2px
        ),
        linear-gradient(180deg, var(--cream-light) 0%, var(--cream-dark) 100%);
    background-size: 100% 6px, 100% 100%;
}

/* STICKY HEADER - PRESTIGE DARK GREEN & GOLD EDGE */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--pitch-dark);
    border-bottom: 2px solid var(--gold);
    transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: inline-block;
}

.logo-accent {
    color: var(--cream-light);
    font-weight: 300;
    letter-spacing: 0.05em;
    padding-left: 2px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 0;
    position: relative;
    transition: color 150ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 150ms ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-btn-header {
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--gold);
    color: var(--gold);
    background-color: transparent;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 150ms ease;
}

.cta-btn-header:hover {
    background-color: var(--gold);
    color: var(--pitch-dark);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

/* TYPOGRAPHY OVERWRITES */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--pitch-dark);
}

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

/* GLOBAL SPACING CONTAINER */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--pitch-dark);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 0 rgba(230, 195, 92, 0.3);
}

.btn-primary:hover {
    background-color: var(--cream-light);
    color: var(--pitch-dark);
    border-color: var(--cream-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--pitch-dark);
    border: 2px solid var(--pitch-dark);
}

.btn-secondary:hover {
    background-color: var(--pitch-dark);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gold-light);
    border: 2px solid var(--gold-light);
}

.btn-secondary-hero:hover {
    background-color: var(--gold-light);
    color: var(--pitch-dark);
    transform: translateY(-2px);
}

/* HERO SECTION - REFINED MAJESTIC split layout & luxury styling */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    border-bottom: 5px solid var(--gold);
    background: radial-gradient(circle at top right, var(--pitch-deep) 0%, var(--pitch-dark) 80%);
    color: var(--cream-light);
    overflow: hidden;
}

.hero-stadium-lines {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 50% 120%, transparent 60%, rgba(230, 195, 92, 0.06) 61%, transparent 62%),
        linear-gradient(90deg, rgba(230, 195, 92, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 80px 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50% !important; /* Specific radial indicator override */
    filter: blur(140px);
    pointer-events: none;
    z-index: 2;
}

.hero-bg-glow.glow-emerald {
    top: -10%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: rgba(16, 107, 73, 0.35);
}

.hero-bg-glow.glow-gold {
    bottom: -20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: rgba(230, 195, 92, 0.15);
}

.hero-section .hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    border: 1px solid var(--gold);
    color: var(--gold);
    background-color: rgba(230, 195, 92, 0.08);
    padding: 8px 16px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00FF66;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: 20px;
    color: var(--cream-light);
    line-height: 1.1;
}

.hero-title .highlight {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(230, 195, 92, 0.2);
}

/* VISUAL DECORATIVE RULE IN HERO */
.hero-divider-wrap {
    display: flex;
    align-items: center;
    margin: 24px 0;
    position: relative;
    max-width: 480px;
}

.hero-divider-wrap .thick-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--gold);
    opacity: 0.7;
}

.hero-divider-wrap .bordered-square {
    width: 14px;
    height: 14px;
    border: 2px solid var(--gold);
    background-color: var(--pitch-dark);
    margin-left: -7px;
    z-index: 2;
    transform: rotate(45deg);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--gold-light);
    max-width: 650px;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.95;
}

/* HERO QUICK METRICS ROW */
.hero-quick-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    max-width: 550px;
    border-top: 1px solid rgba(230, 195, 92, 0.2);
    border-bottom: 1px solid rgba(230, 195, 92, 0.2);
    padding: 20px 0;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.m-val {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.2;
}

.m-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold-light);
    opacity: 0.8;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.last-updated-tag {
    display: block;
    margin-top: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* HERO SPOTLIGHT WIDGET */
.hero-content-right {
    display: flex;
    justify-content: flex-end;
}

.spotlight-card {
    background-color: var(--pitch-deep);
    border: 3px solid var(--gold);
    box-shadow: 10px 10px 0 var(--gold-hover);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.spotlight-badge {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold-light);
    border-bottom: 1px solid rgba(230, 195, 92, 0.2);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.spotlight-live {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.spotlight-header h3 {
    color: var(--cream-light);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.spotlight-header p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--gold-light);
    opacity: 0.8;
    margin-bottom: 24px;
}

.spotlight-vs-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(2, 15, 10, 0.4);
    border: 1px solid rgba(230, 195, 92, 0.15);
    padding: 16px;
    margin-bottom: 24px;
}

.spotlight-team {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.spotlight-flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold);
}

.spotlight-country {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--cream-light);
    margin: 4px 0;
}

.spotlight-odds {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold-light);
}

.spotlight-vs-circle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 900;
    color: var(--gold);
    background-color: var(--pitch-deep);
}

.spotlight-gauge-wrap {
    margin-bottom: 24px;
}

.spotlight-gauge-header {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.spotlight-gauge-bar {
    height: 8px;
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
}

.gauge-spain {
    background-color: var(--gold);
}

.gauge-france {
    background-color: var(--pitch-bright);
}

.spotlight-insights {
    border-top: 1px dotted rgba(230, 195, 92, 0.2);
    padding-top: 16px;
    margin-bottom: 24px;
}

.insight-row {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    margin-bottom: 8px;
}

.ins-label {
    color: var(--gold-light);
    opacity: 0.8;
}

.ins-val {
    color: var(--cream-light);
    font-weight: 700;
}

.spotlight-footer {
    font-size: 0.72rem;
    color: var(--gold-light);
    opacity: 0.7;
    line-height: 1.4;
}

.spotlight-action {
    display: inline-block;
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--gold);
}

.spotlight-action:hover {
    color: var(--cream-light);
    text-decoration: underline;
}

/* TITLE RACE SECTION - DEEP STADIUM EMERALD & GOLD HIGHLIGHT CARDS */
.title-race-section {
    background-color: var(--pitch-dark);
    color: var(--cream-light);
    position: relative;
    border-bottom: 4px solid var(--pitch-dark);
}

.stats-strip-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(230, 195, 92, 0.05) 1px,
        rgba(230, 195, 92, 0.05) 2px
    );
    background-size: 6px 100%;
    opacity: 0.6;
    pointer-events: none;
}

.section-header-compact {
    margin-bottom: 48px;
    max-width: 800px;
}

.section-header-compact .section-title-compact {
    color: var(--cream-light);
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 12px;
}

.section-title-compact {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.section-desc-compact {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.title-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background-color: var(--gold); /* Gold grid lines */
}

.favorite-card {
    background-color: var(--pitch-deep);
    color: var(--cream-light);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(230, 195, 92, 0.15);
    position: relative;
    overflow: hidden;
}

.favorite-card.highlight-card {
    background: linear-gradient(135deg, var(--pitch-deep) 0%, var(--pitch-dark) 100%);
    border-color: var(--gold);
}

.favorite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--gold);
    transform: scaleY(0);
    transition: transform 150ms ease;
}

.favorite-card:hover::before {
    transform: scaleY(1);
}

.favorite-card:hover {
    background-color: var(--cream-light);
    color: var(--pitch-dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(4, 30, 21, 0.2);
}

.favorite-card:hover .fav-rank {
    color: var(--gold);
}

.favorite-card:hover .fav-group {
    color: var(--pitch-dark);
}

.fav-rank {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 24px;
    transition: color 150ms ease;
}

.fav-flag-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 2px 6px;
    margin-right: 8px;
}

.fav-country-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.fav-country {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.fav-group {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fav-stats {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(230, 195, 92, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.favorite-card:hover .fav-stats {
    border-top-color: var(--cream-border);
}

.fav-stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.favorite-card:hover .stat-label {
    color: var(--grey-text);
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.15rem;
}

.favorite-card:hover .stat-value {
    color: var(--pitch-dark);
}

.favorite-card:hover .text-accent {
    color: var(--gold) !important;
}

/* STARK DIVIDERS */
.thick-section-divider {
    height: 4px;
    background-color: var(--pitch-dark);
    width: 100%;
}

/* SECTION HEADER GLOBAL */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-top: 12px;
    margin-bottom: 24px;
    color: var(--pitch-dark);
}

.section-desc {
    color: var(--grey-text);
    font-size: 1.2rem;
    font-family: 'Source Serif 4', Georgia, serif;
}

/* MATCHUPS GRID - 1PX GAP SYSTEM WITH INVERSION ON HOVER */
.matchups-grid-section {
    background-color: var(--cream-light);
}

.matchup-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.match-grid-card {
    background-color: var(--cream-light);
    border: 2px solid var(--pitch-dark);
    box-shadow: 4px 4px 0 var(--pitch-dark);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.match-grid-card:hover {
    background-color: var(--pitch-dark);
    color: var(--cream-light);
    border-color: var(--pitch-dark);
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--gold);
}

.match-grid-card:hover *,
.match-grid-card:hover .vs-country-name,
.match-grid-card:hover .vs-rank-info,
.match-grid-card:hover .vs-divider,
.match-grid-card:hover .match-card-preview-text,
.match-grid-card:hover .read-preview-link {
    color: var(--cream-light) !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.group-pill {
    background-color: var(--cream-dark);
    border: 1px solid var(--pitch-dark);
    color: var(--pitch-dark);
    padding: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
}

.match-grid-card:hover .group-pill {
    background-color: var(--pitch-deep);
    border-color: var(--gold);
    color: var(--gold) !important;
}

.match-edge-badge {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold-hover);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-grid-card:hover .match-edge-badge {
    color: var(--gold) !important;
}

.match-vs-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--pitch-dark);
    padding-bottom: 24px;
}

.match-grid-card:hover .match-vs-display {
    border-bottom-color: rgba(230, 195, 92, 0.2);
}

.vs-team {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.vs-country-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.65rem;
    color: var(--pitch-dark);
}

.vs-rank-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey-text);
    margin-top: 4px;
}

.vs-divider {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    color: var(--gold);
    font-size: 1.4rem;
    width: 20%;
    text-align: center;
}

.match-stat-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
}

.comp-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--grey-text);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* HORIZONTAL COMPARISON METER */
.comparison-bar-container {
    height: 6px;
    width: 100%;
    display: flex;
    background-color: var(--cream-dark);
    overflow: hidden;
    margin: 4px 0;
}

.match-grid-card:hover .comparison-bar-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.comp-bar-left {
    height: 100%;
    background-color: var(--pitch-dark);
}

.match-grid-card:hover .comp-bar-left {
    background-color: var(--gold);
}

.comp-bar-right {
    height: 100%;
    background-color: var(--gold);
}

.match-grid-card:hover .comp-bar-right {
    background-color: rgba(255, 255, 255, 0.3);
}

.match-card-preview-text {
    font-size: 1rem;
    color: var(--grey-text);
    margin-bottom: 32px;
    line-height: 1.6;
}

.card-footer-action {
    border-top: 1px solid var(--cream-border);
    padding-top: 20px;
}

.match-grid-card:hover .card-footer-action {
    border-top-color: rgba(230, 195, 92, 0.2);
}

.read-preview-link {
    color: var(--pitch-dark);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* EXPANDED MATCH PREVIEWS - GRID PATTERN OVERLAY & GLOW EFFECT */
.expanded-previews-section {
    background-color: var(--cream-dark);
    position: relative;
}

.grid-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(230, 195, 92, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 195, 92, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.match-details-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.match-detail-block {
    background-color: var(--cream-light);
    border: 3px solid var(--pitch-dark);
    box-shadow: 8px 8px 0 var(--gold);
    padding: 48px;
    scroll-margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.detail-header {
    margin-bottom: 36px;
    border-bottom: 3px solid var(--pitch-dark);
    padding-bottom: 20px;
}

.detail-group {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold-hover);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.detail-match-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-top: 8px;
    color: var(--pitch-dark);
}

.detail-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.detail-team-box {
    background-color: var(--cream-dark);
    border: 1px solid var(--pitch-dark);
    padding: 32px;
    position: relative;
}

.detail-team-box.highlight-team {
    background-color: var(--cream-light);
    border-width: 2px;
    border-color: var(--gold);
    box-shadow: inset 0 0 20px rgba(230, 195, 92, 0.08);
}

.detail-team-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    display: block;
    margin-bottom: 24px;
    color: var(--pitch-dark);
}

.detail-badge-top {
    position: absolute;
    top: 32px;
    right: 32px;
    background-color: var(--gold);
    color: var(--pitch-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
}

.detail-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-border);
}

.detail-stat-row:last-child {
    border-bottom: none;
}

.d-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--grey-text);
    font-size: 0.75rem;
}

.d-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
}

.detail-vs-badge {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    color: var(--gold);
    font-size: 2rem;
    text-align: center;
}

/* PREMIUM COMPARISON METER EFFECT */
.detail-probability-gauge-wrap {
    margin-bottom: 48px;
    padding: 24px;
    background-color: var(--cream-dark);
    border-left: 4px solid var(--gold);
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.gauge-bar {
    height: 32px;
    display: flex;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cream-light);
}

.gauge-fill-left {
    background-color: var(--pitch-dark);
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.gauge-fill-right {
    background-color: var(--gold);
    color: var(--pitch-dark);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
}

.detail-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 3px solid var(--pitch-dark);
    padding-top: 36px;
}

.narrative-col h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pitch-dark);
}

.narrative-col p {
    color: var(--grey-text);
    font-size: 1.05rem;
    line-height: 1.625;
}

/* BOXED DROP CAP FOR LUXURY EDITORIAL STYLE */
.editorial-drop-cap::first-letter {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    padding: 6px 14px;
    margin: 4px 12px 0 0;
    border: 3px solid var(--pitch-dark);
    background-color: var(--pitch-dark);
    color: var(--gold);
    font-weight: 900;
}

/* GROUPS SNAPSHOT */
.groups-section {
    background-color: var(--cream-light);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.group-race-card {
    background-color: var(--cream-light);
    border: 2px solid var(--pitch-dark);
    padding: 32px;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.group-race-card:hover {
    background-color: var(--pitch-dark);
    color: var(--cream-light);
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--gold);
}

.group-race-card:hover * {
    color: var(--cream-light) !important;
}

.group-race-header {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.85rem;
    color: var(--pitch-dark);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--pitch-dark);
    padding-bottom: 12px;
}

.group-race-card:hover .group-race-header {
    border-bottom-color: var(--gold);
}

.group-race-teams {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.race-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.chance-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--grey-text);
}

.chance-tag.favorite {
    color: var(--gold-hover);
    text-decoration: underline;
}

.group-race-card:hover .chance-tag.favorite {
    color: var(--gold) !important;
}

.group-race-footer {
    border-top: 1px solid var(--cream-border);
    padding-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--grey-text);
}

.group-race-card:hover .group-race-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* HOST NATIONS WATCH */
.hosts-section {
    background-color: var(--cream-dark);
    border-bottom: 4px solid var(--pitch-dark);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.host-card {
    background-color: var(--cream-light);
    border: 2px solid var(--pitch-dark);
    padding: 36px;
    transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.host-card:hover {
    background-color: var(--pitch-dark);
    color: var(--cream-light);
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--gold);
}

.host-card:hover * {
    color: var(--cream-light) !important;
}

.host-badge {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.15rem;
    font-weight: 900;
    color: var(--pitch-dark);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--pitch-dark);
    padding-bottom: 16px;
}

.host-card:hover .host-badge {
    border-bottom-color: var(--gold);
}

.host-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.metric-row span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--grey-text);
    font-size: 0.8rem;
}

/* TOURNAMENT GUIDE */
.guide-section {
    background-color: var(--cream-light);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.guide-item {
    background-color: var(--cream-light);
    border: 2px solid var(--pitch-dark);
    padding: 32px;
    box-shadow: inset 0 0 15px rgba(4, 30, 21, 0.02);
}

.guide-item h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--pitch-dark);
}

.guide-item p {
    font-size: 1rem;
    color: var(--grey-text);
}

/* FAQ SECTION */
.faq-section {
    background-color: var(--cream-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background-color: var(--cream-light);
    border: 2px solid var(--pitch-dark);
}

.faq-trigger {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: var(--pitch-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 900;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 150ms ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 32px;
    background-color: var(--cream-light);
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
    padding-bottom: 24px;
    padding-top: 8px;
    color: var(--grey-text);
    font-size: 1.05rem;
    border-top: 1px solid var(--cream-border);
    padding-top: 16px;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* NEWSPAPER-STYLE FOOTER */
.main-footer {
    background-color: var(--pitch-dark);
    color: var(--cream-light);
    border-top: 4px solid var(--gold);
    padding-top: 80px;
}

.main-footer h4, .main-footer .brand-logo {
    color: var(--gold);
}

.main-footer .logo-accent {
    color: var(--cream-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-desc {
    color: var(--gold-light);
    font-size: 1rem;
    max-width: 440px;
}

.footer-links-col h4, .footer-address-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-bottom: 24px;
    letter-spacing: 0.15em;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--gold-light);
    font-size: 0.95rem;
    transition: color 150ms ease;
}

.footer-links a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.address-text {
    color: var(--gold-light);
    font-size: 0.95rem;
    line-height: 1.625;
    margin-bottom: 24px;
}

.nif-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold-light);
    opacity: 0.8;
}

.footer-mail {
    color: var(--gold);
    font-weight: 700;
}

.footer-mail:hover {
    text-decoration: underline;
}

.legal-page-triggers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.legal-trigger-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 150ms ease;
}

.legal-trigger-btn:hover {
    background-color: var(--gold);
    color: var(--pitch-dark);
}

.footer-bottom {
    background-color: var(--pitch-deep);
    border-top: 2px solid var(--gold);
    padding: 32px 24px;
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--gold-light);
    opacity: 0.8;
}

/* COOKIE CONSENT BANNER (HIGH CONTRAST) */
.cookie-banner {
    position: fixed;
    bottom: -250px;
    left: 0;
    width: 100%;
    background-color: var(--cream-light);
    border-top: 4px solid var(--pitch-dark);
    box-shadow: 0 -10px 40px rgba(4, 30, 21, 0.15);
    z-index: 9999;
    padding: 32px 24px;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    color: var(--pitch-dark);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--grey-text);
}

.cookie-inline-link {
    background: none;
    border: none;
    color: var(--pitch-dark);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-actions {
    display: flex;
    gap: 16px;
}

.btn-cookie-accept {
    background-color: var(--pitch-dark);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    border: 2px solid var(--pitch-dark);
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 150ms ease;
}

.btn-cookie-accept:hover {
    background-color: var(--cream-light);
    color: var(--pitch-dark);
}

.btn-cookie-reject {
    background-color: transparent;
    color: var(--pitch-dark);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    border: 2px solid var(--pitch-dark);
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 150ms ease;
}

.btn-cookie-reject:hover {
    background-color: var(--pitch-dark);
    color: var(--gold);
}

/* LEGAL MODAL VIEW (DYNAMIC PAGES) */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 30, 21, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms steps(1, end);
}

.legal-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-content {
    background-color: var(--cream-light);
    border: 4px solid var(--pitch-dark);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-modal-header {
    padding: 32px;
    border-bottom: 2px solid var(--pitch-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--pitch-dark);
}

.legal-modal-close {
    background: none;
    border: none;
    color: var(--pitch-dark);
    font-size: 2.5rem;
    cursor: pointer;
}

.legal-modal-nav {
    display: flex;
    background-color: var(--cream-dark);
    border-bottom: 2px solid var(--pitch-dark);
}

.legal-nav-tab {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    color: var(--grey-text);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
}

.legal-nav-tab:hover {
    color: var(--pitch-dark);
    background-color: var(--cream-border);
}

.legal-nav-tab.active {
    color: var(--pitch-dark);
    border-bottom-color: var(--gold);
    background-color: var(--cream-light);
}

.legal-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.legal-tab-panel {
    display: none;
}

.legal-tab-panel.active {
    display: block;
}

.legal-tab-panel h4 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--pitch-dark);
}

.legal-tab-panel h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--pitch-dark);
    text-transform: uppercase;
}

.legal-tab-panel p {
    color: var(--grey-text);
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 20px;
}

.legal-tab-panel ul {
    list-style-type: square;
    padding-left: 24px;
    margin-bottom: 24px;
}

.legal-tab-panel li {
    color: var(--grey-text);
    font-size: 1rem;
    margin-bottom: 12px;
}

.legal-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold-hover);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 32px !important;
}

.legal-modal-footer {
    padding: 24px;
    border-top: 2px solid var(--pitch-dark);
    background-color: var(--cream-dark);
    display: flex;
    justify-content: flex-end;
}

/* ACCESSIBILITY & FOCUS STATES */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .section-container {
        padding: 80px 24px;
    }
    .hero-grid {
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content-right {
        justify-content: center;
        margin-top: 24px;
    }
    .spotlight-card {
        max-width: 100%;
    }
    .detail-comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .detail-vs-badge {
        display: none;
    }
    
    .detail-narrative {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--pitch-dark);
        flex-direction: column;
        padding: 48px 24px;
        gap: 32px;
        transition: 150ms cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 2px solid var(--gold);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .header-actions .cta-btn-header {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 16px;
    }

    .legal-modal-content {
        height: 90vh;
    }

    .legal-modal-body {
        padding: 24px;
    }

    .legal-nav-tab {
        padding: 16px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 48px 16px;
    }
    
    .match-vs-display {
        flex-direction: column;
        gap: 16px;
    }
    
    .vs-team {
        width: 100%;
        text-align: center;
    }
    
    .vs-team .text-right {
        text-align: center !important;
    }
    
    .hero-quick-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}