/* ================================================================
   QUIZ
================================================================ */
#page-quiz .container { max-width: 720px; }
/* quiz scoreboard — globalne style wystarczą */

/* QUIZ tło — znaki zapytania i koła */
#page-quiz::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle 2px at 15% 20%, rgba(245,200,66,0.15) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 15%, rgba(245,200,66,0.12) 0%, transparent 100%),
    radial-gradient(circle 2px at 40% 70%, rgba(245,200,66,0.1) 0%, transparent 100%),
    radial-gradient(circle 2px at 85% 65%, rgba(245,200,66,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(26,122,58,0.08) 0%, transparent 70%);
}
.progress-wrap { width: 100%; display: flex; flex-direction: column; gap: 3px; }
.progress-info { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(240,244,239,0.45); }
.progress-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-light), var(--gold)); border-radius: 3px; transition: width 0.4s ease; }
.q-timer-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.q-timer-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.1s linear, background 0.3s; }
.question-card { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 26px 28px; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.question-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.q-category { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; opacity: 0.8; }
.q-text { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(17px, 3.5vw, 24px); font-weight: 600; line-height: 1.3; color: var(--white); }
.answers { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .answers { grid-template-columns: 1fr; } }
.answer-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: clamp(13px, 2.4vw, 17px); font-weight: 600; letter-spacing: 1px; padding: 13px 16px; border-radius: 8px; cursor: pointer; transition: all 0.18s; text-align: left; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.answer-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(245,200,66,0.1); transform: translateY(-2px); }
.answer-btn .aletter { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold); min-width: 20px; }
.answer-btn.correct { background: rgba(46,204,113,0.2); border-color: #2ecc71; color: #2ecc71; }
.answer-btn.wrong { background: rgba(231,76,60,0.2); border-color: #e74c3c; color: #e74c3c; }
.answer-btn.reveal { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.4); color: #2ecc71; }
.answer-btn:disabled { cursor: default; transform: none; }
.q-feedback { width: 100%; text-align: center; font-size: clamp(15px, 3vw, 19px); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; min-height: 26px; transition: all 0.3s; opacity: 0; }
.q-feedback.show { opacity: 1; }
.q-feedback.correct { color: #2ecc71; }
.q-feedback.wrong { color: #e74c3c; }
.next-btn { background: var(--gold); border: none; color: var(--dark); font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: 3px; padding: 11px 38px; border-radius: 6px; cursor: pointer; transition: all 0.2s; opacity: 0; pointer-events: none; margin-bottom: 48px; }
.next-btn.show { opacity: 1; pointer-events: all; }
.next-btn:hover { transform: scale(1.05); }
.quiz-start-card { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 32px; text-align: center; backdrop-filter: blur(10px); }
.quiz-start-card p { font-size: 16px; color: rgba(240,244,239,0.65); line-height: 1.6; letter-spacing: 1px; margin-bottom: 8px; }
.quiz-start-card .big { font-size: 20px; color: var(--white); font-weight: 700; margin-bottom: 16px; }


/* ===== QUIZ RIPPLE ANIMACJA ===== */
.answer-btn { position: relative; overflow: hidden; }
.answer-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 1s linear forwards;
  pointer-events: none;
}
.answer-btn.correct .ripple { background: rgba(46,204,113,0.35); }
.answer-btn.wrong   .ripple { background: rgba(231,76,60,0.25); }
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}