/* RESET AND VARIABLES WITH RETRO 8-BIT PALETTE */
:root {
    --bg-primary: #0a0715;
    --bg-secondary: #120d2b;
    --surface-card: #1c153f;
    --surface-alt: #281e57;
    
    /* Bright Arcade Game Colors */
    --accent-red: #FF0000;
    --accent-blue: #00A2FF;
    --accent-gold: #FFD700;
    --accent-green: #00CC66;
    
    --accent-primary: var(--accent-gold);
    --accent-secondary: var(--accent-green);
    --accent-tertiary: var(--accent-red);
    --accent-alert: var(--accent-red);
    
    --border-divider: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --muted-label: #8e82bd;
    
    /* 8-bit Game Fonts */
    --font-heading: 'Press Start 2P', monospace;
    --font-body: 'VT323', monospace;
    --transition-smooth: all 0.15s steps(4, end); /* retro stepped transition */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    image-rendering: pixelated; /* Force pixelated scaling */
}

/* CRT / SCANLINE OVERLAY EFFECT */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 21px; /* Scaled up for retro typography readability */
}

body {
    overflow-x: hidden;
    line-height: 1.5;
}

/* COIN SCORE STRIP */
.arcade-top-bar {
    background-color: #000;
    color: var(--accent-gold);
    border-bottom: 4px solid var(--accent-red);
    padding: 6px 0;
    font-family: var(--font-heading);
    font-size: 0.65rem;
}

.arcade-top-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arcade-score .retro-label {
    color: var(--accent-blue);
}

.arcade-score .retro-val {
    color: #fff;
}

.blinking-text {
    animation: retroBlink 1.2s steps(2, start) infinite;
}

@keyframes retroBlink {
    to { visibility: hidden; }
}

.arcade-life-icons {
    display: flex;
    gap: 4px;
}

.pixel-heart {
    width: 20px;
    height: 18px;
    object-fit: contain;
}

/* UTILITIES & CONTAINERS */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.accent-text {
    color: var(--accent-gold);
    text-shadow: 2px 2px 0px #000;
}

.accent-green {
    color: var(--accent-green) !important;
}

.text-orange {
    color: var(--accent-red) !important;
}

.text-white {
    color: var(--text-primary);
}

.font-bold {
    font-weight: 700;
}

