/* =====================================================================
   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: space-between;
  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; }
  .cat-card__foot > span:first-child { display: none; }

  .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; }
}