/* ============================================================================
 * picks.css — Picks: the swipe deck behind the heart ring at the head of the
 * stories row (public/js/picks/). Token-only (--hz-*): every colour, size,
 * duration and easing comes from the design system (tokens.css, --hz-pick-*),
 * so both themes and the Telegram host follow on their own. Avatars ride the
 * app's `.av` tile, skill tiles `.ag-chip-spark`. Motion is compositor-only
 * (transform / opacity) and switched off by prefers-reduced-motion (.hz-pk--still).
 * ========================================================================== */

/* ── The stage ────────────────────────────────────────────────────────────── */
.hz-pk {
  position: fixed; inset: 0; z-index: var(--hz-pick-z);
  display: flex; align-items: center; justify-content: center;
  color: var(--hz-story-ink);
  opacity: 0; transition: opacity var(--hz-dur-slow) var(--hz-ease-out);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}
.hz-pk--in { opacity: 1; }
.hz-pk-scrim { position: absolute; inset: 0; background: var(--hz-story-stage-wide); }
.hz-pk-card-wrap {
  position: relative; width: var(--hz-pick-card-w); max-width: 100%;
  display: flex; flex-direction: column; gap: var(--hz-space-3);
  padding: var(--hz-space-3) 0;
  /* Never taller than the screen: the head and the foot keep their size, the card takes what is left (.hz-pk-stack). */
  max-height: 100%; box-sizing: border-box;
}

/* ── Head: progress, count, streak, close ─────────────────────────────────── */
.hz-pk-head { flex: none; display: flex; flex-direction: column; gap: var(--hz-space-2); padding: 0 var(--hz-space-2); }
.hz-pk-progress { height: var(--hz-pick-progress-h); border-radius: var(--hz-radius-pill); background: var(--hz-story-track); overflow: hidden; }
.hz-pk-progress-fill { display: block; height: 100%; width: 100%; background: var(--hz-text-onbrand); transform-origin: left center; transform: scaleX(0); transition: transform var(--hz-dur-slow) var(--hz-ease-out); }
.hz-pk--rtl .hz-pk-progress-fill { transform-origin: right center; }
.hz-pk-head-row { display: flex; align-items: center; gap: var(--hz-space-3); min-height: var(--hz-tap-min); }
.hz-pk-count { font-weight: var(--hz-weight-semibold); font-size: var(--hz-text-sm); }
.hz-pk-streak { display: inline-flex; align-items: center; gap: var(--hz-space-1); font-size: var(--hz-text-sm); color: var(--hz-text-onbrand); opacity: .9; }
.hz-pk-streak-ic { width: 16px; height: 16px; fill: var(--hz-accent-pink); stroke: none; }
.hz-pk-streak--big { justify-content: center; font-size: var(--hz-text-base); margin: 0 0 var(--hz-space-2); }
.hz-pk-streak--big .hz-pk-streak-ic { width: 22px; height: 22px; }
.hz-pk-icon-btn {
  margin-inline-start: auto; width: var(--hz-tap-min); height: var(--hz-tap-min);
  border: 0; border-radius: var(--hz-radius-pill); background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hz-pk-icon-btn svg { width: var(--hz-story-icon); height: var(--hz-story-icon); }
.hz-pk-icon-btn:focus-visible, .hz-pk-btn:focus-visible, .hz-pk-opt:focus-visible, .hz-pk-door:focus-visible, .hz-pk-cta:focus-visible, .hz-pk-link:focus-visible { outline: var(--hz-story-focus); outline-offset: var(--hz-story-focus-offset); }

/* ── The stack ────────────────────────────────────────────────────────────── */
/* The card is the one part that gives: on a short screen (an iPhone SE, a two-line hint in German) it shrinks to what the
   head and the foot leave, so they are never pushed off — and the card's heroes follow its height (@container below). */
.hz-pk-stack { position: relative; flex: 0 1 var(--hz-pick-card-h); height: var(--hz-pick-card-h); min-height: 0; touch-action: none; container-type: size; }
.hz-pk-card {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--hz-pick-card-radius);
  background: var(--pk-card-bg, var(--hz-pick-card-bg));
  box-shadow: var(--hz-pick-card-shadow);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--hz-space-5);
  box-sizing: border-box;
  user-select: none; -webkit-user-select: none;
  container-type: size;
  will-change: transform;
  transition: transform var(--hz-dur-slow) var(--hz-ease-spring), opacity var(--hz-dur-slow) var(--hz-ease-out);
}
.hz-pk-card--drag { transition: none; cursor: grabbing; }
.hz-pk-card--behind { transform: translateY(var(--hz-pick-stack-shift)) scale(var(--hz-pick-stack-scale)); opacity: .85; pointer-events: none; }
.hz-pk-card--out-like { transform: translate(120vw, -8vh) rotate(var(--hz-pick-tilt)); opacity: 0; }
.hz-pk-card--out-skip { transform: translate(-120vw, -8vh) rotate(calc(-1 * var(--hz-pick-tilt))); opacity: 0; }
.hz-pk--rtl .hz-pk-card--out-like { transform: translate(-120vw, -8vh) rotate(calc(-1 * var(--hz-pick-tilt))); }
.hz-pk--rtl .hz-pk-card--out-skip { transform: translate(120vw, -8vh) rotate(var(--hz-pick-tilt)); }
.hz-pk--still .hz-pk-card { transition: none; }
.hz-pk-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* One scrim for every card, a cover too: clear where a face or a picture is, strong where the words are. */
.hz-pk-veil { position: absolute; inset: 0; background: var(--hz-pick-veil); pointer-events: none; }

/* The stamps: LIKE / SKIP / GO, driven by the drag (--pk-like / --pk-skip / --pk-go) */
.hz-pk-stamp {
  position: absolute; top: var(--hz-space-6);
  padding: var(--hz-space-1) var(--hz-space-3); border-radius: var(--hz-radius-lg);
  border: 3px solid currentColor; font-weight: var(--hz-weight-bold); font-size: var(--hz-text-xl); letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
}
.hz-pk-stamp--like { inset-inline-start: var(--hz-space-6); color: var(--hz-pick-stamp-like); transform: rotate(-12deg); opacity: var(--pk-like, 0); }
.hz-pk-stamp--skip { inset-inline-end: var(--hz-space-6); color: var(--hz-pick-stamp-skip); transform: rotate(12deg); opacity: var(--pk-skip, 0); }
.hz-pk-stamp--go { left: 50%; transform: translateX(-50%); color: var(--hz-pick-stamp-go); background: var(--hz-text-onbrand); opacity: var(--pk-go, 0); }
.hz-pk-card--out-like .hz-pk-stamp--like, .hz-pk-card--out-skip .hz-pk-stamp--skip { opacity: 1; }

