@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --pink: #e58bab;
  --lavender: #c5b3e4;
  --text: #332d39;
  --muted: #77717b;
  --green: #4f9b78;
  --red: #c96578;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(232,138,168,.30),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(201,185,232,.35),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #fff8f8,
      #f7f1fb 55%,
      #fffaf5
    );
}

button {
  font-family: inherit;
}

#app {
  width: min(680px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 20px 15px 30px;

  display: flex;
  align-items: center;
}

.screen {
  width: 100%;
  animation: fadeUp .4s ease;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* START SCREEN */

.hero {
  text-align: center;
  padding: 25px 8px;
}

.heart {
  font-size: 48px;
  margin-bottom: 14px;

  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  50% {
    transform: scale(1.08);
  }
}

.small-title {
  color: #a06a82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 18px;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  margin: 0;

  font-size:
    clamp(34px, 9vw, 56px);

  line-height: 1.05;
  letter-spacing: -.04em;
}

.subtitle {
  margin: 20px auto 30px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.65;
}


/* BUTTON */

.primary-btn {
  width: 100%;

  border: none;
  border-radius: 17px;

  padding: 16px 18px;

  color: white;

  font-size: 15px;
  font-weight: 700;

  background:
    linear-gradient(
      135deg,
      #e889a7,
      #c69add
    );

  box-shadow:
    0 12px 25px rgba(208,137,171,.28);

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 30px rgba(208,137,171,.36);
}

.primary-btn:active {
  transform: scale(.98);
}


/* QUIZ CARD */

.quiz-card,
.result-card {
  background: rgba(255,255,255,.90);

  border:
    1px solid rgba(255,255,255,.95);

  border-radius: 27px;

  padding: 23px;

  box-shadow:
    0 18px 50px rgba(89,66,91,.12);

  backdrop-filter: blur(12px);
}

.quiz-top {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;

  font-size: 13px;
  font-weight: 700;

  color: var(--muted);
}

.progress-track {
  height: 8px;

  background: #eee8ef;

  border-radius: 50px;

  overflow: hidden;

  margin-bottom: 25px;
}

.progress-bar {
  height: 100%;
  width: 0;

  background:
    linear-gradient(
      90deg,
      #e58ba8,
      #b99adf
    );

  border-radius: inherit;

  transition: width .35s ease;
}

#question {
  margin: 0 0 22px;

  font-size:
    clamp(24px, 6vw, 32px);

  line-height: 1.2;
}


/* ANSWERS */

#options {
  display: grid;
  gap: 11px;
}

.option {
  width: 100%;

  min-height: 55px;

  display: flex;
  align-items: center;

  gap: 12px;

  text-align: left;

  border:
    1.5px solid #eee7ee;

  border-radius: 16px;

  padding: 14px;

  background: white;

  color: var(--text);

  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;

  cursor: pointer;

  transition:
    .18s ease;
}

.option:hover {
  border-color: #d7b2c5;

  transform: translateY(-1px);

  box-shadow:
    0 7px 16px rgba(80,60,80,.07);
}

.option:disabled {
  cursor: default;
}

.letter {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: #f7edf3;

  color: #98657b;

  font-size: 12px;
  font-weight: 700;
}

.option.correct {
  border-color: var(--green);
  background: #edf8f2;
}

.option.correct .letter {
  background: #d7eee3;
  color: #39775b;
}

.option.wrong {
  border-color: var(--red);
  background: #fff0f3;
}

.option.wrong .letter {
  background: #f8dbe2;
  color: #a24f61;
}


/* FEEDBACK */

#feedback {
  margin-top: 15px;

  padding: 13px 15px;

  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;

  animation: fadeUp .25s ease;
}

.feedback-good {
  background: #edf8f2;
  color: #39775b;
}

.feedback-bad {
  background: #fff0f3;
  color: #a24f61;
}

#nextBtn {
  margin-top: 12px;
}


/* RESULT */

.result-card {
  text-align: center;

  padding: 28px 20px;
}

.result-emoji {
  font-size: 52px;
}

.complete-badge {
  display: inline-block;

  margin: 12px 0;

  padding: 7px 12px;

  border-radius: 50px;

  background: #f7e9f0;

  color: #95647c;

  font-size: 12px;
  font-weight: 700;
}

#resultTitle {
  margin: 5px 0;

  font-size:
    clamp(27px, 7vw, 40px);

  line-height: 1.15;
}

.final-score {
  margin: 15px 0 4px;

  font-family:
    "Playfair Display",
    serif;

  font-size: 64px;
  line-height: 1;

  color: #9b6682;
}

.percentage {
  margin-bottom: 20px;

  color: var(--muted);

  font-weight: 700;
}

#resultMessage {
  max-width: 480px;

  margin: 10px auto 25px;

  color: var(--muted);

  line-height: 1.6;
}

.footer {
  margin-top: 18px;

  color: #9a939d;

  font-size: 12px;
}


@media (max-width: 430px) {

  #app {
    padding:
      14px 12px 25px;
  }

  .quiz-card,
  .result-card {
    padding: 20px;

    border-radius: 24px;
  }

  .hero {
    padding:
      18px 5px;
  }

  .option {
    padding: 14px 12px;
  }
}