/* Spanjemaatje chat-first quiz popup (see quiz.js). Sized for 60 to 80 year old readers:
   nothing under 16px, options 68px tall, AAA contrast, rounded rectangles, never pills. */
.qz {
  --qz-ink: #22150B;
  --qz-ink-2: #3B2817;
  --qz-sun: #F4B63F;
  --qz-sun-soft: #FFF1CF;
  --qz-line: rgba(34, 21, 11, .22);
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  font-family: "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--qz-ink);
}
.qz[hidden] { display: none; }
html.qz-open, html.qz-open body { overflow: hidden; }

.qz-shade { position: absolute; inset: 0; background: rgba(34, 21, 11, .68); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.qz-card {
  position: relative; width: min(600px, 100% - 40px); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #FFFDF8; border-radius: 22px; padding: 22px 34px 32px;
  box-shadow: 0 40px 90px -30px rgba(40, 18, 2, .65), 0 0 0 1px rgba(34, 21, 11, .1);
}
.qz.qz-on .qz-shade { animation: qz-fade .2s ease both; }
.qz.qz-on .qz-card { animation: qz-rise .32s cubic-bezier(.22, 1, .36, 1) both; }
.qz-body.qz-in { animation: qz-fade .2s ease both; }
@keyframes qz-fade { from { opacity: 0; } }
@keyframes qz-rise { from { opacity: 0; transform: translateY(36px); } }

/* top row: back, progress, close */
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.qz-back, .qz-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border: 0; background: transparent; color: var(--qz-ink); cursor: pointer;
  font: 700 18px/1 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif; border-radius: 12px;
}
.qz-back { padding: 0 12px 0 6px; text-decoration: underline; text-underline-offset: 4px; }
.qz-back span { font-size: 22px; text-decoration: none; }
.qz-x { width: 48px; font-size: 34px; font-weight: 400; margin-left: auto; }
.qz-back:hover, .qz-x:hover { background: rgba(34, 21, 11, .07); }
.qz-hide { visibility: hidden; }
.qz-bar { flex: 1; height: 10px; border-radius: 6px; background: #EFE3CF; overflow: hidden; }
.qz-bar span { display: block; height: 100%; width: 6%; border-radius: 6px; background: var(--qz-ink); transition: width .4s cubic-bezier(.22, 1, .36, 1); }

/* question */
.qz-eyebrow { margin: 0 0 10px; font: 700 17px/1.2 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif; color: var(--qz-ink-2); }
.qz-eyebrow-warn { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #FFF1CF; box-shadow: inset 0 0 0 1.5px #C98A1E; }
.qz-h { margin: 0 0 8px; font: 800 32px/1.15 "Figtree", ui-rounded, system-ui, sans-serif; letter-spacing: -.02em; outline: none; text-wrap: balance; }
.qz-hint { margin: 0 0 20px; font-size: 19px; line-height: 1.5; color: var(--qz-ink-2); }
.qz-h + .qz-opts { margin-top: 20px; }

.qz-opts { display: grid; gap: 12px; }
.qz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px 20px;
  border: 2px solid var(--qz-line); border-radius: 14px; background: #fff; color: var(--qz-ink); cursor: pointer;
  font: 700 21px/1.3 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif; text-align: left;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.qz-opt-t { flex: 1; }
.qz-chev { flex: none; width: 11px; height: 11px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg); opacity: .45; margin-right: 4px; transition: opacity .2s, transform .2s; }
@media (hover: hover) {
  .qz-opts.hover-ok .qz-opt:hover { border-color: var(--qz-ink); box-shadow: 0 10px 22px -16px rgba(40, 18, 2, .7); transform: translateY(-1px); }
  .qz-opts.hover-ok .qz-opt:hover .qz-chev { opacity: 1; transform: translateX(2px) rotate(45deg); }
}
.qz-opt:focus-visible { outline: 3px solid var(--qz-ink); outline-offset: 3px; }
.qz-opt.is-picked { border-color: var(--qz-ink); background: var(--qz-sun); box-shadow: 0 0 0 3px rgba(244, 182, 63, .45); }
.qz-opt.is-picked .qz-chev { opacity: 1; }

/* the message preview, drawn as a sent WhatsApp bubble */
.qz-wa { margin: 4px 0 20px; padding: 14px; border-radius: 14px; background: #EFE7DC; }
.qz-bubble {
  margin: 0 0 0 auto; width: fit-content; max-width: 94%; padding: 10px 14px 12px; border-radius: 12px 3px 12px 12px;
  background: #D9FDD3; color: #111B21; font-size: 18px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .14);
}

/* big action */
.qz-go {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 68px; padding: 14px 20px;
  border: 0; border-radius: 14px; cursor: pointer; background: var(--qz-sun); color: var(--qz-ink);
  font: 800 24px/1.15 "Figtree", ui-rounded, system-ui, sans-serif;
  box-shadow: inset 0 0 0 2px var(--qz-ink), 0 5px 0 var(--qz-ink); margin-bottom: 5px;
  transition: transform .12s, background-color .15s, box-shadow .12s;
}
.qz-go:hover { background: #F7C252; }
.qz-go:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--qz-ink), 0 1px 0 var(--qz-ink); }
.qz-ic { width: 28px; height: 28px; flex: none; }
.qz-note { margin: 16px 0 0; font-size: 18px; line-height: 1.45; text-align: center; color: var(--qz-ink-2); }

/* sent */
.qz-ok { display: grid; place-items: center; width: 64px; height: 64px; margin: 6px 0 18px; border-radius: 18px; background: #2F6B3B; color: #fff; }
.qz-ok svg { width: 36px; height: 36px; }
.qz-fallback {
  display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 8px 0 12px; padding: 12px 16px;
  border-radius: 14px; background: var(--qz-sun-soft); box-shadow: inset 0 0 0 2px var(--qz-ink);
  color: var(--qz-ink); font: 700 20px/1.3 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 4px; text-align: center;
}
.qz-close-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--qz-ink); color: var(--qz-ink); cursor: pointer;
  font: 700 20px/1.2 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif;
}
.qz-close-btn:hover { background: #FFF6E3; }
.qz-restart {
  display: block; margin: 10px auto 0; min-height: 48px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  color: var(--qz-ink); font: 700 17px/1.2 "SM Digits", "Atkinson Hyperlegible", system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 4px;
}
.qz-mono { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--qz-line); font: 16px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; }

/* phones: the quiz is the whole screen */
@media (max-width: 640px) {
  .qz { align-items: stretch; }
  .qz-card {
    width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0;
    padding: max(10px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom));
  }
  .qz-top { margin-bottom: 18px; }
  .qz-h { font-size: 29px; }
  .qz-opt { font-size: 20px; min-height: 64px; }
  .qz-go { font-size: 22px; min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .qz.qz-on .qz-shade, .qz.qz-on .qz-card, .qz-body.qz-in { animation: none; }
  .qz-bar span, .qz-opt, .qz-chev { transition: none; }
}
