/* Bip de Robot – gedeelde stijl. Geen externe lettertypen: afgeronde systeemletters. */
:root {
  --canvas: #efeeeb;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #5d5a54;
  --line: #dcd9d2;
  --red: #d12424;
  --red-dark: #9e1717;
  --yellow: #ffc61a;
  --yellow-dark: #d99e00;
  --go: #2dbe60;
  --go-dark: #1e8a44;
  --world: #6fb45c;
  --world-soft: #f6e3b4;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* Blockly verbergt onderdelen (zoals de schuifbalk van de lade) met display="none" op een svg */
svg[display="none"], g[display="none"] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }

/* ---------- knoppen met een 3D-randje ---------- */
.btn {
  --bg: var(--paper);
  --edge: #c8c4bb;
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  min-width: 48px;
  padding: .55em 1.15em;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--edge);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn svg { width: 1.3em; height: 1.3em; fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon { padding: 0; width: 48px; font-size: 1.3rem; }
.btn-icon svg { fill: none; }
.btn-light { --bg: var(--paper); --edge: #cfcbc2; }
.btn-go { --bg: var(--go); --edge: var(--go-dark); --fg: #fff; }
.btn-go svg { stroke: none; }
.btn-red { --bg: var(--red); --edge: var(--red-dark); --fg: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 40px;
  padding: .35em .85em;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  touch-action: manipulation;
}
.chip:hover { border-color: #bdb9b0; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
