/* =====================================================================
   AestheticQuiz — Homepage styles
   Structure:
   1. Tokens          6. Hero              11. Share
   2. Base / reset    7. Categories        12. Newsletter
   3. Utilities       8. Popular quizzes   13. Footer
   4. Buttons         9. Trending          14. Motion / reveal
   5. Header         10. Finder + Latest   15. Responsive
   ===================================================================== */

/* 1. TOKENS ----------------------------------------------------------- */
:root {
  /* Color */
  --cream: #FFF7EE;
  --cream-2: #FCEEE0;
  --paper: #FFFFFF;
  --ink: #1D1530;
  --ink-2: #3B3152;
  --muted: #645B78;
  --line: rgba(29, 21, 48, .1);

  --purple: #6236FF;
  --purple-deep: #4A20E0;
  --purple-soft: #ECE5FF;
  --pink: #FF5FA2;
  --pink-soft: #FFE3EF;
  --coral: #FF7A59;
  --coral-soft: #FFE6DD;
  --yellow: #FFC83D;
  --yellow-soft: #FFF2C9;
  --blue: #3D8BFF;
  --blue-soft: #DFEBFF;
  --green: #2FBF85;
  --green-soft: #DAF5E8;

  /* Type */
  --font-display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 6px rgba(29, 21, 48, .06), 0 1px 2px rgba(29, 21, 48, .05);
  --sh-md: 0 12px 30px -10px rgba(29, 21, 48, .18), 0 4px 10px -4px rgba(29, 21, 48, .08);
  --sh-lg: 0 30px 60px -20px rgba(29, 21, 48, .28), 0 10px 24px -10px rgba(29, 21, 48, .12);
  --sh-pop: 6px 6px 0 var(--ink);

  /* Spacing */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* Motion */
  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 76px;
}

