@font-face { font-family: 'Graduate'; src: url('fonts/graduate-v19-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chivo'; src: url('fonts/chivo-v21-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chivo'; src: url('fonts/chivo-v21-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Chivo Mono'; src: url('fonts/chivo-mono-v11-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chivo Mono'; src: url('fonts/chivo-mono-v11-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --tafel: #156048;
  --tafel-diep: #0E4938;
  --lijn: #F4F7F2;
  --bal-kleur: #FF7A1A;
  --scorebord: #0B2B21;
  --kop: 'Graduate', serif;
  --body: 'Chivo', sans-serif;
  --mono: 'Chivo Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    linear-gradient(to bottom, var(--tafel), var(--tafel-diep));
  color: var(--lijn);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Middenlijn van de tafel, over de hele pagina */
body::before {
  content: '';
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(244, 247, 242, 0.28);
  z-index: 0;
}

::selection { background: var(--bal-kleur); color: #fff; }

a { color: var(--lijn); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--bal-kleur); outline-offset: 3px; }

/* De bal */
.bal {
  position: fixed;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFB37A 0%, var(--bal-kleur) 55%, #D65B08 100%);
  box-shadow: 0 6px 14px rgba(11, 43, 33, 0.5), inset -2px -3px 6px rgba(150, 60, 0, 0.4);
  z-index: 90;
  pointer-events: none;
  will-change: transform;
}
.bal::after {
  content: '';
  position: absolute;
  inset: 6px 12px;
  border-radius: 50%;
  border-top: 1.5px solid rgba(255, 255, 255, 0.55);
  transform: rotate(var(--spin, 0deg));
}

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(14, 73, 56, 0.95) 60%, transparent);
}
.club { font-family: var(--kop); font-size: 1.05rem; letter-spacing: 0.06em; }
.rally {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--scorebord);
  border: 2px solid rgba(244, 247, 242, 0.25);
  padding: 0.35rem 0.9rem;
}
.rally-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: #7FAE9C; }
#rally-nr {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--bal-kleur);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}
.top a { font-size: 0.85rem; }

main { position: relative; z-index: 2; }

/* Hero met net */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.25rem 3rem;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9CC7B5;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--kop);
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  line-height: 1.0;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(11, 43, 33, 0.4);
}
.hero-sub { margin-top: 2rem; max-width: 30rem; color: #C4DCD0; }
.net {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 46px;
  background:
    repeating-linear-gradient(90deg, rgba(244,247,242,0.5) 0 1.5px, transparent 1.5px 9px),
    repeating-linear-gradient(0deg, rgba(244,247,242,0.5) 0 1.5px, transparent 1.5px 9px);
  border-top: 4px solid var(--lijn);
  opacity: 0.6;
}

/* Blokken */
.blok {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  position: relative;
}
.blok h2 {
  font-family: var(--kop);
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  text-shadow: 0 3px 0 rgba(11, 43, 33, 0.4);
}
.tijden { list-style: none; border: 2px solid rgba(244, 247, 242, 0.3); background: rgba(11, 43, 33, 0.35); }
.tijden li {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(244, 247, 242, 0.14);
}
.tijden li:last-child { border-bottom: none; }
.dag { font-weight: 700; }
.tijden time { font-family: var(--mono); font-weight: 700; color: var(--bal-kleur); }

/* Scorebord */
.stand {
  width: 100%;
  border-collapse: collapse;
  background: var(--scorebord);
  border: 3px solid rgba(244, 247, 242, 0.3);
  font-family: var(--mono);
}
.stand th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7FAE9C;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid rgba(244, 247, 242, 0.2);
}
.stand td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(244, 247, 242, 0.1); }
.stand td:nth-child(3), .stand td:nth-child(4), .stand th:nth-child(3), .stand th:nth-child(4) { text-align: right; }
.wij td { color: var(--bal-kleur); font-weight: 700; }
.stand-noot { margin-top: 1rem; font-size: 0.9rem; color: #9CC7B5; font-style: italic; }

.kantine p { color: #C4DCD0; max-width: 32rem; }

.colofon {
  text-align: center;
  padding: 3rem 1.5rem 4.5rem;
  color: #9CC7B5;
  font-size: 0.92rem;
  max-width: 38rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .tijden li { grid-template-columns: 1fr auto; }
  .tijden li span:nth-child(2) { grid-column: 1 / -1; order: 3; font-size: 0.9rem; color: #9CC7B5; }
}
