/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Brand palette */
  --ink:          #3b2460;
  --ink-light:    #7b6891;
  --pink:         #ff5c8a;
  --pink-light:   #ffc4da;
  --pink-pale:    #fff0f6;
  --blue:         #30a8ee;
  --blue-light:   #b6dffc;
  --blue-pale:    #e8f5ff;
  --gold:         #ffb020;
  --gold-light:   #ffd28e;
  --gold-pale:    #fff7e6;

  /* Card colours (used inside bingo card render) */
  --pink-line:    #f0a0c4;
  --blue-line:    #8cc8f0;

  /* Shadows */
  --shadow-card:  0 14px 36px rgba(98, 79, 117, 0.13);
  --shadow-panel: 0 4px 20px rgba(98, 79, 117, 0.10);

  /* Layout */
  --sidebar-w:    340px;
  --page-max:     1600px;
  --radius-lg:    20px;
  --radius-md:    12px;
  --radius-sm:    8px;

  /* Typography */
  --font-ui: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-card: "Trebuchet MS", "Comic Sans MS", "Arial Rounded MT Bold", sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: #faf8ff;
  min-height: 100dvh;
}

/* ═══════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: white;
  border-bottom: 1px solid #ede5f8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.site-header__actions { margin-left: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.brand__star { font-size: 22px; line-height: 1; }

.brand__name {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.brand__tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-light);
  padding-left: 16px;
  border-left: 1px solid #e0d6f0;
}

.btn-header-cta {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5c8a 0%, #d050b0 100%);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  padding: 9px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 92, 138, 0.35);
  transition: box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn-header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 92, 138, 0.45); }
.btn-header-cta:active { transform: translateY(0); }

.btn-header-cta__price {
  background: rgba(255,255,255,0.22);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #fff0f8 0%, #faf5ff 50%, #eff6ff 100%);
  border-bottom: 1px solid #ede5f8;
  padding: 40px 24px 32px;
}

.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), #d050b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__br { display: none; }
@media (min-width: 640px) { .hero__br { display: inline; } }

.hero__desc {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero__desc strong { color: var(--ink); }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge--pink    { background: var(--pink-pale);  color: var(--pink);  border: 1.5px solid var(--pink-light); }
.badge--blue    { background: var(--blue-pale);  color: var(--blue);  border: 1.5px solid var(--blue-light); }
.badge--neutral { background: var(--gold-pale);  color: #a06800;      border: 1.5px solid var(--gold-light); }

/* ═══════════════════════════════════════════════════════════
   WORKSPACE  (sidebar + preview)
   ═══════════════════════════════════════════════════════════ */
.workspace {
  display: flex;
  align-items: flex-start;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 24px;
  gap: 28px;
}

/* ── CONFIGURATOR SIDEBAR ── */
.configurator {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: calc(57px + 16px);   /* header height + gap */
  max-height: calc(100dvh - 57px - 32px);
  overflow-y: auto;
  background: white;
  border: 1px solid #ede5f8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
}

/* Hide mobile toggle on desktop */
.configurator__mobile-toggle { display: none; }

.config-body {
  padding: 20px 18px 0;
  flex: 1;
  overflow-y: auto;
}

.config-section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0eaf8;
}
.config-section:last-child { border-bottom: none; margin-bottom: 0; }

