.fme-quiz-root{
  --bg:#F5F6F3; --card:#FFFFFF; --line:#E1E7E2; --line-soft:#EDF1EE;
  --ink:#132D22; --ink-soft:#4B5C52; --ink-faint:#8A968E;
  --brand:#0F4C33; --brand-2:#1FAA59; --brand-tint:#E7F5EC; --brand-tint-2:#DCF0E4;
  --shadow-sm:0 2px 8px rgba(15,76,51,.06);
  --shadow-md:0 14px 34px rgba(15,76,51,.10);
  --radius:16px;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  max-width:680px;
  margin:0 auto;
  padding:24px 18px 30px;
  border-radius:20px;
  box-sizing:border-box;
}
.fme-quiz-root *{ box-sizing:border-box; }
.fme-quiz-root h1, .fme-quiz-root h2, .fme-quiz-root h3{
  font-family:'Plus Jakarta Sans',sans-serif; margin:0;
}

/* ---------- hero ---------- */
.fq-hero{ text-align:center; padding:6px 10px 26px; }
.fq-badge{
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--brand); background:var(--brand-tint); border:1px solid var(--brand-tint-2);
  padding:6px 14px; border-radius:999px; margin-bottom:16px;
}
.fq-hero h1{ font-size:25px; font-weight:800; letter-spacing:-0.01em; margin-bottom:8px; }
.fq-hero p{ font-size:14.5px; color:var(--ink-soft); line-height:1.55; max-width:480px; margin:0 auto; }

/* ---------- shared card ---------- */
.fq-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); padding:26px 24px; margin-bottom:16px;
  animation:fqFadeIn .35s ease;
}
@keyframes fqFadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