/* The portrait (no cover): the agent's face on their own colours */
.hz-pk-por { position: relative; align-self: center; margin-bottom: auto; margin-top: auto; }
.hz-pk-por-av.av {
  width: var(--hz-story-portrait); height: var(--hz-story-portrait); border-radius: var(--hz-radius-avatar);
  font-size: var(--hz-story-portrait-glyph); border: var(--hz-story-portrait-border); box-shadow: var(--hz-story-portrait-shadow);
}
.hz-pk-av-glyph { display: inline-flex; align-items: center; justify-content: center; background: var(--hz-ai-gradient); color: var(--hz-text-onbrand); font-weight: var(--hz-weight-bold); }
/* A service card's glyph on the portrait's disc (the hello, the question, the interests, the course) — picks/view.js glyphHeroHtml */
.hz-pk-service-glyph { display: inline-flex; width: var(--hz-story-portrait); height: var(--hz-story-portrait); align-items: center; justify-content: center; border-radius: var(--hz-radius-avatar); background: var(--hz-pick-says-bg); border: var(--hz-story-portrait-border); box-shadow: var(--hz-story-portrait-shadow); }
.hz-pk-service-ic { width: 44%; height: 44%; }
.hz-pk-badge.ag-chip-spark {
  position: absolute; inset-inline-end: var(--hz-story-badge-nudge); bottom: var(--hz-story-badge-nudge);
  width: var(--hz-story-pbadge-size); height: var(--hz-story-pbadge-size); border: var(--hz-story-pbadge-border);
}
.hz-pk-badge.ag-chip-spark svg { width: var(--hz-story-pbadge-glyph); height: var(--hz-story-pbadge-glyph); }

/* The words */
.hz-pk-text { position: relative; display: flex; flex-direction: column; gap: var(--hz-space-2); }
.hz-pk-kind { font-size: var(--hz-text-2xs); font-weight: var(--hz-weight-bold); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hz-pk-title { margin: 0; text-shadow: var(--hz-story-title-shadow); font-family: var(--hz-font-display); font-size: var(--hz-story-title-size); line-height: var(--hz-story-title-leading); font-weight: var(--hz-weight-bold); text-wrap: balance; }
.hz-pk-title--long { font-size: var(--hz-text-lg); }
.hz-pk-body { margin: 0; font-size: var(--hz-text-base); line-height: 1.45; opacity: .94; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hz-pk-by { margin: 0; display: flex; align-items: center; gap: var(--hz-space-2); font-size: var(--hz-text-sm); opacity: .9; }
.hz-pk-by-av.av { width: 22px; height: 22px; border-radius: var(--hz-radius-avatar); font-size: 12px; }
.hz-pk-crowd { margin: 0; display: inline-flex; align-items: center; gap: var(--hz-space-1); font-size: var(--hz-text-sm); opacity: .9; }
.hz-pk-crowd-ic { width: 14px; height: 14px; fill: var(--hz-accent-pink); stroke: none; }

/* The door(s) on the card */
.hz-pk-doors { position: relative; display: flex; gap: var(--hz-space-2); margin-top: var(--hz-space-3); }
.hz-pk-door {
  flex: 1 1 auto; min-height: var(--hz-tap-min); border: 0; border-radius: var(--hz-radius-pill);
  background: var(--hz-story-cta-bg); color: var(--hz-story-cta-fg);
  font: inherit; font-weight: var(--hz-weight-bold); font-size: var(--hz-text-base); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hz-space-2); padding: 0 var(--hz-space-4);
}
.hz-pk-door--2 { background: var(--hz-pick-ask-opt-bg); color: var(--hz-story-ink); }
.hz-pk-door-ic { width: 18px; height: 18px; }

/* A question */
.hz-pk-card--ask { background: var(--hz-pick-match-bg); }
.hz-pk-ask { position: relative; display: flex; flex-direction: column; gap: var(--hz-space-2); }
.hz-pk-options { display: grid; grid-template-columns: 1fr; gap: var(--hz-space-2); margin-top: var(--hz-space-2); }
.hz-pk-opt {
  min-height: var(--hz-tap-min); border: 1px solid var(--hz-pick-line); border-radius: var(--hz-radius-xl);
  background: var(--hz-pick-ask-opt-bg); color: var(--hz-story-ink); font: inherit; font-weight: var(--hz-weight-semibold); font-size: var(--hz-text-base);
  padding: var(--hz-space-2) var(--hz-space-3) var(--hz-space-2) var(--hz-space-4); cursor: pointer; text-align: start;
  display: flex; align-items: center; gap: var(--hz-space-3);
  transition: background var(--hz-dur-fast) var(--hz-ease-out), transform var(--hz-dur-fast) var(--hz-ease-spring);
}
.hz-pk-opt-label { flex: 1 1 auto; min-width: 0; }
.hz-pk-opt-ic { width: 18px; height: 18px; flex: 0 0 auto; opacity: .7; }
.hz-pk--rtl .hz-pk-opt-ic { transform: scaleX(-1); }
.hz-pk-opt:hover, .hz-pk-opt:active { background: var(--hz-pick-ask-opt-on); }
.hz-pk-opt:active { transform: scale(.98); }

/* ── The three buttons ────────────────────────────────────────────────────── */
.hz-pk-actions { display: flex; justify-content: center; align-items: center; gap: var(--hz-space-5); }
.hz-pk-btn {
  position: relative;
  width: var(--hz-pick-btn); height: var(--hz-pick-btn); border-radius: var(--hz-radius-pill);
  border: var(--hz-story-hairline); background: var(--hz-pick-ask-opt-bg); color: var(--hz-text-onbrand); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--hz-dur-fast) var(--hz-ease-spring), background var(--hz-dur-fast) var(--hz-ease-out);
}
.hz-pk-btn svg { width: var(--hz-pick-btn-glyph); height: var(--hz-pick-btn-glyph); }
.hz-pk-btn--like { color: var(--hz-pick-stamp-like); }
.hz-pk-btn--like svg { fill: currentColor; }
.hz-pk-btn--skip { color: var(--hz-pick-stamp-skip); }
.hz-pk-btn--go { width: var(--hz-tap-min); height: var(--hz-tap-min); color: var(--hz-text-onbrand); }
.hz-pk-btn:active { transform: scale(.92); }
.hz-pk-hint { margin: 0; text-align: center; font-size: var(--hz-text-sm); line-height: 1.5; opacity: .7; }
.hz-pk-signin { align-self: center; }
/* The foot holds the buttons and the hint, and keeps their room when either is hidden (the hello, the gift): the head and the card stay put from card to card. */
.hz-pk-foot { flex: none; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--hz-space-3); min-height: calc(var(--hz-pick-btn) + var(--hz-space-3) + var(--hz-text-sm) * 1.5); }

/* ── The hand that is there: touch words by default, a desktop's on fine pointers ── */
/* A touch screen learns the swipe from the hint. A desktop gets what a desktop
   expects of a card deck: labelled buttons, the grab hand on the
   card (the drag still works, from anywhere on it), and no "swipe" in the words. */
