/* Custom Comic-Scrapbook Variables */
:root {
    --color-bg-deep: #fcfbf7;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f1fff4;
    --color-accent-green: #21c861;
    --color-accent-cyan: #00e5ff;
    --color-accent-gold: #ffd700;
    --color-text-primary: #000000;
    --color-text-muted: #333333;
    --color-text-dark: #000000;
    --color-border: #000000;
    --color-border-active: #21c861;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Simplified transitions for layout stability */
    --transition-smooth: all 0.15s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Comic Grid Background Overlay to mimic real draft scrapbook paper */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 24px 24px, 12px 12px;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--color-accent-green);
    -webkit-text-stroke: 1px #000000;
}

.gradient-text {
    color: var(--color-accent-green);
    -webkit-text-stroke: 1.5px #000000;
}

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

/* Header special layout tag style */
.font-special-tag {
    background: #00e5ff !important;
    border: 2px solid #000000 !important;
    box-shadow: 2px 2px 0px #000000 !important;
    color: #000000 !important;
}

/* Ticker Styles (Slowed animation rate to reduce layout jitter) */
.stats-ticker {
    background: #000000;
    color: #ffffff;
    border-bottom: 5px solid #000000;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    z-index: 1000;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: ticker 65s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 60px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticker-item .accent {
    color: var(--color-accent-green);
    -webkit-text-stroke: 0;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Header Styles */
.main-header {
    background: #ffffff;
    border-bottom: 5px solid #000000;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 800;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 2px solid transparent;
    border-radius: 6px;
}

.nav-link:hover {
    color: #000000;
    background: var(--color-accent-green);
    border-color: #000000;
    box-shadow: 3px 3px 0px #000000;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 3px solid #000000;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 20px;
    height: 3px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

/* Scrapbook Handdrawn Cards style */
.scrapbook-card {
    background: #ffffff !important;
    border: 4px solid #000000 !important;
    border-radius: 12px !important;
    box-shadow: 6px 6px 0px #000000 !important;
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
}

.scrapbook-card:hover {
    box-shadow: 8px 8px 0px #000000 !important;
}

/* Decorative stars & highlight badges */
.doodle-star {
    font-size: 24px;
    color: var(--color-accent-gold);
    position: absolute;
    font-weight: 900;
    -webkit-text-stroke: 1.5px #000000;
}

.top-right-star {
    top: 15px;
    right: 25px;
    transform: rotate(15deg);
}

/* Stickers & badging colors */
.sticker-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--color-accent-green);
    color: #000000;
    border: 3px solid #000000;
    padding: 4px 14px;
    font-weight: 900;
    font-size: 12px;
    transform: rotate(3deg);
    border-radius: 4px;
    box-shadow: 3px 3px 0px #000000;
}

.badge-black {
    background: #000000;
    color: #ffffff;
}

.badge-green {
    background: var(--color-accent-green);
    color: #000000;
}

.badge-secure {
    background: var(--color-accent-gold);
    color: #000000;
    font-size: 10px;
    padding: 3px 10px;
    top: -12px;
    right: 15px;
    z-index: 5;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
}

