:root {
  --green: #0F7A3D;
  --green-dark: #0A5A2C;
  --navy: #0B1F33;
  --yellow: #F5C518;
  --gray: #E9EEF2;
  --line: #DCE3E9;
  --text: #0B1F33;
  --muted: #4A5D70;
  --red: #C62828;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: #FFFFFF; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .3px; }
h2 { font-size: clamp(28px, 4vw, 38px); text-transform: uppercase; }
h3 { font-size: 22px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { font-family: var(--head); font-weight: 700; font-size: 28px; color: #FFFFFF; text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--yellow); }
.pill { background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

.hero { background: var(--green); color: #FFFFFF; padding: 56px 0 48px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); max-width: 14ch; text-transform: uppercase; }
.lead { font-size: 18px; color: #DFF3E6; max-width: 56ch; margin: 0 0 24px; }
.btn { display: inline-block; background: #FFFFFF; color: var(--navy); font-family: var(--body); font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--yellow); }
.badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 4px 12px; font-size: 14px; }

.notice { background: var(--yellow); color: var(--navy); font-size: 15px; padding: 14px 0; }

.section { padding: 56px 0; scroll-margin-top: 60px; }
.section.alt { background: var(--gray); }
.meta { color: var(--muted); margin: -4px 0 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0 0 10px 10px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.card-label { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.card-value { font-family: var(--head); font-size: 28px; font-weight: 700; line-height: 1.1; }
.card-note { font-size: 14px; color: var(--muted); }

.table-wrap { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 15px; }
.standings th, .standings td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings thead th { background: var(--navy); color: #FFFFFF; font-weight: 600; font-size: 13px; }
.standings tbody tr:last-child th, .standings tbody tr:last-child td { border-bottom: 0; }
.standings .c-pos { width: 44px; font-weight: 600; color: var(--green); }
.standings .c-team { text-align: left; font-weight: 500; }
.standings .c-pts { font-weight: 700; }
.standings tr.z4 .c-pos { color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.standings tbody tr:hover { background: #F5F8FA; }
.legend { font-size: 14px; color: var(--muted); margin: 12px 0 0; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 2px; background: var(--red); display: inline-block; }
.empty { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }

.results { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.results li { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.r-date { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.r-home { text-align: right; font-weight: 500; }
.r-away { font-weight: 500; }
.r-score { font-family: var(--head); font-size: 24px; font-weight: 700; background: var(--navy); color: #FFFFFF; border-radius: 6px; padding: 0 10px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.nobet { background: #FFFFFF; border: 2px solid var(--green); border-radius: 10px; padding: 20px 22px; }
.nobet ul { margin: 0; padding-left: 20px; }
.nobet li { margin: 6px 0; }

.footer { background: var(--navy); color: #C9D4DE; padding: 40px 0; font-size: 15px; }
.footer p { margin: 12px 0; max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }
.footer-links button, .footer-links a { background: none; border: 0; padding: 0; font: inherit; color: #FFFFFF; text-decoration: underline; cursor: pointer; }
.small { font-size: 13px; color: #8FA3B6; }

dialog { border: 0; border-radius: 12px; padding: 0; max-width: 640px; width: calc(100% - 32px); color: var(--text); }
dialog::backdrop { background: rgba(11, 31, 51, .6); }
.dlg { padding: 28px; max-height: 80vh; overflow-y: auto; }
.dlg h2 { font-size: 32px; }
.dlg .small { color: var(--muted); }
.dlg .btn { background: var(--navy); color: #FFFFFF; margin-top: 8px; }

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
}
@media (max-width: 560px) {
  .standings .opt { display: none; }
  .standings { font-size: 14px; }
  .pill { font-size: 12px; padding: 5px 10px; }
  .logo { font-size: 24px; }
}