.hz-pk-btn-cap, .hz-pk-mouse { display: none; }
.hz-pk-btn-cap {
  position: absolute; top: calc(100% + var(--hz-space-2)); left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--hz-text-xs); font-weight: var(--hz-weight-semibold); color: var(--hz-story-ink); opacity: .85;
}
/* The smaller middle button: its caption drops to the same line as its neighbours'. The captions sit in the
   room the foot keeps for the hint, which a desktop does not show. */
.hz-pk-btn--go .hz-pk-btn-cap { top: calc(100% + var(--hz-space-2) + (var(--hz-pick-btn) - var(--hz-tap-min)) / 2); }
@media (hover: hover) and (pointer: fine) {
  .hz-pk-card:not(.hz-pk-card--behind) { cursor: grab; }
  .hz-pk-card--drag, .hz-pk-card--drag * { cursor: grabbing; }
  .hz-pk-btn-cap { display: inline-flex; }
  .hz-pk-touch, .hz-pk-hint { display: none; }
  .hz-pk-mouse { display: inline; }
  .hz-pk-btn:hover { background: var(--hz-pick-ask-opt-on); }
}

/* ── Panels: the match, the end of the deck ───────────────────────────────── */
.hz-pk-panel-wrap { position: absolute; inset: 0; }
.hz-pk-panel {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--hz-pick-card-radius); background: var(--hz-pick-match-bg); box-shadow: var(--hz-pick-card-shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--hz-space-3);
  padding: var(--hz-space-6); box-sizing: border-box;
  animation: hz-pk-pop var(--hz-dur-slow) var(--hz-ease-spring);
}
.hz-pk--still .hz-pk-panel { animation: none; }
.hz-pk-panel .hz-pk-body { -webkit-line-clamp: 6; }
.hz-pk-por--match .hz-pk-por-av.av { width: var(--hz-story-portrait); height: var(--hz-story-portrait); }
.hz-pk-cta {
  width: 100%; min-height: var(--hz-story-cta-h); border: 0; border-radius: var(--hz-radius-pill);
  background: var(--hz-story-cta-bg); color: var(--hz-story-cta-fg); font: inherit; font-weight: var(--hz-weight-bold); font-size: var(--hz-text-md); cursor: pointer;
  margin-top: var(--hz-space-3);
}
.hz-pk-link { border: 0; background: transparent; color: var(--hz-story-ink); font: inherit; font-size: var(--hz-text-sm); opacity: .85; cursor: pointer; min-height: var(--hz-tap-min); }
.hz-pk-taste { display: flex; gap: var(--hz-space-2); justify-content: center; }
.hz-pk-taste-face.av { width: 56px; height: 56px; border-radius: var(--hz-radius-avatar); font-size: 26px; border: var(--hz-story-pbadge-border); }

/* The burst: twelve dots on the brand colours, fired once by the panel */
.hz-pk-burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.hz-pk-burst i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--hz-accent-pink); opacity: 0; animation: hz-pk-dot .9s var(--hz-ease-out) forwards; }
.hz-pk-burst i:nth-child(2n) { background: var(--hz-brand); } .hz-pk-burst i:nth-child(3n) { background: var(--hz-text-onbrand); }
.hz-pk-burst i:nth-child(1) { --dx: -120px; --dy: -90px; } .hz-pk-burst i:nth-child(2) { --dx: 110px; --dy: -110px; }
.hz-pk-burst i:nth-child(3) { --dx: -150px; --dy: 20px; } .hz-pk-burst i:nth-child(4) { --dx: 140px; --dy: 30px; }
.hz-pk-burst i:nth-child(5) { --dx: -60px; --dy: -150px; } .hz-pk-burst i:nth-child(6) { --dx: 60px; --dy: -140px; }
.hz-pk-burst i:nth-child(7) { --dx: -100px; --dy: 100px; } .hz-pk-burst i:nth-child(8) { --dx: 100px; --dy: 110px; }
.hz-pk-burst i:nth-child(9) { --dx: -20px; --dy: -170px; } .hz-pk-burst i:nth-child(10) { --dx: 30px; --dy: 150px; }
.hz-pk-burst i:nth-child(11) { --dx: -170px; --dy: -40px; } .hz-pk-burst i:nth-child(12) { --dx: 170px; --dy: -30px; }
.hz-pk--still .hz-pk-burst { display: none; }
@keyframes hz-pk-dot { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }
@keyframes hz-pk-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── The start deck: the onboarding's screens (public/js/picks/start.js) ─── */
/* The stage is the deck's; the three screens replace its head, its stack and its foot. The screen is one column —
   its own head (the dots, Skip), a body that scrolls when a small phone or a large font asks for it, a foot with the
   one button — so nothing is ever clipped and the button never leaves the thumb's reach. */
.hz-pk--start .hz-pk-head, .hz-pk--start .hz-pk-foot { display: none; }
.hz-pk--start .hz-pk-card-wrap { width: var(--hz-start-w); padding: var(--hz-space-2) 0; }
/* The screen's height is the stage's: a fixed height (the wrap's max-height lets it shrink on a short screen), so the absolute screen inside has a box to fill. */
.hz-pk--start .hz-pk-stack { flex: 0 1 var(--hz-start-h); height: var(--hz-start-h); max-height: 100%; touch-action: auto; }
.hz-obd {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: var(--hz-pick-card-radius); background: var(--hz-start-bg); box-shadow: var(--hz-pick-card-shadow);
  color: var(--hz-story-ink); overflow: hidden; box-sizing: border-box;
  animation: hz-obd-in var(--hz-dur-slow) var(--hz-ease-out);
}
.hz-pk--still .hz-obd { animation: none; }
@keyframes hz-obd-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hz-obd-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--hz-space-3); min-height: var(--hz-tap-min); padding: var(--hz-space-2) var(--hz-space-2) 0 var(--hz-space-5); }
/* The dots: the design system's .hz-steps atom in the stage's ink (its defaults are a light surface's). */
.hz-obd-dots { gap: var(--hz-space-2); }
.hz-obd-dots .hz-steps-dot { background: var(--hz-story-track); }
.hz-obd-dots .hz-steps-dot.is-done { background: var(--hz-story-ink); opacity: .7; }
.hz-obd-dots .hz-steps-dot.is-current { background: var(--hz-story-ink); }
.hz-obd-count { font-size: var(--hz-text-xs); font-weight: var(--hz-weight-semibold); font-variant-numeric: tabular-nums; padding: 2px var(--hz-space-2); border-radius: var(--hz-radius-pill); background: var(--hz-pick-chip-bg); color: var(--hz-story-ink); }
.hz-obd-skip { margin-inline-start: auto; padding: 0 var(--hz-space-3); }
.hz-obd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: var(--hz-space-3); padding: var(--hz-space-2) var(--hz-space-5) var(--hz-space-3); }
.hz-obd-body--center { align-items: center; text-align: center; justify-content: center; }
/* The five illustrated screens: the art, the title and the paragraph sit as one group in the middle of the card (the
   mock's balance); when the card is short the group fills the body and scrolls, so nothing is ever clipped. */
