:root {
  --ink: #231b3a;
  --muted: #766f87;
  --pink: #f44883;
  --pink-dark: #d92f6c;
  --pink-soft: #fff0f6;
  --lilac: #eee9ff;
  --blue-soft: #eaf5ff;
  --yellow: #ffc848;
  --green: #25b98a;
  --red: #e96572;
  --line: #ece6f1;
  --shadow: 0 22px 60px rgba(62, 36, 89, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fffaff;
  font-family: 'Cairo', Tahoma, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { max-width: 1220px; margin: 0 auto; padding: 24px 24px 34px; }
.hero-card {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #f4d4e2;
  border-radius: 34px;
  padding: 48px 62px;
  background: linear-gradient(122deg, #ffeef6 0%, #fff9fc 46%, #eee9ff 100%);
  box-shadow: var(--shadow);
}
.hero-card::before, .hero-card::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-card::before { width: 240px; height: 240px; background: rgba(255, 255, 255, .55); top: -110px; right: 35%; }
.hero-card::after { width: 380px; height: 380px; border: 1px solid rgba(244, 72, 131, .12); bottom: -240px; left: -100px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .topic-line, .result-badge { font-weight: 800; letter-spacing: .3px; }
.eyebrow { color: var(--pink-dark); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 200, 72, .17); }
.topic-line { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #837a9b; font-size: 16px; }
.topic-line strong { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: var(--pink); font-size: 20px; box-shadow: 0 8px 18px rgba(244, 72, 131, .26); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 17px 0 14px; font-family: 'Changa', 'Cairo', sans-serif; font-size: clamp(48px, 6.6vw, 78px); line-height: .98; letter-spacing: -2px; }
h1 span { color: var(--pink); }
.hero-description { max-width: 555px; color: #635b77; font-size: 17px; line-height: 1.9; margin-bottom: 23px; }
.hero-stats { display: flex; align-items: stretch; gap: 0; width: fit-content; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.9); }
.hero-stats div { display: flex; align-items: baseline; gap: 7px; padding: 12px 18px; border-left: 1px solid #f1dce8; }
.hero-stats div:last-child { border-left: 0; }
.hero-stats b { color: var(--pink-dark); font-size: 25px; }
.hero-stats span { color: #857a93; font-size: 12px; font-weight: 700; }
.hero-visual { position: relative; min-height: 300px; display: grid; place-items: center; z-index: 1; }
.visual-halo { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: linear-gradient(145deg, rgba(244, 72, 131, .18), rgba(160, 132, 255, .17)); }
.visual-card { width: min(360px, 100%); position: relative; padding: 11px; border-radius: 24px; background: #fff; box-shadow: 0 25px 45px rgba(75, 38, 105, .19); transform: rotate(3deg); }
.quiz-illustration { height: 218px; padding: 18px 16px; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #f4efff, #fff0f6); }
.quiz-illustration-top { display: flex; align-items: center; gap: 6px; margin-bottom: 23px; }
.quiz-illustration-top > span { width: 8px; height: 8px; border-radius: 50%; background: #c8b8db; }
.quiz-illustration-top > span:first-child { background: var(--pink); }
.quiz-illustration-top b { margin-right: auto; color: var(--ink); font-size: 13px; }
.quiz-line { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.fake-checkbox { display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid #cfc3dc; border-radius: 7px; color: white; background: white; font-size: 12px; font-style: normal; }
.fake-checkbox.checked { border-color: var(--green); background: var(--green); }
.quiz-line span, .quiz-line em { display: block; height: 10px; border-radius: 10px; background: #d9d0e7; }
.quiz-line span { width: 45%; }
.quiz-line em { width: 24%; margin-right: auto; background: #f4b2c9; }
.quiz-score { display: flex; align-items: baseline; gap: 8px; margin-top: 17px; color: var(--pink-dark); }
.quiz-score strong { font-size: 29px; }
.quiz-score small { color: #8b7f98; font-size: 11px; font-weight: 700; }
.visual-caption { display: flex; align-items: center; gap: 9px; padding: 13px 8px 3px; color: var(--ink); font-size: 13px; font-weight: 800; }
.check-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: #fff; background: var(--green); }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; color: var(--ink); background: #fff; box-shadow: 0 12px 22px rgba(62, 36, 89, .16); font-size: 12px; font-weight: 800; }
.note-one { top: 30px; right: 0; transform: rotate(-5deg); color: var(--pink-dark); }
.note-one span { color: var(--yellow); font-size: 18px; }
.note-two { bottom: 36px; left: 10px; transform: rotate(-4deg); }
.note-two span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: white; background: var(--green); }
.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 64px 8px 31px; }
.section-kicker { margin-bottom: 8px; color: var(--pink-dark); font-size: 13px; font-weight: 800; letter-spacing: .6px; }
.intro-row h2, .results-section h2 { margin-bottom: 7px; font-family: 'Changa', 'Cairo', sans-serif; font-size: 32px; }
.section-lede { max-width: 650px; margin-bottom: 0; color: var(--muted); line-height: 1.9; }
.section-lede strong { color: var(--pink-dark); }
.progress-card { flex: 0 0 270px; padding: 16px 18px; border: 1px solid #f0e6ef; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(62,36,89,.06); }
.progress-top { display: flex; justify-content: space-between; margin-bottom: 10px; color: #71687d; font-size: 12px; font-weight: 700; }
.progress-top strong { color: var(--pink-dark); }
.progress-track { height: 9px; overflow: hidden; border-radius: 20px; background: #f3edf4; }
.progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff9bbd); transition: width .3s ease; }
.progress-card small { display: block; margin-top: 9px; color: #a099ab; font-size: 11px; }
.quiz-alert { margin: 0 8px 22px; padding: 13px 17px; border: 1px solid #f3c4d5; border-radius: 14px; color: #a62c57; background: #fff3f7; font-size: 13px; font-weight: 700; }
.question-card { position: relative; margin: 0 0 16px; padding: 22px 24px 23px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 9px 25px rgba(62,36,89,.045); transition: border-color .25s, box-shadow .25s, transform .25s; }
.question-card:hover { border-color: #e8c9d8; box-shadow: 0 14px 31px rgba(62,36,89,.08); transform: translateY(-1px); }
.question-card.is-correct { border-color: #a7e5d2; background: linear-gradient(110deg, #fff, #f8fffc); }
.question-card.is-wrong { border-color: #f3bec9; background: linear-gradient(110deg, #fff, #fff9fa); }
.question-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.question-number { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 12px; color: white; background: var(--pink); font-size: 14px; font-weight: 800; }
.question-type { padding: 5px 10px; border-radius: 8px; color: #766a8a; background: #f5f1fb; font-size: 11px; font-weight: 800; }
.question-text { margin-bottom: 17px; color: #322944; font-size: 16px; line-height: 1.85; font-weight: 700; }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-label { position: relative; display: block; }
.option-label input { position: absolute; opacity: 0; pointer-events: none; }
.option-content { display: flex; align-items: center; min-height: 48px; gap: 10px; padding: 10px 13px; border: 1px solid #eee9f0; border-radius: 13px; color: #665d72; background: #fdfcff; font-size: 13px; line-height: 1.55; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.option-content::before { content: ''; width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid #d9d0df; border-radius: 50%; background: white; }
.option-label input:checked + .option-content { border-color: var(--pink); color: var(--pink-dark); background: #fff2f7; transform: translateY(-1px); box-shadow: 0 6px 13px rgba(244,72,131,.09); }
.option-label input:checked + .option-content::before { border: 5px solid var(--pink); }
.option-label:hover .option-content { border-color: #e4adbf; }
.option-label input:disabled + .option-content { cursor: not-allowed; opacity: .78; }
.option-label input:disabled:checked + .option-content { cursor: not-allowed; opacity: 1; }
.feedback { display: none; margin-top: 15px; padding: 10px 13px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.question-card.is-correct .feedback { display: block; color: #167657; background: #eafff7; }
.question-card.is-wrong .feedback { display: block; color: #a33d4b; background: #fff0f3; }
.submit-panel { display: flex; align-items: center; gap: 16px; margin: 35px 0 50px; padding: 22px 24px; border: 1px solid #f3d5e1; border-radius: 22px; background: linear-gradient(100deg, #fff1f6, #fff9fb); }
.submit-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; color: white; background: var(--pink); font-size: 25px; box-shadow: 0 9px 18px rgba(244,72,131,.23); }
.submit-panel h3 { margin-bottom: 3px; font-size: 16px; }
.submit-panel p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.submit-button, .primary-outline-button, .secondary-button { border: 0; border-radius: 13px; padding: 13px 20px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.submit-button { margin-right: auto; color: white; background: var(--pink); box-shadow: 0 9px 17px rgba(244,72,131,.22); white-space: nowrap; }
.submit-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; transform: none; }
.submit-button:hover, .primary-outline-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.submit-button span, .primary-outline-button span, .secondary-button span { margin-right: 8px; font-size: 18px; }
.results-section { scroll-margin-top: 20px; margin-bottom: 48px; padding: 28px; border: 1px solid #f0d4e1; border-radius: 26px; background: linear-gradient(125deg, #fff2f7, #fff 47%, #f2efff); box-shadow: var(--shadow); }
.results-topline { display: flex; align-items: center; gap: 12px; color: #796f85; font-size: 13px; font-weight: 700; }
.result-badge { padding: 6px 11px; border-radius: 8px; color: #167657; background: #ddfaef; font-size: 11px; }
.result-main { display: flex; align-items: center; gap: 30px; margin: 26px 0 20px; }
.score-orb { display: grid; place-items: center; width: 180px; height: 180px; flex: 0 0 180px; border-radius: 50%; text-align: center; background: conic-gradient(var(--pink) 0deg, var(--pink) var(--score, 0deg), #f2e9f0 var(--score, 0deg), #f2e9f0 360deg); box-shadow: 0 12px 25px rgba(244,72,131,.15); }
.score-orb::before { content: ''; position: absolute; width: 144px; height: 144px; border-radius: 50%; background: white; }
.score-orb > div, .score-orb small { position: relative; z-index: 1; }
.score-orb strong { color: var(--pink-dark); font-size: 43px; }
.score-orb span { color: #8c8293; font-size: 17px; font-weight: 700; }
.score-orb small { display: block; margin-top: -3px; color: #8f8592; font-size: 11px; font-weight: 700; }
.result-copy h2 { margin-bottom: 7px; }
.result-copy > p:not(.section-kicker) { max-width: 620px; margin-bottom: 17px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.result-metrics { display: flex; flex-wrap: wrap; gap: 9px; }
.result-metrics span { padding: 8px 11px; border-radius: 9px; color: #766d80; background: rgba(255,255,255,.78); font-size: 11px; font-weight: 700; }
.result-metrics b { color: var(--pink-dark); font-size: 15px; }
.results-actions { display: flex; justify-content: end; gap: 10px; border-top: 1px solid #f1dce6; padding-top: 19px; }
.secondary-button { color: var(--pink-dark); background: #fff; border: 1px solid #f0cbd9; }
.primary-outline-button { color: white; background: var(--pink); box-shadow: 0 8px 16px rgba(244,72,131,.18); }
footer { padding: 20px 8px 0; text-align: center; color: #aaa0b0; font-size: 12px; }
.footer-star { color: var(--yellow); font-size: 20px; vertical-align: -2px; margin: 0 7px; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .page-shell { padding: 14px 14px 25px; }
  .hero-card { min-height: auto; grid-template-columns: 1fr; padding: 34px 27px 28px; border-radius: 25px; }
  .hero-description { font-size: 15px; }
  .hero-visual { min-height: 265px; margin-top: 14px; }
  .visual-card { width: min(340px, 94%); }
  .note-one { right: 3%; top: 8px; }
  .note-two { left: 1%; bottom: 15px; }
  .intro-row { align-items: stretch; flex-direction: column; padding: 40px 4px 25px; gap: 20px; }
  .progress-card { flex-basis: auto; }
  .submit-panel { align-items: flex-start; flex-wrap: wrap; }
  .submit-button { margin-right: 0; margin-right: auto; }
  .result-main { align-items: flex-start; flex-direction: column; }
  .score-orb { align-self: center; }
}
@media (max-width: 540px) {
  h1 { font-size: 52px; }
  .hero-card { padding-inline: 20px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; flex-direction: column; gap: 0; padding: 9px 5px; text-align: center; }
  .hero-stats b { font-size: 20px; }
  .hero-stats span { font-size: 10px; }
  .question-card { padding: 18px 16px; border-radius: 18px; }
  .question-text { font-size: 14px; }
  .options-grid { grid-template-columns: 1fr; }
  .submit-panel { padding: 17px; }
  .submit-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 20px; }
  .submit-panel h3 { font-size: 14px; }
  .submit-panel p { line-height: 1.7; }
  .submit-button { width: 100%; margin-top: 4px; }
  .results-section { padding: 20px 16px; border-radius: 20px; }
  .results-actions { flex-direction: column-reverse; }
  .results-actions button { width: 100%; }
}