/* Scrapbook buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: 3px solid #000000;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: 4px 4px 0px #000000;
    position: relative;
}

.btn-primary {
    background: var(--color-accent-green);
    color: #000000;
}

.btn-primary:hover {
    background: #1cb557;
    box-shadow: 6px 6px 0px #000000;
}

.btn-outline {
    background: #ffffff;
    color: #000000;
}

.btn-outline:hover {
    background: #f5f5f5;
    box-shadow: 6px 6px 0px #000000;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    border-bottom: 5px solid #000000;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.notebook-panel {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 6px 6px 0px #000000;
    position: relative;
}

/* Realistic tape effect on cards */
.tape-corner {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 120px;
    height: 35px;
    background: rgba(235, 230, 200, 0.75);
    border-left: 2px dashed rgba(0,0,0,0.15);
    border-right: 2px dashed rgba(0,0,0,0.15);
    transform: rotate(-8deg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.edition-tag {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #000000;
    background: var(--color-accent-green);
    border: 2px solid #000000;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

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

.card-header-accent {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.stats-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.ribbon-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-accent-green);
    -webkit-text-stroke: 1.5px #000000;
}

.ribbon-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.tech-graphic-container {
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 3px dashed #000000;
    padding-top: 25px;
}

.tech-ring {
    width: 75px;
    height: 75px;
    transform: rotate(-90deg);
}

.ring-track {
    stroke: #e0e0e0;
}

.ring-fill {
    stroke-linecap: round;
}

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

.color-blue {
    stroke: #000000;
}

.tech-graphic-text .metric-value {
    font-size: 26px;
    font-weight: 900;
}

.tech-graphic-text .metric-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 800;
}

/* Sections General */
.section {
    padding: 80px 0;
    border-bottom: 5px solid #000000;
}

.dark-bg {
    background-color: #ffffff;
}

.section-header-block {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag-line {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #000000;
    background: var(--color-accent-green);
    border: 2px solid #000000;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 600;
}

/* Today's Featured Match Grid */
.featured-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.match-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px dashed #000000;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.match-id {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 800;
}

.match-status {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-tag {
    color: var(--color-accent-green);
}

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

.team-block {
    flex: 1;
}

.flag-icon-container {
    margin-bottom: 15px;
}

/* CSS Stamps Flags - Clean handdrawn borders */
.custom-flag {
    display: inline-block;
    width: 36px;
    height: 24px;
    background-color: #dddddd;
    border-radius: 3px;
    border: 2px solid #000000;
    position: relative;
    box-shadow: 2px 2px 0px #000000;
}

.flag-eng { background: #fff; }
.flag-eng::before { content: ''; position: absolute; width: 4px; height: 100%; left: 14px; background: red; }
.flag-eng::after { content: ''; position: absolute; height: 4px; width: 100%; top: 8px; background: red; }

.flag-gha { background: linear-gradient(#D21820 33%, #FCD116 33%, #FCD116 66%, #006B3F 66%); }
.flag-por { background: linear-gradient(90deg, #006600 40%, #ff0000 40%); }
.flag-uzb { background: linear-gradient(#0099B5 33%, #FFF 33%, #FFF 66%, #1EB53A 66%); }
.flag-pan { background: linear-gradient(135deg, #FFF 50%, #1D2B53 50%); }
.flag-cro { background: linear-gradient(#FF0000 33%, #FFF 33%, #FFF 66%, #0000FF 66%); }
.flag-col { background: linear-gradient(#FCD116 50%, #003893 50%, #003893 75%, #CE1126 75%); }
.flag-cod { background: #007FFF; }
.flag-esp { background: linear-gradient(#CE1126 25%, #FCD116 25%, #FCD116 75%, #CE1126 75%); }
.flag-fra { background: linear-gradient(90deg, #002395 33%, #FFFFFF 33%, #FFFFFF 66%, #ED2939 66%); }
.flag-bra { background: #009c3b; } /* Simulating a green stamp background */
.flag-arg { background: linear-gradient(#74ACDF 33%, #FFFFFF 33%, #FFFFFF 66%, #74ACDF 66%); }
.flag-usa { background: linear-gradient(#b22234 50%, #3c3b6e 50%); }

.team-block h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 5px;
}

.strength-score {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 800;
}

.vs-divider {
    font-weight: 900;
    color: #000000;
    background: var(--color-accent-green);
    border: 2px solid #000000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 2px 2px 0px #000000;
}

.advanced-probability-bar {
    display: flex;
    height: 38px;
    border-radius: 8px;
    border: 3px solid #000000;
    overflow: hidden;
    margin-bottom: 25px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 3px 3px 0px #000000;
}

.prob-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #000000;
}

.prob-home { background: var(--color-accent-green); }
.prob-draw { background: #e0e0e0; border-left: 3px solid #000000; border-right: 3px solid #000000; }
.prob-away { background: #ffffff; }

.prob-percent { line-height: 1; margin-bottom: 2px; }
.prob-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; }

.tactical-grid-brief {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: #fbfbfb;
    padding: 15px;
    border-radius: 8px;
    border: 3px solid #000000;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px #000000;
}

.tactical-item {
    font-size: 13px;
    color: var(--color-text-muted);
}

.tactical-item strong {
    color: #000000;
}

.preview-dataset-table {
    margin-bottom: 25px;
}

.dataset-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px dashed #000000;
}

.dataset-row .data-label { color: var(--color-text-muted); font-weight: 700; }

.forecast-result-box {
    font-size: 12px;
    color: #000000;
    background: #f1fff4;
    border: 2.5px solid #000000;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
}

/* Matchday Power Index Panel */
.power-index-panel {
    background: #ffffff;
}

.panel-header-editorial {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 3px dashed #000000;
    padding-bottom: 15px;
}

.panel-header-editorial .tag {
    font-size: 11px;
    font-weight: 900;
    background: #000000;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
}

.panel-header-editorial h4 {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.power-index-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.power-item {
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px #000000;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.power-item .rank {
    font-size: 12px;
    font-weight: 900;
    color: var(--color-accent-green);
    -webkit-text-stroke: 1px #00;
}

.power-item .team-name {
    font-size: 15px;
    font-weight: 800;
}

.power-item .bar-value {
    font-size: 13px;
    font-weight: 900;
    color: #000000;
}

/* Gap Analysis Grid */
.gap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gap-card {
    background: #ffffff;
}

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

.gap-group {
    font-size: 11px;
    color: #000000;
    background: var(--color-accent-green);
    padding: 2px 8px;
    border-radius: 4px;
    border: 2px solid #000000;
    font-weight: 900;
}

.gap-card h5 {
    font-size: 18px;
    font-weight: 900;
}

.gap-metric-comparison {
    display: flex;
    justify-content: space-between;
    background: #fbfbfb;
    border: 2.5px solid #000000;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

.gap-metric-comparison .team-val {
    font-weight: 800;
}

.gap-metric-comparison .val {
    color: var(--color-accent-green);
    font-weight: 900;
}

.gap-indicators {
    border-bottom: 3px dashed #000000;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.indicator-row .label { color: var(--color-text-muted); font-weight: 700; }
.indicator-row .value { font-weight: 900; color: #000000; }

.gap-editorial-summary {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 600;
}

/* Editorial Match Index & Search Input */
.index-filter-wrapper {
    margin: 25px auto 0;
    max-width: 550px;
}

.handdrawn-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.handdrawn-input-container input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    border: 3.5px solid #000000;
    border-radius: 10px;
    box-shadow: 4px 4px 0px #000000;
    outline: none;
    background: #ffffff;
}

.handdrawn-input-container input:focus {
    border-color: var(--color-accent-green);
}

.input-decor-sticker {
    position: absolute;
    right: -15px;
    top: -10px;
    font-size: 11px;
    font-weight: 900;
    background: #00e5ff;
    padding: 2px 10px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    transform: rotate(5deg);
}

.match-index-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.index-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.index-card:hover {
    background: var(--color-bg-card-hover) !important;
}

.index-num {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 15px;
    right: 15px;
}

.index-group {
    font-size: 10px;
    font-weight: 900;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.index-card h4 {
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #000000;
}

.index-cta {
    font-size: 12px;
    font-weight: 900;
    color: var(--color-accent-green);
    -webkit-text-stroke: 0.5px #000000;
    margin-top: auto;
}

.index-empty-notice {
    text-align: center;
    padding: 30px;
    font-weight: 800;
    color: var(--color-text-muted);
    border: 3.5px dashed #000000;
    border-radius: 12px;
    margin-top: 20px;
}

/* Head-to-Head Custom Simulator Styles */
.simulator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
}

.simulator-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 3.5px dashed #000000;
    padding-bottom: 25px;
}

.input-selection-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-selection-block label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #333333;
}

.doodle-select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    border: 3px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 3px 3px 0px #000000;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.sim-versus-stamp {
    font-size: 18px;
    font-weight: 900;
    background: var(--color-accent-gold);
    border: 2.5px solid #000000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 2px 2px 0px #000000;
    transform: rotate(-10deg);
}

.simulator-run-panel {
    text-align: center;
    margin-bottom: 30px;
}

.simulator-results-dashboard {
    background: #faf9f5;
    border: 3.5px solid #000000;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 4px 4px 0px #000000;
}

.sim-teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #000000;
    padding-bottom: 20px;
}

.sim-team-column {
    flex: 1;
}

.sim-team-column h4 {
    font-size: 24px;
    font-weight: 900;
    margin: 8px 0;
}

.sim-flag-wrap {
    display: inline-block;
}

.sim-stat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    background: #000000;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
}

.sim-center-score {
    text-align: center;
    min-width: 120px;
}

.sim-score-box {
    background: #00e5ff;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 8px 15px;
    display: inline-block;
    box-shadow: 3px 3px 0px #000000;
    margin-bottom: 6px;
}

.sim-score-box span {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
}

.score-sub {
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-muted);
}

.sim-prob-bars-container {
    margin-bottom: 25px;
}

.sim-prob-bars-container h5 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sim-bar-graphic {
    display: flex;
    height: 32px;
    border: 3px solid #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 0px #000000;
    margin-bottom: 15px;
}

.sim-bar-slice {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #000000;
}

.slice-a { background: var(--color-accent-green); }
.slice-draw { background: #e5e5e5; border-left: 2px solid #000000; border-right: 2px solid #000000; }
.slice-b { background: #00e5ff; }

.sim-bar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 800;
}

.sim-bar-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #000000;
}

.slice-a-dot { background: var(--color-accent-green); }
.slice-draw-dot { background: #e5e5e5; }
.slice-b-dot { background: #00e5ff; }

.sim-editorial-card {
    background: #ffffff;
    border: 2.5px solid #000000;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 2px 2px 0px #000000;
}

.sim-editorial-card h5 {
    font-size: 12px;
    font-weight: 900;
    color: #333333;
    margin-bottom: 6px;
}

.sim-editorial-card p {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

/* Run simulation highlight frame pulse animation */
.pulse-highlight {
    animation: pulseBorder 0.3s ease-in-out;
}

@keyframes pulseBorder {
    0% { transform: scale(1); border-color: #000000; }
    50% { transform: scale(1.02); border-color: var(--color-accent-green); }
    100% { transform: scale(1); border-color: #000000; }
}

/* Leaderboard */
.leaderboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gold-rank {
    border-left: 10px solid var(--color-accent-gold) !important;
}

.leaderboard-badge {
    font-size: 34px;
    font-weight: 900;
    color: var(--color-accent-green);
    -webkit-text-stroke: 1.5px #000000;
    width: 60px;
}

.leaderboard-info {
    flex: 1.5;
    padding-right: 40px;
}

.leaderboard-info h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
}

.leaderboard-info .group-info {
    font-size: 11px;
    color: #ffffff;
    background: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.leaderboard-info .editorial-snippet {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.leaderboard-metrics {
    display: flex;
    gap: 40px;
    flex: 0.8;
}

.leaderboard-metrics .metric-block {
    display: flex;
    flex-direction: column;
}

.leaderboard-metrics .val {
    font-size: 30px;
    font-weight: 900;
    color: #000000;
}

.leaderboard-metrics .lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Detailed Previews */
.previews-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.preview-item-block {
    background: #ffffff;
}

.preview-header-main {
    border-bottom: 3px dashed #000000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.preview-header-main .group-marker {
    font-size: 11px;
    font-weight: 900;
    background: var(--color-accent-green);
    color: #000000;
    border: 2px solid #000000;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.preview-header-main h3 {
    font-size: 28px;
    font-weight: 900;
}

.preview-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    color: #000000;
    padding: 12px 15px;
    border-bottom: 3px solid #000000;
}

.comparison-table td {
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px dashed #000000;
}

.comparison-table tr.highlight-row {
    background: #f1fff4;
}

.comparison-table tr.highlight-row td {
    font-weight: 900;
}

.metric-summary-box {
    background: #fbfbfb;
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 3px 3px 0px #000000;
}

.metric-summary-box .mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2.5px dashed #000000;
    padding-bottom: 15px;
}

.metric-summary-box .mini-item {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.metric-summary-box .mini-item strong {
    color: #000000;
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.editorial-intepretation {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 600;
}

/* Advanced Tournament Insights Matrix */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.insight-value-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.insight-value-card .card-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.insight-value-card .card-large-stat {
    font-size: 30px;
    font-weight: 900;
    color: var(--color-accent-green);
    -webkit-text-stroke: 1.5px #000000;
    margin-bottom: 15px;
}

.insight-value-card .card-sub-text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 600;
}

/* Group Race Center Grid */
.group-race-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.group-race-card {
    background: #ffffff;
}

.group-race-card .group-header {
    font-size: 15px;
    font-weight: 900;
    border-bottom: 3px dashed #000000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.race-team {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.race-team.primary {
    color: var(--color-accent-green);
    font-weight: 900;
    -webkit-text-stroke: 0.5px #00;
}

.race-team.challenger {
    color: var(--color-text-primary);
    font-weight: 800;
}

.race-analysis {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 15px;
    border-top: 2px dashed #000000;
    padding-top: 10px;
    font-weight: 600;
}

/* Host Nations Watch Grid */
.hosts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.host-card {
    background: #ffffff;
}

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

.host-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: 900;
    background: var(--color-accent-green);
    color: #000000;
    border: 2px solid #000000;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 2px 2px 0px #000000;
}

.host-header-block {
    margin-bottom: 25px;
}

.host-header-block h3 {
    font-size: 22px;
    font-weight: 900;
}

.rank-tag {
    font-size: 12px;
    color: var(--color-accent-green);
    font-weight: 900;
    -webkit-text-stroke: 0.5px #000000;
}

.host-metrics-list {
    background: #fbfbfb;
    border: 2.5px solid #000000;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px #000000;
}

.h-metric {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 0;
}

.host-editorial {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Storylines Section */
.storylines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.story-article {
    background: #ffffff;
}

.story-article h4 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #000000;
    border-bottom: 3px dashed #000000;
    padding-bottom: 10px;
}

.story-article p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 600;
}

/* Methodology Section */
.methodology-content {
    background: #ffffff;
}

.methodology-text p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-weight: 600;
}

.sketched-list {
    margin-bottom: 25px;
    padding-left: 20px;
}

.sketched-list li {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    list-style-type: square;
    font-weight: 600;
}

.legal-placeholder-container {
    background: #f1fff4;
    border: 3px solid #000000;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 3px 3px 0px #000000;
}

.editorial-disclaimer {
    font-size: 14px;
    color: #000000;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.address-markup {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #000000;
}

/* FAQ Accordion Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    font-weight: 900;
    text-align: left;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #000000;
    font-weight: 900;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    max-width: 420px;
    z-index: 10000;
    background: #ffffff;
    display: none;
    flex-direction: column;
    gap: 15px;
    transform: rotate(1deg);
}

.cookie-banner.banner-visible {
    display: flex;
}

.cookie-banner p {
    font-size: 13px;
    font-weight: 700;
    color: #000000;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.compact-btn {
    padding: 8px 16px !important;
    font-size: 11px !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

/* Interactive Modals */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal-content {
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(-0.5deg);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    color: #000000;
}

.modal-active {
    display: flex;
}

#modal-body-content h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    border-bottom: 3px dashed #00;
    padding-bottom: 10px;
}

#modal-body-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 15px 0 10px;
}

#modal-body-content p {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

/* Footer Section */
.main-footer {
    background: #ffffff;
    border-top: 5px solid #000000;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-disclaimer-text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 600;
    margin: 15px 0;
}

.footer-links-column h5 {
    font-size: 16px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 900;
    border-bottom: 2.5px dashed #000000;
    padding-bottom: 5px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 800;
}

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

.footer-bottom {
    border-top: 4px solid #000000;
    padding-top: 25px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.footer-bottom-addr {
    font-family: monospace;
    color: #000000;
}

/* Accessibility Focus States for SEO and Security */
a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 3px solid var(--color-accent-green);
    outline-offset: 2px;
}

/* Responsiveness (Media Queries) */
@media (max-width: 1200px) {
    .gap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .match-index-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .insights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .group-race-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .featured-matches-grid {
        grid-template-columns: 1fr;
    }
    .preview-content-grid {
        grid-template-columns: 1fr;
    }
    .power-index-flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 4px solid #000000;
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 4px 4px 0px #000000;
    }
    .nav-menu.active {
        display: flex;
    }
    .section-title {
        font-size: 30px;
    }
    .gap-grid {
        grid-template-columns: 1fr;
    }
    .match-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .leaderboard-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .leaderboard-metrics {
        width: 100%;
        justify-content: space-between;
    }
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .group-race-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hosts-grid {
        grid-template-columns: 1fr;
    }
    .storylines-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .simulator-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .sim-versus-stamp {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    .match-index-grid {
        grid-template-columns: 1fr;
    }
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .group-race-grid {
        grid-template-columns: 1fr;
    }
    .power-index-flex {
        grid-template-columns: 1fr;
    }
}