.hz-obd--intro .hz-obd-body, .hz-obd--agents .hz-obd-body, .hz-obd--assistant .hz-obd-body, .hz-obd--gift .hz-obd-body { justify-content: center; }
.hz-obd-title { margin: 0; font-family: var(--hz-font-display); font-size: var(--hz-story-title-size); line-height: var(--hz-story-title-leading); font-weight: var(--hz-weight-bold); text-wrap: balance; text-shadow: var(--hz-story-title-shadow); outline: none; }
.hz-obd-accent { font-style: normal; color: var(--hz-accent-cyan); background: var(--hz-start-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.hz-obd-lead { margin: 0; font-size: var(--hz-text-base); line-height: 1.45; opacity: .92; }
.hz-obd-about { margin: var(--hz-space-1) 0 0; font-size: var(--hz-text-sm); font-weight: var(--hz-weight-semibold); opacity: .85; }
.hz-obd-note { margin: var(--hz-space-1) 0 0; font-size: var(--hz-text-xs); line-height: 1.35; text-align: center; opacity: .72; }
.hz-obd-foot { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: var(--hz-space-1); padding: var(--hz-space-2) var(--hz-space-5) var(--hz-space-4); }
.hz-obd-cta {
  min-height: var(--hz-story-cta-h); border: 0; border-radius: var(--hz-radius-pill);
  background: var(--hz-story-cta-bg); color: var(--hz-story-cta-fg); font: inherit; font-weight: var(--hz-weight-bold); font-size: var(--hz-text-md); cursor: pointer;
  transition: transform var(--hz-dur-fast) var(--hz-ease-spring), opacity var(--hz-dur-fast) var(--hz-ease-out);
}
.hz-obd-cta:active { transform: scale(.98); }
.hz-obd-cta[disabled] { opacity: .45; cursor: default; }
.hz-obd-cta:focus-visible, .hz-obd-skip:focus-visible { outline: var(--hz-story-focus); outline-offset: var(--hz-story-focus-offset); }

/* The illustrations — one material system for the five screens (docs/plans/onboarding-three-screens.md §4):
   - the stage: each art sits in .hz-obd-art (one height, the card's width) over a soft light of its own hue (::before),
     so every composition reads as lit from the same place;
   - the material: the pre-login page's glossy 3D tiles (welcome.css), the brand sphere and ribbon, and the drawings
     (start-view.js) shaded with two-stop gradients and a floor shadow — the same depth on every screen;
   - one hero per screen and its satellites, each telling the screen's one idea: everything in one place (intro), the one
     you pick (agents), question → assistant → prompt (assistant), the gift (gift), choose → get agents (pick);
   - --k scales the whole composition and --art-h is its height (the agents' art adds its names' line), so a short
     screen gets the same picture smaller, never a cropped one; the faces' names keep a readable floor. */
.hz-obd-art { --k: 1; --art-h: var(--hz-start-art-h); position: relative; flex: none; height: var(--art-h); margin: var(--hz-space-1) calc(-1 * var(--hz-space-5)) var(--hz-space-2); overflow: hidden; }
.hz-obd-art::before {
  content: ''; position: absolute; inset: 4% 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--hz-start-glow), transparent);
}
.hz-obd-art--intro::before { background: radial-gradient(closest-side, var(--hz-start-glow-warm), transparent); }
.hz-obd-art--gift::before { background: radial-gradient(closest-side, var(--hz-start-glow-gold), transparent); }

/* Screen 1 — the sphere in the middle, whole; the ribbon orbits it (its front half crosses over the sphere); a reply, a
   picture and a track float around — all of AI, in one place. */
