/* Trainingsapp, stijl Nacht: donker, rustig, precies. */
:root {
  color-scheme: dark;
  --bg: #0E0E0C;
  --s1: #181816;
  --s2: #222220;
  --s3: #2A2A27;
  --s4: #33332F;
  --line: rgba(238, 235, 228, 0.08);
  --line2: rgba(238, 235, 228, 0.12);
  --line3: rgba(238, 235, 228, 0.18);
  --text: #EEEBE4;
  --soft: #CFCBC2;
  --muted: #A29E94;
  --accent: #FF7A4D;
  --accent-text: #FF8A60;
  --on-accent: #170F0B;
  --lime: #C6E86A;
  --blue: #4A9BE8;
  --pink: #D772C4;
  --amber: #F2C14E;
  --red: #FF6B5B;
  --grey: #6B6860;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sans: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --top: max(env(safe-area-inset-top), 14px);
  --bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #FFA584; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Schermen ---------- */
#app { min-height: 100vh; }
.screen {
  max-width: 480px; margin: 0 auto;
  padding: calc(var(--top) + 30px) 20px calc(136px + var(--bottom));
  display: flex; flex-direction: column; gap: 24px;
  animation: in 0.22s ease-out;
}
.screen.tight { gap: 20px; }
.screen.no-nav { padding-bottom: calc(110px + var(--bottom)); }
@keyframes in { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.h1 { margin: 0; font-size: 40px; line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.lead { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.lead strong { color: var(--text); font-weight: 500; }
.small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ---------- Kop ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .right { display: flex; align-items: center; gap: 8px; }
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-head .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-head .t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--s1); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { background: var(--s2); }
.avatar { border: 1px solid rgba(238, 235, 228, 0.14); font-size: 15px; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--s1); font-size: 12px; color: var(--muted); border: 0; white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

/* ---------- Kaarten ---------- */
.card { background: var(--s1); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.big { border-radius: 30px; padding: 22px 20px 20px; gap: 18px; border: 1px solid rgba(238, 235, 228, 0.06); }
.card.outline { background: transparent; border: 1px solid var(--line2); }
.card.flat { padding: 0; gap: 0; overflow: hidden; }
.kind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.kind.s { font-size: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { height: 28px; padding: 0 11px; border-radius: 999px; background: var(--s2); display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; }
.session-title { margin: 0; font-size: 32px; line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.ex-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ex-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ex-list .n { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 24px; }
.ex-list .name { flex: 1; font-size: 15px; font-weight: 500; }
.ex-list .dose { font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- Knoppen ---------- */
.btn {
  height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; width: 100%;
}
.btn:hover { color: var(--on-accent); filter: brightness(1.04); }
.btn:active { transform: scale(0.99); }
.btn.secondary { background: var(--s2); color: var(--text); }
.btn.outline { background: transparent; border: 1px solid var(--line3); color: var(--text); font-weight: 500; }
.btn.light { background: var(--text); color: var(--bg); }
.btn.sm { height: 48px; border-radius: 15px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-pill {
  height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--s2); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn-pill.light { background: var(--text); color: var(--bg); font-weight: 600; }
.btn-pill.outline { background: transparent; border: 1px solid var(--line3); color: var(--soft); }
.link-btn { border: 0; background: transparent; color: var(--accent-text); font-size: 14px; font-weight: 500; height: 44px; padding: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Week ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  height: 68px; border-radius: 18px; background: var(--s1); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.day .d { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.day .n { font-size: 18px; font-weight: 500; }
.day.today { background: var(--text); color: var(--bg); }
.day.today .d { color: var(--bg); font-weight: 600; }
.day.today .n { font-weight: 600; }
.day .mark { height: 8px; display: flex; align-items: center; }
.day .check { width: 12px; height: 12px; }

/* ---------- Lijsten ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 22px;
  background: var(--s1); color: var(--text); border: 0; text-align: left; width: 100%;
}
.list-item:hover { color: var(--text); background: #1c1c1a; }
.tile { flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.list-item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-item strong { font-size: 15px; font-weight: 600; }
.list-item .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); }
.rows { display: flex; flex-direction: column; }
.rows > * { border-top: 1px solid var(--line); }
.rows > *:first-child { border-top: 0; }

/* ---------- Check-in ---------- */
.body-list { display: flex; flex-direction: column; gap: 1px; border-radius: 24px; background: rgba(238, 235, 228, 0.07); overflow: hidden; }
.body-row { display: flex; align-items: center; gap: 14px; padding: 14px 12px 14px 18px; background: var(--s1); }
.body-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.body-row .v { width: 30px; text-align: right; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.track { height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; display: flex; }
.track > span { height: 100%; border-radius: 999px; transition: width 0.2s; }
.steppers { display: flex; gap: 6px; }
.step { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--s2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.step:active { background: var(--s3); }

/* ---------- Keuzerijen ---------- */
.pick { display: grid; gap: 6px; }
.pick.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pick.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pick.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick button {
  height: 44px; border-radius: 14px; border: 0; background: var(--s2); color: var(--text); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pick button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.pick.pain button[aria-pressed="true"] { color: var(--bg); }
.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 16px; background: var(--s1); }
.seg button { height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; padding: 0 12px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #2C2C29; color: var(--text); font-weight: 600; }
.seg.dark { background: var(--bg); border-radius: 14px; }
.seg.dark button { border-radius: 11px; font-size: 13px; }

/* ---------- Formulieren ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line2);
  background: var(--bg); color: var(--text); font-size: 16px; outline: 0;
}
.textarea { height: auto; padding: 14px 16px; resize: none; line-height: 1.4; }
.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% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(255, 122, 77, 0.6); }
::placeholder { color: #8E8A81; }
input[type=date] { color-scheme: dark; }
.form-error { margin: 0; font-size: 14px; color: var(--red); }

/* ---------- Navigatie ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + var(--bottom));
  width: min(452px, calc(100% - 28px)); height: 72px; padding: 0 8px; z-index: 20;
  background: rgba(28, 28, 26, 0.94); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav a { width: 62px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a.coach { width: 56px; height: 56px; border-radius: 20px; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px rgba(255, 122, 77, 0.28); }
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 20px calc(16px + var(--bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.bottom-bar .inner { max-width: 440px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- Onderblad (sheet) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.62); display: flex; flex-direction: column; justify-content: flex-end; animation: fade 0.18s ease-out; }
.sheet {
  max-width: 480px; width: 100%; margin: 0 auto; max-height: 92vh; overflow-y: auto;
  padding: 12px 20px calc(28px + var(--bottom)); border-radius: 30px 30px 0 0;
  background: #1C1C1A; border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 18px;
  animation: up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet > * { flex-shrink: 0; }
.sheet .grip { align-self: center; width: 40px; height: 4px; border-radius: 999px; background: #3A3A36; }
.sheet .s2 { background: var(--s3); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0.6; } }

/* ---------- Melding ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(104px + var(--bottom)); transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); animation: up 0.2s ease-out;
}
.toast.error { background: var(--red); color: #1a0806; }

/* ---------- Trainen ---------- */
.segments { display: grid; gap: 5px; }
.segments span { height: 4px; border-radius: 999px; background: var(--s3); }
.sets { border-radius: 24px; background: var(--s1); overflow: hidden; display: flex; flex-direction: column; }
.set-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 56px 56px 40px; align-items: center; gap: 8px;
  padding: 6px 14px 6px 18px; min-height: 46px; border: 0; border-top: 1px solid rgba(238, 235, 228, 0.06);
  background: transparent; color: var(--text); text-align: left; width: 100%;
}
.set-row.head { min-height: 0; padding: 12px 14px 8px 18px; border-top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.set-row.active { background: #22221F; }
.set-row .c { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.set-row .c.done { background: var(--accent); color: var(--on-accent); }
.set-row .c.now { border: 2px solid var(--accent); }
.set-row .c.todo { border: 1.5px solid #3A3A36; }
.editor { border-radius: 26px; border: 1px solid var(--line2); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.stepper-big { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stepper-big .val { display: flex; align-items: baseline; gap: 3px; }
.stepper-big .val b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.rest { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 26px; background: var(--accent); color: var(--on-accent); }
.rest .t { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.rest button { height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--on-accent); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.hold { display: flex; align-items: center; gap: 16px; }

/* ---------- Coach ---------- */
.chat { display: flex; flex-direction: column; gap: 18px; }
.msg-coach { display: flex; flex-direction: column; gap: 6px; max-width: 340px; }
.msg-coach .who { font-size: 12px; font-weight: 600; color: var(--accent-text); }
.msg-coach p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; text-wrap: pretty; }
.msg-me { align-self: flex-end; max-width: 300px; padding: 12px 16px; border-radius: 22px 22px 6px 22px; background: #26261F; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.proposal { border-radius: 24px; background: var(--s1); border: 1px solid rgba(255, 122, 77, 0.45); overflow: hidden; }
.proposal.done { border-color: rgba(198, 232, 106, 0.35); }
.proposal.off { border-color: var(--line2); }
.proposal ol { list-style: none; margin: 0; padding: 0 18px; }
.proposal li { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.strike { color: var(--muted); text-decoration: line-through; }
.typing { display: flex; gap: 5px; padding: 6px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px 0 calc(14px + var(--bottom));
}
.composer .inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.composer .hscroll { margin: 0; }
.composer .line { display: flex; align-items: flex-end; gap: 8px; padding: 0 20px; }
.composer textarea {
  flex: 1; min-width: 0; min-height: 52px; max-height: 140px; padding: 15px 18px; border-radius: 26px; border: 0;
  background: var(--s1); color: var(--text); font-size: 16px; line-height: 1.4; resize: none; outline: 0;
}
.send { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.send:disabled { opacity: 0.4; }

/* ---------- Grafieken ---------- */
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .hit { position: absolute; inset: 0; touch-action: pan-y; }
.bars { position: relative; height: 112px; border-bottom: 1px solid rgba(238, 235, 228, 0.14); }
.bars .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; }
.bars .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars .col span { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.empty { padding: 18px; border-radius: 20px; border: 1px dashed var(--line2); color: var(--muted); font-size: 14px; line-height: 1.45; text-align: center; }

/* ---------- Aanmelden ---------- */
.login { min-height: 100vh; max-width: 420px; margin: 0 auto; padding: calc(var(--top) + 80px) 24px 40px; display: flex; flex-direction: column; gap: 28px; }
.logo { width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }

@media (min-width: 700px) {
  body { background: radial-gradient(circle at 50% -20%, #1a1a17 0%, var(--bg) 60%); }
}

/* ---------- Mini-timer (loopt door op andere schermen) ---------- */
.mini-timer {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(102px + var(--bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(28, 28, 26, 0.96); border: 1px solid var(--line2); color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); font-size: 14px; font-weight: 600; max-width: calc(100% - 40px);
}
.mini-timer[hidden] { display: none; }
.mini-timer .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.mini-timer .dot.done { background: var(--lime); }
.mini-timer .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-timer .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--soft); }

/* ---------- Je week: ringen per sport ---------- */
.week-card { position: relative; overflow: hidden; color: var(--text); gap: 16px; }
.week-card:hover { color: var(--text); }
.week-card.gehaald, .feest-week.gehaald { box-shadow: inset 0 0 0 1px rgba(198, 232, 106, 0.32); }
.week-card.gehaald::before, .feest-week.gehaald::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, rgba(198, 232, 106, 0.16), transparent 65%);
}
.week-card.gehaald .week-title, .feest-week.gehaald .week-title { color: var(--lime); }
.week-main { position: relative; display: flex; align-items: center; gap: 18px; }
.week-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.week-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.week-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.week-row b { color: var(--text); font-weight: 600; }
.week-row .plus { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; animation: pop 0.5s 1.1s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.rings { position: relative; flex: none; display: flex; }
.rings svg { display: block; }
.rings circle.v { transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rings .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rings .mid b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.rings .mid small { margin-top: 3px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rings .mid .ok { color: var(--lime); display: flex; }
.rings .mid.pop { animation: pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.streak {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px;
  background: rgba(242, 193, 78, 0.12); color: #F2C14E; font-size: 12px; font-weight: 600; white-space: nowrap;
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* Kleine streepjes per tegel: hoeveel van je weekminimum je al deed. */
.pips { display: flex; gap: 3px; margin-top: 4px; }
.pips i { width: 14px; height: 4px; border-radius: 2px; background: var(--s3); }

/* ---------- Doelen ---------- */
.goal-bar { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--s3); }
.goal-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0; min-width: 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(198, 232, 106, 0.45), var(--lime)); box-shadow: 0 0 14px rgba(198, 232, 106, 0.3);
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.goal-bar .tick { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(14, 14, 12, 0.55); }
.goal-bar.small { height: 6px; }
.goal-pct { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--lime); line-height: 1; }

/* ---------- Feestscherm na een training ---------- */
.feest {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 58%), var(--bg);
  animation: fade 0.2s ease-out;
}
.feest.uit { opacity: 0; transition: opacity 0.2s ease-in; }
.feest-in {
  max-width: 480px; margin: 0 auto; padding: calc(var(--top) + 34px) 20px calc(118px + var(--bottom));
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.feest-in > * { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.feest-in > :nth-child(2) { animation-delay: 0.25s; }
.feest-in > :nth-child(3) { animation-delay: 0.4s; }
.feest-in > :nth-child(4) { animation-delay: 0.5s; }
.feest-in > :nth-child(5) { animation-delay: 0.6s; }
.feest-in > :nth-child(n+6) { animation-delay: 0.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.feest-badge { width: 132px; height: 132px; animation: badge 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both !important; }
.feest-badge .ring { stroke-dashoffset: var(--len); animation: draw 0.8s 0.15s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.feest-badge .vink { stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw-vink 0.4s 0.7s ease-out forwards; }
@keyframes badge { from { transform: scale(0.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-vink { to { stroke-dashoffset: 0; } }
.feest-stats { width: 100%; display: grid; gap: 8px; }
.feest-stats > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px; border-radius: 20px; background: var(--s1); }
.feest-stats b { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }
.feest-records { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.feest-record {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
  background: rgba(242, 193, 78, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.22);
}
.feest-record .medal { flex: none; width: 40px; height: 40px; border-radius: 14px; background: rgba(242, 193, 78, 0.16); color: #F2C14E; display: flex; align-items: center; justify-content: center; }
.feest-card { position: relative; overflow: hidden; width: 100%; text-align: left; }
.feest-week.net .week-title { animation: pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
.feest-vorm { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--s1); color: var(--text); }
.feest-vorm:hover { color: var(--text); }
.feest-vorm b { font-size: 17px; font-weight: 600; }
.feest-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 20px calc(16px + var(--bottom));
  background: linear-gradient(rgba(14, 14, 12, 0), var(--bg) 40%);
}
.feest-bar .btn { max-width: 440px; margin: 0 auto; }
.confetti { position: fixed; z-index: 70; pointer-events: none; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .feest, .feest-in > *, .feest-badge, .feest-badge .ring, .feest-badge .vink, .week-row .plus, .rings .mid.pop, .feest-week.net .week-title { animation: none !important; }
  .feest-badge .ring, .feest-badge .vink { stroke-dashoffset: 0; }
  .rings circle.v, .goal-bar .fill { transition: none; }
}