.config-section--activities .activity-list {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.config-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.config-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.config-row--custom { margin-top: 8px; }

/* Grid size buttons */
.grid-option {
  appearance: none;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.grid-option:hover { border-color: #ccc; }
.grid-option.active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }

/* Age selector buttons */
.age-option {
  appearance: none;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.age-option:hover { border-color: #ccc; }
.age-option[data-age="young"].active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }
.age-option[data-age="old"].active   { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }

/* Sibling selector — same shape as age-option */
.sibling-option {
  appearance: none;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.sibling-option:hover { border-color: #ccc; }
.sibling-option.active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }

/* Season buttons */
.season-option {
  appearance: none;
  border: 2px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
}
.season-option:hover { border-color: #ccc; }
.season-option.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

/* Color swatches */
.color-preset {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e0d8f0;
  cursor: pointer;
  padding: 0;
  transition: border-color .12s, transform .1s;
}
.color-preset:hover { transform: scale(1.12); }
.color-preset.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ink);
}

.name-input {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  transition: border-color .12s;
}
.name-input:focus { outline: none; border-color: var(--pink); background: white; }
.name-input::placeholder { color: #bbb; font-weight: 700; }

.color-custom-label { font-size: 12px; font-weight: 700; color: var(--ink-light); }
.color-picker {
  width: 40px; height: 30px;
  border: 2px solid #ddd; border-radius: 6px;
  cursor: pointer; padding: 2px;
}

/* Activity lists */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.activity-item input { accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }

.age-group-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}
.age-group-title.pink { background: #ffe8f2; color: #c94880; }
.age-group-title.blue { background: #e4f3ff; color: #3584c4; }

/* ── CTA BLOCK ── */
.cta-block {
  padding: 16px 18px 20px;
  border-top: 1px solid #f0eaf8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  appearance: none;
  border: 2px solid #d8cce8;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  width: 100%;
}
.btn-secondary:hover { border-color: #b09dc0; background: #faf5ff; }

.btn-primary {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5c8a 0%, #d050b0 100%);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(255, 92, 138, 0.35);
  transition: box-shadow .15s, transform .1s, opacity .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 92, 138, 0.45); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary:active { transform: translateY(0); }

.btn-primary__label  { font-size: 16px; }
.btn-primary__price  {
  background: rgba(255,255,255,0.22);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

/* ── PREVIEW AREA ── */
.preview { flex: 1; min-width: 0; }

.cards {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   STICKY MOBILE CTA  (hidden on desktop)
   ═══════════════════════════════════════════════════════════ */
.mobile-cta {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid #ede5f8;
  padding: 20px 24px;
  margin-top: 48px;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-light);
}

.footer-link {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 13px;
}
.footer-link:hover { color: var(--ink); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   BINGO CARDS  (print-safe — keep font-card, no Nunito)
   ═══════════════════════════════════════════════════════════ */
.card {
  font-family: var(--font-card);
  color: var(--ink);
  background: #fffde7;
  border: 1px solid rgba(186, 169, 204, 0.35);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  padding: 22px 20px 16px;
  height: 1160px;
  display: flex;
  flex-direction: column;
}
.card.pink { background: linear-gradient(155deg, #fff0f5 0%, #fffde7 55%, #fce4ec 100%); }
.card.blue  { background: linear-gradient(155deg, #e8f5e9 0%, #e3f2fd 55%, #f3e5f5 100%); }

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
  overflow: hidden;
}
.header.pink { background: linear-gradient(90deg, #ffd6e8 0%, #ffecf4 70%, #fff8fc 100%); border: 4px solid var(--pink-light); }
.header.blue  { background: linear-gradient(90deg, #d4efff 0%, #e9f6ff 70%, #f8fcff 100%); border: 4px solid var(--blue-light); }
.header::after { display: none; }

.mascot {
  width: 64px; height: 64px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.mascot img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
}

.icon img {
  width: auto; height: auto; display: block;
  max-width: 100%; max-height: 100%;
  image-rendering: auto;
}

.title {
  font-size: clamp(22px, 7vw, 44px); line-height: 1; letter-spacing: 1px; font-weight: 900;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.title .l0 { color: #ff5c8a; }
.title .l1 { color: #ff9e2e; }
.title .l2 { color: #66c030; }
.title .l3 { color: #30a8ee; }
.title .l4 { color: #d050b0; }
.age { font-size: clamp(14px, 5vw, 24px); color: #4d5fa2; font-weight: 800; }

.subline {
  display: flex; justify-content: space-between; gap: 10px;
  margin: 0 2px 14px; font-size: 18px; font-weight: 700;
}
.subline span {
  background: #fff8de; border: 2px dashed #f0c060; border-radius: 14px;
  padding: 7px 12px; flex: 1; text-align: center;
}

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-radius: 24px; overflow: hidden; background: white;
  flex: 1; grid-auto-rows: 1fr;
}
.grid.pink { border: 4px solid var(--pink-line); }
.grid.blue  { border: 4px solid var(--blue-line); }

.cell {
  min-height: 0; padding: 8px 8px 6px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; position: relative;
  gap: 4px;
}
.grid.pink .cell:not(.col-last) { border-right:   2px dashed var(--pink-line); }
.grid.pink .cell:not(.row-last) { border-bottom:  2px dashed var(--pink-line); }
.grid.blue .cell:not(.col-last) { border-right:   2px dashed var(--blue-line); }
.grid.blue .cell:not(.row-last) { border-bottom:  2px dashed var(--blue-line); }

.icon {
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.task {
  font-size: 14px; line-height: 1.14; font-weight: 800;
  max-width: 100%; text-wrap: balance;
}

.grid.rows-3 .icon { width: 108px; height: 108px; }
.grid.rows-4 .icon { width: 98px;  height: 98px; }
.grid.rows-5 .icon { width: 88px;  height: 88px; }

.footer {
  margin-top: 12px; display: flex; justify-content: center; gap: 18px;
  flex-wrap: wrap; font-size: 26px; font-weight: 900; text-align: center;
}
.footer span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 16px;
  background: #fff3df; border: 3px solid var(--gold-light);
}
.footer span::before { content: "✦"; font-size: 16px; color: var(--pink); }
.footer span::after  { content: "♡"; font-size: 16px; color: var(--pink); }

.note {
  min-height: 38px; margin-top: 8px; text-align: center;
  font-size: 15px; line-height: 1.25; font-weight: 700; color: var(--ink-light);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .workspace {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .configurator {
    width: 100%;
    flex: none;
    position: static;
    max-height: none;
    overflow: visible;
  }

  /* Show mobile toggle, hide config body by default */
  .configurator__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    appearance: none;
    background: none;
    border: none;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
  }

  .configurator__mobile-arrow { font-size: 18px; color: var(--ink-light); }

  .config-body {
    display: none;
    padding: 0 18px 0;
  }
  .config-body--open { display: block; }

  .config-section--activities .activity-list {
    max-height: none;
  }

  /* CTA block becomes row on mobile */
  .cta-block { display: none; } /* replaced by sticky mobile bar */

  /* Show sticky mobile CTA */
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #ede5f8;
    box-shadow: 0 -4px 20px rgba(98, 79, 117, 0.12);
    gap: 10px;
    z-index: 200;
  }

  .btn-secondary--sm {
    width: 48px; height: 48px; min-width: 48px;
    padding: 0; font-size: 20px; border-radius: 50%;
  }

  .btn-primary--full { flex: 1; }

  /* Card height auto on mobile */
  .card  { height: auto; min-height: 1160px; }

  /* Add bottom padding so sticky bar doesn't overlap last card */
  .preview { padding-bottom: 80px; }
}

@media (max-width: 1000px) {
  .site-header__actions { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 24px 16px; }
  .hero__title { font-size: 24px; }
  .workspace { padding: 12px; }
  .site-header__inner { padding: 10px 16px; }
  .brand__tagline { display: none; }

  /* Shrink card header so title fits on one line */
  .header { gap: 8px; padding: 10px 14px; }
  .title { letter-spacing: 0; gap: 1px; }
}

/* ═══════════════════════════════════════════════════════════
   MASCOT / HEADER-COLOR / TAG OPTIONS
   Shape shared with .age-option / .sibling-option conventions.
   ═══════════════════════════════════════════════════════════ */
.mascot-option,
.header-color-option,
.tag-option {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e0dae8;
  background: white;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mascot-option:hover,
.header-color-option:hover,
.tag-option:hover { border-color: #ccc; }

.mascot-option:focus-visible,
.header-color-option:focus-visible,
.tag-option:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.mascot-option.active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }
.header-color-option[data-header-color="pink"].active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }
.header-color-option[data-header-color="blue"].active { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }
.tag-option.active { border-color: var(--pink); background: var(--pink-pale); color: var(--pink); }

/* ═══════════════════════════════════════════════════════════
   TAG FILTER BAR + HINT
   ═══════════════════════════════════════════════════════════ */
.config-row--wrap { flex-wrap: wrap; gap: 6px; }
.config-row--wrap .tag-option { flex: 0 0 calc(50% - 3px); }

.config-hint {
  font-size: 12px;
  color: var(--ink-light);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   ACTIVITY ITEM — LABEL + TAG BADGES
   ═══════════════════════════════════════════════════════════ */
.activity-item__label { flex: 1; }
.activity-item__badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }

.tag-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: lowercase;
  background: #ece6f5;
  color: var(--ink-light);
  white-space: nowrap;
}
.tag-badge--basis     { background: #fff3e0; color: #a05f20; }
.tag-badge--gevorderd { background: #e3f2fd; color: #1e6fa8; }
.tag-badge--autisme   { background: #e8f5e9; color: #2e7a3a; }
.tag-badge--hsp       { background: #f3e5f5; color: #7b3590; }
.tag-badge--hb        { background: #fff8e1; color: #8a6d1c; }

.config-input-wrapper { margin-top: 2px; }
.config-input-wrapper input { width: 100%; }


/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
  .site-header, .hero, .configurator, .mobile-cta, .site-footer { display: none; }
  .workspace { padding: 0; }
  .preview { padding: 0; }
  .card { box-shadow: none; height: auto; min-height: 0; break-inside: avoid; }
}