.hz-obd-sphere {
  --d: calc(var(--k) * 132px); position: absolute; z-index: 1; width: var(--d); height: var(--d); border-radius: 50%;
  inset-inline-start: 50%; top: 50%; margin-top: calc(var(--d) * -.5); margin-inline-start: calc(var(--d) * -.5);
  background: var(--hz-start-sphere); box-shadow: var(--hz-start-sphere-shadow);
}
.hz-obd-ribbon {
  --rw: calc(var(--k) * 16px); position: absolute; z-index: 0; width: calc(var(--k) * 330px); height: calc(var(--k) * 92px);
  inset-inline-start: 50%; top: 50%; margin-top: calc(var(--k) * -46px); margin-inline-start: calc(var(--k) * -165px); border-radius: 50%; transform: rotate(-14deg);
  background: var(--hz-start-ribbon); opacity: .92;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--rw)), #000 calc(100% - var(--rw) + 1px), #000 calc(100% - 1px), transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - var(--rw)), #000 calc(100% - var(--rw) + 1px), #000 calc(100% - 1px), transparent 100%);
}
.hz-obd-ribbon--front { z-index: 2; clip-path: inset(50% 0 0 0); }
.hz-obd-tile {
  --s: calc(var(--k) * 54px); position: absolute; z-index: 3; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27);
  display: grid; place-items: center; background: var(--hz-start-tile-face); box-shadow: var(--hz-start-tile-shadow);
}
.hz-obd-tile svg { width: 60%; height: 60%; }
.hz-obd-tile--chat { --s: calc(var(--k) * 56px); inset-inline-start: 8%; top: 12%; transform: rotate(-9deg); }
.hz-obd-tile--img { --s: calc(var(--k) * 60px); inset-inline-end: 8%; top: 8%; transform: rotate(8deg); }
.hz-obd-tile--music { --s: calc(var(--k) * 48px); inset-inline-end: 17%; top: 60%; transform: rotate(-6deg); }
/* The drawings' inks (start-view.js TILES, GIFT_BOX, ASK, BUBBLE, FOLDER): tokens, never a colour in the markup. */
.hz-obd-ink-pink { fill: var(--hz-accent-pink); }
.hz-obd-ink-cyan { fill: var(--hz-accent-cyan); }
.hz-obd-ink-blue, .hz-obd-ink-brand-fill { fill: var(--hz-brand); }
.hz-obd-ink-gold { fill: var(--hz-star); }
.hz-obd-ink-gold-shade { fill: var(--hz-start-gold-shade); }
.hz-obd-ink-orange { fill: none; stroke: var(--hz-spectrum-2); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.hz-obd-ink-orange-fill { fill: var(--hz-spectrum-2); }
.hz-obd-ink-blue-deep { fill: var(--hz-start-blue-deep); }
.hz-obd-ink-blue-soft { fill: var(--hz-start-line); }
.hz-obd-ink-paper { fill: var(--hz-text-onbrand); }
.hz-obd-ink-dim { opacity: .7; }
.hz-obd-ink-floor { fill: var(--hz-start-floor); }
.hz-obd-ink-glass { fill: var(--hz-pick-bubble-bg); stroke: var(--hz-pick-line); stroke-width: 1.5; }
.hz-obd-ink-line { fill: none; stroke: var(--hz-text-onbrand); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.hz-obd-ink-line--strong { opacity: 1; stroke-width: 3.4; }
.hz-obd-ink-ok { fill: var(--hz-accent-cyan); }
.hz-obd-ink-tick { fill: none; stroke: var(--hz-ink-900); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* The gradients' stops: two tokens each — the light from the top, the shade below (the shapes take them by fill="url(#…)"). */
.hz-obd-stop-blue-hi { stop-color: var(--hz-start-blue-hi); }
.hz-obd-stop-blue { stop-color: var(--hz-start-blue); }
.hz-obd-stop-blue-deep { stop-color: var(--hz-start-blue-deep); }
.hz-obd-stop-blue-night { stop-color: var(--hz-start-blue-night); }
.hz-obd-stop-gold-hi { stop-color: var(--hz-start-gold-hi); }
.hz-obd-stop-gold { stop-color: var(--hz-star); }
.hz-obd-stop-gold-shade { stop-color: var(--hz-start-gold-shade); }
@media (prefers-reduced-motion: no-preference) {
  .hz-obd-tile { animation: hz-obd-float 7s ease-in-out infinite alternate; }
  .hz-obd-tile--img, .hz-obd-tile--face1, .hz-obd-tile--pick3, .hz-obd-tile--pick6 { animation-duration: 8.5s; animation-delay: -2s; }
  .hz-obd-tile--music, .hz-obd-tile--face3, .hz-obd-tile--spark2, .hz-obd-tile--pick4 { animation-duration: 9.5s; animation-delay: -4s; }
  .hz-obd-tile--pick5, .hz-obd-tile--pick2 { animation-duration: 8s; animation-delay: -1s; }
  .hz-obd-tile--spark { animation: none; }
  .hz-obd-giftbox, .hz-obd-folder { animation: hz-obd-float 6s ease-in-out infinite alternate; }
  .hz-obd-typing i { animation: hz-obd-typing 1.2s ease-in-out infinite; }
  .hz-obd-typing i:nth-child(2) { animation-delay: .15s; } .hz-obd-typing i:nth-child(3) { animation-delay: .3s; }
}
.hz-pk--still .hz-obd-tile, .hz-pk--still .hz-obd-giftbox, .hz-pk--still .hz-obd-folder, .hz-pk--still .hz-obd-typing i { animation: none; }
@keyframes hz-obd-float { from { translate: 0 -4px; } to { translate: 0 6px; } }
@keyframes hz-obd-typing { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }

/* Screen 2 — the agents: three real faces, each with its name under it, the chosen one in the middle (larger, ringed
   in the accent, its name on white, the spark on one corner and a typing bubble on the other — "tell it about your
   task"); the two others a step back. The face is the app's .av tile; --r is a tile's tilt, its name stands upright. */
.hz-obd-art--agents { height: calc(var(--art-h) + var(--k) * 30px); }
.hz-obd-tile--face { --s: calc(var(--k) * 66px); --r: 0deg; display: grid; place-items: center; transform: rotate(var(--r)); }
.hz-obd-tile--face1 { --r: -7deg; inset-inline-start: 9%; top: calc(var(--k) * 44px); }
.hz-obd-tile--face2 { --s: calc(var(--k) * 96px); --r: 2deg; z-index: 4; inset-inline-start: 50%; top: calc(var(--k) * 12px); margin-inline-start: calc(var(--s) * -.5); }
/* The chosen one's ring: a border on its own layer, so every engine rounds it with the tile (an outline is square before Safari 16.4). */
.hz-obd-tile--face2::after { content: ''; position: absolute; inset: calc(var(--k) * -7px); border: calc(var(--k) * 3px) solid var(--hz-accent-cyan); border-radius: calc(var(--s) * .27 + var(--k) * 7px); pointer-events: none; }
.hz-obd-tile--face3 { --r: 7deg; inset-inline-end: 9%; top: calc(var(--k) * 44px); }
.hz-obd-tile--face1 .hz-obd-face, .hz-obd-tile--face3 .hz-obd-face { filter: saturate(.85); }
.hz-obd-face.av { width: 84%; height: 84%; border-radius: var(--hz-radius-avatar); font-size: calc(var(--s) * .4); box-shadow: 0 0 0 calc(var(--k) * 2px) var(--hz-text-onbrand), 0 2px 6px rgba(0, 0, 0, .18); object-fit: cover; overflow: hidden; }
.hz-obd-face-name {
  position: absolute; inset-inline-start: 50%; top: calc(100% + var(--k) * 14px); translate: -50% 0; rotate: calc(-1 * var(--r));
  width: max-content; max-width: max(84px, calc(var(--k) * 112px)); padding: calc(var(--k) * 3px) calc(var(--k) * 10px); border-radius: var(--hz-radius-pill);
  background: var(--hz-pick-bubble-bg); color: var(--hz-story-ink); font-size: max(10px, calc(var(--k) * 12px)); font-weight: var(--hz-weight-semibold); line-height: 1.25;
  text-align: center; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hz-pk--rtl .hz-obd-face-name { translate: 50% 0; }
.hz-obd-tile--face2 .hz-obd-face-name { top: calc(100% + var(--k) * 16px); max-width: max(96px, calc(var(--k) * 128px)); background: var(--hz-text-onbrand); color: var(--hz-ink-900); font-size: max(11px, calc(var(--k) * 13px)); font-weight: var(--hz-weight-bold); }
.hz-obd-tile--spark { --s: calc(var(--k) * 34px); z-index: 5; inset-inline-start: calc(50% + var(--k) * 34px); top: calc(var(--k) * 2px); transform: rotate(12deg); }
.hz-obd-typing {
  position: absolute; z-index: 5; inset-inline-start: calc(50% + var(--k) * 30px); top: calc(var(--k) * 86px);
  display: inline-flex; gap: calc(var(--k) * 5px); padding: calc(var(--k) * 8px) calc(var(--k) * 11px);
  border-radius: calc(var(--k) * 16px) calc(var(--k) * 16px) calc(var(--k) * 16px) calc(var(--k) * 4px);
  background: var(--hz-text-onbrand); box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .5);
}
.hz-pk--rtl .hz-obd-typing { border-radius: calc(var(--k) * 16px) calc(var(--k) * 16px) calc(var(--k) * 4px) calc(var(--k) * 16px); }
.hz-obd-typing i { width: calc(var(--k) * 7px); height: calc(var(--k) * 7px); border-radius: 50%; background: var(--hz-brand); }
.hz-obd-tile--spark2 { --s: calc(var(--k) * 30px); z-index: 5; inset-inline-end: calc(5% + var(--k) * 112px); top: calc(22% - var(--k) * 14px); transform: rotate(-10deg); }
.hz-obd-spark.ag-chip-spark { width: 72%; height: 72%; }
.hz-obd-spark.ag-chip-spark svg { width: 56%; height: 56%; }

/* Screen 3 — the assistant as a flow, start to end: the person's rough question on glass → the brand mark on a large
   tile → the prompt it hands back (the model it picked, the words, a tick). Dotted trails carry the eye between them. */
.hz-obd-ask { position: absolute; z-index: 3; inset-inline-start: 4%; top: 18%; width: calc(var(--k) * 78px); height: auto; }
.hz-obd-tile--bot { --s: calc(var(--k) * 84px); inset-inline-start: 50%; top: 50%; margin-top: calc(var(--s) * -.5); margin-inline-start: calc(var(--s) * -.82); transform: rotate(-4deg); }
.hz-obd-mark { width: 66%; height: 66%; display: block; }
.hz-obd-bubble { position: absolute; z-index: 3; inset-inline-end: 5%; top: 22%; width: calc(var(--k) * 132px); height: auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .4)); }
.hz-obd-flow {
  position: absolute; z-index: 2; height: calc(var(--k) * 4px); width: calc(var(--k) * 30px); top: 50%;
  background: radial-gradient(circle, var(--hz-text-onbrand) 45%, transparent 50%) 0 50% / calc(var(--k) * 8px) 100% repeat-x; opacity: .55;
}
.hz-obd-flow--in { inset-inline-start: calc(4% + var(--k) * 80px); }
.hz-obd-flow--out { inset-inline-start: calc(50% + var(--k) * 20px); width: calc(var(--k) * 22px); }
/* RTL: the flow runs from the right; the prompt card turns to face the mark (its lines then start at the right, as RTL text
   does). The question keeps its glyph unmirrored — a "?" read backwards is a different mark. */
.hz-pk--rtl .hz-obd-bubble { transform: scaleX(-1); }

/* Screen 4 — the gift box, the burst behind it. */
.hz-obd-art--gift { display: grid; place-items: center; }
.hz-obd-art--gift .hz-pk-burst { top: 50%; }
.hz-obd-giftbox { position: relative; width: auto; height: 96%; max-height: var(--hz-start-art-h); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }

/* Screen 2 — the gift: the Stars, large; the burst, once; what they buy as three tiles. */
.hz-obd-buys { list-style: none; margin: var(--hz-space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--hz-space-2); align-self: stretch; }
.hz-obd-buy { display: flex; align-items: center; gap: var(--hz-space-3); min-height: var(--hz-tap-min); padding: var(--hz-space-1) var(--hz-space-3); border-radius: var(--hz-radius-xl); background: var(--hz-pick-chip-bg); font-weight: var(--hz-weight-semibold); font-size: var(--hz-text-base); text-align: start; }
.hz-obd-buy-ic.ag-chip-spark { width: 32px; height: 32px; flex: 0 0 auto; }
.hz-obd-buy-ic.ag-chip-spark svg { width: 17px; height: 17px; }

/* Screen 3 — the chips: any number on, a tap toggles one; two columns, so eight fit a phone's screen. */
.hz-pk-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hz-space-2); margin-top: var(--hz-space-1); }
.hz-pk-chip {
  min-height: var(--hz-tap-min); border: 1px solid var(--hz-pick-line); border-radius: var(--hz-radius-xl);
  background: var(--hz-pick-chip-bg); color: var(--hz-story-ink); font: inherit; font-weight: var(--hz-weight-semibold);
  padding: var(--hz-space-2) var(--hz-space-3) var(--hz-space-2) var(--hz-space-2); cursor: pointer; text-align: start;
  display: flex; align-items: center; gap: var(--hz-space-2); font-size: var(--hz-text-sm); line-height: 1.25;
  transition: background var(--hz-dur-fast) var(--hz-ease-out), color var(--hz-dur-fast) var(--hz-ease-out);
}
.hz-pk-chip--on { background: var(--hz-pick-chip-on); color: var(--hz-pick-chip-on-fg); border-color: transparent; }
.hz-pk-chip-label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.hz-pk-chip-ic.ag-chip-spark { width: 28px; height: 28px; flex: 0 0 auto; }
.hz-pk-chip-ic.ag-chip-spark svg { width: 16px; height: 16px; }
.hz-pk-chip:focus-visible { outline: var(--hz-story-focus); outline-offset: var(--hz-story-focus-offset); }
/* The smallest phones (320–360px): a smaller glyph and type, so "Languages" or "Self-growth" keep whole words */
@media (max-width: 360px) {
  .hz-pk-chip { gap: var(--hz-space-1); padding-inline: var(--hz-space-1) var(--hz-space-2); font-size: var(--hz-text-xs); }
  .hz-pk-chip-ic.ag-chip-spark { width: 22px; height: 22px; }
  .hz-pk-chip-ic.ag-chip-spark svg { width: 13px; height: 13px; }
  .hz-obd-art { --k: .84; --art-h: calc(var(--hz-start-art-h) * .84); }
}

