:root {
  --bg: #fff8ef;
  --bg-accent: #ffe1c2;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: #fff3e0;
  --ink: #1f1b19;
  --muted: #6b5f58;
  --line: rgba(31, 27, 25, 0.12);
  --hot: #ff5a36;
  --hot-deep: #d63d1c;
  --teal: #0c8f85;
  --teal-soft: #c9f4ed;
  --yellow: #ffd966;
  --shadow: 0 24px 60px rgba(44, 24, 16, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 54, 0.14), transparent 25%),
    radial-gradient(circle at right center, rgba(12, 143, 133, 0.12), transparent 22%),
    linear-gradient(180deg, #fffaf3 0%, #fff3e6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 75%);
}

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

button,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 120px;
  position: relative;
}

.site-header,
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 32px;
}

.brand {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand span {
  color: var(--hot);
}

.top-nav,
.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-link {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.pill-link-sponsored {
  background: var(--yellow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.content-split,
.formula-panel,
.trend-strip,
.quiz-shell,
.results-panel,
.ad-banner,
.quiz-card,
.story-panel,
.stacked-ads,
.progress-card,
.quiz-side-rail,
.ad-slot,
.result-card,
.result-share,
.result-summary,
.quiz-intro-card,
.quiz-finish-actions {
  position: relative;
  z-index: 1;
}

.hero-copy,
.story-panel,
.formula-panel,
.quiz-main,
.progress-card,
.quiz-side-rail,
.quiz-intro-card,
.result-card,
.result-share,
.result-summary {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 36px;
}

.eyebrow,
.card-label {
  margin: 0 0 0.9rem;
  color: var(--hot-deep);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text,
.section-heading p,
.story-panel p,
.formula-grid p,
.quiz-subtext,
.result-copy,
.result-summary p,
.quiz-meta {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions,
.quiz-actions,
.result-actions,
.quiz-finish-actions,
.sticky-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button-primary {
  padding: 1rem 1.4rem;
  color: white;
  background: linear-gradient(135deg, var(--hot), #ff8b2d);
  box-shadow: 0 16px 32px rgba(255, 90, 54, 0.28);
  font-weight: 700;
}

.button-secondary {
  padding: 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-weight: 700;
}

.button-sponsored {
  padding: 1rem 1.4rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.button-small {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.hero-stats,
.quiz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hero-stats span,
.quiz-tags span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 143, 133, 0.12);
  color: var(--teal);
  font-weight: 700;
}

.hero-card {
  display: grid;
  gap: 20px;
}

.floating-card,
.ad-banner,
.mini-ad,
.ad-slot {
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid rgba(31, 27, 25, 0.08);
  box-shadow: var(--shadow);
}

.accent-card {
  background: linear-gradient(160deg, #1d1a18 0%, #2a231f 100%);
  color: white;
}

.ad-card,
.ad-banner,
.mini-ad,
.ad-slot {
  background: linear-gradient(180deg, rgba(255, 217, 102, 0.55), rgba(255, 255, 255, 0.95));
}

.ad-size {
  color: var(--muted);
}

.trend-strip,
.content-split,
.formula-panel {
  margin-top: 34px;
}

.ad-strip {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ad-strip-bottom {
  margin-top: 32px;
}

.ad-embed {
  width: 100%;
  display: grid;
  justify-items: center;
}

.ad-embed-mobile {
  display: none;
}

.category-ad-break {
  margin-top: 18px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 18px;
}

.category-block {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 20px;
}

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

.quiz-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  padding: 24px;
  border: 1px solid rgba(31, 27, 25, 0.08);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.quiz-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quiz-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

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

.story-panel,
.stacked-ads,
.formula-panel,
.quiz-main,
.progress-card,
.quiz-side-rail,
.quiz-intro-card,
.result-card,
.result-share,
.result-summary {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.check-list {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

.stacked-ads {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 217, 102, 0.25), rgba(255, 255, 255, 0.92));
}

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

.formula-grid article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 27, 25, 0.07);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 36px;
  padding: 20px 0 0;
  color: var(--muted);
}

.sticky-offer {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(31, 27, 25, 0.94);
  color: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.sticky-offer span {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sticky-offer p {
  margin: 0;
  flex: 1;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.quiz-main {
  overflow: hidden;
}

.quiz-meta {
  margin-top: 1rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 27, 25, 0.08);
  margin: 1rem 0 0.75rem;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #48d5c7);
  transition: width 220ms ease;
}

.quiz-question {
  margin-top: 2rem;
}

.question-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 90, 54, 0.12);
  color: var(--hot-deep);
  font-weight: 700;
}

.question-text {
  margin-top: 1rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.option-grid {
  display: grid;
  gap: 14px;
  margin-top: 1.4rem;
}

.option-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 27, 25, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.option-button.is-selected {
  background: linear-gradient(135deg, rgba(12, 143, 133, 0.18), rgba(201, 244, 237, 0.92));
  border-color: rgba(12, 143, 133, 0.26);
}

.option-caption {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.micro-reaction {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--hot-deep);
  font-weight: 700;
}

.quiz-actions {
  margin-top: 1.4rem;
}

.quiz-side-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  height: fit-content;
}

.ad-slot p,
.result-summary p,
.result-share p {
  margin: 0.4rem 0 0;
}

.results-panel {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.result-pill {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 90, 54, 0.12);
  color: var(--hot-deep);
  font-weight: 700;
}

.result-title {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.result-copy {
  margin-top: 1rem;
}

.share-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(31, 27, 25, 0.05);
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.quiz-hidden {
  display: none;
}

.quiz-empty-state {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 27, 25, 0.08);
  box-shadow: var(--shadow);
}

.fade-in {
  animation: rise-in 500ms ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .content-split,
  .quiz-layout,
  .quiz-grid,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .quiz-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 16px 14px 140px;
  }

  .hero-copy,
  .story-panel,
  .formula-panel,
  .quiz-main,
  .progress-card,
  .quiz-side-rail,
  .quiz-intro-card,
  .result-card,
  .result-share,
  .result-summary,
  .ad-banner,
  .quiz-card {
    padding: 22px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .question-text {
    font-size: 1.85rem;
  }

  .ad-embed-mobile {
    display: grid;
  }

  .sticky-offer {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}
