:root {
            --bg-dark: #050505;
            --card-dark: #0f0f0f;
            --text-main: #ffffff;
            --text-muted: #b0b0b0;
            
            --neon: #00ff9d; 
            --neon-glow: rgba(0, 255, 157, 0.4);
            --neon-dim: rgba(0, 255, 157, 0.3);
            
            --sim-neon: #00d9ff; 
            --pen-neon: #ffaa00; 
            
            --gold: #ffd700;
            --bronze: #cd7f32;
            --error: #ff3333;
            
            --yellow-card: #ffe600;
            --red-card: #ff3333;
        }

        * { box-sizing: border-box; }

        body {
            background-color: var(--bg-dark);
            background-image:
                linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
            background-size: 48px 48px;
            color: var(--text-main);
            font-family: 'Courier New', Courier, monospace;
            margin: 0;
            padding: 20px;
            min-height: 100vh;
            overflow-x: hidden;
            transition: --neon 0.5s ease;
        }

        /* --- TYPOGRAPHY --- */
        h1, h2 {
            text-align: center; text-transform: uppercase; letter-spacing: 4px;
            text-shadow: 0 0 10px var(--neon-glow); margin: 0;
            transition: color 0.5s ease, text-shadow 0.5s ease;
        }
        h1 { margin-bottom: 20px; font-size: 2.5rem; color: var(--neon); }
        h2 { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--neon-dim); font-size: 1.8rem; color: var(--text-main); margin-bottom: 30px; }

        /* --- CONTROLS --- */
        .top-controls { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }

        .cyber-btn {
            background: rgba(0,0,0,0.6); border: 1px solid var(--neon); color: var(--neon);
            padding: 10px 25px; font-family: inherit; font-size: 0.9rem; font-weight: bold;
            cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px;
            backdrop-filter: blur(5px);
        }
        .cyber-btn:hover:not(:disabled) { background: var(--neon); color: #000; box-shadow: 0 0 20px var(--neon-glow); }
        .cyber-btn:disabled { border-color: #333; color: #555; cursor: not-allowed; background: rgba(0,0,0,0.2); box-shadow: none; }

        .btn-sim { border-color: var(--sim-neon); color: var(--sim-neon); }
        .btn-sim:hover:not(:disabled) { background: var(--sim-neon); color: #000; box-shadow: 0 0 20px var(--sim-neon); }

        .btn-danger { border-color: var(--error); color: var(--error); }
        .btn-danger:hover { background: var(--error); color: white; box-shadow: 0 0 20px var(--error); }

        @keyframes pulse-warn {
            0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(255, 51, 51, 0); }
            100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
        }
        .btn-update-required { background-color: rgba(255, 51, 51, 0.1); border-color: var(--error); color: var(--error); animation: pulse-warn 2s infinite; }
        
        @keyframes input-flash { 0% { background-color: var(--sim-neon); color: black; } 100% { background-color: #111; color: white; } }
        .sim-flash { animation: input-flash 0.5s ease-out; }

        /* --- LAYOUT --- */
        .groups-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 25px; max-width: 1600px; margin: 0 auto; }
        .bracket-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; max-width: 1400px; margin: 20px auto; align-items: flex-start; }

        /* --- CARDS --- */
        .card { background: var(--card-dark); border: 1px solid var(--neon-dim); border-left: 4px solid var(--neon); padding: 15px; transition: border-color 0.5s; box-shadow: 0 0 10px rgba(0,0,0,0.3); }
        .group-title { color: var(--neon); font-weight: bold; border-bottom: 1px solid var(--neon-dim); padding-bottom: 8px; margin-bottom: 10px; transition: color 0.5s; }

        .match-list { display: flex; flex-direction: column; gap: 6px; width: 100%; overflow: hidden; }
        .match-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            column-gap: 6px;
            padding: 6px 0;
            font-size: 0.9rem;
            width: 100%;
            min-width: 0;
            overflow: hidden;
        }
        .team-name {
            display: block;
            min-width: 0;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .t-right { text-align: right; }
        .t-left { text-align: left; }

        .team-cell { display: flex; align-items: center; min-width: 0; max-width: 100%; overflow: hidden; }
        .home-team-cell { justify-content: flex-end; gap: 8px; }
        .away-team-cell { justify-content: flex-start; }

        button.prediction-btn {
            all: unset;
            box-sizing: border-box;
            flex: 0 0 24px;
            width: 24px;
            height: 24px;
            min-width: 24px;
            border: 1px solid var(--sim-neon);
            color: var(--sim-neon);
            background: rgba(0, 217, 255, 0.12);
            border-radius: 50%;
            font-family: 'Courier New', Courier, monospace;
            font-weight: 900;
            font-size: 0.82rem;
            line-height: 22px;
            text-align: center;
            cursor: pointer;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(0,217,255,0.22);
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto;
            z-index: 5;
            transition: all 0.2s ease;
        }
        button.prediction-btn:hover { background: var(--sim-neon); color: #000; box-shadow: 0 0 14px var(--sim-neon); transform: scale(1.08); }
        button.prediction-btn.played { border-color: var(--gold); color: var(--gold); background: rgba(255,215,0,0.12); box-shadow: 0 0 10px rgba(255,215,0,0.18); }
        button.prediction-btn.played:hover { background: var(--gold); color: #000; box-shadow: 0 0 14px var(--gold); }

        .inputs-wrapper { display: flex; gap: 4px; padding: 0 2px; justify-content: center; align-items: center; }
        .score-group, .fp-group { display: inline-flex; gap: 2px; align-items: center; justify-content: center; }
        .score-group { padding: 0 2px; }
        .fp-group { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.025); padding: 1px 2px; border-radius: 4px; }
        .fp-label { font-size: 0.58rem; font-weight: 900; line-height: 1; letter-spacing: -0.5px; opacity: 0.9; }
        .fp-label-yellow { color: var(--yellow-card); text-shadow: 0 0 5px rgba(255,230,0,0.35); }
        .fp-label-red { color: var(--red-card); text-shadow: 0 0 5px rgba(255,51,51,0.35); }

        /* --- INPUTS & SPINNER REMOVAL --- */
        input[type="number"] { 
            width: 32px; 
            background: #111; 
            border: 1px solid #444; 
            color: #fff; 
            text-align: center; 
            font-family: inherit; 
            font-weight: bold; 
            font-size: 0.95rem; 
            padding: 4px; 
            border-radius: 3px; 
            -moz-appearance: textfield; /* Firefox */
        }
        
        /* Hide Spinners */
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type="number"]:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 8px var(--neon-dim); }
        input.actual-result { opacity: 1; border-color: var(--gold) !important; color: var(--gold) !important; background: #171300; cursor: not-allowed; }

        /* Fair Play Inputs */
        .fp-inp { width: 22px !important; font-size: 0.75rem !important; padding: 2px !important; border-style: dashed !important; opacity: 0.7; transition: opacity 0.2s; }
        .fp-inp:focus, .fp-inp:not(:placeholder-shown) { opacity: 1; border-style: solid !important; }
        .fp-yellow { border-color: var(--yellow-card) !important; color: var(--yellow-card) !important; }
        .fp-red { border-color: var(--red-card) !important; color: var(--red-card) !important; }
        input.actual-result.fp-yellow { border-color: var(--yellow-card) !important; color: var(--yellow-card) !important; background: rgba(255,230,0,0.12) !important; box-shadow: 0 0 6px rgba(255,230,0,0.12); }
        input.actual-result.fp-red { border-color: var(--red-card) !important; color: var(--red-card) !important; background: rgba(255,51,51,0.12) !important; box-shadow: 0 0 6px rgba(255,51,51,0.12); }

        /* --- TABLES --- */
        table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-bottom: 10px; color: #ccc; }
        th { text-align: center; color: #777; font-weight: normal; border-bottom: 1px solid #333; padding: 4px; }
        td { text-align: center; padding: 4px; border-bottom: 1px solid #222; }
        td:first-child { text-align: left; color: #fff; }
        .standings-table { font-size: 0.76rem; table-layout: fixed; }
        .standings-table th, .standings-table td { padding: 4px 3px; }
        .standings-table th:first-child, .standings-table td:first-child { width: 34%; }
        .standings-table td:last-child { color: #fff; }
        
        .q-1, .q-2 { border-left: 2px solid var(--neon); background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent); }
        .q-3 { border-left: 2px solid #555; }
        .q-best-3 { border-left: 2px solid var(--gold) !important; color: var(--gold) !important; background: linear-gradient(90deg, rgba(255,215,0,0.1), transparent); }

        /* --- KNOCKOUT CARDS --- */
        .match-card { width: 100%; max-width: 480px; min-height: 145px; display: flex; flex-direction: column; gap: 10px; background: var(--card-dark); border: 1px solid var(--neon-dim); border-left: 4px solid var(--neon); padding: 15px; box-shadow: 0 0 15px rgba(0,0,0,0.5); transition: border-color 0.5s; }
        .m-header { font-size: 0.7rem; color: #888; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #333; padding-bottom: 5px; }
        .m-body { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; }

        .pen-section { display: none; border-top: 1px dashed #333; padding-top: 5px; margin-top: 5px; text-align: center; }
        .pen-label { font-size: 0.7rem; color: var(--pen-neon); letter-spacing: 2px; display: block; margin-bottom: 3px; }
        .inp-pen { border-color: #530; color: var(--pen-neon); width: 32px; font-size: 0.9rem; }
        .inp-pen.pen-error { border-color: var(--error); color: var(--error); box-shadow: 0 0 5px var(--error); }

        .bronze-card { border-left-color: var(--bronze); border-color: rgba(205, 127, 50, 0.3); }
        .gold-card { border-left-color: var(--gold); border-color: rgba(255, 215, 0, 0.4); box-shadow: 0 0 30px rgba(255,215,0,0.1); transform: scale(1.05); margin: 10px; z-index: 10; }
        .gold-card .m-header { color: var(--gold); font-weight: bold; }
        .gold-card .team-name { font-weight: bold; font-size: 1.2rem; }

        /* --- TODAY'S GAMES --- */
        .today-games-section {
            max-width: 1600px;
            margin: 0 auto 34px auto;
            background: rgba(0,0,0,0.35);
            border: 1px solid var(--sim-neon);
            border-left: 4px solid var(--sim-neon);
            box-shadow: 0 0 22px rgba(0,217,255,0.10);
            padding: 14px;
        }
        .today-games-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            border-bottom: 1px solid rgba(0,217,255,0.35);
            padding-bottom: 8px;
            margin-bottom: 12px;
            color: var(--sim-neon);
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        .today-date { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 1px; }
        .today-games-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 10px;
        }
        .today-game-card {
            border: 1px solid #222;
            background: #0b0b0b;
            padding: 10px;
            min-width: 0;
        }
        .result-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
        .result-card.is-open {
            border-color: rgba(0,217,255,0.55);
            box-shadow: 0 0 16px rgba(0,217,255,0.10);
        }
        .result-toggle {
            all: unset;
            box-sizing: border-box;
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            color: #fff;
            cursor: pointer;
        }
        .result-toggle:focus-visible {
            outline: 1px solid var(--sim-neon);
            outline-offset: 3px;
        }
        .result-chevron {
            width: 22px;
            height: 22px;
            border: 1px solid var(--sim-neon);
            color: var(--sim-neon);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            line-height: 1;
            box-shadow: 0 0 8px rgba(0,217,255,0.12);
        }
        .result-toggle[aria-expanded="true"] .result-chevron {
            background: var(--sim-neon);
            color: #000;
        }
        .goal-details {
            margin-top: 10px;
            border: 1px solid rgba(0,217,255,0.32);
            background: rgba(0,217,255,0.045);
            padding: 9px;
        }
        .goal-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .goal-event {
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr);
            gap: 8px;
            align-items: start;
            color: var(--text-main);
            font-size: 0.82rem;
        }
        .goal-minute {
            color: var(--gold);
            font-weight: 900;
            text-align: right;
        }
        .goal-detail {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .goal-detail span,
        .goal-empty {
            color: var(--text-muted);
            font-size: 0.76rem;
        }
        .today-game-top {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 8px;
            align-items: center;
            margin-bottom: 8px;
        }
        .today-game-title {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #fff;
            font-weight: bold;
        }
        .today-game-meta {
            color: var(--text-muted);
            font-size: 0.72rem;
            margin-top: 2px;
        }
        .today-pick {
            color: var(--gold);
            border: 1px solid rgba(255,215,0,0.4);
            background: rgba(255,215,0,0.06);
            padding: 7px;
            font-size: 0.82rem;
            margin: 7px 0;
        }
        .today-score-list {
            color: var(--text-muted);
            font-size: 0.76rem;
            line-height: 1.45;
        }
        .today-empty {
            color: var(--text-muted);
            text-align: center;
            padding: 12px;
            border: 1px dashed #333;
        }


        .discipline-line {
            color: var(--text-main);
            border-color: rgba(255,255,255,0.14);
            background: rgba(255,255,255,0.035);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .discipline-team {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .discipline-team-name {
            color: #fff;
            font-weight: bold;
            min-width: 130px;
        }
        .discipline-chip {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            border-radius: 999px;
            padding: 2px 7px;
            font-size: 0.76rem;
            font-weight: 900;
            border: 1px solid currentColor;
            background: rgba(0,0,0,0.25);
        }
        .discipline-chip.yellow { color: var(--yellow-card); box-shadow: 0 0 7px rgba(255,230,0,0.12); }
        .discipline-chip.red { color: var(--red-card); box-shadow: 0 0 7px rgba(255,51,51,0.12); }

        #prediction-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.92); z-index: 1001; display: none;
            align-items: center; justify-content: center; padding: 20px;
        }
        .prediction-card {
            width: min(760px, 96vw); max-height: 88vh; overflow-y: auto;
            background: #070707; border: 1px solid var(--sim-neon); border-left: 4px solid var(--sim-neon);
            box-shadow: 0 0 35px rgba(0,217,255,0.18); padding: 18px;
        }
        .prediction-title {
            color: var(--sim-neon); font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
            border-bottom: 1px solid rgba(0,217,255,0.35); padding-bottom: 8px; margin-bottom: 12px;
        }
        .prediction-pick {
            border: 1px solid var(--gold); color: var(--gold); padding: 10px; margin: 12px 0;
            background: rgba(255,215,0,0.06); font-weight: bold; text-align: center;
        }
        .prediction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
        .prediction-stat { border: 1px solid #333; background: #101010; padding: 8px; text-align: center; }
        .prediction-stat strong { display: block; color: white; font-size: 1.05rem; margin-top: 3px; }
        .prediction-muted { color: var(--text-muted); font-size: 0.78rem; line-height: 1.45; }
        .prediction-history {
            border: 1px solid #333; background: #101010; padding: 9px; margin: 10px 0;
            color: var(--text-muted); font-size: 0.8rem; line-height: 1.45;
        }
        .prediction-history strong { color: var(--sim-neon); }
        .prediction-played {
            border: 1px solid var(--gold); color: var(--gold); padding: 10px; margin: 12px 0;
            background: rgba(255,215,0,0.06); font-weight: bold; text-align: center;
        }
        .prediction-table { width: 100%; margin-top: 10px; font-size: 0.82rem; }
        .prediction-table th { color: var(--sim-neon); }
        .prediction-table td:first-child { color: #fff; text-align: left; }

        #champion-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 1000; display: none; flex-direction: column; align-items: center; justify-content: center; }
        #champ-name { font-size: 4rem; color: var(--gold); text-shadow: 0 0 40px var(--gold); margin: 20px 0; text-align: center; }
        #confetti-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; }
        
        #path-panel { background: rgba(255,255,255,0.1); border: 1px solid var(--neon); padding: 15px; margin-top: 20px; border-radius: 5px; max-width: 900px; width: 90vw; max-height: 200px; overflow-y: auto; color: #eee; }

        .stage-section { display: none; padding-bottom: 40px; }
        .round-placeholder {
            width: min(760px, 100%);
            margin: 0 auto;
            border: 1px dashed var(--sim-neon);
            background: rgba(0, 217, 255, 0.06);
            color: var(--text-muted);
            padding: 18px;
            text-align: center;
            line-height: 1.45;
        }
        .round-placeholder strong {
            display: block;
            color: var(--sim-neon);
            margin-bottom: 6px;
            letter-spacing: 2px;
        }
        .actions-row { width: 100%; display: flex; justify-content: center; gap: 15px; margin: 20px 0; flex-wrap: wrap; }

        /* --- TOURNAMENT SHELL --- */
        .site-header {
            max-width: 1600px;
            margin: 0 auto 18px;
            min-height: 92px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: 24px;
            border-bottom: 1px solid rgba(0,217,255,0.3);
            padding: 8px 0 16px;
        }
        .title-lockup { display: flex; align-items: center; min-width: 0; gap: 14px; }
        .title-lockup h1 { text-align: left; margin: 0; font-size: 2rem; letter-spacing: 3px; }
        .title-kicker, .section-kicker {
            display: block;
            color: var(--gold);
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 2px;
            margin-bottom: 5px;
        }
        .trophy-mark {
            flex: 0 0 52px;
            width: 52px;
            height: 52px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(255,215,0,0.55);
            background: #111006;
            box-shadow: 0 0 18px rgba(255,215,0,0.12);
            font-size: 1.55rem;
        }
        .trophy-mark img { width: 29px; height: 29px; display: block; filter: drop-shadow(0 0 7px rgba(255,215,0,0.28)); }
        .site-header .top-controls { margin: 0; gap: 8px; flex-wrap: nowrap; }
        .site-header .cyber-btn { padding: 9px 14px; white-space: nowrap; text-decoration: none; }
        .support-links {
            display: grid;
            grid-template-columns: auto auto;
            gap: 4px 10px;
            padding-left: 18px;
            border-left: 1px solid #292929;
            font-size: 0.66rem;
            letter-spacing: 1px;
        }
        .support-links > span { grid-column: 1 / -1; color: #666; }
        .support-links a { color: var(--gold); text-decoration: none; }
        .support-links a:hover { color: #fff; }

        .stage-tracker {
            max-width: 1080px;
            margin: 0 auto 26px;
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            border: 1px solid #252525;
            background: #090909;
        }
        .stage-tracker button {
            position: relative;
            min-width: 0;
            border: 0;
            border-right: 1px solid #252525;
            background: transparent;
            color: #666;
            padding: 11px 8px;
            font-family: inherit;
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
        }
        .stage-tracker button:last-child { border-right: 0; }
        .stage-tracker button::after {
            content: '';
            position: absolute;
            left: 16%;
            right: 16%;
            bottom: -1px;
            height: 2px;
            background: transparent;
        }
        .stage-tracker button.is-complete { color: var(--neon); }
        .stage-tracker button.is-complete::before { content: '✓ '; }
        .stage-tracker button.is-active { color: #050505; background: var(--sim-neon); }
        .stage-tracker button.is-active::before { content: '● '; }
        .stage-tracker button:hover:not(.is-active) { color: #fff; background: #111; }

        .current-stage-section {
            position: relative;
            isolation: isolate;
            overflow: hidden;
            max-width: 1280px;
            margin: 0 auto 24px;
            border: 1px solid rgba(0,255,157,0.45);
            border-left: 5px solid var(--neon);
            background: #07100c;
            box-shadow: 0 0 30px rgba(0,255,157,0.09);
            padding: 22px;
        }
        .current-stage-section::before {
            content: '';
            position: absolute;
            inset: 12px;
            border: 1px solid rgba(0,255,157,0.07);
            pointer-events: none;
            z-index: -1;
        }
        .current-stage-section::after {
            content: '';
            position: absolute;
            width: 170px;
            height: 170px;
            border: 1px solid rgba(0,255,157,0.07);
            border-radius: 50%;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: -1;
        }
        .current-stage-heading {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(0,255,157,0.2);
        }
        .current-stage-heading h2 {
            margin: 0;
            padding: 0;
            border: 0;
            text-align: left;
            color: var(--neon);
            font-size: 1.7rem;
        }
        .stage-status, .match-status {
            color: var(--gold);
            border: 1px solid rgba(255,215,0,0.4);
            background: #171300;
            padding: 5px 8px;
            font-size: 0.66rem;
            font-weight: 900;
            letter-spacing: 1px;
            white-space: nowrap;
        }
        .current-stage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .focus-match-card {
            min-width: 0;
            border: 1px solid rgba(255,255,255,0.16);
            background: rgba(5,5,5,0.9);
            padding: 14px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        }
        .focus-match-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #777; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; }
        .focus-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px 0 13px; }
        .focus-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 1.05rem; }
        .focus-team strong { min-width: 0; overflow-wrap: anywhere; }
        .focus-team-home { justify-content: flex-end; text-align: right; }
        .focus-team-away { text-align: left; }
        .team-flag { flex: 0 0 auto; font-family: system-ui, sans-serif; font-size: 1.25em; line-height: 1; }
        .team-flag-img {
            display: inline-block;
            width: 24px;
            height: 16px;
            object-fit: cover;
            vertical-align: -3px;
            border: 1px solid rgba(255,255,255,0.22);
            box-shadow: 0 0 8px rgba(0,0,0,0.45);
        }
        .focus-team .team-flag-img { width: 30px; height: 20px; vertical-align: 0; }
        .team-flag-fallback {
            display: inline-grid;
            place-items: center;
            width: 24px;
            height: 16px;
            border: 1px solid #555;
            color: #aaa;
            font-size: 0.55rem;
            vertical-align: 1px;
        }
        .focus-score { min-width: 60px; text-align: center; color: var(--gold); font-size: 1.35rem; font-weight: 900; letter-spacing: 1px; }
        .focus-fixture-time { color: var(--text-muted); text-align: center; font-size: 0.73rem; }
        .focus-model-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #777; font-size: 0.65rem; }
        .focus-model-button { border: 0; padding: 0; background: transparent; color: var(--sim-neon); font-family: inherit; font-size: 0.7rem; font-weight: 900; cursor: pointer; }
        .focus-model-button:hover { color: #fff; }
        .probability-track { display: flex; width: 100%; height: 4px; margin-top: 6px; overflow: hidden; background: #222; }
        .probability-track span { display: block; height: 100%; }
        .probability-home { background: var(--neon); }
        .probability-draw { background: #777; }
        .probability-away { background: var(--sim-neon); }

        .archive-divider {
            max-width: 1600px;
            margin: 42px auto 0;
            display: flex;
            align-items: center;
            gap: 14px;
            color: #666;
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 2px;
        }
        .archive-divider::before, .archive-divider::after { content: ''; height: 1px; background: #222; flex: 1; }
        .stage-heading-row {
            max-width: 1600px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: end;
            gap: 14px;
        }
        .stage-heading-row h2 { grid-column: 2; }
        .stage-collapse {
            grid-column: 3;
            justify-self: end;
            width: 34px;
            height: 34px;
            border: 1px solid var(--sim-neon);
            background: #080808;
            color: var(--sim-neon);
            font-family: inherit;
            font-size: 1rem;
            font-weight: 900;
            cursor: pointer;
        }
        .stage-collapse:hover { color: #000; background: var(--sim-neon); }
        .stage-section.stage-collapsed { padding-bottom: 4px; }
        .stage-section.stage-collapsed .stage-content { display: none; }
        .groups-stage-section { display: block; }
        .groups-container .card { min-width: 0; }

        /* --- KNOCKOUT SCOREBOARDS --- */
        .match-card { position: relative; overflow: hidden; }
        .match-card.is-played { border-color: rgba(255,215,0,0.28); }
        .match-card .m-header strong { color: var(--gold); }
        .ko-date { color: #777; text-align: center; font-size: 0.7rem; margin-top: -3px; }
        .m-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
        .m-body .team-cell { gap: 7px; }
        .m-body .team-cell.is-winner .team-name { color: var(--gold); text-shadow: 0 0 9px rgba(255,215,0,0.18); }
        .m-body .team-cell.is-winner::after { content: '✓'; color: var(--gold); font-weight: 900; }
        .m-body .away-team-cell.is-winner::after { order: 3; }
        .knockout-score { gap: 5px; }
        .knockout-score input { width: 38px; height: 38px; font-size: 1.1rem; }
        .score-divider { color: #666; font-weight: 900; }

        .next-kickoff-card { border: 1px solid rgba(255,215,0,0.3); background: #0d0c05; padding: 12px; min-width: 0; }
        .next-kickoff-label { color: var(--gold); font-size: 0.68rem; font-weight: 900; letter-spacing: 1px; margin-bottom: 10px; }
        .next-kickoff-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
        .next-kickoff-teams span:first-child { text-align: right; }
        .next-kickoff-teams span:last-child { text-align: left; }
        .next-kickoff-teams strong { color: #666; }

        /* --- RESULTS CENTRE --- */
        .results-toolbar {
            max-width: 1600px;
            margin: 0 auto 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }
        .result-filter-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
        .result-filter-tabs button {
            border: 1px solid #333;
            background: #090909;
            color: #888;
            padding: 8px 11px;
            font-family: inherit;
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            cursor: pointer;
        }
        .result-filter-tabs button:hover { color: #fff; border-color: #666; }
        .result-filter-tabs button.is-active { color: #000; border-color: var(--sim-neon); background: var(--sim-neon); }
        .result-search input {
            width: 190px;
            border: 1px solid #333;
            background: #090909;
            color: #fff;
            padding: 8px 10px;
            font-family: inherit;
            font-size: 0.76rem;
        }
        .result-search input:focus { outline: 1px solid var(--sim-neon); border-color: var(--sim-neon); }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
        #results-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
        .result-card { padding: 12px; }
        .result-toggle { grid-template-columns: minmax(0, 1fr) auto; }
        .result-scoreboard { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
        .result-team { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
        .result-team strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .result-team-home { justify-content: flex-end; text-align: right; }
        .result-team-away { text-align: left; }
        .result-score-box { min-width: 46px; display: flex; flex-direction: column; align-items: center; color: var(--gold); }
        .result-score-box > strong { font-size: 1rem; }
        .result-penalties { color: #888; font-size: 0.55rem; margin-top: 2px; white-space: nowrap; }
        .result-meta { text-align: center; padding-top: 7px; }
        .next-result-card { border-color: rgba(255,215,0,0.28); background: #0d0c05; text-align: center; }
        .next-vs { color: #666; padding: 0 4px; }
        .card-swatch { display: inline-block; width: 8px; height: 11px; background: currentColor; }
        .goal-details { position: relative; }
        .goal-list { position: relative; }
        .goal-list::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: rgba(0,217,255,0.3); }
        .goal-event { grid-template-columns: 11px 44px minmax(0, 1fr); gap: 8px; position: relative; }
        .goal-marker { width: 9px; height: 9px; margin-top: 3px; border: 2px solid var(--sim-neon); background: #071014; border-radius: 50%; z-index: 1; }
        .goal-minute { text-align: left; }
        .goal-detail .goal-team { color: var(--sim-neon); }
        .goal-detail strong .team-flag-img { width: 20px; height: 13px; vertical-align: -2px; }

        @media (max-width: 1000px) {
            .site-header { grid-template-columns: minmax(0, 1fr) auto; }
            .support-links { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding: 8px 0 0; border-left: 0; border-top: 1px solid #202020; }
            .current-stage-list { grid-template-columns: 1fr; }
        }

        @media (max-width: 600px) {
            body { padding: 12px; }
            .site-header { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; }
            .title-lockup { justify-content: center; }
            .title-lockup h1 { text-align: left; font-size: 1.35rem; line-height: 1.15; margin: 0; }
            .title-kicker { font-size: 0.57rem; letter-spacing: 1px; }
            .trophy-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 1.25rem; }
            .site-header .top-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 5px; }
            .site-header .cyber-btn { min-width: 0; padding: 8px 5px; font-size: 0.64rem; text-align: center; white-space: nowrap; }
            .support-links { justify-content: center; font-size: 0.58rem; }
            .stage-tracker { margin-bottom: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
            .stage-tracker button { padding: 9px 5px; font-size: 0.61rem; letter-spacing: 0; }
            .current-stage-section { padding: 14px; margin-bottom: 16px; }
            .current-stage-heading { align-items: center; }
            .current-stage-heading h2 { font-size: 1.25rem; letter-spacing: 2px; }
            .section-kicker { font-size: 0.56rem; }
            .stage-status { font-size: 0.55rem; padding: 4px 6px; }
            .focus-scoreboard { gap: 7px; padding: 15px 0 10px; }
            .focus-team { flex-direction: column; gap: 5px; font-size: 0.84rem; text-align: center; }
            .focus-team-home { flex-direction: column; }
            .focus-team strong { overflow-wrap: anywhere; }
            .focus-score { min-width: 42px; font-size: 1.1rem; }
            .focus-fixture-time { font-size: 0.63rem; line-height: 1.4; }
            .focus-model-row { font-size: 0.55rem; }
            .focus-model-button { font-size: 0.62rem; }
            .today-games-section { padding: 11px; margin-bottom: 18px; }
            .today-games-header { align-items: center; letter-spacing: 1px; font-size: 0.78rem; }
            .today-date { text-align: right; font-size: 0.62rem; }
            .next-kickoff-teams { font-size: 0.78rem; }
            .archive-divider { margin-top: 28px; }
            .stage-heading-row { grid-template-columns: 1fr auto; align-items: center; }
            .stage-heading-row h2 { grid-column: 1; text-align: left; margin: 24px 0 14px; padding-top: 14px; }
            .stage-collapse { grid-column: 2; width: 30px; height: 30px; margin-top: 10px; }
            .groups-container { grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; }
            .card { padding: 10px; width: 100%; min-width: 0; }
            .match-item { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 3px; font-size: 0.8rem; }
            input[type="number"] { width: 28px; font-size: 0.9rem; }
            .fp-inp { width: 18px !important; padding: 0 !important; }
            .fp-label { font-size: 0.5rem; }
            .fp-group { padding: 1px; gap: 1px; }
            .score-group { padding: 0; }
            button.prediction-btn { width: 20px; min-width: 20px; height: 20px; flex-basis: 20px; font-size: 0.68rem; }
            .home-team-cell { gap: 4px; }
            .standings-table { font-size: 0.62rem; }
            .standings-table th, .standings-table td { padding: 4px 2px; }
            .standings-table th:first-child, .standings-table td:first-child { width: 30%; }
            .prediction-grid { grid-template-columns: 1fr; }
            .match-card { padding: 12px; max-width: 100%; }
            .m-header { gap: 8px; font-size: 0.58rem; }
            .m-header span:last-child { text-align: right; }
            .m-body { gap: 5px; }
            .m-body .team-cell { flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
            .m-body .home-team-cell { flex-direction: column; }
            .m-body .away-team-cell { flex-direction: column; }
            .m-body .team-cell.is-winner::after { position: absolute; margin-top: -42px; }
            .knockout-score { min-width: 82px; }
            .knockout-score input { width: 32px; height: 34px; }
            .team-name { font-size: 0.85rem; }
            .inputs-wrapper { min-width: 60px; }
            .cyber-btn { padding: 8px 16px; font-size: 0.75rem; letter-spacing: 0.5px; }
            h1 { font-size: 1.6rem; letter-spacing: 2px; margin-bottom: 10px; }
            h2 { font-size: 1.2rem; margin-top: 30px; }
            #champ-name { font-size: 2.2rem; }
            .results-toolbar { align-items: stretch; flex-direction: column; }
            .result-filter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .result-filter-tabs button { padding: 8px 4px; font-size: 0.62rem; }
            .result-search input { width: 100%; }
            #results-list { grid-template-columns: minmax(0, 1fr); }
            .result-scoreboard { gap: 5px; }
            .result-team { flex-direction: column; justify-content: center; text-align: center; gap: 3px; font-size: 0.7rem; }
            .result-team strong { max-width: 88px; }
            .result-score-box { min-width: 40px; }
            .discipline-team-name { min-width: 110px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            .goal-event { grid-template-columns: 11px 38px minmax(0, 1fr); }
        }
		.btn-donate { 
			border-color: #FFDD00; 
			color: #FFDD00; 
			text-decoration: none; /* Quita el subrayado del link */
			display: inline-block;
		}
			.btn-donate:hover { 
			background: #FFDD00; 
			color: #000; 
			box-shadow: 0 0 20px #FFDD00; 
		}
