/*
 * Clubwatchers
 * Drie stijlen, alleen verschillend in de variabelen hieronder:
 *   .cw-licht  retro, licht en strak (standaard)
 *   .cw-c64    retro, paarse C64-kleuren
 *   .cw-thema  volgt de kleuren van het thema
 */

.cw {
	--cw-inkt: #1d1b26;
	--cw-zacht: #6b6880;
	--cw-lijn: #e7e3d9;
	--cw-rand: #1d1b26;
	--cw-vlak: #ffffff;
	--cw-vlak-2: #faf8f3;
	--cw-accent: #5b4bd6;
	--cw-accent-tekst: #ffffff;
	--cw-accent-zacht: #efecff;
	--cw-goud: #ffd54a;
	--cw-ster: #c58b00;
	--cw-goed: #15803d;
	--cw-goed-zacht: #e6f4ea;
	--cw-fout: #b42318;
	--cw-fout-zacht: #fdecea;
	--cw-schaduw: 3px 3px 0 var(--cw-rand);
	--cw-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--cw-pixel: "Press Start 2P", "Silkscreen", "Pixelify Sans", "VT323", var(--cw-mono);

	box-sizing: border-box;
	width: auto;
	max-width: min(1120px, calc(100vw - 32px)) !important;
	margin: 8px auto 40px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
	color: var(--cw-inkt);
	font-family: var(--cw-mono);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}
.cw *, .cw *::before, .cw *::after { box-sizing: border-box; }

.cw-c64 {
	--cw-inkt: #e6e2ff;
	--cw-zacht: #b0a8e8;
	--cw-lijn: #5a4bb0;
	--cw-rand: #7869c4;
	--cw-vlak: #40318d;
	--cw-vlak-2: #352879;
	--cw-accent: #f5e663;
	--cw-accent-tekst: #2a1f66;
	--cw-accent-zacht: #4d3da3;
	--cw-ster: #f5e663;
	--cw-goed: #7fe0a2;
	--cw-goed-zacht: #35507a;
	--cw-fout: #ff8fa3;
	--cw-fout-zacht: #5a2f6b;
	--cw-schaduw: 3px 3px 0 #241a5c;
}

.cw-thema {
	--cw-inkt: currentColor;
	--cw-zacht: currentColor;
	--cw-lijn: rgba(127, 127, 127, 0.3);
	--cw-rand: currentColor;
	--cw-vlak: transparent;
	--cw-vlak-2: rgba(127, 127, 127, 0.08);
	--cw-accent: currentColor;
	--cw-accent-tekst: inherit;
	--cw-accent-zacht: rgba(127, 127, 127, 0.12);
	--cw-schaduw: none;
	--cw-mono: inherit;
	--cw-pixel: inherit;
}

/* ------------------------------------------------------------ basis */

.cw a { color: var(--cw-accent); text-decoration: underline; text-underline-offset: 3px; }
.cw-c64 a { color: var(--cw-accent); }
.cw h3 {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--cw-pixel);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cw-inkt);
}
.cw p { margin: 0 0 12px; }
.cw a:focus-visible, .cw button:focus-visible, .cw input:focus-visible, .cw select:focus-visible {
	outline: 3px solid var(--cw-accent);
	outline-offset: 2px;
}
.cw .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ kop en tabs */

.cw-kop { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 0 0 12px; }
.cw-sub { color: var(--cw-zacht); font-size: 14px; }
.cw-wie { margin-left: auto; font-size: 14px; color: var(--cw-zacht); }

.cw-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 24px; border: 2px solid var(--cw-rand); width: fit-content; max-width: 100%; box-shadow: var(--cw-schaduw); background: var(--cw-vlak); }
.cw .cw-tabs a { padding: 9px 18px; color: var(--cw-inkt); text-decoration: none; font-weight: 600; border-right: 2px solid var(--cw-rand); }
.cw .cw-tabs a:last-child { border-right: 0; }
.cw .cw-tabs a:hover { background: var(--cw-accent-zacht); }
.cw .cw-tabs a.cw-actief { background: var(--cw-rand); color: var(--cw-vlak); }
.cw-c64 .cw-tabs a.cw-actief { background: var(--cw-accent); color: var(--cw-accent-tekst); }
.cw-thema .cw-tabs a.cw-actief { background: transparent; color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------ kaarten */

.cw-kaart {
	background: var(--cw-vlak);
	border: 2px solid var(--cw-rand);
	box-shadow: var(--cw-schaduw);
	padding: 20px 22px;
	margin: 0 0 24px;
	min-width: 0;
}
.cw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; margin: 0 0 24px; }
.cw-grid > .cw-kaart { margin: 0; }
.cw-noot { margin: 12px 0 0 !important; font-size: 13px; color: var(--cw-zacht); }

