/* Reet All Stars - mobile-first. Basisstijlen zijn voor de gsm, @media (min-width) voegt toe voor grotere schermen. */
:root {
  --red: #b84233;
  --red-dark: #962f22;
  --yellow: #e3df00;
  --black: #151515;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e6e4dc;
  --bg: #f6f5ef;
  --card: #ffffff;
  --green: #2f8a4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .05);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --tabbar-h: 64px;
  /* Eén grote diagonale baan (rood met gele streep) die navbar en welkomstblok delen.
     Beide tonen een uitsnede van hetzelfde vlak; JS zet de positie van het welkomstblok. */
  --stripes: linear-gradient(115deg, transparent 0 32%, var(--red) 32% 40.5%, var(--yellow) 40.5% 42%, var(--red) 42% 53%, transparent 53%);
  --stripes-w: 100vw;
  --stripes-h: 800px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
/* De site heeft een licht ontwerp: zeg dat aan de browser, zodat een gsm in donkere
   modus knoppen en velden niet automatisch omkleurt (witte tekst op witte knop). */
:root { color-scheme: only light; }
button, input, select, textarea { color: var(--ink); }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .5rem; text-transform: uppercase; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Superbeheerder: gele balk bovenaan ---------- */
.impersonation-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
  background: var(--yellow); color: var(--black); padding: .5rem 16px; font-size: .9rem; text-align: center; padding-top: calc(.5rem + env(safe-area-inset-top, 0px)); }
