/* SuperPrix — vormgeving
   Koppen en cijfers: Barlow Condensed · tekst: Inter (beide zelf gehost, SIL OFL)
   Lichte pagina's met donkere banden (kopbalk, hero, paginakop, stand, voettekst). */

@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-800-italic.woff2') format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--brand: #e0141e;
	--brand-hover: #c40f18;
	--gold: #e9b52c;
	--silver: #b8bfc8;
	--bronze: #c47a42;
	--green: #17a356;
	--red: #e0393c;
	--blue: #2f7cf6;
	--purple: #8b5cf6;
	--asphalt: #131416;

	/* Licht oppervlak (standaard) */
	--bg: #eeede8;
	--surface: #ffffff;
	--surface-2: #f5f4f0;
	--text: #131416;
	--body: #2b2d32;
	--muted: #5f626a;
	--dim: #8a8d94;
	--line: #dddbd4;
	--line-2: #c7c4bb;
	--accent-text: #c0101a;
	--pos-bg: #131416;
	--pos-fg: #ffffff;

	--display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: 24px;
	--header: 72px;
	--section: clamp(48px, 7vw, 88px);
	--skew: -12deg;
	color-scheme: light;
}

/* Donkere banden: zelfde onderdelen, andere kleuren */
.dark, .topbar, .footer, .page-head, .hero, .race-hud, .team-hero, .cta, .tower, .start-grid, #toasts {
	--bg: #0e0f11;
	--surface: #17191c;
	--surface-2: #202226;
	--text: #f4f3ef;
	--body: #d2d3d6;
	--muted: #9c9fa6;
	--dim: #6f727a;
	--line: #2a2d32;
	--line-2: #3b3e44;
	--accent-text: #ff4d55;
	--pos-bg: #2c2f35;
	--pos-fg: #ffffff;
	color-scheme: dark;
	background-color: var(--bg);
	color: var(--body);
}
:root {
	--asphalt-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
	--map-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cg fill='%23dfe4d3'%3E%3Crect x='178' y='404' width='84' height='50' rx='10'/%3E%3Crect x='446' y='18' width='96' height='84' rx='12'/%3E%3Crect x='18' y='142' width='110' height='88' rx='14'/%3E%3C/g%3E%3Cpath d='M440 470c40-20 90-10 120 20v70H430c-10-40-20-70 10-90z' fill='%23dbe3e6'/%3E%3Cg fill='none' stroke='%23f6f5f0' stroke-linecap='round'%3E%3Cpath stroke-width='20' d='M0 120H560M0 380H560M150 0V560M420 0V560'/%3E%3Cpath stroke-width='11' d='M0 250H150M420 250H560M285 0V120M285 380V560M150 480H420M300 120V250H420'/%3E%3Cpath stroke-width='15' d='M150 120C240 150 270 300 420 380'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23e0ded5' stroke-width='1.4' stroke-dasharray='7 9' d='M0 120H560M0 380H560M150 0V560M420 0V560'/%3E%3C/svg%3E");
	--kerb: repeating-linear-gradient(110deg, #e0141e 0 26px, #f1efea 26px 52px);
}
/* Asfalt in de donkere banden */
.topbar, .footer, .page-head, .race-hud, .team-hero, .cta, .start-grid { background-image: var(--asphalt-tex); }
.page-head, .team-hero, .start-grid { background-color: #1c1d20; }

/* ── Basis ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	/* Lichte achtergrond: een vage stadsplattegrond */
	background: #eae8e1 var(--map-tex);
	color: var(--body);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
}
main { flex: 1; outline: none; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--text); } }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); line-height: 1; margin: 0 0 0.4em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; font-style: italic; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; font-style: italic; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
b, strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.85rem; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 36px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	:root { --gutter: 16px; --header: 62px; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
	.hide-sm { display: none; }
}