/* ---------- quiz list ---------- */
.fq-list{ display:flex; flex-direction:column; gap:12px; }
.fq-item{
  display:flex; align-items:center; gap:16px;
  border:1px solid var(--line); border-radius:14px; padding:16px 18px;
  cursor:pointer; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  background:#fff;
}
.fq-item:hover{ border-color:var(--brand-2); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.fq-num{
  font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:13px; color:var(--brand);
  background:var(--brand-tint); width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.fq-item-body{ flex:1; min-width:0; }
.fq-item-body h3{ font-size:15px; margin-bottom:3px; }
.fq-item-body p{ font-size:12.5px; color:var(--ink-faint); margin:0; line-height:1.4; }
.fq-tag{
  font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--brand); background:var(--brand-tint);
  padding:4px 10px; border-radius:999px; flex-shrink:0; white-space:nowrap;
}
.fq-tag.done{ background:var(--ink-soft); color:#fff; }
.fq-chev{ color:var(--ink-faint); flex-shrink:0; }

/* ---------- buttons ---------- */
.fq-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:14.5px;
  padding:13px 22px; border-radius:11px; border:1.5px solid transparent; cursor:pointer;
  background:var(--brand); color:#fff; width:100%; transition:background .15s ease, transform .1s ease;
}
.fq-btn:hover{ background:var(--brand-2); }
.fq-btn:active{ transform:scale(.98); }
.fq-btn:disabled{ opacity:.4; cursor:not-allowed; }
.fq-btn.ghost{ background:transparent; border-color:var(--line); color:var(--ink); }
.fq-btn.ghost:hover{ border-color:var(--brand-2); color:var(--brand); background:var(--brand-tint); }
.fq-btn.sm{ padding:9px 16px; font-size:13px; width:auto; }
.fq-row{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- lead form ---------- */
.fq-steps{ display:flex; gap:6px; justify-content:center; margin-bottom:18px; }
.fq-steps span{ width:22px; height:3px; border-radius:2px; background:var(--line); }
.fq-steps span.active{ background:var(--brand-2); }
.fq-field{ margin-bottom:16px; }
.fq-field label{ display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:7px; }
.fq-field input{
  width:100%; padding:13px 15px; border:1.5px solid var(--line); border-radius:10px;
  font-size:14.5px; font-family:'Inter',sans-serif; outline:none; transition:border-color .15s ease;
  background:#FBFCFB;
}
.fq-field input:focus{ border-color:var(--brand-2); background:#fff; }
.fq-err{ font-size:11.5px; color:#B3462F; margin-top:6px; display:none; }
.fq-consent{ display:flex; gap:9px; align-items:flex-start; font-size:12px; color:var(--ink-faint); margin:16px 0 20px; line-height:1.55; }
.fq-consent input{ margin-top:3px; accent-color:var(--brand-2); }

/* ---------- quiz screen ---------- */
.fq-meta{ display:flex; justify-content:space-between; align-items:center; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-faint); margin-bottom:12px; }
.fq-progress{ height:5px; background:var(--line-soft); border-radius:3px; overflow:hidden; margin-bottom:22px; }
.fq-progress-fill{ height:100%; background:linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius:3px; transition:width .35s ease; }
.fq-qtext{ font-size:17.5px; line-height:1.5; font-weight:700; margin:0 0 20px; }
.fq-option{
  display:flex; gap:13px; align-items:flex-start; width:100%; text-align:left;
  padding:14px 16px; margin-bottom:10px; border:1.5px solid var(--line); border-radius:12px;
  background:#fff; cursor:pointer; font-size:14.5px; color:var(--ink);
  transition:border-color .15s ease, background .15s ease, transform .1s ease;
}
.fq-option:hover:not(.locked){ border-color:var(--brand-2); background:var(--brand-tint); transform:translateX(2px); }
.fq-option .fq-lett{
  font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ink-faint);
  border:1.5px solid var(--line); border-radius:7px; width:24px; height:24px; flex:0 0 24px;
  display:flex; align-items:center; justify-content:center; transition:all .15s ease;
}
.fq-option.correct{ border-color:var(--brand-2); background:var(--brand-tint); }
.fq-option.correct .fq-lett{ background:var(--brand-2); color:#fff; border-color:var(--brand-2); }
.fq-option.wrong{ border-color:#DDD8D3; background:#FAF8F6; color:var(--ink-faint); }
.fq-option.wrong .fq-lett{ text-decoration:line-through; }
.fq-explain{
  margin-top:16px; padding:15px 17px; border-left:3px solid var(--brand-2);
  background:var(--brand-tint); border-radius:0 10px 10px 0; font-size:13.5px; color:var(--brand);
  line-height:1.6; animation:fqSlideDown .25s ease;
}
.fq-explain b{ color:var(--ink); }
@keyframes fqSlideDown{ from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:translateY(0);} }

/* ---------- results ---------- */
.fq-resultwrap{ text-align:center; padding:6px 0 10px; }
.fq-gauge{ position:relative; width:150px; height:150px; margin:0 auto 6px; }
.fq-gauge svg{ transform:rotate(-90deg); }
.fq-gauge-label{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.fq-gauge-num{ font-family:'Plus Jakarta Sans',sans-serif; font-size:30px; font-weight:800; color:var(--brand); line-height:1; }
.fq-gauge-sub{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink-faint); margin-top:3px; }
.fq-tier{ font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ink-soft); margin-top:10px; }
.fq-sharebox{
  display:flex; gap:10px; align-items:center; background:var(--brand-tint); border:1px solid var(--brand-tint-2);
  border-radius:12px; padding:13px 15px; margin:20px 0 6px;
}
.fq-sharebox input{ flex:1; border:none; background:transparent; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--brand); outline:none; }
.fq-copybtn{ font-family:'IBM Plex Mono',monospace; font-size:12px; background:var(--brand); color:#fff; border:none; border-radius:8px; padding:9px 14px; cursor:pointer; flex-shrink:0; }
.fq-copybtn:hover{ background:var(--brand-2); }
.fq-copystatus{ font-size:11.5px; color:var(--ink-faint); margin-top:6px; min-height:16px; }
.fq-nextup{
  display:flex; justify-content:space-between; align-items:center;
  border:1.5px dashed var(--line); border-radius:12px; padding:15px 17px; margin-top:14px;
}
.fq-nextup .fq-nl{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); }
.fq-nextup .fq-nt{ font-size:14.5px; font-weight:700; margin:3px 0; }

/* ---------- footer note ---------- */
.fq-foot{ text-align:center; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ink-faint); margin-top:22px; line-height:1.7; }

/* ---------- confetti ---------- */
.fq-confetti-piece{
  position:fixed; top:-10px; width:8px; height:14px; opacity:.9; pointer-events:none; z-index:9999;
  animation:fqFall linear forwards;
}
@keyframes fqFall{
  to{ transform:translateY(105vh) rotate(360deg); opacity:0; }
}

/* ---------- responsive ---------- */
@media (max-width:520px){
  .fq-card{ padding:20px 16px; }
  .fq-hero h1{ font-size:21px; }
  .fq-qtext{ font-size:16px; }
  .fq-gauge{ width:130px; height:130px; }
}
