/* =========================================================
   MichaelWieken.nl — Ministerie van Tijdverspilling
   Volledig statische stylesheet. Geen frameworks.
   ========================================================= */

:root {
  --bg: #0a0b12;
  --bg-2: #10121d;
  --bg-3: #171a29;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #e9eaf2;
  --muted: #9297ad;
  --faint: #626783;

  --accent: #ffb020;      /* bureaucratisch goud */
  --accent-2: #ff3b6b;    /* arcade magenta */
  --accent-3: #35e0d0;    /* arcade cyaan */
  --danger: #ff4757;
  --ok: #3ddc84;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --glow-accent: 0 0 0 1px rgba(255, 176, 32, .35), 0 0 40px -6px rgba(255, 176, 32, .45);

  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Achtergrond gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(255, 176, 32, .12), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(255, 59, 107, .10), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(53, 224, 208, .10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* ================= Header / navigatie ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 11, 18, .72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.logo {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  white-space: nowrap;
}
.logo .seal {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform .6s var(--ease);
}
.logo:hover .seal { transform: rotate(120deg); }
.logo span { color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel); }

.btn-surprise {
  margin-left: 8px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(255, 176, 32, .18), rgba(255, 59, 107, .18));
  color: var(--text);
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.btn-surprise:hover { transform: translateY(-2px); box-shadow: var(--glow-accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 18px;
    background: rgba(12, 13, 22, .98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .btn-surprise { margin: 6px 0 0; padding: 13px; }
}

/* ================= Layout helpers ================= */
main { flex: 1; padding: 46px 0 80px; }
.page-narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 176, 32, .3);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 176, 32, .06);
}

h1.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 18px 0 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  max-width: 640px;
}

.page-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 14px 0 8px;
}

/* ================= Kaarten (homepage) ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 176, 32, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.app-card:hover::after { opacity: 1; }
.app-card .icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}
.app-card h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.app-card p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.badge {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}
.badge.lvl-1 { color: var(--accent-3); border-color: rgba(53, 224, 208, .35); }
.badge.lvl-2 { color: var(--accent); border-color: rgba(255, 176, 32, .35); }
.badge.lvl-3 { color: var(--accent-2); border-color: rgba(255, 59, 107, .35); }

/* ================= Knoppen ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--panel-strong);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a00);
  color: #1a1200;
  border-color: transparent;
}
.btn-primary:hover { box-shadow: var(--glow-accent); }
.btn-ghost { background: transparent; }
.btn-magenta {
  background: linear-gradient(135deg, var(--accent-2), #c11d59);
  color: #fff; border-color: transparent;
}
.btn-cyan {
  background: linear-gradient(135deg, var(--accent-3), #17a89b);
  color: #04211e; border-color: transparent;
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b31220);
  color: #fff; border-color: transparent;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-block { width: 100%; }

/* ================= Panelen ================= */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel + .panel { margin-top: 20px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 6px;
}
.back-link:hover { color: var(--text); }

.app-head { margin-bottom: 26px; }

/* ================= Share knop ================= */
.share-bar {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.btn-share {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, border-color .2s, transform .15s;
}
.btn-share:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.btn-share:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ================= App 1: niet-indrukken ================= */
.stage {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  position: relative;
}
.warn-label {
  font-family: var(--mono);
  letter-spacing: .3em;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--danger);
}
.big-red {
  --size: 190px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: .1em;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c40d1e 65%, #7a0812);
  box-shadow: 0 18px 40px -10px rgba(196, 13, 30, .8), inset 0 -8px 20px rgba(0, 0, 0, .4), inset 0 6px 14px rgba(255, 255, 255, .3);
  transition: transform .1s var(--ease);
  font-family: inherit;
}
.big-red:hover { transform: scale(1.03); }
.big-red:active { transform: scale(.95); }
.big-red:focus-visible { outline: 4px solid var(--accent); outline-offset: 6px; }
.big-red.shake { animation: shake .35s ease infinite; }
.phase-text { font-size: 1.35rem; font-weight: 600; min-height: 1.6em; }

