/* ========================================================
   DERTIG — De Boemer-Tracker
   Brand: warm cream + electric orange + burgundy
   ======================================================== */

:root {
  --bg: #f6f1e8;
  --bg-elev: #fffdf8;
  --bg-soft: #efe8da;
  --ink: #1a1612;
  --ink-soft: #5b5147;
  --ink-muted: #8a8175;
  --line: #d8cfbe;
  --line-strong: #b8ad96;

  --accent: #ff5a1f;
  --accent-deep: #d8431a;
  --accent-soft: #ffe1d4;

  --warn: #f7b500;
  --danger: #c2202c;
  --good: #2c7a3e;

  --card: #ffffff;
  --card-shadow: 0 1px 0 rgba(20,16,10,.04), 0 8px 24px rgba(20,16,10,.06);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", "SF Pro Display", system-ui, sans-serif;

  --topbar-h: 64px;
  --bottomnav-h: 72px;
  --pad: 16px;
}

[data-theme="dark"] {
  --bg: #0e0d0a;
  --bg-elev: #181612;
  --bg-soft: #221e18;
  --ink: #f5efe0;
  --ink-soft: #c2b9a7;
  --ink-muted: #847b6c;
  --line: #2a2620;
  --line-strong: #3b362d;

  --accent: #ff7a3d;
  --accent-deep: #ff5a1f;
  --accent-soft: #3a2014;

  --card: #1c1915;
  --card-shadow: 0 1px 0 rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: fixed; left: -9999px; top: 0; padding: 8px 12px; background: #000; color: #fff; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 0; padding: 6px 8px; border-radius: 12px;
}
.topbar__brand:hover { background: var(--bg-soft); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 18px rgba(255,90,31,.35);
}
.brand__wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 1px;
}
.brand__sub {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--ink-muted);
  margin-left: 2px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px;
}
@media (max-width: 380px) { .brand__sub { display: none; } }

.topbar__actions { display: inline-flex; gap: 6px; }
.iconbtn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink); transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.iconbtn:hover { background: var(--bg-soft); border-color: var(--line); }
.iconbtn:active { transform: scale(.96); }

/* ===== Sidemenu ===== */
.sidemenu { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sidemenu[aria-hidden="false"] { pointer-events: auto; }
.sidemenu__backdrop {
  position: absolute; inset: 0; z-index: 1; background: rgba(20,16,10,.5);
  opacity: 0; transition: opacity .2s ease;
}
.sidemenu[aria-hidden="false"] .sidemenu__backdrop { opacity: 1; }
.sidemenu__panel {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 2;
  width: min(320px, 84vw);
  background: var(--bg-elev); color: var(--ink);
  padding: 22px 18px;
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.sidemenu[aria-hidden="false"] .sidemenu__panel { transform: translateX(0); }
.sidemenu__close {
  position: absolute; right: 8px; top: 6px;
  width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 0;
  font-size: 28px; color: var(--ink-muted);
}
.sidemenu__title { margin: 14px 4px 8px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); }
.sidemenu__list { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 2px; }
.sidemenu__list button {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 10px; background: transparent; border: 0;
  color: var(--ink); font-weight: 500;
}
.sidemenu__list button:hover { background: var(--bg-soft); }
.sidemenu__list button.danger { color: var(--danger); }
.sidemenu__hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.sidemenu__foot { font-size: 11px; color: var(--ink-muted); margin-top: 16px; padding: 0 4px; }

/* ===== Main + view system ===== */
.main {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px var(--pad) 30px;
}
.view-enter { animation: viewEnter .28s ease both; }
@keyframes viewEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 12px; }
.section-h h2 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -0.5px;
  font-size: 22px; margin: 0;
}
.section-h .muted { color: var(--ink-muted); font-size: 13px; }
.section-h .link { color: var(--accent); font-size: 13px; font-weight: 600; background: none; border: 0; padding: 0; }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--card-shadow);
}
.card + .card { margin-top: 10px; }
.card-row { display: flex; gap: 12px; align-items: center; }
.card-row > .grow { flex: 1; min-width: 0; }
.card .meta { font-size: 12px; color: var(--ink-muted); }
.card .title { font-weight: 700; }
.muted { color: var(--ink-muted); }