.impersonation-bar form { margin: 0; }
.impersonation-bar .btn { background: var(--black); color: #fff; }
.impersonation-bar + .topbar { position: relative; padding-top: 0; }

/* ---------- Topbalk ---------- */
.topbar { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
/* Diagonale baan in de clubkleuren, zoals in het logo. Loopt door in het welkomstblok. */
.topbar::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--stripes) 0 0 / var(--stripes-w) var(--stripes-h) no-repeat; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--yellow) 60%, var(--red)); }
.topbar__inner { position: relative; max-width: 1100px; margin: 0 auto; padding: .55rem 16px .65rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; min-width: 0; }
.brand__logo { height: 34px; width: auto; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand__sub { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin-top: 3px; white-space: nowrap; }
.nav { display: none; }

.usermenu { margin-left: auto; position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: 3px; border-radius: 999px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu__name { display: none; color: #fff; font-size: .9rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--yellow); flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar--lg { width: 52px; height: 52px; font-size: 1.3rem; background: var(--red); box-shadow: none; }
.avatar__dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--black); }
.usermenu[open] .avatar { outline: 3px solid rgba(227, 223, 0, .35); }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 16px 48px rgba(0, 0, 0, .3); width: min(290px, calc(100vw - 32px)); padding: .5rem; display: flex; flex-direction: column; animation: menu-in .14s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.usermenu__who { display: flex; align-items: center; gap: .75rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.usermenu__id { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.usermenu__id strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.usermenu__sep { height: 1px; background: var(--line); margin: .3rem .5rem; }
.usermenu__panel a, .usermenu__panel button { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .7rem .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; min-height: 44px; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--bg); }
.usermenu__panel form { margin: 0; }
.usermenu__panel button { color: var(--red); font-weight: 600; }
.count { margin-left: auto; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; }

/* ---------- Tabbalk onderaan (gsm) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--black); border-top: 1px solid #2a2a2a; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar-h); color: #9a9a9a; text-decoration: none; font-size: .72rem; font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.is-active { color: var(--yellow); }
.tabbar a:active { background: #222; }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 1rem 16px calc(var(--tabbar-h) + var(--safe-bottom) + 1.5rem); }
.page-head { margin-bottom: 1rem; }
.page-head--row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.page-head--row h1 { margin: 0; }
.section-title { margin: 1.6rem 0 .7rem; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: .6rem; }
.section-title::before { content: ''; flex: none; width: 16px; height: 1.05em; border-radius: 2px; transform: skewX(-20deg);
  background: linear-gradient(90deg, var(--red) 0 55%, var(--yellow) 55% 72%, var(--red) 72%); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1rem; }
.card--narrow { max-width: 520px; margin-inline: auto; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--accent { border-left: 5px solid var(--yellow); display: flex; flex-direction: column; }
.list { display: flex; flex-direction: column; gap: .5rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.actions .btn { flex: 1 1 0; }
.actions form { display: contents; }  /* knop in een formulier telt mee als gewone knop in de rij */
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; text-align: center; color: var(--muted); }
.back { display: inline-block; margin-bottom: .5rem; text-decoration: none; font-weight: 600; padding: .25rem 0; }
.next-up { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }

/* ---------- Hero / dashboard ---------- */
.hero { background: var(--black); color: #fff; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--stripes) var(--hero-x, -16px) var(--hero-y, -80px) / var(--stripes-w) var(--stripes-h) no-repeat; }
.hero > * { position: relative; z-index: 2; }
.hero__kicker { color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin: 0 0 .25rem; }
.hero__title { font-size: 2.2rem; margin: 0 0 1rem; }
.hero__sub { color: #bbb; margin: 0; }
.hero__next { display: flex; flex-direction: column; background: rgba(21, 21, 21, .82); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: .75rem 1rem; color: #fff; text-decoration: none; max-width: 420px; }
.hero__next strong { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.hero__next span { color: #ccc; font-size: .9rem; }
.hero__next .hero__label { color: var(--yellow); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; flex-direction: column; }
.stat__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stat__value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.mvp-line { margin: .5rem .25rem 0; }

/* ---------- Matchkaarten ---------- */
.match-card { display: flex; align-items: center; gap: .9rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem 1rem; text-decoration: none; color: inherit; min-height: 64px; }
.match-card:active { transform: scale(.99); }
.match-card__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--black); color: #fff; flex: none; line-height: 1; }
.match-card__day { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.match-card__month { font-size: .65rem; text-transform: uppercase; color: var(--yellow); letter-spacing: .05em; }
.match-card__body { flex: 1; min-width: 0; }
.match-card__opponent { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card__meta { font-size: .8rem; color: var(--muted); }

.score { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; padding: .2rem .6rem; border-radius: 8px; flex: none; }
.score--W { background: #e3f3e7; color: var(--green); }
.score--V { background: #fbeceb; color: var(--red); }
.score--G { background: #f1f0e8; color: #555; }
.pill { font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; flex: none; }
.pill--muted { background: #eee; color: #666; }
.pill--warn { background: var(--yellow); color: var(--black); }

/* ---------- Matchdetail ---------- */
.scoreboard { background: var(--black); color: #fff; border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; text-align: center; border-bottom: 4px solid var(--red); }
.scoreboard__meta { color: #aaa; font-size: .8rem; margin-bottom: .75rem; }
.scoreboard__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.scoreboard__team { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; line-height: 1.1; overflow-wrap: anywhere; }
.scoreboard__score { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; padding: 0 .5rem; border-radius: 10px; }
.scoreboard__score.score--W { color: #7fd99a; background: none; }
.scoreboard__score.score--V { color: #ff8a7a; background: none; }
.scoreboard__score.score--G, .scoreboard__score.score--none { color: #fff; background: none; }

.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .5rem; }
.highlight { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem 1rem; display: flex; flex-direction: column; }
.highlight span { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.highlight strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.highlight--mvp { background: var(--yellow); }
.highlight--mvp span { color: var(--black); }

.row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--card); border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--shadow); min-height: 52px; }
.row__name { font-weight: 600; }
.row__stats { display: flex; gap: .35rem; }
.chip { background: var(--black); color: #fff; font-weight: 700; font-size: .85rem; padding: .2rem .55rem; border-radius: 999px; }
.chip--light { background: #eee; color: var(--ink); }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 6px; }
.tag--mvp { background: var(--yellow); color: var(--black); }
.tag--gg { background: #e9f0ff; color: #2c4a8a; }
.danger-zone { margin-top: 2rem; text-align: center; }
.link-danger { background: none; border: 0; color: var(--red); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: .75rem; }

/* ---------- Statistieken invoeren ---------- */
.score-input { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.score-input__side { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; text-align: center; }

.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; min-height: 44px; border: 0; background: var(--bg); font-size: 1.4rem; font-weight: 600; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.stepper button:active { background: var(--yellow); }
.stepper input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 1.1rem; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: none; }
.stepper--lg button { width: 52px; min-height: 56px; }
.stepper--lg input { width: 56px; font-family: var(--font-display); font-size: 2rem; }

.player-stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .25rem 1rem; transition: box-shadow .15s; }
.player-stat.is-present { box-shadow: inset 4px 0 0 var(--red), var(--shadow); }
.player-stat__toggle { display: flex; align-items: center; gap: .75rem; min-height: 52px; cursor: pointer; }
.player-stat__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.player-stat__name { font-weight: 600; flex: 1; }
.player-stat__gg { display: none; }
.player-stat.is-gg .player-stat__gg { display: inline-block; }
.player-stat__counters { display: none; gap: 1rem; justify-content: space-between; padding: 0 0 .75rem; }
.player-stat.is-present .player-stat__counters { display: flex; }
.counter { display: flex; flex-direction: column; gap: .25rem; }
.counter__label { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; font-weight: 600; }

.switch { width: 46px; height: 28px; border-radius: 999px; background: #d6d4cc; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.player-stat__toggle input:checked + .switch { background: var(--red); }
.player-stat__toggle input:checked + .switch::after { transform: translateX(18px); }
.player-stat__toggle input:focus-visible + .switch { outline: 3px solid var(--yellow); outline-offset: 2px; }

.savebar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 15; padding: .75rem 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.savebar .btn { max-width: 520px; margin: 0 auto; display: flex; box-shadow: 0 6px 20px rgba(184, 66, 51, .35); min-height: 52px; font-size: 1.05rem; }
body.has-savebar .container { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 6rem); }

/* ---------- Spelers ---------- */
.player-card { display: flex; align-items: center; gap: .9rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem 1rem; min-height: 64px; }
.player-card.is-inactive { opacity: .55; }
.player-card__number { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; border: 2px solid var(--yellow); }
.player-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); font-size: 1.1rem; flex: none; }

/* ---------- Was ---------- */
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 2rem; align-items: center; gap: .6rem; background: var(--card); border-radius: 12px; padding: .6rem 1rem; box-shadow: var(--shadow); min-height: 48px; }
.bar-row__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row__track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-row__fill { height: 100%; background: var(--red); border-radius: 999px; }
.bar-row__value { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-align: right; }

/* ---------- MVP-stemming ---------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 223, 0, .7); } 50% { box-shadow: 0 0 0 6px rgba(227, 223, 0, 0); } }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; animation: pulse 1.6s infinite; }
.pill--live { background: var(--yellow); color: var(--black); }

.vote-cta { display: flex; align-items: center; gap: .9rem; background: var(--red); color: #fff; text-decoration: none; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .75rem; box-shadow: 0 8px 24px rgba(184, 66, 51, .35); min-height: 64px; }
.vote-cta:active { transform: scale(.99); }
.vote-cta__text { flex: 1; display: flex; flex-direction: column; }
.vote-cta__text strong { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; line-height: 1.1; }
.vote-cta__text span { font-size: .85rem; opacity: .9; }
.vote-cta__arrow { font-size: 2rem; line-height: 1; }

.vote-panel { background: var(--black); color: #fff; border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.vote-panel__head { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; }
.vote-panel__meta { margin: 0; color: #bbb; font-size: .9rem; }
.vote-panel__done { margin: 0; color: var(--yellow); font-weight: 600; }
.vote-panel form { margin: 0; text-align: center; }
.progress { height: 8px; background: #333; border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--yellow); border-radius: 999px; transition: width .3s; }
.btn--yellow { background: var(--yellow); color: var(--black); }
.link-light { background: none; border: 0; color: #aaa; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .5rem; }

.results { display: flex; flex-direction: column; gap: .7rem; margin-top: .5rem; }
.result__label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .25rem; }
.result__track { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.result__fill { height: 100%; background: #c9c7bd; border-radius: 999px; }
.result.is-winner .result__fill { background: var(--yellow); }
.result.is-winner .result__label strong { color: var(--red); }

.vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
.vote-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem .5rem; cursor: pointer; border: 3px solid transparent; text-align: center; min-height: 120px; justify-content: center; transition: border-color .1s, transform .05s; }
.vote-option:active { transform: scale(.98); }
.vote-option input { position: absolute; opacity: 0; pointer-events: none; }
.vote-option__number { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.vote-option__name { font-weight: 600; }
.vote-option:has(input:checked) { border-color: var(--red); background: #fff7f5; }
.vote-option:has(input:checked) .vote-option__number { background: var(--red); border: 2px solid var(--yellow); }
.vote-option:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }

.field__label { font-weight: 600; font-size: .9rem; }
.chip-select { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; }
.chip-option input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.chip-option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Stats ---------- */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e9e7df; border-radius: 12px; padding: 4px; margin-bottom: .9rem; }
.segmented a { display: flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 40px; }
.segmented a.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.chip-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px .25rem; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.chip-tabs::-webkit-scrollbar { display: none; }
.chip-tabs a { flex: none; scroll-snap-align: start; padding: .45rem .9rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; }
.chip-tabs a.is-active { background: var(--black); border-color: var(--black); color: #fff; }

.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.rank-row { display: grid; grid-template-columns: 2.25rem 1fr auto; grid-template-areas: "pos name value" "pos track track"; column-gap: .75rem; row-gap: .35rem; align-items: center; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .65rem 1rem; }
.rank-row.is-me { box-shadow: inset 4px 0 0 var(--yellow), var(--shadow); }
.rank-row__pos { grid-area: pos; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; background: var(--bg); color: var(--muted); }
.rank-row__pos--1 { background: var(--yellow); color: var(--black); }
.rank-row__pos--2 { background: #d9d9d9; color: var(--black); }
.rank-row__pos--3 { background: #e7c3a3; color: var(--black); }
.rank-row__name { grid-area: name; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__value { grid-area: value; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.rank-row__track { grid-area: track; height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rank-row__fill { display: block; height: 100%; background: var(--red); border-radius: 999px; }

.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }

.form-strip { display: flex; gap: .4rem; }
.form-strip__item { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.form-strip__item--W { background: #e3f3e7; color: var(--green); }
.form-strip__item--G { background: #efeee8; color: #555; }
.form-strip__item--V { background: #fbeceb; color: var(--red); }

.records { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.record { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.record__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.record strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.record__meta { font-size: .8rem; color: var(--muted); }

.chart-card { padding: 1rem .75rem; }
.chart-card__sub { margin: 0 .25rem .5rem; color: var(--muted); font-size: .85rem; }
.chart { position: relative; height: 240px; }
.table-view summary { cursor: pointer; color: var(--red); font-weight: 600; font-size: .9rem; padding: .75rem .25rem .25rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .75rem; font-variant-numeric: tabular-nums; }
.data-table th { text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .4rem .35rem; border-bottom: 2px solid var(--line); }
.data-table td { text-align: right; padding: .5rem .35rem; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child, .data-table .left { text-align: left; }

.profile { display: flex; align-items: center; gap: 1rem; background: var(--black); color: #fff; border-radius: var(--radius); padding: 1.1rem; border-bottom: 4px solid var(--red); }
.profile > div { flex: 1; min-width: 0; }
.profile__number { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--red); border: 3px solid var(--yellow); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.profile__name { margin: 0; font-size: 2rem; }
.profile__meta { color: #bbb; font-size: .9rem; }
.icon-btn--dark { background: #2a2a2a; color: #fff; }

.player-card__body { text-decoration: none; color: inherit; }
.row__name a { color: var(--ink); text-decoration: none; }

/* ---------- Uitnodigingen ---------- */
.invite-link { background: var(--black); color: #fff; border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; border-bottom: 4px solid var(--yellow); }
.invite-link__label { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.invite-link input[type=text] { background: #222; color: #fff; border-color: #333; font-size: 14px; }
.invite-link__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.invite-link__actions .btn:only-child, .invite-link__actions [hidden] + .btn { grid-column: 1 / -1; }
.invite-link__note { margin: 0; color: #aaa; font-size: .8rem; }
.invite-row { display: flex; flex-direction: column; min-width: 0; }
.pill--gebruikt { background: #e3f3e7; color: var(--green); }
.pill--verlopen, .pill--ingetrokken, .pill--vol { background: #eee; color: #777; }
.invite-row__who { color: var(--ink); margin-top: .15rem; }
.center { text-align: center; }

/* ---------- Foto's ---------- */
.has-photo { padding: 0; overflow: hidden; }
.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card { text-align: center; }
.photo-preview { width: 160px; height: 160px; margin: 1rem auto; border-radius: 50%; border: 4px solid var(--yellow); background: var(--red); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__initial { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: #fff; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Feedback ---------- */
.choice-group { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice-group legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .4rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; text-align: center; white-space: nowrap; }
.choice input:checked + span { border-color: var(--red); background: #fff7f5; box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
textarea { resize: vertical; min-height: 140px; }
.feedback-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; border-left: 4px solid var(--red); }
.feedback-item.is-handled { border-left-color: var(--line); opacity: .7; }
.feedback-item__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.feedback-item__message { margin: 0; overflow-wrap: anywhere; }
.feedback-item__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.feedback-item__foot form { margin: 0; }
.tag--idee { background: #fdfbe0; color: #6b6700; }
.tag--probleem { background: #fbeceb; color: var(--red); }
.tag--andere { background: #eee; color: #444; }

/* ---------- MVP-onthulling ---------- */
.reveal-cta { background: var(--black); color: #fff; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; position: relative; overflow: hidden; border-bottom: 4px solid var(--yellow); }
.reveal-cta::before { content: ''; position: absolute; inset: -40% -10% auto; height: 160%; background: radial-gradient(closest-side, rgba(227, 223, 0, .18), transparent); pointer-events: none; }
.reveal-cta > * { position: relative; }
.reveal-cta form { width: 100%; margin-top: .75rem; }
.reveal-cta__trophy { font-size: 2.6rem; animation: wiggle 2.4s ease-in-out infinite; }
.reveal-cta__title { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.reveal-cta__sub { color: #bbb; }
.reveal-cta__btn { min-height: 52px; font-size: 1.1rem; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }


.reveal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 16px; cursor: pointer;
  background: radial-gradient(circle at 50% 42%, rgba(227, 223, 0, .22), transparent 55%), rgba(10, 10, 10, .96);
  animation: reveal-fade .4s ease-out both; }
.reveal.is-closing { animation: reveal-out .3s ease-in both; }
.reveal__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.reveal__stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; color: #fff; max-width: 520px; }
.reveal__kicker { margin: 0; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; animation: rise .5s .2s ease-out both; }
.reveal__trophy { font-size: 3.5rem; animation: trophy-drop .7s .4s cubic-bezier(.2, 1.6, .4, 1) both; filter: drop-shadow(0 6px 18px rgba(227, 223, 0, .5)); }
.reveal__winners { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.reveal__winner { display: flex; flex-direction: column; align-items: center; gap: .75rem; animation: winner-in .8s calc(1s + var(--i) * .25s) cubic-bezier(.2, 1.4, .4, 1) both; }
.reveal__photo { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: var(--red); border: 5px solid var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; overflow: hidden;
  box-shadow: 0 0 0 8px rgba(227, 223, 0, .15), 0 0 60px rgba(227, 223, 0, .55); animation: glow 2s 2s ease-in-out infinite; }
.reveal__winners--2 .reveal__photo, .reveal__winners--3 .reveal__photo { width: 124px; height: 124px; font-size: 3.2rem; }
.reveal__photo img { width: 100%; height: 100%; object-fit: cover; }
.reveal__name { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; text-transform: uppercase; line-height: 1; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.reveal__winners--2 .reveal__name, .reveal__winners--3 .reveal__name { font-size: 1.8rem; }
.reveal__note { margin: 0; color: var(--yellow); font-weight: 600; animation: rise .5s 1.6s ease-out both; }
.reveal__votes { color: var(--yellow); font-weight: 700; font-size: 1rem; margin-top: -.4rem; }
.reveal__stage { max-height: calc(100vh - 48px); overflow-y: auto; }
.reveal__ranking { list-style: none; margin: .75rem 0 0; padding: 0; width: min(340px, 100%); display: flex; flex-direction: column; gap: .4rem; }
.reveal__ranking:empty { display: none; }
.reveal__ranking li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: .45rem .8rem; text-align: left; animation: rise .45s calc(2.2s + var(--j) * .35s) ease-out both; }
.reveal__place { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #2a2a2a; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.reveal__ranking .is-place-2 .reveal__place { background: #d9d9d9; color: var(--black); }
.reveal__ranking .is-place-3 .reveal__place { background: #e7c3a3; color: var(--black); }
.reveal__rname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal__rvotes { color: #ccc; font-size: .88rem; }
.reveal__close { margin-top: 1.25rem; min-width: 220px; animation: rise .5s 2.8s ease-out both; flex: none; }

/* Propjes papier: elke stem valt en gaat open */
.reveal__stage[hidden] { display: none; }
.ballots { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; color: #fff; width: min(360px, 100%); }
.ballots__count { margin: 0; color: #bbb; font-weight: 600; }
.ballots__drop { position: relative; width: 100%; height: 230px; }
.paper { position: absolute; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.paper.is-gone { animation: paper-away .4s ease-in forwards; }
.paper__ball { position: absolute; width: 84px; height: 78px; border-radius: 46% 54% 42% 58% / 55% 43% 57% 45%;
  background: radial-gradient(circle at 35% 30%, #fff, #e9e5da 45%, #bdb6a5);
  box-shadow: inset -7px -9px 14px rgba(0, 0, 0, .2), inset 5px 4px 8px rgba(255, 255, 255, .8);
  animation: ball-fall .8s cubic-bezier(.5, 0, .9, .7) both, ball-pop .2s .8s ease-in forwards; }
.paper__ball::before { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(35deg, transparent 44%, rgba(0, 0, 0, .14) 46% 48%, transparent 50%),
              linear-gradient(-55deg, transparent 56%, rgba(0, 0, 0, .12) 57% 59%, transparent 61%),
              linear-gradient(100deg, transparent 28%, rgba(0, 0, 0, .1) 30% 32%, transparent 34%),
              linear-gradient(160deg, transparent 66%, rgba(0, 0, 0, .1) 67% 69%, transparent 71%); }
.paper__note { position: relative; width: min(260px, 82%); min-height: 140px; padding: 1.5rem 1.1rem; display: grid; place-items: center; color: #1f3f94;
  background: linear-gradient(90deg, transparent 49.6%, rgba(0, 0, 0, .08) 50%, transparent 50.4%),
              linear-gradient(0deg, transparent 49.3%, rgba(0, 0, 0, .08) 50%, transparent 50.7%),
              linear-gradient(28deg, transparent 30%, rgba(0, 0, 0, .05) 30.4%, transparent 30.8%),
              linear-gradient(-35deg, transparent 68%, rgba(0, 0, 0, .06) 68.4%, transparent 68.8%),
              linear-gradient(120deg, transparent 15%, rgba(0, 0, 0, .04) 15.4%, transparent 15.8%),
              radial-gradient(circle at 30% 20%, #fffdf6, #ebe4d2);
  clip-path: polygon(1% 4%, 22% 0, 48% 3%, 76% 0, 99% 2%, 100% 34%, 98% 70%, 100% 97%, 70% 100%, 44% 97%, 18% 100%, 0 98%, 2% 62%, 0 30%);
  transform: rotate(var(--tilt)); animation: note-open .55s .85s cubic-bezier(.2, 1.2, .4, 1) both; }
.paper__name { font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-weight: 700; font-size: 2.9rem; line-height: 1.05; overflow-wrap: anywhere; }
.ballots__tally { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; min-height: 2rem; }
.ballots__tally li { display: flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: .2rem .75rem; font-weight: 600; }
.ballots__tally strong { color: var(--yellow); }
.ballots__tally li.is-bump { animation: tally-bump .45s ease-out; }
.ballots__hint { margin: .5rem 0 0; color: var(--yellow); font-weight: 600; animation: hint-pulse 1.6s ease-in-out infinite; }
@keyframes ball-fall {
  0% { opacity: 0; transform: translateY(-65vh) rotate(-260deg); }
  10% { opacity: 1; }
  72% { transform: translateY(0) rotate(-25deg); }
  84% { transform: translateY(-22px) rotate(-10deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes ball-pop { to { opacity: 0; transform: scale(1.6) rotate(20deg); } }
@keyframes note-open {
  0% { opacity: 0; transform: rotate(var(--tilt)) scale(.25, .15); }
  45% { opacity: 1; transform: rotate(var(--tilt)) scale(1.04, .3); }
  100% { transform: rotate(var(--tilt)) scale(1); }
}
@keyframes paper-away { to { opacity: 0; transform: translate(130%, 30px) rotate(28deg); } }
@keyframes tally-bump { 40% { transform: scale(1.18); background: rgba(227, 223, 0, .3); } }
@keyframes hint-pulse { 50% { opacity: .45; } }

@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-out { to { opacity: 0; transform: scale(1.03); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes trophy-drop { from { opacity: 0; transform: translateY(-60px) scale(.4) rotate(-20deg); } }
@keyframes winner-in { 0% { opacity: 0; transform: scale(.2) rotate(-8deg); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes glow { 50% { box-shadow: 0 0 0 14px rgba(227, 223, 0, .1), 0 0 90px rgba(227, 223, 0, .8); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal *, .reveal-cta__trophy { animation: none !important; }
}

/* ---------- Registreren en gebruikersbeheer ---------- */
.choice-group--stack { grid-template-columns: 1fr; }
.choice-group--stack .choice > span { justify-content: flex-start; padding: .6rem 1rem; white-space: normal; text-align: left; }
.register-step { display: flex; flex-direction: column; gap: 1rem; }
.register-step[hidden] { display: none; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.btn--danger { background: #fff; color: var(--red); border-color: #f0c9c4; }
.btn--danger:hover { background: #fbeceb; }
.danger-card { border: 1.5px solid #f0c9c4; box-shadow: none; }
.danger-card h2 { color: var(--red); }

.hint { background: #fdfbe0; border-left: 4px solid var(--yellow); border-radius: 10px; padding: .6rem .9rem; font-size: .88rem; margin: 0 0 .6rem; }

/* ---------- Beheer ---------- */
.tools { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1rem; }
.tool { display: flex; flex-direction: column; gap: .2rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); min-height: 64px; }
.tool strong { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.tool span { color: var(--muted); font-size: .88rem; }
.tool strong .count { margin-left: 0; color: #fff; font-size: .75rem; }
.tool:active { transform: scale(.99); }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.role-picker .is-current { border-color: var(--red); color: var(--red); }

/* ---------- Aanwezigheid op voorhand ---------- */
.availability h2 { margin-bottom: .75rem; }
.availability__buttons { display: flex; flex-direction: column; gap: .5rem; }
.availability__answer { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0; }
.answer { min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; touch-action: manipulation; }
.answer--yes.is-chosen { background: #e3f3e7; border-color: var(--green); color: var(--green); }
.answer--no.is-chosen { background: #fbeceb; border-color: var(--red); color: var(--red); }
.availability__overview { min-height: 48px; }
.availability__overview .muted { font-weight: 500; }

/* Popup: op de gsm schuift ze van onderen in beeld, op de pc staat ze in het midden. */
.sheet { border: 0; padding: 1.1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 100%; margin: auto auto 0;
  border-radius: 20px 20px 0 0; max-height: 85vh; overflow-y: auto; background: var(--card); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet[open] { animation: sheet-up .22s ease-out; }
.sheet::backdrop { background: rgba(10, 10, 10, .55); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .25rem; }
.sheet__head h2 { margin: 0; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1rem; cursor: pointer; }
.sheet__title { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--muted); }
.sheet__title--yes { color: var(--green); }
.sheet__title--no { color: var(--red); }
.availability__list { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 1.5rem; }
.name-chip { display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.name-chip--yes { background: #e3f3e7; border-color: #bfe3c8; color: #1f6b37; }
.name-chip--no { background: #fbeceb; border-color: #f0c9c4; color: var(--red); }
.pill--count { background: #e3f3e7; color: var(--green); }
.pill--todo { background: var(--red); color: #fff; }
.hero__next .hero__rsvp { margin-top: .4rem; color: var(--yellow); font-weight: 600; font-size: .85rem; }
.hero__next .hero__rsvp.is-open { color: #fff; background: var(--red); align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; }

/* ---------- Gastspelers ---------- */
.link-button { background: none; border: 0; padding: .4rem 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--red); cursor: pointer; }
.guest-add { display: flex; flex-direction: column; gap: .6rem; }
.guest-add[hidden] { display: none; }
.guest-add p { margin: 0; }
.guest-add__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.guest-add__actions { display: flex; justify-content: flex-end; gap: .5rem; }
.tag--guest { background: #efeee8; color: #555; }
.guest-turn { background: var(--yellow); color: var(--black); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; }
.guest-turn__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.guest-turn strong { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; line-height: 1.1; }
.vote-panel .btn--light { color: var(--ink); }

/* ---------- Supporters ---------- */
.supporter-badge { background: var(--black); }
.invite-cards { display: grid; grid-template-columns: 1fr; gap: 0; }
.tag--kind-speler { background: #fbeceb; color: var(--red); }
.tag--kind-supporter { background: #efeee8; color: #555; }
.vote-panel .btn--light + .btn--light { margin-top: 0; }

/* ---------- Na de match: sterren en foto's ---------- */
:root {
  --star-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9d5cc' d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E");
  --star-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2b01e' d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E");
}
.after-match h2 { margin-top: 0; }
#beoordeling { margin-top: 1rem; }
.rate-form { display: flex; flex-direction: column; gap: .9rem; }
.rate { border: 0; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .75rem; }
.rate__label { padding: 0; font-weight: 600; width: 100%; }
.rate__value { font-weight: 700; min-width: 2.2rem; color: var(--muted); }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { width: 22px; height: 44px; cursor: pointer; background: var(--star-off) 0 0 / 44px 44px no-repeat; }
.stars label.is-left { margin-left: 6px; }
.stars label.is-right { background-position: -22px 0; }
.stars input:checked ~ label { background-image: var(--star-on); }
.stars input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.rating-summary { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.rating-row { display: grid; grid-template-columns: 1fr auto 2.2rem; align-items: center; gap: .6rem; }
.rating-row__label { font-weight: 600; }
.rating-row__value { text-align: right; }
.stars-static { position: relative; width: 130px; height: 26px; background: var(--star-off) 0 0 / 26px 26px repeat-x; }
.stars-static::after { content: ''; position: absolute; inset: 0; width: var(--pct); background: var(--star-on) 0 0 / 26px 26px repeat-x; }
.gallery { margin-bottom: 1rem; }
.gallery__frame { position: relative; aspect-ratio: 4 / 3; background: var(--black); border-radius: 12px; overflow: hidden; touch-action: pan-y; }
.gallery__slide { margin: 0; width: 100%; height: 100%; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.gallery__nav--prev { left: 8px; }
.gallery__nav--next { right: 8px; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; color: var(--muted); font-size: .9rem; }
.gallery__meta { display: flex; align-items: center; gap: .25rem; }
.gallery__meta[hidden] { display: none; }
.gallery__meta form { margin: 0; }
.gallery__meta .link-danger { padding: .5rem; }
.photo-upload { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.photo-upload .btn { position: relative; }
.photo-upload__busy { grid-column: 1 / -1; margin: 0; text-align: center; }

/* ---------- Polls ---------- */
.nav-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--black);
  font-size: .68rem; font-weight: 700; line-height: 14px; text-align: center; box-sizing: border-box; }
.tabbar a { position: relative; }
.tabbar .nav-badge { top: 5px; right: calc(50% - 22px); }
.poll-card { display: flex; align-items: center; gap: .75rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem 1rem; text-decoration: none; color: inherit; min-height: 64px; }
.poll-card.is-open { border-left: 5px solid var(--red); }
.poll-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.poll-card__question { font-weight: 600; overflow-wrap: anywhere; }
.poll-card__arrow { color: var(--muted); font-size: 1.4rem; }
.poll-question { font-size: 1.5rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
.poll-results { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0 .5rem; }
div.poll-option { border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
div.poll-option.is-mine { border-color: var(--red); background: #fff7f5; }
.choice.poll-option > span { flex-direction: column; align-items: stretch; gap: .35rem; font-weight: 400; }
.poll-option__top { display: flex; justify-content: space-between; gap: .75rem; font-weight: 600; }
.poll-option__text { overflow-wrap: anywhere; }
.poll-option__bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.poll-option__bar > span { display: block; height: 100%; background: #c9c7bd; border-radius: 999px; }
.is-mine .poll-option__bar > span, .poll-option input:checked + span .poll-option__bar > span { background: var(--red); }
.poll-option__voters { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.poll-option__names { min-width: 0; }
.voter-stack { display: flex; flex: none; }
.voter-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: #fff; border: 2px solid #fff; display: grid; place-items: center; font-size: .65rem; font-weight: 700; overflow: hidden; }
.voter-avatar + .voter-avatar { margin-left: -8px; }
.voter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.poll-comment { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .7rem 1rem; }
.poll-actions { margin-top: 1rem; }
.poll-comment p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.option-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.option-list legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.option-list .btn { align-self: flex-start; }
.switch-row { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.switch-row input { width: 24px; height: 24px; accent-color: var(--red); flex: none; }
.switch-row > span { display: flex; flex-direction: column; }

/* ---------- Penalty koning ---------- */
.penalty-cta { display: flex; align-items: center; gap: .8rem; background: linear-gradient(120deg, #1f5f2a, #2f8a3c); color: #fff; border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.penalty-cta__ball { font-size: 2rem; animation: wiggle 2.4s ease-in-out infinite; }
.penalty-cta__text { flex: 1; display: flex; flex-direction: column; font-size: .88rem; color: #dcefdc; }
.penalty-cta__text strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; color: #fff; line-height: 1.1; }
.penalty-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.penalty-head h1 { margin: 0; }
.penalty-score { display: flex; align-items: baseline; gap: .3rem; background: var(--black); color: var(--yellow); border-radius: 12px; padding: .3rem .8rem; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.penalty-score small { font-size: .8rem; color: #ccc; text-transform: uppercase; letter-spacing: .06em; }
.penalty-score.is-bump { animation: tally-bump .5s ease-out; }
.penalty-game { position: relative; max-width: 520px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #151515; }
.pk { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.pk-fan { animation: fan-bob 1.6s ease-in-out infinite; }
.pk-crowd.is-cheering .pk-fan { animation: fan-jump .32s ease-in-out infinite alternate; }
@keyframes fan-bob { 50% { transform: translateY(-1.5px); } }
@keyframes fan-jump { to { transform: translateY(-6px); } }
.pk-flag { transform-box: fill-box; transform-origin: left center; animation: flag-wave 1.1s ease-in-out infinite alternate; }
@keyframes flag-wave { from { transform: skewY(-7deg) scaleX(.92); } to { transform: skewY(5deg) scaleX(1); } }
.pk-ads { animation: ads-scroll 14s linear infinite; }
.pk-ads__text { font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .12em; fill: #e3df00; }
@keyframes ads-scroll { to { transform: translateX(-180px); } }
.pk-keeper { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.25, .9, .35, 1); animation: keeper-ready 1s ease-in-out infinite alternate; }
.pk-keeper__nr { font-family: var(--font-display); font-weight: 800; font-size: 14px; fill: #fff; }
@keyframes keeper-ready { to { transform: translateX(4px); } }
.pk-keeper[class*="dive-"] { animation: none; }
.pk-keeper.dive-lb { transform: translate(-70px, -26px) rotate(-62deg); }
.pk-keeper.dive-rb { transform: translate(70px, -26px) rotate(62deg); }
.pk-keeper.dive-lo { transform: translate(-66px, 22px) rotate(-88deg); }
.pk-keeper.dive-ro { transform: translate(66px, 22px) rotate(88deg); }
.pk-ball { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.15, .65, .3, 1); }
#pk-shadow { transition: opacity .2s; }
#pk-net-group { transform-box: fill-box; transform-origin: center top; }
#pk-net-group.is-hit { animation: net-shake .5s ease-out; }
@keyframes net-shake { 30% { transform: scale(1.03, 1.06); } 60% { transform: scale(.99, .98); } }
.pk-target { cursor: pointer; outline: none; }
.pk-target__hit { fill: transparent; }
.pk-target__ring { fill: rgba(227, 223, 0, .18); stroke: #e3df00; stroke-width: 2.5; stroke-dasharray: 5 4; transform-box: fill-box; transform-origin: center; animation: target-pulse 1.4s ease-in-out infinite; }
.pk-target:hover .pk-target__ring, .pk-target:focus-visible .pk-target__ring { fill: rgba(227, 223, 0, .45); }
@keyframes target-pulse { 50% { transform: scale(1.15); } }
.penalty-game.is-over .pk-targets { display: none; }
.pk-banner { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; letter-spacing: .04em; pointer-events: none; opacity: 0; text-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
.pk-banner.is-goal, .pk-banner.is-save, .pk-banner.is-error { opacity: 1; animation: banner-pop .45s cubic-bezier(.2, 1.5, .4, 1); }
.pk-banner.is-goal { color: var(--yellow); }
.pk-banner.is-save { color: #fff; -webkit-text-stroke: 2px var(--red); }
.pk-banner.is-error { font-family: var(--font); font-size: 1rem; font-weight: 600; color: #fff; background: rgba(184, 66, 51, .9); padding: .5rem; top: auto; bottom: 0; }
@keyframes banner-pop { from { transform: scale(.3); opacity: 0; } }
.pk-hint { text-align: center; color: var(--muted); font-weight: 600; margin: .75rem 0; }
.pk-end { margin-top: 1rem; text-align: center; }
.pk-end h2 { margin-top: 0; }
.pk-end .actions { justify-content: center; }
.rank-row__sub { grid-column: 2 / -1; }
@media (prefers-reduced-motion: reduce) {
  .pk-fan, .pk-flag, .pk-ads, .pk-target__ring, .pk-keeper { animation: none !important; }
}

/* ---------- Looks: textuur, banen, LED, opstelling, kaarten, overgangen ---------- */
/* 1. Achtergrond "avondmatch": donker stadion met twee lichtbundels en witte veldlijnen.
   Een vaste laag achter alles, zodat ze ook op de iPhone blijft staan bij scrollen. */
body:not(.auth) { background-color: #121212; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 35% at 15% -5%, rgba(255, 250, 210, .28), transparent 70%),
    radial-gradient(ellipse 60% 35% at 85% -5%, rgba(255, 250, 210, .28), transparent 70%),
    conic-gradient(from 160deg at 15% -5%, transparent 0 8deg, rgba(255, 250, 210, .07) 8deg 22deg, transparent 22deg),
    conic-gradient(from 178deg at 85% -5%, transparent 0 8deg, rgba(255, 250, 210, .07) 8deg 22deg, transparent 22deg),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.6' vector-effect='non-scaling-stroke'%3E%3Crect x='10' y='10' width='180' height='380' rx='2'/%3E%3Cpath d='M10 200H190M32.5 10A54 54 0 0 0 86.5 64H113.5A54 54 0 0 0 167.5 10M32.5 390A54 54 0 0 1 86.5 336H113.5A54 54 0 0 1 167.5 390'/%3E%3Ccircle cx='100' cy='200' r='30'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.14'%3E%3Ccircle cx='100' cy='200' r='2.2'/%3E%3Ccircle cx='100' cy='64' r='1.8'/%3E%3Ccircle cx='100' cy='336' r='1.8'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(ellipse 120% 70% at 50% 110%, #2a1512, transparent 70%),
    #121212; }

/* Alles wat rechtstreeks op de donkere achtergrond staat (niet in een fiche), wordt licht. */
.container > h1, .page-head h1, .section-title { color: #fff; }
.container > .muted, .container > p, .container > .small, .page-head .muted, .mvp-line { color: #bdbdbd; }
.container > p a, .container > .muted a { color: #ffb3a6; }
.back { color: #ff9a8a; }
.segmented { background: rgba(255, 255, 255, .1); }
.segmented a { color: #cfcfcf; }
.chip-tabs a { border-color: transparent; }
.chip-tabs a.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.savebar { background: linear-gradient(to top, #121212 70%, transparent); }

/* 2. Geen banen meer in de fiches; de stripes blijven bij de titels. */
.penalty-cta { position: relative; overflow: hidden; }

/* 7. Vormcurve */
.form-strip { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: -.2rem 0 .7rem; }
.form-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .95rem; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.form-dot--W { background: var(--green); }
.form-dot--G { background: #8a887f; }
.form-dot--V { background: var(--red); }
.form-dot:last-child { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* 12. Matchdag */
.pill--today { background: var(--yellow); color: var(--black); animation: today-pulse 1.4s ease-in-out infinite; text-transform: uppercase; letter-spacing: .05em; }
@keyframes today-pulse { 50% { box-shadow: 0 0 0 6px rgba(227, 223, 0, .35); } }
.match-card.is-today { box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.today-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: .4rem; vertical-align: middle; animation: today-pulse 1.4s ease-in-out infinite; }

/* 14. Scorebord met klapcijfers: elk getal op een tegel met scharnier, die bij het openen omklapt. */
.scoreboard { background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, .14), transparent 60%), var(--black); }
.scoreboard__score { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 0; color: #fff; }
.flips { display: flex; align-items: center; gap: .3rem; perspective: 300px; }
.flip { position: relative; min-width: 1.1em; padding: .1em .14em .06em; border-radius: 9px; text-align: center; line-height: 1; color: #fff;
  background: linear-gradient(180deg, #353535 0 50%, #262626 50% 100%);
  box-shadow: 0 3px 0 #000, 0 8px 16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform-origin: 50% 50%; animation: flip-in .8s cubic-bezier(.2, .9, .3, 1.15) both; }
.flip::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #0a0a0a; box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.flip:last-child { animation-delay: .18s; }
.flip--vs { font-size: .55em; padding: .2em .35em .16em; letter-spacing: .04em; }
.flip-sep { color: var(--yellow); font-size: .6em; }
@keyframes flip-in { from { transform: rotateX(-110deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.scoreboard__result { margin-top: .8rem; }
.result-badge { font-family: var(--font); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; padding: .35rem .7rem; border-radius: 999px; background: #3a3a3a; color: #fff; }
.result-badge--W { background: var(--green); }
.result-badge--V { background: var(--red); }
.result-badge--G { background: #6b6b6b; }

/* 15. Opstelling op een veld */
.lineup { position: relative; border-radius: var(--radius); padding: 1.6rem .5rem 1.2rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 1.1rem; overflow: hidden;
  background: repeating-linear-gradient(0deg, #3f9142 0 34px, #47a04a 34px 68px); box-shadow: var(--shadow); }
.lineup::before { content: ''; position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .75); border-radius: 6px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .75)) center / 100% 2px no-repeat; }
.lineup::after { content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; pointer-events: none; }
.lineup__row { position: relative; z-index: 1; display: flex; justify-content: space-evenly; gap: .25rem; }
.lineup__player { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 84px; text-decoration: none; color: #fff; text-align: center; }
.lineup__avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--red); border: 3px solid #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.lineup__avatar .skeleton, .lineup__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.lineup__player.is-mvp .lineup__avatar { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(227, 223, 0, .45), 0 4px 14px rgba(0, 0, 0, .4); }
.lineup__crown { position: absolute; top: -17px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 1.1rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.lineup__name { font-weight: 700; font-size: .85rem; background: rgba(21, 21, 21, .75); padding: .05rem .45rem; border-radius: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineup__stats { font-size: .75rem; font-weight: 600; min-height: 1.1em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lineup__gg { background: #e9f0ff; color: #2c4a8a; border-radius: 4px; padding: 0 .3rem; font-size: .65rem; text-shadow: none; }

/* 16. Spelerskaarten (gouden kaart voor de laatste MVP) */
.gold-note { margin: -.3rem 0 .8rem; }
.fut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.fut { position: relative; border-radius: 16px; padding: .7rem .7rem .8rem; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #262626, #0e0e0e);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); border: 2px solid #333; display: flex; flex-direction: column; align-items: center; }
.fut__link { position: absolute; inset: 0; z-index: 2; }
.fut::after { content: ''; position: absolute; top: 0; right: 0; width: 90px; height: 90px; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 45%, var(--red) 45% 62%, var(--yellow) 62% 67%, var(--red) 67% 78%, transparent 78%);
  -webkit-mask: linear-gradient(225deg, #000 35%, transparent 72%); mask: linear-gradient(225deg, #000 35%, transparent 72%); }
.fut__lead { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.fut__top { align-self: stretch; display: flex; justify-content: space-between; align-items: flex-start; }
.fut__number { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.fut__badge { background: var(--black); color: var(--yellow); font-weight: 800; font-size: .65rem; letter-spacing: .08em; padding: .15rem .45rem; border-radius: 6px; }
.fut__photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin-top: -1.2rem; border: 3px solid rgba(255, 255, 255, .85); background: #333; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.fut__photo img { width: 100%; height: 100%; object-fit: cover; }
.fut__initial { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: rgba(255, 255, 255, .85); }
.fut__name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; margin-top: .45rem; line-height: 1.05; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fut__stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: .5rem; padding-top: .45rem; border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; }
.fut__stats span { display: flex; flex-direction: column; font-size: .6rem; font-weight: 700; letter-spacing: .06em; opacity: .8; }
.fut__stats strong { font-family: var(--font-display); font-size: 1.15rem; opacity: 1; letter-spacing: 0; }
.fut__edit { position: absolute; z-index: 3; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: inherit; text-decoration: none; font-size: .9rem; }
.fut.is-inactive { filter: grayscale(1); opacity: .55; }
.fut--gold { color: #3b2a00; border-color: #f7dc6f;
  background: linear-gradient(150deg, #fff3b0, #e9c046 45%, #c8961c 70%, #f3d36b);
  box-shadow: 0 8px 26px rgba(201, 150, 28, .45); }
.fut--gold::before { content: ''; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); animation: gold-shine 3.2s ease-in-out infinite; }
.fut--gold .fut__photo { border-color: #fff7c2; }
.fut--gold .fut__stats { border-top-color: rgba(59, 42, 0, .25); }
.fut--gold .fut__edit { background: rgba(59, 42, 0, .12); }
@keyframes gold-shine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }

/* 20. Zachte overgang tussen pagina's (browsers die het niet kennen, slaan het over). */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
/* De oude pagina blijft staan en de nieuwe vaagt erover in: nooit een moment waarop
   beide half doorzichtig zijn en de witte achtergrond erdoor schijnt. */
::view-transition { background: var(--bg); }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-in .22s ease-out both; mix-blend-mode: normal; }
::view-transition-group(topbar), ::view-transition-group(tabbar), ::view-transition-old(topbar), ::view-transition-old(tabbar),
::view-transition-new(topbar), ::view-transition-new(tabbar) { animation: none; }
@keyframes vt-in { from { opacity: 0; } }

/* 21. Skeleton loaders */
.skeleton { background: linear-gradient(100deg, #e6e4dc 30%, #f7f6f1 50%, #e6e4dc 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton--dark { background-image: linear-gradient(100deg, #1d1d1d 30%, #2e2e2e 50%, #1d1d1d 70%); }
.skeleton img { opacity: 0; transition: opacity .35s; }
.skeleton.is-loaded { animation: none; background: none; }
.skeleton.is-loaded img { opacity: 1; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.photo-upload__busy { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.photo-upload__busy[hidden] { display: none; }
.skeleton--bar { display: block; width: 100%; height: 120px; border-radius: 12px; }

/* 23. Confetti */
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }

/* 26. Trek om te vernieuwen */
html, body { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; z-index: 60; width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); display: grid; place-items: center; pointer-events: none; opacity: 0; transform: translate(-50%, -50px); transition: opacity .2s; }
.ptr__ball { font-size: 1.5rem; line-height: 1; display: block; }
.ptr.is-ready { box-shadow: 0 0 0 3px var(--yellow), 0 4px 14px rgba(0, 0, 0, .25); }
.ptr.is-loading .ptr__ball { animation: ptr-spin .6s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .fut-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .fut--gold::before, .skeleton, .pill--today, .today-dot, .flip { animation: none !important; }
}

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; min-height: 46px; padding: .6rem 1.1rem; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost { background: transparent; color: #fff; border-color: #444; }
.btn--sm { min-height: 38px; padding: .35rem .8rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Formulieren ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.form .field { margin-bottom: 0; }
.field > div { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field:has(input[type=checkbox]) > div { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .6rem; }
.field input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); }
.field .helptext, .field [id$="_helptext"] { color: var(--muted); font-size: .8rem; }
.field [id$="_helptext"] ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.field .errorlist { list-style: none; margin: 0; padding: 0; color: var(--red); font-size: .85rem; }
/* 16px voorkomt dat iPhones inzoomen bij het tikken in een veld. */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184, 66, 51, .15); }
.field--error input { border-color: var(--red); }
.checkbox { display: flex; align-items: center; gap: .6rem; font-size: .95rem; cursor: pointer; min-height: 44px; }
.checkbox input, td input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; }
.season-picker select { min-height: 40px; width: auto; font-weight: 600; background-color: var(--card); }

/* Getalvakjes in een stepper: smal en zonder eigen rand (wint van de algemene invoerstijl hierboven). */
.stepper input[type=number] { width: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.stepper--lg input[type=number] { width: 56px; }
.stepper--sm input[type=number] { width: 30px; }

/* ---------- Meldingen ---------- */
.messages { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.message { padding: .7rem 1rem; border-radius: 10px; background: #eef6ee; border-left: 4px solid var(--green); font-size: .95rem; }
.message--error { background: #fbeceb; border-left-color: var(--red); }
.message--warning { background: #fdfbe0; border-left-color: #b3a800; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: #eee; color: #333; }
.badge--admin { background: var(--red); color: #fff; }
.badge--beheerder { background: var(--yellow); color: var(--black); }
.badge--speler { background: #e8e8e8; color: #222; }
.badge--supporter { background: #dfe9f3; color: #234; }

/* ---------- Tabellen (op gsm als kaarten) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table thead { display: none; }
.table tr { display: block; border-bottom: 2px solid var(--line); padding: .6rem 0; }
.table td { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; justify-items: end; gap: .75rem; padding: .3rem 0; text-align: right; overflow-wrap: anywhere; }
.table td[data-label]::before { justify-self: start; }
.table td[data-label="E-mail"] { font-size: .85rem; }
.table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .85rem; }
.table td:not([data-label]) { display: block; }
.table td select { width: auto; min-width: 150px; max-width: 100%; min-height: 44px; }
.table td .btn { width: 100%; margin-top: .25rem; }

/* ---------- Inlogpagina's ---------- */
body.auth { min-height: 100vh; background: var(--black); background-image: linear-gradient(160deg, var(--black) 0 40%, var(--red) 40% 72%, var(--yellow) 72% 76%, var(--red) 76%); }
.auth__wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4.5rem 16px 2rem; }
.auth__card { background: var(--card); width: 100%; max-width: 420px; border-radius: 18px; padding: 1.75rem 1.25rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.auth__logo { display: block; height: 96px; margin: -4.5rem auto 1rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.auth__title { text-align: center; font-size: 1.8rem; }
.auth__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; font-size: .9rem; }
.auth__links a { padding: .5rem 0; }

/* ---------- Grotere schermen ---------- */
@media (min-width: 760px) {
  h1 { font-size: 2.2rem; }
  .tabbar { display: none; }
  .savebar { bottom: 0; }
  .container { padding-bottom: 3rem; }
  body.has-savebar .container { padding-bottom: 7rem; }
  /* Pc: logo links, menu in het midden, gebruiker rechts, over de volle breedte. */
  .topbar__inner { max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; padding-inline: 32px; }
  .brand { justify-self: start; }
  .nav { display: flex; gap: .25rem; justify-self: center; }
  .nav a { position: relative; color: #ddd; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .92rem; }
  .nav a:hover { background: #2a2a2a; color: #fff; }
  .nav a.is-active { background: var(--red); color: #fff; }
  .usermenu { margin-left: 0; justify-self: end; }
  .usermenu__name { display: inline; }
  .brand__logo { height: 42px; }
  .brand__name { font-size: 1.7rem; }
  .brand__sub { font-size: .7rem; }
  :root { --stripes: linear-gradient(115deg, transparent 0 66%, var(--red) 66% 72%, var(--yellow) 72% 72.8%, var(--red) 72.8% 79%, transparent 79%); }
  .hero { padding: 2rem; }
  .hero__title { font-size: 3rem; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .vote-grid { grid-template-columns: repeat(4, 1fr); }
  .records { grid-template-columns: repeat(3, 1fr); }
  .tools { grid-template-columns: 1fr 1fr; }
  .invite-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sheet { max-width: 520px; margin: auto; border-radius: 20px; }
  .role-picker { grid-template-columns: repeat(4, 1fr); }
  .chart { height: 300px; }
  .segmented { max-width: 360px; }
  .actions .btn { flex: 0 0 auto; }
  .card { padding: 1.25rem 1.5rem; }
  .scoreboard { padding: 1.5rem; }
  .scoreboard__team { font-size: 1.6rem; }
  .scoreboard__score { font-size: 3.5rem; }
  .player-stat { display: flex; align-items: center; gap: 1rem; padding: .25rem 1rem; }
  .player-stat__toggle { flex: 1; }
  .player-stat__counters { padding: .5rem 0; }
  .player-stat.is-present .player-stat__counters { display: flex; }
  .bar-row { grid-template-columns: 10rem 1fr 2.5rem; }
  .table thead { display: table-header-group; }
  .table tr { display: table-row; border: 0; padding: 0; }
  .table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .5rem; border-bottom: 2px solid var(--line); }
  .table td, .table td:not([data-label]) { text-align: left; display: table-cell; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .table td[data-label]::before { content: none; }
  .table td select { max-width: none; min-width: 140px; }
  .table td .btn { width: auto; margin: 0; }
  .auth__card { padding: 2rem 1.75rem; }
}

/* Inlogpagina: één groot verloop, niet de getegelde textuur. */
body.auth { background-size: cover; background-repeat: no-repeat; background-attachment: scroll; }
body.auth::before { display: none; }

/* ---------- Aanwezigheid: misschien, tellers en eigen antwoord op de matchkaart ---------- */
.availability__answer { grid-template-columns: repeat(3, 1fr); }
.answer { padding: 0 .3rem; font-size: .92rem; white-space: nowrap; }
.answer--maybe.is-chosen { background: #fbf8d6; border-color: #c9b800; color: #7a6d00; }
.sheet__title--maybe { color: #9a8a00; }
.name-chip--maybe { background: #fbf8d6; border-color: #ebe39a; color: #7a6d00; }
.match-card { gap: .7rem; border: 2px solid transparent; padding: calc(.75rem - 2px) calc(1rem - 2px); }
.match-card--aanwezig { border-color: var(--green); }
.match-card--misschien { border-color: #d6c600; }
.match-card--afwezig { border-color: var(--red); }
.match-card__counts { flex: none; display: flex; flex-direction: column; gap: 3px; }
.avail-count { display: grid; grid-template-columns: 1em 1.6em; align-items: center; gap: .15rem; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.todo-pen { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(184, 66, 51, .35); }
.todo-pen svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avail-count i, .avail-count b { font-style: normal; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.avail-count--yes { background: #e3f3e7; color: var(--green); }
.avail-count--maybe { background: #fbf8d6; color: #7a6d00; }
.avail-count--no { background: #fbeceb; color: var(--red); }
/* Zwarte blokken krijgen een fijne lichte rand, zodat ze niet opgaan in de donkere achtergrond. */
.hero, .scoreboard, .vote-panel, .profile, .fut:not(.fut--gold) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px rgba(0, 0, 0, .45); }
.section-title .muted { color: #bdbdbd; }
.container > .danger-zone .link-danger, .section-head > .link-button { color: #ff9a8a; }