.runaway {
  position: relative;
  transition: left .12s ease, top .12s ease;
}
.runaway-zone {
  position: relative;
  width: 100%;
  min-height: 240px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.runaway-zone .btn { position: absolute; }

.screen-flash {
  position: fixed;
  inset: 0;
  background: var(--danger);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
.screen-flash.on { animation: flashRed .18s ease 4; }

/* ================= Voortgangsbalk ================= */
.progress {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  transition: width .4s var(--ease);
}
.progress-label { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ================= App 2: eten (rad) ================= */
.wheel-wrap {
  position: relative;
  width: min(360px, 82vw);
  height: min(360px, 82vw);
  margin: 10px auto 24px;
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow), inset 0 0 40px rgba(0, 0, 0, .4);
  transition: transform 4.4s cubic-bezier(.16, .84, .3, 1);
}
.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid var(--accent);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
  z-index: 3;
}
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 3px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  font-size: 1.5rem;
  z-index: 2;
}
.verdict {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 800;
  margin: 6px 0;
}
.advice {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ================= App 3: wachtrij ================= */
.queue-number {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 12vw, 5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.info-grid .cell {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.info-grid .cell b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 4px; }
.queue-log {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: .86rem;
  color: var(--muted);
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(0, 0, 0, .2);
}
.queue-log div { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.queue-log div:last-child { border-bottom: none; }

/* ================= App 4: excuses ================= */
.excuse-box {
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  min-height: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.score-line { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.score-pill {
  font-family: var(--mono);
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

/* ================= App 5: klagen ================= */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
  transition: all .18s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--accent); color: #1a1200; border-color: transparent; font-weight: 700; }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

textarea, input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}
textarea:focus, input[type="text"]:focus { outline: 2px solid var(--accent); border-color: transparent; }

.workflow { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.workflow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  opacity: .35;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.workflow li.done { opacity: 1; border-color: var(--border-strong); transform: none; }
.workflow li .dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  font-size: .8rem; flex: none;
}
.workflow li.done .dot { background: var(--ok); color: #04211e; border-color: transparent; }
.counter-big {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--accent);
}

/* ================= App 6: korte-broek ================= */
.slider-row { margin: 16px 0; }
.slider-row label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.slider-row label b { color: var(--accent); font-family: var(--mono); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; border: 2px solid #fff2;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer; border: 2px solid #fff2;
}
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }

/* ================= App 7: miljonair ================= */
.big-answer {
  font-size: clamp(3rem, 16vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--danger), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.stat-card .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.stat-card .val { font-size: 1.5rem; font-weight: 800; margin-top: 4px; font-family: var(--mono); }
canvas.chart { width: 100%; height: 220px; display: block; }

/* ================= App 8: doe-normaal ================= */
.chaos-btn {
  padding: 30px 40px;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: .05em;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at 40% 30%, #ff5470, #c11d59 70%);
  box-shadow: 0 20px 50px -14px rgba(193, 29, 89, .8);
  transition: transform .12s var(--ease), background .3s;
  font-family: inherit;
}
.chaos-btn:focus-visible { outline: 4px solid var(--accent); outline-offset: 6px; }
body.screen-shake { animation: screenShake .4s ease; }
.siren {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,0,0,.25), transparent, rgba(0,0,255,.25));
}
.siren.on { animation: siren .3s linear 6; }

/* ================= App 9: beslissen ================= */
.option-list { display: grid; gap: 10px; margin-bottom: 8px; }
.option-list .opt-row { display: flex; gap: 8px; }
.option-list .opt-row input { flex: 1; }
.remove-opt {
  border: 1px solid var(--border); background: var(--panel);
  color: var(--muted); border-radius: var(--radius-sm);
  width: 46px; cursor: pointer; font-size: 1.1rem; font-family: inherit;
}
.remove-opt:hover { color: var(--danger); }
.analysis { list-style: none; padding: 0; margin: 16px 0; font-family: var(--mono); font-size: .92rem; }
.analysis li { padding: 6px 0; opacity: 0; transform: translateY(6px); }
.analysis li.show { animation: fadeUp .4s var(--ease) forwards; }
.decision-result {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 800; text-align: center; margin: 10px 0;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================= App 10: productiviteit ================= */
.quiz-q { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: .98rem;
  transition: all .18s;
}
.quiz-opt:hover { border-color: var(--accent); transform: translateX(4px); }
.quiz-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-progress { font-family: var(--mono); font-size: .82rem; color: var(--faint); margin-bottom: 10px; }
.score-ring {
  font-size: clamp(2.6rem, 12vw, 4.5rem);
  font-weight: 900; text-align: center;
  color: var(--accent);
}

/* ================= Statistieken ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.stat-tile .num { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-tile .cap { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.bar-chart { display: grid; gap: 12px; margin-top: 10px; }
.bar-chart .bar-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.bar-chart .bar-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.bar-track { height: 12px; background: var(--bg-3); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1s var(--ease); }

/* ================= Over ================= */
.over-text p { font-size: 1.12rem; }
.over-text .big { font-size: 1.4rem; font-weight: 700; }

/* ================= Toasts ================= */
.toast-wrap {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(340px, 90vw);
}
.toast {
  background: rgba(20, 22, 34, .95);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: toastIn .3s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }

/* ================= Modal (help / bevestiging) ================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 10px; font-size: 1.3rem; }
.modal p { color: var(--muted); }
.modal .btn-row { justify-content: flex-end; margin-top: 20px; }

/* ================= Footer ================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  background: rgba(8, 9, 15, .6);
}
.site-footer p { margin: 4px 0; font-size: .9rem; }
.btn-reset {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--faint);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  transition: color .2s, border-color .2s;
}
.btn-reset:hover { color: var(--danger); border-color: var(--danger); }

/* ================= Confetti ================= */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 10px; height: 14px;
  z-index: 9990;
  pointer-events: none;
  will-change: transform;
}

/* ================= Disco modus ================= */
body.disco::before { animation: disco 1.2s linear infinite; }
body.disco .app-card, body.disco .panel { animation: discoBorder 1.2s linear infinite; }

/* ================= Konami arcade ================= */
.arcade-banner {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  z-index: 9996;
  font-family: var(--mono);
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  color: #100; font-weight: 800; padding: 10px 20px;
  border-radius: 999px; letter-spacing: .1em;
  box-shadow: var(--glow-accent);
  animation: toastIn .4s var(--ease);
}

/* ================= Animaties ================= */
@keyframes shake {
  0%,100% { transform: translate(0,0) rotate(0); }
  25% { transform: translate(-6px,2px) rotate(-2deg); }
  50% { transform: translate(6px,-2px) rotate(2deg); }
  75% { transform: translate(-4px,-2px) rotate(-1deg); }
}
@keyframes flashRed { 0%,100% { opacity: 0; } 50% { opacity: .85; } }
@keyframes screenShake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-8px,4px); }
  40% { transform: translate(8px,-4px); }
  60% { transform: translate(-6px,-4px); }
  80% { transform: translate(6px,4px); }
}
@keyframes siren { 0% { opacity: 0; } 50% { opacity: .9; } 100% { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes disco {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes discoBorder {
  0% { border-color: var(--accent); }
  33% { border-color: var(--accent-2); }
  66% { border-color: var(--accent-3); }
  100% { border-color: var(--accent); }
}
@keyframes spinPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ================= Toegankelijkheid / reduced motion ================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Gebruikersvoorkeur of handmatige toggle */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
body.reduce-motion .wheel { transition: none !important; }

.motion-toggle {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  background: rgba(20, 22, 34, .9);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.motion-toggle:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 560px) { .motion-toggle { bottom: 14px; left: 14px; } .toast-wrap { bottom: 14px; right: 14px; } }