/* 2. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 800;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .nav-list { list-style: none; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}
.trending :focus-visible,
.site-footer :focus-visible,
.newsletter :focus-visible { outline-color: var(--yellow); }

::selection { background: var(--yellow); color: var(--ink); }

/* 3. UTILITIES -------------------------------------------------------- */
.container {
  width: min(1200px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow--live {
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  color: var(--ink-2);
  background: var(--paper);
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.eyebrow--dark { background: rgba(255,255,255,.08); color: #F3EEFF; box-shadow: none; }

.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 191, 133, .6);
  animation: pulse 2s infinite;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 2px;
  border-bottom: 2px solid currentColor;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.hl {
  position: relative;
  white-space: nowrap;
  color: var(--purple);
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: .06em;
  height: .32em;
  background: var(--yellow);
  border-radius: 10px;
  z-index: -1;
  transform: rotate(-1.5deg);
}
.hl--pink { color: var(--ink); }
.hl--pink::after { background: var(--pink-soft); height: .45em; }

.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36ch; }

/* Gradients used by thumbnails */
.g-purple { background: linear-gradient(135deg, #7B5CFF, #B57CFF); }
.g-pink   { background: linear-gradient(135deg, #FF6FAE, #FFAA8F); }
.g-blue   { background: linear-gradient(135deg, #4D9CFF, #7B5CFF); }
.g-coral  { background: linear-gradient(135deg, #FF7A59, #FFB547); }
.g-green  { background: linear-gradient(135deg, #2FBF85, #8EDDB9); }
.g-yellow { background: linear-gradient(135deg, #FFC83D, #FF8F6B); }
.g-ink    { background: linear-gradient(135deg, #2A1E48, #6236FF); }

/* 4. BUTTONS ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease), background-color .25s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  --btn-bg: var(--purple);
  --btn-fg: #fff;
  box-shadow: 0 8px 20px -8px rgba(98, 54, 255, .7);
}
.btn-primary:hover { --btn-bg: var(--purple-deep); box-shadow: 0 14px 26px -10px rgba(98, 54, 255, .8); }

.btn-ghost {
  border-color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: #000; }

.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }

.btn-quiz {
  width: 100%;
  background: var(--cream);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-quiz:hover { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }

.icon-btn, .round-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  transition: background-color .2s, transform .2s var(--ease-bounce);
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--purple-soft); }

/* 5. HEADER ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 238, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 247, 238, .92);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(29, 21, 48, .35);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  flex-shrink: 0;
}
.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 14px 14px 14px 4px;
  background: var(--purple);
  color: var(--yellow);
  font-size: 1.4rem;
  transform: rotate(-6deg);
  transition: transform .4s var(--ease-bounce);
}
.logo-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--cream);
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.06); }
.logo-text span { color: var(--purple); }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--ink); background: rgba(98, 54, 255, .08); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  transform: translateX(-50%);
}
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; right: 17px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search panel */
.search-panel {
  border-top: 1px solid var(--line);
  padding-block: 20px 22px;
  background: var(--cream);
  animation: drop .3s var(--ease);
}
.search-panel[hidden] { display: none; }
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}
.search-form > .icon { width: 22px; height: 22px; color: var(--muted); }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.05rem;
  padding: 10px 4px;
}
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form:focus-within { box-shadow: 4px 4px 0 var(--purple); border-color: var(--purple); }
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.search-suggest a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  transition: background-color .2s, border-color .2s;
}
.search-suggest a:hover { background: var(--yellow-soft); border-color: var(--yellow); }

/* 6. HERO ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
}
.hero-glow--a {
  width: 620px; height: 620px;
  right: -140px; top: -160px;
  background: radial-gradient(circle at 40% 40%, #E2D7FF 0%, rgba(226, 215, 255, 0) 65%);
  animation: drift 18s ease-in-out infinite;
}
.hero-glow--b {
  width: 520px; height: 520px;
  left: -200px; bottom: -60px;
  background: radial-gradient(circle, #FFD9E8 0%, rgba(255, 217, 232, 0) 65%);
  animation: drift 22s ease-in-out infinite reverse;
}
.hero-glow--c {
  width: 360px; height: 360px;
  left: 38%; top: 30%;
  background: radial-gradient(circle, #FFEDB8 0%, rgba(255, 237, 184, 0) 65%);
  animation: drift 20s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-copy h1 {
  font-size: var(--fs-h1);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 6px 0 22px;
}
.hero-copy .hl { white-space: normal; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.hero-proof strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--c);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
}
.avatars span:first-child { margin-left: 0; }

/* Hero illustration */
.hero-art {
  position: relative;
  height: clamp(420px, 44vw, 560px);
  --fs: clamp(.82rem, .7rem + .3vw, 1rem);
  font-size: var(--fs);
}
.hero-art [data-depth] {
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px);
  transition: translate .6s var(--ease);
}

.art-blob {
  position: absolute;
  inset: 8% 4% 6% 10%;
  background: linear-gradient(140deg, #8A6BFF 0%, #C17BFF 45%, #FF8DBE 100%);
  background-size: 200% 200%;
  border-radius: 58% 42% 54% 46% / 48% 56% 44% 52%;
  animation: morph 14s ease-in-out infinite, gradient 12s ease infinite;
  box-shadow: inset 0 -30px 60px rgba(29, 21, 48, .12);
}
.art-ring {
  position: absolute;
  inset: 2% 0 0 4%;
  border: 2px dashed rgba(98, 54, 255, .35);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.q-card {
  position: absolute;
  left: 9%; top: 15%;
  width: 64%;
  padding: 1.35em;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  --r: -3deg;
  transform: rotate(var(--r));
  animation: float 7s ease-in-out infinite;
}
.q-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-chip {
  font-size: .78em;
  font-weight: 700;
  padding: .3em .8em;
  border-radius: var(--r-pill);
  background: var(--purple-soft);
  color: var(--purple);
}
.q-count { font-size: .8em; color: var(--muted); }
.q-count b { color: var(--ink); }
.q-progress { height: 8px; margin: .9em 0 1em; background: var(--cream-2); border-radius: 8px; overflow: hidden; }
.q-progress span {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  animation: progress 6s var(--ease) infinite;
}
.q-question {
  font-family: var(--font-display);
  font-size: 1.32em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .9em;
}
.q-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.q-answer {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .6em .7em;
  border-radius: 14px;
  border: 2px solid var(--line);
  font-size: .82em;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .4s, background-color .4s, transform .4s var(--ease-bounce);
}
.q-answer::before {
  content: "";
  flex-shrink: 0;
  width: 1.7em; height: 1.7em;
  border-radius: 9px;
  background: var(--sw);
}
.q-answer.is-picked {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: scale(1.04);
}

.result-chip {
  position: absolute;
  right: 0; top: 4%;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .7em .9em .7em .7em;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  --r: 6deg;
  transform: rotate(var(--r));
  animation: float 6s ease-in-out infinite .8s;
}
.result-chip small { display: block; font-size: .72em; opacity: .7; line-height: 1.2; }
.result-chip b { font-family: var(--font-display); font-size: 1.05em; }
.result-chip__emoji {
  display: grid;
  place-items: center;
  width: 2.3em; height: 2.3em;
  border-radius: 12px;
  background: linear-gradient(135deg, #3B2A6B, #6236FF);
  font-size: 1.05em;
}
.result-chip__pct {
  margin-left: .3em;
  padding: .3em .55em;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: .82em;
}

.stat-chip {
  position: absolute;
  left: 0; bottom: 14%;
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .75em 1.05em;
  background: var(--paper);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  font-size: .9em;
  --r: -4deg;
  transform: rotate(var(--r));
  animation: float 8s ease-in-out infinite 1.4s;
}
.stat-chip .icon { color: var(--pink); width: 1.3em; height: 1.3em; }

.timer-chip {
  position: absolute;
  right: 30%; bottom: 3%;
  display: flex;
  align-items: center;
  gap: .45em;
  padding: .55em .95em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: .85em;
  box-shadow: 3px 3px 0 var(--ink);
  --r: 5deg;
  transform: rotate(var(--r));
  animation: float 5.5s ease-in-out infinite .4s;
}

.mascot {
  position: absolute;
  right: 3%; bottom: 8%;
  width: 26%;
  max-width: 150px;
  filter: drop-shadow(0 14px 18px rgba(29, 21, 48, .2));
  --r: 0deg;
  animation: bob 4.5s ease-in-out infinite;
}
.mascot__arm { transform-origin: 112px 70px; animation: wave 3s ease-in-out infinite; }

.deco { position: absolute; }
.deco--spark1 { width: 38px; height: 38px; color: var(--yellow); top: 2%; left: 12%; animation: twinkle 3.2s ease-in-out infinite; }
.deco--spark2 { width: 22px; height: 22px; color: var(--purple); top: 58%; left: 2%; animation: twinkle 2.6s ease-in-out infinite .6s; }
.deco--heart  { width: 30px; height: 30px; color: var(--pink); top: 34%; right: 4%; animation: twinkle 3.8s ease-in-out infinite 1s; }
.deco--dot1 { width: 18px; height: 18px; border-radius: 50%; background: var(--green); top: 6%; left: 58%; }
.deco--dot2 { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); bottom: 2%; left: 28%; }
.deco--squiggle {
  width: 70px; height: 18px;
  bottom: 30%; right: 30%;
  background:
    radial-gradient(circle at 10px -4px, transparent 8px, var(--blue) 8.5px 11px, transparent 11.5px) 0 0 / 20px 18px repeat-x;
  opacity: .9;
}

/* Ribbon marquee */
.ribbon {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  transform: rotate(-1.8deg);
  margin: 0 -2%;
  padding-block: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(29, 21, 48, .5);
}
.ribbon__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem);
  letter-spacing: -.01em;
}
.ribbon__track .icon { color: var(--yellow); width: 20px; height: 20px; }
.ribbon__track span:nth-of-type(3n+2) { color: #FF9CC6; }

/* 7. CATEGORIES ------------------------------------------------------- */
.categories { padding-top: calc(var(--section-y) + 12px); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  list-style: none;
}
.cat-grid > li { display: flex; }

.cat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 250px;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--soft);
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  width: 170px; height: 170px;
  right: -60px; top: -60px;
  border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%;
  background: var(--accent);
  opacity: .09;
  z-index: -1;
  transition: transform .6s var(--ease);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: opacity .3s;
}
.cat-grid > li:nth-child(odd) .cat-card:hover { transform: translateY(-8px) rotate(-1.5deg); }
.cat-grid > li:nth-child(even) .cat-card:hover { transform: translateY(-8px) rotate(1.5deg); }
.cat-card:hover { box-shadow: var(--sh-md); }
.cat-card:hover::before { transform: scale(1.6) rotate(40deg); }
.cat-card:hover::after { opacity: .5; }

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: auto;
  border-radius: 18px 18px 18px 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--accent);
  transition: transform .5s var(--ease-bounce);
}
.cat-card__icon svg { width: 28px; height: 28px; }
.cat-card:hover .cat-card__icon { transform: rotate(-10deg) scale(1.08); }

.cat-card h3 { font-size: 1.45rem; margin-top: 30px; }
.cat-card p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; line-height: 1.45; }
.cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: .85rem;
  color: var(--muted);
}
.cat-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--accent);
  font-weight: 800;
  transition: background-color .3s, color .3s;
}
.cat-card:hover .cat-card__go { background: var(--accent); color: #fff; }
.cat-card__go .icon { transition: transform .3s var(--ease); }
.cat-card:hover .cat-card__go .icon { transform: translateX(3px); }

/* 8. POPULAR QUIZZES -------------------------------------------------- */
.popular { background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
.section-shape--pop {
  position: absolute;
  width: 420px; height: 420px;
  left: -180px; top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow-soft), rgba(255, 242, 201, 0) 70%);
  pointer-events: none;
}

.quiz-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.quiz-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--cream);
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: transform .45s var(--ease-bounce), box-shadow .45s var(--ease), border-color .3s;
}
.quiz-card:hover { box-shadow: var(--sh-lg); border-color: var(--ink); }
.quiz-grid > .quiz-card:nth-child(3n+1):hover { transform: translateY(-8px) rotate(-1deg); }
.quiz-grid > .quiz-card:nth-child(3n+2):hover { transform: translateY(-8px) rotate(.8deg); }
.quiz-grid > .quiz-card:nth-child(3n):hover { transform: translateY(-8px) rotate(-.6deg); }

.quiz-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
}
.quiz-card__thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .7s var(--ease);
}
.quiz-card:hover .quiz-card__thumb svg { transform: scale(1.07) rotate(-1deg); }

.th-aesthetic { background: linear-gradient(160deg, #9B7BFF 0%, #FF8DBE 75%, #FFB59A 100%); }
.th-main      { background: linear-gradient(160deg, #FF7A59 0%, #FFC83D 100%); }
.th-pop       { background: linear-gradient(160deg, #3D8BFF 0%, #8A6BFF 100%); }
.th-love      { background: linear-gradient(160deg, #FF5FA2 0%, #FF9A7A 100%); }
.th-hidden    { background: linear-gradient(160deg, #1D1530 0%, #4A20E0 100%); }
.th-movies    { background: linear-gradient(160deg, #FFC83D 0%, #FF7A59 100%); }

.quiz-card__cat, .quiz-card__badge {
  position: absolute;
  top: 12px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 800;
}
.quiz-card__cat { left: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.quiz-card__badge {
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  color: #fff;
}
.quiz-card__badge .icon { color: var(--coral); width: 14px; height: 14px; }

.quiz-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 12px; }
.quiz-card h3 a { background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 0 30% no-repeat; transition: background-size .4s var(--ease); }
.quiz-card h3 a:hover, .quiz-card:hover h3 a { background-size: 100% 30%; }
.quiz-card__body > p { margin-top: 8px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.quiz-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.quiz-card__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.quiz-card__meta .icon { color: var(--purple); }
.quiz-card .btn-quiz { margin-top: auto; }

/* 9. TRENDING --------------------------------------------------------- */
.trending { padding-block: 0; background: var(--paper); }
.trending__panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  margin-inline: clamp(8px, 1.5vw, 24px);
  padding-block: clamp(56px, 7vw, 96px);
}
.trend-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.trend-blob--a {
  width: 520px; height: 520px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(98, 54, 255, .55), rgba(98, 54, 255, 0) 65%);
  animation: drift 16s ease-in-out infinite;
}
.trend-blob--b {
  width: 420px; height: 420px; left: -140px; bottom: -220px;
  background: radial-gradient(circle, rgba(255, 95, 162, .38), rgba(255, 95, 162, 0) 65%);
  animation: drift 19s ease-in-out infinite reverse;
}
.trending .container { position: relative; }
.trending h2 { color: #fff; }

.scroller-ctrls { display: flex; gap: 10px; }
.round-btn { border-color: rgba(255, 255, 255, .3); color: #fff; }
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: scale(1.06); }
.round-btn:disabled { opacity: .35; cursor: default; }

.trend-track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 29%, 340px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 24px;
  margin-inline: -4px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.trend-track::-webkit-scrollbar { display: none; }

.trend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease-bounce), background-color .3s, border-color .3s;
}
.trend-card:hover { transform: translateY(-6px) rotate(-1deg); background: rgba(255, 255, 255, .1); border-color: var(--accent); }
.trend-card__rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: .85;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  transition: color .4s;
}
.trend-card:hover .trend-card__rank { color: var(--accent); }
.trend-card__cat {
  align-self: flex-start;
  margin-top: 22px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}
.trend-card h3 { margin-top: 12px; font-size: 1.4rem; color: #fff; }
.trend-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.trend-card__live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .78);
}
.trend-card__live .icon { color: var(--coral); }
.trend-card__live .js-live { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.trend-card__bar { display: block; height: 6px; margin-top: 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.trend-card__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.js .trend-track:not(.is-visible) .trend-card__bar > span { transform: scaleX(0); }
.trend-card__bar > span { transition: transform 1.2s var(--ease) .3s; }

/* 10a. FINDER --------------------------------------------------------- */
.finder { background: var(--paper); }
.finder__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--yellow-soft);
  text-align: center;
}
.finder-shape { position: absolute; z-index: -1; pointer-events: none; }
.finder-shape--a {
  width: 300px; height: 300px; left: -110px; top: -110px;
  background: var(--pink-soft);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morph 16s ease-in-out infinite;
}
.finder-shape--b {
  width: 360px; height: 360px; right: -140px; bottom: -160px;
  background: var(--purple-soft);
  border-radius: 40% 60% 46% 54% / 52% 38% 62% 48%;
  animation: morph 18s ease-in-out infinite reverse;
}
.finder-spark { position: absolute; z-index: -1; }
.finder-spark--a { width: 34px; height: 34px; color: var(--coral); top: 18%; right: 12%; animation: twinkle 3s infinite; }
.finder-spark--b { width: 26px; height: 26px; color: var(--pink); bottom: 22%; left: 9%; animation: twinkle 3.6s infinite .8s; }

.finder__head .eyebrow { color: #B4570B; }
.finder__sub { margin-top: 12px; font-size: var(--fs-lead); color: var(--ink-2); }

.mood-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 36px auto 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .3s var(--ease-bounce), background-color .25s, color .25s, box-shadow .25s;
}
.pill:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ink); }
.pill[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--purple);
  transform: translateY(-3px);
}

.finder__result { max-width: 760px; margin: 36px auto 0; min-height: 150px; display: grid; place-items: center; }
.finder__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px dashed rgba(29, 21, 48, .3);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
}
.finder__hint .icon { color: var(--coral); }

.rec-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-pop);
  overflow: hidden;
  animation: pop-in .55s var(--ease-bounce);
}
.rec-card__thumb { display: grid; place-items: center; position: relative; min-height: 170px; color: #fff; }
.rec-card__thumb svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18)); animation: bob 4s ease-in-out infinite; }
.rec-card__thumb::before, .rec-card__thumb::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .22);
}
.rec-card__thumb::before { width: 90px; height: 90px; left: -20px; bottom: -24px; }
.rec-card__thumb::after { width: 40px; height: 40px; right: 16px; top: 16px; }
.rec-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.rec-card__label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.rec-card__body h3 { font-size: 1.45rem; }
.rec-card__body p { color: var(--muted); font-size: .95rem; }
.rec-card__body .quiz-card__meta { margin: 6px 0 8px; }
.rec-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn-shuffle { border-color: var(--ink); background: transparent; }
.btn-shuffle:hover { background: var(--cream); }
.btn-shuffle .icon { transition: transform .5s var(--ease); }
.btn-shuffle:hover .icon { transform: rotate(180deg); }