/* ------------------------------------------------------------ banner */

.cw-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
	background: var(--cw-accent-zacht);
	border: 2px solid var(--cw-rand);
	box-shadow: var(--cw-schaduw);
	padding: 14px 18px;
	margin: 0 0 24px;
}
.cw-banner-tekst { display: flex; flex-direction: column; gap: 2px; }
.cw-banner-tekst strong { font-size: 16px; }
.cw-banner-tekst span { color: var(--cw-zacht); font-size: 14px; }
.cw-banner-wie { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-banner .cw-knop { margin-left: auto; }
.cw-pil { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--cw-rand); background: var(--cw-vlak); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cw-pil-ja { background: var(--cw-goed-zacht); border-color: var(--cw-goed); color: var(--cw-goed); }
.cw-pil-nee { color: var(--cw-zacht); border-style: dashed; }

/* ------------------------------------------------------------ podium */

.cw-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin: 0 0 24px; }
.cw-plek {
	position: relative;
	background: var(--cw-vlak);
	border: 2px solid var(--cw-rand);
	box-shadow: var(--cw-schaduw);
	padding: 16px 18px 14px 24px;
}
.cw-plek::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--cw-kleur, var(--cw-accent)); }
.cw-plek-1 { background: #fff8db; }
.cw-c64 .cw-plek-1 { background: #4d3da3; }
.cw-thema .cw-plek-1 { background: var(--cw-vlak-2); }
.cw-plek.cw-ik { outline: 3px solid var(--cw-accent); outline-offset: 3px; }
.cw-plek-kop { display: flex; align-items: center; gap: 10px; }
.cw-rang {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px;
	border: 2px solid var(--cw-rand);
	font-family: var(--cw-pixel); font-size: 12px;
	background: var(--cw-vlak);
}
.cw-plek-1 .cw-rang { background: var(--cw-goud); color: #1d1b26; }
.cw-naam { font-size: 18px; font-weight: 700; }
.cw-punten { margin: 10px 0 0; font-family: var(--cw-pixel); font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.cw-punten small { margin-left: 6px; font-family: var(--cw-mono); font-size: 13px; letter-spacing: 0; color: var(--cw-zacht); }
.cw-plek-sub { margin: 4px 0 12px; font-size: 13px; color: var(--cw-zacht); }
.cw-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--cw-lijn); }
.cw-mini div { margin: 0; }
.cw-mini dt { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cw-zacht); }
.cw-mini dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* opbouw van de punten */
.cw { --cw-seg-uitslagen: #3d3a56; --cw-seg-spelers: #a7a2c9; --cw-seg-bonus: #f0b429; --cw-seg-seizoen: #12946a; }
.cw-c64 { --cw-seg-uitslagen: #e6e2ff; --cw-seg-spelers: #8fd3ff; --cw-seg-bonus: #f5e663; --cw-seg-seizoen: #7fe0a2; }
.cw-thema { --cw-seg-uitslagen: currentColor; --cw-seg-spelers: rgba(127, 127, 127, 0.55); --cw-seg-bonus: rgba(127, 127, 127, 0.3); }
.cw-balk { display: flex; height: 12px; margin: 12px 0 8px; border: 1.5px solid var(--cw-rand); background: var(--cw-vlak); overflow: hidden; }
.cw-seg { display: block; height: 100%; }
.cw-seg + .cw-seg { border-left: 1.5px solid var(--cw-vlak); }
.cw .cw-seg-uitslagen { background: var(--cw-seg-uitslagen); }
.cw .cw-seg-spelers { background: var(--cw-seg-spelers); }
.cw .cw-seg-bonus { background: var(--cw-seg-bonus); }
.cw .cw-seg-seizoen { background: var(--cw-seg-seizoen); }
.cw-legenda-opbouw { margin: 0; font-size: 13px; }
.cw-legenda-opbouw div { display: flex; justify-content: space-between; gap: 8px; margin: 0; line-height: 1.75; }
.cw-legenda-opbouw dt { margin: 0; color: var(--cw-zacht); }
.cw-legenda-opbouw dt i { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border: 1px solid var(--cw-rand); vertical-align: 0; }
.cw-legenda-opbouw dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cw-legenda-opbouw div[title] { cursor: help; }
.cw-plek-stats { margin: 10px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--cw-lijn); font-size: 12px; color: var(--cw-zacht); }

/* ------------------------------------------------------------ tabellen */

.cw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cw table.cw-tabel { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 14px; background: transparent; font-variant-numeric: tabular-nums; }
.cw table.cw-tabel th,
.cw table.cw-tabel td { border: 0; border-bottom: 1px solid var(--cw-lijn); padding: 9px 10px; text-align: right; vertical-align: top; background: transparent; color: inherit; white-space: nowrap; }
.cw table.cw-tabel th { border-bottom: 2px solid var(--cw-rand); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cw-zacht); vertical-align: bottom; }
.cw table.cw-tabel tbody tr:last-child td { border-bottom: 0; }
.cw table.cw-tabel tbody tr:hover td { background: var(--cw-vlak-2); }
.cw table.cw-tabel .cw-l { text-align: left; }
.cw table.cw-tabel th:first-child, .cw table.cw-tabel td:first-child { padding-left: 0; }
.cw table.cw-tabel th:last-child, .cw table.cw-tabel td:last-child { padding-right: 0; }
.cw .cw-zacht { color: var(--cw-zacht); }
.cw .cw-totaal { font-weight: 700; font-size: 15px; }
.cw table.cw-tabel tr.cw-ik td { background: var(--cw-accent-zacht); font-weight: 700; }
.cw .cw-win { font-weight: 700; }
.cw .cw-win::after, .cw-win-teken { color: var(--cw-ster); }
.cw td.cw-win::after { content: " ★"; }
.cw-stip { display: inline-block; width: 10px; height: 10px; margin: 0 8px 1px 0; vertical-align: middle; }

/* rondescherm */
.cw table.cw-ronde td, .cw table.cw-ronde th { text-align: center; white-space: normal; }
.cw table.cw-ronde td.cw-l, .cw table.cw-ronde th.cw-l { text-align: left; }
.cw table.cw-ronde td small { color: var(--cw-zacht); }
.cw .cw-uitslag { font-weight: 700; font-size: 16px; }
.cw .cw-pt { display: inline-block; min-width: 1.9em; margin-left: 4px; padding: 0 5px; border: 1.5px solid var(--cw-rand); background: var(--cw-vlak); font-size: 12px; font-weight: 700; text-align: center; }
.cw .cw-keuze td { font-size: 13px; background: var(--cw-vlak-2); }
.cw .cw-som td { font-size: 13px; }
.cw .cw-som.cw-eind td { border-top: 2px solid var(--cw-rand); font-size: 15px; font-weight: 700; }

/* labels */
.cw-label { display: inline-block; padding: 1px 7px; border: 1.5px solid var(--cw-rand); font-family: var(--cw-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; vertical-align: middle; }
.cw-label-live { background: var(--cw-goed-zacht); color: var(--cw-goed); border-color: var(--cw-goed); }
.cw-label-bonus { background: var(--cw-goud); color: #1d1b26; border-color: #1d1b26; }
.cw-ja { color: var(--cw-goed); font-weight: 700; }
.cw-nee { color: var(--cw-zacht); }

/* ------------------------------------------------------------ grafiek */

.cw-grafiek { display: block; width: 100%; min-width: 560px; height: auto; }
.cw-raster { stroke: var(--cw-lijn); stroke-width: 1; }
.cw-as { fill: var(--cw-zacht); font-family: var(--cw-mono); font-size: 13px; }
.cw-eindlabel { font-family: var(--cw-mono); font-size: 15px; font-weight: 700; }
.cw-eindpunt { fill: var(--cw-inkt); font-weight: 400; }

/* ------------------------------------------------------------ statistieken */

.cw-scherp ul { margin: 0; padding: 0 0 0 1.2em; }
.cw-scherp li { margin: 0 0 4px; }
.cw-vorm-rij { display: inline-flex; gap: 6px; }
.cw-vorm-vak { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--cw-rand); font-family: var(--cw-pixel); font-size: 11px; background: var(--cw-vlak); color: var(--cw-zacht); }
.cw-vorm-1 { background: var(--cw-goud); color: #1d1b26; }
.cw-vorm-2 { color: var(--cw-inkt); }
.cw .cw-onderling-score { text-align: center !important; font-size: 16px; white-space: nowrap; }
.cw .cw-onderling-score strong { font-weight: 400; }
.cw .cw-onderling-score small { display: block; font-size: 11px; color: var(--cw-zacht); }
.cw .cw-onderling-score strong.cw-voor { font-weight: 700; }
.cw-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.cw-picks-naam { font-weight: 700; margin: 0 0 6px; }
.cw-picks ol { margin: 0; padding: 0 0 0 1.4em; font-size: 13px; list-style-position: outside; }
.cw-picks li { margin: 0 0 3px; }
.cw-picks li span { display: block; }
.cw-picks li span + span { font-size: 12px; }
.cw .cw-misser { margin: 8px 0 0; font-size: 12px; color: var(--cw-zacht); }
.cw .cw-greep { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--cw-lijn); font-size: 13px; }
.cw .cw-seizoen-kop { font-size: 14px; }
.cw table.cw-seizoen td { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.cw .cw-sv-0, .cw table.cw-tabel td.cw-sv-0, .cw table.cw-tabel tbody tr:hover td.cw-sv-0 { background: #cfeedd; }
.cw .cw-sv-1, .cw table.cw-tabel td.cw-sv-1, .cw table.cw-tabel tbody tr:hover td.cw-sv-1 { background: #e6f4ea; }
.cw .cw-sv-2, .cw table.cw-tabel td.cw-sv-2, .cw table.cw-tabel tbody tr:hover td.cw-sv-2 { background: #f3faf5; }
.cw-c64 .cw-sv-0, .cw-c64 table.cw-tabel td.cw-sv-0 { background: #2f6b5a; }
.cw-c64 .cw-sv-1, .cw-c64 table.cw-tabel td.cw-sv-1 { background: #3b5a6b; }
.cw-c64 .cw-sv-2, .cw-c64 table.cw-tabel td.cw-sv-2 { background: #45487a; }
.cw-sv-sleutel { display: inline-block; width: 12px; height: 12px; margin: 0 4px 0 10px; border: 1px solid var(--cw-rand); vertical-align: -1px; }
.cw-sv-sleutel:first-child { margin-left: 0; }
.cw-kast { display: flex; flex-direction: column; gap: 14px; }
.cw-kast-naam { font-weight: 700; margin: 0 0 6px; }
.cw-kast-prijzen { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-prijs { display: inline-block; padding: 3px 9px; border: 1.5px solid var(--cw-rand); background: var(--cw-vlak); font-size: 12px; white-space: nowrap; }
.cw-prijs-goud { background: var(--cw-goud); color: #1d1b26; border-color: #1d1b26; }
.cw-prijs-leeg { color: var(--cw-zacht); border-style: dashed; }

/* ------------------------------------------------------------ records */

.cw-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; margin: 0 0 24px; }
.cw-record { display: flex; flex-direction: column; gap: 4px; background: var(--cw-vlak); border: 2px solid var(--cw-rand); box-shadow: var(--cw-schaduw); padding: 14px 16px; }
.cw-record-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cw-zacht); }
.cw-record-waarde { font-family: var(--cw-pixel); font-size: 22px; line-height: 1.3; }
.cw-record-wie { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ knoppen en meldingen */

.cw .cw-knop {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 16px;
	border: 2px solid var(--cw-rand);
	background: var(--cw-vlak);
	color: var(--cw-inkt);
	font: inherit; font-weight: 700; line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	border-radius: 0;
	box-shadow: var(--cw-schaduw);
}
.cw .cw-knop:hover { background: var(--cw-accent-zacht); }
.cw .cw-knop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cw-rand); }
.cw .cw-knop.cw-primair { background: var(--cw-accent); color: var(--cw-accent-tekst); }
.cw .cw-knop.cw-primair:hover { filter: brightness(1.08); }
.cw .cw-knop.cw-actief { background: var(--cw-rand); color: var(--cw-vlak); }
.cw-groot { padding: 12px 28px !important; font-size: 16px; }
.cw-thema .cw-knop.cw-primair { background: transparent; color: inherit; }

.cw-melding { border: 2px solid; padding: 10px 14px; margin: 0 0 20px; font-weight: 700; }
.cw-melding.cw-goed { border-color: var(--cw-goed); color: var(--cw-goed); background: var(--cw-goed-zacht); }
.cw-melding.cw-fout { border-color: var(--cw-fout); color: var(--cw-fout); background: var(--cw-fout-zacht); }
.cw-klein, .cw small { font-size: 13px; }

/* ------------------------------------------------------------ rondekiezer */

.cw-nav { display: flex; gap: 8px; align-items: center; margin: 0 0 20px; }
.cw .cw-nav .cw-knop { padding: 8px 12px; }
.cw select, .cw input[type="text"], .cw input[type="number"] { font: inherit; padding: 8px 10px; border: 2px solid var(--cw-rand); border-radius: 0; background: #fff; color: #1d1b26; max-width: 100%; }
.cw-nav select { min-width: 90px; font-weight: 700; }

/* ------------------------------------------------------------ voorspelformulier */

.cw-form fieldset.cw-wedstrijd { background: var(--cw-vlak); border: 2px solid var(--cw-rand); box-shadow: var(--cw-schaduw); margin: 0 0 20px; padding: 14px 18px 16px; min-width: 0; }
.cw-form legend { padding: 0 8px; font-size: 13px; color: var(--cw-zacht); background: var(--cw-vlak); }
.cw-dicht { opacity: 0.75; }
.cw-duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cw-team { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.cw-team label { font-weight: 700; font-size: 16px; }
.cw-stap { display: inline-flex; box-shadow: var(--cw-schaduw); }
.cw-stap input[type="number"] { width: 3.4em; text-align: center; font-size: 22px; font-weight: 700; padding: 6px 2px; -moz-appearance: textfield; appearance: textfield; border-left: 0; border-right: 0; }
.cw-stap input::-webkit-outer-spin-button, .cw-stap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cw-stap button { width: 46px; min-height: 46px; font: inherit; font-size: 22px; font-weight: 700; border: 2px solid var(--cw-rand); background: var(--cw-rand); color: var(--cw-vlak); cursor: pointer; border-radius: 0; padding: 0; }
.cw-c64 .cw-stap button { color: #fff; }
.cw-thema .cw-stap button { background: transparent; color: inherit; }
.cw-duel-vast { font-size: 14px; }
.cw-keuzeveld { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 10px; }
.cw-keuzeveld label { min-width: 5em; font-weight: 600; }
.cw-keuzeveld input { flex: 1 1 240px; }

/* ------------------------------------------------------------ mobiel */

@media (max-width: 600px) {
	.cw { font-size: 14px; max-width: calc(100vw - 24px) !important; }
	.cw-kaart { padding: 16px 14px; }
	.cw-tabs { width: 100%; }
	.cw .cw-tabs a { flex: 1 1 auto; text-align: center; padding: 9px 10px; }
	.cw-banner .cw-knop { margin-left: 0; width: 100%; }
	.cw-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.cw-plek { padding: 10px 8px 10px 14px; }
	.cw-plek::before { width: 5px; }
	.cw-plek-kop { gap: 6px; }
	.cw-rang { width: 22px; height: 22px; font-size: 10px; }
	.cw-naam { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.cw-punten { font-size: 20px; margin-top: 6px; }
	.cw-punten small { display: none; }
	.cw-plek-sub { margin: 2px 0 0; font-size: 11px; }
	.cw-mini, .cw-legenda-opbouw, .cw-plek-stats { display: none; }
	.cw-balk { height: 8px; margin: 8px 0 0; }
	.cw .cw-scroll .cw-grafiek { width: 560px; max-width: none; }
	.cw-records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cw-record-waarde { font-size: 18px; }
	.cw table.cw-tabel th, .cw table.cw-tabel td { padding: 8px 6px; }
}
