/* The Sidequest flow: a full-screen layer that opens from the button you pressed */
html.qf-lock, html.qf-lock body { overflow: hidden; }

.qf {
  --qp: 20px;
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  background: #F5F0E8; color: #1A1C22;
  font-family: var(--f, system-ui, sans-serif); font-weight: 300;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .7s cubic-bezier(.65, 0, .35, 1);
}
.qf.on { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.qf[hidden] { display: none; }
.calm .qf { clip-path: none; opacity: 0; transition: opacity .2s ease; }
.calm .qf.on { opacity: 1; }
.qf::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 28% at 8% 0%, rgba(255,122,89,.11), rgba(255,122,89,0) 70%),
    radial-gradient(40% 30% at 100% 18%, rgba(59,123,255,.10), rgba(59,123,255,0) 70%),
    radial-gradient(55% 40% at 50% 108%, rgba(34,196,154,.09), rgba(34,196,154,0) 70%);
}
.qf > * { position: relative; }
.qf button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.qf :focus-visible { outline: 2px solid #3B7BFF; outline-offset: 3px; }

.qf-marble {
  display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.16), rgba(0,0,0,0) 55%),
    var(--c);
}

/* top: close and progress */
.qf-top { display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top)) var(--qp) 10px; }
.qf-close { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(26,28,34,.12); background: rgba(255,255,255,.75); cursor: pointer; }
.qf-close::before, .qf-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1.5px; margin: -.75px 0 0 -7.5px; background: #1A1C22; transform: rotate(45deg); }
.qf-close::after { transform: rotate(-45deg); }
.qf-progress { flex: 1; display: flex; align-items: center; gap: 12px; }
.qf-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(26,28,34,.08); overflow: hidden; }
.qf-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #FF7A59, #FFC23D, #22C49A, #3B7BFF, #A58BFF, #FF7EB9); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.qf-pct { min-width: 3.1em; text-align: right; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }

