@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #d4af37;
  --gold-dim: rgba(212,175,55,.15);
  --gold-border: rgba(212,175,55,.3);
  --card: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.08);
  --muted: rgba(255,255,255,.55);
}

.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 24px 16px 60px; }
.quiz-header { text-align: center; margin-bottom: 32px; }
.quiz-badge { display: inline-block; background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 16px; }
.quiz-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.15; color: #fff; margin-bottom: 10px; }
.quiz-title span { color: var(--gold); }
.quiz-subtitle { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.progress-wrap { margin-bottom: 28px; }
.progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.82rem; color: var(--muted); }
.progress-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f0cc5a); border-radius: 2px; transition: width 0.4s ease; }
.question-card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; margin-bottom: 16px; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.question-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.question-text { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 20px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .options-grid { grid-template-columns: 1fr; } }
.option-btn { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: left; cursor: pointer; transition: all 0.2s ease; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.option-btn:hover { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); transform: translateY(-2px); }
.option-btn.selected { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.option-icon { display: block; font-size: 1.4em; margin-bottom: 6px; }
.quiz-nav { display: flex; gap: 12px; margin-top: 16px; }
.btn-next { flex: 1; background: var(--gold); color: #111; border: none; border-radius: 12px; padding: 14px 20px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: all 0.2s ease; }
.btn-next:hover { background: #e0c040; transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-back { background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 12px; padding: 14px 20px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-back:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.results-wrap { animation: fadeIn 0.4s ease; }
.results-header { text-align: center; margin-bottom: 28px; padding: 28px 24px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 20px; }
.results-icon { font-size: 2.5em; margin-bottom: 12px; }
.results-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.results-title span { color: var(--gold); }
.results-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.results-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.result-card { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: border-color 0.2s; }
.result-card:hover { border-color: var(--gold-border); }
.result-rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.rank-1 { background: var(--gold); color: #111; }
.rank-2 { background: rgba(192,192,192,.2); color: #c0c0c0; border: 1px solid rgba(192,192,192,.3); }
.rank-3 { background: rgba(180,100,50,.2); color: #cd7f32; border: 1px solid rgba(180,100,50,.3); }
.result-info { flex: 1; }
.result-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.result-bonus { font-size: 0.82rem; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.result-why { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.result-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-play { background: var(--gold); color: #111; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: 0.82rem; font-weight: 800; transition: background 0.2s; }
.btn-play:hover { background: #e0c040; }
.btn-review { background: transparent; border: 1px solid var(--gold-border); color: var(--gold); padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: 0.82rem; font-weight: 700; transition: all 0.2s; }
.btn-review:hover { background: var(--gold-dim); }
.btn-restart { width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 12px; padding: 14px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.btn-restart:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.match-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.match-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.match-track { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.match-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f0cc5a); border-radius: 2px; }
.match-pct { font-size: 0.75rem; font-weight: 700; color: var(--gold); }
.disclaimer { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,.3); margin-top: 24px; line-height: 1.6; }