/* 10b. LATEST --------------------------------------------------------- */
.latest-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.latest-feature {
  background: var(--paper);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease-bounce), box-shadow .45s var(--ease);
}
.latest-feature:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sh-lg); }
.latest-feature__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.latest-feature__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.latest-feature:hover .latest-feature__thumb svg { transform: scale(1.06); }
.tag-new {
  position: absolute;
  left: 18px; top: 18px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.latest-feature__body { padding: clamp(22px, 3vw, 34px); }
.latest-feature__body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-top: 10px; }
.latest-feature__body > p:not(.meta-line) { margin-top: 12px; color: var(--muted); }
.latest-feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 22px; }
.latest-feature__foot .quiz-card__meta { margin: 0; }

.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.cat-link {
  font-weight: 800;
  color: var(--purple);
  padding: 2px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
  position: relative;
  z-index: 1;
}
.cat-link:hover { border-color: currentColor; }

.latest-list { display: flex; flex-direction: column; gap: 14px; }
.latest-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: transparent;
  border: 2px solid var(--line);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease-bounce);
}
.latest-item:hover { background: var(--paper); border-color: var(--ink); transform: translateX(6px); }
.latest-item__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20px 20px 20px 8px;
  color: #fff;
  align-self: start;
}
.latest-item__thumb svg { width: 42px; height: 42px; transition: transform .5s var(--ease-bounce); }
.latest-item:hover .latest-item__thumb svg { transform: rotate(-12deg) scale(1.12); }
.latest-item__body h3 { font-size: 1.15rem; margin-top: 4px; }
.latest-item__body h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.latest-item__body > p:not(.meta-line) { margin-top: 4px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.text-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 800;
  font-size: .9rem;
  color: var(--purple);
}
.text-cta .icon { transition: transform .3s var(--ease); }
.latest-item:hover .text-cta .icon { transform: translateX(4px); }