/* ── The interests survey (docs/plans/interests-survey.md) ───────────────────────────────────────────────────────
   Four screens told by the mascot (public/img/mascot/, pixel art): the hello, the personal chips, the work chips,
   the result. The onboarding's anatomy (.hz-obd head · body · foot), its ground and type; the survey's own head (Back,
   a bar of four segments, Close), a lit edge, the cat's amber on the button. Every colour is a token (--hz-survey-*). */
.hz-obd--survey { box-shadow: var(--hz-pick-card-shadow), var(--hz-survey-edge); }
.hz-sv-head { display: grid; grid-template-columns: var(--hz-tap-min) minmax(0, 1fr) var(--hz-tap-min); align-items: center; gap: var(--hz-space-2); padding: var(--hz-space-2) var(--hz-space-2) 0; }
.hz-sv-head .hz-sv-seg { grid-column: 2; }
.hz-sv-head .hz-sv-close { grid-column: 3; }
.hz-sv-seg { display: flex; gap: 6px; }
.hz-sv-seg i { flex: 1 1 0; height: var(--hz-survey-seg-h); border-radius: var(--hz-radius-pill); background: var(--hz-story-track); transition: background var(--hz-dur-fast) var(--hz-ease-out); }
.hz-sv-seg i.is-done { background: var(--hz-story-ink); opacity: .7; }
.hz-sv-seg i.is-current { background: var(--hz-story-ink); }
.hz-sv-icon-btn { width: var(--hz-tap-min); height: var(--hz-tap-min); display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--hz-story-ink); cursor: pointer; padding: 0; }
.hz-sv-icon-btn svg { width: 22px; height: 22px; }
.hz-sv-icon-btn:hover { background: var(--hz-pick-chip-bg); }
.hz-sv-icon-btn:focus-visible, .hz-sv-agent:focus-visible { outline: var(--hz-story-focus); outline-offset: var(--hz-story-focus-offset); }
.hz-sv-back-ic { transform: scaleX(-1); }
.hz-pk--rtl .hz-sv-back-ic { transform: none; }
.hz-obd--survey .hz-obd-accent { background: var(--hz-survey-accent); -webkit-background-clip: text; background-clip: text; }
.hz-sv-cta { background: var(--hz-survey-cta-bg); color: var(--hz-survey-cta-fg); box-shadow: var(--hz-survey-cta-glow); }
.hz-sv-cta[disabled] { box-shadow: none; }
.hz-sv-body { position: relative; }
.hz-sv-cat { display: block; width: 100%; height: auto; image-rendering: pixelated; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.hz-sv-art { position: relative; flex: none; }
.hz-sv-spark { position: absolute; width: 16px; height: 16px; opacity: .8; animation: hz-sv-twinkle 2.6s ease-in-out infinite; }
.hz-sv-spark--2 { animation-delay: .9s; width: 11px; height: 11px; }
.hz-sv-spark--3 { animation-delay: 1.7s; width: 13px; height: 13px; }
@keyframes hz-sv-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: .95; transform: scale(1); } }

