:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-strong: #f2f6fb;
  --text: #111827;
  --muted: #566173;
  --line: #dbe5f3;
  --brand: #2f80ed;
  --brand-dark: #111827;
  --success: #0b8f7a;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(210px, 320px);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(248, 251, 255, 0.94);
  border-bottom: 1px solid rgba(219, 229, 243, 0.85);
  backdrop-filter: blur(14px);
  overflow-x: clip;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 212px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a:hover {
  color: var(--brand);
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-search input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.nav-search button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.nav-cta,
.primary-button,
.secondary-button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.15;
}

.nav-cta,
.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
}

.primary-button,
.card-action {
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
}

.primary-button:hover,
.card-action:hover {
  background: #253041;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 64px) 0 26px;
}

.hero-copy {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.1), rgba(11, 143, 122, 0.07)),
    #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #425066;
  font-size: 18px;
}

.hero-actions,
.trust-row,
.keyword-row,
.detail-stats,
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trust-row {
  margin-top: 24px;
}

.trust-row span,
.keyword-row span,
.detail-stats span,
.card-stats span,
.section-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.hero-mini-card span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 850;
}

.hero-mini-card strong {
  line-height: 1.2;
}

.hero-mini-card small,
.card-meta,
.card-stats,
.list-row small,
.microcopy {
  color: var(--muted);
  font-size: 13px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  max-width: 100%;
  margin: 10px 0 34px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-pill {
  min-width: 142px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-pill:hover,
.category-pill.is-active {
  border-color: var(--accent);
  background: var(--tint);
}

.category-pill span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.15;
}

.section-grid,
.split-section,
.detail-layout {
  margin: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.section-head.inline {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-head.inline a {
  color: var(--brand);
  font-weight: 850;
}

.section-head.compact h2 {
  font-size: 28px;
}

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

.cards-scroll {
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

.compact-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-start,
.continue-exploring,
.recently-completed,
.mood-section,
.collection-strip {
  margin: 42px 0;
}

.quick-start-grid,
.collection-grid,
.continue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-start-grid a,
.collection-card,
.completed-card {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.quick-start-grid a:hover,
.collection-card:hover,
.completed-card:hover {
  border-color: var(--brand);
  background: #eaf3ff;
}

.collection-card span,
.completed-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-card small,
.completed-card small {
  color: var(--muted);
  font-weight: 650;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mood-group {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mood-group h3 {
  margin-bottom: 2px;
}

.test-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.test-card:hover {
  border-color: color-mix(in srgb, var(--accent), #ffffff 25%);
  transform: translateY(-2px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 420 / 260;
  background: var(--tint);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 30px;
  max-width: calc(100% - 96px);
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span:first-child {
  color: var(--accent);
  font-weight: 800;
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.card-body h3 {
  font-size: 21px;
}

.card-stats {
  margin-top: auto;
}

.card-action {
  margin-top: 14px;
  width: 100%;
}

.ad-slot {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #bdcbe0;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  text-align: center;
}

.ad-slot span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot strong {
  color: #111827;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-row:hover {
  border-color: var(--accent);
  background: var(--tint);
}

.list-row img {
  width: 88px;
  aspect-ratio: 1.25;
  border-radius: 8px;
  object-fit: cover;
}

.completed-icon {
  display: grid;
  width: 88px;
  min-height: 70px;
  place-items: center;
  border-radius: 8px;
  background: #e8f8f4;
  color: var(--success);
  font-size: 28px;
  font-weight: 900;
}

.list-row strong,
.list-row small {
  display: block;
}

.category-hero,
.detail-hero {
  display: grid;
  gap: 24px;
  margin: 30px 0 20px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tint), #fff 70%);
}

.category-hero {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.category-count {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-count strong {
  display: block;
  color: var(--accent);
  font-size: 54px;
  line-height: 0.9;
}

.category-count span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
}

.detail-copy p:not(.eyebrow) {
  color: #425066;
  font-size: 18px;
}

.detail-cover {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side > * {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-main {
  padding: clamp(22px, 4vw, 42px);
}

.detail-main h2 {
  margin-top: 28px;
  font-size: 26px;
}

.detail-main h2:first-child {
  margin-top: 0;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.promise-grid span {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.promise-grid strong,
.promise-grid small {
  display: block;
}

.promise-grid strong {
  color: var(--accent);
  font-size: 19px;
  line-height: 1.1;
}

.promise-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.result-promise-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 55%);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tint), #fff 70%);
}

.result-promise-box strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-promise-box p {
  margin: 8px 0 0;
}

.detail-main li + li {
  margin-top: 8px;
}

.disclaimer-box {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #f3c6b7;
  border-radius: 8px;
  background: #fff7f3;
}

.keyword-row-seo {
  margin: 10px 0 16px;
}

.compliance-note {
  padding: 14px 16px;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #425066;
  font-size: 14px;
}

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

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.start-card {
  padding: 20px;
}

.start-card strong {
  font-size: 22px;
}

.start-card .primary-button {
  width: 100%;
}

.quiz-shell {
  margin: 30px auto 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tint), #fff 66%);
  overflow: hidden;
}

.quiz-start {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 26px;
  align-items: center;
  padding: clamp(22px, 5vw, 48px);
}

.quiz-start img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quiz-start h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.quiz-question,
.quiz-result {
  padding: clamp(20px, 5vw, 50px);
}

.progress-shell {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6edf7;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s ease;
}

.question-card {
  max-width: 820px;
  margin: 24px auto 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.question-card h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.option-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option-button {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.option-button:hover,
.option-button.is-selected {
  border-color: var(--accent);
  background: var(--tint);
}

.option-dot {
  width: 20px;
  height: 20px;
  border: 2px solid #9aa7b8;
  border-radius: 50%;
}

.option-button.is-selected .option-dot {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 48%, transparent 52%);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.quiz-controls button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
}

.result-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-score {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--accent);
  font-weight: 900;
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.result-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.dimension-panel {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dimension-panel h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.dimension-grid {
  display: grid;
  gap: 12px;
}

.dimension-score {
  display: grid;
  gap: 7px;
}

.dimension-score div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #374151;
  font-size: 14px;
}

.dimension-score span {
  color: var(--accent);
  font-weight: 900;
}

.dimension-score i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6edf7;
}

.dimension-score i::before {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  content: "";
}

.result-panel h3 {
  font-size: 18px;
}

.result-panel li + li {
  margin-top: 8px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.share-row button,
.share-row a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 850;
}

.share-row button {
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
}

.result-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.best-next-step {
  border-color: #cfe4ff;
  background: #f4f9ff;
}

.share-result-panel {
  border-color: #d9efe9;
  background: #f5fbf8;
}

.related-quiz {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.related-quiz a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.related-quiz img {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 8px;
  object-fit: cover;
}

.related-quiz strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.2;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding: 34px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 620px;
  margin: 6px 0 0;
}

.hero-v2 {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.hero-v2 .hero-copy {
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(224, 86, 122, 0.09) 45%, rgba(11, 143, 122, 0.08)),
    #fff;
}

.four-actions {
  align-items: stretch;
}

.four-actions a {
  min-height: 50px;
}

.hero-rank {
  align-content: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.seo-copy {
  margin: 18px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #425066;
}

.long-copy {
  font-size: 17px;
  line-height: 1.75;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 20px;
}

.search-panel input {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.empty-state {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ranking-row:hover {
  border-color: var(--accent);
  background: var(--tint);
}

.ranking-row img {
  width: 150px;
  aspect-ratio: 1.45;
  border-radius: 8px;
  object-fit: cover;
}

.ranking-row h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.rank-number {
  display: grid;
  min-height: 64px;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.filter-bar button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
  border-color: var(--brand);
  background: #eaf3ff;
  color: #174ea6;
}

.ad-inline {
  min-height: 72px;
  margin-top: 14px;
}

.ad-result {
  margin: 24px 0;
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.warning-text {
  color: #b42318 !important;
}

.quiz-loading {
  display: grid;
  min-height: 420px;
  place-items: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.quiz-loading span {
  width: 54px;
  height: 54px;
  border: 5px solid #dbe5f3;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.quiz-loading strong {
  font-size: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.saveable-result-card {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent), #ffffff 50%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--tint), #fff 68%),
    #fff;
}

.result-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saveable-result-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.share-angle {
  display: block;
  margin-top: 14px;
  color: #425066;
  font-size: 14px;
  font-weight: 750;
}

.result-panel + .result-panel {
  margin-top: 18px;
}

.result-static-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin: 30px 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tint), #fff 70%);
}

.share-preview-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.share-preview-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-preview-card strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.05;
}

.related-quiz {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-quiz small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.language-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.language-plan span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: #111827;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-search {
    width: 100%;
  }

  .hero,
  .detail-hero,
  .detail-layout,
  .quiz-start,
  .split-section,
  .result-static-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .cards-grid,
  .compact-cards,
  .quick-start-grid,
  .collection-grid,
  .continue-grid,
  .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-row {
    grid-template-columns: 54px 110px minmax(0, 1fr);
  }

  .ranking-row .primary-button {
    grid-column: 2 / -1;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  main {
    width: min(100% - 24px, 680px);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .top-nav {
    gap: 10px;
  }

  .top-nav a {
    white-space: nowrap;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy,
  .hero-panel,
  .category-hero,
  .detail-hero,
  .detail-main,
  .quiz-shell {
    border-radius: 8px;
  }

  .hero-copy,
  .quiz-start,
  .category-hero,
  .detail-hero,
  .result-static-hero {
    padding: 20px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-copy > p:not(.eyebrow),
  .detail-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .category-strip {
    display: flex;
    margin-bottom: 24px;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    flex: 0 0 154px;
  }

  .cards-grid,
  .compact-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cards-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .cards-scroll::-webkit-scrollbar {
    display: none;
  }

  .cards-scroll .test-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .quick-start-grid,
  .collection-grid,
  .continue-grid,
  .mood-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 1fr;
  }

  .ranking-row img {
    display: none;
  }

  .ranking-row .primary-button {
    grid-column: 1 / -1;
  }

  .card-body {
    min-height: auto;
    padding: 14px;
  }

  .card-body h3 {
    font-size: 22px;
    line-height: 1.12;
  }

  .card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head.inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-hero {
    grid-template-columns: 1fr;
  }

  .category-count {
    width: 100%;
    height: auto;
    min-height: 92px;
  }

  .detail-cover {
    order: -1;
  }

  .result-columns,
  .related-quiz {
    grid-template-columns: 1fr;
  }

  .option-button {
    min-height: 64px;
    padding: 16px;
  }

  .quiz-controls {
    flex-direction: column;
  }

  .quiz-controls button,
  .quiz-controls .primary-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 16px;
  }

  .detail-page {
    padding-bottom: 76px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand-dark);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.2);
  }
}

@media (min-width: 721px) {
  .mobile-sticky-cta {
    display: none;
  }
}