.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid var(--line);
  padding: 10px 14px; background: var(--bg-elev); color: var(--ink);
  font-weight: 600; transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--bg-soft); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 18px rgba(255,90,31,.30); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 14px 18px; font-size: 16px; }
.btn--sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }

/* ===== Hero on Home ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8b3d 60%, #ffb774 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 36px rgba(255,90,31,.30);
}
.hero::after{
  content: "30"; position: absolute; right: -22px; bottom: -42px;
  font-family: var(--font-display); font-weight: 900; font-size: 220px;
  color: rgba(255,255,255,.10); letter-spacing: -10px; pointer-events: none;
}
.hero__eyebrow { display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .6px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -1px; margin: 10px 0 6px;
}
.hero__sub { font-size: 15px; opacity: .94; max-width: 36ch; }
.hero__cta { margin-top: 14px; display: inline-flex; gap: 10px; flex-wrap: wrap; }
.hero__cta .btn { background: #fff; color: #1a1612; border-color: #fff; }
.hero__cta .btn:hover { background: #fff8ee; }
.hero__cta .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero__cta .btn--ghost:hover { background: rgba(255,255,255,.22); }

/* ===== Boemer of the Week banner ===== */
.botw {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(110deg, #1a1612 0%, #2c241b 100%); color: #fff;
  border: 1px solid var(--line-strong);
  margin-bottom: 16px; position: relative; overflow: hidden;
}
.botw::after {
  content: "👑"; position: absolute; right: -10px; top: -10px; font-size: 90px; opacity: .07; transform: rotate(8deg);
}
.botw__avatar {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 22px;
  background: var(--accent); color: #fff;
}
.botw .lbl { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .8; }
.botw .name { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.botw .pts { font-size: 13px; opacity: .85; }

/* ===== Avatar / chip ===== */
.avatar {
  display: inline-grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  border-radius: 12px;
  width: 44px; height: 44px;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.avatar--sm { width: 32px; height: 32px; font-size: 13px; border-radius: 9px; }
.avatar--lg { width: 84px; height: 84px; font-size: 30px; border-radius: 18px; }
.avatar--xl { width: 120px; height: 120px; font-size: 44px; border-radius: 24px; }
.avatar--photo { background-color: var(--bg-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--ink-soft); font-weight: 600;
}
.chip--accent { background: var(--accent-soft); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip--rang { background: #1a1612; color: #fff; border-color: #1a1612; }
.chip--tier { /* inline override via style="" */ }

/* Tier dot — gebruikt in chips, leaderboard rows en member-cards */
.tier-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.6) inset, 0 0 0 1px rgba(0,0,0,.18);
  flex-shrink: 0;
}
.chip--rang .tier-dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.25) inset, 0 0 0 1px rgba(0,0,0,.4); }
.tier-dot--inline { width: 7px; height: 7px; vertical-align: 1px; margin-right: 2px; }

/* Tier badge — prominent emblem op profielheader */
.tier-badge {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px; padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 8px 22px rgba(20,16,10,.18);
  position: relative; overflow: hidden;
}
.tier-badge::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22) 0%, transparent 55%);
  pointer-events: none;
}
.tier-badge__emblem {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.45);
  display: grid; place-items: center;
  font-size: 34px; line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 -6px 16px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.12);
}
.tier-badge__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.tier-badge__tier {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,.85); font-weight: 700;
}
.tier-badge__rang {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20px, 4.4vw, 26px); letter-spacing: -.5px; line-height: 1.1;
}

/* Rang-progress bar (op profielpagina) */
.rang-progress {
  margin-top: 12px;
}
.rang-progress__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.rang-progress__arrow { color: var(--ink-muted); font-weight: 600; }
.rang-progress__next { color: var(--accent-deep); }
[data-theme="dark"] .rang-progress__next { color: var(--accent); }
.rang-progress__bar {
  height: 10px; border-radius: 99px; overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.rang-progress__fill {
  height: 100%; border-radius: 99px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 12px rgba(255,90,31,.35);
}
.rang-progress__sub {
  margin-top: 8px; font-size: 12px; color: var(--ink-muted);
}
.rang-progress__cap {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; letter-spacing: -.3px;
  color: var(--accent);
}

/* ===== Member grid ===== */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.member-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; transition: transform .1s ease, border-color .15s ease, background .15s ease;
}
.member-card:hover { border-color: var(--line-strong); background: var(--bg-elev); }
.member-card:active { transform: scale(.98); }
.member-card .name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.member-card .leeftijd { font-size: 11px; color: var(--ink-muted); }
.member-card .score-pill {
  margin-top: 2px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-soft); font-size: 11px; font-weight: 700;
}

