@import url("https://fonts.googleapis.com/css2?family=Biryani:wght@400;500;600;700&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  --ink: #24202b;
  --muted: #716d7b;
  --line: #ece8f1;
  --paper: #ffffff;
  --wash: #f7f6fb;
  --soft-blue: #f2f7ff;
  --pink: #f7117e;
  --purple: #8b43ff;
  --orange: #ff9a3c;
  --teal: #00a9a5;
  --shadow: 0 12px 34px rgba(58, 35, 91, 0.09);
  --shadow-hover: 0 18px 44px rgba(58, 35, 91, 0.14);
  --radius: 18px;
  --nav-height: 66px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection { background: #ffd8eb; color: #4c123a; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(40, 21, 65, 0.06);
}

.nav-shell {
  width: min(100% - 40px, 1440px);
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 5px 10px rgba(244, 28, 143, 0.22));
}

.brand-mark svg { width: 40px; height: 40px; }

.brand-word {
  font-family: "Biryani", "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #26212d;
}

.brand-word span {
  background: linear-gradient(100deg, var(--pink), var(--purple) 72%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  padding: 11px 13px;
  border-radius: 10px;
  color: #656170;
  font-family: "Biryani", "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dc0f74;
  background: #fff1f7;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--pink);
  transform: translateX(-50%);
}

.nav-link-accent {
  margin-left: 2px;
  color: #fff;
  background: linear-gradient(110deg, #ff268f, #9e48ff);
  box-shadow: 0 8px 16px rgba(226, 21, 138, 0.2);
}

.nav-link-accent:hover,
.nav-link-accent.is-active {
  color: #fff;
  background: linear-gradient(110deg, #ee117c, #8240ed);
}

.nav-link-accent.is-active::after { display: none; }
.chevron { font-size: 15px; margin-left: 3px; }

.nav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  min-width: 224px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(44, 22, 79, 0.14);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #514b5c;
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-panel a:hover { color: var(--pink); background: #fff3f8; }
.nav-dropdown-panel span { width: 24px; text-align: center; }

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 20px;
  background: #3d3549;
  transition: opacity 160ms ease;
}

.mobile-nav { display: none; }

.page-shell {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
}

.section-block {
  position: relative;
  padding: 42px 0 58px;
}

.section-block.has-pattern {
  background-color: #fff;
  background-image:
    radial-gradient(circle at 10% 24%, rgba(255, 68, 158, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 70%, rgba(95, 70, 255, 0.07) 0 1px, transparent 1.5px),
    linear-gradient(180deg, rgba(253, 249, 255, 0.82), rgba(255, 255, 255, 0));
  background-size: 20px 20px, 24px 24px, 100% 100%;
}

.section-block.is-blue { background: var(--soft-blue); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 7px;
  color: #d21277;
  font-family: "Biryani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Biryani", "Figtree", sans-serif;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.04;
}

.section-heading p.section-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  color: #6c6575;
  font-size: 14px;
  font-weight: 700;
}

.section-link:hover { color: var(--pink); }

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 223, 237, 0.92);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(65, 38, 95, 0.055);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.quiz-card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 64, 149, 0.26);
  box-shadow: var(--shadow-hover);
}

.card-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.46) 0 1.5%, transparent 1.7%),
    linear-gradient(132deg, var(--c1), var(--c2) 64%, var(--c3));
}

.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image: radial-gradient(#fff 0.8px, transparent 0.9px);
  background-size: 9px 9px;
  mask-image: linear-gradient(145deg, #000, transparent 74%);
}

.art-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.2px);
}

.art-orb-one {
  width: 58%;
  aspect-ratio: 1;
  right: -9%;
  bottom: -36%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}

.art-orb-two {
  width: 32%;
  aspect-ratio: 1;
  top: -16%;
  left: -8%;
  background: rgba(255, 255, 255, 0.21);
}

.art-ring {
  position: absolute;
  right: 10%;
  top: 12%;
  width: 33%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 18px rgba(255,255,255,.05);
}

