:root {
  --ink: #252039;
  --muted: #6d6780;
  --paper: #fffdf9;
  --lavender: #7656ff;
  --lavender-dark: #5d3fe3;
  --yellow: #ffd84d;
  --pink: #ff6fa9;
  --mint: #8ee4c3;
  --sky: #8ed8ff;
  --line: #ded7f3;
  --shadow: 0 14px 34px rgba(70, 46, 126, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 216, 77, .36), transparent 22rem),
    radial-gradient(circle at 90% 35%, rgba(142, 216, 255, .34), transparent 24rem),
    #f5f0ff;
  font-family: Inter, ui-rounded, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.page-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: 0 16px env(safe-area-inset-bottom); }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: env(safe-area-inset-top) 4px 0; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: white; background: var(--lavender); transform: rotate(-5deg); box-shadow: 3px 3px 0 var(--yellow); }
.header-pill { padding: 7px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: white; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
main { padding: 12px 0 30px; }
.screen { display: none; animation: enter .32s ease both; }
.screen.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-card, .question-card, .result-card { position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: 7px 8px 0 var(--ink); }
.hero-card { padding: 35px 24px 28px; text-align: center; }
.hero-card::after { content: ""; position: absolute; inset: auto -55px -70px auto; width: 170px; height: 170px; border: 28px solid rgba(118, 86, 255, .09); border-radius: 50%; }
.eyebrow, .question-kicker, .result-overline { margin: 0; color: var(--lavender-dark); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-emoji { display: grid; place-items: center; width: 88px; height: 88px; margin: 22px auto 14px; border: 2px solid var(--ink); border-radius: 24px; background: var(--yellow); font-size: 48px; transform: rotate(-3deg); box-shadow: 5px 5px 0 var(--ink); }
h1 { margin: 20px 0 13px; font-size: clamp(36px, 10vw, 58px); line-height: .97; letter-spacing: -.055em; }
h1 span { position: relative; color: var(--lavender); }
h1 span::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: -3px; height: 7px; border-radius: 99px; background: var(--yellow); z-index: -1; transform: rotate(-1deg); }
.hero-copy { max-width: 470px; margin: 0 auto 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sticker { position: absolute; font-size: 23px; font-weight: 900; }
.sticker-one { top: 27px; left: 22px; color: var(--pink); transform: rotate(-17deg); }
.sticker-two { top: 30px; right: 22px; color: var(--lavender); transform: rotate(12deg); }
.primary-button, .facebook-button, .secondary-button { width: 100%; min-height: 54px; border: 2px solid var(--ink); border-radius: 15px; cursor: pointer; font-weight: 900; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button { position: relative; z-index: 1; max-width: 390px; color: white; background: var(--lavender); box-shadow: 4px 4px 0 var(--ink); }
.primary-button span { margin-left: 6px; }
.primary-button:hover { background: var(--lavender-dark); }
.primary-button:active, .facebook-button:active, .secondary-button:active, .answer-button:active { transform: translate(3px, 3px); box-shadow: none; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.ad-slot { display: none; height: 82px; margin: 28px 12px; place-content: center; gap: 4px; color: #9c95aa; text-align: center; border: 1.5px dashed #cfc7dd; border-radius: 14px; background: rgba(255,255,255,.48); }
.ads-enabled .ad-slot { display: grid; }
.ad-slot span { font-size: 8px; letter-spacing: .18em; }
.ad-slot strong { font-size: 12px; font-weight: 600; }
.quiz-topline { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 800; }
.icon-button { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 12px; background: white; cursor: pointer; font-weight: 900; }
.progress-percent { color: var(--lavender); }
.progress-track { height: 9px; margin-bottom: 18px; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 99px; background: white; }
.progress-track span { display: block; width: 12.5%; height: 100%; background: var(--yellow); transition: width .25s ease; }
.question-card { padding: 30px 20px 25px; }
.question-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 17px; border: 2px solid var(--ink); border-radius: 17px; background: var(--sky); font-size: 31px; transform: rotate(-2deg); }
.question-card h2 { margin: 8px 0 23px; font-size: clamp(25px, 7vw, 35px); line-height: 1.12; letter-spacing: -.035em; }
.answers { display: grid; gap: 11px; }
.answer-button { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 10px 15px; border: 1.7px solid var(--ink); border-radius: 15px; color: var(--ink); background: white; box-shadow: 3px 3px 0 #d7cff2; cursor: pointer; text-align: left; font-size: 14px; font-weight: 750; line-height: 1.3; transition: transform .15s ease, background .15s ease; }
.answer-button:hover, .answer-button:focus-visible { background: #f0ebff; outline: 3px solid rgba(118,86,255,.2); outline-offset: 2px; }
.answer-letter { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--lavender-dark); background: #eee9ff; font-size: 12px; font-weight: 900; }
.result-card { padding: 29px 21px 25px; text-align: center; }
.result-avatar { display: grid; place-items: center; width: 114px; height: 114px; margin: 19px auto 14px; border: 2px solid var(--ink); border-radius: 33px; font-size: 63px; transform: rotate(3deg); box-shadow: 6px 6px 0 var(--ink); }
.result-card h2 { margin: 20px 0 7px; font-size: clamp(32px, 9vw, 48px); line-height: 1; letter-spacing: -.05em; }
.result-tagline { margin: 0 0 20px; color: var(--lavender-dark); font-size: 15px; font-weight: 900; }
.result-note { position: relative; margin: 0 0 18px; padding: 18px 17px 16px; border-radius: 16px; background: #f1edff; text-align: left; }
.result-note span { position: absolute; top: 3px; left: 9px; color: var(--lavender); font-family: Georgia, serif; font-size: 35px; }
.result-note p { margin: 0; padding-left: 13px; color: #534c66; font-size: 14px; line-height: 1.55; }
.trait-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 22px; }
.trait-list span { padding: 7px 10px; border: 1.4px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 11px; font-weight: 900; }
.facebook-button { display: flex; align-items: center; justify-content: center; gap: 10px; color: white; background: #1877f2; box-shadow: 4px 4px 0 var(--ink); }
.facebook-icon { display: grid; place-items: end center; width: 23px; height: 23px; border-radius: 50%; background: white; color: #1877f2; font-family: Arial, sans-serif; font-size: 21px; font-weight: 900; line-height: 21px; }
.secondary-button { min-height: 48px; margin-top: 12px; background: white; }
.next-quiz-link { display: inline-block; margin-top: 15px; color: var(--purple); font-size: 15px; font-weight: 900; text-decoration: none; }
.next-quiz-link:hover { text-decoration: underline; }
.share-status { min-height: 17px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.result-prompt { margin: 21px auto 4px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 700; }
.ad-slot-bottom { margin-bottom: 6px; }
footer { padding: 18px 10px 30px; color: #827b91; text-align: center; font-size: 10px; }

@media (min-width: 600px) {
  .page-shell { padding-inline: 26px; }
  .site-header { min-height: 78px; }
  .hero-card { padding: 48px 46px 38px; }
  .question-card, .result-card { padding: 38px 42px 34px; }
  .answers { grid-template-columns: 1fr 1fr; }
  .answer-button { min-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