/* ===== Activity / feed ===== */
.feed-item {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: 8px;
}
.feed-item__body { flex: 1; min-width: 0; }
.feed-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feed-item__name { font-weight: 700; }
.feed-item__time { font-size: 11px; color: var(--ink-muted); }
.feed-item__streek { margin: 4px 0 6px; }
.feed-item__roast {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  padding: 8px 10px; border-radius: 8px; font-style: italic; color: var(--ink-soft);
  white-space: pre-wrap;
}
.feed-item__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feed-item__actions { display: flex; gap: 6px; margin-top: 8px; }

/* ===== Profile page ===== */
.profile-head {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--card-shadow);
}
.profile-head__main { flex: 1; min-width: 0; }
.profile-head h1 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -1px;
  font-size: clamp(24px, 5vw, 32px); margin: 0;
}
.profile-head .specialty { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.profile-head .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-bio {
  margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  padding-left: 10px; border-left: 3px solid var(--accent);
}
.profile-meta-line { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* Incomplete-profile CTA */
.profile-cta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-elev) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius); cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease;
}
.profile-cta:hover { box-shadow: 0 6px 20px rgba(255,90,31,.2); }
.profile-cta:active { transform: scale(.99); }
.profile-cta__emoji { font-size: 28px; }
.profile-cta__main { flex: 1; }
.profile-cta__title { font-weight: 800; font-size: 15px; }
.profile-cta__sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.profile-cta__arrow { font-size: 22px; color: var(--accent); font-weight: 800; }

/* Edit-modal photo preview */
.edit-photo-preview {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px; background: var(--bg-soft); border-radius: 12px;
  border: 1px dashed var(--line);
}
.edit-photo-preview img {
  width: 120px; height: 120px; border-radius: 24px; object-fit: cover;
  border: 2px solid var(--line); display: block;
}
.edit-photo-placeholder {
  width: 120px; height: 120px; border-radius: 24px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 44px; color: #fff;
}

/* Favorite-streek chips */
.fav-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 220px; overflow-y: auto;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev);
}
.fav-chip {
  border: 1px solid var(--line); background: var(--bg-elev);
  border-radius: 999px; padding: 6px 10px; font-size: 12px;
  cursor: pointer; transition: all .12s ease;
}
.fav-chip:hover { background: var(--bg-soft); }
.fav-chip.selected {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(255,90,31,.3);
}

.score-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px;
}
@media (max-width: 460px) { .score-grid { grid-template-columns: 1fr 1fr; } }
.score-tile {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; text-align: center;
}
.score-tile .lbl { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.score-tile .val {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -1px;
  font-size: 28px; margin-top: 2px; line-height: 1;
}
.score-tile.tile-age .val { color: var(--accent); }

.tabs {
  display: flex; gap: 4px; margin: 18px 0 12px; border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  padding: 10px 12px; border: 0; background: transparent; color: var(--ink-soft);
  font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }

.hof {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.hof__item {
  background: linear-gradient(160deg, #fff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px;
}
[data-theme="dark"] .hof__item {
  background: linear-gradient(160deg, var(--card) 0%, color-mix(in srgb, var(--accent) 18%, var(--card)) 100%);
}
.hof__rank { font-size: 11px; letter-spacing: 1.2px; color: var(--ink-muted); }
.hof__title { font-weight: 800; }
.hof__sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ===== Submit modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: end center;
  background: rgba(15,12,8,.55);
  animation: fadeIn .18s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__sheet {
  width: 100%; max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 88dvh; overflow-y: auto;
  animation: sheetUp .26s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 720px) {
  .modal { place-items: center; }
  .modal__sheet { border-radius: 22px; max-height: 86dvh; }
}
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal__head h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.modal__close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-soft); }
.modal__actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg-elev); }

