:root {
    color-scheme: light;
    --ink: #092f21;
    --cream: #fff8e7;
    --lime: #bbf01b;
    --orange: #ad3800;
    --line: #d5cfaf;
    font-family: system-ui, "Segoe UI", sans-serif;
    color: var(--ink);
    background-color: #22671c;
    scrollbar-gutter: stable;
    scroll-padding-top: 7rem;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    isolation: isolate;
    padding-bottom: 5.5rem;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 49.8%, #e5f8ce60 50%, transparent 50.2%),
        radial-gradient(circle at 50% 22rem, transparent 8rem, #e5f8ce65 8.1rem 8.3rem, transparent 8.4rem),
        repeating-linear-gradient(0deg, #15380918 0 88px, #b7e63318 88px 176px),
        repeating-linear-gradient(137deg, #184c2038 0 2px, transparent 2px 5px),
        radial-gradient(ellipse at top, #579b2a, #1a501c 75%);
}
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #1266c9; outline-offset: 3px; }
.top { position: sticky; top: 0; z-index: 3; background: linear-gradient(115deg, #99dd0e, var(--lime) 45%, #dbff44); border-bottom: 4px solid #6fa314; box-shadow: 0 3px 14px #08270e60; }
.top-inner { max-width: 67rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem; }
.brand {
    display: inline-block; text-decoration: none; color: #fffcef; font-size: clamp(1.75rem, 8vw, 3.6rem);
    font-weight: 1000; font-style: italic; letter-spacing: -.08em;
    text-shadow: 2px 2px #0a3921, -2px -2px #0a3921, -2px 2px #0a3921, 2px -2px #0a3921, 4px 4px #0a3921;
}
.brand span { font-style: normal; letter-spacing: 0; text-shadow: 0 2px 2px #0a3921; }
.account { display: grid; justify-items: end; gap: .25rem; }
.account-actions { display: flex; align-items: center; justify-content: center; }
.account-actions > :not(:first-child) { border-left: 1px solid #47603f; }
.account-actions a, .account-actions button { display: block; padding: .45rem .5rem; color: var(--ink); font-size: .85rem; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.account-actions button { background: none; border: 0; }
.week-nav a { background: var(--cream); border: 1px solid #b3c36d; color: var(--ink); font-weight: 800; border-radius: .6rem; padding: .4rem .65rem; white-space: nowrap; }
@media (max-width: 36rem) {
    .top-inner { flex-wrap: wrap; }
    .account { display: contents; }
    .account > strong { max-width: 42%; overflow-wrap: anywhere; }
    .account-actions { flex-basis: 100%; }
}
main, footer { max-width: 67rem; margin: auto; padding: 1rem; }
h1, h2, h3, p { margin: 0 0 .7rem; }
main > h1 {
    color: var(--cream); text-align: center; font-size: clamp(2.1rem, 8vw, 3.7rem); font-weight: 1000;
    font-style: italic; letter-spacing: -.06em; line-height: 1.04; margin: .3rem 0 1rem; text-shadow: 0 3px 2px #07290b;
}
h2 { font-size: clamp(1.25rem, 4vw, 1.65rem); font-weight: 900; letter-spacing: -.035em; }
footer { color: #fff; font-size: .8rem; text-align: center; }
.panel {
    background: var(--cream); border: 2px solid #fffcf0; border-radius: 1.35rem;
    padding: clamp(.8rem, 4vw, 1.35rem); box-shadow: 0 6px 0 #142f13a6, 0 10px 18px #0d280d42;
}
.panel > :last-child { margin-bottom: 0; }
.fixtures, .tables { display: grid; gap: 1rem; align-items: start; }
.fixture { scroll-margin-top: 1rem; }
.teams { background: #f5efda; border: 1px solid #e5ddc0; border-radius: .9rem; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .4rem; text-align: center; padding: .65rem .35rem; }
.team { display: grid; justify-items: center; gap: .35rem; font-size: clamp(.95rem, 4vw, 1.3rem); font-weight: 900; line-height: 1.12; }
.team img { width: min(20vw, 5rem); height: min(20vw, 5rem); object-fit: contain; }
.form-guide { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.form-guide li { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; color: #fff; font-size: .76rem; font-weight: 900; }
.form-guide .win { background: #246318; }
.form-guide .draw { background: #4e5c52; }
.form-guide .loss { background: #a53510; }
.form-guide .unavailable { background: #e6ddc4; color: #374237; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.score { color: #173d28; font-size: 1.3rem; white-space: nowrap; }
.kickoff { background: #e0f1b8; border-radius: .7rem; text-align: center; padding: .45rem .3rem; font-weight: 850; margin: .7rem 0; }
.clock { font-variant-numeric: tabular-nums; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.picks button, .primary {
    color: var(--ink); background: #fff7de; border: 2px solid var(--line); border-radius: .85rem;
    box-shadow: 0 4px 0 #bfb596; font-weight: 950; min-height: 3rem;
}
.picks button { font-size: clamp(1.65rem, 8vw, 2.5rem); min-height: 3.8rem; }
.picks button[aria-pressed="true"], .primary { background: var(--orange); color: white; border-color: #913003; box-shadow: 0 4px 0 #702400; }
.picks button:not(:disabled):active, .primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #9a674e; }
.picks button:disabled { opacity: .67; }
.pick-status, .hint { font-size: .86rem; color: #47603f; }
.pick-status { text-align: center; min-height: 1.2rem; margin: .6rem 0 .4rem; }
details { border: 1px solid var(--line); border-radius: .65rem; padding: .5rem .65rem; }
summary { font-weight: 850; min-height: 1.65rem; }
details ul, .results { padding: 0; margin: .5rem 0; list-style: none; }
details li, .results li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
details small, .results small { display: block; color: #48613f; }
.h2h-score { --light-size: 1.15rem; display: grid; grid-template-columns: var(--light-size) minmax(0, 1fr) auto minmax(0, 1fr) var(--light-size); align-items: center; gap: .3rem; }
.h2h-left { text-align: right; }
.h2h-venue { display: inline-block; padding: .07rem .22rem; border-radius: .23rem; background: #e4eace; color: #304b34; font-size: .72em; text-decoration: none; }
.h2h-dot {
    width: var(--light-size); height: var(--light-size); border-radius: 50%;
    background: radial-gradient(circle at 37% 32%, var(--light-highlight), var(--light-color) 48%, var(--light-rim) 100%);
    border: 1px solid var(--light-rim);
    box-shadow: 0 0 .3rem var(--light-color);
}
.h2h-dot.win { --light-highlight: #dcffa4; --light-color: #35c744; --light-rim: #176327; }
.h2h-dot.loss { --light-highlight: #ffd0aa; --light-color: #f34b3f; --light-rim: #961b23; }
.h2h-dot.draw { --light-highlight: #f2f4f5; --light-color: #a2a8ae; --light-rim: #565f66; }
.h2h-score + small, .h2h-legend { text-align: center; }
.result-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.result-outcome { font-size: 1.2rem; font-weight: 900; line-height: 1; }
.result-outcome.correct { color: #246318; }
.result-outcome.incorrect { color: #b42728; }
.result-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .35rem; margin-bottom: .2rem; }
.result-club { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.result-home { justify-content: flex-end; text-align: right; }
.result-club > span { min-width: 0; overflow-wrap: anywhere; }
.result-club img { flex: none; width: 1.4rem; height: 1.4rem; object-fit: contain; }
.tip { background: #e9f6be; border-radius: .7rem; padding: .6rem .8rem; font-weight: 750; margin-bottom: 1rem; text-align: center; }
.tabs {
    position: fixed; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 43rem);
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream); border: 2px solid #fffcf0;
    border-radius: 1.05rem 1.05rem 0 0; padding: .35rem .2rem max(.35rem, env(safe-area-inset-bottom)); box-shadow: 0 -5px 18px #13251444;
}
.tabs a { display: grid; justify-items: center; align-content: center; gap: .1rem; font-size: clamp(.72rem, 3.2vw, .94rem); font-weight: 850; text-decoration: none; min-height: 3.15rem; padding: .1rem; border-radius: .65rem; }
.tabs a[aria-current="page"] { background: var(--lime); }
.tabs span { font-size: 1.15rem; line-height: 1.1; }
.login { max-width: 29rem; margin: 1rem auto; }
.login h1 { font-size: 2rem; line-height: 1.1; font-weight: 950; }
.login-illustration { display: block; width: 100%; max-height: 12rem; object-fit: contain; border-radius: .8rem; margin: 0 0 .85rem; }
.login label { display: grid; gap: .2rem; font-weight: 750; margin: .6rem 0; }
.login input { width: 100%; min-height: 2.8rem; border: 1px solid #8a9779; background: #fffdfa; border-radius: .55rem; padding: .4rem .55rem; color: var(--ink); }
.login input[name="name"]::placeholder { color: #a4a999; opacity: 1; }
.account-fieldset { border: 0; padding: 0; margin: .7rem 0; min-inline-size: 0; }
.account-fieldset legend { font-weight: 750; margin-bottom: .3rem; }
.alphabet { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.5rem, 1fr)); gap: .3rem; }
.alphabet label { position: relative; margin: 0; }
.alphabet input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.alphabet span { display: grid; place-items: center; min-height: 2.75rem; border: 1px solid #8a9779; border-radius: .55rem; background: #fffdfa; box-shadow: 0 2px 0 #8a9779; }
.alphabet input:checked + span { background: var(--lime); border-color: #47603f; transform: translateY(2px); box-shadow: inset 0 2px 2px #47603f45; }
.alphabet input:disabled { cursor: not-allowed; }
.alphabet input:disabled + span {
    color: #626754;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), #963c3d calc(50% - 1px), #963c3d calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to top right, transparent calc(50% - 1px), #963c3d calc(50% - 1px), #963c3d calc(50% + 1px), transparent calc(50% + 1px)),
        #eae6d5;
    box-shadow: none;
}
.alphabet input:focus-visible + span { outline: 3px solid #1266c9; outline-offset: 2px; }
.password-fieldset legend { margin-inline: auto; }
.password-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 3.2rem)); justify-content: center; gap: .55rem; }
.password-digits input { text-align: center; font-size: 1.25rem; }
.primary { width: 100%; margin: .5rem 0 .9rem; }
.account-links, .week-nav { display: flex; flex-wrap: wrap; gap: .5rem .85rem; }
.notice { background: #e7f2bc; padding: .55rem; border-radius: .5rem; }
.week-nav { margin-bottom: .9rem; }
.week-nav a { text-decoration: none; }
.week-nav a[aria-current="page"], .me { background: #e5f7b1; }
.bot-section { margin-top: 1.4rem; }
.bot-section > h2 { color: var(--cream); text-shadow: 0 2px 2px #07290b; }
.bot-cards { display: grid; gap: 1rem; }
.bot-card { --bot-tint: #e4f3ff; display: grid; grid-template-columns: clamp(4.5rem, 22vw, 7rem) minmax(0, 1fr); align-items: start; gap: .7rem; }
.bot-drew { --bot-tint: #f4e8ff; }
.bot-lucky-card { --bot-tint: #fff0b8; }
.bot-card img { display: block; width: 100%; height: auto; }
.bot-card h3 { margin-bottom: .4rem; }
.bot-card h3 span { display: inline-block; padding: .15rem .4rem; border-radius: .35rem; background: var(--bot-tint); font-size: .75rem; vertical-align: middle; }
.bot-speech { position: relative; background: var(--bot-tint); border-radius: .65rem; padding: .45rem .55rem; font-weight: 700; }
.bot-speech::before { content: ""; position: absolute; top: .75rem; right: 100%; width: .5rem; height: .65rem; background: var(--bot-tint); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.bot-score { margin: 0; font-size: .88rem; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: clamp(.84rem, 3.3vw, 1rem); }
th, td { padding: .45rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.leaderboard th[scope="row"] { overflow-wrap: anywhere; }
.leaderboard-score { text-align: center; }
.leaderboard-bot { font-size: .72rem; color: #47603f; }
.rank-star { min-width: 2rem; height: 1.7rem; display: inline-grid; place-items: center; color: #8a5600; font-size: 1.7rem; line-height: 1; }
.standings table { table-layout: fixed; }
.standings thead th { height: 2rem; }
.standings tbody tr { height: 3rem; }
.standings th, .standings td { padding: .3rem .25rem; line-height: 1.1; vertical-align: middle; }
.standings thead th:first-child { width: 2rem; }
.standings thead th:nth-child(3), .standings thead th:nth-child(4) { width: 2.2rem; }
.standings thead th:nth-child(5) { width: 2.8rem; }
.table-club { display: flex; align-items: center; gap: .35rem; }
.table-club img { flex: none; width: 1.4rem; height: 1.4rem; object-fit: contain; }
.table-club-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.arrow { min-width: 2rem; height: 1.7rem; display: inline-grid; place-items: center; background: #376440; color: #fff; font-weight: 900; }
.arrow.up { background: #246318; clip-path: polygon(50% 0,100% 50%,78% 50%,78% 100%,22% 100%,22% 50%,0 50%); padding-top: .28rem; }
.arrow.down { background: #a53510; clip-path: polygon(22% 0,78% 0,78% 50%,100% 50%,50% 100%,0 50%,22% 50%); padding-bottom: .28rem; }
.arrow.flat { background: #62686d; border-radius: .15rem; }
.chart-panel { margin-bottom: 1rem; }
.chart { list-style: none; padding: 0 0 .4rem; margin: 0; display: flex; gap: .5rem; overflow-x: auto; }
.chart li { flex: 0 0 3.2rem; display: grid; justify-items: center; gap: .2rem; }
.column { width: 100%; height: 5rem; display: flex; align-items: end; background: #efe9d2; border-radius: .35rem; overflow: hidden; }
.column span { width: 100%; border-radius: .35rem .35rem 0 0; background: #38732c; }
@media (min-width: 50rem) {
    .fixtures, .tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 58rem) {
    .bot-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
