.sta-quiz {
  --sta-bg: #fffaf4;
  --sta-card: #ffffff;
  --sta-text: #2c2018;
  --sta-muted: #745f51;
  --sta-accent: #b87345;
  --sta-accent-dark: #7f4a2b;
  --sta-border: rgba(127, 74, 43, .18);
  --sta-shadow: 0 18px 55px rgba(73, 43, 24, .12);
  max-width: 860px;
  margin: 32px auto;
  padding: clamp(22px, 4vw, 42px);
  color: var(--sta-text);
  background:
    radial-gradient(circle at top left, rgba(184, 115, 69, .16), transparent 34%),
    linear-gradient(135deg, var(--sta-bg), #fff);
  border: 1px solid var(--sta-border);
  border-radius: 28px;
  box-shadow: var(--sta-shadow);
  font-family: inherit;
}

.sta-subtitle {
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--sta-muted);
}

.sta-form {
  display: grid;
  gap: 18px;
}

.sta-q {
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--sta-border);
  border-radius: 20px;
}

.sta-q legend {
  padding: 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.sta-q label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 13px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(127, 74, 43, .14);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sta-q label:hover,
.sta-q label:focus-within {
  transform: translateY(-1px);
  border-color: rgba(184, 115, 69, .48);
  box-shadow: 0 10px 24px rgba(73, 43, 24, .08);
}

.sta-q input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sta-accent);
  flex: 0 0 auto;
}

.sta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.sta-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--sta-accent), var(--sta-accent-dark));
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(127, 74, 43, .22);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.sta-btn:hover,
.sta-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(127, 74, 43, .28);
}

.sta-secondary {
  color: var(--sta-accent-dark);
  background: #fff;
  border: 1px solid var(--sta-border);
  box-shadow: none;
}

.sta-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--sta-accent-dark);
  font-weight: 700;
}

.sta-result {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(184, 115, 69, .28);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(73, 43, 24, .10);
}

.sta-result h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.sta-result p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.sta-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--sta-accent-dark);
  background: rgba(184, 115, 69, .13);
  border: 1px solid rgba(184, 115, 69, .22);
  border-radius: 999px;
  font-weight: 800;
}

.sta-meter {
  overflow: hidden;
  height: 12px;
  margin-top: 18px;
  background: rgba(184, 115, 69, .16);
  border-radius: 999px;
}

.sta-meter > div {
  height: 100%;
  background: linear-gradient(90deg, var(--sta-accent), var(--sta-accent-dark));
  border-radius: inherit;
}

.sta-score {
  margin: 10px 0 0 !important;
  opacity: .85;
}

@media (max-width: 620px) {
  .sta-quiz {
    margin: 18px auto;
    border-radius: 22px;
  }

  .sta-q {
    padding: 16px;
  }

  .sta-actions,
  .sta-btn {
    width: 100%;
  }

  .sta-btn {
    justify-content: center;
  }
}