.bingo-edit-list { display: grid; gap: 8px; max-height: 56dvh; overflow-y: auto; padding: 4px 2px 4px 0; }
.bingo-edit-row { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 8px; }
.bingo-edit-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-muted); font-size: 12px; font-weight: 700; margin-top: 6px; }
.bingo-edit-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); color: var(--ink); font: inherit; font-size: 14px; resize: vertical; min-height: 40px; font-family: inherit; }
.bingo-edit-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.field { display: block; margin: 12px 0; }
.field > label { display: block; font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: 15px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-color: var(--accent);
}

.mode-pick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 460px) { .mode-pick { grid-template-columns: 1fr; } }
.mode-pick__btn {
  border: 1px solid var(--line); background: var(--bg-elev); border-radius: 12px;
  padding: 12px 10px; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
}
.mode-pick__btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--accent-soft); }
.mode-pick__emoji { font-size: 22px; }
.mode-pick__name { font-weight: 700; }
.mode-pick__sub { font-size: 12px; color: var(--ink-muted); }

.ach-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.ach-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.ach-item:hover { background: var(--bg-soft); }
.ach-item[aria-pressed="true"] { background: var(--accent-soft); }
.ach-item__emoji { font-size: 20px; }
.ach-item__body { flex: 1; min-width: 0; }
.ach-item__name { font-weight: 700; }
.ach-item__desc { font-size: 12px; color: var(--ink-muted); }
.ach-item__pts { font-size: 12px; font-weight: 700; color: var(--accent); }
.ach-item__streak {
  margin-top: 4px; font-size: 11px; color: var(--ink-soft);
  display: inline-block;
  padding: 2px 8px; background: var(--bg-soft); border-radius: 999px;
  border: 1px solid var(--line);
}

/* ===== FAB + bottom nav ===== */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--bottomnav-h) + 14px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 18px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(255,90,31,.45);
  z-index: 25;
}
.fab__plus { font-size: 20px; line-height: 1; }
@media (min-width: 720px) { .fab { display: inline-flex; } }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.bottomnav__btn {
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 8px 4px; color: var(--ink-soft); font-weight: 600;
}
.bn__ico { font-size: 18px; }
.bn__lbl { font-size: 11px; }
.bottomnav__btn[aria-current="page"] { color: var(--accent); }
.bottomnav__btn--center .bn__center {
  width: 50px; height: 50px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 28px; font-weight: 900;
  box-shadow: 0 12px 24px rgba(255,90,31,.45);
  transform: translateY(-10px);
}
@media (min-width: 720px) {
  .bottomnav__btn--center { display: none; }
  .bottomnav { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Leaderboard rows ===== */
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 6px; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.lb-row:hover { background: var(--bg-elev); border-color: var(--line-strong); }
.lb-row__rank { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--ink-muted); width: 30px; text-align: right; }
.lb-row__rank.top1 { color: #d4a017; }
.lb-row__rank.top2 { color: #9aa0a6; }
.lb-row__rank.top3 { color: #b87333; }
.lb-row__main { flex: 1; min-width: 0; }
.lb-row__name { font-weight: 700; }
.lb-row__sub { font-size: 12px; color: var(--ink-muted); }
.lb-row__score {
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--accent);
}

/* ===== Bingo ===== */
.bingo-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
}
.bingo-cell {
  aspect-ratio: 1; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; line-height: 1.2; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-elev); color: var(--ink); cursor: pointer; overflow: hidden;
  word-break: break-word; hyphens: auto; font-weight: 600;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
}
@media (max-width: 600px) {
  .bingo-cell { font-size: 11px; padding: 6px 4px; }
}
.bingo-cell.free { background: var(--bg-soft); font-weight: 800; font-size: 12px; }
.bingo-cell.checked {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,90,31,.4);
  transform: scale(.98);
}
.bingo-cell .who { font-size: 11px; opacity: .9; margin-top: 4px; font-weight: 800; }
.bingo-cell.in-line {
  animation: bingoPulse 1.4s ease-in-out infinite;
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,90,31,.45);
}
@keyframes bingoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgba(255,90,31,0); transform: scale(1.03); }
}
.bingo-banner {
  margin-top: 12px; padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8b3d 100%);
  color: #fff; border-radius: 14px;
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.5px;
  box-shadow: 0 12px 32px rgba(255,90,31,.45);
  animation: bannerPop .5s cubic-bezier(.2,1.4,.4,1.2) both;
}
@keyframes bannerPop {
  0%   { transform: translateY(20px) scale(.85); opacity: 0; }
  60%  { transform: translateY(-4px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.bingo-banner__small { font-size: 13px; font-family: var(--font-sans); font-weight: 600; opacity: .9; margin-top: 2px; letter-spacing: 0; }

/* ===== Quiz ===== */
.quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--card-shadow);
}
.quiz-progress {
  height: 6px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin: 4px 0 14px;
}
.quiz-progress > span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.quiz-q { font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 14px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-elev); font-weight: 600;
}
.quiz-option:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.quiz-option.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.quiz-result-num {
  font-family: var(--font-display); font-weight: 900; font-size: 88px; line-height: 1; letter-spacing: -3px;
  color: var(--accent);
}