/* 1 — the hello: the waving cat fills the space under the words, a heart in a bubble beside it. */
.hz-sv--hello .hz-sv-body { justify-content: flex-start; }
.hz-sv-art--hello { flex: 1 1 auto; min-height: 150px; display: flex; align-items: flex-end; justify-content: center; margin: 0 calc(-1 * var(--hz-space-5)) calc(-1 * var(--hz-space-3)); }
.hz-sv-art--hello::before { content: ""; position: absolute; inset: 18% 8% -10%; background: radial-gradient(closest-side, var(--hz-start-glow), transparent); pointer-events: none; }
.hz-sv-wave { position: relative; width: min(var(--hz-survey-cat-wave), 100%); margin-inline-end: 14%; }
.hz-sv-cat--wave { animation: hz-sv-wave 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hz-sv-wave { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-2.5deg); } 16% { transform: rotate(1.5deg); } 24% { transform: rotate(0); } }
.hz-sv-bubble { position: absolute; inset-inline-end: 7%; bottom: 52%; width: clamp(56px, 18vw, 76px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); animation: hz-sv-float 4s ease-in-out infinite; }
@keyframes hz-sv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* The motion strokes ride the cat's own box: just outside the raised paw (its top-left). */
.hz-sv-motion { position: absolute; inset-inline-start: -22px; top: 22%; width: 30px; height: 30px; fill: none; stroke: var(--hz-survey-gold); stroke-width: 3.2; stroke-linecap: round; }
.hz-pk--rtl .hz-sv-motion { transform: scaleX(-1); }
.hz-sv-art--hello .hz-sv-spark--1 { inset-inline-end: 8%; bottom: 82%; }
.hz-sv-art--hello .hz-sv-spark--2 { inset-inline-end: 38%; bottom: 30%; }
.hz-sv-art--hello .hz-sv-spark--3 { inset-inline-end: 4%; bottom: 18%; }

/* 2 and 3 — the chips: each interest's emoji on a round tile, its name; a chosen one turns white. */
/* Every interest of a screen on one screen: compact chips (46 px — still past the 44-px touch minimum), tight gaps,
   a smaller title; scripts/verify-onboarding.js asserts the chips never scroll, on every device and language. */
.hz-sv-chips { gap: 6px; margin-top: 0; }
.hz-sv--personal .hz-obd-title, .hz-sv--work .hz-obd-title { font-size: clamp(22px, 5.8vw, 26px); }
.hz-sv--personal .hz-sv-body, .hz-sv--work .hz-sv-body { gap: var(--hz-space-3); padding-bottom: var(--hz-space-2); }
/* A chosen chip is the solid white one (the design system's chip), no extra mark; a word longer than its line
   ("Профессиональное") hyphenates by the page language's dictionary (the chip label's hyphens: auto), never mid-syllable. */
.hz-sv-chip { position: relative; min-height: 46px; padding-block: 5px; padding-inline-end: var(--hz-space-2); }
/* Only a long word breaks ("Профессио-нальное"), never a short one to fill a line ("но-вые"): ten letters at least, four
   on each side (Chromium's hyphenate-limit-chars; WebKit's own pair; Firefox ignores both and hyphenates as before). */
.hz-sv-chip .hz-pk-chip-label { hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
.hz-sv-logo { position: relative; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--hz-survey-logo-bg); font-size: 17px; line-height: 1; font-family: var(--hz-font-emoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif); }
.hz-sv-logo img { width: 70%; height: 70%; object-fit: contain; }
.hz-pk-chip--on .hz-sv-logo { background: var(--hz-survey-logo-on); }
.hz-sv-foot { position: relative; }
.hz-sv-count { margin: 0; min-height: 1.3em; font-size: var(--hz-text-xs); font-weight: var(--hz-weight-semibold); text-align: center; opacity: .78; font-variant-numeric: tabular-nums; }
/* The cat peeks over the foot, its paws on the edge; the chips scroll clear of it. */
.hz-sv-art--peek { position: absolute; inset-inline-end: var(--hz-space-4); bottom: calc(100% - 12px); width: var(--hz-survey-cat-peek); z-index: 1; }
.hz-sv--personal .hz-sv-body { padding-bottom: calc(var(--hz-survey-cat-peek) * .82); }
/* The work screen: the cat sits by the title. */
.hz-sv-titlerow { display: flex; align-items: center; gap: var(--hz-space-2); }
.hz-sv-titles { flex: 1 1 auto; min-width: 0; }
.hz-sv-art--sit { flex: 0 0 auto; width: calc(var(--hz-survey-cat-side) * .8); }
.hz-sv-art--sit .hz-sv-spark--1 { inset-inline-start: -10px; top: 4px; }
.hz-sv-art--sit .hz-sv-spark--2 { inset-inline-end: -4px; top: 34%; }

/* 4 — the result: the cat in the corner, paw up; the agents as rows — the whole row is the door. */
.hz-sv--result .hz-obd-title { padding-inline-end: calc(var(--hz-survey-cat-side) + var(--hz-space-1)); }
.hz-sv-art--happy { position: absolute; inset-inline-end: var(--hz-space-2); top: 0; width: var(--hz-survey-cat-side); }
.hz-sv-art--happy .hz-sv-spark--1 { inset-inline-start: -14px; top: 10px; }
.hz-sv-art--happy .hz-sv-spark--2 { inset-inline-start: 6px; bottom: -6px; }
.hz-sv--result .hz-obd-body--center .hz-sv-art--happy { position: relative; inset: auto; margin: 0 auto; }
.hz-sv--result .hz-obd-body--center .hz-obd-title { padding-inline-end: 0; }
.hz-sv-agents { list-style: none; margin: var(--hz-space-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--hz-space-2); }
.hz-sv-agent {
  width: 100%; display: flex; align-items: center; gap: var(--hz-space-3); min-height: 64px; padding: var(--hz-space-2) var(--hz-space-2) var(--hz-space-2) var(--hz-space-3);
  border: 1px solid var(--hz-pick-line); border-radius: var(--hz-radius-xl); background: var(--hz-survey-row-bg); color: var(--hz-story-ink); font: inherit; text-align: start; cursor: pointer;
  transition: background var(--hz-dur-fast) var(--hz-ease-out), transform var(--hz-dur-fast) var(--hz-ease-spring);
}
.hz-sv-agent:hover { background: var(--hz-survey-row-hover); }
.hz-sv-agent:active { transform: scale(.99); }
.hz-sv-chev { flex: 0 0 auto; width: 22px; height: 22px; opacity: .8; }
.hz-pk--rtl .hz-sv-chev { transform: scaleX(-1); }
.hz-sv-badges { display: flex; gap: 4px; margin-top: 4px; }
.hz-sv-badges i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--hz-survey-logo-bg); font-style: normal; font-size: 12px; line-height: 1; }
.hz-sv-badges img { width: 70%; height: 70%; object-fit: contain; }
/* The result's call — the screen's last word, lit in the cat's amber on a soft amber panel; the note under it, quiet. */
.hz-sv-foot--result { gap: var(--hz-space-2); }
.hz-sv-call {
  margin: 0; padding: var(--hz-space-3) var(--hz-space-4); border-radius: var(--hz-radius-xl);
  background: var(--hz-survey-call-bg); border: 1px solid var(--hz-survey-call-line);
  color: var(--hz-survey-gold); font-weight: var(--hz-weight-bold); font-size: var(--hz-text-md); line-height: 1.3; text-align: center; text-wrap: balance;
}
.hz-sv-foot--result .hz-obd-note { margin: 0; }
/* The burst behind the purr. */
.hz-sv--result .hz-pk-burst { top: 16%; }
/* The wait: the cat's face, bobbing. */
.hz-sv-cat--wait { width: 96px; animation: hz-sv-float 1.6s ease-in-out infinite; }

