/* ══════════════════════════════════════
   QUIZ — styles propres à la page /quiz.html
   LMP Radio — LiveQuiZz (bot IRC #Music-PLAY)
══════════════════════════════════════ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(162,56,255,.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(204,0,0,.08) 0%, transparent 55%);
  background-attachment: fixed;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── INTRO / HERO ── */
.quiz-section { padding: 48px 0 40px; }
.quiz-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.quiz-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(162,56,255,.12); border: 1px solid rgba(162,56,255,.3);
  padding: 7px 18px; border-radius: 30px;
  font-size: .68rem; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: #c878ff; margin-bottom: 20px;
}
.quiz-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #c878ff; animation: pulse 1.5s infinite; }
.quiz-title { font-size: 2.4rem; font-weight: 900; line-height: 1.15; letter-spacing: .5px; margin-bottom: 16px; }
.quiz-title .grad {
  background: linear-gradient(135deg, #fff 20%, #c878ff 60%, #ff8888);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.quiz-tagline { font-size: 1.05rem; font-weight: 600; color: var(--t1); margin-bottom: 14px; }
.quiz-sub { font-size: .95rem; color: var(--t2); line-height: 1.75; margin-bottom: 28px; }
.quiz-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.quiz-join-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 800; font-size: .85rem; letter-spacing: .6px; text-transform: uppercase;
  text-decoration: none; color: #fff;
  background: linear-gradient(90deg, #cc0000, #ffaa00);
  box-shadow: 0 8px 24px rgba(204,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.quiz-join-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(204,0,0,.35); }
.quiz-join-btn.secondary {
  background: rgba(255,255,255,.06); box-shadow: none;
  border: 1px solid rgba(255,255,255,.12);
}
.quiz-join-btn.secondary:hover { background: rgba(255,255,255,.1); }

/* ── SECTION HEAD (pill + lignes, réutilisé sur toutes les sections) ── */
.section-head { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.section-head .line { flex: 1; height: 1px; }
.section-head .line.left  { background: linear-gradient(90deg, transparent, var(--accent, rgba(204,0,0,.4))); }
.section-head .line.right { background: linear-gradient(90deg, var(--accent, rgba(204,0,0,.4)), transparent); }
.section-head .pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 22px; border-radius: 30px; margin: 0 16px;
  font-size: .78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap;
}
.section-head .pill.howto  { background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.3); color: #7fdfff; }
.section-head .pill.modes  { background: rgba(162,56,255,.1); border: 1px solid rgba(162,56,255,.3); color: #c878ff; }
.section-head .pill.podium { background: rgba(255,196,0,.1); border: 1px solid rgba(255,196,0,.35); color: #ffd966; }

/* ── COMMENT JOUER ── */
.quiz-howto { padding: 20px 0 48px; }
.howto-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.howto-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 26px 20px; text-align: center;
  animation: fadeUp .4s ease;
}
.howto-card i { font-size: 1.6rem; color: #7fdfff; margin-bottom: 12px; display: block; }
.howto-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.howto-card p { font-size: .82rem; color: var(--t2); line-height: 1.6; }

/* ── MODES DE JEU ── */
.quiz-modes { padding: 20px 0 48px; }
.modes-sub { text-align: center; color: var(--t2); font-size: .88rem; max-width: 700px; margin: -12px auto 26px; line-height: 1.6; }
.modes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mode-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--c);
  border-radius: 12px; padding: 16px 18px;
  transition: transform .15s, background .15s;
}
.mode-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); }
.mode-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex-shrink: 0; margin-top: 3px; box-shadow: 0 0 10px var(--c); }
.mode-name { font-weight: 800; font-size: .95rem; margin-bottom: 4px; color: var(--c); }
.mode-desc { font-size: .78rem; color: var(--t2); line-height: 1.5; }

/* ── PODIUMS ── */
.quiz-podiums { padding: 20px 0 60px; }
.podium-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px;
}
.ptab {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--t2); padding: 10px 18px; border-radius: 30px;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.ptab i { margin-right: 6px; }
.ptab:hover { background: rgba(255,255,255,.08); color: var(--t1); }
.ptab.active {
  background: linear-gradient(90deg, rgba(255,196,0,.25), rgba(204,0,0,.2));
  border-color: rgba(255,196,0,.5); color: #ffd966;
}

.podium-panel { max-width: 640px; margin: 0 auto; min-height: 120px; }
.podium-block {
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 22px 20px; animation: fadeUp .35s ease;
}
.podium-block.prestige {
  border-color: rgba(255,196,0,.4);
  background: linear-gradient(180deg, rgba(255,196,0,.06), rgba(255,255,255,.03));
  box-shadow: 0 0 30px rgba(255,196,0,.08);
}
.podium-block-title {
  font-size: 1rem; font-weight: 800; letter-spacing: .5px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
  color: #ffd966;
}
.podium-list { display: flex; flex-direction: column; gap: 8px; }
.podium-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
}
.podium-row.gold   { background: rgba(255,196,0,.08); border-color: rgba(255,196,0,.3); }
.podium-row.silver { background: rgba(200,200,220,.07); border-color: rgba(200,200,220,.25); }
.podium-row.bronze { background: rgba(205,127,50,.08); border-color: rgba(205,127,50,.28); }
.pr-rank { width: 26px; text-align: center; font-weight: 800; color: var(--t3); flex-shrink: 0; }
.rank-num { font-size: .85rem; }
.medal-gold   { color: #ffd700; }
.medal-silver { color: #c0c0d0; }
.medal-bronze { color: #cd7f32; }
.pr-name { flex: 1; font-weight: 700; font-size: .92rem; }
.pr-points { font-weight: 800; color: #ffd966; font-size: .95rem; }
.pr-pts-lbl { font-weight: 600; color: var(--t3); font-size: .72rem; }

.podium-empty {
  text-align: center; padding: 40px 20px; color: var(--t2);
}
.podium-empty i { font-size: 1.8rem; opacity: .5; margin-bottom: 12px; display: block; }
.podium-empty p { font-weight: 700; margin-bottom: 6px; color: var(--t1); }
.podium-empty span { font-size: .85rem; }
.podium-empty a { color: #7fdfff; }

.loader { text-align: center; padding: 30px; color: var(--t2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .howto-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .howto-grid { grid-template-columns: 1fr; }
  .quiz-title { font-size: 1.7rem; }
  .modes-grid { grid-template-columns: 1fr; }
}