/* ===== 30-ometer ===== */
.ometer-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px;
}
.ometer-photo {
  background: var(--bg-soft); border: 2px dashed var(--line-strong); border-radius: 14px;
  padding: 18px; text-align: center;
}
.ometer-photo img { max-width: 100%; max-height: 320px; border-radius: 10px; margin-top: 6px; display: inline-block; }
.ometer-meter {
  height: 14px; border-radius: 99px; margin: 16px 0 8px;
  background: linear-gradient(90deg, #2c7a3e 0%, #f7b500 50%, #c2202c 100%);
  position: relative;
}
.ometer-meter > .needle {
  position: absolute; top: -6px; width: 4px; height: 26px; background: var(--ink); border-radius: 2px;
  transition: left .8s cubic-bezier(.2,.8,.2,1);
}
.ometer-score {
  font-family: var(--font-display); font-weight: 900; font-size: 60px; letter-spacing: -2px;
  text-align: center; color: var(--accent);
}

/* ===== Polls / predictions ===== */
.poll-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.poll-q { font-weight: 800; }
.poll-option {
  display: block; width: 100%; text-align: left;
  margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-elev); position: relative; overflow: hidden;
}
.poll-option:hover { background: var(--bg-soft); }
.poll-option.voted { border-color: var(--accent); background: var(--accent-soft); }
.poll-option .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  z-index: 0; transition: width .4s ease; width: 0;
}
.poll-option .bar.active { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.poll-option .opt-content { position: relative; display: flex; justify-content: space-between; }
.poll-option .opt-pct { font-weight: 700; font-size: 13px; color: var(--ink-soft); }

/* ===== Toasts ===== */
#toast-root {
  position: fixed; left: 50%; bottom: calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #1a1612; color: #fff; padding: 10px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: toastIn .25s ease both;
}
.toast.error { background: var(--danger); }
.toast.ok { background: var(--good); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Roast result modal ===== */
.roast-result {
  text-align: center; padding: 6px 4px 0;
}
.roast-result .target {
  font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: -.5px;
}
.roast-result .ach {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
  border-radius: 999px; background: var(--bg-soft); margin-top: 6px; font-size: 13px;
}
.roast-result .pts {
  font-family: var(--font-display); font-weight: 900; font-size: 64px; color: var(--accent);
  margin: 14px 0 0; line-height: 1;
}
.roast-result .pts-lbl { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); }
.roast-result .roast-text {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--accent-soft) 100%);
  font-style: italic; font-size: 15px; line-height: 1.5; color: var(--ink);
  text-align: left; white-space: pre-wrap;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
