* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --theme-accent-a: #00ff8c;
    --theme-accent-b: #00ff8c;
    --theme-accent-c: #00ff8c;
    --theme-accent-gradient: linear-gradient(135deg, rgba(0, 255, 140, 0.94), rgba(0, 255, 140, 0.9));
    --card: rgba(12, 24, 45, 0.78);
    --muted: #a9b8d4;
}

body {
    min-height: 100vh;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

a {
    color: var(--theme-accent-a);
    text-decoration: none;
}

a:hover {
    color: var(--theme-accent-b);
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #14182d;
    padding: 12px 20px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 4px solid var(--theme-accent-a);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-home-link,
.topbar-home-link:hover {
    text-decoration: none;
    color: inherit;
}

.topbar-logo {
    width: 40px;
    height: 40px;
    background: var(--theme-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
    font-size: 0.85em;
}

.topbar-site-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #14182d;
    color: var(--theme-accent-a);
    text-decoration: none;
    font-weight: 600;
}

.topbar-link:hover,
.topbar-link.is-active {
    background: #1f2539;
    color: var(--theme-accent-b);
}

.home-page {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
        #1a1f3a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 255, 140, 0.25), transparent 24%),
                radial-gradient(circle at 80% 80%, rgba(86, 227, 159, 0.2), transparent 20%);
    pointer-events: none;
}

.hero-copy,
.hero-orbit {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #00ff8c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 4.5vw, 4.8rem);
    line-height: 0.97;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 60ch;
    margin-top: 18px;
    color: #c7d2ff;
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-button:hover {
    transform: translateY(-1px);
}

.hero-button.primary {
    background: var(--theme-accent-gradient);
    color: #04111d;
    box-shadow: 0 18px 28px rgba(0, 255, 140, 0.18);
}

.hero-button.secondary {
    background: #14182d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hero-orbit {
    min-height: 300px;
    display: grid;
    place-items: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 140, 0.18);
    box-shadow: inset 0 0 24px rgba(255,255,255,0.04);
    animation: drift 14s ease-in-out infinite;
}

.orbit-ring-a {
    width: 260px;
    height: 260px;
}

.orbit-ring-b {
    width: 340px;
    height: 340px;
    animation-delay: -4s;
}

.hero-core {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 35%),
        linear-gradient(135deg, rgba(0, 255, 140, 0.92), rgba(0, 255, 140, 0.9));
    color: #03101b;
    text-align: center;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(-6deg);
}

.hero-core span {
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    opacity: 0.82;
}

.hero-core strong {
    display: block;
    font-size: 2rem;
    letter-spacing: 0.14em;
    margin-top: -8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.stat-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.stat-card.accent {
    background:
        linear-gradient(135deg, rgba(0, 255, 140, 0.18), rgba(0, 255, 140, 0.12)),
        #1a1f3a;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    display: block;
    margin-top: 10px;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.stat-note {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.recent-section {
    margin-top: 26px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section-hint {
    color: var(--muted);
    font-size: 0.95rem;
}

.table-shell {
    overflow: hidden;
    background: #1a1f3a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table thead {
    background: #2a2f4a;
    border-bottom: 2px solid #84af8f;
    text-align: left;
}

.matches-table th {
    padding: 12px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.matches-table td {
    text-align: left;
    padding: 12px;
    color: #ffffff;
    border-bottom: 1px solid #2a2f4a;
    font-size: 0.95em;
}

.matches-table tbody tr:hover {
    background: #2a2f4a;
}

.matches-table tfoot {
    border-top: 2px solid #84af8f;
    background: #2a2f4a;
    font-weight: 600;
}

.matches-table tfoot td {
    padding: 12px;
    color: #ffffff;
    border-bottom: none;
}

.matchup-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
}

.team-pill:hover {
    background: rgba(0, 255, 140, 0.12);
}

.team-icon {
    max-height: 22px;
    max-width: 44px;
    object-fit: cover;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 255, 140, 0.12);
    color: #dffdf0;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-pill:hover {
    background: rgba(0, 255, 140, 0.14);
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 30px 18px;
}

.match-icon {
    max-height: 30px;
    max-width: 30px;
    border-radius: 0;
    object-fit: cover;
}

@keyframes drift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.72; }
    50% { transform: scale(1.04) rotate(8deg); opacity: 1; }
}

@media (max-width: 900px) {
    .topbar,
    .section-header,
    .hero-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar {
        gap: 14px;
    }

    .topbar-links {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .recent-matches-table thead {
        display: none;
    }

    .recent-matches-table,
    .recent-matches-table tbody,
    .recent-matches-table tr,
    .recent-matches-table td {
        display: block;
        width: 100%;
    }

    .recent-matches-table tbody td {
        padding: 12px 16px;
    }

    .recent-matches-table tbody tr + tr {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .recent-matches-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #c7d2ff;
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

.site-footer {
    background: #14182d;
    border-top: 4px solid #00ff8c;
    padding: 16px 20px;
    margin-top: 16px;
    color: #ffffff;
    width: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: #00ff8c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}
