:root {
  --bg-deep: #f0e9e0;
  --bg-card: #fffcfa;
  --bg-card-hover: #faf6f1;
  --text: #142a3d;
  --text-muted: #5c6775;
  --accent: #1e4058;
  --accent-dim: #152f42;
  --border: rgba(20, 42, 61, 0.1);
  --glow: rgba(30, 64, 88, 0.18);
  --cream: #f7f3eb;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(30, 64, 88, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(30, 64, 88, 0.05), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg-deep) 45%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 42, 61, 0.04) 1px, transparent 1px);
  background-size: 100% 40px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
  pointer-events: none;
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

header {
  padding: 1rem 0 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(20, 42, 61, 0.12);
  border: 1px solid rgba(20, 42, 61, 0.08);
}

.hero {
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.hero-banner-wrap {
  margin: 0 auto;
  width: min(100% - 1.5rem, var(--max));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.65) inset,
    0 20px 50px rgba(20, 42, 61, 0.14);
  border: 1px solid rgba(20, 42, 61, 0.1);
  line-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-banner-wrap:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.65) inset,
    0 26px 56px rgba(20, 42, 61, 0.18);
}
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}
.hero-cta {
  padding-top: clamp(1.25rem, 3.5vw, 2rem);
  text-align: center;
}
.hero-lead {
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 42ch;
  line-height: 1.45;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-row--center {
  justify-content: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(30, 64, 88, 0.28);
  box-shadow: 0 8px 28px var(--glow);
}
.store-btn:active { transform: translateY(0); }
.store-btn svg { flex-shrink: 0; opacity: 0.95; }

.standings-section .section-title {
  margin-bottom: 1rem;
}
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  transition: box-shadow 0.2s ease;
}
.standings-card:hover {
  box-shadow: 0 10px 30px rgba(20, 42, 61, 0.06);
}
.standings-loading,
.standings-note,
.standings-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.standings-note {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(30, 64, 88, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 64, 88, 0.1);
}
.standings-error {
  color: #8b2942;
}
.standings-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.standings-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.standings-table th,
.standings-table td {
  padding: 0.55rem 0.45rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.standings-table th {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(30, 64, 88, 0.06);
}
.standings-table th:first-child,
.standings-table td:first-child {
  width: 2.25rem;
}
.standings-table .standings-team {
  text-align: left;
  min-width: 10rem;
}
.standings-team-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.standings-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(20, 42, 61, 0.08);
  background: #fff;
}
.standings-team-name {
  font-weight: 600;
  color: var(--text);
}
.standings-table tbody tr:hover {
  background: rgba(30, 64, 88, 0.04);
}
.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.results-section .section-title {
  margin-bottom: 1rem;
}
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  transition: box-shadow 0.2s ease;
}
.results-card:hover {
  box-shadow: 0 10px 30px rgba(20, 42, 61, 0.06);
}
.results-by-date {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.results-day {
  margin: 0;
}
.results-day + .results-day {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.results-day-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.results-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.results-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.results-table th,
.results-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.results-table th {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(30, 64, 88, 0.06);
}
.results-table th:first-child {
  width: auto;
}
.results-table th:last-child {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}
.results-match {
  font-weight: 600;
  color: var(--text);
}
.results-pair {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.results-side {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.results-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(20, 42, 61, 0.08);
  background: #fff;
}
.results-name {
  font-weight: 600;
}
.results-vs {
  font-weight: 400;
  color: var(--text-muted);
  padding: 0 0.15rem;
  flex-shrink: 0;
}
.results-score {
  text-align: center;
  white-space: nowrap;
}
.results-table tbody tr:hover {
  background: rgba(30, 64, 88, 0.04);
}
.results-table tbody tr:last-child td {
  border-bottom: none;
}
.results-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.results-empty--sub {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}
.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title--flush {
  margin-bottom: 0;
}

.benefits {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(30, 64, 88, 0.15);
  box-shadow: 0 10px 30px rgba(20, 42, 61, 0.06);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 64, 88, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-band {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(30, 64, 88, 0.06), rgba(255, 252, 250, 0.95));
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta-band:hover {
  border-color: rgba(30, 64, 88, 0.18);
  box-shadow: 0 12px 40px rgba(20, 42, 61, 0.08);
}
.cta-band p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hbs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  line-height: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hbs-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 64, 88, 0.22);
  box-shadow: 0 6px 18px rgba(20, 42, 61, 0.1);
}
.hbs-badge:active {
  transform: translateY(0);
}
.hbs-badge-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}
