@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800;900&display=swap');

.join-page { padding: 60px 24px 100px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.join-inner { max-width: 560px; width: 100%; }
.join-header { text-align: center; margin-bottom: 40px; }
.join-header .bug { font-size: 4rem; display: block; margin-bottom: 12px; animation: hero-crawl 3s ease-in-out infinite; }
@keyframes hero-crawl { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.04); } }
.join-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 8px; }
.join-header p { color: var(--muted-2); font-size: 0.95rem; line-height: 1.6; }

/* Quiz */
.quiz-container { display: flex; flex-direction: column; gap: 0; }
.quiz-progress { margin-bottom: 24px; }
.quiz-progress-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.quiz-progress-bar { height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.4s ease; }

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.quiz-q { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.quiz-q .num { color: var(--accent); }
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.quiz-option {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  color: var(--text);
}
.quiz-option:hover { border-color: var(--accent); background: rgba(200,255,0,0.05); }
.quiz-option.selected { border-color: var(--accent); background: rgba(200,255,0,0.1); color: var(--accent); font-weight: 600; }
.quiz-option.correct { border-color: var(--green); background: rgba(34,197,94,0.1); color: var(--green); }
.quiz-option.wrong { border-color: var(--red); background: rgba(255,60,60,0.1); color: var(--red); }

.quiz-next { width: 100%; margin-top: 4px; }

/* Result */
.quiz-result { text-align: center; padding: 24px 0; display: none; animation: fadeUp 0.5s ease; }
.quiz-result.show { display: block; }
.result-icon { font-size: 5rem; display: block; margin-bottom: 16px; animation: hero-crawl 2s ease-in-out infinite; }
.result-title { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.result-sub { color: var(--muted-2); font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
.result-card {
  background: var(--surface);
  border: 1px solid rgba(200,255,0,0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}
.result-card h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.result-card p { font-size: 0.88rem; color: var(--muted-2); line-height: 1.6; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.result-actions .btn { justify-content: center; }
