/* Quiz (steps 1–19). Geometry measured off Woofz at 390 px; colour and type come from brand.css. */
:root {
  --pad: clamp(16px, 8vw, 31px);      /* 31 px at 390, like Woofz */
  --hair: rgba(30, 35, 64, .09);
  --opt-line: #B5ADA5;   /* Woofz row borders are a mid warm grey, darker than --line */
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20; height: 44px; background: var(--bg);
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center;
  border-bottom: 1px solid var(--hair);
}
.hdr--logo { height: 48px; }
.hdr--bare { border-bottom-color: transparent; }
.hdr-btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0;
  background: none; color: var(--ink); cursor: pointer; border-radius: 12px;
}
.hdr-back { grid-column: 1; margin-left: 10px; }
.hdr-menu { grid-column: 3; justify-self: end; margin-right: 6px; }
.hdr-mid { grid-column: 2; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hdr-title { font-size: 13px; font-weight: 700; line-height: 16px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar { display: flex; gap: 3px; margin-top: 7px; }
.bar i { width: 55px; height: 4px; border-radius: 2px; background: #E4DFD9; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width .3s ease; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }

/* ---------- screen + column ----------
   Every screen is a full-height column: header, content, then the action area (.foot). Short content: the action
   area sits at the bottom of the window. Tall content: it sticks to the bottom and the content scrolls under it. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: var(--consent-h, 0px); }
.screen {
  flex: 1 0 auto; display: flex; flex-direction: column;
  width: 100%; max-width: calc(400px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
}
.body { flex: 1 0 auto; display: flex; flex-direction: column; padding: 36px 0 32px; text-align: center; }
.body > * { flex-shrink: 0; }
.body:has(> .foot) { padding-bottom: 0; }
.body--info { padding-top: 28px; }
.q-title { margin: 0; font-size: 20px; line-height: 24px; font-weight: 750; letter-spacing: -.1px; text-wrap: balance; }
.q-sub { margin: 8px 0 0; font-size: 15px; line-height: 21px; color: var(--ink-2); }

/* option rows */
.opts { display: grid; gap: 10px; margin-top: 20px; }
.q-sub + .opts { margin-top: 26px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 10px 0 14px;
  background: var(--bg); border: 1.5px solid var(--opt-line); border-radius: var(--radius-option);
  text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s;
}
.opt:active { transform: scale(.985); }
.opt-emoji { flex: none; width: 28px; font-family: var(--emoji); font-size: 24px; line-height: 28px; text-align: center; }
.opt-label { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 20px; padding: 8px 0; overflow-wrap: anywhere; }
.opt-check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--opt-line);
  display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s;
}
.opt-check svg { width: 18px; height: 18px; }
.opt.is-sel { border-color: var(--sky); background: var(--sky-soft); }
.opt.is-sel .opt-check { background: var(--sky); border-color: var(--sky); color: #fff; }
@media (hover: hover) { .opt:hover { border-color: var(--sky); } }

/* action area: Continue (+ text link), always in view */
.foot {
  position: sticky; bottom: var(--consent-h, 0px); z-index: 10;
  margin: auto calc(-1 * var(--pad)) 0;
  padding: 24px var(--pad) calc(56px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 82%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* Short windows (small phones, laptop browsers): less air under the button, more room for the content. */
@media (max-height: 700px) { .foot { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
.foot > * { pointer-events: auto; }
.foot:has(.link) { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.foot .link { margin-top: 20px; min-height: 24px; line-height: 20px; padding: 2px 12px; }
.foot .link:first-child { margin-top: 0; }
.foot .link { position: relative; }
.foot .link::before { content: ''; position: absolute; inset: -10px -8px; }
.link--muted { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.link--strong { color: var(--ink); font-size: 15px; font-weight: 700; }

/* ---------- step 1: age ---------- */
.screen--age .body { padding-top: 26px; }
.eyebrow { margin: 0 auto; max-width: 300px; font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.screen--age .q-title { margin-top: 14px; font-size: 19px; }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 14px; }
.age-card { display: flex; flex-direction: column; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .12s; }
.age-card:active { transform: scale(.97); }
.age-card.is-sel .age-art::before { background: var(--sky-soft); }
.age-card.is-sel .age-bar { background: var(--cta-press); }
.age-art { position: relative; height: 116px; display: block; }
.age-art::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84px;
  background: var(--sand-2); border-radius: 64px 64px 0 0 / 56px 56px 0 0;
}
.age-art img { position: absolute; left: 50%; bottom: 2px; height: 104px; width: auto; max-width: 100%; transform: translateX(-50%); object-fit: contain; }
.age-bar {
  display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 9px 0 12px;
  background: var(--cta); color: #fff; border-radius: 0 0 14px 14px; font-size: 15px; font-weight: 700;
}
.go { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--cta); display: grid; place-items: center; }
.go svg { width: 16px; height: 16px; }
.age-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 24px; padding: 0 10px 0 18px;
  border: 0; border-radius: 999px; background: var(--sand-2); font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .12s;
}
.age-pill .go { color: var(--ink); width: 22px; height: 22px; }
.age-pill { align-self: center; }
.age-pill:active { transform: scale(.97); }
.age-pill.is-sel { background: var(--sky-soft); box-shadow: inset 0 0 0 1.5px var(--sky); }

/* ---------- step 5: breed picker (search field, main 15 as chips, results while typing) ---------- */
.breed-search { position: relative; margin-top: 25px; }
.breed-ico { position: absolute; left: 13px; top: 13px; width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
.breed-input {
  appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 46px 0 44px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-overflow: ellipsis;
}
.breed-input::placeholder { color: var(--ink-3); opacity: 1; }
.breed-input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); background: var(--bg); }
.breed-clear {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer; border-radius: 10px;
}
.breed-clear svg { width: 20px; height: 20px; }
.breed-panel {
  display: flex; flex-direction: column; margin-top: 8px; overflow: hidden; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.breed-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.breed-opt {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 14px;
  font-size: 16px; font-weight: 600; line-height: 20px; cursor: pointer; border-bottom: 1px solid var(--hair);
}
.breed-opt:last-child { border-bottom: 0; }
.breed-opt.is-active { background: var(--sand); }
.breed-opt.is-sel { background: var(--sky-soft); color: var(--sky); }
.breed-opt--none { flex-wrap: wrap; font-weight: 500; color: var(--ink-2); }
.breed-opt--none b { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .breed-opt:hover { background: var(--sand); } }
.breed-always {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  padding: 8px 10px; background: var(--sand); border-top: 1px solid var(--line);
}
.breed-always .chip { height: 40px; }
.breed-always .link { position: relative; margin: 0; min-height: 24px; line-height: 20px; padding: 2px 4px; }
.breed-always .link::before { content: ''; position: absolute; inset: -10px -4px; }
.link.is-sel { color: var(--sky); }
/* Phones and short windows: while searching, the title steps aside so the field sits right under the header. */
.screen--breed.is-searching .body { padding-top: 12px; }
.screen--breed.is-searching .breed-search { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 8px; margin-top: 16px; }
.chip {
  height: 44px; padding: 0 12px; border: 1.5px solid var(--opt-line); border-radius: 999px; background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
/* 44 px chips; the gap between rows is part of the hit area too */
.chip { position: relative; }
.chip::before { content: ''; position: absolute; inset: -4px 0; }
.chip.is-sel { border-color: var(--sky); background: var(--sky-soft); color: var(--sky); }

/* ---------- info screens (4, 12, 15) ---------- */
.info-img { display: block; margin: 30px auto 0; width: 300px; max-width: 100%; height: auto; }
.info-text { margin: 28px auto 0; max-width: 320px; font-size: 17px; line-height: 26px; text-wrap: balance; }
.info-text b { font-weight: 700; }
.screen--info .q-title.info-title { font-size: 24px; line-height: 30px; margin-top: 4px; }
/* 4: big round illustration straight under the bare header */
.screen--commands_added .body { padding-top: 8px; }
.screen--commands_added .info-img { margin-top: -10px; width: 330px; }
.screen--commands_added .info-text { margin-top: 25px; line-height: 22px; }
/* 15: art, "Great news!", headline, small print */
.screen--built .info-img { margin-top: 4px; width: 320px; }
.info-big { margin: 34px 0 0; font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -.3px; }
.screen--built .q-title.info-title { margin-top: 6px; font-size: 20px; line-height: 25px; }
.screen--built .info-text { margin-top: 14px; font-size: 15.5px; line-height: 21px; color: var(--ink-2); max-width: 310px; }
.screen--built .info-text b { color: var(--ink); }

/* ---------- step 9: programs ---------- */
.screen--programs .body { padding-top: 22px; }
.prog-title { font-size: 22px; line-height: 26px; }
.prog-art { position: relative; width: 196px; height: 142px; margin: 16px auto 0; }
.prog-art .blob { position: absolute; left: 0; right: 0; bottom: 0; height: 112px; background: var(--sand-2); border-radius: 52% 48% 50% 50% / 58% 60% 40% 42%; }
.prog-art img { position: absolute; left: 50%; bottom: 0; height: 142px; width: auto; max-width: 160px; transform: translateX(-50%); object-fit: contain; }
.prog-list { list-style: none; margin: 14px 6px 0; padding: 0; text-align: left; }
.prog-list li { display: flex; align-items: center; gap: 9px; padding: 7px 0 6px; border-bottom: 1px solid var(--hair); }
.prog-list li:last-child { border-bottom: 0; }
.seal { flex: none; width: 24px; height: 24px; }
.prog-list b { display: block; font-size: 16px; line-height: 21px; font-weight: 650; }
.prog-list small { display: block; font-size: 11.5px; line-height: 15px; color: var(--ink-3); }

/* ---------- step 16: loader (plays by itself) ---------- */
.loader-title { max-width: 300px; margin-inline: auto; }
.ring { position: relative; width: 156px; height: 156px; margin: 34px auto 0; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--sky-soft); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--sky); stroke-width: 9; stroke-linecap: round; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--sky); font-variant-numeric: tabular-nums; }
.loader-status { margin: 14px 0 0; min-height: 22px; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--sky); }
.loader-reviews { margin: 24px calc(-1 * var(--pad)) 0; }
.loader-track { display: flex; gap: 10px; padding: 0 var(--pad); overflow: hidden; scroll-padding-left: var(--pad); }
.loader-card {
  flex: none; width: calc(100% - 2px); min-height: 190px; display: flex; flex-direction: column; padding: 18px 20px;
  background: var(--sand); border-radius: var(--radius-card); text-align: left;
}
.loader-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.loader-card .stars { flex: none; color: var(--sun); font-size: 17px; letter-spacing: 1px; }
.loader-card p { margin: 10px 0 0; font-size: 14px; line-height: 20px; }
.loader-card footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.loader-card .flag { font-family: var(--emoji); font-size: 16px; }
.loader-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; min-height: 7px; }
.loader-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color .2s; }
.loader-dots i.on { background: var(--ink); }