/* Finishlijn onderaan de pagina, curbstenen tussen donker en licht */
.footer::before { content: ''; display: block; height: 16px; background: conic-gradient(#111 25%, #f4f3ef 0 50%, #111 0 75%, #f4f3ef 0) 0 0 / 16px 16px; }
.kerb { height: 14px; background: var(--kerb); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }

/* ── Kopbalk ───────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 18px -10px rgba(0, 0, 0, 0.6); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; flex: none; }
@media (hover: hover) { .brand:hover { color: var(--text); } .brand:hover .brand-badge { transform: rotate(-8deg); } }
.brand-badge { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 0 0 3px #0e0f11, 0 0 0 5px var(--brand); transition: transform 0.25s; }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; line-height: 0.9; font-family: var(--display); text-transform: uppercase; white-space: nowrap; }
.brand-text b { font-size: 1.85rem; font-weight: 800; font-style: italic; color: var(--text); letter-spacing: 0.01em; }
.brand-text i { font-style: inherit; color: var(--brand); }

/* Menu met een "weg" eronder; een autootje rijdt naar de actieve of aangewezen link */
.nav { position: relative; display: flex; margin-left: auto; align-self: stretch; }
.nav::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 11px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 20px); }
.nav a { display: flex; align-items: center; padding: 0 14px 12px; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-car { position: absolute; z-index: 1; left: 0; bottom: 3px; width: 34px; height: 17px; pointer-events: none; opacity: 0; transform: translateX(calc(var(--x, 0px) - 50%)); }
.nav-car.on { opacity: 1; }
.nav-car.ready { transition: transform 0.75s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.2s; }
.nav-car svg { display: block; width: 100%; height: 100%; transition: transform 0.25s; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.nav-car[data-dir='links'] svg { transform: scaleX(-1); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav .nav-extra { display: none; }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #5865f2; color: #fff; transition: transform 0.15s, background 0.15s; }
.icon-link:hover { color: #fff; background: #6d78f4; transform: rotate(-10deg); }
.icon-link .icon { width: 21px; height: 21px; }
/* Inloggen als Nederlands kenteken */
.plate { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 32px; background: #f7c600; color: #111; border: 2px solid #111; border-radius: 5px; box-shadow: 0 0 0 1.5px #f7c600; font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: transform 0.15s; }
.plate::before { content: 'NL'; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; border-radius: 2px 0 0 2px; background: #123fa0; color: #fff; font-size: 0.62rem; letter-spacing: 0.02em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.plate::after { content: ''; position: absolute; left: 5px; top: 5px; width: 12px; height: 12px; border: 1.5px dotted #f7c600; border-radius: 50%; }
.plate:hover, .plate.active { color: #111; background: #ffd21f; transform: translateY(-1px); }
.plate .avatar { width: 24px; height: 24px; margin-left: -2px; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; flex: none; padding: 0; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--text); content: ''; transition: transform 0.2s, background 0.2s; }
.menu-toggle span { top: 20px; }
.menu-toggle span::before { top: -6px; left: 0; margin: 0; }
.menu-toggle span::after { top: 6px; left: 0; margin: 0; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu op telefoon en tablet: volledig scherm, zoals een pauzemenu */
@media (max-width: 1120px) {
	.menu-toggle { display: block; }
	.topbar-actions { margin-left: auto; }
	.nav::after, .nav-car { display: none; }
	.nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--header) + 1px + env(safe-area-inset-top));
		flex-direction: column; margin: 0; padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		background: var(--bg) var(--asphalt-tex); overflow-y: auto; overscroll-behavior: contain; counter-reset: nav;
		opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
	}
	.menu-open { overflow: hidden; }
	.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s; }
	.nav a { position: relative; isolation: isolate; flex: none; padding: 14px 10px; min-height: 64px; font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 800; font-style: italic; letter-spacing: 0; color: var(--text); border-bottom: 1px solid var(--line); counter-increment: nav; }
	.nav a::after { content: counter(nav, decimal-leading-zero); margin-left: auto; font-size: 1rem; font-style: normal; font-weight: 700; color: var(--dim); }
	.nav a::before { content: ''; position: absolute; z-index: -1; inset: 8px 0; background: var(--brand); transform: skewX(var(--skew)) scaleX(0); transform-origin: left; transition: transform 0.2s; }
	.nav a.active { color: #fff; }
	.nav a.active::before { transform: skewX(var(--skew)) scaleX(1); }
	.nav a.active::after { color: rgba(255, 255, 255, 0.75); }
	.nav .nav-extra { display: flex; color: #8f99ff; }
}
@media (max-width: 640px) {
	.brand-badge { width: 40px; height: 40px; }
	.brand-text b { font-size: 1.5rem; }
	.topbar-inner { gap: 12px; }
	.topbar-actions { gap: 10px; }
	#nav-discord { display: none; }
	.plate { height: 34px; padding-right: 10px; font-size: 1rem; letter-spacing: 0.06em; }
	.plate:has(.avatar) span { display: none; }
}
@media (max-width: 340px) { .plate span { display: none; } .plate { padding-right: 6px; } }

/* ── Knoppen, labels ───────────────────────────────────── */
.btn {
	--btn-fg: var(--text);
	position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 24px; border: 0; background: none; cursor: pointer; white-space: nowrap;
	font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
}
.btn, .btn:hover { color: var(--btn-fg); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg, transparent); border: 2px solid var(--btn-border, transparent); transform: skewX(var(--skew)); transition: background 0.15s, border-color 0.15s, transform 0.15s; }
@media (hover: hover) { .btn:hover::before { transform: skewX(var(--skew)) translateX(3px); } }
.btn:active::before { transform: skewX(var(--skew)) scale(0.97); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--brand-hover); }
.btn-ghost { --btn-border: var(--line-2); }
.btn-ghost:hover { --btn-border: var(--text); }
.btn-discord { --btn-bg: #5865f2; --btn-fg: #fff; }
.btn-discord:hover { --btn-bg: #6d78f4; }
.btn-danger { --btn-border: color-mix(in srgb, var(--red) 55%, transparent); --btn-fg: var(--red); }
.btn-danger:hover { --btn-bg: var(--red); --btn-border: var(--red); --btn-fg: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 1rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]::before { transform: skewX(var(--skew)); }

.badge {
	display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; white-space: nowrap;
	font-family: var(--display); font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; line-height: 1;
	background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.badge-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge-live { background: var(--green); color: #fff; border-color: var(--green); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2, start) infinite; }
.badge-red { background: transparent; color: var(--red); border-color: currentColor; }
.badge-done { color: var(--dim); background: transparent; }
@keyframes blink { to { visibility: hidden; } }

/* Soort sessie: gekleurd blokje + naam */
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; line-height: 1; }
.tag::before { content: ''; width: 12px; height: 12px; background: var(--type, var(--muted)); transform: skewX(var(--skew)); flex: none; }
.type-training { --type: var(--blue); }
.type-kwalificatie { --type: var(--gold); }
.type-race { --type: var(--brand); }
.type-evenement { --type: var(--purple); }
.type-dot { display: inline-block; width: 10px; height: 10px; background: var(--type, var(--muted)); transform: skewX(var(--skew)); flex: none; }

/* ── Laden: startlichten ───────────────────────────────── */
.loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.lights { display: flex; gap: 8px; padding: 10px 12px; background: var(--asphalt); border-radius: 4px; }
.lights i { width: 22px; height: 22px; border-radius: 50%; background: #2b1414; animation: light 2.6s infinite; }
.lights i:nth-child(2) { animation-delay: 0.25s; } .lights i:nth-child(3) { animation-delay: 0.5s; }
.lights i:nth-child(4) { animation-delay: 0.75s; } .lights i:nth-child(5) { animation-delay: 1s; }
@keyframes light { 0%, 8% { background: #2b1414; } 12%, 70% { background: #ff2a2a; box-shadow: 0 0 10px rgba(255, 42, 42, 0.7); } 72%, 100% { background: #2b1414; box-shadow: none; } }

/* ── Hero met driftscène ───────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(540px, 76svh, 760px); background-color: #1d1e21; }
.scene { position: absolute; inset: 0; z-index: -2; }
.scene-canvas { display: block; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(14, 15, 17, 0.88) 0%, rgba(14, 15, 17, 0.6) 30%, rgba(14, 15, 17, 0) 56%), linear-gradient(0deg, rgba(14, 15, 17, 0.75), rgba(14, 15, 17, 0) 34%); }
.hero-content { padding: 48px 0 clamp(36px, 5vw, 64px); }
.hero h1 { font-size: clamp(3.4rem, 14vw, 7.5rem); line-height: 0.86; margin: 0 0 18px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55); }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--body); max-width: 520px; margin: 0 0 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.facts { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 0 0 0 -14px; padding: 0; overflow: hidden; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.facts li { padding: 2px 14px; margin-left: -2px; border-left: 2px solid var(--line-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; padding-left: 4px; }
@media (max-width: 1099px) {
	.hero { min-height: max(640px, min(78svh, 820px)); }
	.hero::after { background: linear-gradient(0deg, rgba(14, 15, 17, 0.97) 0 40%, rgba(14, 15, 17, 0) 66%); }
}

/* ── Wedstrijd-HUD: minikaart, volgende sessie, aftellen ─ */
.race-hud { padding: 26px 0 30px; }
.hud { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 340px) minmax(0, 250px); gap: 28px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.hud-radar .radar { display: block; width: 120px; height: 120px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.hud-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0 4px; }
.hud-title span { color: var(--brand); }
.hud-when { color: var(--body); }
.hud-note { margin: 0; color: var(--muted); }
.hud .countdown { margin: 0; }
.panel-label { display: inline-block; padding: 5px 16px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.panel-label.live { background: var(--green); color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.countdown div { background: #08090a; border: 1px solid var(--line); border-radius: 6px; padding: 10px 4px 8px; text-align: center; min-width: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 -10px 18px rgba(255, 255, 255, 0.03); }
.countdown b { display: block; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown div:first-child b { color: var(--brand); }
.countdown span { font-family: var(--display); font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.spec { margin: 0; display: grid; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
	.hud { grid-template-columns: 110px minmax(0, 1fr); gap: 20px 24px; }
	.hud-radar .radar { width: 110px; height: 110px; }
	.hud .countdown, .hud-spec, .hud-note { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.hud { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
	.hud-radar .radar { width: 84px; height: 84px; }
	.hud-title { margin-top: 10px; }
}

/* Minikaart in GTA-stijl */
.radar-bg { fill: #1f2a23; }
.radar-block { fill: #29362d; }
.radar-street { fill: none; stroke: #364539; stroke-width: 3.5; }
.radar-road { fill: none; stroke: #6b7770; stroke-width: 7; stroke-linejoin: round; }
.radar-line { fill: none; stroke: #c77dff; stroke-width: 2.6; stroke-linejoin: round; }
.radar-blip { fill: #fff; stroke: #111; stroke-width: 1; }
.radar-ring { fill: none; stroke: #f4f3ef; stroke-width: 3; }

/* Seizoenskalender met een circuitkaartje per ronde */
.calendar { margin-top: 24px; }
.calendar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.calendar-head h3 { margin: 0; font-size: 1.3rem; font-style: italic; font-weight: 800; color: var(--text); }
.rounds { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.round { position: relative; display: grid; gap: 2px; align-content: start; background: var(--surface); border-radius: 6px; padding: 12px 14px 14px; border-top: 4px solid var(--line-2); min-width: 0; }
.round .r { font-family: var(--display); font-size: 1.7rem; font-weight: 800; font-style: italic; line-height: 1; color: var(--text); }
.round .d { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.round .t { font-size: 0.86rem; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round .w { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--text); min-width: 0; }
.round.done { border-top-color: var(--brand); }
.round.next { border-top-color: var(--text); background: var(--surface-2); }
.round.cancelled .r { text-decoration: line-through; color: var(--dim); }
.round.tbd { background: transparent; border: 1px dashed var(--line-2); border-top: 4px solid var(--line); }
.round.tbd .r { color: var(--dim); }
.track { display: block; width: 100%; height: 52px; margin-bottom: 8px; overflow: visible; }
.track-road { fill: none; stroke: var(--line-2); stroke-width: 6; stroke-linejoin: round; }
.track-line { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.round.done .track-line { stroke: var(--brand); }
.round.next .track-line { stroke: #fff; }
.track-start { fill: #fff; }
.track-dot { fill: var(--brand); stroke: #111; stroke-width: 1; }
.track-tbd { border: 1px dashed var(--line-2); border-radius: 4px; }
@media (max-width: 760px) {
	.rounds { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.rounds::-webkit-scrollbar { display: none; }
	.round { scroll-snap-align: start; }
}

/* ── Secties ───────────────────────────────────────────── */
.section { padding-top: var(--section); }
.section-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; }
.section-head::before { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--line-2); }
.section-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 104px; height: 7px; background: repeating-linear-gradient(110deg, #e0141e 0 13px, #f1efea 13px 26px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; padding: 4px 0; }
.link-more::after { content: '→'; color: var(--brand); transition: transform 0.15s; }
@media (hover: hover) { .link-more:hover { color: var(--accent-text); } .link-more:hover::after { transform: translateX(4px); } }

/* Paginakop: asfalt met een driftende auto en remsporen */
.page-head { position: relative; isolation: isolate; overflow: hidden; }
.page-head > .wrap { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.2em; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.page-head p { color: var(--body); max-width: 620px; font-size: 1.05rem; margin: 0; }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28, 29, 32, 0.95) 0 35%, rgba(28, 29, 32, 0) 70%); pointer-events: none; }
.page-art { z-index: -2; left: auto !important; width: min(760px, 72%) !important; }
.page-head + .kerb + .wrap, .page-head + .kerb + .section { padding-top: clamp(28px, 4vw, 44px); }
.eyebrow { display: block; color: var(--accent-text); font-family: var(--display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; line-height: 1.2; }
@media (max-width: 640px) { .page-art { width: 62% !important; height: 55% !important; opacity: 0.75; } }

/* Getekende auto met remsporen (paginakop, teamkaart, teampagina) */
.drift-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.drift-art .marks path { fill: none; stroke: rgba(0, 0, 0, 0.6); stroke-width: 11; stroke-linecap: round; }
.drift-art .puffs circle { fill: #fff; opacity: 0.06; }
.car-num { font-family: var(--display); font-weight: 800; font-size: 10.5px; fill: #111; }
.car-move { transform-box: fill-box; transform-origin: center; }
.page-art .car-move, .team-art .car-move { animation: drift-in 1.1s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.page-art .marks path, .team-art .marks path { stroke-dasharray: 1600; animation: draw-marks 1.1s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.page-art .puffs, .team-art .puffs { animation: puff 1.6s ease-out both; }
@keyframes drift-in { from { transform: translate(-320px, 90px) rotate(28deg); } to { transform: none; } }
@keyframes draw-marks { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes puff { 0%, 45% { opacity: 0; } 70% { opacity: 1; } }
@keyframes rev { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(0.7px, -0.5px); } 50% { transform: translate(-0.5px, 0.6px); } 75% { transform: translate(0.6px, 0.4px); } }
.no-intro .fade-in, .no-intro .drift-art * { animation: none !important; }

/* ── Kaarten ───────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
@media (max-width: 640px) { .card { padding: 18px 16px; } }

/* Thuispagina: planning + stand naast elkaar */
.home-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .home-split { grid-template-columns: minmax(0, 1fr); gap: var(--section); } }
.schedule-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 14px; color: var(--muted); font-size: 0.9rem; }
.schedule-line .tag { color: var(--text); }
.schedule-line span.t { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--muted); margin-left: 4px; }

/* ── Sessies ───────────────────────────────────────────── */
.sessions { display: grid; gap: 6px; }
.session { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; background: var(--surface); border: 1px solid var(--line); min-width: 0; transition: border-color 0.15s; }
@media (hover: hover) { .session:hover { border-color: var(--line-2); } }
.session-date { grid-row: 1 / span 4; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 10px 4px; background: var(--asphalt); color: #fff; border-bottom: 4px solid var(--type, var(--line-2)); text-align: center; line-height: 1; }
.session-date b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: #fff; }
.session-date span { font-family: var(--display); font-size: 0.85rem; font-weight: 700; color: #a3a6ad; text-transform: uppercase; letter-spacing: 0.08em; }
.session-body { padding: 12px 18px; min-width: 0; align-self: center; }
.session-title { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--text); line-height: 1.15; }
.session-meta { color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; }
.session-meta .tag { font-size: 0.88rem; }
.session-side { display: grid; gap: 6px; justify-items: end; align-content: center; padding: 12px 18px; text-align: right; }
.session-time { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.session-notes { grid-column: 2 / -1; padding: 0 18px 12px; color: var(--muted); font-size: 0.9rem; }
.session-notes p { margin: 0; }
.session.state-afgelast .session-title { text-decoration: line-through; color: var(--muted); }
.session.state-afgelast .session-date { background: #3a3c41; }
.session.state-afgelopen .session-date { background: #2a2c30; }
.podium-mini { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 18px 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.podium-mini > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 600px) {
	.session { grid-template-columns: 58px minmax(0, 1fr); }
	.session-date b { font-size: 1.7rem; }
	.session-body { padding: 10px 14px 4px; }
	.session-title { font-size: 1.25rem; }
	.session-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; padding: 4px 14px 12px; text-align: left; }
	.session-time { font-size: 1.3rem; }
	.session-notes { padding: 0 14px 12px; }
	.podium-mini { flex-direction: column; gap: 6px; padding: 10px 14px; }
	.podium-mini .dim { display: none; }
}
.week-head { display: flex; align-items: baseline; gap: 6px 14px; margin: 36px 0 12px; flex-wrap: wrap; }
.week-head:first-child { margin-top: 4px; }
.week-head h3 { margin: 0; text-transform: uppercase; font-style: italic; font-weight: 800; font-size: 1.6rem; }

/* ── Stand in tv-stijl (timing tower) ──────────────────── */
.tower { padding-bottom: 6px; }
.tower-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 3px solid var(--brand); }
.tower-head > span { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.15rem; text-transform: uppercase; color: var(--text); }
.tower-row { display: grid; grid-template-columns: 44px 5px 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; padding-right: 16px; border-bottom: 1px solid var(--line); color: var(--body); }
.tower-row:last-child { border-bottom: 0; }
a.tower-row:hover { color: var(--body); }
@media (hover: hover) { .tower-row:hover { background: var(--surface); } }
.tower-row .p { align-self: stretch; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--text); background: var(--surface); }
.tower-row.p1 .p { background: var(--gold); color: #111; }
.tower-row.p2 .p { background: var(--silver); color: #111; }
.tower-row.p3 .p { background: var(--bronze); color: #111; }
.tower-row .bar { width: 5px; height: 26px; background: var(--c, var(--muted)); transform: skewX(var(--skew)); }
.tower-row .n { min-width: 0; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tower-row .n small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tower-row .pts { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--text); font-variant-numeric: tabular-nums; }
.tower-empty { margin: 0; padding: 22px 16px; color: var(--muted); }
.tower .avatar-sm { width: 28px; height: 28px; }
.mini-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #08090a; border: 2px solid var(--c, var(--line-2)); color: var(--c, var(--text)); font-family: var(--display); font-weight: 800; font-size: 0.72rem; }

/* ── Tabellen ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; vertical-align: middle; }
th { font-family: var(--display); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--surface-2); border-bottom: 2px solid var(--text); }
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover { background: var(--surface-2); } }
td.num, th.num { text-align: right; }
td.pts { text-align: right; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--text); }
.pos { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1; color: var(--pos-fg); background: var(--pos-bg); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); flex: none; }
.pos-1 { background: var(--gold); color: #111; }
.pos-2 { background: var(--silver); color: #111; }
.pos-3 { background: var(--bronze); color: #111; }
.pos-xs { min-width: 24px; height: 20px; font-size: 0.9rem; padding: 0 4px; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.who-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.who-sub { color: var(--muted); font-size: 0.84rem; display: flex; align-items: center; gap: 7px; min-width: 0; }
a.who-sub:hover { color: var(--text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar-fallback { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--muted); font-size: 0.95rem; border: 1px solid var(--line-2); }
.avatar-sm { width: 26px; height: 26px; font-size: 0.75rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.dot { width: 11px; height: 11px; background: var(--c, var(--brand)); transform: skewX(var(--skew)); flex: none; display: inline-block; }
.racenr { font-family: var(--display); font-weight: 800; font-style: italic; color: var(--accent-text); font-size: 1rem; margin-left: 2px; }
.fl { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; background: var(--purple); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 640px) {
	th, td { padding: 10px 8px; }
	th:first-child, td:first-child { padding-left: 12px; }
	th:last-child, td:last-child { padding-right: 12px; }
	td .who .avatar { display: none; }
	td.pts { font-size: 1.25rem; }
	td { white-space: normal; }
	td .who-name { overflow-wrap: anywhere; }
	td .racenr { white-space: nowrap; }
}

/* ── Tabs (schuine knoppen) ────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding-left: 4px; }
.tab { position: relative; isolation: isolate; min-height: 42px; padding: 0 18px; border: 0; background: none; color: var(--muted); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--surface); border: 1px solid var(--line); transform: skewX(var(--skew)); transition: background 0.15s, border-color 0.15s; }
@media (hover: hover) { .tab:hover { color: var(--text); } .tab:hover::before { border-color: var(--line-2); } }
.tab[aria-selected='true'] { color: #111; }
.tab[aria-selected='true']::before { background: var(--brand); border-color: var(--brand); }
.tab:focus-visible { outline: none; }
.tab:focus-visible::before { outline: 2px solid var(--brand); outline-offset: 2px; }
.tabs-sm { margin: 0; gap: 4px; }
.tabs-sm .tab { min-height: 34px; padding: 0 12px; font-size: 0.95rem; }
@media (max-width: 640px) {
	.tabs:not(.tabs-sm) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px calc(var(--gutter) + 4px); }
	.tabs::-webkit-scrollbar { display: none; }
	.tabs:not(.tabs-sm) .tab { flex: 1 0 auto; padding: 0 14px; }
}

/* ── Podium ────────────────────────────────────────────── */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 0 auto 36px; max-width: 720px; }
.podium-step { text-align: center; min-width: 0; }
.podium-step .avatar { width: 64px; height: 64px; margin: 0 auto 10px; font-size: 1.3rem; }
.podium-step .name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.podium-step .team { color: var(--muted); font-size: 0.84rem; display: flex; justify-content: center; align-items: center; gap: 6px; }
.podium-step .team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-step .pts { color: var(--accent-text); font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.podium-step .block { margin-top: 12px; padding: 14px 0; background: var(--asphalt); border-top: 6px solid var(--medal); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; }
.podium-step.p1 { --medal: var(--gold); }
.podium-step.p2 { --medal: var(--silver); }
.podium-step.p3 { --medal: var(--bronze); }
.podium-step.p1 .block { padding: 38px 0; }
.podium-step.p2 .block { padding: 24px 0; }
.podium-step.p1 .avatar { width: 80px; height: 80px; outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 560px) {
	.podium { gap: 6px; }
	.podium-step .name { font-size: 1.02rem; }
	.podium-step .avatar { width: 44px; height: 44px; }
	.podium-step.p1 .avatar { width: 56px; height: 56px; }
	.podium-step .team { display: none; }
	.podium-step .block { font-size: 2rem; }
}

/* ── Teams ─────────────────────────────────────────────── */
.team-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--body); min-width: 0; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.team-card:hover { color: var(--body); }
@media (hover: hover) { .team-card:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.35); } }
.team-card .banner { position: relative; height: 136px; overflow: hidden; background: #1c1d20 var(--asphalt-tex); }
.team-card .banner img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .team-card:hover .car-move { animation: rev 0.3s linear infinite; } }
.team-card .body { padding: 0 20px 18px; flex: 1; display: flex; flex-direction: column; }
.team-logo { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; background: #fff; border: 3px solid var(--surface); margin-top: -36px; position: relative; z-index: 1; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.9rem; }
.team-logo.fallback { background: var(--asphalt); color: var(--c); }
.team-card h3 { margin: 12px 0 8px; font-size: 1.6rem; font-style: italic; font-weight: 800; text-transform: uppercase; }
.team-card .desc { color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0 16px; }
.team-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.avatars { display: flex; }
.avatars .avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--surface); margin-left: -7px; }
.avatars .avatar:first-child { margin-left: 0; }
.slots { display: flex; gap: 3px; }
.slots i { width: 14px; height: 9px; background: var(--line); transform: skewX(-20deg); }
.slots i.on { background: var(--c, var(--brand)); }

.team-hero { position: relative; overflow: hidden; isolation: isolate; }
.team-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.team-art { z-index: -2; }
.team-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 15, 17, 0.85), rgba(14, 15, 17, 0.2) 60%), linear-gradient(0deg, rgba(14, 15, 17, 0.85), rgba(14, 15, 17, 0) 50%); }
.team-hero .wrap { padding: clamp(80px, 12vw, 150px) 0 32px; display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.team-hero .team-logo { width: 120px; height: 120px; margin: 0; font-size: 3rem; border-color: var(--bg); }
.team-hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 0 0 12px; color: #fff; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--body); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.member { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--brand)); padding: 12px 16px; min-width: 0; }
.member .avatar { width: 48px; height: 48px; }
.member .role { color: var(--muted); font-size: 0.86rem; }
.member .num { margin-left: auto; font-family: var(--display); font-size: 2rem; font-weight: 800; font-style: italic; color: var(--text); line-height: 1; }
.member .num::first-letter { color: var(--accent-text); }
.member.open { border-style: dashed; border-left-style: solid; border-left-color: var(--line-2); background: transparent; color: var(--muted); }
.team-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.team-layout h2 { font-size: clamp(1.6rem, 3vw, 2rem); padding-bottom: 8px; border-bottom: 2px solid var(--text); margin-bottom: 16px; }
@media (max-width: 900px) { .team-layout { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.kv dt, .kv dd { padding: 9px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 0.92rem; padding-right: 20px; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 14px 0; }
.mini-stats div { background: var(--surface-2); padding: 10px 12px; }
.mini-stats b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.mini-stats span { font-family: var(--display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.line-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }

/* ── Sponsors ──────────────────────────────────────────── */
.sponsor-card { display: flex; gap: 18px; align-items: flex-start; border-top: 4px solid var(--c); }
.sponsor-logo { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; padding: 6px; }
.sponsor-logo.fallback { background: var(--asphalt); display: grid; place-items: center; font-family: var(--display); font-size: 1.8rem; font-weight: 800; font-style: italic; color: var(--c, var(--brand)); padding: 0; border: 0; }
.sponsor-card h3 { margin: 8px 0 4px; font-size: 1.5rem; }
.sponsor-card p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.sponsor-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.sponsor-chip { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px 8px 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; min-width: 0; }
.sponsor-chip:hover { color: var(--text); }
@media (hover: hover) { .sponsor-chip:hover { border-color: var(--text); } }
.sponsor-chip .sponsor-logo { width: 46px; height: 46px; padding: 3px; font-size: 1.1rem; }

/* ── Prijzengeld ───────────────────────────────────────── */
.prize { display: grid; gap: 22px; }
.prize-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.prize-total span { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.prize-total b { display: block; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--text); }
.prize-top p { margin: 0; color: var(--muted); max-width: 460px; font-size: 0.95rem; }
.prize-bar { display: flex; height: 18px; gap: 3px; }
.prize-bar span { width: var(--w); background: var(--c); }
.prize-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.prize-part { border-top: 4px solid var(--c); padding-top: 12px; min-width: 0; }
.prize-part h4 { margin: 0 0 2px; font-size: 1.25rem; }
.prize-part .amount { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--text); line-height: 1.1; }
.prize-part p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.prize-row { display: grid; gap: 4px; margin-top: 10px; }
.prize-row div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--surface-2); font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.prize-coins { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.prize-coins b { font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
@media (max-width: 760px) { .prize-parts { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ── Reglementen ───────────────────────────────────────── */
.rules { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.rules-list { display: grid; gap: 4px; position: sticky; top: calc(var(--header) + 20px); }
.rules-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid transparent; color: var(--text); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
@media (hover: hover) { .rules-list button:hover { border-color: var(--line-2); border-left-color: var(--line-2); } }
.rules-list button[aria-selected='true'] { border-left-color: var(--brand); background: var(--surface); }
.rules-list .idx { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.3rem; color: var(--dim); width: 26px; flex: none; }
.rules-list button[aria-selected='true'] .idx { color: var(--accent-text); }
.rules-list small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.rule-doc { min-height: 300px; padding: clamp(20px, 3vw, 40px); }
.rule-doc .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 22px; }
.rule-doc .doc-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.rule-doc .md { max-width: 72ch; }
@media (max-width: 900px) {
	.rules { grid-template-columns: minmax(0, 1fr); }
	.rules-list { position: static; grid-auto-flow: column; grid-auto-columns: minmax(210px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
	.rules-list::-webkit-scrollbar { display: none; }
	.rules-list button { scroll-snap-align: start; }
}

/* ── Opgemaakte tekst (uit Discord) ────────────────────── */
.md { color: var(--body); overflow-wrap: break-word; }
.md > :last-child { margin-bottom: 0; }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.md h2, .md h3, .md h4 { font-style: italic; text-transform: uppercase; margin: 1.5em 0 0.5em; }
.md h2 { font-size: 1.6rem; }
.md h3 { font-size: 1.35rem; }
.md h4 { font-size: 1.15rem; }
.md > h2:first-child, .md > h3:first-child, .md > h4:first-child { margin-top: 0; }
.md ul, .md ol { padding-left: 1.25em; margin: 0 0 1em; }
.md li { margin: 0.3em 0; padding-left: 0.2em; }
.md li::marker { color: var(--brand); }
.md code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; font-size: 0.88em; }
.md blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--brand); background: var(--surface-2); }
.md .sub { color: var(--dim); font-size: 0.85rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq { display: grid; gap: 4px; }
.faq details { background: var(--surface); border: 1px solid var(--line); }
.faq details[open] { border-left: 4px solid var(--brand); }
.faq summary { cursor: pointer; padding: 16px 20px; min-height: 56px; font-weight: 600; color: var(--text); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); color: var(--accent-text); font-size: 1.7rem; line-height: 1; font-weight: 700; transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--body); }

/* Stappen (Zo doe je mee) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.step-card h3 { font-size: 1.35rem; margin: 14px 0 6px; text-transform: uppercase; font-style: italic; font-weight: 800; }
.step-card .md { color: var(--muted); font-size: 0.93rem; }
.step-num { display: inline-grid; place-items: center; min-width: 46px; height: 38px; padding: 0 8px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 1.5rem; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* Donkere band met finish-rand (meedoen, kampioen) */
.cta { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(26px, 4vw, 44px) calc(clamp(22px, 4vw, 44px) + 24px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.cta::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 24px; background: conic-gradient(#f4f3ef 25%, #111 0 50%, #f4f3ef 0 75%, #111 0) 0 0 / 24px 24px; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; color: var(--body); max-width: 600px; }
.cta .row { gap: 14px; padding-left: 4px; }

.empty { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty .cones { width: 78px; height: 33px; flex: none; }

/* ── Startopstelling (teams op de voorpagina) ──────────── */
.start-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 8vw, 120px); row-gap: 4px; padding: 40px clamp(16px, 4vw, 56px) 96px; border-radius: 8px; overflow: hidden; }
.start-grid::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: conic-gradient(#111 25%, #f4f3ef 0 50%, #111 0 75%, #f4f3ef 0) 0 0 / 14px 14px; }
.start-grid::after { content: ''; position: absolute; top: 14px; bottom: 0; left: 50%; width: 2px; background: repeating-linear-gradient(180deg, rgba(244, 243, 239, 0.25) 0 18px, transparent 18px 36px); }
.grid-slot { display: flex; align-items: center; gap: 16px; padding: 8px 0; color: var(--text); min-width: 0; }
.grid-slot:nth-child(even) { transform: translateY(58%); }
.grid-slot:hover { color: var(--text); }
.grid-box { position: relative; flex: none; display: grid; place-items: center; width: 74px; height: 130px; }
.grid-box::before { content: ''; position: absolute; inset: 2px 2px 38% 2px; border: 3px solid rgba(244, 243, 239, 0.85); border-bottom: 0; }
.grid-box .car-svg { position: relative; width: 52px; transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
@media (hover: hover) { .grid-slot:hover .car-svg { transform: translateY(-14px); } }
.grid-text { display: grid; min-width: 0; line-height: 1.15; }
.grid-pos { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--text); }
.grid-pos::after { content: ''; display: block; width: 28px; height: 4px; margin: 6px 0 8px; background: var(--c); transform: skewX(var(--skew)); }
.grid-text b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-text small { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) {
	.start-grid { column-gap: 22px; padding: 30px 14px 84px; }
	.grid-slot { flex-direction: column; align-items: flex-start; gap: 6px; }
	.grid-box { width: 56px; height: 100px; }
	.grid-box .car-svg { width: 40px; }
	.grid-pos { font-size: 1.8rem; }
	.grid-text b { font-size: 1.05rem; white-space: normal; }
}

/* ── Voettekst ─────────────────────────────────────────── */
.footer { margin-top: var(--section); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 48px; padding: 40px 0 28px; align-items: start; }
.footer-inner p { margin: 14px 0 0; max-width: 420px; font-size: 0.92rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 40px; justify-content: end; }
.footer-nav a { color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 0; }
.footer-nav a:hover { color: var(--text); }
#updated { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; max-width: none; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } .footer-nav { justify-content: start; } }

.fade-in { animation: fade 0.25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ═══ Beheer ═══════════════════════════════════════════ */
.admin-head .row { gap: 16px; }
.admin-head::before { display: none; }
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: clamp(24px, 4vw, 40px); }
.admin-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--header) + 20px); background: var(--surface); border: 1px solid var(--line); padding: 6px; }
.admin-nav a { color: var(--muted); font-weight: 600; font-size: 0.94rem; padding: 10px 12px; border-left: 3px solid transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav a:hover { color: var(--text); background: var(--surface-2); }
.admin-nav a.active { color: var(--text); background: var(--surface-2); border-left-color: var(--brand); }
.admin-main { display: grid; gap: 16px; min-width: 0; }
.admin-card { padding: 22px 24px; }
.admin-card-head { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.admin-card-head h3 { margin: 0; font-style: italic; font-weight: 800; text-transform: uppercase; }
details.admin-card > summary { cursor: pointer; list-style: none; }
details.admin-card > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) {
	.admin { grid-template-columns: minmax(0, 1fr); }
	.admin-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); border-inline: 0; }
	.admin-nav::-webkit-scrollbar { display: none; }
	.admin-nav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
	.admin-nav a.active { border-bottom-color: var(--brand); }
}
@media (max-width: 640px) { .admin-card { padding: 18px 16px; } }

/* Formulieren */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { font-family: var(--display); font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.field small { color: var(--dim); font-size: 0.8rem; }
.input { width: 100%; min-height: 46px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 2px; padding: 10px 12px; font: inherit; font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(224, 20, 30, 0.2); }
.input::placeholder { color: var(--dim); }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.55; }
select.input { cursor: pointer; }
input[type='file'] { color: var(--muted); font: inherit; font-size: 0.88rem; max-width: 100%; }
input[type='file']::file-selector-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); padding: 8px 12px; margin-right: 10px; font: inherit; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--body); font-size: 0.92rem; cursor: pointer; min-height: 36px; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; }
.inline-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { min-height: 38px; padding: 6px 8px; width: auto; }
.input-num { width: 84px !important; }
.color-row { flex-wrap: nowrap; }
.color-input { width: 50px; height: 46px; border: 1px solid var(--line-2); background: var(--surface); padding: 4px; cursor: pointer; flex: none; }
.image-preview { width: 72px; height: 72px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-2); flex: none; }
.image-preview.banner { width: 150px; }
.image-preview[data-empty] { display: none; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-size: 0.75rem; }
.icon-btn:hover:not([disabled]) { color: var(--text); border-color: var(--brand); }
.icon-btn[disabled] { opacity: 0.3; cursor: default; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-left: 4px solid var(--brand); padding: 12px 16px; margin-bottom: 14px; color: var(--body); }
.notice-error { background: color-mix(in srgb, var(--red) 8%, var(--surface)); border-color: color-mix(in srgb, var(--red) 40%, transparent); border-left-color: var(--red); color: var(--body); }

/* Lijsten */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 6px; }
.member-admin { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line); border-left: 5px solid var(--c); margin-bottom: 6px; }
.member-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: var(--surface); border: 1px solid var(--line-2); }
.segmented button { min-height: 36px; padding: 0 12px; background: none; color: var(--muted); border: 0; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--brand); color: #fff; }
@media (max-width: 560px) { .segmented { width: 100%; } .segmented button { flex: 1 1 auto; padding: 0 8px; font-size: 0.8rem; } }

/* Ledenkiezer */
.picker { position: relative; }
.picker-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.35); max-height: 300px; overflow: auto; padding: 4px; }
.picker-results button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; font: inherit; cursor: pointer; }
.picker-results button:hover, .picker-results button:focus { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--brand); outline: none; }

/* Planning beheren */
.session-admin { background: var(--surface-2); border: 1px solid var(--line); border-left: 5px solid var(--type, var(--line-2)); margin-bottom: 6px; }
.session-admin > summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px; cursor: pointer; list-style: none; }
.session-admin > summary::-webkit-details-marker { display: none; }
.session-admin .session-date { grid-row: auto; background: none; color: var(--text); border: 0; padding: 0; }
.session-admin .session-date b { color: var(--text); font-size: 1.5rem; }
.session-admin .session-date span { color: var(--muted); }
.session-admin.state-afgelast > summary b { text-decoration: line-through; opacity: 0.7; }
.session-admin-body { padding: 16px; border-top: 1px solid var(--line); background: var(--surface); }
.schedule-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 140px auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.season-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
	.schedule-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.schedule-row b { grid-column: 1 / -1; }
	.session-admin > summary { grid-template-columns: 44px minmax(0, 1fr); }
	.session-admin > summary .badge { grid-column: 2; justify-self: start; }
}

/* Uitslag invoeren */
.entry-rows { display: grid; gap: 4px; }
.entry-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.input-status { width: auto !important; min-height: 38px !important; padding: 6px 8px !important; }
.entry-move { display: flex; gap: 4px; margin-left: auto; }

/* Overig beheer */
.review-image { width: 100%; max-height: 220px; object-fit: contain; background: var(--surface-2); margin-bottom: 12px; }
.ticket { background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 6px; }
.ticket > summary { cursor: pointer; list-style: none; }
.ticket dd { white-space: pre-wrap; font-weight: 400; }
.login-card { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; max-width: 720px; padding: 32px; border-top: 4px solid var(--brand); }
.login-card > div { flex: 1 1 260px; min-width: 0; }
.login-card h3 { margin-top: 0; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; }
.login-logo { flex: none; border-radius: 4px; border: 1px solid var(--line); }

/* Meldingen: schuiven binnen zoals in een game */
#toasts { position: fixed; z-index: 100; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); background: none; }
.toast { background: var(--surface); border: 1px solid var(--line-2); border-left: 5px solid var(--green); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.6); padding: 12px 16px; color: var(--text); white-space: pre-line; animation: toast-in 0.25s ease both; transition: opacity 0.5s, transform 0.5s; }
.toast-error { border-left-color: var(--red); }
.toast.hide { opacity: 0; transform: translateX(24px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Uitslagen per ronde (klassement) */
.round-detail { padding: 0; }
.round-detail > summary .row { gap: 12px; }
.round-detail-body { padding: 0 20px 18px; }
@media (max-width: 640px) { .round-detail-body { padding: 0 0 12px; } .round-detail-body .table-wrap { border-inline: 0; } }
