:root {
  --gold: #D4A64A;
  --cream: #F2EEE6;
  --ink: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--cream);
  font-family: "Archivo Black", "Arial Black", Arial, sans-serif;
  color: var(--ink);
}

#stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

#scene {
  position: relative;
  width: min(440px, 92vw);
}

.screen { display: none; }
.screen.active { display: block; }

.wrap {
  padding: 0 8px;
}

/* ---------- intro ---------- */
#screen-intro h1 {
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.15;
  margin: 0 0 16px;
  text-transform: none;
}
.sub {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.4;
  color: #4a4742;
  margin: 0 0 32px;
}

.btn-primary {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 3.6vw, 16px);
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #1a1206;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

/* ---------- question ---------- */
.wrap-question { padding-top: 8px; }

.q-count {
  font-family: Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 10px;
}

.q-track {
  height: 3px;
  background: rgba(26,26,26,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 40px;
}
.q-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.q-text {
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.25;
  margin: 0 0 48px;
  height: 6.25em;
}

.q-answers {
  display: flex;
  gap: 14px;
}
.btn-answer {
  flex: 1;
  font-family: Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 18px 0;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-answer-outline {
  background: transparent;
  color: var(--ink);
}
.btn-answer:hover { transform: translateY(-2px); }
.btn-answer:active { transform: translateY(1px); opacity: 0.85; }

/* ---------- result ---------- */
.wrap-result { text-align: left; }

.ring {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 28px;
}
.ring-track {
  fill: none;
  stroke: rgba(26,26,26,0.1);
  stroke-width: 10;
}
.ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: 578;
  transform: rotate(-90deg);
  transform-origin: 110px 110px;
  transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1);
}
.ring-score {
  font-family: "Archivo Black", "Arial Black", Arial, sans-serif;
  font-size: 34px;
  fill: var(--gold);
}

.result-headline {
  font-size: clamp(24px, 6.8vw, 32px);
  line-height: 1.2;
  margin: 0 0 10px;
  text-align: center;
}
.result-sub {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.4;
  color: #4a4742;
  text-align: center;
  margin: 0 0 28px;
}

.leak-intro {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--ink);
  text-align: center;
  margin: 0 0 16px;
}

.leak-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.leak-tag {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 16px;
}
.leak-tag .leak-name {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 4px;
}
.leak-tag .leak-desc {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.cta-lead {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 3.6vw, 16px);
  line-height: 1.4;
  color: #4a4742;
  text-align: center;
  margin: 0 0 18px;
}

#screen-result .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 18px;
}

.link-quiz {
  display: block;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  margin: 0 auto 22px;
  width: fit-content;
}
.link-quiz:hover { color: var(--gold); }

.link-restart {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #8a867d;
  cursor: pointer;
  text-decoration: underline;
}
