/* ═══ مقياسُ إدمان الدوبامين ═══════════════════════════════ */

.pagehead--scale { --accent: var(--spark); }

.quiz {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.quiz__bar { height: 4px; background: var(--surface-2); }
.quiz__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--spark));
  transition: width var(--t-base);
}

.quiz__stage { padding: clamp(1.5rem, 4vw, 2.6rem); }
.quiz__step {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .05em;
  margin-bottom: .9rem;
}
.quiz__question {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.quiz__options { display: grid; gap: .6rem; }
.quiz__option {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  text-align: start;
  transition: all var(--t-fast);
}
.quiz__option:hover { border-color: var(--brand); transform: translateX(-3px); }
.quiz__option.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.quiz__mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
}
.quiz__option.is-on .quiz__mark { border-color: var(--brand); }
.quiz__option.is-on .quiz__mark::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.quiz__nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.8rem; }

/* ── النتيجة ── */
.quiz__result { padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; justify-items: center; gap: 1rem; text-align: center; }

.gauge { position: relative; display: grid; place-items: center; }
.gauge svg { transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.gauge__value {
  fill: none;
  stroke: url(#g) var(--brand);
  stroke: var(--brand);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .3, 1), stroke .4s;
}
.gauge__label { position: absolute; display: grid; justify-items: center; }
.gauge__label b { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.gauge__label small { font-size: .76rem; color: var(--muted); }

.quiz__band { font-family: var(--font-display); font-size: var(--step-2); font-weight: 900; }
.quiz__note { color: var(--ink-2); line-height: 1.9; max-width: 54ch; }
.quiz__tips { display: grid; gap: .5rem; text-align: start; margin-top: .6rem; width: 100%; max-width: 520px; }
.quiz__tips li {
  display: flex;
  gap: .6rem;
  padding: .7rem .9rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  font-size: .9rem;
  line-height: 1.7;
}
.quiz__tips li::before { content: "◂"; color: var(--brand); }
.quiz__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }
.quiz__disclaimer {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 56ch;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: .6rem;
}

/* ── الأسئلة الشائعة ── */
.faq { max-width: 760px; margin: var(--gap-lg) auto 0; }
.faq__title { font-size: var(--step-2); margin-bottom: 1.2rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: .6rem;
  background: var(--surface);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform var(--t-base);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-2);
  line-height: 1.95;
  font-size: .94rem;
}
.faq__item b { color: var(--ink); }