/* the page */
.qf-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.qf-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 22px var(--qp) 48px; }
.qf-page { max-width: 620px; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.qf-page.wide { max-width: none; }
.qf-page.in-r { opacity: 0; transform: translateX(44px); }
.qf-page.in-l { opacity: 0; transform: translateX(-44px); }
.qf-page.out-l, .qf-page.out-r { position: absolute; left: var(--qp); right: var(--qp); top: 22px; opacity: 0; pointer-events: none; }
.qf-page.out-l { transform: translateX(-44px); }
.qf-page.out-r { transform: translateX(44px); }
.qf-page.center { margin: 0 auto; text-align: center; }
.qf-page.center .qf-help { margin-left: auto; margin-right: auto; max-width: 32ch; }
.qf-head { margin-bottom: 26px; }
.qf-eyebrow { margin: 0 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4E5260; }
.qf-title { margin: 0; font-weight: 300; font-size: clamp(2rem, 8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; outline: none; text-wrap: balance; }
.qf-help { margin: 12px 0 0; color: #4E5260; font-size: 1.0625rem; line-height: 1.5; }
.qf-msg { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(217,45,74,.08); color: #C21F3D; font-weight: 400; }
.qf-msg:empty { display: none; }
.qf-note { margin: -2px 0 12px; font-size: .9375rem; color: #4E5260; }

/* single choice rows */
.qf-rows { display: grid; gap: 10px; }
.qf-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px;
  border-radius: 18px; border: 1px solid rgba(26,28,34,.1); background: rgba(255,255,255,.72);
  font-size: 1.125rem; font-weight: 400; line-height: 1.3; color: #1A1C22; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qf-row:active { transform: scale(.985); }
.qf-row[aria-checked="true"] { border-color: #1A1C22; background: #fff; box-shadow: 0 0 0 1px #1A1C22; }
.qf-tick { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(26,28,34,.25); transition: all .2s ease; }
[aria-checked="true"] > .qf-tick {
  border-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 34%), var(--c, #1A1C22);
  box-shadow: 0 6px 12px -6px var(--c, #1A1C22); transform: scale(1.1);
}
.qf-other { margin-top: 12px; }

/* the way in: two cards, the full profile first and marked Recommended */
.qf-paths { display: grid; gap: 12px; }
.qf-path {
  display: grid; gap: 6px; width: 100%; padding: 18px 20px 19px; border-radius: 20px; text-align: left; cursor: pointer;
  border: 1px solid rgba(26,28,34,.1); background: rgba(255,255,255,.72); color: #1A1C22; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qf-path:active { transform: scale(.985); }
.qf-path[aria-checked="true"] { border-color: #1A1C22; background: #fff; box-shadow: 0 0 0 1px #1A1C22; }
.qf-path-top { display: flex; align-items: center; gap: 12px; }
.qf-path-top b { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.qf-path-top em {
  margin-left: auto; padding: 4px 10px 5px; border-radius: 999px; font-style: normal; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #1A1C22;
}
.qf-path-meta { padding-left: 34px; font-size: .9375rem; color: #5B6070; }
.qf-path-text { padding-left: 34px; font-size: 1rem; line-height: 1.45; color: #3E4250; }
.qf-path[aria-checked="true"] .qf-tick {
  border-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 34%), var(--c, #1A1C22);
  box-shadow: 0 6px 12px -6px var(--c, #1A1C22); transform: scale(1.1);
}
/* after a quick setup: the rest, offered once on the last screen */
.qf-finish { width: 100%; max-width: 420px; display: grid; gap: 10px; justify-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(26,28,34,.08); }
.qf-finish p { margin: 0; font-size: .9375rem; line-height: 1.45; color: #3E4250; }
.qf-other[hidden] { display: none; }

/* multiple choice chips */
.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px 0 15px;
  border-radius: 999px; border: 1px solid rgba(26,28,34,.12); background: rgba(255,255,255,.72);
  font-size: 1rem; font-weight: 400; line-height: 1.2; color: #1A1C22; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.qf-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .4; transition: opacity .15s ease, transform .2s ease; }
.qf-chip[aria-checked="true"] { background: #1A1C22; border-color: #1A1C22; color: #fff; }
.qf-chip[aria-checked="true"] i { opacity: 1; transform: scale(1.25); }
.qf-chips.full .qf-chip[aria-checked="false"] { opacity: .42; }
.qf-count { margin: 16px 0 0; font-weight: 600; font-size: .9375rem; color: #4E5260; }
.qf-count.nudge { animation: qf-nudge .4s ease; }
@keyframes qf-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* one-to-five, in dots */
.qf-scale-wrap { max-width: 420px; }
.qf-scale { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.qf-scale button { display: grid; place-items: center; width: 66px; height: 66px; padding: 0; border: 0; background: none; cursor: pointer; }
.qf-scale i { width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(26,28,34,.22); transition: all .25s cubic-bezier(.2, .8, .2, 1); }
.qf-scale .on i {
  border-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 32%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.16), rgba(0,0,0,0) 55%), var(--c);
  box-shadow: 0 10px 18px -10px var(--c); transform: scale(1.06);
}
.qf-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: .9375rem; color: #4E5260; }

/* inputs */
.qf-input {
  display: block; width: 100%; min-height: 56px; padding: 14px 18px;
  font: 300 1.125rem/1.4 var(--f, system-ui, sans-serif); color: #1A1C22;
  background: rgba(255,255,255,.82); border: 1px solid rgba(26,28,34,.14); border-radius: 16px;
  -webkit-appearance: none; appearance: none;
}
.qf-input:focus { outline: none; border-color: #3B7BFF; box-shadow: 0 0 0 4px rgba(59,123,255,.16); }
.qf-big { min-height: 66px; font-size: 1.5rem; }
.qf-select, .qf-prompt-q {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1C22' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 46px;
}
.qf-dobs { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; max-width: 380px; }
.qf-dob { text-align: center; font-size: 1.5rem; min-height: 66px; padding: 14px 8px; }
.qf-label { display: block; margin: 20px 0 8px; font-weight: 600; font-size: 1rem; }
.qf-check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: 20px; font-size: .9688rem; line-height: 1.5; color: #4E5260; }
.qf-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #1A1C22; }
.qf-check a { color: #1A1C22; }
.qf-google { display: flex; justify-content: center; min-height: 44px; }
.qf-google[hidden], .qf-or[hidden] { display: none; }
.qf-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; font-size: .9375rem; color: #4E5260; }
.qf-or::before, .qf-or::after { content: ""; flex: 1; height: 1px; background: rgba(26,28,34,.12); }

/* foot: back and continue */
.qf-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--qp) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(26,28,34,.06); background: rgba(245,240,232,.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.qf-foot[hidden] { display: none; }
.qf-back {
  min-height: 48px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 400; color: #4E5260;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(26,28,34,.25);
}
.qf-back[hidden] { display: inline-block; visibility: hidden; }
.qf-next {
  position: relative; margin-left: auto; min-height: 54px; min-width: 168px; padding: 0 28px;
  border: 0; border-radius: 999px; background: #1A1C22; color: #fff; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600; line-height: 1;
  box-shadow: 0 14px 28px -14px rgba(26,28,34,.7);
  transition: opacity .2s ease, transform .15s ease;
}
.qf-next:active { transform: scale(.97); }
.qf-next:disabled { opacity: .26; cursor: not-allowed; box-shadow: none; }
.qf-next[hidden] { display: inline-block; visibility: hidden; }
.qf-next.is-busy { color: transparent; }
.qf-next.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: qf-spin .8s linear infinite; }
@keyframes qf-spin { to { transform: rotate(360deg); } }

/* curating */
.qf-curate { display: grid; justify-items: center; gap: 34px; padding-top: 8px; }
.qf-orbit { position: relative; width: 220px; height: 220px; animation: qf-spin 8s linear infinite; }
.qf-orbit .qf-marble {
  position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); width: 40px; height: 40px; margin: -20px;
  box-shadow: 0 14px 22px -12px var(--c);
  animation: qf-breathe 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s);
  transition: left .7s cubic-bezier(.65, 0, .35, 1), top .7s cubic-bezier(.65, 0, .35, 1);
}
.qf-orbit.gather .qf-marble { left: 50%; top: 50%; }
@keyframes qf-breathe { 50% { transform: scale(1.2); } }
.qf-lines { position: relative; width: 100%; min-height: 3.2em; margin: 0; padding: 0; list-style: none; }
.qf-lines li { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; font-size: 1.125rem; color: #4E5260; }
.qf-lines li.on { opacity: 1; transform: none; }
.qf-lines li.done { opacity: 0; transform: translateY(-10px); }
.calm .qf-orbit, .calm .qf-orbit .qf-marble { animation: none; }

/* the profile infographic */
.qf-card { display: grid; gap: 22px; }
.qf-card-a { padding: 14px 14px 20px; border-radius: 26px; background: rgba(255,255,255,.78); border: 1px solid rgba(26,28,34,.07); text-align: center; }
.qf-radar { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; overflow: visible; }
.qf-radar .grid { fill: none; stroke: rgba(26,28,34,.1); stroke-width: 1; }
.qf-radar .shape { stroke: rgba(26,28,34,.5); stroke-width: 1.5; stroke-linejoin: round; }
.qf-radar .lbl { font-family: var(--f, system-ui, sans-serif); font-size: 12.5px; font-weight: 400; fill: #4E5260; }
.qf-energy { margin: 4px 8px 0; font-size: 1rem; color: #4E5260; }
.qf-energy b { color: #1A1C22; }
.qf-card h3, .qf-builder h3 { margin: 24px 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4E5260; }
.qf-card-b h3:first-child, .qf-builder h3:first-child { margin-top: 0; }
.qf-quests { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qf-quests li {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(26,28,34,.06); font-size: 1.0625rem; font-weight: 400;
  opacity: 0; transform: translateY(10px); animation: qf-rise .5s ease forwards; animation-delay: calc(.35s + var(--i) * .12s);
}
.qf-quests .qf-marble { width: 18px; height: 18px; }
@keyframes qf-rise { to { opacity: 1; transform: none; } }
.calm .qf-quests li { animation: none; opacity: 1; transform: none; }
.qf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-tags span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(26,28,34,.08); font-size: .9688rem; font-weight: 400; }
.qf-tags span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* the Sidequest page builder */
.qf-fun { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-fun span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(26,28,34,.08); font-size: 1.0625rem; font-weight: 400; }
.qf-fun .qf-marble { width: 22px; height: 22px; }
.qf-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qf-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.6); border: 1.5px dashed rgba(26,28,34,.2); }
.qf-photo.filled { border: 0; background: #E3E6EC; }
.qf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qf-add { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-size: .875rem; font-weight: 400; color: #4E5260; }
.qf-add i { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #1A1C22; }
.qf-add i::before, .qf-add i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: #fff; }
.qf-add i::after { transform: rotate(90deg); }
.qf-x { position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(26,28,34,.72); cursor: pointer; }
.qf-x::before, .qf-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: #fff; transform: rotate(45deg); }
.qf-x::after { transform: rotate(-45deg); }
.qf-up { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 600; }
.qf-saved { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8125rem; color: #4E5260; }
.qf-prompt { margin-bottom: 12px; padding: 14px 14px 10px; border-radius: 20px; background: rgba(255,255,255,.8); border: 1px solid rgba(26,28,34,.07); box-shadow: inset 4px 0 0 var(--c); }
.qf-prompt-q { width: 100%; margin-bottom: 8px; padding: 4px 34px 6px 4px; border: 0; background-color: transparent; background-position: right 8px center; font: 600 1rem/1.3 var(--f, system-ui, sans-serif); color: #1A1C22; -webkit-appearance: none; appearance: none; }
.qf-prompt-a { min-height: 88px; font-size: 1.0625rem; resize: vertical; }
.qf-left { display: block; margin-top: 6px; text-align: right; font-size: .8125rem; color: #4E5260; }

/* friendship takes time */
.qf-hbig { margin: 0; font-size: 1.25rem; color: #4E5260; }
.qf-hcount { font-weight: 300; font-size: 4.75rem; line-height: 1; letter-spacing: -0.04em; color: #1A1C22; font-variant-numeric: tabular-nums; }
.qf-htrack { position: relative; height: 10px; margin: 92px 0 96px; border-radius: 5px; background: rgba(26,28,34,.08); }
.qf-hfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: linear-gradient(90deg, #FF7A59, #FFC23D, #22C49A, #3B7BFF, #A58BFF, #FF7EB9); }
.qf-hgroup { position: absolute; top: 50%; left: 0; display: flex; padding-left: 6px; transform: translate(-50%, -50%); }
.qf-hgroup .qf-marble { width: 18px; height: 18px; margin-left: -7px; box-shadow: 0 0 0 2px #F5F0E8; }
.qf-mark { position: absolute; top: 24px; display: grid; justify-items: center; text-align: center; transform: translateX(-50%); white-space: nowrap; font-size: .8125rem; color: #4E5260; opacity: .4; transition: opacity .3s ease; }
.qf-mark::before { content: ""; position: absolute; left: 50%; top: -30px; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: rgba(26,28,34,.28); }
.qf-mark.m1 { top: auto; bottom: 26px; }
.qf-mark.m1::before { top: auto; bottom: -32px; }
.qf-mark.m2 { transform: translateX(-80%); }
.qf-mark.m2::before { left: 80%; }
.qf-mark b { font-size: .9375rem; font-weight: 600; color: #1A1C22; }
.qf-mark.on { opacity: 1; }
.qf-mark.on b { color: var(--c); }
.qf-hout { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.qf-hout.on { opacity: 1; transform: none; }
.qf-hout p { margin: 0 0 12px; font-size: 1.125rem; line-height: 1.55; }
.qf-hout .qf-src { font-size: .875rem; color: #4E5260; }

/* joining is free: three plain promises in one card, edged with all six colours */
.qf-deal {
  position: relative; list-style: none; margin: 0; padding: 8px 18px; display: grid;
  border-radius: 22px; background: rgba(255,255,255,.82);
}
.qf-deal::before {
  content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; pointer-events: none;
  background: linear-gradient(90deg, #FF7A59, #FFC23D, #22C49A, #3B7BFF, #A58BFF, #FF7EB9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.qf-deal li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; padding: 16px 0; font-size: 1.0625rem; line-height: 1.45; color: #4E5260; }
.qf-deal li + li { border-top: 1px solid rgba(26,28,34,.08); }
.qf-deal .qf-marble { margin-top: 6px; }
.qf-deal b { display: block; font-weight: 600; color: #1A1C22; }

/* done */
.qf-done { display: grid; justify-items: center; gap: 30px; margin-top: 10px; }
.qf-burst { position: relative; width: 180px; height: 180px; }
.qf-burst .qf-marble {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px;
  box-shadow: 0 14px 22px -12px var(--c);
  opacity: 0; animation: qf-burst 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms);
}
@keyframes qf-burst { from { transform: translate(0, 0) scale(.3); opacity: 0; } to { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; } }
.calm .qf-burst .qf-marble { animation: none; opacity: 1; transform: translate(var(--x), var(--y)); }
.qf-done-actions { display: grid; justify-items: center; gap: 8px; }
.qf-done-actions .qf-next { margin: 0; }
.qf-burst.dim .qf-marble { filter: saturate(.55); }
.qf-burst.dim { animation: qf-wait-turn 18s linear infinite; }
@keyframes qf-wait-turn { to { transform: rotate(360deg); } }
.calm .qf-burst.dim { animation: none; }

/* invite only: the optional code on sign-up, a late code on the list, and a member's own invites */
.qf-invite .qf-label { margin: 0 0 8px; }
.qf-auth .qf-invite .qf-label { margin: 0 0 8px; }
.qf-code-in { text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.qf-code-in::placeholder { text-transform: none; letter-spacing: 0; }
.qf-code-note { margin: 8px 0 0; min-height: 1.4em; font-size: .9375rem; line-height: 1.4; color: #4E5260; }
.qf-code-note.good { color: #0B6E52; font-weight: 600; }
.qf-code-note.bad { color: #C4153A; font-weight: 600; }
.qf-late { width: 100%; max-width: 420px; text-align: left; }
.qf-late .qf-label { margin: 0 0 8px; }
/* a member's invitations: a dark card with a gold edge, like the "By invitation" band on the home page */
.qf-ticket {
  position: relative; display: grid; justify-items: center; gap: 6px; width: min(100%, 340px); padding: 20px 22px 18px;
  border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #252830 0%, #16181D 65%); color: #F4F1EA;
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.4), 0 22px 40px -24px rgba(22,24,29,.75);
}
/* the notches of a ticket */
.qf-ticket::before, .qf-ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #F5F0E8; }
.qf-ticket::before { left: -10px; box-shadow: inset -1px 0 0 rgba(212,178,106,.4); }
.qf-ticket::after { right: -10px; box-shadow: inset 1px 0 0 rgba(212,178,106,.4); }
.qf-ticket-k { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #D4B26A; }
.qf-ticket-code { font-size: 1.75rem; font-weight: 400; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #F4F1EA; }
.qf-ticket-left { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: rgba(244,241,234,.7); }
.qf-ticket-left i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--c); }
.qf-ticket-left i.on { border-color: transparent; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 32%), var(--c); }
.qf-ticket-left span { margin-left: 4px; }

/* grouped chips: the sidequest catalogue */
.qf-groups { display: grid; gap: 18px; }
.qf-group-h { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4E5260; }

/* paired statements: two sides, six dots, no middle */
.qf-pair { max-width: 560px; }
.qf-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qf-side {
  position: relative; margin: 0; min-height: 118px; padding: 30px 14px 16px; border-radius: 20px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(26,28,34,.1);
  font-size: 1.0625rem; font-weight: 400; line-height: 1.35; color: #1A1C22;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .25s ease;
}
.qf-side::before { content: ""; position: absolute; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.qf-side.l::before { left: 14px; }
.qf-side.r { text-align: right; }
.qf-side.r::before { right: 14px; }
.qf-side.lean { background: #fff; border-color: var(--c); box-shadow: 0 0 0 calc(1px + var(--k, 0) * 2px) var(--c), 0 18px 30px -22px var(--c); transform: translateY(calc(var(--k, 0) * -4px)); }
.qf-side.away { opacity: .5; }
.qf-slider { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; height: 64px; margin-top: 18px; }
.qf-slider::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: rgba(26,28,34,.12); }
.qf-slider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 26px; margin: -13px 0 0 -1px; border-radius: 1px; background: rgba(26,28,34,.22); }
.qf-dot { position: relative; z-index: 1; display: grid; place-items: center; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; }
.qf-dot i {
  width: var(--s); height: var(--s); border-radius: 50%; background: #F5F0E8; border: 1.5px solid var(--c);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .2s ease;
}
.qf-dot:hover i { transform: scale(1.12); }
.qf-dot.on i {
  border-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 32%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.16), rgba(0,0,0,0) 55%), var(--c);
  box-shadow: 0 10px 18px -8px var(--c); transform: scale(1.18);
}
.qf-legend { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2px; font-size: .75rem; color: #4E5260; white-space: nowrap; }
.qf-legend > span { display: flex; justify-content: space-between; }
.qf-legend > span:first-child { padding-right: 14px; }
.qf-legend > span:last-child { padding-left: 14px; }
.qf-legend i { font-style: normal; }
.qf-verdict { margin: 14px 0 0; min-height: 1.5em; text-align: center; font-size: .9375rem; font-weight: 600; color: #4E5260; }

/* sign in: WhatsApp, an emailed code, or a passkey */
.qf-auth { display: grid; gap: 14px; max-width: 520px; }
.qf-auth .qf-check { margin-top: 0; }
.qf-auth .qf-label { margin: 6px 0 -6px; }
.qf-auth .qf-or { margin: 4px 0 0; }
.qf-check.nudge { animation: qf-nudge .4s ease; }
.qf-wa {
  display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 22px; border-radius: 20px;
  background: #0F8A4C; color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 30px -18px rgba(15,138,76,.9); transition: transform .15s ease;
}
.qf-wa:active { transform: scale(.98); }
.qf-wa b { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.qf-wa small { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; opacity: .9; }
.qf-wa-i { flex: none; width: 30px; height: 30px; }
.qf-inline { display: flex; gap: 8px; }
.qf-inline .qf-input { flex: 1; min-width: 0; }
.qf-ghost {
  position: relative; flex: none; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid #1A1C22;
  background: #fff; color: #1A1C22; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.qf-ghost.is-busy { color: transparent; }
.qf-ghost.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2px solid rgba(26,28,34,.25); border-top-color: #1A1C22; animation: qf-spin .8s linear infinite; }
.qf-link {
  justify-self: start; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 400; color: #1A1C22;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(26,28,34,.3);
}
.qf-pk { justify-self: center; margin-top: 4px; }
.qf-wait-dots { display: flex; justify-content: center; gap: 9px; padding: 6px 0 2px; }
.qf-wait-dots .qf-marble { width: 14px; height: 14px; animation: qf-hop 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * .11s); }
@keyframes qf-hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-9px); } }
.qf-wait-t { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.qf-qr-wrap { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .875rem; color: #4E5260; }
.qf-qr-wrap p { margin: 0; }
.qf-qr { width: 184px; height: 184px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid rgba(26,28,34,.08); }
.qf-qr svg { display: block; width: 100%; height: 100%; }
.qf-code { margin: 0; font-size: .9375rem; color: #4E5260; }
.qf-code b { padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.9); color: #1A1C22; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.qf-status { margin: 0; font-weight: 600; }
.qf-otp { max-width: 300px; font-size: 2rem; font-weight: 400; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(18px + .22em); }
.qf-row-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.qf-signin { margin: 22px 0 0; font-size: .9688rem; color: #4E5260; }
.qf-signin .qf-link { padding: 0; font-size: inherit; }
.qf-pk-art { display: grid; justify-items: center; gap: 22px; padding-top: 6px; }
.qf-pk-ring { position: relative; width: 132px; height: 132px; animation: qf-spin 14s linear infinite; }
.qf-pk-ring .qf-marble { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px; transform: rotate(calc(var(--i) * 60deg)) translateY(-48px); }
.calm .qf-wait-dots .qf-marble, .calm .qf-pk-ring { animation: none; }
@media (max-width: 480px) {
  .qf-inline { flex-direction: column; }
}
@media (max-width: 380px) {
  .qf-side { font-size: 1rem; padding: 28px 12px 14px; }
}

@media (min-width: 760px) {
  .qf { --qp: 40px; }
  /* on a computer the buttons sit right under the question, not at the bottom of the window */
  .qf-scroll { flex: 0 1 auto; min-height: 0; }
  .qf-inner { padding-bottom: 18px; }
  .qf-foot { width: 100%; max-width: 760px; margin: 0 auto; padding: 6px var(--qp) 28px; border-top: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .qf-side { font-size: 1.1875rem; min-height: 132px; padding: 34px 20px 20px; }
  .qf-side.l::before { left: 20px; }
  .qf-side.r::before { right: 20px; }
  .qf-card { grid-template-columns: 1fr 1fr; align-items: start; }
  .qf-photos { gap: 12px; }
}

/* halfway cheer: an orb of all six colours, out of the middle of the progress bar */
.qf > .qf-cheer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.qf-cheer-orb {
  position: absolute; left: calc(var(--x) - 32px); top: calc(var(--y) + 26px); width: 64px; height: 64px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.16), rgba(0,0,0,0) 55%),
    conic-gradient(from 200deg, #FF7A59, #FFC23D, #22C49A, #3B7BFF, #A58BFF, #FF7EB9, #FF7A59);
  box-shadow: 0 18px 30px -14px rgba(59,123,255,.55);
}
.qf-cheer-dot { position: absolute; left: calc(var(--x) - 5px); top: calc(var(--y) + 53px); width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: 0; }
.qf-cheer-text {
  position: absolute; left: 50%; top: calc(var(--y) + 104px); transform: translateX(-50%);
  width: max-content; max-width: min(340px, calc(100vw - 32px)); margin: 0; padding: 12px 18px 13px; border-radius: 18px;
  text-align: center; line-height: 1.35; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 18px 36px -18px rgba(26,28,34,.35);
}
.qf-cheer-text:empty { visibility: hidden; }
.qf-cheer-text b { display: block; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; color: #1A1C22; }
.qf-cheer-text span { display: block; margin-top: 3px; font-size: .9375rem; color: #4E5260; }
.qf-cheer.still { animation: qf-cheer-still 3.6s ease both; }
@keyframes qf-cheer-still { 0% { opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }


/* Sign-in entry in the header (site/nav.js) */
.bar-end { display: inline-flex; align-items: center; gap: 6px; }
.bar-signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: inherit; text-decoration: none; }
.bar-signin:hover { background: rgba(26,28,34,.06); }
.bar-signin:focus-visible { outline: 2px solid #3B7BFF; outline-offset: 2px; }
@media (max-width: 380px) { .bar-signin { padding: 0 8px; font-size: .875rem; } }
.qf-prov { display: grid; gap: 10px; justify-items: start; margin-top: 14px; }
.qf-apple { min-width: 280px; }

/* Sidequest password login, before optional providers. */
.qf-password { display:grid; gap:10px; width:100%; max-width:440px; }
.qf-password .qf-label { margin:4px 0 -4px; }
.qf-password .qf-ghost { margin-top:6px; }

/* A login of their own, after the profile (VIEWS.login) */
.qf-login .qf-link { margin-top: 4px; }
.qf-login .qf-input[readonly] { color: rgba(26,28,34,.62); background: rgba(26,28,34,.04); }
.qf-pass { position: relative; }
.qf-pass .qf-input { padding-right: 78px; }
.qf-show {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 12px; background: none; cursor: pointer; font: 600 .9375rem/1 var(--f, system-ui, sans-serif); color: #1A1C22;
}
.qf-show:hover { background: rgba(26,28,34,.06); }
.qf-show:focus-visible { outline: 2px solid #3B7BFF; outline-offset: 2px; }
.qf-rule { margin: -2px 0 0; font-size: .9375rem; color: rgba(26,28,34,.62); }
.qf-login-code { display: grid; gap: 10px; margin-top: 8px; }
.qf-login-code[hidden] { display: none; }
.qf-login-code .qf-label { margin: 4px 0 -4px; }
.qf-otp-in { max-width: 220px; font-size: 1.5rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }

/* the plan from the home page, on the first screen of the flow */
.qf-intent { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; color: #3E4250; }
.qf-intent b { font-weight: 600; color: #1A1C22; }