/* 11. SHARE ----------------------------------------------------------- */
.share { overflow: hidden; }
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.share-copy h2 { margin-bottom: 20px; }
.share-copy .lead { max-width: 44ch; }

.steps { list-style: none; display: grid; gap: 14px; margin-top: 34px; counter-reset: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 14px 14px 14px 4px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.steps li:nth-child(1) .steps__num { background: var(--yellow); }
.steps li:nth-child(2) .steps__num { background: var(--pink-soft); }
.steps li:nth-child(3) .steps__num { background: var(--purple-soft); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .95rem; }

.share-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.share-blob {
  position: absolute;
  width: 110%; aspect-ratio: 1;
  max-width: 560px;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle at 30% 30%, var(--purple-soft), var(--pink-soft) 60%, transparent 72%);
  border-radius: 50%;
  z-index: -1;
}

.result-card {
  margin: 0;
  width: min(360px, 100%);
  padding: 8px;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--sh-lg);
  transform: rotate(2.5deg);
  transition: transform .6s var(--ease-bounce);
}
.share-stage:hover .result-card { transform: rotate(0deg) translateY(-6px); }
.result-card__inner {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 141, 190, .9), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 200, 61, .55), transparent 40%),
    linear-gradient(160deg, #4A20E0 0%, #7B4DFF 55%, #C05BE0 100%);
  background-size: 140% 140%;
  animation: gradient 10s ease infinite;
}
.result-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.result-card__brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.result-card__tag { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); font-weight: 700; }
.result-card__art { width: 70%; margin: 14px auto 6px; }
.result-card__kicker { text-align: center; font-weight: 700; opacity: .85; }
.result-card__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.result-card__desc { margin-top: 12px; text-align: center; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.result-card__score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.score-ring {
  --size: 70px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0);
}
.score-ring span {
  display: grid;
  place-items: center;
  width: calc(var(--size) - 14px); height: calc(var(--size) - 14px);
  border-radius: 50%;
  background: #5A2FE8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.traits { list-style: none; flex: 1; display: grid; gap: 7px; font-size: .78rem; font-weight: 700; }
.traits li { display: grid; gap: 3px; }
.trait-bar { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.trait-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #fff; }

.sticker {
  position: absolute;
  z-index: 2;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.sticker--a { top: 10%; left: 2%; --r: -8deg; transform: rotate(var(--r)); background: var(--yellow); animation: float 6s ease-in-out infinite; }
.sticker--b { bottom: 24%; right: 0; --r: 7deg; transform: rotate(var(--r)); background: var(--pink-soft); animation: float 7s ease-in-out infinite 1s; }

.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px; height: 48px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  transition: transform .3s var(--ease-bounce), background-color .2s, color .2s;
}
.share-btn .icon { width: 20px; height: 20px; }
.share-btn--wide, .share-btn--native { padding: 0 18px; }
.share-btn:hover { transform: translateY(-3px) rotate(-4deg); background: var(--ink); color: #fff; }
.share-btn[hidden] { display: none; }

/* 12. NEWSLETTER ------------------------------------------------------ */
.newsletter { padding-top: 0; }
.newsletter__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(32px, 4.5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #5126F0 0%, #6236FF 45%, #8B3FE6 100%);
  background-size: 180% 180%;
  animation: gradient 14s ease infinite;
  color: #fff;
}
.news-shape { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.news-shape--a { width: 280px; height: 280px; right: -80px; top: -120px; background: rgba(255, 95, 162, .35); }
.news-shape--b { width: 160px; height: 160px; right: 22%; bottom: -100px; background: rgba(255, 200, 61, .3); }
.newsletter__art svg { width: 100%; max-width: 240px; }
.newsletter__art .env { animation: bob 5s ease-in-out infinite; transform-origin: center; }
.newsletter h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); color: #fff; }
.newsletter__copy > p:not(.news-msg) { margin-top: 10px; font-size: 1.08rem; color: rgba(255, 255, 255, .9); max-width: 46ch; }
.news-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 24px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45);
}
.news-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.news-form input::placeholder { color: #807893; }
.news-form:focus-within { box-shadow: 0 0 0 3px var(--yellow), 0 20px 40px -18px rgba(0, 0, 0, .45); }
.news-form.is-invalid { box-shadow: 0 0 0 3px #FF9CC6; animation: shake .4s; }
.news-msg { margin-top: 12px; font-size: .9rem; color: rgba(255, 255, 255, .8); min-height: 1.5em; }
.news-msg.is-success { color: var(--yellow); font-weight: 700; }
.news-msg.is-error { color: #FFD1E4; font-weight: 700; }

/* 13. FOOTER ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding-top: clamp(56px, 7vw, 88px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.logo--light { color: #fff; }
.logo--light .logo-text span { color: #B9A3FF; }
.logo--light .logo-dot { border-color: var(--ink); }
.footer-tag { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-about { margin-top: 10px; font-size: .94rem; max-width: 40ch; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color .25s, transform .3s var(--ease-bounce), color .25s;
}
.socials a .icon { width: 20px; height: 20px; }
.socials a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px) rotate(-6deg); }

.footer-heading {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B9A3FF;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 5px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--yellow); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
.footer-note { display: inline-flex; align-items: center; gap: 6px; }
.footer-note .icon { color: var(--pink); }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 80;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--sh-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .4s var(--ease-bounce), opacity .3s;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* 14. MOTION ---------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* script.js removes .reveal once the entrance finishes, handing transforms back to hover effects */

[data-speed] { translate: 0 calc(var(--sy, 0) * 1px); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-14deg); }
  80% { transform: rotate(8deg); }
  90% { transform: rotate(-8deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(.7) rotate(25deg); opacity: .6; }
}
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 54% 46% / 48% 56% 44% 52%; }
  33% { border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; }
  66% { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
}
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 24px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes progress {
  0% { width: 20%; }
  50% { width: 34%; }
  100% { width: 20%; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 191, 133, .55); }
  70% { box-shadow: 0 0 0 9px rgba(47, 191, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 133, 0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(.96) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 15. RESPONSIVE ------------------------------------------------------ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 20px var(--gutter) 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -24px rgba(29, 21, 48, .35);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--r-md);
  }
  .nav-list a[aria-current="page"]::after { left: auto; right: 18px; top: 50%; bottom: auto; transform: translateY(-50%); width: 10px; height: 10px; }
  .nav-cta { display: inline-flex; min-height: 56px; }

  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-copy { max-width: 640px; }
  .hero-art { height: clamp(380px, 70vw, 520px); max-width: 600px; width: 100%; margin-inline: auto; }

  .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-track { grid-auto-columns: clamp(240px, 42%, 320px); }

  .latest-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
  .share-copy { max-width: 620px; }

  .newsletter__panel { grid-template-columns: 170px 1fr; }
}

@media (max-width: 640px) {
  :root { --r-xl: 30px; --r-lg: 24px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trending .section-head { flex-direction: row; align-items: flex-end; }

  .logo { font-size: 1.25rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1.25rem; }

  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-art { height: 116vw; max-height: 470px; min-height: 360px; }
  .q-card { left: 2%; top: 18%; width: 80%; padding: 1.1em; }
  .result-chip { top: 2%; right: 2%; }
  .stat-chip { bottom: 6%; }
  .timer-chip { right: 38%; bottom: 20%; }
  .mascot { width: 30%; right: 0; bottom: 4%; }
  .deco--squiggle { display: none; }
  .deco--dot1 { top: auto; bottom: 30%; left: 4%; }
  .art-blob { inset: 10% 0 8% 6%; }

  .cat-card { min-height: 0; padding: 20px 18px 18px; }
  .cat-card__icon { width: 48px; height: 48px; }
  .cat-card__icon svg { width: 24px; height: 24px; }
  .cat-card h3 { font-size: 1.2rem; margin-top: 22px; }
  .cat-card p { font-size: .88rem; }

  .quiz-grid { grid-template-columns: 1fr; }
  .trend-track { grid-auto-columns: 78%; }
  .trend-card { min-height: 260px; }
  .trend-card__rank { font-size: 4.6rem; }

  .pill { flex: 1 1 calc(50% - 12px); justify-content: center; padding: 12px 14px; font-size: .95rem; }
  .pill:last-child { flex-basis: 100%; }
  .rec-card { grid-template-columns: 1fr; }
  .rec-card__thumb { min-height: 120px; }
  .rec-card__actions .btn { flex: 1 1 auto; }

  .latest-item { grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; }
  .latest-item__thumb svg { width: 34px; height: 34px; }
  .latest-item:hover { transform: none; }
  .latest-feature__foot .btn { width: 100%; }

  .sticker--a { left: 0; top: 4%; }
  .sticker--b { right: 0; bottom: 22%; }

  .newsletter__panel { grid-template-columns: 1fr; text-align: left; }
  .newsletter__art { max-width: 150px; }
  .news-form { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .news-form input { padding: 14px 14px; }
  .news-form .btn { width: 100%; min-height: 52px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 340px) {
  .cat-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 4px; }
  .pill { flex-basis: 100%; }
}

/* Touch devices: no sticky hover tilts */
@media (hover: none) {
  .cat-card:hover, .quiz-card:hover, .trend-card:hover, .latest-feature:hover,
  .quiz-grid > .quiz-card:hover, .cat-grid > li .cat-card:hover { transform: none !important; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ribbon__track { animation: none; }
  .hero-art [data-depth], [data-speed] { translate: none; }
}

/* WordPress admin bar offset (only visible to logged-in users) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 960px) {
  .admin-bar .main-nav { top: calc(var(--header-h) + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
}

/* =====================================================================
   16. INNER PAGES (About, Contact, Privacy Policy, Terms)
   ===================================================================== */

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.page-hero__blob { position: absolute; z-index: -1; pointer-events: none; }
.page-hero__blob--a {
  width: 460px; height: 460px; right: -120px; top: -180px;
  border-radius: 58% 42% 54% 46% / 48% 56% 44% 52%;
  background: var(--purple-soft);
  animation: morph 16s ease-in-out infinite;
}
.page-hero__blob--b {
  width: 300px; height: 300px; left: -140px; bottom: -150px;
  border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%;
  background: var(--pink-soft);
  animation: morph 18s ease-in-out infinite reverse;
}
.page-hero--legal .page-hero__blob--a { background: var(--yellow-soft); }
.page-hero--legal .page-hero__blob--b { background: var(--blue-soft); }
.page-hero--contact .page-hero__blob--a { background: var(--pink-soft); }
.page-hero--contact .page-hero__blob--b { background: var(--yellow-soft); }

.page-hero__spark { position: absolute; z-index: -1; }
.page-hero__spark--a { width: 30px; height: 30px; color: var(--yellow); top: 18%; left: 46%; animation: twinkle 3.2s ease-in-out infinite; }
.page-hero__spark--b { width: 22px; height: 22px; color: var(--pink); bottom: 18%; left: 6%; animation: twinkle 3.8s ease-in-out infinite .8s; }

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.page-hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero__inner--solo .page-hero__copy { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 18px 0 18px;
}
.page-hero .lead { max-width: 52ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--purple); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.crumbs a:hover { border-color: currentColor; }

.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.page-meta .icon { color: var(--purple); }

/* Hero art */
.page-hero__art { position: relative; min-height: 240px; display: grid; place-items: center; }
.hero-mascot { width: min(210px, 70%); filter: drop-shadow(0 18px 22px rgba(29, 21, 48, .2)); animation: bob 4.5s ease-in-out infinite; }
.hero-mascot .mascot__arm { transform-origin: 112px 70px; animation: wave 3s ease-in-out infinite; }
.art-tag {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.art-tag--a { top: 6%; left: 2%; --r: -8deg; background: var(--yellow); animation: float 6s ease-in-out infinite; }
.art-tag--b { top: 40%; right: 0; --r: 6deg; background: var(--pink-soft); animation: float 7s ease-in-out infinite .6s; }
.art-tag--c { bottom: 4%; left: 12%; --r: -3deg; background: var(--purple-soft); animation: float 6.5s ease-in-out infinite 1.2s; }

.doc-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(270px, 100%);
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-lg);
  --r: 3deg;
  transform: rotate(var(--r));
  animation: float 7s ease-in-out infinite;
}
.doc-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 4px;
  border-radius: 16px 16px 16px 5px;
  background: var(--purple);
  color: #fff;
}
.doc-card__icon .icon { width: 26px; height: 26px; }
.doc-line { display: block; height: 10px; width: var(--w); border-radius: 6px; background: var(--cream-2); }
.doc-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; }
.doc-check .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.doc-check:first-of-type { margin-top: 6px; }

.art-bubble {
  display: grid; place-items: center;
  width: 160px; height: 160px;
  border-radius: 58% 42% 54% 46% / 48% 56% 44% 52%;
  background: linear-gradient(140deg, #8A6BFF, #FF8DBE);
  color: #fff;
  animation: morph 12s ease-in-out infinite;
}
.art-bubble .icon { width: 56px; height: 56px; }

/* Body */
.page-body { padding-block: clamp(48px, 6vw, 88px); }
.page-layout { max-width: 780px; }
.page-layout--toc {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.toc__title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.toc__list { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc__list a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.toc__list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: .8rem;
  padding-top: 1px;
}
.toc__list a:hover { background: var(--cream); color: var(--ink); }
.toc__list a.is-active { background: var(--purple-soft); color: var(--purple); }
.toc__list a.is-active::before { color: var(--purple); }

/* Prose (content from the WordPress editor) */
.prose { font-size: 1.07rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 1.18rem; color: var(--ink); }
.prose h2 {
  position: relative;
  margin-top: 2.1em;
  padding-left: 22px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: .18em;
  width: 8px; height: .9em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--pink), var(--purple));
}
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--purple); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(98, 54, 255, .35); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .55em; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: .5em;
  width: 12px; height: 12px;
  background: var(--pink);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.prose ul > li:nth-child(3n+2)::before { background: var(--purple); }