.art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.art-kicker {
  position: absolute;
  left: 8%;
  top: 8%;
  max-width: 72%;
  color: #fff;
  font-family: "Biryani", sans-serif;
  font-size: clamp(10px, 1.05vw, 14px);
  font-weight: 800;
  letter-spacing: 1.1px;
  line-height: 1.02;
  text-shadow: 0 2px 10px rgba(54, 24, 70, 0.2);
}

.art-emoji {
  position: absolute;
  right: 9%;
  bottom: 11%;
  z-index: 2;
  font-size: clamp(49px, 5.4vw, 78px);
  filter: drop-shadow(0 12px 13px rgba(50, 20, 75, 0.2));
  transform: rotate(-9deg);
  transition: transform 220ms ease;
}

.quiz-card:hover .art-emoji { transform: rotate(-5deg) scale(1.06); }

.art-question {
  position: absolute;
  left: 38%;
  bottom: 4%;
  color: rgba(255,255,255,.22);
  font-family: "Biryani", sans-serif;
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
}

.art-pill {
  position: absolute;
  left: 7%;
  bottom: 9%;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 17, 38, 0.16);
  backdrop-filter: blur(8px);
  font-family: "Biryani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.card-copy { padding: 12px 13px 13px; }

.card-title {
  margin: 0;
  min-height: 48px;
  color: #302a39;
  font-family: "Biryani", "Figtree", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #9a94a2;
  font-size: 11px;
  font-weight: 600;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c7c1ce;
}

.card-arrow {
  margin-left: auto;
  color: #b1aab9;
  font-size: 15px;
  transition: color 160ms ease, transform 160ms ease;
}

.quiz-card:hover .card-arrow { color: var(--pink); transform: translate(2px, -2px); }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 420ms ease, transform 420ms ease; }

