:root {
    color-scheme: dark;
    --team-one: #1e5f40;
    --team-two: #c9a35a;
    --background: #101c19;
    --surface: #192824;
    --surface-light: #22342e;
    --border: #3a4d45;
    --text: #f5f3e8;
    --muted: #b8c5bb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--background); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 2% 5%, color-mix(in srgb, var(--team-one) 25%, transparent), transparent 40%), radial-gradient(ellipse at 98% 5%, color-mix(in srgb, var(--team-two) 22%, transparent), transparent 40%); }
.site-header { border-bottom: 1px solid var(--border); background: #101c19e8; }
.header-inner { max-width: 1050px; margin: auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .12em; font-size: .85rem; }
.brand-banner { display: block; height: 52px; width: auto; border-radius: 10px; flex: none; }
.wordmark { display: block; width: min(100%, 420px); height: auto; border-radius: 14px; margin-bottom: 18px; }
.brand-accent { color: var(--muted); }
.storage-badge, .eyebrow, .step-label { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.storage-badge { color: var(--muted); }
.storage-badge span { color: #b9dcbf; }
.container { max-width: 1050px; margin: auto; padding: 54px 24px 70px; }
.intro { max-width: 680px; margin-bottom: 32px; }
.eyebrow { color: #c9d8bd; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, serif; font-weight: 600; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 16px; }
h2 { font-family: Georgia, serif; font-size: 1.7rem; margin-bottom: 8px; }
h3 { font-size: 1rem; margin-bottom: 8px; }
p { line-height: 1.6; }
.muted, .hint { color: var(--muted); }
a { color: #e1e9d8; }
.hint { font-size: .84rem; margin: 6px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 24px; }
.step-label { border-top: 3px solid var(--border); padding-top: 10px; color: var(--muted); }
.step-label.current { border-color: var(--team-one); color: var(--text); }
.step-label.done { border-color: var(--team-two); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 18px 48px #0002; }
.section-heading { margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
label, .field-title { font-size: .82rem; font-weight: 700; }
input, select, button { font: inherit; }
input:not([type="checkbox"]):not([type="color"]), select { width: 100%; color: var(--text); background: #101d19; border: 1px solid #53675b; border-radius: 8px; padding: 11px 12px; min-height: 44px; }
input[type="color"] { width: 52px; height: 44px; border: 1px solid #53675b; border-radius: 8px; background: #101d19; padding: 3px; cursor: pointer; }
input[type="checkbox"] { accent-color: #9ebc9e; width: 17px; height: 17px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #c8d6b3; outline-offset: 3px; }
.team-grid { margin-top: 26px; }
.fines-master-field { margin-top: 26px; }
.team-card { background: var(--surface-light); border: 1px solid var(--border); border-top: 4px solid var(--team-one); border-radius: 10px; padding: 18px; }
.team-card.team-two { border-top-color: var(--team-two); }
.team-card .grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.players { display: grid; gap: 10px; }
.player-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) minmax(0, .8fr) minmax(130px, .7fr); gap: 12px; align-items: end; }
.player-number { color: var(--muted); padding-bottom: 12px; font-size: .82rem; font-weight: 700; }
.day-card { border: 1px solid var(--border); background: #14221e; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.day-title, .round-title, .actions, .summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.round { padding: 18px 0; border-top: 1px solid var(--border); }
.round-title { margin-bottom: 12px; }
.extras { margin: 16px 0 0; border: 0; padding: 0; }
.extras legend { font-size: .82rem; font-weight: 700; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--text); font-weight: 500; }
.competition-list { display: grid; gap: 18px; margin-top: 20px; }
.competition-list .hint { margin-left: 25px; }
.actions { margin-top: 28px; flex-wrap: wrap; }
.action-group { display: flex; gap: 10px; flex-wrap: wrap; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 8px; padding: 11px 18px; min-height: 44px; font-weight: 750; }
.primary { background: #e6eddb; color: #102019; }
.secondary { background: transparent; color: var(--text); border-color: #617469; }
.text-button { min-height: auto; padding: 4px 0; color: #d3ddc9; background: transparent; text-decoration: underline; font-size: .82rem; }
.notice { border-left: 3px solid #d5bd79; padding: 12px 15px; background: #34372a; color: #f0e5c4; border-radius: 3px 8px 8px 3px; font-size: .88rem; margin: 18px 0; }
.error { border-color: #f0978b; background: #402725; color: #ffdad5; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.summary-card { background: var(--surface-light); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.summary-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.summary-card li { margin: 5px 0; overflow-wrap: anywhere; }
.summary-card.team-one { border-top: 4px solid var(--team-one); }
.summary-card.team-two { border-top: 4px solid var(--team-two); }
.round-summary { padding: 12px 0; border-top: 1px solid var(--border); }
.round-summary p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.selected-day { border-color: #b6cba8; }
.day-picker { margin-bottom: 16px; }
.day-picker .field { max-width: 360px; }
.day-picker button { margin-top: 12px; }
.fines-panel { margin-top: 16px; }
.weather-panel { margin-top: 16px; }
.weather-search { display: flex; align-items: end; gap: 12px; margin: 20px 0; }
.weather-search .field { flex: 1; }
.weather-results { display: grid; gap: 8px; margin: 12px 0; }
.weather-results button { text-align: left; }
.weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-top: 18px; }
.weather-day { background: var(--surface-light); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.weather-day p { margin: 6px 0; overflow-wrap: anywhere; }
.weather-day strong { font-size: 1.15rem; }
.weather-source { margin-top: 18px; }
.weather-source a { color: #e1e9d8; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0; }
.guide-section { margin: 16px 0; scroll-margin-top: 20px; }
.guide-section article { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.guide-section article p { color: var(--muted); margin-bottom: 0; }
.guide-section li { margin: 8px 0; }
.scoring-panel { margin-top: 16px; }
.team-points { font-size: 2rem; }
.leaderboard-group { margin-top: 18px; }
.leaderboard-group ol { list-style-position: inside; margin: 8px 0 0; padding: 0; }
.leaderboard-group li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.scoring-round { margin-top: 20px; }
.score-form, .match-form { display: grid; gap: 12px; }
.score-form > button, .match-form > button { justify-self: start; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .7fr) minmax(100px, .7fr); gap: 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--border); }
.score-row strong { align-self: center; overflow-wrap: anywhere; }
.match-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.match-form { grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 15px; }
.animal-row, .nomination-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.animal-row strong { font-size: .85rem; }
.animal-controls { display: flex; align-items: center; gap: 8px; max-width: 55%; }
.animal-controls select { min-width: 110px; }
.nomination-form { display: grid; gap: 14px; margin-top: 20px; }
.nomination-form button { justify-self: start; }
.nomination-list { margin-top: 20px; }
.nomination-item p { margin: 5px 0; overflow-wrap: anywhere; }
.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; }
.footer { max-width: 1050px; margin: auto; padding: 0 24px 28px; color: var(--muted); font-size: .8rem; }
.footer a { color: #e1e9d8; }
.footer span { padding: 0 5px; }
@media (max-width: 600px) {
    .container { padding: 36px 16px 50px; }
    .header-inner { padding: 16px; }
    .brand-banner { height: 42px; }
    .storage-badge { font-size: .58rem; }
    .step-label { font-size: .58rem; letter-spacing: .04em; }
    .grid, .summary-grid { grid-template-columns: 1fr; }
    .team-card .grid { grid-template-columns: minmax(0, 1fr) auto; }
    .player-row { grid-template-columns: 25px minmax(0, 1fr) minmax(0, 1fr); }
    .player-row .player-team { grid-column: 2 / -1; }
    .score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .score-row strong { grid-column: 1 / -1; }
    .match-form { grid-template-columns: 1fr; }
    .weather-search { flex-wrap: wrap; }
    .weather-search .field { flex-basis: 100%; }
}
