/* Quizzly — personality quizzes */
:root {
  --grape: #6c2bd9;
  --grape-deep: #3b1080;
  --pink: #ff5fa2;
  --lemon: #ffd23f;
  --ink: #241445;
  --muted: #7d6fa0;
  --paper: #ffffff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 95, 162, .35) 0, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 210, 63, .30) 0, transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(56, 249, 215, .22) 0, transparent 40%),
    linear-gradient(160deg, #7b35f0 0%, #5a1fc4 50%, #3b1080 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.45;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 16px 0; }
.header-row { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; font-size: 28px; letter-spacing: -.02em; }
.logo svg { display: block; transform: rotate(-8deg); }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
.nav-cta { margin-left: auto; background: var(--lemon); color: var(--ink); text-decoration: none; font-weight: 900; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 0 #c99a00; }

/* Ads */
.ad-wrap { text-align: center; }
.ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .7); margin-bottom: 4px; font-family: system-ui, sans-serif; }
.ad-slot { display: inline-block; }
.ad-leaderboard { padding: 4px 0 14px; min-height: 112px; }
.ad-mobile { display: none; padding: 4px 0 12px; min-height: 120px; }
.quiz-card .ad-label { color: #a093c2; }
.ad-under { margin: 26px 0 8px; min-height: 270px; }
.ad-result { margin: 28px 0 8px; min-height: 300px; }

/* Home */
.home-hero { text-align: center; color: #fff; padding: 30px 0 40px; }
.home-hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.03em; }
.home-hero h1 em { font-style: normal; color: var(--lemon); text-decoration: underline wavy var(--pink); text-underline-offset: 8px; }
.home-hero p { font-size: 19px; opacity: .9; margin: 0 0 24px; }
.big-btn {
  display: inline-block; background: var(--pink); color: #fff; text-decoration: none; font-weight: 900; font-size: 19px;
  padding: 14px 30px; border-radius: 999px; box-shadow: 0 5px 0 #c23477; transition: transform .1s ease, box-shadow .1s ease;
}
.big-btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #c23477; }
.ghost-btn { display: inline-block; padding: 14px 24px; border-radius: 999px; border: 3px solid #e6defa; font-weight: 900; text-decoration: none; color: var(--grape); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; color: #fff; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 26px; }
.section-title a { color: var(--lemon); font-weight: 800; text-decoration: none; }

.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 50px; }
.teaser {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .12); transition: transform .15s ease;
}
.teaser:hover { transform: translateY(-4px) rotate(-.5deg); }
.teaser-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.teaser-art { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.teaser-big .teaser-art { flex: 1; min-height: 260px; font-size: 140px; }
.teaser-art span[aria-hidden] { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .18)); }
.tag { position: absolute; top: 14px; left: 14px; font-size: 13px; font-weight: 900; padding: 5px 12px; border-radius: 999px; letter-spacing: .08em; }
.tag-new { background: var(--lemon); color: var(--ink); }
.tag-hot { background: var(--ink); color: #fff; }
.teaser-body { padding: 14px 18px 18px; }
.teaser-body h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.teaser-big .teaser-body h3 { font-size: 30px; }
.teaser-body p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }

/* Quiz */
.quiz-main { max-width: 720px; padding-bottom: 50px; }
.quiz-card { background: var(--paper); border-radius: 28px; padding: 28px 32px 24px; box-shadow: 0 14px 0 rgba(0, 0, 0, .15); }
.quiz-name { margin: 0 0 14px; font-weight: 900; color: var(--grape); text-align: center; }
.progress-text { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.progress-track { height: 14px; background: #efeafb; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--lemon)); }
.q-emoji { font-size: 64px; text-align: center; margin: 22px 0 4px; }
.question { text-align: center; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 0 0 22px; letter-spacing: -.01em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 16px 18px; border-radius: 18px; border: 3px solid #e6defa; background: #faf8ff;
  font-weight: 800; font-size: 17px; transition: border-color .1s ease, transform .1s ease, background .1s ease;
}
.answer:hover { border-color: var(--grape); background: #f1eafe; transform: scale(1.02); }
.answer-emoji { font-size: 30px; flex-shrink: 0; }
.answer-letter { margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--grape); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 8px; }
.back { color: var(--grape); text-decoration: none; }

/* Result */
.result-card { text-align: center; }
.result-kicker { margin: 22px 0 0; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.result-art { margin: 8px auto 0; width: 240px; height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0, #ffe28a 60%, transparent 61%); }
.result-title { font-size: clamp(40px, 7vw, 58px); margin: 6px 0 0; color: var(--grape); letter-spacing: -.03em; }
.result-sub { margin: 0 0 14px; font-weight: 900; color: var(--pink); font-size: 20px; }
.result-desc { font-size: 17px; text-align: left; margin: 0 0 18px; }
.traits { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.traits li { background: #f4effe; border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.share-title { font-weight: 900; margin: 0 0 10px; }
.share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-btn { text-decoration: none; color: #fff; font-weight: 800; padding: 12px 8px; border-radius: 14px; font-size: 14px; }
.s-a { background: #3b5bdb; }
.s-b { background: #12b886; }
.s-c { background: linear-gradient(45deg, #f59f00, #e64980, #7048e8); }
.s-d { background: var(--ink); }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Footer */
.site-footer { color: rgba(255, 255, 255, .75); text-align: center; padding: 30px 0 40px; font-size: 14px; }
.logo-small { font-size: 20px; }
.logo-small svg { width: 28px; height: 28px; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; margin: 8px 0; }
.site-footer nav a { color: #fff; font-weight: 700; text-decoration: none; }
.copy { opacity: .7; }

/* Responsive */
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ad-leaderboard { display: none; }
  .ad-mobile { display: block; }
  .nav { display: none; }
  .quiz-card { padding: 22px 18px 18px; border-radius: 22px; }
  .answers { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser-big { grid-column: auto; grid-row: auto; }
  .teaser-big .teaser-art { min-height: 200px; font-size: 100px; }
  .teaser-big .teaser-body h3 { font-size: 22px; }
  .ad-result { overflow: hidden; }
}
