/* Revamp 1.0.15 (Jamie 24-Oct, "approv A, cat black") — styles for the first
   minutes: films, Conson-ants, Vowel Owls, Consonant Dog Battle.
   Motion only under prefers-reduced-motion: no-preference; reduced motion
   gets a still glow / fade instead. Later tasks add their own sections. */

/* ── shared feedback ─────────────────────────────────────── */
.fq-glow {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 4px rgba(232, 184, 74, 0.55);
}
.fq-fizzle { opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .fq-shimmer {
    background-image: linear-gradient(110deg, transparent 30%, rgba(255, 240, 208, 0.65) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: fq-shimmer 1.6s ease-in-out infinite;
  }
  .fq-glow { animation: fq-glow 0.9s ease-out; }
  .fq-fizzle { animation: fq-fizzle 0.5s ease-out forwards; }
}
@keyframes fq-shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes fq-glow {
  0%   { box-shadow: 0 0 0 0 rgba(232, 184, 74, 0); transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 4px rgba(232, 184, 74, 0.55); transform: scale(1); }
}
@keyframes fq-fizzle {
  0%   { opacity: 1; filter: none; transform: translateX(0); }
  30%  { transform: translateX(-4px); }
  60%  { transform: translateX(4px); }
  100% { opacity: 0.55; filter: grayscale(0.6); transform: translateX(0); }
}

/* ── finale (wqKit.finale) ───────────────────────────────── */
.fq-finale {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.fq-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF0D0 0%, var(--gold-glow, #E8B84A) 60%, transparent 70%);
  opacity: 0;
  animation: fq-spark 1s ease-out forwards;
}
@keyframes fq-spark {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.4); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.2); }
}
.fq-finale-fade {
  background: radial-gradient(circle, rgba(255, 240, 208, 0.55) 0%, transparent 65%);
  animation: fq-finale-fade 0.4s ease-out forwards;
}
@keyframes fq-finale-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── films (wq_films.js) ─────────────────────────────────── */
.wq-film {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.wq-film.out { opacity: 0; }
.wq-film-pics { position: absolute; inset: 0; overflow: hidden; }
.wq-film-pic {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.wq-film-pic.on { opacity: 1; }
.wq-film-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 45%;
}
.wq-film-cat {
  left: 4%;
  bottom: 17%;
  height: 40%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.wq-film-book, .wq-film-ticket {
  filter: drop-shadow(0 0 18px rgba(232, 184, 74, 0.75));
}
.wq-film-book { left: 16%; top: 18%; height: 44%; }
.wq-film-ticket { right: 14%; top: 26%; height: 32%; }
@media (max-aspect-ratio: 1/1) {
  .wq-film-cat { height: 30%; bottom: 24%; }
  .wq-film-book { left: 50%; top: 10%; height: 26%; transform: translateX(-50%); }
  .wq-film-ticket { right: auto; left: 50%; top: 40%; height: 15%; transform: translateX(-50%); }
}
.wq-film-dark {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 10, 0.55);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.wq-film-dark.on { opacity: 1; }

.wq-film-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, #1a1424 0%, #000 75%);
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.wq-film-card.off { opacity: 0; }
.wq-film-kicker {
  font-family: var(--font);
  font-size: clamp(14px, 2.2vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-glow, #E8B84A);
}
.wq-film-name {
  font-family: var(--font);
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold-light, #FFF0D0);
  text-shadow: 0 2px 18px rgba(232, 184, 74, 0.35);
}
.wq-film-cap {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translateX(-50%);
  width: min(92%, 860px);
  z-index: 1;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(8, 6, 14, 0.72);
  font-family: var(--font);
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 240, 208, 0.55);
}
.wq-film-cap:empty { display: none; }
.wq-film-cap .w { transition: color 0.12s linear; }
.wq-film-cap .w.s { color: #FFF0D0; }
.wq-film-cap .w.c { color: var(--gold-glow, #E8B84A); }
.wq-film-skip {
  position: absolute;
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 2;
  min-width: 88px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--gold-glow, #E8B84A);
  background: rgba(8, 6, 14, 0.7);
  color: var(--gold-light, #FFF0D0);
  font-family: var(--font);
  font-size: 18px;
  cursor: pointer;
}
@media (max-width: 700px) {
  .wq-film-cap { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}

/* ── the story (replays) ─────────────────────────────────── */
.wq-story {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: #000;
}
.wq-story .wq-film { position: absolute; z-index: 1; }
.wq-story-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-glow, #E8B84A);
  background: rgba(8, 6, 14, 0.75);
  color: var(--gold-light, #FFF0D0);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wq-story-btn[hidden] { display: none !important; }
.wq-story-btn-pulse {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 4px rgba(232, 184, 74, 0.55);
}

/* ── the cat points at the story button ──────────────────── */
.wq-point {
  position: fixed;
  z-index: 9400;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.wq-point.out { opacity: 0; }
.wq-point-arrow {
  margin-left: calc(var(--arrow-dx, 0px) * 2);
  font-size: 26px;
  line-height: 1;
  color: var(--gold-glow, #E8B84A);
  text-shadow: 0 0 10px rgba(232, 184, 74, 0.8);
}
.wq-point-cat {
  height: 140px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

@media (prefers-reduced-motion: no-preference) {
  .wq-story-btn-pulse { animation: wq-story-pulse 1.2s ease-in-out infinite; }
  .wq-point { animation: wq-point-in 0.6s ease-out; }
  .wq-point-arrow { animation: wq-point-bob 0.9s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .wq-point { animation: wq-point-fade 0.6s ease-out; }
}
@keyframes wq-story-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold-glow, #E8B84A), 0 0 8px 2px rgba(232, 184, 74, 0.35); }
  50%      { box-shadow: 0 0 0 4px var(--gold-glow, #E8B84A), 0 0 22px 6px rgba(232, 184, 74, 0.7); }
}
@keyframes wq-point-in {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes wq-point-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wq-point-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Conson-ants (fq_ants.js) ────────────────────────────── */
.fq-ants {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* a set width, not 100%: the iPad quest area shrinks to fit its content */
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.fq-ants-instr { padding: 12px 16px; transition: opacity 0.4s ease-out; }
.fq-ants-instr .story-text { font-size: clamp(16px, 4vw, 19px); margin: 0; }
.fq-ants-field {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: end;
  row-gap: 6px;
  transition: opacity 0.5s ease-out;
}
/* 1.0.16 (Michael 26 Oct): the cat says the vowels line over the ants first. */
.fq-ants-cat {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(8, 10, 20, 0.72);
  border-radius: 16px;
  transition: opacity 0.6s ease;
}
.fq-ants-cat.out { opacity: 0; }
.fq-ants-cat-img {
  height: min(32vh, 220px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.fq-ants-cat-bubble { max-width: 520px; padding: 12px 16px; }
.fq-ants-cat-say { font-size: clamp(17px, 4.2vw, 21px); margin: 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .fq-ants-cat-img { animation: fq-cat-pop 0.5s ease-out; }
}
@keyframes fq-cat-pop {
  from { opacity: 0; transform: translateY(30px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fq-ant {
  position: relative;
  width: min(100%, 110px, 15vh * 0.713);
  min-width: 44px;
  aspect-ratio: 214 / 300;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  container-type: inline-size;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.fq-ant-walk, .fq-ant-wad {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 100%;
}
.fq-ant-body {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.fq-ant-disc {
  position: absolute;
  left: 71%;
  top: 19%;
  width: 50%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 34cqw/1 var(--font-letters);
  color: var(--ink, #2A1A0C);
  pointer-events: none;
  transition: color 0.2s ease-out;
}
.fq-ant.flip .fq-ant-body { transform: scaleX(-1); }
.fq-ant.flip .fq-ant-disc { left: 29%; }
.fq-ant.gone { pointer-events: none; opacity: 0; transition: opacity 0.4s ease-out; }
.fq-ant.gone .fq-ant-disc { visibility: hidden; }
.fq-ant.fq-nope .fq-ant-disc { color: #8C7A66; }
.fq-ant.fq-nope .fq-ant-body { filter: grayscale(0.6) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45)); }
.fq-ant.fq-hint .fq-ant-disc {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 6px rgba(232, 184, 74, 0.75);
}

.fq-tray {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(28, 18, 10, 0.6);
  box-shadow: inset 0 0 0 1px rgba(200, 146, 42, 0.35);
}
.fq-slot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed rgba(244, 234, 216, 0.4);
  box-sizing: border-box;
  font: 700 clamp(15px, 4.6vw, 26px)/1 var(--font-letters);
  color: var(--ink, #2A1A0C);
}
.fq-slot.filled {
  background: var(--gold-glow, #E8B84A);
  border: 2px solid var(--gold, #C8922A);
}
.fq-slot.fq-into-book { opacity: 0; transition: opacity 0.4s ease-out; }

.fq-fly {
  position: fixed;
  z-index: 9000;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-glow, #E8B84A);
  box-shadow: 0 0 14px 4px rgba(232, 184, 74, 0.6);
  font: 700 22px/1 var(--font-letters);
  color: var(--ink, #2A1A0C);
  pointer-events: none;
}

.fq-ants-done .fq-ants-field { opacity: 0.35; }
.fq-ants-done .fq-ants-instr { opacity: 0; }
.fq-ants-book {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 20;
  width: min(46%, 240px);
  aspect-ratio: 436 / 520;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fq-ant-walk { animation: fq-ant-crawl var(--crawl-ms, 6000ms) ease-in-out var(--crawl-delay, 0ms) infinite; }
  .fq-ant-wad { animation: fq-ant-wad 0.32s ease-in-out infinite alternate; }
  .fq-ant.gone { opacity: 1; transition: none; }
  .fq-ant.gone .fq-ant-walk { animation: fq-ant-flick 0.5s ease-in forwards; }
  .fq-ant.fq-nope .fq-ant-walk { animation: fq-ant-shake 0.5s ease-out; }
  .fq-ant.fq-hint .fq-ant-disc { animation: fq-ant-hint 0.9s ease-in-out infinite alternate; }
  .fq-slot.filled { animation: fq-land 0.3s ease-out 0.5s backwards; }
  .fq-slot.fq-pulse { animation: fq-pulse 0.6s ease-out; }
  .fq-fly { animation: fq-fly 0.55s ease-in forwards; }
  .fq-slot.fq-into-book {
    opacity: 1;
    transition: none;
    animation: fq-into-book 0.7s ease-in calc(var(--i, 0) * 70ms) forwards;
  }
  .fq-ants-book { animation: fq-book-in 0.5s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-ants-book { animation: fq-finale-fade 0.4s ease-out; }
}
@keyframes fq-ant-crawl {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(6%, -3%); }
  50%      { transform: translate(0, -1%); }
  75%      { transform: translate(-6%, -3%); }
}
@keyframes fq-ant-wad {
  from { transform: rotate(-3.5deg) translateY(0); }
  to   { transform: rotate(3.5deg) translateY(-3px); }
}
@keyframes fq-ant-flick {
  to { transform: translate(0, -60%) rotate(-25deg) scale(0.4); opacity: 0; }
}
@keyframes fq-ant-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6%); }
  40%      { transform: translateX(6%); }
  60%      { transform: translateX(-4%); }
  80%      { transform: translateX(4%); }
}
@keyframes fq-ant-hint {
  from { box-shadow: 0 0 0 2px var(--gold-glow, #E8B84A), 0 0 8px 2px rgba(232, 184, 74, 0.45); }
  to   { box-shadow: 0 0 0 4px var(--gold-glow, #E8B84A), 0 0 24px 8px rgba(232, 184, 74, 0.85); }
}
@keyframes fq-land {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes fq-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 184, 74, 0); }
  40%  { transform: scale(1.25); box-shadow: 0 0 16px 6px rgba(232, 184, 74, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 184, 74, 0); }
}
@keyframes fq-fly {
  0%   { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--fx, 0px)), calc(-50% + var(--fy, 0px))) scale(0.85); opacity: 0; }
}
@keyframes fq-into-book {
  to { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(0.3); opacity: 0; }
}
@keyframes fq-book-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ── Vowel Owls (fq_owls.js) ─────────────────────────────── */
.fq-owls {
  --oh: clamp(84px, 20vmin, 150px);   /* owl height; the art is 276 × 360 */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* a set width, not 100%: the iPad quest area shrinks to fit its content */
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.fq-owls-instr { padding: 12px 16px; transition: opacity 0.4s ease-out; }
.fq-owls-instr .story-text { font-size: clamp(16px, 4vw, 19px); margin: 0; }
.fq-owls-field {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 25%, #3A2A16 0%, #24170C 55%, var(--ground, #1C120A) 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 146, 42, 0.25);
}
/* the wood starts dark and lightens with every owl woken (--night, set by JS) */
.fq-owls-night {
  position: absolute;
  inset: 0;
  background: #07050A;
  opacity: var(--night, 0.7);
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.fq-owls-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fq-owl-seg {
  fill: none;
  stroke: rgba(244, 234, 216, 0.28);
  stroke-width: clamp(5px, 1.2vmin, 10px);
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  transition: stroke 0.6s ease;
}
.fq-owl-seg.lit {
  stroke: var(--gold-glow, #E8B84A);
  filter: drop-shadow(0 0 6px rgba(255, 214, 110, 0.9));
}

/* two rows of four; on a portrait phone three, two, three */
.fq-owls-tree {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  row-gap: 10px;
  padding: calc(var(--oh) * 0.22) 4px 18px;
}
@media (orientation: portrait) {
  .fq-owls-tree { grid-template-columns: repeat(6, 1fr); }
  .fq-owl { grid-column: span 2; }
  .fq-owl:nth-child(4) { grid-column: 2 / span 2; }
}
.fq-owl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--oh) * 0.767);
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
/* the branch under the owl's feet */
.fq-owl::before {
  content: '';
  position: absolute;
  left: -40%;
  right: -40%;
  top: calc(var(--oh) * 0.93);
  height: max(7px, calc(var(--oh) * 0.1));
  border-radius: 999px;
  background: linear-gradient(180deg, #6B4220, #4E2C12);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}
.fq-owl-body {
  position: relative;
  display: block;
  width: 100%;
  height: var(--oh);
  transform-origin: 50% 100%;
}
.fq-owl-bob {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 100%;
}
.fq-owl-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.72) saturate(0.85) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transition: filter 0.5s ease;
  pointer-events: none;
}
.fq-owl.awake .fq-owl-img {
  filter: brightness(1.05) drop-shadow(0 0 14px rgba(255, 214, 110, 0.55));
}
.fq-owl-eye {
  position: absolute;
  top: 25.5%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 110, 0.95), rgba(255, 214, 110, 0) 70%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.fq-owl-eye.l { left: 29%; }
.fq-owl-eye.r { left: 52%; }
.fq-owl.lit .fq-owl-eye { opacity: 1; }
.fq-owl-z {
  position: absolute;
  right: 6%;
  top: 4%;
  font: 700 15px/1 var(--font-letters);
  color: rgba(244, 234, 216, 0.7);
  pointer-events: none;
}
.fq-owl-z + .fq-owl-z { display: none; }
.fq-owl.awake .fq-owl-z { display: none; }
.fq-owl-plaque {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--oh) * 0.42);
  height: calc(var(--oh) * 0.4);
  margin-top: calc(var(--oh) * 0.09);
  box-sizing: border-box;
  border: 2px solid #4E2C12;
  border-radius: 9px;
  background: linear-gradient(180deg, #8A5A2B, #6B4220);
  color: var(--parchment, #F4EAD8);
  font: 700 calc(var(--oh) * 0.28)/1 var(--font-letters);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
  transition: color 0.3s ease;
  pointer-events: none;
}
/* the plaque's strings, tied round the branch */
.fq-owl-plaque::before, .fq-owl-plaque::after {
  content: '';
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: calc(var(--oh) * 0.1);
  background: #4E2C12;
}
.fq-owl-plaque::before { left: 22%; }
.fq-owl-plaque::after { right: 22%; }
.fq-owl.awake .fq-owl-plaque {
  background: linear-gradient(180deg, var(--gold-glow, #E8B84A), var(--gold, #C8922A));
  border-color: #6B4220;
  color: var(--ink, #2A1A0C);
}
.fq-owl.fq-nope .fq-owl-plaque { color: #8C7A66; }
.fq-owl.fq-hint .fq-owl-plaque {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 6px rgba(232, 184, 74, 0.75);
}

.fq-owls-done .fq-owls-instr { opacity: 0; }
.fq-owls-done .fq-owl-seg {
  stroke: var(--gold-glow, #E8B84A);
  filter: drop-shadow(0 0 8px rgba(255, 214, 110, 0.95));
}

@media (prefers-reduced-motion: no-preference) {
  .fq-owl-bob { animation: fq-owl-breathe 3.4s ease-in-out var(--breathe-delay, 0ms) infinite; }
  .fq-owl.fq-hop .fq-owl-body { animation: fq-owl-hop 0.55s ease; }
  .fq-owl.fq-nope .fq-owl-body { animation: fq-owl-wobble 0.6s ease; }
  .fq-owl.lit .fq-owl-eye { animation: fq-owl-eyes 1.6s ease-in-out infinite; }
  .fq-owl-z { opacity: 0; animation: fq-owl-zzz 2.6s ease-out infinite; }
  .fq-owl-z + .fq-owl-z { display: block; animation-delay: 1.3s; }
  .fq-owl.awake .fq-owl-z { display: none; }
  .fq-owl.fq-hint .fq-owl-plaque { animation: fq-owl-glow 1s ease-in-out 3; }
  .fq-owl.awake .fq-owl-plaque { animation: fq-owl-glow 1.2s ease-in-out 2; }
  /* the finale: a glow runs up the path, then the owls hop in a wave */
  .fq-owls-done .fq-owl-seg { animation: fq-owl-path 0.7s ease-out calc(var(--i, 0) * 140ms) both; }
  .fq-owls-done .fq-owl.awake .fq-owl-body { animation: fq-owl-hop 0.55s ease calc(500ms + var(--i, 0) * 90ms) both; }
}
@keyframes fq-owl-breathe {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.025, 0.975); }
}
@keyframes fq-owl-hop {
  0%, 100% { transform: translateY(0); }
  35%      { transform: translateY(-18%); }
  65%      { transform: translateY(2%); }
}
@keyframes fq-owl-wobble {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
@keyframes fq-owl-eyes {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.9); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes fq-owl-zzz {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: translate(14px, -34px) scale(1.15); opacity: 0; }
}
@keyframes fq-owl-glow {
  0%, 100% { box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(232, 184, 74, 0); }
  50%      { box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(232, 184, 74, 0.35); }
}
@keyframes fq-owl-path {
  0%   { stroke: var(--gold-glow, #E8B84A); filter: drop-shadow(0 0 6px rgba(255, 214, 110, 0.9)); }
  50%  { stroke: #FFF0D0; filter: drop-shadow(0 0 14px rgba(255, 214, 110, 1)); }
  100% { stroke: var(--gold-glow, #E8B84A); filter: drop-shadow(0 0 8px rgba(255, 214, 110, 0.95)); }
}

/* ── Consonant Dog Battle (fq_dogs.js) ───────────────────── */
.fq-dogs {
  --dh: clamp(110px, 26vmin, 220px);  /* mad dog height; the art is about 455 × 520 */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* a set width, not 100%: the iPad quest area shrinks to fit its content */
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.fq-dogs-instr { padding: 12px 16px; transition: opacity 0.4s ease-out; }
.fq-dogs-instr .story-text { font-size: clamp(16px, 4vw, 19px); margin: 0; }
.fq-dogs-field {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 25%, #3A2A16 0%, #24170C 55%, var(--ground, #1C120A) 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 146, 42, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "lan" "bubble" "stage" "shoot";
  row-gap: 10px;
  column-gap: 12px;
  padding: 12px 12px 16px;
}
@media (orientation: landscape) {
  .fq-dogs { --dh: clamp(110px, 21vmin, 180px); }
  .fq-dogs-field {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    grid-template-areas: "lan lan" "bubble stage" "shoot stage";
  }
}
.fq-dogs-field > :not(.fq-dogs-night) { position: relative; }
/* the yard starts dark and lightens with every dog calmed (--night, set by JS) */
.fq-dogs-night {
  position: absolute;
  inset: 0;
  background: #07050A;
  opacity: var(--night, 0.45);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

/* one lantern per dog, lit as each one goes quiet */
.fq-dogs-lanterns {
  grid-area: lan;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 40px);
  padding-top: 8px;
}
.fq-lantern {
  position: relative;
  width: 16px;
  height: 22px;
  border-radius: 6px 6px 8px 8px;
  border: 1px solid rgba(200, 146, 42, 0.5);
  background: #3A2A16;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.fq-lantern::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 8px;
  background: rgba(200, 146, 42, 0.6);
}
.fq-lantern.lit {
  background: radial-gradient(circle at 50% 45%, #FFF0D0 0%, var(--gold-glow, #E8B84A) 55%, var(--gold, #C8922A) 100%);
  box-shadow: 0 0 14px 5px rgba(255, 214, 110, 0.6);
}

/* the word bubble: picture, word with its gap, speak button, reply line */
.fq-dogs-bubble {
  grid-area: bubble;
  align-self: center;
  padding: 10px 14px;
  border: 3px solid var(--gold, #C8922A);
  border-radius: 22px;
  background: var(--parchment, #F4EAD8);
  color: var(--ink, #2A1A0C);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.fq-dogs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.fq-dogs-pic {
  display: block;
  height: clamp(56px, 10vh, 96px);
  width: auto;
  max-width: 34%;
  object-fit: contain;
  pointer-events: none;
}
.fq-dogs-frame {
  display: flex;
  align-items: center;
  font: 700 clamp(40px, 7vh, 64px)/1 var(--font-letters);
  border-radius: 14px;
  padding: 2px 6px;
  transition: text-shadow 0.4s ease, background 0.4s ease;
}
.fq-dogs-frame.lit {
  background: rgba(232, 184, 74, 0.25);
  text-shadow: 0 0 14px rgba(232, 184, 74, 0.9);
}
.fq-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 1.02em;
  margin: 0 0.06em;
  box-sizing: border-box;
  border: 3px dashed rgba(42, 26, 12, 0.45);
  border-radius: 12px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}
.fq-gap.filled {
  border: 3px solid var(--gold, #C8922A);
  background: rgba(232, 184, 74, 0.35);
}
.fq-gap.real {
  border: 3px solid #5B8FD9;
  background: var(--parchment, #F4EAD8);
  color: #1E4C8F;
}
.fq-gap.real.drop {
  border: 3px dashed rgba(42, 26, 12, 0.45);
  background: transparent;
}
.fq-gap.lit {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 18px 6px rgba(232, 184, 74, 0.75);
}
.fq-dogs-speak {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #4E2C12;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE7A6, var(--gold-glow, #E8B84A) 60%, var(--gold, #C8922A));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.fq-dogs-msg {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 2px dashed rgba(42, 26, 12, 0.25);
  font: 700 clamp(16px, 1.2vmin + 11px, 21px)/1.3 var(--font-letters);
  text-align: center;
  text-wrap: balance;
}
.fq-dogs-msg:empty { display: none; }
.fq-dogs-msg.real { color: #1E4C8F; }

/* the dogs: the mad one at the front, the calmed ones sitting further back */
.fq-dogs-stage {
  grid-area: stage;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: calc(var(--dh) + 8px);
  padding-left: 6%;
}
.fq-dog {
  position: relative;
  z-index: 1;
  height: var(--dh);
}
.fq-dog-body {
  display: block;
  height: 100%;
  transform-origin: 50% 100%;
}
.fq-dog-img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.fq-dog.v3 .fq-dog-img { filter: sepia(0.75) saturate(1.5) hue-rotate(-12deg) brightness(0.92) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)); }
.fq-dog.v5 .fq-dog-img { filter: hue-rotate(-28deg) saturate(1.6) brightness(0.95) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55)); }
.fq-dogs-pack {
  position: absolute;
  right: 0;
  bottom: calc(var(--dh) * 0.28);
  z-index: 0;
  display: flex;
  align-items: flex-end;
}
.fq-dogs-pack .fq-dog {
  height: calc(var(--dh) * 0.45);
  margin-left: calc(var(--dh) * -0.12);
}
.fq-dogs-pack .fq-dog:first-child { margin-left: 0; }

/* the bow along the bottom with this round's three vowel arrows */
.fq-dogs-shoot {
  grid-area: shoot;
  align-self: end;
  transition: opacity 0.5s ease;
}
.fq-dogs-bow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  pointer-events: none;
}
.fq-bow-limb, .fq-bow-limb2, .fq-bow-string { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fq-bow-limb { stroke: #6B4220; stroke-width: 9px; }
.fq-bow-limb2 { stroke: #8A5A2B; stroke-width: 4px; }
.fq-bow-string { stroke: var(--parchment, #F4EAD8); stroke-width: 1.5px; opacity: 0.75; }
.fq-dogs-arrows {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 7vw, 48px);
}
.fq-arrow {
  position: relative;
  width: clamp(54px, 9vmin, 64px);
  height: clamp(82px, 13.5vmin, 96px);
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.fq-arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fq-arrow-head, .fq-dogs-fly {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #4E2C12;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE7A6, var(--gold-glow, #E8B84A) 60%, var(--gold, #C8922A));
  color: var(--ink, #2A1A0C);
  font: 700 32px/1 var(--font-letters);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.fq-arrow-head {
  position: absolute;
  top: 4px;
  left: 50%;
  width: min(54px, 100%);
  aspect-ratio: 1;
  transform: translateX(-50%);
}
.fq-arrow.used { visibility: hidden; }
.fq-arrow.shimmer .fq-arrow-head {
  box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 16px 5px rgba(232, 184, 74, 0.7);
}
.fq-arrow.glowing .fq-arrow-head {
  box-shadow: 0 0 0 4px #FFF0D0, 0 0 22px 9px rgba(232, 184, 74, 0.9);
}
.fq-dogs-fly {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.fq-dogs-done .fq-dogs-instr { opacity: 0; }
.fq-dogs-done .fq-dogs-shoot { opacity: 0; }
.fq-dogs-done .fq-dogs-pack { opacity: 0; transition: opacity 0.4s ease; }
.fq-dogs-done .fq-dogs-pack .fq-dog-img { scale: -1 1; }

@media (prefers-reduced-motion: no-preference) {
  .fq-dogs-stage > .fq-dog { animation: fq-dog-in 0.45s ease-out; }
  .fq-dog.fq-bark .fq-dog-body { animation: fq-dog-bark 0.4s ease-in-out infinite; }
  /* a real word: the dog tilts its head, then barks on */
  .fq-dog.fq-bark .fq-dog-body.tilt { animation: fq-dog-tilt 1s ease, fq-dog-bark 0.4s ease-in-out 1s infinite; }
  .fq-dog.calm .fq-dog-body.wag { animation: fq-dog-wag 0.3s ease-in-out 4; }
  .fq-dogs-pack .fq-dog { animation: fq-dog-trot 0.5s ease-out; }
  .fq-arrow.shimmer .fq-arrow-head { animation: fq-arrow-shimmer 1.4s ease-in-out infinite; }
  .fq-arrow.fq-fizzle { animation: fq-arrow-bounce 0.42s ease-out forwards; }
  .fq-gap.filled { animation: fq-glow 0.9s ease-out; }
  /* a real-word vowel falls out of the gap; only the right one stays */
  .fq-gap.real.drop { animation: fq-gap-drop 0.4s ease-in forwards; }
  /* the finale: the calmed pack turns and runs off together */
  .fq-dogs-done .fq-dogs-pack { opacity: 1; transform: translateX(160%); transition: transform 1.1s ease-in; }
  .fq-dogs-done .fq-dogs-pack .fq-dog-body { animation: fq-dog-bark 0.3s ease-in-out infinite; }
}
@keyframes fq-gap-drop {
  from { color: transparent; text-shadow: 0 0 0 #1E4C8F; }
  to   { color: transparent; text-shadow: 0 0.6em 0 rgba(30, 76, 143, 0); }
}
@keyframes fq-dog-bark {
  0%, 100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-7%) scale(1.04, 0.97); }
  60%      { transform: translateY(1%) scale(0.98, 1.02); }
}
@keyframes fq-dog-wag {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-3deg); }
  75%      { transform: rotate(3deg); }
}
@keyframes fq-dog-tilt {
  0%, 100% { transform: rotate(0); }
  30%, 70% { transform: rotate(-7deg); }
}
@keyframes fq-dog-in {
  from { transform: translateX(40%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fq-dog-trot {
  from { transform: translateX(-80%); opacity: 0.4; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fq-arrow-shimmer {
  0%, 100% { box-shadow: 0 0 0 3px var(--gold-glow, #E8B84A), 0 0 10px 2px rgba(232, 184, 74, 0.5); transform: translateX(-50%) scale(1); }
  50%      { box-shadow: 0 0 0 3px #FFF0D0, 0 0 20px 7px rgba(232, 184, 74, 0.85); transform: translateX(-50%) scale(1.08); }
}
@keyframes fq-arrow-bounce {
  0%   { opacity: 1; filter: none; transform: translateY(-36px); }
  60%  { transform: translateY(5px); }
  100% { opacity: 0.55; filter: grayscale(0.6); transform: translateY(0); }
}

/* ── unlock map (fq_map.js) ──────────────────────────────── */
/* Revamp 1.0.15 (spec 4.6): the journey at the top of the unlock screen —
   the wood ticked, the marker on the road partway to the Ghost train. */
.fq-map { width: 100%; max-width: 420px; margin: 0 auto 14px; }
.fq-map-box {
  position: relative; aspect-ratio: 340 / 150; border-radius: 16px;
  background: radial-gradient(ellipse at 30% 40%, #3A2A18 0%, #22170C 70%);
  border: 1.5px solid rgba(232, 184, 74, 0.55);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
  font-family: Vollkorn, Georgia, "Times New Roman", serif;
}
.fq-map-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fq-map-road { fill: none; stroke: rgba(245, 233, 200, 0.42); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.fq-map-walked { fill: none; stroke: #E8B84A; stroke-width: 3.5; stroke-linecap: round; }
.fq-map-stop {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: #2A1A0C; border: 2px solid #A08870; color: #A08870;
}
.fq-map-stop.done { background: #C8922A; border-color: #FFF0D0; color: #2A1A0C; }
.fq-map-stop.next { border-color: #E8B84A; color: #E8B84A; box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.25), 0 0 14px 3px rgba(232, 184, 74, 0.45); }
.fq-map-icon { width: 15px; height: 15px; }
.fq-map-icon path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fq-map-stop.locked .fq-map-icon path:first-child,
.fq-map-stop.next .fq-map-icon path:first-child { fill: currentColor; stroke: none; }
.fq-map-label {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #F5E9C8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.fq-map-stop.locked .fq-map-label { color: #CDBB98; }
.fq-map-stop.below .fq-map-label { top: calc(100% + 3px); }
.fq-map-stop.above .fq-map-label { bottom: calc(100% + 3px); }
.fq-map-stop.start .fq-map-label { left: 0; transform: none; }
.fq-map-stop.end .fq-map-label { left: auto; right: 0; transform: none; }
.fq-map-marker {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #FFD873; border: 2px solid #2A1A0C; box-sizing: border-box;
  box-shadow: 0 0 0 4px rgba(255, 216, 115, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .fq-map-marker { animation: fq-map-pulse 1.6s ease-in-out infinite; }
}
@keyframes fq-map-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 216, 115, 0.45); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 216, 115, 0); }
}

/* ── grown-up samples (fq_samples.js, spec 5) ─────────────────────────────
   Inside #s-onboard. The screen scrolls, so the box aligns to the top while
   it shows (a centred column taller than the box would lose its top). */
#s-onboard.fq-gs-on { align-items: flex-start; }
#s-onboard.fq-gs-on .ob-card { max-width: 560px; text-align: left; }
.fq-gs-kicker { margin: 0 0 6px; font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #E8B84A; }
#s-onboard h2.fq-gs-title { margin: 0 0 8px; font-family: var(--font); font-size: 28px; line-height: 1.15; font-weight: 800; color: #FFF0D0; }
.fq-gs-programme { margin: 0 0 12px; font-family: var(--font); font-size: 17px; line-height: 1.45; font-weight: 700; color: #F5E9C8; }
.fq-gs-intro { margin: 0 0 16px; font-family: var(--font); font-size: 16px; line-height: 1.45; color: #D4C4A8; }
.fq-gs-card {
  margin: 0 0 12px; padding: 14px 16px; border: 2px solid #7A5C3A; border-radius: 20px;
  background: #2A1A0C; color: #FFF0D0; font-family: var(--font); text-align: left;
}
.fq-gs-card.skipped { opacity: 0.75; }
.fq-gs-story { margin: 0; font-size: 14px; font-weight: 700; color: #E8B84A; }
.fq-gs-topic { margin: 2px 0 6px; font-size: 20px; line-height: 1.2; font-weight: 800; }
.fq-gs-ask { margin: 0 0 10px; font-size: 15px; color: #D4C4A8; }
.fq-gs-card.skipped .fq-gs-ask { display: none; }
.fq-gs-words { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 12px; }
.fq-gs-word, .fq-gs-second { display: inline-flex; gap: 6px; }
.fq-gs-word[hidden], .fq-gs-second[hidden] { display: none; }
.fq-gs-tile {
  height: 44px; min-width: 34px; box-sizing: border-box; padding: 0 10px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F4EAD8; color: #2A1A0C; font-family: var(--font-letters); font-size: 26px; font-weight: 700;
}
.fq-gs-tile.gap { background: transparent; border: 2px dashed #C8922A; }
.fq-gs-tile.new { background: #E8B84A; }
.fq-gs-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fq-gs-choice {
  min-width: 64px; min-height: 52px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  border: 2px solid #C8922A; background: rgba(0, 0, 0, 0.3); color: #FFF0D0;
  font-family: var(--font-letters); font-size: 24px; font-weight: 700;
  touch-action: manipulation;
}
.fq-gs-choice.on { background: #C8922A; color: #2A1A0C; }
.fq-gs-choice.wrong { border-color: #C0563A; background: rgba(192, 86, 58, 0.35); }
.fq-gs-choice[hidden] { display: none; }
.fq-gs-card.skipped .fq-gs-choice { opacity: 0.45; cursor: default; }
.fq-gs-line { margin: 12px 0 0; font-size: 17px; font-style: italic; color: #FFF0D0; }
.fq-gs-rule { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(232, 184, 74, 0.35); font-size: 16px; line-height: 1.45; color: #F5E9C8; }
.fq-gs-line[hidden], .fq-gs-rule[hidden], .fq-gs-skip[hidden] { display: none; }
.fq-gs-skip {
  margin-left: auto; align-self: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: #D4C4A8; font-family: var(--font); font-size: 15px; text-decoration: underline; cursor: pointer;
}
/* Continue stays in reach at the bottom of the scrolling box. */
#s-onboard .btn.fq-gs-continue {
  position: sticky; bottom: 0; margin-top: 8px; height: 60px; border-radius: 30px; font-size: 20px; font-weight: 800;
  box-shadow: 0 -10px 24px rgba(12, 9, 4, 0.85);
}
@media (prefers-reduced-motion: no-preference) {
  .fq-gs-choice.wrong { animation: fq-gs-shake 0.4s ease-in-out; }
  .fq-gs-tile.new { animation: fq-gs-pop 0.3s ease-out; }
  .fq-gs-second:not([hidden]), .fq-gs-line:not([hidden]), .fq-gs-rule:not([hidden]) { animation: fq-gs-in 0.3s ease-out; }
}
@keyframes fq-gs-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@keyframes fq-gs-pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes fq-gs-in { from { opacity: 0; } to { opacity: 1; } }
