/* Gluya Quiz engine styles. Scoped to .gq. Design language: the cabin quiz postcard. */

.gq {
  --ink: #0B3157; --text: #193951; --muted: #426074; --coral: #B84E3A; --coral-soft: #DA6B50;
  --cream: #F7EFE3; --paper: #FFFDFA; --pc: #FCF8F1; --sand: #EADBC4; --sea: #E8F2F2;
  --sea-edge: #8DB8C5; --sea-line: #7FB0C8; --sea-deep: #2F6F95; --line: #D9D7CF; --ok: #185F4B;
  container-type: inline-size;
  position: relative;
  box-sizing: border-box;
  margin: 8px 0 40px;
  padding: clamp(18px, 4cqi, 44px);
  background:
    radial-gradient(90% 60% at 0% 100%, rgba(141,184,197,.28), transparent 70%),
    radial-gradient(60% 40% at 100% 0%, rgba(218,107,80,.08), transparent 70%),
    var(--cream);
  border-radius: 28px;
  color: var(--text);
  font-family: Heebo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: right;
  overflow: hidden;
}
/* On wide screens the quiz steps out of the reading column. */
@media (min-width: 1100px) {
  .gq { width: min(1180px, calc(100vw - 80px)); margin-inline: calc((100% - min(1180px, 100vw - 80px)) / 2); }
}
.gq *, .gq *::before, .gq *::after { box-sizing: border-box; }
.gq-anchor { display: block; height: 0; scroll-margin-top: 90px; }
.gq-defs { position: absolute; width: 0; height: 0; }
.gq-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gq h2, .gq h3, .gq p, .gq ul, .gq ol, .gq figure { margin: 0; }
.gq a { color: var(--ink); }
.gq :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.gq [tabindex="-1"]:focus { outline: none; }
.gq img { max-width: 100%; }

/* ---------- question stage ---------- */
.gq-stage { display: grid; gap: 18px; grid-template-areas: "head" "visual" "main"; }
@container (min-width: 760px) {
  .gq-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "head visual" "main visual"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5cqi, 64px); row-gap: 16px; align-items: start; }
}
.gq-head { grid-area: head; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gq-visual { grid-area: visual; min-width: 0; }
.gq-main { grid-area: main; display: flex; flex-direction: column; gap: 14px; min-width: 0; container-type: inline-size; }
.gq-intro { display: flex; flex-direction: column; gap: 6px; }
.gq-intro:empty { display: none; }
.gq-eyebrow { font-size: 14px; font-weight: 700; color: var(--coral); letter-spacing: .02em; }
.gq-h1 { font-size: clamp(25px, 6cqi, 34px); line-height: 1.15; font-weight: 800; color: var(--ink); }
.gq-lede { font-size: 16px; color: var(--muted); max-width: 52ch; }
.gq-shared { background: var(--paper); border: 1px dashed var(--coral); border-radius: 12px; padding: 10px 14px; }

.gq-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gq-count { font-size: 14px; font-weight: 500; color: var(--muted); }

/* route with a sailing boat */
.gq-route { --gq-p: 0; position: relative; height: 30px; }
.gq-route::before { content: ""; position: absolute; inset-inline: 14px; top: 14px; border-top: 2px dashed var(--sea-edge); }
.gq-route::after { content: ""; position: absolute; inset-inline-start: 14px; top: 13px; height: 4px; width: calc((100% - 28px) * var(--gq-p) / 100); background: var(--sea-deep); border-radius: 4px; transition: width .9s cubic-bezier(.3,.7,.2,1); }
.gq-dots { list-style: none; margin: 0; padding: 0 9px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; }
.gq-dot { position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); border: 2px solid var(--sea-edge); }
.gq-dot.is-done { background: var(--sea-deep); border-color: var(--sea-deep); }
.gq-dot.is-now { visibility: hidden; }
.gq-boat { position: absolute; z-index: 2; top: 0; inset-inline-start: calc((100% - 30px) * var(--gq-p) / 100); width: 30px; height: 30px; border-radius: 50%; background: var(--pc); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: inset-inline-start .9s cubic-bezier(.3,.7,.2,1); box-shadow: 0 4px 10px -4px rgba(11,49,87,.4); }
.gq-boat svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: gqBob 2.4s ease-in-out infinite; }