/* CUSTOM FLAGS STYLING (CHUNKY PIXEL FORMATS) */
.flag-icon {
    display: inline-block;
    width: 30px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 0px; /* pixel style is blocky */
    margin-right: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.bg-spain { background: linear-gradient(90deg, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%); }
.bg-france { background: linear-gradient(90deg, #002395 33.3%, #ffffff 33.3%, #ffffff 66.6%, #ed2939 66.6%); }
.bg-england { background: radial-gradient(circle, #ffffff 40%, #cf081f 41%) #ffffff; }
.bg-brazil { background: radial-gradient(circle, #002776 35%, #fdfc14 36%, #fdfc14 55%, #009c3b 56%); }
.bg-argentina { background: linear-gradient(180deg, #74acdf 30%, #f6b40e 31%, #f6b40e 69%, #74acdf 70%); }
.bg-portugal { background: linear-gradient(90deg, #116801 40%, #ff0000 40%); }
.bg-uruguay { background: linear-gradient(180deg, #0081c9 20%, #ffffff 20%, #ffffff 40%, #0081c9 40%, #0081c9 60%, #ffffff 60%, #ffffff 80%, #0081c9 80%); }
.bg-norway { background: linear-gradient(90deg, #ef2b2d 30%, #00205b 30%, #00205b 70%, #ef2b2d 70%); }
.bg-croatia { background: linear-gradient(180deg, #ff0000 33%, #ffffff 33%, #ffffff 66%, #171796 66%); }
.bg-morocco { background: #c1272d; position: relative; }
.bg-morocco::after { content: '★'; color: #006233; font-size: 10px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bg-austria { background: linear-gradient(180deg, #ed2939 33%, #ffffff 33%, #ffffff 66%, #ed2939 66%); }
.bg-colombia { background: linear-gradient(180deg, #fcd116 50%, #003893 50%, #003893 75%, #ce1126 75%); }
.bg-germany { background: linear-gradient(180deg, #000000 33.3%, #dd0000 33.3%, #dd0000 66.6%, #ffce00 66.6%); }
.bg-ecuador { background: linear-gradient(180deg, #ffdd00 50%, #0033a0 50%, #0033a0 75%, #d52b1e 75%); }
.bg-netherlands { background: linear-gradient(180deg, #ae1c28 33.3%, #ffffff 33.3%, #ffffff 66.6%, #21468b 66.6%); }
.bg-japan { background: radial-gradient(circle, #bc002d 40%, #ffffff 41%); }
.bg-belgium { background: linear-gradient(90deg, #000000 33.3%, #fdda24 33.3%, #fdda24 66.6%, #ef3340 66.6%); }
.bg-egypt { background: linear-gradient(180deg, #c8102e 33.3%, #ffffff 33.3%, #ffffff 66.6%, #000000 66.6%); }
.bg-usa { background: repeating-linear-gradient(180deg, #b22234, #b22234 3px, #ffffff 3px, #ffffff 6px); }
.bg-turkey { background: #e30a17; }

/* STICKY HEADER - STAYS DIRECTLY AT THE TOP AS YOU SCROLL, VERY SLIM & MODERN */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000;
    border-bottom: 4px solid #fff;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 8px;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background-color: rgba(255, 215, 0, 0.1);
}

.cta-button {
    background-color: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 0px;
    font-weight: bold;
    font-size: 0.7rem;
    transition: var(--transition-smooth);
    border: 4px solid #000;
    box-shadow: -4px 4px 0px #fff;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-green);
    color: #000;
    transform: translate(2px, -2px);
    box-shadow: -2px 2px 0px #fff;
}

/* MOBILE TOGGLE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: var(--text-primary);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0; /* Balanced padding to account for top sticky header */
    background: repeating-linear-gradient(45deg, #090715, #090715 15px, #0e0a22 15px, #0e0a22 30px);
    overflow: hidden;
    border-bottom: 8px solid #000;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50px;
    right: 50px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
    margin-left: 0;
}

.hero-badge {
    display: inline-block;
    background-color: #000;
    border: 4px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0px #000;
}

.title-with-sprite {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-shadow: 4px 4px 0px #000;
}

.hero-title .highlight {
    color: var(--accent-gold);
}

.pixel-sprite-container {
    background-color: #000;
    border: 4px solid #fff;
    padding: 8px;
    box-shadow: 6px 6px 0px var(--accent-red);
}

.pixel-sprite-trophy {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-left: 6px solid var(--accent-blue);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* RETRO BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 0px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
    border: 4px solid #000;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: -4px 4px 0px #fff;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translate(2px, -2px);
    box-shadow: -2px 2px 0px #000;
}

.btn-secondary {
    background-color: var(--accent-blue);
    color: #000;
    box-shadow: -4px 4px 0px #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    transform: translate(2px, -2px);
    box-shadow: -2px 2px 0px #000;
}

/* SECTION HEADER STYLING */
.section-header {
    margin-bottom: 50px;
    max-width: 900px;
    border-bottom: 4px dashed #000;
    padding-bottom: 24px;
}

.section-tag {
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 12px;
}

.section-tag-alt {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-shadow: 3px 3px 0px #000;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* TITLE RACE STRIP */
.title-race-section {
    background-color: var(--bg-secondary);
    padding: 60px 0;
    border-bottom: 8px solid #000;
}

.section-header-compact {
    margin-bottom: 30px;
    border-left: 6px solid var(--accent-gold);
    padding-left: 14px;
}

.header-tag {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title-compact {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 2px 2px 0px #000;
}

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

.title-race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.favorite-card {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0px #000;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px #000;
    border-color: #fff;
}

/* Retro-bordered themes */
.favorite-card.border-gold { border-color: var(--accent-gold); }
.favorite-card.border-blue { border-color: var(--accent-blue); }
.favorite-card.border-red { border-color: var(--accent-red); }
.favorite-card.border-green { border-color: var(--accent-green); }

.card-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
}

.favorite-country {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.favorite-country .country-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.75rem;
}

.favorite-meta {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.favorite-stats {
    display: flex;
    justify-content: space-between;
    border-top: 4px dashed #000;
    padding-top: 12px;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-label);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
}

/* TOP 10 MATCH CARDS GRID */
.matchups-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 8px solid #000;
}

.match-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.match-card {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 6px 6px 0px #000;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 8px 8px 0px #000;
}

.match-card.bg-highlight-alt {
    border-color: var(--accent-red);
}

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

.group-pill {
    background-color: #000000;
    color: var(--text-primary);
    border: 2px solid #fff;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0px;
    text-transform: uppercase;
}

.group-pill.group-host {
    background-color: var(--accent-red);
    color: #fff;
    border-color: #000;
}

.edge-indicator {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
}

.match-card-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.team-row {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 6px;
    border: 2px solid #000;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-primary);
}

.team-rank {
    margin-left: auto;
    background-color: #000;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    padding: 2px 6px;
    border: 1px solid #fff;
    color: var(--accent-gold);
}

.vs-divider {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.6rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    text-align: center;
    margin: 4px 0;
}

.match-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
    border-top: 4px dashed #000;
    border-bottom: 4px dashed #000;
    margin-bottom: 16px;
}

.stat-col {
    display: flex;
    flex-direction: column;
}

.stat-col .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--muted-label);
}

.stat-col .stat-data {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
}

.match-card-preview {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.match-card-link {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.match-card-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* EXPANDED PREVIEW SECTIONS */
.expanded-previews-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-bottom: 8px solid #000;
}

.previews-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.preview-block {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 40px;
    scroll-margin-top: 100px;
    transition: var(--transition-smooth);
    box-shadow: 8px 8px 0px #000;
}

.preview-block:hover {
    border-color: #fff;
}

.preview-block.preview-highlight {
    border: 4px solid var(--accent-red);
}

.preview-header {
    margin-bottom: 28px;
}

.match-meta {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.preview-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-shadow: 2px 2px 0px #000;
}

.higher-rank-tag {
    display: inline-block;
    background-color: #000;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-size: 0.55rem;
    padding: 6px 12px;
}

.higher-rank-tag.text-orange {
    color: var(--accent-red) !important;
    border-color: var(--accent-red);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.compare-card {
    background-color: var(--surface-alt);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 20px;
}

.compare-card.card-usa {
    border-left: 8px solid var(--accent-red);
}

.compare-team-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.compare-team-header .flag-icon {
    width: 36px;
    height: 24px;
}

.compare-team-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.compare-rank {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--muted-label);
}

.compare-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    border-bottom: 2px dashed rgba(0,0,0,0.4);
    padding-bottom: 6px;
}

.metric-row span {
    color: var(--text-secondary);
}

.metric-row strong {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--accent-gold);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    border-top: 4px solid #000;
    padding-top: 28px;
}

.preview-text-block h4 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.preview-text-block p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* GROUP RACE SNAPSHOTS */
.groups-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 8px solid #000;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.group-snapshot-card {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 4px 4px 0px #000;
}

.group-snapshot-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.group-snapshot-card.highlight-border {
    border-color: var(--accent-red);
}

.group-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px #000;
}

.group-matchup-meta {
    font-size: 1.1rem;
    color: var(--muted-label);
    margin-bottom: 16px;
}

.group-teams-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* 8-bit Segmented HP bar indicator */
.progress-bar-bg {
    width: 100%;
    height: 18px;
    background-color: #000;
    border: 2px solid #fff;
    padding: 2px;
}

.progress-bar-fill {
    height: 100%;
    /* Creates a beautiful blocky retro gauge effect */
    background: repeating-linear-gradient(90deg, var(--accent-gold) 0px, var(--accent-gold) 8px, #000 8px, #000 10px);
}

.progress-bar-fill.fill-green {
    background: repeating-linear-gradient(90deg, var(--accent-green) 0px, var(--accent-green) 8px, #000 8px, #000 10px);
}

.progress-bar-fill.fill-blue {
    background: repeating-linear-gradient(90deg, var(--accent-blue) 0px, var(--accent-blue) 8px, #000 8px, #000 10px);
}

.progress-bar-fill.bg-orange {
    background: repeating-linear-gradient(90deg, var(--accent-red) 0px, var(--accent-red) 8px, #000 8px, #000 10px);
}

/* HOST NATIONS WATCH */
.hosts-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-bottom: 8px solid #000;
}

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

.host-card {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 6px 6px 0px #000;
}

.host-card:hover {
    border-color: #fff;
    transform: translateY(-4px);
}

.host-badge {
    background-color: #000;
    border: 2px solid #fff;
    color: var(--text-primary);
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.host-rank-circle {
    width: 90px;
    height: 90px;
    border: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    background-color: #000;
}

.host-rank-circle span {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--muted-label);
}

.host-rank-circle strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1;
    color: #fff;
}

.host-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 4px dashed #000;
    padding-top: 20px;
}

.host-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
}

.host-stat-row span {
    color: var(--text-secondary);
}

.host-stat-row strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.65rem;
}

/* TOURNAMENT GUIDE */
.guide-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 8px solid #000;
}

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

.guide-card {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    padding: 24px;
    box-shadow: 4px 4px 0px #000;
}

.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ SECTION */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-bottom: 8px solid #000;
}

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

.faq-item {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 4px 4px 0px #000;
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    display: none;
    border-top: 4px dashed #000;
}

.faq-answer p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 16px;
}

/* COMPLIANCE / LEGAL SECTION */
.legal-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 8px solid #000;
}

.legal-tabs-container {
    background-color: var(--surface-card);
    border: 4px solid #000;
    border-radius: 0px;
    overflow: hidden;
    margin-top: 32px;
    box-shadow: 6px 6px 0px #000;
}

.legal-tabs {
    display: flex;
    background-color: var(--bg-secondary);
    border-bottom: 4px solid #000;
}

.legal-tab-btn {
    flex: 1;
    padding: 20px;
    background-color: transparent;
    border: none;
    color: var(--muted-label);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
    text-align: center;
}

.legal-tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background-color: var(--surface-card);
}

.legal-content-wrapper {
    padding: 40px;
}

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

.legal-tab-content.active {
    display: block;
    animation: fadeIn 0.2s steps(2, end) forwards;
}

.legal-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 4px dashed #000;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.legal-header-meta h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.legal-date {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--accent-green);
    font-weight: 600;
}

.legal-tab-content h4 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-primary);
    margin: 24px 0 10px 0;
}

.legal-tab-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.legal-tab-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.legal-tab-content li {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RETRO COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 48px);
    max-width: 850px;
    background-color: var(--surface-card);
    border: 4px solid #fff;
    box-shadow: -8px 8px 0px #000;
    z-index: 10005;
    padding: 20px;
    transition: transform 0.3s steps(4, end), opacity 0.3s steps(4, end);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.pixel-cookie-box {
    background-color: #000;
    border: 3px solid var(--accent-gold);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pixel-cookie-svg {
    display: block;
}

.cookie-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.cookie-highlight {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    display: block;
    margin-bottom: 4px;
}

.cookie-highlight.blinks {
    animation: retroBlink 1.2s steps(2, start) infinite;
}

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

.btn-cookie-action {
    padding: 8px 16px;
    border-radius: 0px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: bold;
    border: 4px solid #000;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cookie-accept {
    background-color: var(--accent-green);
    color: #000;
    box-shadow: -3px 3px 0px #fff;
}

.btn-cookie-accept:hover {
    background-color: #fff;
    transform: translate(2px, -2px);
    box-shadow: -1px 1px 0px #000;
}

.btn-cookie-decline {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: -3px 3px 0px #fff;
}

.btn-cookie-decline:hover {
    background-color: #fff;
    color: #000;
    transform: translate(2px, -2px);
    box-shadow: -1px 1px 0px #000;
}

/* FOOTER STYLING */
.main-footer {
    background-color: #000000;
    border-top: 8px solid var(--accent-red);
    padding: 60px 0 40px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-brand-info {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--muted-label);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

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

.footer-info-block {
    border-top: 4px dashed #333;
    border-bottom: 4px dashed #333;
    padding: 24px 0;
    margin-bottom: 24px;
}

.footer-note {
    font-size: 0.95rem;
    color: var(--muted-label);
    line-height: 1.6;
    margin-bottom: 16px;
}

.address-wrapper {
    background-color: var(--bg-secondary);
    padding: 16px;
    border: 4px solid #000;
    border-left: 6px solid var(--accent-gold);
}

.address-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--muted-label);
    align-items: center;
}

.arcade-pixel-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    background: #111;
    border: 2px solid var(--accent-gold);
    padding: 4px 8px;
    color: var(--accent-gold);
}

.pixel-ball-footer {
    width: 24px;
    height: 24px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .preview-block {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .hosts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .preview-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .legal-header-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .main-header {
        top: 0; /* Align directly if compact view */
    }
    .arcade-top-bar {
        display: none; /* Hide top bar elements on very narrow screens for layout sanity */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 52px; /* Slimmer header offset */
        left: 0;
        width: 100%;
        height: calc(100vh - 52px);
        background-color: #000000;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s steps(4, end), opacity 0.2s steps(4, end);
        border-top: 4px solid #fff;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header-cta {
        display: none;
    }

    .hero-section {
        padding: 100px 0 60px 0;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .footer-links-grid {
        gap: 32px;
        flex-wrap: wrap;
    }
    
    .legal-tabs {
        flex-direction: column;
    }
    
    .legal-tab-btn {
        border-bottom: none;
        border-left: 4px solid transparent;
        text-align: left;
    }
    
    .legal-tab-btn.active {
        border-left-color: var(--accent-gold);
    }
    
    .legal-content-wrapper {
        padding: 24px;
    }

    /* Responsive cookie banner styles */
    .cookie-banner {
        bottom: 0px;
        left: 0px;
        transform: translateY(100%);
        width: 100%;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
    }
    .cookie-banner.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .preview-title {
        font-size: 1rem;
    }
}