/* Short screens: the cats give way first, then the words. */
/* A tall card (a modern phone, a tablet, a desktop) has the room: roomier chips, the name a size up. */
@container (min-height: 680px) {
  .hz-sv-chips { gap: var(--hz-space-2); }
  .hz-sv-chip { min-height: 54px; font-size: var(--hz-text-sm); }
  .hz-sv-logo { width: 34px; height: 34px; font-size: 19px; }
}
/* A short card: the peeking cat would sit on a chip — it yields; the count line yields too (the button says it all). */
@container (max-height: 640px) {
  .hz-sv-art--peek { display: none; }
  .hz-sv--personal .hz-sv-body { padding-bottom: var(--hz-space-2); }
  .hz-sv-count { display: none; }
  .hz-sv-chip { min-height: 44px; padding-block: 3px; font-size: 13px; gap: 7px; }
  .hz-sv--personal .hz-obd-title, .hz-sv--work .hz-obd-title { font-size: 21px; }
  /* The result: the call stays lit, smaller — the three agents above it stay in view. */
  .hz-sv-call { padding: var(--hz-space-2) var(--hz-space-3); font-size: var(--hz-text-sm); }
  .hz-sv--result .hz-obd-title { font-size: 21px; }
  .hz-sv-agent { min-height: 52px; padding-block: 6px; }
  .hz-sv-agent .hz-obd-pick-t small { -webkit-line-clamp: 1; }
  .hz-sv-agents { gap: 6px; }
}
@container (max-height: 600px) {
  .hz-sv-art--hello { min-height: 120px; }
  .hz-obd { --hz-survey-cat-wave: 150px; --hz-survey-cat-side: 72px; }
}
@container (max-height: 500px) {
  .hz-sv-art--sit, .hz-sv-bubble, .hz-sv-motion { display: none; }
  .hz-sv-art--hello { min-height: 0; }
  .hz-obd { --hz-survey-cat-wave: 112px; }
}
@media (max-width: 360px) {
  .hz-sv-logo { width: 28px; height: 28px; font-size: 16px; }
  .hz-sv-chip { font-size: 12px; padding-inline: var(--hz-space-1); }
}
.hz-pk--still .hz-sv-cat, .hz-pk--still .hz-sv-bubble, .hz-pk--still .hz-sv-spark { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hz-sv-cat, .hz-sv-bubble, .hz-sv-spark { animation: none; }
}

/* The wait: the picks on their way */
.hz-obd-wait { display: flex; flex-direction: column; align-items: center; gap: var(--hz-space-3); font-size: var(--hz-text-base); opacity: .9; }
.hz-obd-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--hz-story-track); border-top-color: var(--hz-story-ink); animation: hz-obd-spin .9s linear infinite; }
.hz-pk--still .hz-obd-spinner { animation-duration: 2s; }
@keyframes hz-obd-spin { to { transform: rotate(360deg); } }

/* The result's rows reuse these: an agent's face and its words. */
.hz-obd-pick-face { flex: 0 0 auto; display: inline-flex; }
.hz-obd-pick-av.av { width: 44px; height: 44px; border-radius: var(--hz-radius-avatar); font-size: 22px; border: 1.5px solid var(--hz-pick-line); }
.hz-obd-pick-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hz-obd-pick-t b { font-weight: var(--hz-weight-semibold); font-size: var(--hz-text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-obd-pick-t small { font-size: var(--hz-text-sm); opacity: .82; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* A short screen (an iPhone SE, a two-line title in German, a large font): the art gives first, then the type. */
@container (max-height: 560px) {
  .hz-obd-art { --k: .72; --art-h: calc(var(--hz-start-art-h) * .72); }
}
/* An iPhone SE: the art keeps a glimpse, the points draw closer, the lead reads smaller — the three points stay above the fold. */
@container (max-height: 520px) {
  .hz-obd-art { --k: .62; --art-h: 112px; margin-bottom: var(--hz-space-1); }
  .hz-obd-body { gap: var(--hz-space-2); }
  .hz-obd-lead { font-size: var(--hz-text-sm); }
}
@container (max-height: 440px) {
  .hz-obd-art { display: none; }
  .hz-obd-title { font-size: var(--hz-text-xl); }
}

/* ── A short card (a small phone): the hero gives way to the words ───────── */
/* Heights are the card's content box. A mid card shrinks its decorative glyph (an agent keeps its full face);
   a short one drops it and shrinks the faces that stay — the words and the door always fit. */
@container (max-height: 500px) {
  .hz-pk-por--glyph .hz-pk-service-glyph { width: var(--hz-pick-hero-sm); height: var(--hz-pick-hero-sm); font-size: calc(var(--hz-story-portrait-glyph) * .68); }
}
@container (max-height: 400px) {
  .hz-pk-por--glyph { display: none; }
  .hz-pk-por .hz-pk-por-av.av, .hz-pk-por .hz-pk-service-glyph { width: var(--hz-pick-hero-sm); height: var(--hz-pick-hero-sm); font-size: calc(var(--hz-story-portrait-glyph) * .68); }
  .hz-pk-title { font-size: var(--hz-text-xl); }
  .hz-pk-body, .hz-pk-says-t { -webkit-line-clamp: 2; }
}

/* ── Wide screens ─────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .hz-pk-card-wrap { padding: var(--hz-space-5) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-pk, .hz-pk-card, .hz-pk-progress-fill, .hz-pk-btn { transition: none; }
  .hz-pk-panel, .hz-pk-card--nope, .hz-pk-swipehint-ic { animation: none; }
  .hz-pk-burst { display: none; }
}