/* the changing postcard */
.gq-frame { position: relative; background: #FFFDF8; padding: 10px 10px 42px; border-radius: 4px; box-shadow: 0 30px 50px -32px rgba(11,49,87,.6), 0 0 0 1px rgba(11,49,87,.07); transform: rotate(-1deg); }
@container (min-width: 760px) { .gq-frame { transform: rotate(-1.6deg); padding: 14px 14px 52px; } .gq-visual { position: sticky; top: 96px; padding: 8px 6px 0; } }
.gq-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); border-radius: 2px; }
@container (min-width: 760px) { .gq-photo { aspect-ratio: 4 / 3; } }
.gq-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.gq-layer.is-in { opacity: 1; animation: gqKen 14s ease-out both; }
.gq-stamp-mini { position: absolute; top: -12px; left: -2px; width: 54px; height: 62px; transform: rotate(8deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.12)); }
.gq-cap { position: absolute; bottom: 10px; inset-inline: 18px; font-size: 18px; font-weight: 700; color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (min-width: 760px) { .gq-cap { bottom: 14px; font-size: 21px; } }
.gq-cap.is-on { opacity: 1; transform: none; }
.gq-frame.is-wobble { animation: gqWobble .6s cubic-bezier(.3,1.4,.5,1); }

.gq-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.gq-legend { padding: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.gq-title { display: block; font-size: clamp(23px, 6.4cqi, 32px); line-height: 1.2; font-weight: 800; color: var(--ink); outline: none; }
.gq-hint { display: block; font-size: 16px; color: var(--muted); }

.gq-choices { display: grid; gap: 10px; }
@container (min-width: 600px) { .gq-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gq-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgba(0,0,0,.05); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; animation: gqCard .45s calc(var(--i, 0) * 60ms + 80ms) cubic-bezier(.2,.8,.2,1) both; }
.gq-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gq-choice:hover { transform: translateY(-2px); border-color: var(--sea-line); box-shadow: 0 10px 20px -12px rgba(11,49,87,.35); }
.gq-choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.gq-choice.is-on { background: var(--pc); border: 2.5px solid var(--coral); box-shadow: 0 12px 24px -12px rgba(184,78,58,.5); }
.gq-ico { flex-shrink: 0; width: 46px; height: 46px; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
@container (min-width: 600px) { .gq-ico { width: 52px; height: 52px; } }
.gq-choice.is-on .gq-ico { transform: rotate(-6deg) scale(1.08); }
.gq-choice-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gq-choice-label { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.gq-choice-sub { font-size: 15px; color: var(--muted); line-height: 1.4; }
.gq-tick { position: absolute; top: -11px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.15); transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.gq-tick svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gq-choice.is-on .gq-tick { transform: scale(1); }

.gq-fb { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--sea); border-radius: 12px; padding: 0 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, padding .3s ease; }
.gq-fb.is-on { max-height: 160px; opacity: 1; padding: 10px 12px; }
.gq-fb.is-warn { background: #FBE9E4; }
.gq-fb svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--sea-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gq-nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.gq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 17px/1.2 Heebo, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .25s ease, color .25s ease; }
.gq-cta { flex-grow: 1; border: 0; background: var(--coral); color: #fff; box-shadow: 0 14px 30px -14px rgba(184,78,58,.7); }
.gq a.gq-cta { color: #fff; }
.gq-cta:hover { background: var(--ink); transform: translateY(-2px); }
.gq-cta[aria-disabled="true"] { background: #C9B9AE; box-shadow: none; transform: none; color: #3D2A22; cursor: default; }
.gq-ghost { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 500; }
.gq-ghost:hover { background: var(--ink); color: #fff; }
.gq-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gq-skip { font-size: 15px; color: var(--muted) !important; padding: 12px 0; }
@container (min-width: 520px) { .gq-cta { flex-grow: 0; padding: 0 40px; } }

/* ---------- newsletter step (optional, before the postcard) ---------- */
.gq-photo.is-teaser img { filter: blur(12px) saturate(1.15); transform: scale(1.12); animation: none; }
.gq-teaser-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(20px, 5cqi, 28px); font-weight: 800; color: var(--ink); text-shadow: 0 1px 12px rgba(255,253,248,.9); }
.gq-teaser-note::before { content: ""; position: absolute; width: min(70%, 320px); height: 64px; background: rgba(255,253,248,.72); border-radius: 999px; z-index: -1; }
.gq-teaser-note { z-index: 1; isolation: isolate; }
.gq-nl { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.gq-nl-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.gq-nl-input { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: 400 17px Heebo, Arial, sans-serif; color: var(--text); text-align: left; }
.gq-nl-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.gq-nl-input[aria-invalid="true"] { border-color: #913B2C; }
.gq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; }
.gq-consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--coral); }
.gq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gq-nl-msg { font-size: 15px; min-height: 0; color: var(--ok); }
.gq-nl-msg:empty { display: none; }
.gq-nl-msg.is-bad { color: #913B2C; }
.gq-nl .gq-ghost { flex-grow: 1; }
@container (min-width: 520px) { .gq-nl .gq-ghost { flex-grow: 0; } }
.gq-nl-note { font-size: 14px; color: var(--muted); }
.gq-signup .gq-title { font-size: clamp(22px, 6cqi, 30px); }

/* ---------- writing moment ---------- */
.gq-writing { min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.gq-pc { position: relative; width: min(340px, 100%); height: 220px; background: var(--pc); border-radius: 4px; box-shadow: 0 20px 40px -18px rgba(11,49,87,.35), 0 0 0 1px rgba(11,49,87,.08); transform: rotate(-2deg); padding: 22px; display: flex; gap: 14px; }
.gq-pc-lines { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.gq-w { display: block; font-size: 15px; color: var(--text); animation: gqWrite .5s var(--d) steps(18) both; }
.gq-w:first-child { font-size: 17px; font-weight: 700; color: var(--ink); }
.gq-wl { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.gq-pc-side { width: 84px; border-inline-start: 1px dashed var(--sea-edge); padding-inline-start: 12px; }
.gq-pc-stamp { display: flex; align-items: flex-end; justify-content: center; width: 66px; height: 78px; padding-bottom: 6px; border: 1.5px dashed var(--coral); background: linear-gradient(var(--sea) 0 55%, var(--sea-edge) 55% 80%, var(--paper) 80%); font-size: 10px; font-weight: 700; color: var(--coral); animation: gqStamp .5s 1.1s both; }
.gq-pen { position: absolute; left: 30px; bottom: 20px; width: 50px; height: 50px; animation: gqPen .9s ease-in-out infinite; }
.gq-writing-t { font-size: 20px; font-weight: 800; color: var(--ink); text-align: center; }

/* ---------- result ---------- */
.gq-result { display: flex; flex-direction: column; gap: 22px; animation: gqFade .4s ease both; }
@media (min-width: 1100px) { .gq.is-result { width: min(1040px, calc(100vw - 80px)); margin-inline: calc((100% - min(1040px, 100vw - 80px)) / 2); } }
.gq-post { position: relative; background: #FFFDF8; border-radius: 4px; padding: 10px 10px 20px; box-shadow: 0 28px 50px -30px rgba(11,49,87,.55), 0 0 0 1px rgba(11,49,87,.08); animation: gqIn .7s cubic-bezier(.2,.8,.2,1) both; }
@container (min-width: 700px) { .gq-post { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 16px; } }
.gq-post-art { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; border-radius: 2px; }
.gq-post-art img, .gq-second-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gq-post-art img { animation: gqKen 16s ease-out both; }
.gq-stamp { position: absolute; top: -14px; left: -6px; width: 78px; height: 90px; font-family: Heebo, Arial, sans-serif; animation: gqStamp .55s .5s both; }
.gq-post-body { padding: 16px 8px 0; display: flex; flex-direction: column; gap: 6px; }
@container (min-width: 700px) { .gq-post-body { padding: 8px 4px 8px 12px; } }
.gq-type { font-size: 15px; color: var(--muted); }
.gq-type strong { color: var(--ink); }
.gq-name { font-size: clamp(30px, 7cqi, 46px); line-height: 1.08; font-weight: 800; color: var(--ink); outline: none; }
.gq-under { width: 170px; height: 10px; }
.gq-under path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: gqDraw .8s .8s ease forwards; }
.gq-mirror { font-size: 18px; line-height: 1.6; color: var(--text); margin-top: 4px; }
/* Share button right under the postcard (only when per-result share cards are on). */
.gq-share { display: flex; justify-content: center; margin-top: -6px; }
.gq-share .gq-btn { width: 100%; max-width: 440px; background: var(--paper); }
.gq-share .gq-btn:hover { background: var(--ink); }
/* On phones the label must stay on one line (it needs about 270px at 17px). */
@container (max-width: 340px) { .gq-share .gq-btn { font-size: 15px; padding: 0 12px; } }
.gq-share .gq-btn { text-align: center; }
/* Articles drawn by gluya-core underline every link inside .blog-body; the button is not a text link. */
.gq .gq-share a.gq-btn { text-decoration: none; }

.gq-grid { display: grid; gap: 22px; }
@container (min-width: 700px) { .gq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.gq-box { background: var(--paper); border-radius: 16px; padding: 18px 16px; box-shadow: 0 3px 8px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 10px; }
.gq h3 { font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.gq-count-line { font-size: 15px; color: var(--muted); }
.gq-mlist { list-style: none; padding: 0; display: grid; gap: 10px; }
.gq-m { display: grid; grid-template-columns: 58px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font-size: 15px; }
.gq-m-name { font-weight: 500; }
.gq-m-top .gq-m-name, .gq-m-top .gq-m-label { font-weight: 800; color: var(--ink); }
.gq-m-bar { display: block; height: 12px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.gq-m-bar span { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--sea-edge); transform-origin: right; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.gq-m-top .gq-m-bar span { background: var(--coral); }
.gq-m-second .gq-m-bar span { background: var(--sea-deep); }
.gq-m-out .gq-m-bar span { background: #B9B3A8; }
.gq-meter.is-in .gq-m-bar span { transform: scaleX(1); }
.gq-meter.is-in .gq-m:nth-child(2) .gq-m-bar span { transition-delay: .12s; }
.gq-meter.is-in .gq-m:nth-child(3) .gq-m-bar span { transition-delay: .24s; }
.gq-meter.is-in .gq-m:nth-child(4) .gq-m-bar span { transition-delay: .36s; }
.gq-static .gq-m-bar span { transform: none; transition: none; }
.gq-m-label { font-size: 14px; color: var(--muted); }

.gq-why ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.gq-why li { display: flex; gap: 10px; }
.gq-why svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gq-why-pull svg { stroke: var(--sea-deep); stroke-width: 2; }

.gq-aha { background: var(--sea); border: 1.5px dashed var(--sea-line); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.gq-aha p { font-size: 17px; line-height: 1.65; }
.gq-aha strong { font-size: 1.15em; color: var(--ink); white-space: nowrap; }

.gq-second { flex-direction: row; gap: 16px; align-items: center; }
.gq-second-art { flex-shrink: 0; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--sand); box-shadow: 0 0 0 5px #FFFDF8, 0 6px 14px rgba(0,0,0,.14); transform: rotate(-3deg); margin: 6px; }
.gq-second p { font-size: 16px; }

.gq-tips ol { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 10px; }
@container (min-width: 760px) { .gq-tips ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gq-tips li { display: flex; gap: 12px; background: var(--pc); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.55; }
.gq-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--sea-deep); color: var(--sea-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gq-tips a { white-space: nowrap; font-weight: 500; }

.gq-now { border: 1.5px dashed rgba(184,78,58,.55); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.gq-now p { font-size: 17px; }

.gq-doors { display: flex; flex-direction: column; gap: 12px; }
.gq-wide { width: 100%; }
.gq-door { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.gq-door:hover { transform: translateY(-2px); border-color: var(--sea-line); }
.gq-door span { font-size: 13px; color: var(--muted); }
.gq-door strong { font-size: 16px; color: var(--ink); }
@container (min-width: 700px) { .gq-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .gq-wide, .gq-row { grid-column: 1 / -1; } }
.gq-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gq-grow { flex-grow: 1; }
.gq-link { min-height: 48px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font: 500 15px Heebo, Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.gq-link:hover { color: var(--ink); }
.gq-note { font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- motion ---------- */
.gq-enter .gq-head, .gq-enter .gq-legend { animation: gqEnter .45s cubic-bezier(.2,.8,.2,1) both; }
.gq-enter .gq-frame { animation: gqDeal .6s cubic-bezier(.2,.8,.2,1) both; }
.gq-writing.gq-enter { animation: gqFade .35s ease both; }
@keyframes gqEnter { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes gqCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gqDeal { from { opacity: 0; transform: translate(-30px, 10px) rotate(-6deg); } to { opacity: 1; } }
@keyframes gqWobble { 0% { rotate: 0deg; } 35% { rotate: 1.4deg; } 70% { rotate: -.6deg; } 100% { rotate: 0deg; } }
@keyframes gqKen { from { transform: scale(1.001); } to { transform: scale(1.06); } }
@keyframes gqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gqIn { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gqStamp { 0% { transform: scale(1.7) rotate(-16deg); opacity: 0; } 60% { transform: scale(.94) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(8deg); opacity: 1; } }
@keyframes gqWrite { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes gqPen { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(-14px, 3px) rotate(-4deg); } }
@keyframes gqBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes gqDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .gq *, .gq *::before, .gq *::after { animation: none !important; transition: none !important; }
  .gq-m-bar span { transform: none; }
  .gq-under path { stroke-dashoffset: 0; }
  .gq-layer.is-in { opacity: 1; }
}
@media (forced-colors: active) {
  .gq-choice.is-on { outline: 3px solid Highlight; }
  .gq-m-bar span { background: CanvasText; }
}

/* ---------- baseline before the engine starts (also the no-JS view) ---------- */
.gq-base { display: flex; flex-direction: column; gap: 10px; }
.gq-base h2 { font-size: clamp(24px, 6cqi, 32px); line-height: 1.2; font-weight: 800; color: var(--ink); }
.gq-base ul { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.gq-park { width: min(740px, 100% - 32px); margin: 32px auto; }
.gq-park .gq { width: auto; margin-inline: 0; }

/* ---------- signup gates ---------- */
.gq-textlink { align-self: flex-start; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font: 400 15px/1.5 Heebo, Arial, sans-serif; text-align: start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gq-textlink:hover { color: var(--ink); }
.gq-consent-line { font-size: 14px; line-height: 1.5; color: var(--muted); }
.gq-nl .gq-wide { flex-grow: 1; }
.gq-signup .gq-nl-note { margin-top: -4px; }

.gq-lock { position: relative; background: var(--pc); border: 1.5px dashed var(--coral); border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 36px -24px rgba(184,78,58,.55); }
@container (min-width: 700px) { .gq-lock { padding: 28px 32px; max-width: 720px; margin-inline: auto; width: 100%; } }
.gq-lock-head { display: flex; gap: 12px; align-items: center; }
.gq .gq-lock-head h3 { font-size: clamp(21px, 5cqi, 26px); outline: none; }
.gq-lock-ico { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gq-lock-body { font-size: 17px; line-height: 1.6; }
.gq-lock-list { list-style: none; padding: 0; display: grid; gap: 8px; }
@container (min-width: 600px) { .gq-lock-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gq-lock-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.gq-lock-list .gq-lock-ico { width: 18px; height: 18px; stroke: var(--sea-deep); }
.gq-row-end { justify-content: center; }

.gq-after { border: 1.5px dashed var(--sea-line); }
.gq-after p { font-size: 16px; }
.gq-after-wrap { display: flex; justify-content: center; }
.gq-after-wrap .gq-textlink { align-self: center; }

@media (forced-colors: active) { .gq-lock { border-style: solid; } }

/* ---------- claims: myth or fact, the duck and the pond ---------- */
.gq-why-miss svg { stroke: var(--muted); stroke-width: 2; }
.gq-choices.gq-claims { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gq-claims .gq-choice { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 96px; padding: 10px 6px; }
.gq-claims .gq-choice-text { align-items: center; }
.gq-claims .gq-choice-label { font-size: 19px; }
.gq-claims .gq-ico { width: 40px; height: 40px; }
.gq-claims .gq-tick { display: none; }
.gq-choice.is-on.is-right { border-color: var(--ok); box-shadow: 0 12px 24px -12px rgba(24,95,75,.5); background: #EAF5EF; }
.gq-choice.is-on.is-wrong { border-color: var(--coral); }
.gq-fb.is-on.is-right { background: #E3F1EA; }
.gq-fb.is-on.is-right svg { stroke: var(--ok); }
.gq-fb.is-on.is-wrong { background: #FBE9E4; }
.gq-fb.is-on.is-wrong svg { stroke: var(--coral); }
.gq-claims + .gq-fb.is-on, .gq-fb.is-on.is-right, .gq-fb.is-on.is-wrong { max-height: 260px; }

.gq-pond { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: linear-gradient(180deg, var(--paper) 0 28%, #DCEAF0 28% 100%); border: 1px solid var(--sea-edge); border-radius: 14px; overflow: hidden; }
.gq-pond-top { display: flex; align-items: center; gap: 10px; }
.gq-duckbox { display: inline-flex; width: 38px; flex-shrink: 0; }
.gq-duck { width: 100%; height: auto; display: block; animation: gqBob 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.gq-pond-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.gq-pond-t b { font-weight: 800; color: var(--coral); margin-inline-start: 6px; }
.gq-pond-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gq-pi { padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.4; border: 1.5px dashed var(--sea-line); color: var(--muted); background: rgba(255,253,250,.6); }
.gq-pi.is-found { border: 1.5px solid var(--ok); color: var(--ok); background: #EAF5EF; animation: gqPop .5s cubic-bezier(.3,1.6,.5,1) both; }
.gq-pi.is-miss { border-style: dashed; border-color: var(--coral); color: var(--coral); background: #FBE9E4; }
.gq-pi.is-bonus { border: 1.5px solid #D8A92B; color: #7A5A00; background: #FFF4CC; }
.gq-pond.is-dive .gq-duck { animation: gqDive 1s ease-in-out both; }
.gq-pond.is-wobble .gq-duck { animation: gqWobbleDuck .7s ease-in-out both; }
@keyframes gqBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes gqDive { 0% { transform: translateY(0); } 35% { transform: translateY(14px) rotate(-20deg); opacity: .55; } 70% { transform: translateY(-5px) rotate(6deg); opacity: 1; } 100% { transform: translateY(0); } }
@keyframes gqWobbleDuck { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 45% { transform: rotate(11deg); } 70% { transform: rotate(-6deg); } }
@keyframes gqPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* x and y are percentages of the 4:3 picture. On a narrow screen the box is 16:10, so the picture is cropped top and bottom by about 8%. */
.gq-hotduck { position: absolute; left: calc(var(--x, 50) * 1%); top: calc((var(--y, 50) - 8.333) / 0.8333 * 1%); width: clamp(30px, 8%, 48px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; z-index: 3; padding: 0; }
@container (min-width: 760px) { .gq-hotduck { top: calc(var(--y, 50) * 1%); } }
.gq-hotduck:hover { box-shadow: 0 0 0 2px rgba(246,201,69,.55); }
.gq-hotduck:focus-visible { box-shadow: 0 0 0 3px #F6C945, 0 0 0 5px var(--ink); outline: none; }
.gq-hotduck.is-found { box-shadow: 0 0 0 3px #F6C945; animation: gqPop .5s cubic-bezier(.3,1.6,.5,1); }
.gq-duckfact { display: none; font-size: 15px; line-height: 1.5; background: #FFF4CC; border: 1px solid #E8D28A; border-radius: 12px; padding: 10px 12px; }
.gq-duckfact.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .gq-duck, .gq-pi.is-found, .gq-hotduck.is-found { animation: none !important; }
}
@media (forced-colors: active) {
  .gq-pi { border-color: CanvasText; }
  .gq-pi.is-found { border-style: solid; }
}

/* ---------- the boarding pass (quizzes with `pass`) ---------- */
.gq-pass { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; background: var(--paper); border: 1.5px solid var(--sea-edge); border-radius: 14px; overflow: hidden; }
.gq-pass::before, .gq-pass::after { content: ""; position: absolute; top: 40px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--sea-edge); }
.gq-pass::before { inset-inline-start: -8px; }
.gq-pass::after { inset-inline-end: -8px; }
.gq-pass-top { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 2px dashed var(--sea-line); }
.gq-pass-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.gq-pass-t b { font-weight: 800; color: var(--coral); margin-inline-start: 6px; }
.gq-pass-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gq-pf { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 5px 8px; min-height: 48px; border: 1.5px dashed var(--sea-line); border-radius: 8px; background: rgba(232,242,242,.5); overflow: hidden; }
.gq-pf-k { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.gq-pf-v { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: .01em; }
.gq-pf.is-wait .gq-pf-v { color: var(--sea-line); font-weight: 400; letter-spacing: .12em; }
.gq-pf.is-on { border-style: solid; border-color: var(--ok); background: #EAF5EF; }
.gq-foot { position: absolute; inset-inline-end: 4px; bottom: 3px; width: 22px; height: 22px; fill: #F0B72D; opacity: .55; transform: rotate(-14deg); }
.gq-pf.is-stamp .gq-foot { animation: gqStamp .7s cubic-bezier(.3,1.5,.5,1) both; }
.gq-pf.is-stamp { animation: gqInk .9s ease-out both; }
.gq-pass.is-waddle .gq-duck { animation: gqWobbleDuck .7s ease-in-out both; }
@keyframes gqStamp { 0% { transform: scale(2.6) rotate(-40deg); opacity: 0; } 55% { transform: scale(.85) rotate(-10deg); opacity: .9; } 100% { transform: scale(1) rotate(-14deg); opacity: .55; } }
@keyframes gqInk { 0% { background: #FFF1B8; } 100% { background: #EAF5EF; } }
@media (prefers-reduced-motion: reduce) { .gq-pf.is-stamp, .gq-pf.is-stamp .gq-foot { animation: none !important; } }
@media (forced-colors: active) { .gq-pf { border-color: CanvasText; } .gq-pf.is-on { border-style: solid; } }

/* ---------- 0.9.1: keep the quiz's own look inside articles that style every link and every focus ring ---------- */
/* Core articles give every link in the body an underline, force "color: inherit" on everything with !important, and give every focused element a ring. Buttons and cards need !important to keep their colours. */
.gq .gq-btn { text-decoration: none; }
.gq .gq-btn.gq-cta { color: #fff !important; }
.gq .gq-btn.gq-cta[aria-disabled="true"] { color: #3D2A22 !important; }
.gq .gq-btn.gq-ghost { color: var(--ink) !important; }
.gq .gq-btn.gq-ghost:hover { color: #fff !important; }
.gq a.gq-door { text-decoration: none; color: var(--ink) !important; }
.gq a.gq-door strong { color: var(--ink) !important; }
.gq a.gq-door span { color: var(--muted) !important; }
/* Titles that get focus by script (so a screen reader starts reading there) are not tab stops, so they need no ring. */
.gq.gq [tabindex="-1"]:focus, .gq.gq [tabindex="-1"]:focus-visible { outline: none !important; }

/* A quiz in an article with a side table of contents stays in the reading column instead of running over the panel. */
@media (min-width: 1100px) { .gq.gq-flow { width: auto; margin-inline: 0; } }

/* The boarding pass is the progress, so the boat route is not shown next to it. On a phone the pass is shorter. */
.gq:has(.gq-pass) .gq-route { display: none; }
@container (max-width: 520px) {
  .gq-pass { padding: 8px 10px 10px; gap: 6px; }
  .gq-pass-list { gap: 5px; }
  .gq-pf { min-height: 40px; padding: 3px 7px; }
  .gq-pf-k { font-size: 11px; }
  .gq-pf-v { font-size: 13px; }
  .gq-foot { width: 18px; height: 18px; }
}

/* The article sets its own line height on paragraphs; the quiz intro keeps its tighter one. */
.gq .gq-lede { line-height: 1.55; }

/* The browser reset paints every hovered or focused button magenta. Quiet buttons (text links, the hidden duck) stay transparent. */
.gq .gq-textlink, .gq .gq-textlink:hover, .gq .gq-textlink:focus, .gq .gq-link, .gq .gq-link:hover, .gq .gq-link:focus, .gq .gq-hotduck:hover, .gq .gq-hotduck:focus { background-color: transparent !important; }
.gq .gq-textlink:hover, .gq .gq-link:hover { color: var(--ink) !important; }

/* Result cards stretch to the full width of their column (the article centred them), and paragraphs keep the quiz's line height. */
.gq .gq-doors { align-items: stretch; }
.gq.gq p { line-height: 1.6; }

/* A short line under the pond counter says what the count means. */
.gq-pond-hint { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Quiet text links keep their underline inside articles that reset it. */
.gq .gq-textlink { text-decoration: underline; text-underline-offset: 3px; }
