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

#bfq-wrap { font-family: 'Poppins', sans-serif; max-width: 520px; margin: 0 auto; padding: 16px; }

.bfq-step { display: none; }
.bfq-step.active { display: block; }

/* Hero */
.bfq-hero { text-align: center; padding: 28px 0 20px; }
.bfq-badge { display: inline-block; background: #fff3cd; color: #856404; font-size: 12px; font-weight: 600; padding: 5px 16px; border-radius: 20px; margin-bottom: 14px; letter-spacing: 0.03em; }
.bfq-title { font-size: 36px; font-weight: 800; color: #1a1a2e; line-height: 1.15; margin-bottom: 12px; }
.bfq-subtitle { font-size: 14px; color: #555; line-height: 1.6; }

/* Card */
.bfq-card { background: #fff; border-radius: 16px; border: 1px solid #eee; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Leaderboard mini */
.bfq-lb-title { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.bfq-lb-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.bfq-lb-row:last-child { border-bottom: none; }
.bfq-lb-first { background: linear-gradient(135deg, #fff9e6, #fffdf5); border-radius: 12px; padding: 10px 12px; margin: 0 -12px; }
.bfq-lb-rank { font-size: 18px; min-width: 28px; }
.bfq-lb-avatar { width: 38px; height: 38px; border-radius: 50%; background: #e8e4ff; color: #4a3fa0; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bfq-lb-info { flex: 1; }
.bfq-lb-name { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.bfq-lb-ig { font-size: 12px; color: #c13584; margin-top: 1px; }
.bfq-lb-right { text-align: right; }
.bfq-lb-pts { font-size: 14px; font-weight: 700; color: #4a3fa0; }
.bfq-lb-score { font-size: 11px; color: #888; }

/* Countdown */
.bfq-countdown { display: flex; align-items: center; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #f0f0f0; }
.bfq-cd-label { font-size: 12px; color: #888; }
.bfq-cd-timer { font-size: 13px; font-weight: 700; color: #e63946; }

/* Form */
.bfq-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 7px; }
.bfq-req { color: #e63946; }
.bfq-input { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 15px; font-family: 'Poppins', sans-serif; color: #1a1a2e; transition: border 0.2s; box-sizing: border-box; }
.bfq-input:focus { outline: none; border-color: #4a3fa0; }
.bfq-ig-wrap { position: relative; }
.bfq-at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: #888; font-size: 15px; }
.bfq-ig-input { padding-left: 28px; }
.bfq-ig-note { font-size: 11px; color: #c13584; margin-top: 7px; margin-bottom: 0; }

/* Buttons */
.bfq-btn-primary { display: block; width: 100%; padding: 15px; background: #4a3fa0; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer; margin-top: 20px; transition: background 0.2s, transform 0.1s; }
.bfq-btn-primary:hover { background: #3730a3; transform: translateY(-1px); }
.bfq-btn-secondary { display: block; width: 100%; padding: 12px; background: transparent; color: #4a3fa0; border: 1.5px solid #4a3fa0; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; margin-top: 12px; transition: all 0.2s; }
.bfq-btn-secondary:hover { background: #f0eeff; }

/* Quiz */
.bfq-quiz-header { margin-bottom: 16px; }
.bfq-progress-wrap { background: #eee; border-radius: 6px; height: 6px; margin-bottom: 10px; }
.bfq-progress-bar { height: 6px; background: linear-gradient(90deg, #4a3fa0, #7c3aed); border-radius: 6px; width: 10%; transition: width 0.4s ease; }
.bfq-qnum { font-size: 12px; font-weight: 600; color: #888; text-align: right; }
.bfq-question-card { padding: 24px; }
.bfq-question { font-size: 17px; font-weight: 700; color: #1a1a2e; line-height: 1.5; margin-bottom: 20px; }
.bfq-options { display: flex; flex-direction: column; gap: 10px; }
.bfq-option { padding: 13px 16px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 14px; font-weight: 500; color: #333; cursor: pointer; transition: all 0.2s; background: #fff; text-align: left; font-family: 'Poppins', sans-serif; }
.bfq-option:hover { border-color: #4a3fa0; background: #f5f3ff; color: #4a3fa0; }
.bfq-option.correct { border-color: #16a34a; background: #f0fdf4; color: #16a34a; pointer-events: none; }
.bfq-option.wrong { border-color: #dc2626; background: #fef2f2; color: #dc2626; pointer-events: none; }
.bfq-option.disabled { pointer-events: none; opacity: 0.5; }
.bfq-score-live { text-align: center; font-size: 13px; color: #888; font-weight: 600; margin-top: 12px; }

/* Result */
.bfq-result-card { background: #fff; border-radius: 20px; border: 1px solid #eee; padding: 28px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.bfq-result-emoji { font-size: 52px; margin-bottom: 8px; }
.bfq-result-score { font-size: 48px; font-weight: 800; color: #4a3fa0; line-height: 1; }
.bfq-result-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 10px 0 8px; }
.bfq-result-desc { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 20px; }
.bfq-result-stats { display: flex; gap: 12px; margin-bottom: 24px; }
.bfq-stat { flex: 1; background: #f8f7ff; border-radius: 12px; padding: 12px 8px; }
.bfq-stat-num { font-size: 22px; font-weight: 800; color: #4a3fa0; }
.bfq-stat-lbl { font-size: 11px; color: #888; margin-top: 2px; font-weight: 500; }

/* Share */
.bfq-share-section { border-top: 1px solid #f0f0f0; padding-top: 20px; }
.bfq-share-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 12px; }
.bfq-share-btns { display: flex; gap: 10px; margin-bottom: 16px; }
.bfq-share-wa { flex: 1; padding: 12px; background: #25d366; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer; transition: opacity 0.2s; }
.bfq-share-wa:hover { opacity: 0.9; }
.bfq-share-ig { flex: 1; padding: 12px; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer; transition: opacity 0.2s; }
.bfq-share-ig:hover { opacity: 0.9; }
.bfq-ref-url { background: #f8f7ff; border-radius: 10px; padding: 12px; text-align: left; }
.bfq-ref-label { font-size: 11px; color: #888; font-weight: 600; display: block; margin-bottom: 7px; }
.bfq-ref-link-wrap { display: flex; gap: 8px; }
.bfq-ref-link { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 7px; font-size: 12px; background: #fff; color: #333; font-family: 'Poppins', sans-serif; }
.bfq-copy-btn { padding: 8px 14px; background: #4a3fa0; color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif; white-space: nowrap; }
.bfq-copy-btn:hover { background: #3730a3; }

/* Winner box */
.bfq-winner-box { background: linear-gradient(135deg, #fff9e6, #fff3cd); border: 1px solid #ffc107; border-radius: 12px; padding: 14px; margin-top: 16px; text-align: center; }
.bfq-winner-label { font-size: 11px; font-weight: 600; color: #856404; margin-bottom: 5px; }
.bfq-winner-prize { font-size: 14px; font-weight: 700; color: #533f00; }

/* Leaderboard full page */
.bfq-lb-heading { font-size: 22px; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; }
.bfq-lb-full { margin-top: 16px; }

/* Loading */
.bfq-loading { text-align: center; padding: 20px; color: #aaa; font-size: 14px; }

@media (max-width: 400px) {
  .bfq-title { font-size: 28px; }
  .bfq-result-score { font-size: 40px; }
}
