/* Breakglass — test.html specific layout */

.test-shell {
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 32px 0 56px;
}

.test-card-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Progress ---------- */

.progress-track {
  height: 4px;
  background: var(--border);
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---------- Quiz card ---------- */

.quiz-card {
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  padding: 36px 28px;
}

@media (min-width: 640px) {
  .quiz-card { padding: 48px 40px; }
}

.block-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.6vw, 1.7rem);
  line-height: 1.25;
}

.answer-options {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.answer-btn {
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.answer-btn:hover { border-color: var(--border-strong); }
.answer-btn:active { transform: scale(0.99); }
.answer-btn.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.test-footer-nav {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font-body);
}
.back-link:hover { color: var(--text); }

.no-passwords-note {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.no-passwords-note svg { width: 15px; height: 15px; color: var(--safe); flex-shrink: 0; }

/* ---------- Result card ---------- */

.result-card {
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  padding: 40px 28px;
  text-align: center;
}

@media (min-width: 640px) {
  .result-card { padding: 56px 48px; }
}

.score-dial {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.score-ring circle { transition: stroke 0.3s; }
.score-ring.is-safe #score-ring-fg { stroke: var(--safe); }
.score-ring.is-warn #score-ring-fg { stroke: var(--warn); }
.score-ring.is-danger #score-ring-fg { stroke: var(--danger); }

.score-dial-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.score-max {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-emoji { font-size: 1.6rem; margin-top: 4px; }

.score-label {
  margin-top: 4px;
  font-weight: 600;
  font-size: 1.1rem;
}

.risk-box {
  margin-top: 32px;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.risk-box h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

#risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#risk-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}

#risk-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

.cycle-box {
  margin-top: 20px;
  text-align: left;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 16px 18px;
  display: flex;
  gap: 10px;
}
.cycle-box svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.cycle-box p { color: var(--text); font-size: 0.9rem; }

.result-ctas {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .result-ctas { flex-direction: row; justify-content: center; }
}

#result-cta-link {
  white-space: normal;
  text-align: center;
  max-width: 320px;
}