.ad-slot {
  margin: 12px auto 30px;
  width: min(100%, 1040px);
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed #ddd6e5;
  border-radius: 12px;
  color: #b0aaba;
  background: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: 0.6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #26212d;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(100deg, #ff258e, #9348ff); box-shadow: 0 10px 24px rgba(220, 24, 141, 0.22); }
.btn-secondary { border-color: #e6dfeb; background: #fff; color: #423a4f; }
.btn-soft { background: #fff0f7; color: #d10e74; }
.btn-small { min-height: 38px; padding: 8px 13px; border-radius: 10px; font-size: 12px; }

.quiz-page { padding: 38px 0 80px; }

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  align-items: start;
  gap: 30px;
}

.quiz-heading { margin-bottom: 25px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #d30d75;
  font-family: "Biryani", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.quiz-heading h1,
.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Biryani", "Figtree", sans-serif;
  font-size: clamp(33px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.quiz-deck {
  max-width: 760px;
  margin: 12px 0 0;
  color: #746e7d;
  font-size: 16px;
  line-height: 1.55;
}

.quiz-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #ece6f0;
  border-radius: 999px;
  background: #fff;
  color: #756d7f;
  font-size: 12px;
  font-weight: 600;
}

.progress-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 14px);
  z-index: 10;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(233, 226, 239, 0.94);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(49, 25, 75, 0.06);
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: #6f6878;
  font-size: 12px;
  font-weight: 700;
}

.progress-copy strong { color: #d10f75; }

.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #f0ebf4; }
.progress-bar { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #ff328f, #ffb33d); transition: width 300ms ease; }

.question-stack { display: grid; gap: 22px; }

.question-card {
  overflow: hidden;
  border: 1px solid #e9e2ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(59, 32, 89, 0.06);
}

.question-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(101deg, var(--q1, #f91383), var(--q2, #ffb12e));
}

.question-number {
  flex: 0 0 auto;
  font-family: "Biryani", sans-serif;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.78;
}

.question-top h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.question-emoji { margin-left: auto; font-size: 28px; filter: drop-shadow(0 4px 8px rgba(62,24,74,.15)); }

.question-body { padding: 19px 20px 20px; }
.question-prompt { margin: 0 0 15px; color: #5f586a; font-size: 15px; line-height: 1.5; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.option-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 13px;
  border: 1px solid #eee7f2;
  border-radius: 11px;
  background: #fcfbfd;
  color: #4b4455;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-button:hover { border-color: #f3a8ce; background: #fff6fa; transform: translateY(-1px); }

.option-radio {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #d6cfdd;
  border-radius: 50%;
  background: #fff;
}

.option-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d30e75;
  transform: scale(0);
  transition: transform 150ms ease;
}

.option-button.is-selected { border-color: #ee2792; background: #fff0f7; color: #9c1058; box-shadow: 0 0 0 2px rgba(238,39,146,.09); }
.option-button.is-selected .option-radio { border-color: #ee2792; }
.option-button.is-selected .option-radio::after { transform: scale(1); }

.reveal-results {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding: 13px 14px 13px 18px;
  border: 1px solid #e9e1ef;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 50px rgba(53, 24, 86, 0.15);
  backdrop-filter: blur(14px);
}

.reveal-results span { color: #746d7c; font-size: 13px; font-weight: 600; }

.quiz-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }
.side-panel { padding: 19px; border: 1px solid #e9e2ee; border-radius: 17px; background: #fff; box-shadow: 0 7px 24px rgba(57,30,85,.05); }
.side-panel + .side-panel { margin-top: 18px; }
.side-panel h2 { margin: 0 0 13px; font-family: "Biryani", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }

.related-list { display: grid; gap: 10px; }

.mini-quiz {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 11px;
  transition: background 150ms ease;
}

.mini-quiz:hover { background: #faf6fc; }
.mini-art { aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); font-size: 27px; }
.mini-quiz:nth-child(n+5) { display: none; }
.mini-quiz h3 { margin: 0; font-size: 12px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-quiz small { display: block; margin-top: 4px; color: #a09aa7; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

.side-note { color: #7c7485; font-size: 13px; line-height: 1.55; }
.side-note strong { color: #3b3345; }

.result-wrap { display: none; }
.result-wrap.is-visible { display: block; animation: resultIn 420ms ease; }

@keyframes resultIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(132deg, var(--r1, #ff318f), var(--r2, #8f4dff) 65%, var(--r3, #ffb53d));
  box-shadow: 0 20px 55px rgba(117, 30, 132, 0.23);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.45) .8px, transparent .9px);
  background-size: 12px 12px;
  opacity: .2;
  mask-image: linear-gradient(140deg, #000, transparent 74%);
}

.result-card > * { position: relative; }
.result-kicker { display: inline-block; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; background: rgba(255,255,255,.12); }
.result-emoji { margin: 28px 0 14px; font-size: 74px; line-height: 1; filter: drop-shadow(0 12px 16px rgba(40,14,70,.2)); }
.result-card h2 { margin: 0; max-width: 680px; font-family: "Biryani", sans-serif; font-size: clamp(34px, 4vw, 53px); line-height: 1.02; letter-spacing: -1.5px; }
.result-subtitle { margin: 9px 0 0; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.82); }
.result-description { max-width: 720px; margin: 23px 0 0; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.92); }
.trait-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trait { padding: 7px 10px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 700; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.result-actions .btn { border-color: rgba(255,255,255,.28); background: #fff; color: #3f274a; }
.result-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }

.result-note {
  margin-top: 17px;
  padding: 17px 18px;
  border: 1px solid #ece5f1;
  border-radius: 14px;
  background: #fff;
  color: #7c7485;
  font-size: 13px;
  line-height: 1.55;
}

.quiz-info { margin-top: 32px; padding-top: 29px; border-top: 1px solid var(--line); }
.quiz-info h2 { margin: 0 0 10px; font-family: "Biryani", sans-serif; font-size: 24px; }
.quiz-info p { margin: 0 0 12px; color: #756e7d; font-size: 14px; line-height: 1.65; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 43px;
  background:
    radial-gradient(circle at 87% 25%, rgba(255, 67, 160, .13), transparent 24%),
    radial-gradient(circle at 12% 80%, rgba(112, 75, 255, .1), transparent 29%),
    linear-gradient(180deg, #fff, #fbf8ff);
  border-bottom: 1px solid #f0ebf5;
}

.page-hero .page-hero-inner { width: min(100% - 40px, 1440px); margin: 0 auto; }
.page-hero .hero-icon { margin-bottom: 13px; font-size: 44px; }
.page-hero p { max-width: 650px; margin: 13px 0 0; color: #756d80; font-size: 16px; line-height: 1.6; }
.page-hero .soft-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-hero h1 span { background: linear-gradient(100deg, #f5117d, #8849ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.category-layout { padding: 33px 0 72px; }
.category-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 21px; }
.category-toolbar p { margin: 0; color: #87808f; font-size: 13px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 8px 12px; border: 1px solid #e8e1ee; border-radius: 999px; background: #fff; color: #746c7d; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 150ms ease; }
.filter-chip:hover, .filter-chip.is-active { border-color: #f5afd0; color: #d10e75; background: #fff2f8; }

.empty-state { padding: 50px; border: 1px dashed #ded6e4; border-radius: 16px; text-align: center; color: #81788c; }

.prose-page { padding: 46px 0 80px; }
.prose-shell { width: min(100% - 40px, 820px); margin: 0 auto; }
.prose-shell > .eyebrow { margin-bottom: 12px; }
.prose-shell h1 { margin: 0 0 13px; font-family: "Biryani", sans-serif; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -1.8px; }
.prose-shell .lede { margin: 0 0 32px; color: #777080; font-size: 17px; line-height: 1.65; }
.prose { color: #514a5b; font-size: 15px; line-height: 1.72; }
.prose h2 { margin: 31px 0 10px; color: #29232f; font-family: "Biryani", sans-serif; font-size: 26px; letter-spacing: -.6px; }
.prose h3 { margin: 23px 0 8px; color: #342d3c; font-size: 18px; }
.prose p { margin: 0 0 13px; }
.prose ul { margin: 10px 0 17px; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: #cf0f72; text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { margin: 24px 0; padding: 18px 20px; border: 1px solid #f2c2dc; border-radius: 15px; background: #fff5fa; color: #713b58; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; align-items: start; }
.contact-card { padding: 24px; border: 1px solid #e9e2ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(54, 28, 81, .05); }
.contact-card h2 { margin: 0 0 7px; font-family: "Biryani", sans-serif; font-size: 25px; }
.contact-card p { margin: 0; color: #7c7585; font-size: 14px; line-height: 1.6; }
.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-list a { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 11px; background: #faf8fc; font-size: 13px; font-weight: 700; }
.contact-list a:hover { color: var(--pink); background: #fff2f8; }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; color: #4c4555; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e5dfea; border-radius: 11px; background: #fcfbfd; padding: 12px 13px; color: #332c3a; outline: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #f083ba; box-shadow: 0 0 0 3px rgba(240,131,186,.13); }
.field textarea { min-height: 126px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.filter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; align-items: start; }
.photo-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 470px; border: 1px solid #e8e1ed; border-radius: 20px; background: #f2eef7; }
.photo-stage img { max-width: 100%; max-height: 620px; object-fit: contain; transition: filter 220ms ease; }
.photo-stage.has-image { background: #15131a; }
.photo-stage.is-dragging { outline: 3px solid #ed2d93; outline-offset: -7px; }
.photo-placeholder { width: 100%; min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; color: #8a8195; background: linear-gradient(135deg, #fff7fb, #f5f1ff 55%, #fff8e8); }
.photo-placeholder .placeholder-icon { font-size: 72px; margin-bottom: 10px; }
.photo-placeholder h2 { margin: 0 0 7px; color: #4b3e59; font-family: "Biryani", sans-serif; font-size: 27px; }
.photo-placeholder p { max-width: 410px; margin: 0 auto 18px; font-size: 14px; line-height: 1.6; }
.upload-label { cursor: pointer; }
.upload-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-panel { padding: 20px; border: 1px solid #e8e1ee; border-radius: 18px; background: #fff; box-shadow: 0 7px 26px rgba(53,26,81,.05); }
.filter-panel h2 { margin: 0 0 5px; font-family: "Biryani", sans-serif; font-size: 23px; }
.filter-panel p { margin: 0 0 16px; color: #81798a; font-size: 12px; line-height: 1.5; }
.filter-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e9e2ef; border-radius: 10px; background: #fcfbfd; color: #5c5367; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-option:hover, .filter-option.is-active { border-color: #ee8abd; color: #c10d6c; background: #fff2f8; }
.filter-option span { font-size: 17px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intensity-wrap { margin-top: 16px; }
.intensity-wrap label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #625a6c; }
.intensity-wrap input { width: 100%; accent-color: #e9167d; }
.upload-hint { margin-top: 12px; color: #a099a7; font-size: 11px; line-height: 1.5; }

.horoscope-layout { padding: 33px 0 80px; }
.zodiac-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.zodiac-button { padding: 15px 9px; border: 1px solid #e8e1ef; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; transition: all 170ms ease; }
.zodiac-button:hover, .zodiac-button.is-active { border-color: #f2a3ca; background: #fff3f9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(84, 39, 103, .06); }
.zodiac-button .zodiac-symbol { font-size: 28px; color: #c71474; }
.zodiac-button strong { display: block; margin-top: 5px; font-size: 12px; }
.zodiac-button small { display: block; margin-top: 2px; color: #9b94a4; font-size: 9px; }
.horoscope-result { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; border: 1px solid #e8e0ee; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(59, 28, 90, .08); }
.horoscope-sign-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; padding: 28px; color: #fff; background: linear-gradient(155deg, #641dd7, #e41e9a 68%, #ffab3f); }
.horoscope-sign-panel::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#fff .8px, transparent .9px); background-size: 13px 13px; mask-image: linear-gradient(160deg, #000, transparent 70%); }
.horoscope-sign-panel > * { position: relative; z-index: 1; }
.horoscope-symbol-big { font-size: 92px; line-height: 1; }
.horoscope-sign-panel h2 { margin: 6px 0 0; font-family: "Biryani", sans-serif; font-size: 39px; letter-spacing: -1px; }
.horoscope-sign-panel p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }
.horoscope-sign-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.horoscope-sign-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 700; }
.horoscope-content { padding: 32px; }
.horoscope-date { color: #d10f75; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
.horoscope-content h2 { margin: 8px 0 11px; font-family: "Biryani", sans-serif; font-size: 31px; line-height: 1.15; letter-spacing: -.7px; }
.horoscope-content > p { margin: 0 0 22px; color: #6f6779; font-size: 15px; line-height: 1.7; }
.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reading-block { padding: 13px; border-radius: 12px; background: #faf8fc; }
.reading-block span { display: block; margin-bottom: 5px; color: #97909f; font-size: 9px; font-weight: 800; letter-spacing: .9px; }
.reading-block p { margin: 0; color: #544b60; font-size: 12px; line-height: 1.48; }
.lucky-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lucky-row span { padding: 8px 10px; border: 1px solid #e9e1ef; border-radius: 9px; color: #6d6478; font-size: 11px; font-weight: 700; background: #fff; }

.site-footer { margin-top: 10px; border-top: 1px solid #eee9f3; background: linear-gradient(180deg, #fff, #fbf9fe); }
.footer-shell { width: min(100% - 40px, 1440px); margin: 0 auto; padding: 48px 0 22px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, .65fr); gap: 45px; }
.footer-brand p { max-width: 420px; margin: 16px 0 0; color: #81798b; font-size: 13px; line-height: 1.65; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.footer-badges span { padding: 6px 9px; border: 1px solid #ede6f1; border-radius: 999px; color: #81798b; background: #fff; font-size: 10px; font-weight: 700; }
.footer-column h3 { margin: 5px 0 10px; font-family: "Biryani", sans-serif; font-size: 14px; letter-spacing: .2px; }
.footer-column a { display: flex; align-items: center; gap: 7px; padding: 5px 0; color: #837b8c; font-size: 12px; }
.footer-column a:hover { color: var(--pink); }
.footer-column a span { width: 18px; }
.footer-note { margin-top: 36px; padding: 15px 17px; border: 1px solid #eee8f2; border-radius: 13px; background: #fff; }
.footer-note p { margin: 0; color: #928a9a; font-size: 11px; line-height: 1.6; }
.footer-note strong { color: #706777; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee9f2; color: #9a939f; font-size: 10px; }
.footer-bottom div { display: flex; gap: 16px; }
.footer-bottom a:hover { color: var(--pink); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: min(420px, calc(100vw - 30px)); padding: 11px 15px; border-radius: 11px; background: #2c2434; box-shadow: 0 14px 40px rgba(0,0,0,.2); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: all 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1260px) {
  .quiz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .quiz-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
  .art-kicker { font-size: 12px; }
  .art-emoji { font-size: 64px; }
  .zodiac-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .mobile-nav { display: none; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 12px; border-radius: 9px; background: #faf8fc; color: #5e5668; font-size: 13px; font-weight: 700; }
  .mobile-nav a:hover { color: var(--pink); background: #fff1f8; }
  .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-sidebar { position: static; }
  .mini-quiz:nth-child(n+5) { display: grid; }
  .filter-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .horoscope-result { grid-template-columns: 230px 1fr; }
  .horoscope-sign-panel { padding: 22px; }
  .horoscope-content { padding: 25px; }
}

@media (max-width: 650px) {
  :root { --nav-height: 59px; }
  .nav-shell, .page-shell, .page-hero .page-hero-inner, .footer-shell, .prose-shell { width: min(100% - 24px, 1440px); }
  .brand-mark, .brand-mark svg { width: 35px; height: 35px; }
  .brand-word { font-size: 21px; }
  .mobile-nav { grid-template-columns: 1fr; }
  .section-block { padding: 31px 0 40px; }
  .section-heading { align-items: start; margin-bottom: 17px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading .section-link { display: none; }
  .section-heading p.section-description { max-width: 290px; font-size: 13px; }
  .quiz-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-title { min-height: 0; font-size: 18px; }
  .card-art { aspect-ratio: 16 / 8.8; }
  .art-emoji { font-size: 74px; }
  .art-kicker { font-size: 13px; }

  .quiz-page, .category-layout, .horoscope-layout { padding-top: 25px; }
  .quiz-heading h1, .page-hero h1 { font-size: 34px; letter-spacing: -1px; }
  .quiz-deck { font-size: 14px; }
  .progress-wrap { top: calc(var(--nav-height) + 7px); }
  .question-top { padding: 15px 16px; }
  .question-top h2 { font-size: 17px; }
  .question-body { padding: 16px; }
  .option-grid { grid-template-columns: 1fr; }
  .option-button { min-height: 50px; font-size: 13px; }
  .reveal-results { align-items: stretch; flex-direction: column; padding: 14px; }
  .reveal-results .btn { width: 100%; }
  .result-card { padding: 24px 21px; border-radius: 18px; }
  .result-emoji { font-size: 62px; }
  .result-card h2 { font-size: 38px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
  .quiz-info { margin-top: 24px; }
  .side-panel { padding: 16px; }
  .mini-quiz { grid-template-columns: 88px minmax(0, 1fr); }
  .mini-quiz h3 { font-size: 12px; }

  .page-hero { padding: 34px 0 30px; }
  .page-hero p { font-size: 14px; }
  .category-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .filter-chip { white-space: nowrap; }
  .field-row { grid-template-columns: 1fr; }
  .photo-stage { min-height: 340px; }
  .photo-placeholder { min-height: 340px; }
  .filter-options { grid-template-columns: 1fr 1fr; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .horoscope-result { grid-template-columns: 1fr; }
  .horoscope-sign-panel { min-height: 260px; }
  .horoscope-content { padding: 21px; }
  .horoscope-content h2 { font-size: 27px; }
  .reading-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 25px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-bottom div { flex-wrap: wrap; gap: 12px; }
  .prose-shell h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
