.eqb-app { max-width: 560px; margin: 0 auto; font-family: inherit; }
.eqb-loading, .eqb-error-box { text-align: center; padding: 40px 16px; color: #64748b; }
.eqb-screen { padding: 20px; text-align: center; }
.eqb-input { width: 100%; padding: 14px 16px; font-size: 18px; border: 2px solid #e2e8f0; border-radius: 10px; margin: 16px 0; box-sizing: border-box; text-align: center; }
.eqb-btn { display: inline-block; padding: 14px 28px; font-size: 16px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; }
.eqb-btn-primary { background: #1d4ed8; color: #fff; }
.eqb-btn-primary:hover { background: #1e40af; }
.eqb-error { color: #dc2626; min-height: 20px; font-size: 14px; }

.eqb-banner { border-radius: 16px; background-size: cover; background-position: center; background-color: #0f172a; padding: 60px 20px; margin-bottom: 24px; }
.eqb-banner h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); font-size: 28px; margin: 0; }

.eqb-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.eqb-team-card { border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px 10px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.eqb-team-card.eqb-selected { background: #f0f9ff; box-shadow: 0 0 0 3px rgba(29,78,216,.3); }
.eqb-team-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

.eqb-quiz-top { display: flex; justify-content: space-between; font-weight: 700; color: #475569; margin-bottom: 10px; }
.eqb-timer { color: #dc2626; }
.eqb-q-image { max-width: 100%; border-radius: 10px; margin-bottom: 12px; }
.eqb-q-text { font-size: 19px; margin-bottom: 16px; }
.eqb-options { display: grid; gap: 10px; }
.eqb-option { padding: 14px; border: 2px solid #e2e8f0; border-radius: 10px; background: #fff; font-size: 16px; cursor: pointer; text-align: left; }
.eqb-opt-letter { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; font-weight: 700; font-size: 13px; margin-right: 8px; }
.eqb-option:hover:not(:disabled) { border-color: #1d4ed8; }
.eqb-option:disabled { cursor: default; opacity: .8; }
.eqb-option.eqb-correct { background: #dcfce7; border-color: #16a34a; }
.eqb-option.eqb-wrong { background: #fee2e2; border-color: #dc2626; }

.eqb-result-card { background: #f8fafc; border-radius: 14px; padding: 24px; margin: 20px 0; }
.eqb-result-name { font-weight: 700; font-size: 18px; }
.eqb-result-score { font-size: 32px; font-weight: 800; color: #1d4ed8; margin: 6px 0; }
.eqb-btn-whatsapp { background: #25d366; color: #fff; display: block; margin: 0 auto 12px; width: fit-content; text-decoration: none; }
.eqb-btn-whatsapp:hover { background: #1ebe57; }

.eqb-lb-head { display: flex; justify-content: space-between; align-items: baseline; }
.eqb-lb-count { color: #64748b; font-size: 13px; font-weight: 600; }
.eqb-lb-lead { background: linear-gradient(90deg, #fde68a, #fca5a5); color: #7c2d12; font-weight: 800; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; text-transform: capitalize; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.eqb-lb-teams { display: grid; gap: 8px; margin-bottom: 16px; }
.eqb-lb-team { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-transform: capitalize; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.eqb-team-badge { display: flex; align-items: center; gap: 4px; }
.eqb-lb-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.eqb-lb-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; margin-bottom: 6px; background: #f8fafc; }
.eqb-lb-list li:nth-child(odd) { background: #f1f5f9; }
.eqb-lb-name { flex: 1; margin: 0 10px; font-weight: 600; color: #1e293b; }
.eqb-lb-list li strong { color: #1d4ed8; font-size: 15px; }

/* Rank badges: gold / silver / bronze glow for the top 3, neutral pill after that. */
.eqb-rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.eqb-rank-badge.eqb-rank-1 { background: linear-gradient(135deg, #fde047, #f59e0b); font-size: 18px; box-shadow: 0 0 0 3px #fef3c7; }
.eqb-rank-badge.eqb-rank-2 { background: linear-gradient(135deg, #e5e7eb, #94a3b8); font-size: 18px; box-shadow: 0 0 0 3px #f1f5f9; }
.eqb-rank-badge.eqb-rank-3 { background: linear-gradient(135deg, #fdba74, #c2410c); font-size: 18px; color: #fff; box-shadow: 0 0 0 3px #fed7aa; }
.eqb-rank-badge.eqb-rank-other { background: #e2e8f0; color: #475569; font-size: 13px; }
.eqb-lb-list li:nth-child(1) { background: linear-gradient(90deg, #fef9c3, #fff); }
.eqb-lb-list li:nth-child(2) { background: linear-gradient(90deg, #f1f5f9, #fff); }
.eqb-lb-list li:nth-child(3) { background: linear-gradient(90deg, #ffedd5, #fff); }

/* Team badge colors rotate through a 6-color palette so each team stands out. */
.eqb-lb-team { background: #64748b; }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+1) { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+2) { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+3) { background: linear-gradient(135deg, #22c55e, #15803d); }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+4) { background: linear-gradient(135deg, #f97316, #c2410c); }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+5) { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.eqb-lb-teams .eqb-lb-team:nth-of-type(6n+6) { background: linear-gradient(135deg, #ec4899, #be185d); }

/* Standalone [eduamit_quiz_leaderboard] widget — boxed card with a colorful header bar. */
.eqb-standalone-lb { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0 20px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.08); overflow: hidden; }
.eqb-standalone-lb .eqb-lb-head { background: linear-gradient(90deg, #7c3aed, #2563eb); margin: 0 -20px 16px; padding: 16px 20px; }
.eqb-standalone-lb .eqb-lb-head h2 { margin: 0; font-size: 18px; color: #fff; }
.eqb-standalone-lb .eqb-lb-count { color: #e0e7ff; }
.eqb-standalone-lb .eqb-lb-list li:last-child { margin-bottom: 0; }