/* ---------- step 17: email ---------- */
.email-title { max-width: 260px; margin-inline: auto; }
.nw { white-space: nowrap; }
.email-sub { margin-top: 18px; font-size: 16px; }
.email-form { margin-top: 20px; text-align: left; }
.field-label { display: block; font-size: 16px; font-weight: 700; line-height: 20px; }
.field {
  display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 13px; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); background: var(--sand); border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.field[aria-invalid="true"] { border-color: var(--warn-2); }
.field-err { margin: 6px 0 0; font-size: 13px; color: var(--warn-2); font-weight: 600; }
.privacy { margin: 12px 0 0; font-size: 11px; line-height: 15px; color: var(--ink-3); }
.email-form .btn { margin-top: 16px; }

/* ---------- step 17: tips opt-in ---------- */
.optin-title { margin-top: 6px; }
.optin-card {
  display: flex; align-items: center; gap: 12px; margin: 40px -7px 0; min-height: 80px; padding: 12px 16px;
  background: var(--sand); border-radius: 16px; text-align: left;
}
.optin-card p { margin: 0; font-size: 15px; line-height: 24px; }
.optin-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; }
.optin-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- steps 19–20: wheel ---------- */
.body--wheel { padding-top: 6px; }
.wheel-wrap { display: flex; justify-content: center; }
.wheel { display: block; width: 296px; height: auto; max-width: 100%; overflow: visible; }
.wheel .halo { fill: #fff; stroke: rgba(30, 35, 64, .07); stroke-width: 1; filter: drop-shadow(0 6px 14px rgba(30, 35, 64, .10)); }
.wheel .seg { fill: #fff; }
.wheel .seg--tint { fill: var(--sand-2); }
.wheel .seg--won { fill: var(--cta-press); }
.wheel .rim { fill: none; stroke: var(--cta); stroke-width: 16; }
.wheel .dot { fill: #fff; }
.wheel .hub-ring { fill: #fff; stroke: var(--cta); stroke-width: 3; }
.wheel .hub { fill: var(--cta); }
.wheel .pointer { fill: var(--cta); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.wheel-rot { transform-box: fill-box; transform-origin: center; will-change: transform; }
.lbl text { text-anchor: middle; fill: var(--ink); font-family: var(--font); }
.lbl-big { font-size: 17px; font-weight: 800; }
.lbl-small { font-size: 12px; font-weight: 500; fill: var(--ink-2) !important; }
.lbl--won text { fill: #fff !important; }
.wheel-title { margin: 30px 0 0; font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -.3px; }
.wheel-sub { margin: 16px auto 0; max-width: 300px; font-size: 15px; line-height: 21px; }
/* While it spins only the wheel stays; three dots wait where the button was. */
.is-spinning .wheel-title, .is-spinning .wheel-sub, .is-spinning .foot > * { visibility: hidden; }
.wheel-wait { display: none; position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 11; margin: 0; justify-content: center; gap: 8px; }
.is-spinning .wheel-wait { display: flex; }
.wheel-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: wait-dot 1s ease-in-out infinite; }
.wheel-wait i:nth-child(2) { animation-delay: .15s; }
.wheel-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes wait-dot { 0%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }

/* ---------- menu sheet ---------- */
.menu { position: fixed; inset: 0; z-index: 50; }
.menu-scrim { position: absolute; inset: 0; background: rgba(30, 35, 64, .38); animation: fade .18s ease-out; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--bg);
  padding: 64px 24px 24px; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(30, 35, 64, .12);
  animation: slide-in .2s cubic-bezier(.2, .8, .2, 1);
}
.menu-panel a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hair); }
.menu-close { position: absolute; top: 2px; right: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }

/* ---------- consent card (EU time zones) ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 auto; max-width: 432px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--bg);
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(30, 35, 64, .14);
}
.consent-title { margin: 0; font-size: 17px; font-weight: 700; }
.consent-text { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.consent-btns { display: flex; gap: 10px; margin-top: 14px; }
.consent-btn { flex: 1; height: 46px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; }
.consent-reject { background: #ECE8E3; color: var(--ink); }
.consent-accept { background: var(--cta); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .wheel-rot { transition-duration: .7s !important; }
}

/* Operator details: under the first screen (the page reviewers and visitors land on) and in the menu on every step. */
.site-foot { display: none; padding: 28px var(--pad) 32px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
#app:has(.screen--age) ~ .site-foot { display: block; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.site-foot a { color: var(--ink-2); text-underline-offset: 3px; }
.site-foot p { margin: 6px auto 0; max-width: 340px; }
.menu-op { margin: 18px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.menu-panel .menu-op a { display: inline; padding: 0; font-size: inherit; font-weight: 400; border: 0; text-decoration: underline; }
