:root {
    --ink: #101b20;
    --ink-soft: #3f5158;
    --paper: #f4f2ec;
    --card: #fffefa;
    --navy: #102d35;
    --navy-2: #173c45;
    --lime: #dfff4f;
    --blue: #8edff2;
    --line: rgba(16, 45, 53, .14);
    --shadow: 0 22px 60px rgba(16, 45, 53, .11);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 85% 10%, rgba(142, 223, 242, .17), transparent 24rem),
        var(--paper);
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--navy);
    text-decoration: none;
}

.brand__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--navy);
}

.brand__mark::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .08);
}

.brand__mark i {
    position: absolute;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, .55);
    transform: rotate(-42deg) translate(13px, 9px);
}

.brand strong,
.brand small { display: block; }
.brand strong { font: 700 19px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: 12px; letter-spacing: .05em; }

.league-link {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--navy);
}

.league-link span { margin-left: 6px; }

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: 405px;
    padding: 72px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
    gap: 72px;
    align-items: end;
}

.eyebrow {
    margin: 0 0 16px;
    color: #557079;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font: 600 clamp(44px, 6vw, 78px)/.96 "Space Grotesk", sans-serif;
    letter-spacing: -.055em;
}

.hero h1 em { color: #668087; font-style: normal; }

.hero__intro {
    max-width: 640px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
}

.date-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 254, 250, .76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.date-card label {
    display: block;
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.date-card__controls { display: flex; gap: 9px; }

.date-card input,
.date-card button {
    min-height: 48px;
    border-radius: 10px;
    font: 700 13px "DM Sans", sans-serif;
}

.date-card input {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: white;
}

.date-card button {
    padding: 0 16px;
    color: white;
    border: 0;
    background: var(--navy);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.date-card button:hover { background: #1c4d58; transform: translateY(-1px); }
.date-card button:disabled { cursor: wait; opacity: .7; }
.date-card p { margin: 14px 0 0; color: #72858b; font-size: 12px; }

.section { padding: 72px 0; }

.winners {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    color: white;
    background: var(--navy);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font: 600 clamp(29px, 4vw, 42px)/1.05 "Space Grotesk", sans-serif;
    letter-spacing: -.035em;
}

.winners .section-heading h2 { color: white; }
.winners .eyebrow { color: #a8c1c6; }

.live-pill {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 13px;
    color: #dbe6e8;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    font-size: 12px;
}

.live-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 5px rgba(223, 255, 79, .12);
}

.winner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.winner-card {
    min-height: 420px;
    padding: clamp(28px, 4vw, 46px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    border-radius: 22px;
}

.winner-card::after {
    content: "";
    position: absolute;
    right: -75px;
    bottom: -75px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(16, 45, 53, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(16, 45, 53, .035), 0 0 0 62px rgba(16, 45, 53, .025);
}

.winner-card--lime { background: var(--lime); }
.winner-card--blue { background: var(--blue); }

.winner-card__topline {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.winner-card__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(16,45,53,.28);
    border-radius: 50%;
    font-size: 15px;
}

.winner-card__metric {
    margin: 35px 0 24px;
    font: 700 clamp(48px, 6vw, 74px)/.95 "Space Grotesk", sans-serif;
    letter-spacing: -.06em;
}

.winner-card__metric small {
    display: block;
    margin-top: 9px;
    font: 600 13px "DM Sans", sans-serif;
    letter-spacing: .04em;
}

.winner-card h2 {
    max-width: 540px;
    margin: auto 0 8px;
    font: 600 clamp(22px, 3vw, 32px)/1.13 "Space Grotesk", sans-serif;
    letter-spacing: -.035em;
}

.winner-card h2 span { color: rgba(16, 27, 32, .52); font-weight: 500; }
.winner-card__score { margin: 0 0 20px; font: 600 16px "Space Grotesk", sans-serif; }

.winner-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 45, 53, .2);
    font-size: 12px;
    font-weight: 600;
}

.winner-card__winner { margin: 12px 0 0; color: rgba(16, 27, 32, .68); font-size: 12px; }
.winner-card__empty { margin: auto 0; font: 600 24px/1.35 "Space Grotesk", sans-serif; }

.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
}

.summary-strip div {
    padding: 0 24px;
    border-right: 1px solid var(--line);
}

.summary-strip div:first-child { padding-left: 0; }
.summary-strip div:last-child { border: 0; }
.summary-strip strong { display: block; color: var(--navy); font: 600 34px "Space Grotesk", sans-serif; }
.summary-strip span { color: #6d8087; font-size: 12px; font-weight: 600; }

.match-list { padding-bottom: 92px; }
.table-note { margin: 0; color: #708289; font-size: 13px; }

.table-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 14px 40px rgba(16,45,53,.06);
}

table { width: 100%; border-collapse: collapse; }

th {
    padding: 15px 18px;
    color: #6d8087;
    background: #e9e9e3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
}

td { padding: 20px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #faf9f4; }

.rank { width: 70px; }
.rank span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #64777e;
    border: 1px solid var(--line);
    border-radius: 50%;
    font: 600 12px "Space Grotesk", sans-serif;
}

.matchup strong { display: block; font: 600 15px/1.35 "Space Grotesk", sans-serif; }
.matchup strong span { color: #8b999d; font-weight: 500; }
.matchup small { display: block; margin-top: 5px; color: #71838a; font-size: 11px; }
.score-cell { max-width: 300px; font: 500 13px/1.5 "Space Grotesk", sans-serif; }
.metric-cell strong { display: inline-block; margin-right: 4px; color: var(--navy); font: 700 22px "Space Grotesk", sans-serif; }
.metric-cell span, .duration-cell { color: #64777e; font-size: 12px; }
.duration-cell { white-space: nowrap; font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.badge { padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge--lime { background: var(--lime); }
.badge--blue { background: var(--blue); }

.notice {
    margin: 0 0 24px;
    padding: 14px 17px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.notice--warning { color: #634a0c; border: 1px solid #e6cc7a; background: #fff7d8; }

.error-panel,
.empty-state {
    margin: 0 0 90px;
    padding: clamp(34px, 7vw, 80px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.error-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.error-panel__mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--lime); font: 700 26px "Space Grotesk", sans-serif; }
.error-panel h2, .empty-state h2 { margin: 0 0 10px; color: var(--navy); font: 600 30px/1.15 "Space Grotesk", sans-serif; }
.error-panel p, .empty-state p { color: var(--ink-soft); }
.error-panel .eyebrow { margin-bottom: 8px; }
.error-panel a { padding: 12px 18px; border-radius: 9px; color: white; background: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.empty-state { text-align: center; }
.empty-state__ball { width: 70px; height: 70px; margin: 0 auto 28px; border-radius: 50%; background: var(--lime); box-shadow: inset -12px -12px 0 rgba(0,0,0,.06), 0 16px 28px rgba(16,45,53,.16); }
.empty-state p:last-child { margin: 0; }

footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #71838a;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

footer p { margin: 0; }

:focus-visible { outline: 3px solid #75c9dc; outline-offset: 3px; }

@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
    .winner-grid { grid-template-columns: 1fr; }
    .summary-strip { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .summary-strip div:nth-child(2) { border: 0; }
    .score-cell { max-width: 210px; }
}

@media (max-width: 650px) {
    .site-header, main, footer { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 78px; }
    .league-link { font-size: 0; }
    .league-link span { font-size: 18px; }
    .hero { min-height: auto; padding: 46px 0 50px; }
    .hero h1 { font-size: clamp(42px, 13vw, 62px); }
    .hero__intro { font-size: 16px; }
    .date-card { padding: 18px; }
    .date-card__controls { flex-direction: column; }
    .winners { padding-left: 14px; padding-right: 14px; }
    .section-heading { align-items: start; flex-direction: column; }
    .winner-card { min-height: 385px; padding: 28px; }
    .winner-card__metric { font-size: 52px; }
    .summary-strip div { padding: 0 14px; }
    .summary-strip div:nth-child(3) { padding-left: 0; }
    .summary-strip strong { font-size: 29px; }
    .table-shell { overflow-x: auto; }
    table { min-width: 780px; }
    .error-panel { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

