/* 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.5rem 0 .6rem; font-size: 1.15rem; color: var(--muted); }
.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-template-columns: 1fr 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__close { margin-top: 1.25rem; min-width: 220px; animation: rise .5s 2.4s ease-out both; }

@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); }
.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; }

/* ---------- 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 { 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; }
  .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; }
}
