.quiz-root{
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:0 20px 0;
  box-sizing:border-box;
}

.quiz-progress-sticky{
  position:sticky;
  top:0;
  z-index:50;
  flex:0 0 auto;
  padding:12px 0 10px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  backdrop-filter:blur(8px);
}

.quiz-progress-shell{
  background:linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  border:1px solid rgba(215,199,166,.22);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:var(--shadow);
}

.quiz-progress-text{
  font-size:13px;
  color:var(--white-soft);
  margin-bottom:6px;
}

.quiz-progressbar{
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(215,199,166,.14);
  border:1px solid rgba(215,199,166,.22);
}

.quiz-progressbar span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(135deg, rgba(215,199,166,.95), rgba(215,199,166,.70));
  transition:width .25s ease;
}

.quiz-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:visible;
  overflow-x:hidden;
  padding:0 0 40px;
  scroll-behavior:smooth;
}

.quiz-scroll::-webkit-scrollbar{
  width:10px;
}

.quiz-scroll::-webkit-scrollbar-thumb{
  background:rgba(215,199,166,.35);
  border-radius:999px;
}

.quiz-scroll::-webkit-scrollbar-track{
  background:transparent;
}

.quiz-form-box{
  padding:22px 28px 24px;
}

#dominiaQuiz{
  margin-top:0;
}

.quiz-q{
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.08);
}

.quiz-q:first-child{
  border-top:0;
}

.quiz-q h3{
  margin:0 0 8px;
  font-size:18px;
  color:var(--text);
  line-height:1.35;
}

.quiz-help{
  font-size:13px;
  color:var(--faint);
  margin-bottom:12px;
}

.quiz-options{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}

.quiz-opt{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  text-align:center;
  cursor:pointer;
  background:rgba(255,255,255,.03);
  transition:
    transform .15s ease,
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
  color:var(--muted);
}

.quiz-opt:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
  color:var(--text);
  border-color:rgba(255,255,255,.18);
}

.quiz-opt.active{
  border-color:rgba(215,199,166,.55);
  background:linear-gradient(135deg, rgba(215,199,166,.95), rgba(215,199,166,.70));
  color:#141414;
  box-shadow:0 10px 24px rgba(215,199,166,.18);
  transform:translateY(-1px);
}

.quiz-opt.active strong{
  color:#141414;
  font-size:17px;
}

.quiz-opt input{
  display:none;
}

.quiz-legend{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:8px;
  font-size:12px;
  color:var(--faint);
  text-align:center;
}

.quiz-meter{
  height:14px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
  margin:10px 0 18px;
}

.quiz-meter span{
  display:block;
  height:100%;
  background:linear-gradient(135deg, rgba(215,199,166,.95), rgba(215,199,166,.70));
}

.quiz-dimgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.quiz-hidden{
  display:none;
}

.quiz-soft{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:rgba(255,255,255,.03);
}

.quiz-result-box{
  padding:6px 20px 16px;
  margin-top:0;
}

.quiz-result-box > *:first-child{
  margin-top:0 !important;
}

.quiz-result-box h2{
  margin-top:0;
}

.quiz-result-box .divider{
  margin-top:14px;
}

.form-row{
  margin-top:0;
}

@media (max-width:900px){
  .quiz-options,
  .quiz-legend,
  .quiz-dimgrid{
    grid-template-columns:1fr;
  }

  .quiz-form-box,
  .quiz-result-box{
    padding:18px 16px 20px;
  }

  .quiz-root{
    padding:0 12px 0;
  }
}