:root {
  color-scheme: dark;
  --background: #06110e;
  --background-deep: #030b09;
  --surface: rgba(8, 25, 20, 0.72);
  --text: #f3f7ed;
  --muted: #a4b0aa;
  --muted-strong: #c7cfca;
  --accent: #9cff72;
  --accent-hover: #b5ff93;
  --accent-ink: #06110e;
  --border: #52645c;
  --border-soft: rgba(132, 157, 145, 0.28);
  --focus: rgba(156, 255, 114, 0.4);
  --max-width: 760px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--background); }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(27, 64, 49, 0.24), transparent 48%),
    linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

button { color: inherit; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.27;
}

.signal-field svg { width: 100%; height: 100%; }
.signal-field path { fill: none; stroke: #6eaa53; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.signal-field circle { fill: #85bf65; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px clamp(24px, 4vw, 64px);
}

.brand {
  color: var(--text);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 1;
  text-decoration: none;
}

.brand span:last-child { color: var(--accent); }

.exit-link {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.quiz-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - 176px);
  padding: clamp(24px, 4.5vh, 58px) 24px 60px;
}

.question-panel,
.welcome-panel,
.analysis-panel,
.result-panel {
  width: min(100%, var(--max-width));
  margin: auto;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 4.25vw, 3.65rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.progress-copy {
  margin-bottom: 20px;
  color: var(--muted-strong);
  font-size: 0.98rem;
  font-weight: 540;
  text-align: center;
}

.progress-track {
  height: 4px;
  margin-bottom: clamp(38px, 6vh, 62px);
  overflow: hidden;
  background: rgba(159, 181, 171, 0.28);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 320ms ease;
}

.question-panel h1,
.question-copy { text-align: center; }

.question-panel h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.question-copy,
.welcome-copy,
.result-copy,
.analysis-panel p {
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.question-copy { margin: 18px auto 32px; }

.option-list { display: grid; gap: 12px; }

.option {
  display: flex;
  align-items: center;
  min-height: 72px;
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 17, 14, 0.68);
  color: var(--text);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 620;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.option:hover { border-color: #8aa195; background: rgba(13, 35, 28, 0.8); transform: translateY(-1px); }
.option.is-selected { border-color: var(--accent); background: rgba(24, 52, 39, 0.76); }

.selection-box {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  margin-right: 24px;
  border: 1px solid #789085;
  border-radius: 5px;
  color: var(--accent-ink);
}

.selection-box svg,
.primary-button svg,
.back-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.is-selected .selection-box { border-color: var(--accent); background: var(--accent); }

.question-actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.62fr) minmax(220px, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.primary-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 720;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  gap: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.35; transform: none; }

.back-button {
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(5, 17, 14, 0.6);
}

.back-button:hover { border-color: var(--muted-strong); background: rgba(15, 34, 28, 0.8); }

.auto-note {
  align-self: center;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.welcome-panel { text-align: center; }
.welcome-panel h1 { font-size: clamp(3rem, 6vw, 5rem); }
.welcome-copy { max-width: 680px; margin: 24px auto 34px; }
.welcome-cta { width: min(100%, 470px); margin-inline: auto; }
.time-note, .price-note { color: var(--muted); font-size: 0.9rem; }
.time-note { margin: 14px 0 48px; }

.signal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.signal-summary div { padding: 22px 24px; }
.signal-summary div + div { border-left: 1px solid var(--border-soft); }
.signal-summary span { display: block; margin-bottom: 14px; color: var(--accent); font-size: 0.76rem; font-weight: 760; letter-spacing: 0.13em; }
.signal-summary strong { display: block; margin-bottom: 7px; font-size: 0.98rem; }
.signal-summary small { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.analysis-panel { text-align: center; }
.analysis-panel h1 { max-width: 650px; margin: 28px auto 0; }
.analysis-panel p { margin: 20px auto; }

.analysis-mark { display: flex; justify-content: center; gap: 9px; }
.analysis-mark span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 900ms ease-in-out infinite; }
.analysis-mark span:nth-child(2) { animation-delay: 150ms; }
.analysis-mark span:nth-child(3) { animation-delay: 300ms; }

.result-panel { text-align: center; }
.result-label { color: var(--accent); font-size: 0.84rem; font-weight: 780; letter-spacing: 0.18em; text-transform: uppercase; }
.result-rule { height: 4px; margin: 28px 60px 42px; background: rgba(159, 181, 171, 0.27); }
.result-rule span { display: block; width: 48%; height: 100%; background: var(--accent); }
.result-copy { max-width: 720px; margin: 20px auto 34px; }

.result-details { margin: 0 0 32px; border-top: 1px solid var(--border); }
.result-details div { display: grid; grid-template-columns: 0.85fr 1.3fr; border-bottom: 1px solid var(--border); text-align: left; }
.result-details dt, .result-details dd { margin: 0; padding: 17px 20px; }
.result-details dt { font-weight: 650; }
.result-details dd { border-left: 1px solid var(--border); color: var(--accent); font-weight: 560; }
.result-cta { width: 100%; }
.explore-link { display: inline-block; margin-top: 22px; color: var(--accent); font-size: 1.02rem; font-weight: 640; text-underline-offset: 5px; }
.price-note { margin: 14px 0 0; }
.site-footer {
  position: relative;
  z-index: 1;
  padding: 18px 24px 26px;
  color: #77847e;
  font-size: 0.78rem;
  text-align: center;
}

.noscript { position: fixed; inset: auto 16px 16px; z-index: 10; padding: 14px; background: #111; color: white; text-align: center; }

@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 700px) {
  .site-header { padding: 22px 20px; }
  .brand { font-size: 1.8rem; }
  .exit-link { font-size: 0.88rem; }
  .quiz-shell { min-height: calc(100svh - 148px); padding: 22px 18px 42px; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.85rem); }
  .question-panel h1 { font-size: clamp(2.05rem, 10vw, 2.85rem); }
  .progress-track { margin-bottom: 36px; }
  .question-copy { margin-bottom: 24px; font-size: 1rem; }
  .option { min-height: 62px; padding: 13px 15px; font-size: 0.98rem; }
  .selection-box { flex-basis: 32px; height: 32px; margin-right: 14px; }
  .question-actions { grid-template-columns: 0.72fr 1.15fr; gap: 10px; margin-top: 20px; }
  .primary-button, .back-button { min-height: 58px; font-size: 0.96rem; }
  .auto-note { font-size: 0.76rem; }
  .welcome-panel h1 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .welcome-copy { margin: 20px auto 28px; font-size: 1.03rem; }
  .time-note { margin-bottom: 36px; }
  .signal-summary { grid-template-columns: 1fr; }
  .signal-summary div { display: grid; grid-template-columns: 38px 1fr; padding: 17px 6px; }
  .signal-summary div + div { border-top: 1px solid var(--border-soft); border-left: 0; }
  .signal-summary span { grid-row: 1 / 3; margin: 2px 0 0; }
  .signal-summary strong, .signal-summary small { grid-column: 2; }
  .result-rule { margin: 22px 0 34px; }
  .result-copy { font-size: 1rem; }
  .result-details div { grid-template-columns: 1fr; padding: 14px 0; }
  .result-details dt, .result-details dd { padding: 4px 2px; border-left: 0; }
  .result-details dd { font-size: 0.96rem; }
  .site-footer { font-size: 0.7rem; }
}

@media (min-width: 701px) and (max-height: 800px) {
  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .brand { font-size: 2rem; }
  .quiz-shell { min-height: calc(100svh - 125px); padding-top: 8px; padding-bottom: 22px; }
  h1 { font-size: clamp(2.4rem, 4vw, 3.15rem); }
  .progress-copy { margin-bottom: 14px; }
  .progress-track { margin-bottom: 24px; }
  .question-copy { margin: 12px auto 20px; font-size: 1.05rem; }
  .option-list { gap: 8px; }
  .option { min-height: 58px; padding-top: 10px; padding-bottom: 10px; }
  .selection-box { flex-basis: 34px; height: 34px; }
  .question-actions { margin-top: 16px; }
  .primary-button, .back-button { min-height: 58px; }
  .site-footer { padding-top: 8px; padding-bottom: 14px; }
  .result-rule { margin-top: 18px; margin-bottom: 24px; }
  .result-copy { margin-top: 14px; margin-bottom: 22px; font-size: 1.05rem; }
  .result-details { margin-bottom: 22px; }
  .result-details dt, .result-details dd { padding-top: 11px; padding-bottom: 11px; }
  .result-cta { min-height: 58px; }
  .explore-link { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
