/* ==========================================================================
   Adventkalender – huisstijl volgens de VodafoneZiggo Brand Guide 2026
   Wit als basis, merkkleuren alleen als verloop onder 45° (donker → licht),
   volgorde rood, oranje, paars.
   ========================================================================== */

@font-face { font-family: "VodafoneZiggo Text"; src: url("../fonts/VodafoneZiggo-Text-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "VodafoneZiggo Text"; src: url("../fonts/VodafoneZiggo-Text-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VodafoneZiggo Text"; src: url("../fonts/VodafoneZiggo-Text-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --black: #000000;
  --red: #e60000;
  --red-dark: #820000;
  --orange: #ff5f00;
  --orange-light: #f7931e;
  --purple: #612cf3;
  --purple-dark: #220f55;
  --grey: #f5f5f5;
  --tint-red: #ffe1dc;
  --tint-orange: #ffebe1;
  --tint-purple: #ebe1ff;
  --text: #000000;
  --muted: #5e5e5e;
  --line: #e6e6e6;
  --success: #0a7a33;

  --g-red: linear-gradient(45deg, var(--red-dark), var(--red));
  --g-orange: linear-gradient(45deg, var(--orange), var(--orange-light));
  --g-purple: linear-gradient(45deg, var(--purple-dark), var(--purple));
  --g-brand: linear-gradient(45deg, var(--red-dark) 0%, var(--red) 30%, var(--orange) 55%, var(--orange-light) 70%, var(--purple) 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --font: "VodafoneZiggo Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
[hidden] { display: none !important; }
.pwa-only { display: none; }
@media (display-mode: standalone) { .pwa-only { display: block; } }

/* ---------- layout ---------- */
.main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 16px calc(var(--nav-h) + 32px + var(--safe-bottom)); }
.main--guest { padding-bottom: 32px; }
.footer { max-width: 1040px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 24px + var(--safe-bottom)); color: var(--muted); font-size: .8rem; text-align: center; }
.is-guest .footer { padding-bottom: 24px; }
.footer a { color: var(--muted); }
.footer p { margin: 0 0 .25rem; }

.testbar { background: var(--purple-dark); color: #fff; font-size: .85rem; padding: 6px 16px; text-align: center; }
.testbar a { color: #fff; font-weight: 700; }
.testbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.testbar form { margin: 0; display: inline; }
.testbar button { font: inherit; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.testbar button:hover { background: rgba(255,255,255,.28); }
.door--testable { cursor: pointer; }
.door--testable.door--missed .door__front { opacity: .75; filter: grayscale(.5) brightness(1.3); }
.test-reset { margin-top: 12px; }

.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand__icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--g-red); color: #fff; }

.nav { display: flex; gap: 4px; }
.nav__item { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; }
.nav__item:hover { background: var(--grey); }
.nav__item.is-active { background: var(--black); color: #fff; }
.nav__item--admin { color: var(--purple); }

@media (max-width: 760px) {
  /* backdrop-filter maakt van de topbar een containing block voor fixed kinderen */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .hero::after { width: 150px; height: 150px; right: -70px; top: -70px; }
  .hero::before { width: 110px; height: 110px; right: 40px; top: -90px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around;
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 6px 4px calc(6px + var(--safe-bottom)); height: calc(var(--nav-h) + var(--safe-bottom));
  }
  .nav__item { flex-direction: column; gap: 2px; font-size: .7rem; padding: 6px 4px; flex: 1; border-radius: 12px; }
  .nav__item .icon { width: 24px; height: 24px; }
  .nav__item.is-active { background: transparent; color: var(--red); }
  .brand__name { font-size: 1rem; }
}

/* ---------- typografie-blokken ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem; }
.page-head { margin: 8px 0 20px; }
.page-head h1 { margin-bottom: .25em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose--q { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }

/* ---------- kaarten ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card--accent { background: var(--tint-orange); border-color: transparent; }
.card h2 small { font-weight: 400; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.grid-2 > .card { margin: 0; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: 36px 20px; }
.empty > .icon { width: 48px; height: 48px; color: var(--orange); margin-bottom: 12px; }
.card > form + form { margin-top: 10px; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--red); display: flex; gap: 8px; align-items: center; }
.danger[open] summary { margin-bottom: 12px; }

/* ---------- formulieren ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form--inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: .9rem; }
.field__hint { color: var(--muted); font-size: .82rem; }
.field__error { color: var(--red); font-size: .85rem; margin: 0; font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=date], input[type=time], input[type=url], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1.5px solid #cfcfcf; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
.inline-form { display: inline-block; margin: 0 0 1rem; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  border: 0; border-radius: 999px; padding: 14px 22px; min-height: 48px; cursor: pointer;
  text-decoration: none; transition: transform .1s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--g-red); color: #fff; box-shadow: 0 4px 14px rgba(230,0,0,.25); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(230,0,0,.35); }
.btn--ghost { background: #fff; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black); }
.btn--ghost:hover { background: var(--grey); }
.btn--light { background: #fff; color: var(--black); }
.btn--text { background: transparent; color: var(--muted); }
.btn--danger { background: var(--red); color: #fff; }
.btn--sm { padding: 9px 14px; min-height: 38px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- meldingen ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; font-weight: 700; font-size: .95rem; }
.alert--success { background: #e3f6e9; color: var(--success); }
.alert--error { background: var(--tint-red); color: var(--red-dark); }
.alert--info { background: var(--tint-purple); color: var(--purple-dark); font-weight: 400; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: var(--black); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.banner { display: flex; align-items: center; gap: 12px; background: var(--tint-orange); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.banner > .icon { width: 28px; height: 28px; color: var(--orange); }
.banner > div { flex: 1; display: grid; font-size: .92rem; }
.banner__close { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); }

/* ---------- login/registratie ---------- */
.page-auth .main { max-width: 1000px; padding-top: 24px; }
.auth { display: grid; gap: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth__hero { position: relative; background: var(--g-red); color: #fff; padding: 36px 28px 110px; overflow: hidden; }
.auth__badge { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 18px; }
.auth__badge .icon { width: 36px; height: 36px; }
.auth__title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .2em; }
.auth__tagline { font-size: 1.1rem; opacity: .9; }
.auth__panels { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; }
.auth__panels .p { flex: 1; }
.p--red { background: var(--g-red); filter: brightness(1.08); }
.p--orange { background: var(--g-orange); }
.p--purple { background: var(--g-purple); }
.auth__card { background: #fff; padding: 28px; }
.auth__card h2 { font-size: 1.5rem; }
.auth__links { margin: 14px 0 0; font-size: .92rem; }
.auth__switch { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.center-icon .icon { width: 48px; height: 48px; color: var(--orange); }
@media (min-width: 860px) {
  .auth { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .auth__hero { padding: 48px 40px 140px; }
  .auth__panels { height: 120px; }
  .auth__card { padding: 48px 44px; }
}

/* ---------- hero op de kalender ---------- */
.hero { background: var(--g-red); color: #fff; border-radius: 28px; padding: 24px; margin-bottom: 20px; display: grid; gap: 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 40px; background: var(--g-orange); transform: rotate(45deg); opacity: .9; }
.hero::before { content: ""; position: absolute; right: 60px; top: -120px; width: 160px; height: 160px; border-radius: 32px; background: var(--g-purple); transform: rotate(45deg); opacity: .85; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { margin-bottom: .3em; max-width: 16ch; }
.hero p { max-width: 52ch; margin-bottom: .5em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: rgba(255,255,255,.14); border-radius: 16px; padding: 12px; display: grid; justify-items: start; gap: 2px; }
.stat .icon { width: 22px; height: 22px; opacity: .9; }
.stat strong { font-size: 1.5rem; line-height: 1.1; }
.stat strong small { font-size: .9rem; font-weight: 400; opacity: .8; }
.stat span { font-size: .78rem; opacity: .9; }
.stats--light .stat { background: var(--grey); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.4fr 1fr; align-items: end; padding: 32px; }
}

/* ---------- kalender & deurtjes ---------- */
.calendar {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense;
  gap: 10px; margin-bottom: 24px;
}
@media (min-width: 760px) { .calendar { grid-template-columns: repeat(8, 1fr); gap: 12px; } }
.door {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; font: inherit; color: #fff;
  perspective: 900px; cursor: default; -webkit-tap-highlight-color: transparent;
  animation: door-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 25ms);
}
.door--wide { grid-column: span 2; aspect-ratio: auto; }
.door--xl { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.door__inside, .door__front { position: absolute; inset: 0; border-radius: 16px; }
.door__inside { background: var(--grey); display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 2px 10px rgba(0,0,0,.08); }
.door__inside .icon { width: 40%; height: 40%; max-width: 56px; max-height: 56px; }
.door--done .door__inside .icon { color: var(--success); }
.door__front {
  transform-origin: left center; transition: transform .9s cubic-bezier(.3,.9,.25,1), filter .3s;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d;
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 10px 12px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.door--red .door__front { background: var(--g-red); }
.door--orange .door__front { background: var(--g-orange); }
.door--purple .door__front { background: var(--g-purple); }
.door__num { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; line-height: 1; position: relative; z-index: 1; }
.door--xl .door__num { font-size: clamp(3rem, 10vw, 5rem); }
.door__deco { position: absolute; right: -14%; bottom: -14%; width: 62%; height: 62%; opacity: .16; }
.door__deco .icon { width: 100%; height: 100%; }
.door__lock { position: absolute; right: 10px; top: 10px; opacity: .65; }
.door__lock .icon { width: 16px; height: 16px; }
.door__tag { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--black); font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; z-index: 1; }

.door--today { cursor: pointer; }
.door--today:not(.is-opened) .door__front { animation: wiggle 3.2s ease-in-out infinite; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--black), 0 10px 24px rgba(0,0,0,.25); }
.door--today:not(.is-opened):hover .door__front { transform: rotateY(-14deg); animation: none; }
.door--today.is-opened { cursor: pointer; }
.door.is-opened .door__front { transform: rotateY(-72deg); box-shadow: 6px 0 14px rgba(0,0,0,.18); }
.door.is-opening .door__front { transform: rotateY(-105deg); }
.door--missed .door__front { filter: grayscale(1) brightness(1.7); opacity: .55; }
.door--missed .door__inside { visibility: hidden; }
.door--locked .door__front { filter: saturate(.92); }
.door[aria-disabled="true"] { cursor: not-allowed; }
.door:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 18px; }
.is-finished .door--done { cursor: pointer; }

@keyframes door-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes wiggle { 0%, 86%, 100% { transform: rotateY(0); } 90% { transform: rotateY(-12deg); } 94% { transform: rotateY(-4deg); } 97% { transform: rotateY(-9deg); } }

.howto { background: var(--grey); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.howto summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.howto ul { margin: 12px 0 0; padding-left: 1.2em; }
.howto li { margin-bottom: 6px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .25s both; }
.modal__dialog {
  position: relative; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 28px 28px 0 0; padding: 0 0 calc(20px + var(--safe-bottom));
  animation: sheet .45s cubic-bezier(.2,.9,.2,1) both;
}
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal__dialog { border-radius: 28px; padding-bottom: 24px; }
}
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.modal__head { padding: 26px 24px 22px; color: #fff; position: relative; overflow: hidden; }
.modal__head--red { background: var(--g-red); }
.modal__head--orange { background: var(--g-orange); }
.modal__head--purple { background: var(--g-purple); }
.modal__head .eyebrow { color: #fff; opacity: .85; margin: 0; }
.modal__head h2 { font-size: 1.6rem; margin: 4px 0 0; display: block; }
.modal__content { padding: 20px 24px 4px; }
.timer { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; margin-top: 12px; }
.media { margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: var(--grey); }
.media img, .media video { width: 100%; max-height: 50vh; object-fit: contain; background: #000; }
.media--yt { position: relative; aspect-ratio: 16 / 9; }
.media--yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.options { display: grid; gap: 10px; margin: 18px 0 8px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-weight: 700;
  padding: 14px 16px; min-height: 56px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: var(--black); }
.option:active { transform: scale(.99); }
.option__key { width: 30px; height: 30px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; font-size: .85rem; flex: none; }
.option.is-chosen { border-color: var(--black); background: var(--tint-orange); }
.options.is-locked .option { cursor: default; }
.options.is-locked .option:not(.is-chosen) { opacity: .45; }
.estimate { display: flex; gap: 10px; margin: 18px 0 8px; align-items: stretch; }
.estimate input { font-size: 1.3rem; font-weight: 700; }
.estimate__unit { align-self: center; font-weight: 700; color: var(--muted); }
.done-box { display: flex; gap: 12px; align-items: center; background: #e3f6e9; color: var(--success); border-radius: 16px; padding: 14px 16px; margin-top: 14px; }
.done-box .icon { width: 32px; height: 32px; }
.done-box p { margin: 0; color: var(--text); font-size: .92rem; }
.note { font-size: .85rem; color: var(--muted); }

@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; width: 100%; height: 100%; }

/* ---------- tussenstand ---------- */
.score-card { background: var(--g-purple); color: #fff; border-radius: 28px; padding: 24px; margin-bottom: 16px; }
.score-card__main { display: flex; gap: 28px; margin-bottom: 14px; }
.score-card__big strong { font-size: 2.6rem; line-height: 1; display: block; }
.score-card__big span { opacity: .85; font-size: .9rem; }
.score-card .muted { color: rgba(255,255,255,.8); margin: 10px 0 0; }
.meter__bar { height: 12px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.meter__bar span { display: block; height: 100%; background: var(--g-orange); border-radius: 999px; }
.meter p { margin: 8px 0 0; }
.ranking { list-style: none; margin: 0 0 12px; padding: 0; }
.ranking__row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.ranking__row.is-me { background: var(--tint-orange); border-radius: 12px; border-color: transparent; padding-left: 10px; padding-right: 10px; }
.ranking__pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--grey); flex: none; font-size: .9rem; }
.ranking__pos.pos-1 { background: var(--g-red); color: #fff; }
.ranking__pos.pos-2 { background: var(--g-orange); color: #fff; }
.ranking__pos.pos-3 { background: var(--g-purple); color: #fff; }
.ranking__name { flex: 1; min-width: 0; font-weight: 700; display: grid; }
.ranking__name small { font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking__pts { font-weight: 700; white-space: nowrap; }
.ranking__pts small { font-weight: 400; color: var(--muted); }
.ranking__gap { text-align: center; color: var(--muted); padding: 2px; }
.ranking--compact .ranking__row { padding-top: 8px; padding-bottom: 8px; }

/* ---------- lijsten, team, badges ---------- */
.list { list-style: none; margin: 0 0 12px; padding: 0; }
.list__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list__row > span:first-child:not(.avatar) { flex: 1; display: grid; }
.list__row small { color: var(--muted); }
.list__actions { display: flex; gap: 6px; }
.list__actions form { margin: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--g-purple); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--tint-orange); color: var(--orange); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.pill .icon { width: 14px; height: 14px; }
.share { margin-top: 18px; }
.share__row { display: flex; gap: 8px; }
.share__row input { font-size: .85rem; min-height: 40px; padding: 8px 12px; }
.badges { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 8px; border-radius: 16px; background: var(--grey); color: var(--muted); }
.badge__icon .icon { width: 34px; height: 34px; }
.badge strong { font-size: .88rem; }
.badge small { font-size: .74rem; }
.badge.is-earned { background: var(--tint-orange); color: var(--text); }
.badge.is-earned .badge__icon { color: var(--orange); }
.push-status { font-weight: 700; }

/* ---------- terugblik ---------- */
.review { display: grid; gap: 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; color: var(--muted); }
.review__day { width: 38px; height: 38px; border-radius: 12px; background: var(--g-red); color: #fff; display: grid; place-items: center; }
.review__item:nth-child(3n+2) .review__day { background: var(--g-orange); }
.review__item:nth-child(3n) .review__day { background: var(--g-purple); }
.review__opts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.review__opts li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); }
.review__opts li small { margin-left: auto; color: var(--muted); }
.review__opts .is-correct { border-color: var(--success); background: #e3f6e9; }
.review__opts .is-correct .icon { color: var(--success); }
.review__opts .is-wrong { border-color: var(--red); background: var(--tint-red); }
.review__opts .is-wrong .icon { color: var(--red); }
.review__opts .dot { width: 1.25em; }
.review__est { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.review__est dt { font-size: .8rem; color: var(--muted); }
.review__est dd { margin: 0; font-weight: 700; font-size: 1.2rem; }
.explain { display: flex; gap: 10px; background: var(--tint-purple); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.explain .icon { color: var(--purple); }

.legal h2 { margin-top: 1.4em; }
.page-legal .main { max-width: 820px; }

/* Standaard draaien alle animaties, ook bij "beweging verminderen" op het apparaat.
   Alleen als de beheerder "Respecteer beweging verminderen" aanzet (class .rm-respect),
   vallen de drukke effecten weg en zwaait het deurtje rustiger open. */
@media (prefers-reduced-motion: reduce) {
  .rm-respect .door { animation: none; }
  .rm-respect .door--today:not(.is-opened) .door__front { animation: none; }
  .rm-respect .door__front { transition-duration: .5s, .3s; }
  .rm-respect .modal__backdrop, .rm-respect .modal__dialog { animation-duration: .2s; }
}