.prose ul > li:nth-child(3n)::before { background: var(--yellow); }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 36px; counter-increment: li; }
.prose ol > li::before {
  content: counter(li);
  position: absolute; left: 0; top: .1em;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .8rem; font-weight: 800;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--yellow-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--r-md); height: auto; }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 2.4em 0; }
.prose--compact { font-size: 1.05rem; }
.prose--compact > p:first-child { font-size: 1.12rem; }
.prose [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* CTA band */
.cta-band { padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 4.5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--yellow);
}
.cta-band__shape {
  position: absolute; z-index: -1;
  width: 280px; height: 280px; right: -60px; top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.cta-band h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.cta-band p { margin-top: 8px; font-size: 1.08rem; color: var(--ink-2); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.reason-list { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.reason {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--soft);
  transition: transform .35s var(--ease-bounce);
}
.reason:hover { transform: translateX(6px) rotate(-.6deg); }
.reason__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 16px 16px 16px 5px;
  background: var(--accent);
  color: #fff;
}
.reason__icon svg { width: 24px; height: 24px; }
.reason h2 { font-size: 1.12rem; line-height: 1.25; }
.reason p { margin-top: 4px; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }

.contact-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--sh-pop);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-card__title { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: 22px; }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 2px solid rgba(29, 21, 48, .18);
  border-radius: 16px;
  background: var(--cream);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(29, 21, 48, .35); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(98, 54, 255, .15);
}
.contact-form.was-validated :is(input, textarea):invalid { border-color: #D6336C; background: #FFF1F5; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 44px; cursor: pointer; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: .88rem; color: var(--muted); }
.form-fine a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.contact-submit { justify-self: start; }
.contact-submit[disabled] { opacity: .7; cursor: progress; transform: none; }

.form-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.45;
  animation: pop-in .5s var(--ease-bounce);
}
.form-note .icon { width: 22px; height: 22px; margin-top: 1px; }
.form-note--success { background: var(--green-soft); color: #11603F; }
.form-note--error { background: #FFE3EA; color: #A3123F; }
.form-note:focus { outline: none; }

/* Inner pages — responsive */
@media (max-width: 960px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__art { min-height: 200px; max-width: 420px; width: 100%; }
  .page-layout--toc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { order: -1; }
}
@media (max-width: 640px) {
  .page-hero__art { display: none; }
  .page-hero__spark { display: none; }
  .page-hero h1 { margin-top: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; justify-self: stretch; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .prose { font-size: 1.02rem; }
  .reason:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__blob, .hero-mascot, .art-tag, .doc-card, .art-bubble { animation: none; }
}

/* =====================================================================
   17. QUIZ CARDS (dynamic), QUIZ PAGE, PLAYER, CATEGORY PAGE
   ===================================================================== */

/* Dynamic quiz cards (category pages, related quizzes) */
.quiz-card { position: relative; }
.quiz-card > .quiz-card__cat { top: 22px; left: 22px; }
.quiz-card__thumb.has-image .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.quiz-card:hover .quiz-card__thumb.has-image .thumb-img { transform: scale(1.06); }
.quiz-card__title { font-size: var(--fs-h3); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.quiz-card__title a { background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 0 30% no-repeat; transition: background-size .4s var(--ease); }
.quiz-card:hover .quiz-card__title a { background-size: 100% 30%; }
.quiz-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.quiz-card .btn-quiz { position: relative; z-index: 1; }

/* Quiz page hero */
.quiz-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 5vw, 64px) 0 clamp(80px, 9vw, 120px);
  background: linear-gradient(180deg, var(--soft, var(--purple-soft)) 0%, var(--cream) 100%);
  text-align: center;
}
.quiz-hero .page-hero__blob--a { background: rgba(255, 255, 255, .55); }
.quiz-hero .page-hero__blob--b { background: var(--pink-soft); opacity: .7; }
.quiz-hero__inner { max-width: 860px; }
.quiz-hero .crumbs { justify-content: center; }
.quiz-hero .crumbs a { color: var(--accent, var(--purple)); }
.quiz-hero h1 {
  margin: 18px auto 16px;
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.quiz-hero .lead { margin-inline: auto; max-width: 58ch; }

.quiz-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.quiz-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  font-weight: 700;
  font-size: .92rem;
}
.quiz-facts .icon { color: var(--accent, var(--purple)); }
.page-hero .quiz-facts { justify-content: flex-start; }

/* Player */
.quiz-stage { position: relative; z-index: 2; margin-top: clamp(-80px, -6vw, -48px); padding-bottom: clamp(40px, 5vw, 64px); }
.qz {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent, var(--purple));
}

/* Without JavaScript: show the questions as a readable list. */
.qz__start, .qz__top, .qz__progress, .qz__next { display: none; }
.qz-q + .qz-q { margin-top: 28px; }
.qz__noscript { margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: var(--yellow-soft); font-weight: 700; }

/* With JavaScript: one screen at a time. */
.js .qz__start { display: block; }
.js .qz__play, .js .qz__result { display: none; }
.js .qz[data-state="playing"] .qz__start, .js .qz[data-state="done"] .qz__start, .js .qz[data-state="done"] .qz__play { display: none; }
.js .qz[data-state="playing"] .qz__play { display: block; }
.js .qz[data-state="done"] .qz__result { display: block; }
.js .qz__top { display: flex; }
.js .qz__progress { display: block; }
.js .qz-q { display: none; }
.js .qz-q + .qz-q { margin-top: 0; }
.js .qz-q.is-current { display: block; animation: q-in .45s var(--ease); }
.js .qz__next.is-visible { display: flex; }

@keyframes q-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.qz__start { text-align: center; padding: 10px 0; }
.qz__start-icon {
  display: inline-grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 28px 28px 28px 10px;
  background: var(--accent, var(--purple));
  color: #fff;
  box-shadow: 0 14px 28px -12px var(--accent, var(--purple));
  transform: rotate(-6deg);
  animation: bob 4s ease-in-out infinite;
}
.qz__start-icon svg { width: 40px; height: 40px; }
.qz__start-title { margin-top: 20px; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.qz__start-text { margin: 10px auto 24px; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }

.qz__top { align-items: center; justify-content: space-between; gap: 12px; }
.qz__back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 6px 12px 6px 6px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; font-weight: 700; color: var(--ink-2);
}
.qz__back:hover { background: var(--cream); }
.qz__count { font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz__count b { color: var(--ink); }
.qz__progress { height: 10px; margin: 12px 0 28px; border-radius: 10px; background: var(--cream-2); overflow: hidden; }
.qz__progress span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--accent, var(--purple)));
  transition: width .5s var(--ease);
}

