:root {
  --navy: #0a1226; --card: #121b36; --card-2: #19254a; --line: rgba(255, 255, 255, .1);
  --text: #f4f6fb; --muted: #9aa5c0; --red: #e1112e; --gold: #ffd23f; --pink: #ff4fa3; --green: #22c55e;
  --silver: #cfd6e4; --bronze: #d99a5b;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--body); }
body { min-height: 100vh; background: radial-gradient(100% 50% at 50% 0%, #1c2b5a 0%, var(--navy) 70%) fixed; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 20px 60px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .m { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--red), #6d0716); font-size: 22px; }
.logo b { font: italic 900 26px/1 var(--display); text-transform: uppercase; }
.logo b em { color: var(--gold); font-style: italic; }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
nav.tabs a { text-decoration: none; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
nav.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
nav.tabs a[aria-current] { background: var(--text); color: var(--navy); }
h1 { font: italic 900 clamp(44px, 6vw, 76px)/.95 var(--display); text-transform: uppercase; margin: 0 0 8px; }
h2 { font: 800 30px/1 var(--display); text-transform: uppercase; margin: 0; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #22305c; }
.btn.primary { background: var(--red); border-color: transparent; }
.btn.primary:hover { background: #f0142f; }
.btn.danger { color: #ff8a9a; background: transparent; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }

/* ranglijst */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 18px 0 18px; }
.pod { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pod .name { font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.pod .wins { color: var(--muted); font-size: 14px; }
.pod .block { width: 100%; border-radius: 14px 14px 4px 4px; display: grid; place-items: center; font: 900 44px var(--display); color: var(--navy); }
.pod.p1 .block { height: 130px; background: linear-gradient(180deg, #ffe17a, var(--gold)); }
.pod.p2 .block { height: 96px; background: linear-gradient(180deg, #eef2f9, var(--silver)); }
.pod.p3 .block { height: 74px; background: linear-gradient(180deg, #f0b67d, var(--bronze)); }
.pod .medal { font-size: 34px; }
table.rank { width: 100%; border-collapse: collapse; }
table.rank th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; }
table.rank td { padding: 12px 10px; border-top: 1px solid var(--line); }
table.rank td.n { width: 36px; font: 800 20px var(--display); color: var(--muted); }
table.rank td.w { font: 900 26px var(--display); text-align: right; }
table.rank th.r, table.rank td.r { text-align: right; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); }
.bar.pink i { background: linear-gradient(90deg, var(--pink), #ffc1e0); }
.recent { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card-2); border-radius: 12px; }
.match .s { font: 900 24px var(--display); }
.match .won { color: var(--gold); font-weight: 700; }
.match .r { text-align: right; }
.match small { display: block; color: var(--muted); font-size: 12px; }

/* aanwezigheid */
.sessions { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.slist { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.sitem { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.sitem[aria-current] { border-color: var(--gold); background: var(--card-2); }
.sitem b { display: block; }
.sitem small { color: var(--muted); }
table.att { width: 100%; border-collapse: collapse; }
table.att th, table.att td { padding: 10px; border-top: 1px solid var(--line); text-align: left; }
table.att th { border: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.st.yes { background: rgba(34, 197, 94, .15); color: #6ee7a0; }
.st.no { background: rgba(225, 17, 46, .15); color: #ff8a9a; }
.st.late { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.stats span { background: var(--card-2); border-radius: 99px; padding: 6px 12px; font-size: 14px; }

/* beheer */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
input[type=text], textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--navy); padding: 12px 14px; font-size: 16px; }
textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
.klist { display: flex; flex-direction: column; gap: 12px; }
.kitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--card-2); border-radius: 14px; }
.kitem b { font: 800 22px var(--display); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--green); color: #052e14; font-weight: 700; padding: 12px 18px; border-radius: 99px; animation: t 2.4s forwards; }
@keyframes t { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 800px) { .sessions { grid-template-columns: 1fr; } }
