/* ─── Bob: de interactieve setup (public/js/bob-guide.js) ─────────── */
:root {
  --bob-yellow: #fbbf24;
  --bob-amber: #f59e0b;
  --bob-red: #ef4444;
  --bob-ink: #1f2937;
  --bob-coach-w: 410px;
  --bob-card: var(--surface, #fff);
  --bob-soft: rgba(251, 191, 36, 0.12);
}

/* ─── De mascotte ──────────────────────────────────────────────────── */
.bob { position: relative; width: 120px; height: 150px; flex: none; }
.bob-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bob-shadow { fill: rgba(0, 0, 0, 0.16); transform-box: fill-box; transform-origin: center; animation: bob-shadow 3.2s ease-in-out infinite; }
.bob-all { animation: bob-idle 3.2s ease-in-out infinite; transform-box: view-box; transform-origin: 60px 140px; }
.bob-shirt { fill: #2f6fb0; }
.bob-vest { fill: #ff8a1f; }
.bob-stripe { fill: #f3f4f1; opacity: 0.95; }
.bob-collar { fill: none; stroke: #1e4f82; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bob-badge { fill: #fff; stroke: #1e4f82; stroke-width: 1.2; }
.bob-arm-l, .bob-arm-r { fill: none; stroke: #2f6fb0; stroke-width: 12; stroke-linecap: round; }
.bob-hand { fill: #f1c29b; }
.bob-neck { fill: #e2ae86; }
.bob-face { fill: #f6cfaa; }
.bob-ear { fill: #eebd94; }
.bob-beard { fill: #8b5a3c; opacity: 0.32; }
.bob-cheek { fill: #f08a7a; opacity: 0.38; }
.bob-brows path { fill: none; stroke: #6b4226; stroke-width: 2.6; stroke-linecap: round; }
.bob-brows { transition: transform 0.25s; transform-box: view-box; }
.bob-pupils ellipse { fill: var(--bob-ink); }
.bob-glint { fill: #fff; }
.bob-eyes { transform-box: view-box; transform-origin: 60px 62px; animation: bob-blink 4.6s infinite; }
.bob-pupils { transition: transform 0.3s; }
.bob-nose { fill: none; stroke: #c98b62; stroke-width: 2.2; stroke-linecap: round; }
.bob-mustache { fill: #7a4a2a; }
.bob-smile { fill: none; stroke: #7a2e1f; stroke-width: 2.6; stroke-linecap: round; transition: opacity 0.1s; }
.bob-mouth { fill: #7f1d1d; opacity: 0; transform-box: fill-box; transform-origin: center top; }
.bob-helmet-dome { fill: var(--bob-yellow); stroke: #d99a06; stroke-width: 1.4; }
.bob-helmet-ridge { fill: #f9b210; }
.bob-helmet-shine { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 3; stroke-linecap: round; }
.bob-helmet-brim { fill: var(--bob-amber); }
.bob-helmet-logo { font: 800 8.5px/1 Inter, system-ui, sans-serif; fill: #92400e; letter-spacing: 0.3px; }
.bob-head { transform-box: view-box; transform-origin: 60px 92px; transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1); }
.bob-arm { transform-box: view-box; transform-origin: 88px 108px; }
.bob-tool { opacity: 0; transition: opacity 0.2s; }
.bob-tool-h { fill: #8b5a3c; }
.bob-tool-m { fill: #6b7280; }
.bob-think { opacity: 0; }
.bob-think circle { fill: var(--text-dim, #9ca3af); }

.bob-enter { animation: bob-enter 0.75s cubic-bezier(.34, 1.56, .64, 1) both; }
.bob.is-waving .bob-arm { animation: bob-wave 0.42s ease-in-out 6 alternate; }
.bob.is-talking .bob-smile { opacity: 0; }
.bob.is-talking .bob-mouth { opacity: 1; animation: bob-talk 0.2s ease-in-out infinite alternate; }
.bob.is-thinking .bob-think { opacity: 1; }
.bob.is-thinking .bob-think circle { animation: bob-think 1.2s ease-in-out infinite; }
.bob.is-thinking .bob-think circle:nth-child(2) { animation-delay: 0.2s; }
.bob.is-thinking .bob-think circle:nth-child(3) { animation-delay: 0.4s; }
.bob.is-thinking .bob-pupils { transform: translate(2.5px, -2.5px); }
.bob.is-thinking .bob-brows { transform: translateY(-2.5px); }
.bob.is-thinking .bob-head { transform: rotate(-5deg); }
.bob.is-working .bob-tool { opacity: 1; }
.bob.is-working .bob-arm { animation: bob-hammer 0.38s ease-in-out infinite alternate; }
.bob.is-working .bob-pupils { transform: translate(3px, 0); }
.bob.is-happy .bob-all { animation: bob-jump 0.55s cubic-bezier(.34, 1.56, .64, 1) 2; }
.bob.is-happy .bob-smile { stroke-width: 3.4; }
.bob.is-listening .bob-head { transform: rotate(7deg); }
.bob.is-listening .bob-pupils { transform: translate(-2px, 1px); }
.bob.is-sad .bob-brows { transform: translateY(1.5px); }
.bob.is-sad .bob-head { transform: rotate(-3deg) translateY(2px); }

@keyframes bob-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bob-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.9); opacity: 0.75; } }
@keyframes bob-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(0.08); } }
@keyframes bob-wave { from { transform: rotate(-8deg); } to { transform: rotate(26deg); } }
@keyframes bob-talk { from { transform: scaleY(0.25); } to { transform: scaleY(1.1); } }
@keyframes bob-think { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes bob-hammer { from { transform: rotate(-4deg); } to { transform: rotate(-38deg); } }
@keyframes bob-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) scale(1.03); } }
@keyframes bob-enter { from { opacity: 0; transform: translateY(40px) scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ─── Het welkomstvenster ──────────────────────────────────────────── */
.bob-overlay {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 14, 22, 0.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: bob-fade 0.25s ease both;
}
.bob-overlay.is-out { animation: bob-fade-out 0.25s ease both; }
.bob-welcome {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bob-card); color: var(--text); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); padding: 26px 28px 22px;
  animation: bob-rise 0.45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-welcome::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; border-radius: 22px 22px 0 0; pointer-events: none;
  background: radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, 0.28), transparent 60%);
}
.bob-welcome-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.bob-hero { position: relative; display: flex; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.bob-big { width: 150px; height: 188px; margin: -6px 0 -6px -6px; }
.bob-bubble {
  position: relative; flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px 18px;
  margin-bottom: 26px; animation: bob-rise 0.5s 0.25s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-bubble::before {
  content: ''; position: absolute; left: -10px; bottom: 26px; width: 18px; height: 18px; background: var(--bg);
  border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg);
}
.bob-bubble-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bob-amber); margin-bottom: 6px; }
.bob-bubble-text { font-size: 1.12rem; line-height: 1.5; min-height: 3.4em; }
.bob-bubble-text p { margin: 0 0 0.25em; }
.bob-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bob-choice {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  background: var(--bg); color: var(--text); border: 2px solid var(--border); border-radius: 16px; padding: 20px 18px 18px;
  font: inherit; transition: transform 0.18s cubic-bezier(.34, 1.56, .64, 1), border-color 0.15s, box-shadow 0.18s;
  animation: bob-rise 0.5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-choice:nth-child(1) { animation-delay: 0.35s; }
.bob-choice:nth-child(2) { animation-delay: 0.45s; }
.bob-choice:hover, .bob-choice:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); outline: none; }
.bob-choice.is-rec { border-color: rgba(245, 158, 11, 0.6); background: linear-gradient(160deg, rgba(251, 191, 36, 0.14), transparent 70%), var(--bg); }
.bob-choice.is-rec:hover, .bob-choice.is-rec:focus-visible { border-color: var(--bob-amber); box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28); }
.bob-choice.is-pressed { transform: scale(0.97); }
.bob-choice-emoji { font-size: 2rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); flex: none; }
.bob-choice-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bob-choice-title { font-size: 1.08rem; font-weight: 700; }
.bob-choice-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }
.bob-choice-tag { position: absolute; top: -10px; right: 14px; font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--text-dim); color: var(--surface); letter-spacing: 0.02em; }
.bob-choice.is-rec .bob-choice-tag { background: var(--bob-amber); color: #fff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35); }
.bob-welcome-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.bob-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: none; }
.bob-link:hover { text-decoration: underline; }
.bob-link.is-dim { color: var(--text-dim); font-weight: 500; }

.bob-sound, .bob-x, .bob-tool-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--bg); color: var(--text-dim); border: 1px solid var(--border); padding: 0; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.bob-sound:hover, .bob-x:hover, .bob-tool-btn:hover { color: var(--text); transform: translateY(-1px); }
.bob-sound.is-off { color: var(--bob-red); }
.bob-i { width: 17px; height: 17px; }
.bob-replay.is-hint { color: var(--bob-amber); border-color: var(--bob-amber); animation: bob-ping 1.4s ease-out infinite; }

/* ─── De coach-kaart ──────────────────────────────────────────────── */
body.bob-on { --bob-shift: 0px; }
@media (min-width: 1100px) {
  body.bob-on .main { margin-right: calc(var(--bob-coach-w) + 120px); transition: margin-right 0.35s ease; }
}
body.bob-active .cr-root, body.bob-active .chat-root, body.bob-active .st-panel { display: none !important; }

.bob-coach {
  position: fixed; z-index: 10040; right: 20px; bottom: 20px; width: var(--bob-coach-w); max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; background: var(--bob-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(251, 191, 36, 0.18);
  padding: 14px 18px 14px; animation: bob-rise 0.5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-coach.is-pop .bob-coach-body { animation: bob-swap 0.35s ease both; }
.bob-coach-bob { position: absolute; left: 6px; top: -92px; width: 92px; height: 115px; pointer-events: none; }
.bob-coach-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 86px; min-height: 30px; }
.bob-coach-who { display: flex; flex-direction: column; line-height: 1.2; }
.bob-coach-who strong { font-size: 0.98rem; }
.bob-coach-who span { font-size: 0.76rem; color: var(--text-dim); }
.bob-coach-tools { display: flex; gap: 5px; }
.bob-coach-tools .bob-tool-btn { width: 30px; height: 30px; border-radius: 9px; }
.bob-phases { list-style: none; display: flex; gap: 4px; margin: 12px 0 4px; padding: 0; }
.bob-phases li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.7rem; font-weight: 600; color: var(--text-dim);
  padding: 5px 4px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); white-space: nowrap; transition: all 0.3s;
}
.bob-phase-e { font-size: 0.85rem; }
.bob-phases li.is-done { color: var(--green, #10b981); border-color: rgba(16, 185, 129, 0.35); }
.bob-phases li.is-on { color: #92400e; background: var(--bob-yellow); border-color: var(--bob-amber); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.bob-coach-body { overflow-y: auto; min-height: 0; padding: 6px 2px 2px; margin: 0 -2px; }
.bob-title { font-size: 1.12rem; font-weight: 700; margin: 8px 0 6px; line-height: 1.3; }
.bob-text { font-size: 0.93rem; line-height: 1.55; color: var(--text); margin: 0 0 6px; }
.bob-text p { margin: 0 0 0.45em; }
.bob-text strong { color: var(--text); background: linear-gradient(transparent 60%, rgba(251, 191, 36, 0.35) 60%); }
.bob-w { display: inline-block; animation: bob-word 0.32s ease both; }
.bob-question { font-weight: 700; font-size: 0.98rem; margin: 10px 0 8px; animation: bob-rise 0.4s ease both; }
.bob-opts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.bob-opts.is-grid { display: grid; grid-template-columns: 1fr 1fr; }
.bob-opt {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px; min-height: 48px;
  transition: transform 0.16s cubic-bezier(.34, 1.56, .64, 1), border-color 0.15s, background 0.15s, box-shadow 0.15s;
  animation: bob-opt-in 0.4s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-opt:hover:not(:disabled), .bob-opt:focus-visible { transform: translateY(-2px) scale(1.015); border-color: var(--accent); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); outline: none; }
.bob-opt-ok:hover:not(:disabled), .bob-opt-ok:focus-visible { border-color: var(--green, #10b981); }
.bob-opt:disabled { cursor: default; opacity: 0.45; }
.bob-opt.is-picked { opacity: 1 !important; border-color: var(--bob-amber); background: var(--bob-soft); transform: scale(0.97); }
.bob-opt-e { font-size: 1.3rem; line-height: 1; flex: none; width: 1.6em; text-align: center; }
.bob-opt-t { display: flex; flex-direction: column; min-width: 0; }
.bob-opt-l { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.bob-opt-h { font-size: 0.75rem; color: var(--text-dim); line-height: 1.3; margin-top: 1px; }
.bob-free { display: flex; gap: 6px; margin: 10px 0 2px; animation: bob-rise 0.4s 0.5s ease both; }
.bob-input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.bob-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2); }
.bob-mic, .bob-send {
  width: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-dim); transition: all 0.15s;
}
.bob-send { background: var(--accent); color: #fff; border-color: var(--accent); }
.bob-send:disabled { opacity: 0.4; cursor: default; }
.bob-mic.is-on { background: var(--bob-red); color: #fff; border-color: var(--bob-red); animation: bob-ping 1.2s ease-out infinite; }
.bob-coach-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 0; }
.bob-coach-foot:empty { display: none; }
.bob-foot-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
  background: none; border: 1px solid transparent; border-radius: 9px; padding: 5px 8px; cursor: pointer;
}
.bob-foot-btn:hover { color: var(--text); border-color: var(--border); }
.bob-foot-btn .bob-i { width: 14px; height: 14px; }
.bob-foot-btn.is-danger { color: #fff; background: var(--bob-red); }
.bob-progress { flex: 1; height: 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.bob-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--bob-yellow), var(--bob-amber)); border-radius: 99px; transition: width 0.6s ease; }
.bob-stop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); animation: bob-rise 0.3s ease both; }
.bob-stop > span { flex: 1 1 100%; }

/* Denken en werken */
.bob-thinking { display: flex; align-items: center; gap: 12px; padding: 18px 4px; color: var(--text-dim); font-size: 0.92rem; }
.bob-dots { display: flex; gap: 5px; }
.bob-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--bob-amber); animation: bob-dot 1s ease-in-out infinite; }
.bob-dots span:nth-child(2) { animation-delay: 0.15s; }
.bob-dots span:nth-child(3) { animation-delay: 0.3s; }
.bob-thinking-text { animation: bob-fade 0.4s ease both; }
.bob-work { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.bob-work li { position: relative; padding-left: 24px; font-size: 0.85rem; color: var(--text); animation: bob-rise 0.3s ease both; }
.bob-work li::before {
  content: ''; position: absolute; left: 2px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--bob-amber); border-right-color: transparent; animation: bob-spin 0.8s linear infinite;
}
.bob-work li.is-done { color: var(--text-dim); }
.bob-work li.is-done::before { animation: none; border: 0; content: '✓'; color: var(--green, #10b981); font-weight: 800; top: -1px; left: 3px; }
.bob-loading-bar { height: 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; position: relative; margin-top: 8px; }
.bob-loading-bar::after {
  content: ''; position: absolute; inset: 0; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--bob-yellow), var(--bob-amber)); animation: bob-load 1.3s ease-in-out infinite;
}
.bob-loading-bar.is-full::after { animation: none; width: 100%; transition: width 0.4s; }
.bob-ok { font-weight: 700; color: var(--green, #10b981); margin: 10px 0 0; animation: bob-rise 0.35s ease both; }
.bob-summary { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 5px; }
.bob-summary li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; animation: bob-rise 0.35s ease both; }
.bob-ok-i { color: var(--green, #10b981); flex: none; margin-top: 2px; }
.bob-more { color: var(--text-dim); }

/* Keuzes van de agent, met voorbeeldgrafiek */
.bob-agentq { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
.bob-aq {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px;
  transition: transform 0.16s, border-color 0.15s; animation: bob-opt-in 0.4s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-aq:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); }
.bob-aq:disabled { opacity: 0.45; cursor: default; }
.bob-aq.is-picked { opacity: 1; border-color: var(--bob-amber); }
.bob-aq-l { font-weight: 700; font-size: 0.9rem; }
.bob-aq-d { font-size: 0.78rem; color: var(--text-dim); }
.bob-aq-pv { height: 120px; margin-top: 4px; pointer-events: none; }

/* ─── Spotlight, rood kader, pijl ─────────────────────────────────── */
.bob-hole {
  position: fixed; z-index: 10030; pointer-events: none; border-radius: 16px;
  box-shadow: 0 0 0 200vmax rgba(10, 14, 22, 0.5);
  transition: left 0.45s cubic-bezier(.4, 0, .2, 1), top 0.45s cubic-bezier(.4, 0, .2, 1), width 0.45s cubic-bezier(.4, 0, .2, 1), height 0.45s cubic-bezier(.4, 0, .2, 1), box-shadow 0.4s;
}
.bob-hole.is-none { box-shadow: 0 0 0 200vmax rgba(10, 14, 22, 0.28); }
.bob-frame {
  position: fixed; z-index: 10031; pointer-events: none; border-radius: 16px; border: 3px solid var(--bob-red);
  opacity: 0; transform: scale(1.06);
  transition: left 0.45s cubic-bezier(.4, 0, .2, 1), top 0.45s cubic-bezier(.4, 0, .2, 1), width 0.45s cubic-bezier(.4, 0, .2, 1), height 0.45s cubic-bezier(.4, 0, .2, 1), opacity 0.3s, transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}
.bob-frame.is-in { opacity: 1; transform: none; animation: bob-ring 1.8s ease-out 0.4s infinite; }
.bob-frame-tag {
  position: absolute; left: 14px; top: -15px; background: var(--bob-red); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 14px rgba(239, 68, 68, 0.4); white-space: nowrap;
}
.bob-frame.tag-below .bob-frame-tag { top: auto; bottom: -15px; }
.bob-arrow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 10035; pointer-events: none; opacity: 0; transition: opacity 0.3s; overflow: visible; }
.bob-arrow.is-in { opacity: 1; }
.bob-arrow-path { fill: none; stroke: var(--bob-red); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 3px 6px rgba(239, 68, 68, 0.45)); stroke-dasharray: 1400; stroke-dashoffset: 0; }
.bob-arrow-path.is-draw { animation: bob-draw 0.7s ease-out both, bob-march 1.1s linear 0.7s infinite; }

/* ─── Pauze-pil ───────────────────────────────────────────────────── */
.bob-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 10040; display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bob-card); color: var(--text); border: 2px solid var(--bob-amber); border-radius: 999px; padding: 4px 18px 4px 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); font: inherit; animation: bob-rise 0.45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bob-pill:hover { transform: translateY(-2px); }
.bob-mini { width: 46px; height: 56px; margin-top: -14px; }
.bob-pill-t { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.bob-pill-t span { font-size: 0.78rem; color: var(--text-dim); }

/* ─── Confetti ────────────────────────────────────────────────────── */
.bob-confetti { position: fixed; inset: 0; z-index: 10060; pointer-events: none; overflow: hidden; }
.bob-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: bob-confetti 2.2s cubic-bezier(.2, .7, .3, 1) both; }

@keyframes bob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bob-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes bob-swap { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes bob-word { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bob-opt-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bob-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes bob-spin { to { transform: rotate(360deg); } }
@keyframes bob-load { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes bob-ring { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); } }
@keyframes bob-ping { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
@keyframes bob-draw { from { stroke-dasharray: 1400; stroke-dashoffset: 1400; } to { stroke-dasharray: 1400; stroke-dashoffset: 0; } }
@keyframes bob-march { from { stroke-dasharray: 14 9; stroke-dashoffset: 46; } to { stroke-dasharray: 14 9; stroke-dashoffset: 0; } }
@keyframes bob-confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 520px)) rotate(var(--r)); opacity: 0; }
}

/* ─── Kleinere schermen: de kaart als onderblad ───────────────────── */
@media (max-width: 1099px) {
  .bob-coach { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 52vh; padding: 12px 14px; border-radius: 18px; }
  .bob-coach-bob { width: 70px; height: 88px; top: -70px; }
  .bob-coach-head { padding-left: 68px; }
  .bob-phases li span:not(.bob-phase-e) { display: none; }
  .bob-pill { right: 12px; bottom: 12px; }
}
@media (max-width: 680px) {
  .bob-welcome { padding: 20px 16px 16px; border-radius: 18px; }
  .bob-hero { gap: 6px; }
  .bob-big { width: 96px; height: 120px; }
  .bob-bubble { padding: 12px 14px; margin-bottom: 14px; }
  .bob-bubble-text { font-size: 0.98rem; }
  .bob-choices { grid-template-columns: 1fr; }
  .bob-opts.is-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bob *, .bob-ui, .bob-ui *, .bob-overlay, .bob-overlay * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Smallere pagina terwijl Bob open staat: KPI's niet midden in een getal breken. */
@media (min-width: 1100px) {
  body.bob-on .kpi-value { font-size: clamp(1.1rem, 0.55rem + 1vw, 1.6rem); overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
  body.bob-on .kpi-label { overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