[data-theme="dark"] .roast-result .roast-text {
  background: linear-gradient(160deg, var(--bg-soft) 0%, color-mix(in srgb, var(--accent) 16%, var(--bg-soft)) 100%);
}
.roast-result .actions { display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.rang-bump {
  margin-top: 14px; padding: 14px 18px;
  background: linear-gradient(135deg, #1a1612 0%, #3a2014 100%);
  color: #fff; border-radius: 14px;
  display: inline-block; min-width: 220px;
  animation: rangBumpIn .55s cubic-bezier(.2, 1.4, .4, 1.2) both;
  position: relative; overflow: hidden;
}
.rang-bump::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  animation: rangShimmer 1.6s ease-out 0.2s both;
}
@keyframes rangBumpIn {
  0%   { transform: translateY(20px) scale(.85); opacity: 0; }
  60%  { transform: translateY(-6px) scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes rangShimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.rang-bump__lbl { font-size: 11px; letter-spacing: 1.4px; opacity: .8; }
.rang-bump__name { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin-top: 4px; }

/* ===== Share-card preview canvas ===== */
.share-preview {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  margin: 14px 0 0;
}
.share-preview canvas { display: block; width: 100%; height: auto; }

/* ===== Empty state ===== */
.empty {
  text-align: center; padding: 40px 20px;
  color: var(--ink-muted); border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.empty .em-emoji { font-size: 36px; }
.empty h3 { margin: 8px 0 4px; color: var(--ink); }

/* ===== Digest ===== */
.digest-card {
  background: linear-gradient(140deg, #1a1612 0%, #2b2218 100%); color: #fff;
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
}
.digest-card::after {
  content: "30"; position: absolute; right: -22px; bottom: -54px;
  font-size: 200px; font-weight: 900; color: rgba(255,255,255,.06); pointer-events: none;
}
.digest-card .head { display: flex; align-items: center; justify-content: space-between; }
.digest-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 900; margin: 4px 0 4px; letter-spacing: -.5px; }
.digest-card .lst { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.digest-card .row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(255,255,255,.06); border-radius: 10px; }
.digest-card .row .num { font-family: var(--font-display); font-weight: 900; font-size: 18px; opacity: .8; width: 24px; text-align: center; }

/* ===== Snitch ratio bar ===== */
.snitch-bar { height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg-soft); display: flex; }
.snitch-bar .l { background: var(--accent); }
.snitch-bar .r { background: var(--ink); }
.snitch-row { display: flex; gap: 12px; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.snitch-row span:first-child { color: var(--accent); }

/* ===== Chart (sparkline) ===== */
.spark { width: 100%; height: 56px; display: block; }

/* helpers */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.hide-mob { display: none; }
@media (min-width: 720px) { .hide-mob { display: initial; } }

/* ============================================================
   Multi-room schermen (landing, /new, lock)
   ============================================================ */

.btn--lg { padding: 16px 22px; font-size: 16px; border-radius: 14px; }

/* Landing */
.landing { min-height: 100dvh; display: grid; place-items: center; padding: 24px; gap: 32px; }
.landing__hero { text-align: center; }
.landing__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 28px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 56px;
  box-shadow: 0 12px 32px rgba(255,90,31,.35); margin-bottom: 16px;
}
.landing__title { font-family: var(--font-display); font-weight: 900; font-size: 56px; margin: 0 0 8px; letter-spacing: -.02em; }
.landing__sub { color: var(--ink-muted); font-size: 17px; margin: 0; max-width: 30ch; margin-inline: auto; }
.landing__ctas { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.landing__foot { text-align: center; font-size: 13px; }

/* New room form */
.newroom { max-width: 480px; margin: 24px auto 80px; padding: 0 20px; }
.newroom__back { display: inline-block; font-size: 13px; margin-bottom: 16px; }
.newroom h1 { font-family: var(--font-display); font-weight: 900; font-size: 36px; margin: 8px 0 4px; letter-spacing: -.02em; }
.newroom__intro { margin: 0 0 24px; }
.newroom__form { display: grid; gap: 14px; }
.newroom__form .field input[type="file"] { padding: 8px; cursor: pointer; }
.newroom__form .field small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; }
.newroom__err { padding: 12px 14px; border-radius: 10px; background: rgba(194,32,44,.08); color: #c2202c; font-size: 14px; font-weight: 600; }
.newroom__actions { margin-top: 8px; }
.newroom__actions .btn { width: 100%; }

/* Lock screen */
.lock { min-height: 100dvh; display: grid; place-items: center; padding: 24px; gap: 14px; text-align: center; }
.lock__mark { font-size: 64px; line-height: 1; }
.lock h1 { font-family: var(--font-display); font-weight: 900; font-size: 32px; margin: 0; }
.lock__form { display: flex; gap: 8px; max-width: 320px; width: 100%; margin-top: 8px; }
.lock__form input {
  flex: 1; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: 15px;
}
.lock__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.lock__err { color: #c2202c; font-size: 14px; font-weight: 600; }
.lock__back { margin-top: 12px; font-size: 13px; }

/* Onboarding modal (eerste lid in nieuwe room) */
.onboard__sub { color: var(--ink-soft); margin: 0 0 18px; line-height: 1.55; font-size: 15px; }
.onboard__form { display: grid; gap: 14px; }
.onboard__form .field input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: inherit; font-size: 15px; }
.onboard__form .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.onboard__form .field small { font-size: 12px; line-height: 1.4; margin-top: 4px; display: block; }
.onboard__colors { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.onboard__color { width: 36px; height: 36px; border-radius: 10px; border: 2px solid transparent; padding: 0; cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.onboard__color:hover { transform: scale(1.08); }
.onboard__color.selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 4px var(--ink); }
.onboard__err { padding: 10px 12px; border-radius: 10px; background: rgba(194,32,44,.08); color: #c2202c; font-size: 13px; font-weight: 600; }

/* Joined rooms op landing */
.landing__rooms { width: 100%; max-width: 360px; }
.landing__rooms-lbl { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); margin: 0 4px 8px; font-weight: 700; }
.landing__rooms-list { display: grid; gap: 8px; }
.joined-room {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--line);
  text-align: left; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.joined-room:hover { background: var(--bg-soft); border-color: var(--line-strong); transform: translateY(-1px); }
.joined-room__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  flex-shrink: 0;
}
.joined-room__main { flex: 1; min-width: 0; }
.joined-room__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.joined-room__sub { font-size: 12px; margin-top: 2px; }
.joined-room__chev { color: var(--ink-muted); font-size: 18px; }
.joined-room--expired .joined-room__mark { background: var(--bg-soft); color: var(--ink-muted); }
.joined-room--expired .joined-room__name { color: var(--ink-soft); }

/* Home: streak + new-since chips */
.home-mini-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.streak-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.streak-chip__flame { font-size: 14px; }
.streak-chip__num { color: var(--accent); font-weight: 900; }
.streak-chip__lbl { color: var(--ink-soft); font-weight: 500; }
.streak-chip--hot {
  background: linear-gradient(135deg, #ff5a1f 0%, #ffa85b 100%);
  border-color: transparent; color: #fff;
}
.streak-chip--hot .streak-chip__num,
.streak-chip--hot .streak-chip__lbl { color: #fff; }
.new-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(44,122,62,.10); border: 1px solid rgba(44,122,62,.3);
  color: var(--good); font-size: 13px; font-weight: 600;
}
.new-chip__dot { font-size: 8px; line-height: 1; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* Home: jouw rang-progress card */
.my-rank-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  margin: 16px 0; box-shadow: var(--card-shadow);
}
.my-rank-card__lbl {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700; margin-bottom: 10px;
}
.my-rank-card__hint { font-size: 13px; margin-top: 8px; line-height: 1.4; }

/* Home: HoF rotating quote */
.hof-quote {
  margin: 24px 0 8px; padding: 14px 18px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.hof-quote__lbl { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.hof-quote__text { font-size: 17px; font-style: italic; line-height: 1.45; margin: 8px 0 6px; color: var(--ink); }
.hof-quote__by { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* Empty-state CTA blocks */
.empty-state {
  text-align: center; padding: 32px 24px;
  background: var(--bg-elev); border: 1px dashed var(--line);
  border-radius: 16px; margin: 12px 0;
}
.empty-state__emoji { font-size: 36px; margin-bottom: 8px; }
.empty-state__title { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.empty-state__body { font-size: 14px; line-height: 1.5; max-width: 38ch; margin: 0 auto 14px; }

/* Achievement unlocked indicator in submit-form */
.ach-item__unlock {
  display: inline-block; margin-top: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: rgba(44,122,62,.10); color: var(--good); font-weight: 600;
}
.ach-item__unlock--locked {
  background: var(--bg-soft); color: var(--ink-muted);
}

/* Ometer roll history */
.ometer-history {
  margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.ometer-history__lbl {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700; margin-bottom: 10px;
}
.ometer-history__list { display: grid; gap: 6px; }
.ometer-history__row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; background: var(--bg-soft); border-radius: 8px;
  font-size: 13px;
}
.ometer-history__score { font-weight: 800; color: var(--accent); flex-shrink: 0; min-width: 48px; }
.ometer-history__cmt { flex: 1; line-height: 1.35; }

/* "Nieuwe boemer" card in pickMember */
.member-card--new { opacity: .85; }
.member-card--new:hover { opacity: 1; }
.avatar--ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px dashed var(--line-strong); border-radius: 12px;
  font-size: 28px; font-weight: 300;
}

/* ============================================================
   Lootbox systeem
   ============================================================ */
.rarity-common    { --r-color: #9aa0a6; --r-glow: rgba(154,160,166,.25); }
.rarity-uncommon  { --r-color: #5a8fb8; --r-glow: rgba(90,143,184,.30); }
.rarity-rare      { --r-color: #3b82f6; --r-glow: rgba(59,130,246,.35); }
.rarity-epic      { --r-color: #a855f7; --r-glow: rgba(168,85,247,.40); }
.rarity-legendary { --r-color: #f59e0b; --r-glow: rgba(245,158,11,.50); }

.loot-section {
  margin-top: 18px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.loot-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.loot-head__lbl { font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.loot-head__coins { font-size: 13px; color: var(--ink-soft); flex: 1; min-width: 120px; }
.loot-open-btn { white-space: nowrap; }
.loot-open-btn.disabled { opacity: .5; cursor: not-allowed; }

.loot-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.loot-slot {
  aspect-ratio: 1; padding: 8px 6px;
  background: var(--bg-soft); border: 2px dashed var(--line);
  border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: default; transition: all .15s ease;
}
.loot-slot--filled {
  background: var(--bg-elev); border-style: solid; cursor: pointer;
  border-color: var(--r-color); box-shadow: 0 0 0 2px var(--r-glow);
}
.loot-slot--filled:hover { transform: translateY(-1px); }
.loot-slot__lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-muted); margin-bottom: 2px; }
.loot-slot__emoji { font-size: 26px; line-height: 1; }
.loot-slot__name { font-size: 9px; text-align: center; line-height: 1.1; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loot-inv-lbl { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin: 0 0 8px; }
.loot-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.loot-tile {
  position: relative; padding: 10px 8px; border-radius: 12px;
  background: var(--bg-elev); border: 2px solid var(--r-color);
  text-align: center; cursor: pointer;
  box-shadow: 0 0 12px var(--r-glow); transition: transform .12s ease;
}
.loot-tile:hover { transform: translateY(-2px); }
.loot-tile--equipped { background: var(--bg-soft); }
.loot-tile__emoji { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.loot-tile__name { font-size: 12px; font-weight: 700; line-height: 1.25; }
.loot-tile__bonus { font-size: 10px; color: var(--accent); font-weight: 700; margin-top: 4px; }
.loot-tile__equipped { position: absolute; top: -8px; right: -6px; background: var(--good); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px; font-weight: 700; }

/* Reveal modal */
.loot-reveal { text-align: center; padding: 12px 4px 4px; }
.loot-reveal__spinner { font-size: 64px; margin-bottom: 12px; animation: shake .5s ease infinite; }
@keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-8deg)} 75%{transform:rotate(8deg)} }
.loot-reveal__hint { font-size: 13px; }
.loot-reveal__rarity { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--r-color); font-weight: 800; margin-bottom: 6px; }
.loot-reveal.rarity-legendary .loot-reveal__rarity,
.loot-reveal.rarity-epic .loot-reveal__rarity { animation: glow 1.5s ease-in-out infinite; }
@keyframes glow { 0%,100%{text-shadow:0 0 0 var(--r-color)} 50%{text-shadow:0 0 12px var(--r-color)} }
.loot-reveal__emoji { font-size: 80px; line-height: 1; margin: 8px 0; filter: drop-shadow(0 0 16px var(--r-glow)); }
.loot-reveal__name { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 0 0 8px; color: var(--r-color); }
.loot-reveal__flavor { font-style: italic; color: var(--ink-soft); margin: 0 0 12px; font-size: 14px; line-height: 1.45; max-width: 28ch; margin-left: auto; margin-right: auto; }
.loot-reveal__bonus { display: inline-block; background: rgba(255,90,31,.10); color: var(--accent); font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.loot-reveal__actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.loot-reveal__err { color: var(--danger); font-weight: 600; margin: 0 0 12px; }

/* "Draagt" strip op andermans profiel */
.loot-wear-strip { margin-top: 14px; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; }
.loot-wear-strip__items { display: flex; flex-wrap: wrap; gap: 6px; }
.loot-wear-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 8px;
  background: var(--bg-elev); border: 1px solid var(--r-color);
  font-size: 12px; font-weight: 600;
}
.loot-wear-tag__emoji { font-size: 14px; }
.loot-wear-tag__bonus { color: var(--accent); font-weight: 800; }