.qz__list { list-style: none; }
.qz-q__text {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.qz-q__text:focus { outline: none; }

.qz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-answer {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 64px;
  padding: 12px 16px 12px 12px;
  text-align: left;
  border: 2px solid rgba(29, 21, 48, .14);
  border-radius: 18px;
  background: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  transition: transform .25s var(--ease-bounce), border-color .2s, background-color .2s, box-shadow .2s, color .2s;
}
.qz-answer__key {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--paper);
  border: 2px solid rgba(29, 21, 48, .12);
  font-weight: 800; font-size: .9rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.qz-answer:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); background: var(--paper); }
.qz-answer[aria-pressed="true"] { background: var(--accent, var(--purple)); border-color: var(--accent, var(--purple)); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.qz-answer[aria-pressed="true"] .qz-answer__key { background: #fff; color: var(--accent, var(--purple)); border-color: #fff; }
.qz-answers--two .qz-answer { min-height: 96px; padding: 18px; font-size: 1.05rem; }

/* Trivia feedback */
.qz-answer:disabled { cursor: default; }
.qz-q.is-answered .qz-answer:not(.is-correct):not(.is-wrong) { opacity: .55; }
.qz-answer.is-correct { background: var(--green-soft); border-color: var(--green); color: #0B5A3A; box-shadow: none; }
.qz-answer.is-correct .qz-answer__key { background: var(--green); border-color: var(--green); color: #fff; }
.qz-answer.is-wrong { background: #FFE3EA; border-color: #D6336C; color: #8E1238; box-shadow: none; }
.qz-answer.is-wrong .qz-answer__key { background: #D6336C; border-color: #D6336C; color: #fff; }
.js .qz-explain { display: none; }
.qz-explain { margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: var(--cream); font-weight: 600; }
.qz-q.is-answered .qz-explain { display: block; animation: pop-in .4s var(--ease-bounce); }
.qz-q.got-right .qz-explain { background: var(--green-soft); }
.qz-q.got-wrong .qz-explain { background: #FFF1F5; }
.qz__next { justify-content: flex-end; margin-top: 22px; }

/* Agree / disagree scale */
.qz-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: start; padding: 8px 0 4px; }
.qz-scale__opt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 8px 2px;
  border: 0; border-radius: 16px;
  background: transparent;
}
.qz-scale__dot {
  display: block;
  width: var(--size, 44px); height: var(--size, 44px);
  border-radius: 50%;
  border: 3px solid var(--tone, var(--muted));
  background: var(--paper);
  transition: transform .25s var(--ease-bounce), background-color .2s, box-shadow .2s;
}
.qz-scale__label { font-size: .8rem; font-weight: 700; color: var(--muted); line-height: 1.2; text-align: center; }
.qz-scale__opt--0 { --size: 52px; --tone: var(--coral); }
.qz-scale__opt--1 { --size: 42px; --tone: var(--coral); }
.qz-scale__opt--2 { --size: 34px; --tone: #A29DB3; }
.qz-scale__opt--3 { --size: 42px; --tone: var(--green); }
.qz-scale__opt--4 { --size: 52px; --tone: var(--green); }
.qz-scale__opt:hover .qz-scale__dot { transform: scale(1.1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 18%, transparent); }
.qz-scale__opt[aria-pressed="true"] .qz-scale__dot { background: var(--tone); transform: scale(1.08); }
.qz-scale__opt[aria-pressed="true"] .qz-scale__label { color: var(--ink); }
.qz-scale__opt:focus-visible { outline-offset: 0; }

/* Result */
.qz__result:focus { outline: none; }
.qz-res { display: grid; gap: 28px; animation: pop-in .6s var(--ease-bounce); }
.qz-res__card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 141, 190, .9), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 200, 61, .55), transparent 40%),
    linear-gradient(160deg, #4A20E0 0%, #7B4DFF 55%, #C05BE0 100%);
  background-size: 140% 140%;
  animation: gradient 10s ease infinite;
}
.qz-res__top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.qz-res__brand { font-family: var(--font-display); font-weight: 800; }
.qz-res__tag { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .2); font-weight: 700; }
.qz-res__emoji {
  display: inline-grid; place-items: center;
  width: 84px; height: 84px; margin-top: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-size: 2.6rem;
  animation: bob 4s ease-in-out infinite;
}
.qz-res__kicker { margin-top: 14px; font-weight: 700; opacity: .9; }
.qz-res__kicker b { font-family: var(--font-display); font-size: 1.3em; }
.qz-res__title {
  margin-top: 4px;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
}
.qz-res__code { display: inline-block; padding: 2px 12px; margin-right: 4px; border-radius: 14px; background: #fff; color: #4A20E0; vertical-align: .08em; font-size: .8em; }
.qz-res__tagline { margin: 10px auto 0; max-width: 40ch; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }

.qz-bars { list-style: none; display: grid; gap: 10px; max-width: 520px; margin: 24px auto 0; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .14); text-align: left; }
.qz-bars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 44px; align-items: center; gap: 12px; font-size: .88rem; font-weight: 700; }
.qz-bar__label small { display: block; font-weight: 500; opacity: .75; font-size: .78rem; }
.qz-bar__track { display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.qz-bar__track span { display: block; height: 100%; border-radius: inherit; background: #fff; animation: bar-in 1s var(--ease) both .2s; transform-origin: left; }
.qz-bar__pct { text-align: right; font-variant-numeric: tabular-nums; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.qz-res__body { display: grid; gap: 22px; }
.qz-res__desc { font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); }
.qz-res__traits h3, .qz-res__list h3 { font-size: 1.1rem; margin-bottom: 10px; }
.qz-res__traits ul { list-style: none; display: grid; gap: 10px; }
.qz-res__traits li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--cream); }
.qz-res__traits li span { color: var(--muted); font-size: .95rem; }
.qz-res__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qz-res__list { padding: 18px 20px; border-radius: 20px; }
.qz-res__list.is-strengths { background: var(--green-soft); }
.qz-res__list.is-growth { background: var(--yellow-soft); }
.qz-res__list ul { list-style: none; display: grid; gap: 8px; }
.qz-res__list li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink-2); }
.qz-res__list li::before {
  content: ""; position: absolute; left: 2px; top: .4em;
  width: 13px; height: 13px;
  background: var(--ink);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.qz-res__share { text-align: center; padding-top: 6px; border-top: 2px dashed var(--line); }
.qz-res__share p { margin: 16px 0 0; font-weight: 800; }
.qz-res__share .share-actions { margin-top: 12px; }
.qz-res__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.qz-res__actions .btn-quiz { width: auto; }

/* Quiz article + all results + related */
.page-body--quiz { padding-top: clamp(24px, 4vw, 48px); }
.all-results { padding-block: clamp(40px, 6vw, 80px); background: var(--paper); border-radius: var(--r-xl); margin-inline: clamp(8px, 1.5vw, 24px); }
.result-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.result-tile {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--cream);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease);
}
.result-tile:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--sh-md); }
.result-tile__emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px 16px 16px 5px; background: var(--soft, var(--purple-soft)); font-size: 1.6rem; }
.result-tile h3 { margin-top: 14px; font-size: 1.25rem; }
.result-tile__code { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 8px; background: var(--accent, var(--purple)); color: #fff; font-size: .8em; vertical-align: .1em; }
.result-tile__tag { margin-top: 4px; font-weight: 700; color: var(--accent, var(--purple)); font-size: .95rem; }
.result-tile p:last-child { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.result-tiles--many { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related { padding-block: clamp(48px, 6vw, 88px); }

/* Category page */
.page-hero--cat { background: linear-gradient(180deg, var(--soft, var(--purple-soft)) 0%, var(--cream) 100%); }
.page-hero--cat .page-hero__blob--a { background: rgba(255, 255, 255, .6); }
.page-hero--cat .crumbs a { color: var(--accent, var(--purple)); }
.cat-desc p { margin: 0; }
.cat-desc p + p { margin-top: .8em; }
.h1-page { font-size: .45em; color: var(--muted); letter-spacing: 0; }

.cat-emblem { position: relative; display: grid; place-items: center; width: 240px; height: 240px; }
.cat-emblem__ring { position: absolute; inset: 0; border: 2px dashed var(--accent, var(--purple)); border-radius: 50%; opacity: .45; animation: spin 50s linear infinite; }
.cat-emblem__icon {
  display: grid; place-items: center;
  width: 150px; height: 150px;
  border-radius: 46px 46px 46px 16px;
  background: var(--accent, var(--purple));
  color: #fff;
  box-shadow: 0 24px 40px -18px var(--accent, var(--purple));
  transform: rotate(-6deg);
  animation: bob 5s ease-in-out infinite;
}
.cat-emblem__icon svg { width: 70px; height: 70px; }
.cat-emblem .art-tag--a { top: 4%; left: -12%; }
.cat-emblem .art-tag--b { bottom: 8%; right: -14%; top: auto; }

.cat-body { padding-block: clamp(40px, 5vw, 72px); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 46px; height: 46px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 800;
  transition: background-color .2s, color .2s, transform .2s var(--ease-bounce);
}
.pager a.page-numbers:hover { background: var(--yellow); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--ink); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

.empty-state { max-width: 560px; margin-inline: auto; padding: clamp(28px, 5vw, 48px); text-align: center; border-radius: var(--r-xl); background: var(--paper); border: 2px dashed rgba(29, 21, 48, .2); }
.empty-state__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px 24px 24px 8px; background: var(--soft, var(--purple-soft)); color: var(--accent, var(--purple)); }
.empty-state__icon svg { width: 36px; height: 36px; }
.empty-state h2 { margin-top: 18px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.empty-state p { margin: 10px 0 22px; color: var(--muted); }

.more-cats { padding-bottom: clamp(40px, 5vw, 64px); }
.more-cats h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 18px; }
.cat-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
}
.cat-pill:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ink); }
.cat-pill__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; }
.cat-pill__icon svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .quiz-hero { text-align: left; }
  .quiz-hero .crumbs, .quiz-facts { justify-content: flex-start; }
  .quiz-hero .lead { margin-inline: 0; }
  .cat-emblem { width: 200px; height: 200px; }
  .cat-emblem__icon { width: 124px; height: 124px; }
}
@media (max-width: 640px) {
  .qz { padding: 20px 16px 24px; box-shadow: 5px 5px 0 var(--accent, var(--purple)); }
  .qz-answers { grid-template-columns: 1fr; gap: 10px; }
  .qz-answer { min-height: 56px; }
  .qz-answers--two .qz-answer { min-height: 72px; }
  .qz-scale { gap: 2px; }
  .qz-scale__opt--0, .qz-scale__opt--4 { --size: 44px; }
  .qz-scale__opt--1, .qz-scale__opt--3 { --size: 36px; }
  .qz-scale__opt--2 { --size: 28px; }
  .qz-scale__label { font-size: .7rem; }
  .qz-res__lists { grid-template-columns: 1fr; }
  .qz-bars li { grid-template-columns: 1fr 40px; }
  .qz-bars .qz-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .qz-res__actions .btn { flex: 1 1 100%; }
  .quiz-facts li { padding: 6px 12px; font-size: .85rem; }
  .result-tiles, .result-tiles--many { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qz__start-icon, .qz-res__emoji, .cat-emblem__icon, .cat-emblem__ring, .qz-res__card { animation: none; }
}

/* Emoji bubbles on generated quiz thumbnails */
.thumb-emojis { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.thumb-emoji {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px -10px rgba(29, 21, 48, .45);
  line-height: 1;
  transition: transform .5s var(--ease-bounce);
}
.thumb-emoji--1 { width: 34%; aspect-ratio: 1; font-size: clamp(1.8rem, 3.4vw, 2.6rem); z-index: 2; }
.thumb-emoji--2 { width: 22%; aspect-ratio: 1; font-size: clamp(1.1rem, 2vw, 1.6rem); transform: translate(-115%, 30%) rotate(-8deg); }
.thumb-emoji--3 { width: 22%; aspect-ratio: 1; font-size: clamp(1.1rem, 2vw, 1.6rem); transform: translate(115%, -30%) rotate(8deg); }
.quiz-card:hover .thumb-emoji--1 { transform: scale(1.08) rotate(-4deg); }
.quiz-card:hover .thumb-emoji--2 { transform: translate(-125%, 24%) rotate(-14deg); }
.quiz-card:hover .thumb-emoji--3 { transform: translate(125%, -36%) rotate(14deg); }

/* Freshly Quizzed (dynamic) */
.latest-feature__wrap { position: relative; }
.latest-feature__thumb.has-image .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.latest-feature:hover .latest-feature__thumb .thumb-img { transform: scale(1.06); }
.latest-feature__thumb .thumb-emoji--1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.latest-feature__thumb .thumb-emoji--2, .latest-feature__thumb .thumb-emoji--3 { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.latest-empty { padding: 28px; text-align: center; border-radius: var(--r-lg); background: var(--paper); color: var(--muted); font-weight: 600; }

/* Quiz notice box + question images */
.quiz-notice {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 760px; margin: 22px auto 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2px solid #D6336C;
  background: #FFF1F5;
  color: #7A0F33;
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
}
.quiz-notice .icon { width: 22px; height: 22px; margin-top: 1px; color: #D6336C; flex-shrink: 0; }
.quiz-notice p { margin: 0; }
.quiz-notice--result { margin: 0; }
.qz-q__media { margin: 0 0 20px; display: grid; place-items: center; }
.qz-q__media img {
  width: auto; max-width: min(100%, 360px); max-height: 220px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(29, 21, 48, .12), 0 14px 30px -18px rgba(29, 21, 48, .45);
}
.js .qz-q:not(.is-current) .qz-q__media { display: none; }
@media (max-width: 960px) { .quiz-notice { margin-left: 0; } }
