/* ════════════════════════════════════════════
   VariaQuiz — Glassmorphic Quiz CSS
   Shared by Studio (modal) and Viewer (overlay)
   ════════════════════════════════════════════ */

/* ── Studio Modal ── */
.qz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: qzFadeIn 0.2s ease;
}

@keyframes qzFadeIn { from { opacity: 0; } to { opacity: 1; } }

.qz-modal {
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: min(640px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  animation: qzSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes qzSlideUp {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.qz-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.qz-modal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 15px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.qz-modal-title svg { color: #fbbf24; }

.qz-header-actions { display: flex; align-items: center; gap: 4px; }

/* ── Volume Control ── */
.qz-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 30px;
}
.qz-vol-wrap:hover,
.qz-vol-wrap:focus-within {
  max-width: 130px;
  background: rgba(255, 255, 255, 0.03);
}

.qz-vol-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.qz-vol-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.qz-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 6px;
}
.qz-vol-wrap:hover .qz-vol-slider,
.qz-vol-wrap:focus-within .qz-vol-slider {
  opacity: 1;
  transform: scaleX(1);
}

/* Slider thumb — webkit */
.qz-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.qz-vol-slider::-webkit-slider-thumb:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.3);
}

/* Slider thumb — Firefox */
.qz-vol-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
}
.qz-vol-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.08);
  height: 3px;
  border-radius: 2px;
  border: none;
}

.qz-modal-minimize,
.qz-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
}

.qz-modal-minimize:hover,
.qz-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qz-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.qz-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Minimize Floating Pill ── */
.qz-mini-pill {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 30px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
  font: 500 13px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24;
  gap: 8px;
  align-items: center;
}

.qz-mini-pill:hover { border-color: #fbbf24; transform: translateX(-50%) translateY(-2px); }
.qz-mini-pill.qz-visible { display: flex; }
.qz-mini-pill svg { color: #fbbf24; }

/* ── Buttons ── */
.qz-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font: 500 13px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.qz-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.qz-btn:active { transform: scale(0.97); }
.qz-btn svg { flex-shrink: 0; }

.qz-btn--primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  border-color: transparent;
  font-weight: 600;
}
.qz-btn--primary:hover { background: linear-gradient(135deg, #fcd34d, #fbbf24); }

.qz-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.qz-btn--danger:hover { background: rgba(239, 68, 68, 0.2); }

.qz-btn--ghost { background: none; border-color: rgba(255, 255, 255, 0.08); }
.qz-btn--sm { padding: 6px 12px; font-size: 12px; }

/* ── Empty State ── */
.qz-empty { text-align: center; padding: 36px 20px; }
.qz-empty-icon { margin-bottom: 12px; color: rgba(255,255,255,0.2); }
.qz-empty-text { font: 500 15px/1.4 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.65); }
.qz-empty-sub { font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.qz-recovery-players { margin-top: 16px; }
.qz-recovery-label { font-size: 13px; color: #fbbf24; margin-bottom: 8px; font-weight: 600; }
.qz-recovery-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.qz-gen-config { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qz-gen-label { font: 500 12px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.4); }
.qz-gen-input {
  width: 80px; text-align: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font: 500 15px/1 'JetBrains Mono', monospace;
  outline: none;
}
.qz-gen-input:focus { border-color: #fbbf24; }

/* ── Loading ── */
.qz-loading { text-align: center; padding: 44px 20px; }

.qz-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(251, 191, 36, 0.12);
  border-top-color: #fbbf24;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: qzSpin 0.7s linear infinite;
}
@keyframes qzSpin { to { transform: rotate(360deg); } }

.qz-loading-text { font: 500 14px/1.3 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.65); }
.qz-loading-sub { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 3px; }
.qz-error { color: #f87171; text-align: center; padding: 20px; display: flex; align-items: center; gap: 6px; justify-content: center; }

/* ── Questions List ── */
.qz-questions-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qz-q-count { font: 600 12px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.4); }
.qz-q-actions { display: flex; gap: 4px; }
.qz-questions-list { display: flex; flex-direction: column; gap: 6px; }

.qz-question-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.15s;
}
.qz-question-card:hover { border-color: rgba(251, 191, 36, 0.15); }
.qz-question-card.qz-disabled { opacity: 0.35; }

.qz-q-header { display: flex; align-items: center; gap: 7px; }

.qz-q-num {
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font: 700 10px/1 'JetBrains Mono', monospace;
  border-radius: 5px;
}

.qz-q-diff { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.qz-q-text { flex: 1; font: 400 12.5px/1.3 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.8); }

/* Inline editing */
.qz-editable {
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s, background 0.3s;
  outline: none;
  border-radius: 3px;
  padding: 1px 3px;
  margin: -1px -3px;
}
.qz-editable:hover { border-bottom-color: rgba(255,255,255,0.15); }
.qz-editable:focus {
  border-bottom-color: rgba(251,191,36,0.4);
  background: rgba(255,255,255,0.04);
}

/* Toggle */
.qz-toggle { position: relative; cursor: pointer; flex-shrink: 0; }
.qz-toggle input { display: none; }
.qz-toggle-track {
  display: block; width: 30px; height: 16px;
  background: rgba(255,255,255,0.08); border-radius: 8px;
  position: relative; transition: all 0.2s;
}
.qz-toggle-track::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.4); border-radius: 50%;
  top: 2px; left: 2px; transition: all 0.2s;
}
.qz-toggle input:checked + .qz-toggle-track { background: rgba(251, 191, 36, 0.35); }
.qz-toggle input:checked + .qz-toggle-track::after { transform: translateX(14px); background: #fbbf24; }

/* Options grid */
.qz-q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 6px; }
.qz-q-opt {
  font: 400 11.5px/1.3 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.45);
  padding: 3px 5px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
}
.qz-q-opt.qz-correct {
  background: rgba(52, 211, 153, 0.08);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.qz-correct-mark { color: #34d399; display: inline-flex; margin-right: 2px; }
.qz-opt-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; border-radius: 3px;
  font: 700 9px/1 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.35);
}

/* ── Lobby ── */
.qz-lobby { text-align: center; padding: 16px 0; }
.qz-lobby-title { display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 18px/1 'Inter', system-ui, sans-serif; color: #fbbf24; margin-bottom: 4px; }
.qz-lobby-sub { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.qz-lobby-info { font-size: 12px; color: rgba(255,255,255,0.25); margin-bottom: 14px; }

/* Timer selector */
.qz-timer-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; justify-content: center; flex-wrap: wrap; }
.qz-timer-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.qz-timer-btns { display: flex; gap: 6px; }
.qz-timer-btn {
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.qz-timer-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.qz-timer-btn.qz-timer-active {
  background: rgba(255,0,200,0.15); border-color: rgba(255,0,200,0.4);
  color: #ff00c8; box-shadow: 0 0 12px rgba(255,0,200,0.15);
}

/* Group number input (lobby) */
.qz-group-input {
  width: 90px; padding: 6px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: #fff;
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  text-align: center; transition: all 0.2s;
  -moz-appearance: textfield;
}
.qz-group-input::-webkit-outer-spin-button,
.qz-group-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qz-group-input::placeholder { color: rgba(255,255,255,0.25); font-weight: 400; }
.qz-group-input:focus {
  outline: none;
  border-color: rgba(56,161,219,0.5);
  background: rgba(56,161,219,0.08);
  box-shadow: 0 0 12px rgba(56,161,219,0.2);
}

/* ── Question modes (Sprint / Voto / Boss) ── */
.qz-q-modes {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center;
}
.qz-mode-btn {
  padding: 4px 10px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45);
  font: 600 11px/1 'Inter', sans-serif;
  cursor: pointer; transition: all 0.15s;
}
.qz-mode-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.qz-mode-btn[data-mode="sprint"].is-on {
  background: rgba(56, 161, 219, 0.15); border-color: rgba(56, 161, 219, 0.45);
  color: #38A1DB; box-shadow: 0 0 10px rgba(56, 161, 219, 0.18);
}
.qz-mode-btn[data-mode="poll"].is-on {
  background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.45);
  color: #a78bfa; box-shadow: 0 0 10px rgba(167, 139, 250, 0.18);
}
.qz-mode-btn[data-mode="boss"].is-on {
  background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.45);
  color: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.18);
}
.qz-mode-btn[data-mode="penalty"].is-on {
  background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.45);
  color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.18);
}
.qz-mode-pen-mult {
  padding: 3px 8px; border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08); color: #ef4444;
  font: 600 11px/1 'Inter', sans-serif; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.qz-mode-mult {
  padding: 3px 8px; border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08); color: #ef4444;
  font: 600 11px/1 'Inter', sans-serif; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.qz-mode-badge {
  display: inline-flex; align-items: center; padding: 2px 6px;
  border-radius: 8px; font: 700 10px/1 'Inter', sans-serif;
  margin-left: 4px;
}
.qz-mode-badge--sprint  { background: rgba(56,161,219,0.18); color: #38A1DB; }
.qz-mode-badge--poll    { background: rgba(167,139,250,0.18); color: #a78bfa; }
.qz-mode-badge--boss    { background: rgba(251,191,36,0.18); color: #fbbf24; }
.qz-mode-badge--penalty { background: rgba(239,68,68,0.18); color: #ef4444; }

/* Mode chips on the live question control (studio) */
.qz-live-chips { display: inline-flex; gap: 4px; margin-left: 8px; }
.qz-live-chip {
  padding: 2px 8px; border-radius: 10px;
  font: 700 10px/1 'Inter', sans-serif; letter-spacing: 0.3px;
}
.qz-live-chip--sprint  { background: rgba(56,161,219,0.18); color: #38A1DB; }
.qz-live-chip--poll    { background: rgba(167,139,250,0.18); color: #a78bfa; }
.qz-live-chip--boss    { background: rgba(251,191,36,0.18); color: #fbbf24; }
.qz-live-chip--penalty { background: rgba(239,68,68,0.18); color: #ef4444; }

.qz-live--boss .qz-live-question {
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.qz-live--boss { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2); border-radius: 12px; }

/* Live mode toggles row (in question control during quiz) */
.qz-q-modes--live {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  align-items: center;
}
.qz-live-modes-label {
  font: 600 10px/1 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.40);
  margin-right: 4px;
}

/* Host vote button (poll questions in studio) */
.qz-host-vote-btn {
  margin-left: auto; padding: 4px 10px; border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.10); color: #a78bfa;
  font: 600 11px/1 'Inter', sans-serif; cursor: pointer;
  transition: all 0.15s;
}
.qz-host-vote-btn:hover { background: rgba(167, 139, 250, 0.20); color: #fff; }
.qz-host-vote-btn.is-voted {
  background: #a78bfa; color: #1a1828; border-color: #a78bfa;
}

/* Feedback mode buttons */
.qz-fb-btn {
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.qz-fb-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.qz-fb-btn.qz-fb-active[data-fb="instant"] {
  background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.4);
  color: #34d399; box-shadow: 0 0 12px rgba(52,211,153,0.15);
}
.qz-fb-btn.qz-fb-active[data-fb="on_reveal"] {
  background: rgba(56,161,219,0.15); border-color: rgba(56,161,219,0.4);
  color: #38A1DB; box-shadow: 0 0 12px rgba(56,161,219,0.15);
}
.qz-fb-btn.qz-fb-active[data-fb="troll"] {
  background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4);
  color: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.15);
}

.qz-lobby-players { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 36px; }
.qz-lobby-empty { font-size: 12px; color: rgba(255,255,255,0.2); font-style: italic; }

.qz-player-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid; border-radius: 18px;
  font: 500 11px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.75);
  animation: qzChipIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes qzChipIn { from { transform: scale(0.85); opacity: 0; } }
.qz-player-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 700 10px/1 'Inter', system-ui, sans-serif; color: #000;
}
.qz-player-avatar--img { object-fit: cover; padding: 0; border: 1px solid rgba(0,0,0,0.25); }

/* ═══ Avatar idle animation — organic float + breathe ═══ */
/* Applied to static PNG avatars; animated WebPs already move so we skip them via data-attr */
/* 3 keyframe variants with independent scaleX/scaleY + skew → soft jelly wobble */
@keyframes qvAvatarIdleA {
  0%, 100% { transform: translateY(0)      scaleX(1)     scaleY(1)     rotate(0deg)     skewX(0deg); }
  22%      { transform: translateY(-2.5px) scaleX(1.025) scaleY(0.98)  rotate(-1.1deg)  skewX(0.7deg); }
  48%      { transform: translateY(0.5px)  scaleX(0.985) scaleY(1.015) rotate(0deg)     skewX(0deg); }
  72%      { transform: translateY(-2px)   scaleX(1.012) scaleY(1.022) rotate(1.1deg)   skewX(-0.6deg); }
  92%      { transform: translateY(0)      scaleX(1.008) scaleY(0.995) rotate(-0.3deg)  skewX(0.2deg); }
}
@keyframes qvAvatarIdleB {
  0%, 100% { transform: translateY(0)      scaleX(1)     scaleY(1)     rotate(0deg)    skewY(0deg); }
  18%      { transform: translateY(-2px)   scaleX(0.985) scaleY(1.025) rotate(1deg)    skewY(-0.6deg); }
  42%      { transform: translateY(1px)    scaleX(1.022) scaleY(0.99)  rotate(0deg)    skewY(0.3deg); }
  68%      { transform: translateY(-2.5px) scaleX(0.99)  scaleY(1.018) rotate(-1.2deg) skewY(0.5deg); }
  88%      { transform: translateY(-0.5px) scaleX(1.012) scaleY(0.995) rotate(0.2deg)  skewY(-0.15deg); }
}
@keyframes qvAvatarIdleC {
  0%, 100% { transform: translateY(0)      scaleX(1)     scaleY(1)     rotate(0deg)    skewX(0deg)    skewY(0deg); }
  25%      { transform: translateY(-1.5px) scaleX(1.018) scaleY(1.018) rotate(-0.8deg) skewX(-0.4deg) skewY(0.25deg); }
  50%      { transform: translateY(-3px)   scaleX(0.985) scaleY(1.028) rotate(0deg)    skewX(0deg)    skewY(-0.55deg); }
  75%      { transform: translateY(-0.5px) scaleX(1.022) scaleY(0.985) rotate(0.9deg)  skewX(0.5deg)  skewY(0.2deg); }
  95%      { transform: translateY(0.5px)  scaleX(0.995) scaleY(1.005) rotate(0deg)    skewX(-0.15deg) skewY(0deg); }
}
.qv-wp-avatar:not([data-animated]),
.qv-waiting-my-avatar:not([data-animated]),
.qv-avatar-btn img:not([data-animated]),
.qz-player-avatar--img:not([data-animated]) {
  animation: qvAvatarIdleA 3.4s ease-in-out infinite !important;
  transform-origin: 50% 65%;
  will-change: transform;
}
/* Stagger so 30+ avatars never move in lock-step */
.qv-wp-card:nth-child(3n)   .qv-wp-avatar { animation-delay: -0.6s; animation-duration: 3.7s; }
.qv-wp-card:nth-child(3n+1) .qv-wp-avatar { animation-delay: -1.4s; animation-duration: 3.2s; }
.qv-wp-card:nth-child(3n+2) .qv-wp-avatar { animation-delay: -2.1s; animation-duration: 3.9s; }
.qz-player-chip:nth-child(3n)   .qz-player-avatar--img { animation-delay: -0.5s; animation-duration: 3.6s; }
.qz-player-chip:nth-child(3n+1) .qz-player-avatar--img { animation-delay: -1.7s; animation-duration: 3.1s; }
.qz-player-chip:nth-child(3n+2) .qz-player-avatar--img { animation-delay: -2.3s; animation-duration: 3.8s; }
/* Picker: 9-cell grid — each avatar gets unique keyframe variant + delay + duration */
.qv-avatar-btn:nth-child(1) img { animation-name: qvAvatarIdleA !important; animation-delay: -0.20s; animation-duration: 3.6s; }
.qv-avatar-btn:nth-child(2) img { animation-name: qvAvatarIdleB !important; animation-delay: -1.40s; animation-duration: 3.1s; }
.qv-avatar-btn:nth-child(3) img { animation-name: qvAvatarIdleC !important; animation-delay: -2.55s; animation-duration: 3.9s; }
.qv-avatar-btn:nth-child(4) img { animation-name: qvAvatarIdleB !important; animation-delay: -0.85s; animation-duration: 3.3s; }
.qv-avatar-btn:nth-child(5) img { animation-name: qvAvatarIdleC !important; animation-delay: -2.10s; animation-duration: 3.7s; }
.qv-avatar-btn:nth-child(6) img { animation-name: qvAvatarIdleA !important; animation-delay: -1.65s; animation-duration: 3.5s; }
.qv-avatar-btn:nth-child(7) img { animation-name: qvAvatarIdleC !important; animation-delay: -0.45s; animation-duration: 3.8s; }
.qv-avatar-btn:nth-child(8) img { animation-name: qvAvatarIdleA !important; animation-delay: -2.95s; animation-duration: 3.2s; }
.qv-avatar-btn:nth-child(9) img { animation-name: qvAvatarIdleB !important; animation-delay: -1.25s; animation-duration: 3.4s; }
/* Lobby chips and waiting list — same alternation by position */
.qv-wp-card:nth-child(3n)   .qv-wp-avatar { animation-name: qvAvatarIdleB !important; }
.qv-wp-card:nth-child(3n+2) .qv-wp-avatar { animation-name: qvAvatarIdleC !important; }
.qz-player-chip:nth-child(3n)   .qz-player-avatar--img { animation-name: qvAvatarIdleB !important; }
.qz-player-chip:nth-child(3n+2) .qz-player-avatar--img { animation-name: qvAvatarIdleC !important; }
@media (prefers-reduced-motion: reduce) {
  .qv-wp-avatar, .qv-waiting-my-avatar, .qv-avatar-btn img, .qz-player-avatar--img {
    animation: none !important;
  }
}
/* ── Hover zoom — pause idle motion and pop ── */
.qv-wp-card { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); cursor: default; }
.qv-wp-card:hover { transform: scale(1.12); z-index: 2; }
.qv-wp-card:hover .qv-wp-avatar { animation-play-state: paused; transform: scale(1.05); }
.qz-player-chip { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.qz-player-chip:hover { transform: scale(1.15); z-index: 2; }
.qz-player-chip:hover .qz-player-avatar--img { animation-play-state: paused; }
.qv-waiting-my-avatar { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.qv-waiting-my-avatar:hover { transform: scale(1.15) rotate(-3deg); animation-play-state: paused; }

/* ═══ HALO — premium aurora glow (single-tone, layered) ═══ */
/* Avatar's own color is passed via inline style: --halo-color: <player_color> */
.qv-halo {
  position: relative; display: inline-block; border-radius: 50%;
  line-height: 0; overflow: hidden; /* clips wobbling img to halo bounds */
  --halo-color: #fbbf24;
  /* Aurora glow lives outside via box-shadow (overflow:hidden does NOT clip box-shadow) */
  box-shadow:
    0 0 6px 1px color-mix(in srgb, var(--halo-color) 38%, transparent),
    0 0 14px 3px color-mix(in srgb, var(--halo-color) 18%, transparent),
    0 0 22px 5px color-mix(in srgb, var(--halo-color) 8%, transparent);
  animation: vaHaloBreathe 3.6s ease-in-out infinite;
  will-change: filter;
}
.qv-halo--square { border-radius: 14px; }
.qv-halo > img { position: relative; z-index: 1; display: block; border-radius: inherit; }

/* Rotating gradient border (mask trick) — stays inside halo bounds, not clipped */
.qv-halo::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; z-index: 2; pointer-events: none;
  padding: 1px;
  background: conic-gradient(from 0deg,
    transparent 0%,
    color-mix(in srgb, var(--halo-color) 75%, white 25%) 25%,
    transparent 50%,
    color-mix(in srgb, var(--halo-color) 75%, white 25%) 75%,
    transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: vaHaloRotate 7s linear infinite;
  opacity: 0.7;
}
@keyframes vaHaloBreathe {
  0%, 100% { filter: brightness(0.95); }
  50%      { filter: brightness(1.15); }
}
@keyframes vaHaloRotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .qv-halo, .qv-halo::after { animation: none; }
}

/* ═══ POP-IN — refined spring (subtle, no overshoot flash) ═══ */
@keyframes qzChipPop {
  0%   { transform: scale(0.85) translateY(4px); opacity: 0; }
  60%  { transform: scale(1.04) translateY(0);  opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
.qz-player-chip.qv-pop-in { animation: qzChipPop 0.42s cubic-bezier(0.22, 1, 0.36, 1); }

/* ═══ HOT STREAK — gold sparkle particles when streak >= 3 ═══ */
.qz-player-chip.qv-hot {
  border-color: rgba(251,191,36,0.7) !important;
  box-shadow: 0 0 14px rgba(251,191,36,0.35), inset 0 0 10px rgba(251,191,36,0.08);
}
.qz-player-chip.qv-hot::before,
.qz-player-chip.qv-hot::after {
  content: '✨'; position: absolute; pointer-events: none;
  font-size: 12px; line-height: 1; z-index: 5;
  animation: vaSparkle 1.4s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(251,191,36,0.9);
}
.qz-player-chip.qv-hot::before { top: -6px; right: 6px; animation-delay: 0s; }
.qz-player-chip.qv-hot::after  { bottom: -4px; left: 18px; animation-delay: 0.7s; font-size: 10px; }
.qz-player-chip.qv-hot { position: relative; }
@keyframes vaSparkle {
  0%, 100% { transform: translateY(0) scale(0.85) rotate(0deg); opacity: 0.5; }
  50%      { transform: translateY(-7px) scale(1.25) rotate(15deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-player-chip.qv-hot::before, .qz-player-chip.qv-hot::after { animation: none; }
}
.qz-player-name { flex: 1; }
.qz-kick-btn {
  display: none; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(239, 68, 68, 0.15); border: none;
  color: #f87171; font-size: 12px; line-height: 1;
  cursor: pointer; transition: all 0.15s; padding: 0; margin-left: 2px;
}
.qz-kick-btn:hover { background: rgba(239, 68, 68, 0.35); color: #fff; transform: scale(1.15); }
.qz-player-chip:hover .qz-kick-btn { display: flex; }

/* ── Live Question (Studio) ── */
.qz-live { padding: 6px 0; }
.qz-live-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.qz-live-num {
  background: rgba(251, 191, 36, 0.12); color: #fbbf24;
  padding: 4px 10px; border-radius: 6px;
  font: 600 12px/1 'JetBrains Mono', monospace;
}
.qz-live-diff { font: 500 11px/1 'Inter', system-ui, sans-serif; text-transform: capitalize; }
.qz-live-question { font: 500 15px/1.4 'Inter', system-ui, sans-serif; color: #fff; margin-bottom: 14px; }
.qz-live-options { display: flex; flex-direction: column; gap: 5px; }
.qz-live-opt {
  padding: 7px 10px; background: rgba(255,255,255,0.025);
  border-radius: 7px; font: 400 13px/1.3 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 7px;
}
.qz-live-opt .qz-opt-letter {
  color: #fff; min-width: 22px; height: 22px; border-radius: 5px; font-size: 10px;
}
.qz-live-stats {
  margin-top: 14px; padding: 10px; background: rgba(255,255,255,0.02);
  border-radius: 7px; font-size: 12px; color: rgba(255,255,255,0.4);
}
.qz-stats-lb { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.qz-stats-lb svg { flex-shrink: 0; }
.qz-lb-chip {
  background: rgba(255,255,255,0.05); padding: 3px 7px;
  border-radius: 4px; font: 500 11px/1 'JetBrains Mono', monospace; color: rgba(255,255,255,0.55);
}

/* ── Final Results (both) ── */
.qz-final, .qv-final { text-align: center; }
.qz-final-title, .qv-final-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 20px/1 'Inter', system-ui, sans-serif; color: #fbbf24; margin-bottom: 14px;
}
.qz-podium, .qv-podium { max-width: 380px; margin: 0 auto; }
.qz-podium-row, .qv-podium-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; margin-bottom: 3px;
  font: 400 14px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.6);
}
.qz-podium-row.qz-top3, .qv-podium-row.qv-top3 {
  background: rgba(251, 191, 36, 0.05); border: 1px solid rgba(251, 191, 36, 0.08);
}
.qv-podium-row.qv-is-me { background: rgba(56, 161, 219, 0.08); border: 1px solid rgba(56, 161, 219, 0.15); }
.qz-podium-medal, .qv-podium-medal { font: 700 18px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'JetBrains Mono', monospace; min-width: 24px; color: #fbbf24; }
.qz-podium-name, .qv-podium-name { flex: 1; font-weight: 600; color: #fff; }
.qz-podium-score, .qv-podium-score { font: 600 13px/1 'JetBrains Mono', monospace; color: #fbbf24; }

/* ═══════════════════════════════════════════
   VIEWER QUIZ UI — designed for distance readability
   ═══════════════════════════════════════════ */
.qv-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  animation: qzFadeIn 0.3s ease;
}

.qv-card {
  width: clamp(340px, 75vw, 1100px);
  max-height: 92vh; overflow-y: auto;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 48px) clamp(18px, 3vw, 44px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
  animation: qzSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* ── Join Screen ── */
.qv-join { text-align: center; }
.qv-join-header { margin-bottom: 16px; }
.qv-join-icon { margin-bottom: 4px; color: #fbbf24; }
.qv-join-title { font: 800 clamp(24px, 3vw, 42px)/1 'Inter', system-ui, sans-serif; color: #fbbf24; margin-bottom: 2px; }
.qv-join-sub { font-size: clamp(13px, 1.4vw, 20px); color: rgba(255,255,255,0.35); }

.qv-join-row {
  display: flex; gap: 10px; align-items: center;
  margin-top: 16px;
}

.qv-input {
  flex: 1; min-width: 0;
  padding: clamp(12px, 1.5vh, 20px) clamp(14px, 1.5vw, 24px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  color: #fff; font: 500 clamp(15px, 1.8vh, 24px)/1 'Inter', system-ui, sans-serif;
  text-align: center; outline: none; transition: all 0.2s;
  box-sizing: border-box;
}
.qv-input:focus { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,0.12); }
.qv-input.qv-shake { animation: qvShake 0.4s ease; }
@keyframes qvShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ── Avatar Picker ── */
.qv-avatar-grid { text-align: center; }
.qv-avatar-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px);
  justify-items: center; max-width: clamp(220px, 30vw, 380px); margin: 0 auto;
}
.qv-avatar-btn {
  width: clamp(60px, 7vh, 100px); height: clamp(60px, 7vh, 100px); border-radius: 50%;
  border: 2px solid transparent; background: transparent;
  cursor: pointer; padding: 0; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qv-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.qv-avatar-btn .qv-halo { width: 100%; height: 100%; border-radius: 50%; }
.qv-avatar-btn:hover { transform: scale(1.1); border-color: rgba(251,191,36,0.3); }
.qv-avatar-btn.qv-selected {
  border-color: #fbbf24; transform: scale(1.12);
  box-shadow: 0 0 14px rgba(251,191,36,0.3);
}
.qv-avatar-refresh {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 6px auto 0; padding: 4px 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; color: rgba(255,255,255,0.35); cursor: pointer;
  font: 500 11px/1 'Inter', system-ui, sans-serif; transition: all 0.15s;
}
.qv-avatar-refresh:hover { background: rgba(255,255,255,0.08); color: #fff; }

.qv-btn { border: none; cursor: pointer; border-radius: 14px; font: 600 clamp(15px, 1.8vh, 24px)/1 'Inter', system-ui, sans-serif; transition: all 0.15s; }
.qv-btn:active { transform: scale(0.96); }
.qv-btn--join {
  padding: clamp(12px, 1.5vh, 22px) clamp(24px, 3vw, 40px); flex-shrink: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000;
}
.qv-btn--join:hover { background: linear-gradient(135deg, #fcd34d, #fbbf24); }
.qv-btn--change {
  margin-top: 12px; padding: 8px 16px;
  background: transparent; color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1) !important; font-size: 12px;
}
.qv-btn--change:hover { color: #fff; border-color: rgba(255,255,255,0.3) !important; background: rgba(255,255,255,0.06); }

/* ── Waiting ── */
.qv-waiting { text-align: center; position: relative; }
.qv-waiting-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.qv-waiting-top-bar .qz-vol-wrap { position: static; }
.qv-waiting-top-bar .qz-vol-slider { opacity: 1; width: 70px; pointer-events: all; }
.qv-dismiss-btn {
  background: none; border: none; color: rgba(255,255,255,0.3);
  font-size: 24px; cursor: pointer; padding: 4px 8px; line-height: 1;
  border-radius: 6px; transition: all 0.2s; margin-left: auto;
}
.qv-dismiss-btn:hover { color: #f87171; background: rgba(248,113,113,0.1); }
.qv-join .qv-dismiss-btn { position: absolute; top: 10px; right: 12px; }
.qv-waiting-icon { color: #34d399; margin-bottom: 6px; }
.qv-waiting-my-avatar {
  width: clamp(72px, 10vh, 140px); height: clamp(72px, 10vh, 140px); border-radius: 12px; object-fit: cover;
  margin-bottom: 8px;
}
.qv-waiting-name { font: 700 clamp(20px, 2.5vh, 36px)/1 'Inter', system-ui, sans-serif; color: #fff; margin-bottom: 6px; }
.qv-waiting-text { font-size: clamp(14px, 1.6vh, 22px); color: rgba(255,255,255,0.35); }
.qv-dots span { display: inline-block; font-size: 26px; color: rgba(255,255,255,0.2); animation: qvDot 1.4s infinite ease-in-out both; }
.qv-dots span:nth-child(2) { animation-delay: 0.2s; }
.qv-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes qvDot { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Waiting players list */
.qv-waiting-players { margin-top: 20px; }
.qv-waiting-label {
  font: 500 clamp(11px, 1.2vh, 15px)/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.25);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.qv-waiting-grid {
  display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 16px); justify-content: center;
}
.qv-wp-card {
  display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 0.5vh, 8px);
  padding: clamp(8px, 1vh, 16px) clamp(10px, 1.2vw, 20px); min-width: clamp(64px, 8vw, 120px);
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  animation: qvWpIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes qvWpIn { from { transform: scale(0.85); opacity: 0; } }
.qv-wp-card.qv-wp-me { border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.04); }
.qv-wp-avatar {
  width: clamp(44px, 5vh, 72px); height: clamp(44px, 5vh, 72px); border-radius: 8px; object-fit: cover;
}
.qv-wp-avatar-circle {
  width: clamp(44px, 5vh, 72px); height: clamp(44px, 5vh, 72px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(16px, 2vh, 26px)/1 'Inter', system-ui, sans-serif; color: #000;
}
.qv-wp-name {
  font: 500 clamp(11px, 1.2vh, 16px)/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.6);
  max-width: clamp(70px, 10vw, 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Question Display — LARGE for distance ── */
.qv-question {
  padding: clamp(14px, 2vw, 24px) clamp(18px, 3vw, 44px);
  box-sizing: border-box;
}

/* ── Question modes (viewer) ── */
.qv-mode-chips {
  display: flex; gap: 6px; align-items: center;
}
.qv-mode-chip {
  padding: 4px 10px; border-radius: 12px;
  font: 700 11px/1 'Inter', sans-serif; letter-spacing: 0.3px;
}
.qv-mode-chip--sprint  { background: rgba(56,161,219,0.20); color: #38A1DB; }
.qv-mode-chip--poll    { background: rgba(167,139,250,0.20); color: #a78bfa; }
.qv-mode-chip--boss    { background: rgba(251,191,36,0.20); color: #fbbf24; animation: qvBossPulse 1.5s ease-in-out infinite; }
.qv-mode-chip--penalty { background: rgba(239,68,68,0.20); color: #ef4444; animation: qvBossPulse 1.5s ease-in-out infinite; }
@keyframes qvBossPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow: 0 0 12px rgba(239,68,68,0.5); }
}

.qv-question--boss {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.45),
              0 0 32px rgba(239, 68, 68, 0.15);
}
.qv-question--boss .qv-q-text {
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}
.qv-question--poll {
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.30);
}

/* ── Poll row: histogram (left) + award (right) side by side ── */
.qv-poll-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}
.qv-poll-row > .qv-poll-result,
.qv-poll-row > .qv-feedback {
  margin-top: 0; /* override per-element top margin */
  height: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .qv-poll-row { grid-template-columns: 1fr; }
}

/* ── Poll result histogram (compact 2×2 grid) ── */
.qv-poll-result {
  margin-top: 12px; padding: 10px 12px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
}
.qv-poll-result-title {
  font: 700 12px/1.3 'Inter', sans-serif; color: #a78bfa;
  margin-bottom: 8px; letter-spacing: 0.3px;
}
.qv-poll-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.qv-poll-bar-row {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.qv-poll-bar-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font: 700 12px/1 'Inter', sans-serif; color: #fff;
  flex-shrink: 0;
}
.qv-poll-bar-track {
  flex: 1 1 auto; min-width: 0;
  height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.qv-poll-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.qv-poll-bar-pct {
  font: 600 11px/1 'JetBrains Mono', monospace; color: #fff;
  min-width: 32px; text-align: right;
  flex-shrink: 0;
}
/* Stack to single column only on very narrow screens */
@media (max-width: 380px) {
  .qv-poll-bars-grid { grid-template-columns: 1fr; }
}

/* Poll feedback (after voting) */
.qv-fb-poll {
  text-align: center;
  background: rgba(167, 139, 250, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.30);
}
.qv-fb-poll .qv-fb-text { color: #a78bfa; }

/* ── Persistent mode banner at top of the question card ── */
.qv-question { position: relative; }
.qv-mode-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 9px 16px;
  font: 800 clamp(13px, 1.6vw, 18px)/1 'Inter', system-ui, sans-serif;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  z-index: 5;
  border-radius: inherit;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.qv-question:has(.qv-mode-banner) { padding-top: clamp(46px, 5vw, 60px); }
@keyframes qvBannerSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.qv-mode-banner--boss {
  background: linear-gradient(90deg,
    rgba(239,68,68,0.35) 0%,
    rgba(239,68,68,0.85) 50%,
    rgba(239,68,68,0.35) 100%);
  text-shadow: 0 0 20px rgba(255,200,200,0.8), 0 0 40px rgba(239,68,68,0.6);
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, qvBossBanner 1.5s ease-in-out 0.4s infinite;
}
.qv-mode-banner--sprint {
  background: linear-gradient(90deg,
    rgba(56,161,219,0.30) 0%,
    rgba(56,161,219,0.75) 50%,
    rgba(56,161,219,0.30) 100%);
  text-shadow: 0 0 16px rgba(180,220,255,0.7), 0 0 32px rgba(56,161,219,0.4);
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, qvSprintBanner 0.9s ease-in-out 0.4s infinite;
}
.qv-mode-banner--poll {
  background: linear-gradient(90deg,
    rgba(167,139,250,0.30) 0%,
    rgba(167,139,250,0.75) 50%,
    rgba(167,139,250,0.30) 100%);
  text-shadow: 0 0 16px rgba(220,210,255,0.7), 0 0 32px rgba(167,139,250,0.4);
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, qvPollBanner 3s ease-in-out 0.4s infinite;
}
.qv-mode-banner--penalty {
  background: linear-gradient(90deg,
    rgba(127,29,29,0.45) 0%,
    rgba(185,28,28,0.85) 50%,
    rgba(127,29,29,0.45) 100%);
  text-shadow: 0 0 16px rgba(255,180,180,0.7), 0 0 32px rgba(220,38,38,0.4);
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, qvBossBanner 1.5s ease-in-out 0.4s infinite;
}
/* Combo Boss + Castigo: high-stakes banner with three sections */
.qv-mode-banner--stakes {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  background: linear-gradient(90deg,
    rgba(251, 191, 36, 0.32) 0%,
    rgba(0, 0, 0, 0.50) 50%,
    rgba(239, 68, 68, 0.32) 100%);
  letter-spacing: 1px;
  text-shadow: none;
  animation: qvBannerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, qvStakesBanner 2s ease-in-out 0.4s infinite alternate;
}
.qv-banner-side {
  flex: 0 0 auto;
  font: 800 clamp(13px, 1.6vw, 17px)/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Inter', system-ui, sans-serif;
  letter-spacing: 1px;
}
.qv-banner-side--gold { color: #fbbf24; text-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }
.qv-banner-side--red  { color: #ef4444; text-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }
.qv-banner-label {
  flex: 1 1 auto;
  text-align: center;
  letter-spacing: clamp(2px, 0.4vw, 4px);
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55), 0 0 28px rgba(239, 68, 68, 0.35);
}
@keyframes qvStakesBanner {
  0%   { filter: brightness(1); }
  100% { filter: brightness(1.20); }
}

.qv-question--penalty {
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.40),
              0 0 28px rgba(220, 38, 38, 0.18);
}
@keyframes qvBossBanner {
  0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); filter: brightness(1); }
  50%      { box-shadow: 0 6px 28px rgba(239,68,68,0.55); filter: brightness(1.18); }
}
@keyframes qvSprintBanner {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.18); }
}
@keyframes qvPollBanner {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── 1-shot full-screen flash on question entry ── */
.qv-mode-flash {
  position: fixed;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  z-index: 1000;
  pointer-events: none;
  padding: 0 24px;
  font: 900 clamp(36px, 6.5vw, 88px)/1.05 'Inter', system-ui, sans-serif;
  letter-spacing: clamp(2px, 0.4vw, 8px);
  text-transform: uppercase;
  text-align: center;
  word-break: break-word;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 70%);
  animation: qvFlashLifecycle 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.qv-mode-flash--boss   { color: #fbbf24; text-shadow: 0 0 30px rgba(251,191,36,0.9), 0 0 80px rgba(251,191,36,0.6); }
.qv-mode-flash--sprint { color: #38A1DB; text-shadow: 0 0 30px rgba(56,161,219,0.9), 0 0 80px rgba(56,161,219,0.6); }
.qv-mode-flash--poll   { color: #a78bfa; text-shadow: 0 0 30px rgba(167,139,250,0.9), 0 0 80px rgba(167,139,250,0.6); }
.qv-mode-flash--penalty { color: #ef4444; text-shadow: 0 0 30px rgba(239,68,68,0.9), 0 0 80px rgba(239,68,68,0.6); }
.qv-mode-flash--stakes  { color: #fff; text-shadow: 0 0 30px rgba(251,191,36,0.6), 0 0 80px rgba(239,68,68,0.55); }
.qv-mode-flash-mult {
  display: block;
  margin-top: 8px;
  font-size: 1.4em; font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(239,68,68,1), 0 0 80px rgba(239,68,68,0.7);
}
@keyframes qvFlashLifecycle {
  0%   { opacity: 0; transform: scale(0.6); }
  18%  { opacity: 1; transform: scale(1.05); }
  35%  { transform: scale(1); }
  78%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.4); display: none; }
}
.qv-mode-flash--boss   { animation-name: qvFlashLifecycle, qvFlashShake; animation-duration: 1.6s, 0.5s; animation-iteration-count: 1, 3; animation-timing-function: cubic-bezier(0.16,1,0.3,1), ease-in-out; }
@keyframes qvFlashShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.qv-q-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.qv-q-num {
  background: rgba(251,191,36,0.12); color: #fbbf24;
  padding: 5px 12px; border-radius: 8px;
  font: 600 clamp(13px, 1.6vw, 18px)/1 'JetBrains Mono', monospace;
}
.qv-q-timer {
  font: 700 clamp(28px, 4vw, 48px)/1 'JetBrains Mono', monospace; color: #fff;
  min-width: 44px; text-align: center;
}
.qv-q-timer.qv-timer-urgent { color: #ef4444; animation: qvPulse 0.5s infinite alternate; }
@keyframes qvPulse { to { transform: scale(1.08); } }
.qv-q-score {
  display: flex; align-items: center; gap: 3px;
  font: 500 14px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.45);
}
.qv-q-score svg { color: #fbbf24; }

.qv-q-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Timer progress bar */
.qv-timer-bar {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 16px; overflow: hidden;
}
.qv-timer-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 1s linear;
}
.qv-timer-bar-fill.qv-bar-urgent {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.qv-q-text {
  font: 600 clamp(18px, 2.6vw, 32px)/1.35 'Inter', system-ui, sans-serif;
  color: #fff; text-align: center; margin-bottom: clamp(14px, 2vw, 28px);
}

.qv-q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  box-sizing: border-box;
}

.qv-q-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: clamp(16px, 2.5vw, 30px) clamp(12px, 1.5vw, 22px);
  border: 3px solid transparent; border-radius: 16px;
  cursor: pointer; color: #fff;
  min-height: clamp(70px, 10vw, 130px); transition: all 0.12s; opacity: 0.92;
  font-family: 'Inter', system-ui, sans-serif;
}
.qv-q-btn:hover { opacity: 1; transform: scale(1.02); }
.qv-q-btn:active { transform: scale(0.97); }
/* Use border instead of outline — renders INSIDE, never clips with overflow */
.qv-q-btn.qv-selected { border-color: #fff; opacity: 1; }
.qv-q-btn.qv-correct-answer { border-color: #34d399; box-shadow: 0 0 24px rgba(52,211,153,0.25); }
.qv-q-btn.qv-wrong-answer { opacity: 0.35; border-color: #ef4444; }
/* Reveal: dim wrong answers, glow correct */
.qv-q-btn.qv-reveal-dimmed {
  opacity: 0.25 !important;
  filter: grayscale(0.6) brightness(0.6);
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.qv-q-btn.qv-reveal-glow {
  transform: scale(1.04);
  border-color: #34d399;
  box-shadow: 0 0 32px rgba(52,211,153,0.4), 0 0 64px rgba(52,211,153,0.15), inset 0 0 20px rgba(52,211,153,0.08);
  animation: qvRevealPulse 1.5s ease-in-out infinite;
  z-index: 1;
  position: relative;
}
@keyframes qvRevealPulse {
  0%, 100% { box-shadow: 0 0 32px rgba(52,211,153,0.4), 0 0 64px rgba(52,211,153,0.15); border-color: #34d399; }
  50% { box-shadow: 0 0 48px rgba(52,211,153,0.55), 0 0 96px rgba(52,211,153,0.25); border-color: #6ee7b7; }
}
.qv-q-btn[disabled] { cursor: default; }

.qv-q-letter { font: 800 clamp(18px, 2.2vw, 28px)/1 'Inter', system-ui, sans-serif; opacity: 0.6; }
.qv-q-opt-text { font: 500 clamp(14px, 1.8vw, 22px)/1.3 'Inter', system-ui, sans-serif; text-align: center; }

/* ── Answer Feedback ── */
.qv-feedback {
  text-align: center; padding: 16px; margin-top: 16px; border-radius: 12px;
  animation: qzSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.qv-fb-correct { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); }
.qv-fb-wrong { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); }
.qv-fb-timeout { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); display: flex; flex-direction: row; align-items: center; gap: 6px; }
.qv-fb-icon { color: inherit; }
.qv-fb-icon svg { width: 28px; height: 28px; }
.qv-fb-correct .qv-fb-icon { color: #34d399; }
.qv-fb-wrong .qv-fb-icon { color: #ef4444; }
.qv-fb-text { font: 600 18px/1 'Inter', system-ui, sans-serif; color: #fff; }
.qv-fb-points { font: 700 15px/1 'JetBrains Mono', monospace; color: #fbbf24; }
.qv-fb-streak { font-size: 13px; color: #f97316; display: flex; align-items: center; gap: 4px; }
.qv-fb-suspense {
  background: rgba(56,161,219,0.08); border: 1px solid rgba(56,161,219,0.2);
  animation: qvSuspensePulse 2s ease-in-out infinite;
}
.qv-fb-suspense .qv-fb-icon { color: #38A1DB; }
.qv-fb-suspense .qv-fb-text { color: #38A1DB; }
.qv-fb-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
@keyframes qvSuspensePulse {
  0%, 100% { border-color: rgba(56,161,219,0.2); box-shadow: none; }
  50% { border-color: rgba(56,161,219,0.5); box-shadow: 0 0 16px rgba(56,161,219,0.1); }
}

/* ── Mini Leaderboard ── */
.qv-mini-lb { margin-top: 14px; padding: 10px; background: rgba(255,255,255,0.02); border-radius: 9px; }
.qv-mini-lb-title { font: 600 12px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.35); margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.qv-mini-lb-row {
  display: flex; align-items: center; gap: 7px; padding: 3px 0;
  font: 400 12px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.55);
}
.qv-mini-lb-row.qv-is-me { color: #38A1DB; font-weight: 600; }
.qv-mini-rank { min-width: 14px; color: rgba(255,255,255,0.25); font: 600 11px/1 'JetBrains Mono', monospace; }

/* ── Final Leaderboard (Viewer) ── */
.qv-final { text-align: center; }
.qv-final-icon { color: #fbbf24; margin-bottom: 6px; }
.qv-final-rank { font: 400 16px/1 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.qv-final-rank strong { color: #38A1DB; }

/* ═══════════════════════════════════════════
   WORKSHOP RECAP — Studio + Viewer
   ═══════════════════════════════════════════ */

/* ── Accent Button ── */
.qz-btn--accent {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.08));
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  font-weight: 600;
}
.qz-btn--accent:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.25), rgba(245,158,11,0.15));
  color: #fcd34d;
}

/* ── Studio Recap (.qz-recap-*) ── */
.qz-recap { padding: 4px 0; }

.qz-recap-header { text-align: center; margin-bottom: 16px; }
.qz-recap-icon { color: #fbbf24; margin-bottom: 4px; }
.qz-recap-title {
  font: 700 20px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24; margin-bottom: 4px;
}
.qz-recap-sub {
  font: 400 13px/1.3 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.35);
}

.qz-recap-modules { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.qz-recap-module {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 12px;
  animation: qzRecapSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qzRecapSlideIn {
  from { transform: translateX(-12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.qz-recap-mod-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.qz-recap-mod-num {
  min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.12); color: #fbbf24;
  font: 700 11px/1 'JetBrains Mono', monospace; border-radius: 6px;
}
.qz-recap-mod-title {
  flex: 1; font: 500 13px/1.2 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.8);
}
.qz-recap-mod-qs {
  font: 400 11px/1 'JetBrains Mono', monospace; color: rgba(255,255,255,0.25);
}

.qz-recap-mod-players { display: flex; flex-direction: column; gap: 3px; }

.qz-recap-player-row {
  display: flex; align-items: center; gap: 8px;
  font: 400 12px/1 'Inter', system-ui, sans-serif;
}
.qz-recap-player-name {
  min-width: 70px; font-weight: 600; font-size: 11px;
}
.qz-recap-bar-wrap {
  flex: 1; height: 6px; background: rgba(255,255,255,0.05);
  border-radius: 3px; overflow: hidden;
}
.qz-recap-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #fbbf24, #34d399);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.qz-recap-player-pct {
  min-width: 32px; text-align: right;
  font: 600 11px/1 'JetBrains Mono', monospace; color: rgba(255,255,255,0.5);
}
.qz-recap-player-score {
  min-width: 48px; text-align: right;
  font: 500 11px/1 'JetBrains Mono', monospace; color: #fbbf24;
}

/* Global Ranking (Studio) */
.qz-recap-global {
  margin-top: 4px; padding: 12px;
  background: rgba(251,191,36,0.03);
  border: 1px solid rgba(251,191,36,0.08);
  border-radius: 10px;
}
.qz-recap-global-title {
  display: flex; align-items: center; gap: 6px;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24; margin-bottom: 8px;
}
.qz-recap-rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 6px; margin-bottom: 2px;
  font: 400 13px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.6);
}
.qz-recap-rank-row.qz-recap-top3 {
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.06);
}
.qz-recap-stat {
  font: 400 11px/1 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.35);
}

/* ── Viewer Recap (.qv-recap-*) ── */
.qv-recap { position: relative; }
.qv-recap-header { text-align: center; margin-bottom: 20px; }
.qv-recap-title {
  font: 800 28px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24; margin-bottom: 4px;
}
.qv-recap-sub {
  font: 400 15px/1.3 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.35);
}

.qv-recap-modules { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.qv-recap-module {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  animation: qzRecapSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qv-recap-mod-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.qv-recap-mod-num {
  min-width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: rgba(251,191,36,0.12); color: #fbbf24;
  font: 700 12px/1 'JetBrains Mono', monospace; border-radius: 7px;
}
.qv-recap-mod-title {
  flex: 1; font: 600 15px/1.2 'Inter', system-ui, sans-serif; color: rgba(255,255,255,0.85);
}

.qv-recap-mod-stats { display: flex; flex-direction: column; gap: 6px; }

.qv-recap-bar-wrap {
  width: 100%; height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.qv-recap-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #fbbf24, #34d399);
  animation: qvRecapBarGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes qvRecapBarGrow {
  from { width: 0 !important; }
}

.qv-recap-mod-detail {
  display: flex; justify-content: space-between;
  font: 400 13px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.4);
}
.qv-recap-mod-score {
  font: 600 13px/1 'JetBrains Mono', monospace; color: #fbbf24;
}

/* Personal stats (Viewer) */
.qv-recap-personal {
  text-align: center; margin-bottom: 16px;
  padding: 14px; background: rgba(56,161,219,0.06);
  border: 1px solid rgba(56,161,219,0.12);
  border-radius: 12px;
}
.qv-recap-personal-rank {
  font: 500 16px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.6); margin-bottom: 10px;
}
.qv-recap-personal-rank strong { color: #38A1DB; font-size: 22px; }

.qv-recap-personal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.qv-recap-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px 6px;
}
.qv-recap-stat-value {
  font: 700 22px/1 'JetBrains Mono', monospace; color: #fbbf24;
  margin-bottom: 3px;
}
.qv-recap-stat-label {
  font: 400 11px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.3);
}

/* Top 3 (Viewer) */
.qv-recap-top3 { margin-top: 4px; }
.qv-recap-top3-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 3px;
  font: 400 15px/1 'Inter', system-ui, sans-serif;
  background: rgba(251,191,36,0.03);
  border: 1px solid rgba(251,191,36,0.06);
}
.qv-recap-top3-row.qv-is-me {
  background: rgba(56,161,219,0.08);
  border-color: rgba(56,161,219,0.15);
}
.qv-recap-medal { font-size: 20px; }
.qv-recap-top3-name { flex: 1; font-weight: 600; }
.qv-recap-top3-score {
  font: 600 14px/1 'JetBrains Mono', monospace; color: #fbbf24;
}

/* ═══════════════════════════════════════════
   SPECTATOR LIVE ANSWERS — Avatar Pop-In Zone
   ═══════════════════════════════════════════ */
.qv-answered-zone {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  min-height: 60px;
  box-sizing: border-box;
}

.qv-az-counter {
  font: 600 12px/1 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.qv-az-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
}

.qv-az-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  position: relative;
}

/* Pop-in entrance animation */
.qv-az-pop {
  animation: qvAzPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes qvAzPop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  80%  { transform: scale(0.9) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.qv-az-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(251,191,36,0.4);
  box-shadow: 0 0 12px rgba(251,191,36,0.15);
}

.qv-az-initial {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 700 18px/1 'Inter', system-ui, sans-serif;
  color: #000;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 12px rgba(139,92,246,0.2);
}

/* Image wrapper for order badge positioning */
.qv-az-img-wrap {
  position: relative;
  display: inline-block;
}

/* Order number badge */
.qv-az-order {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fbbf24;
  color: #000;
  font: 800 10px/18px 'JetBrains Mono', monospace;
  text-align: center;
  border: 2px solid rgba(18,18,24,0.95);
  box-shadow: 0 0 6px rgba(251,191,36,0.3);
  z-index: 1;
}
/* First 3 get special coloring */
.qv-az-avatar:nth-child(1) .qv-az-order { background: #fbbf24; }
.qv-az-avatar:nth-child(2) .qv-az-order { background: #c0c0c0; color: #333; }
.qv-az-avatar:nth-child(3) .qv-az-order { background: #cd7f32; color: #fff; }

.qv-az-name {
  font: 600 10px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.6);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.qv-az-time {
  font: 700 9px/1 'JetBrains Mono', monospace;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  padding: 2px 5px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ── Confetti Particles ── */
.qv-confetti-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  animation: qvConfettiBurst 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes qvConfettiBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   UPGRADED MINI-LEADERBOARD — Gamified
   ═══════════════════════════════════════════ */
.qv-mini-lb {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(251,191,36,0.03), rgba(139,92,246,0.03));
  border: 1px solid rgba(251,191,36,0.08);
  border-radius: 12px;
}
.qv-mini-lb-title {
  font: 700 12px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qv-mini-lb-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  font: 400 13px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  margin-bottom: 2px;
  transition: all 0.2s;
}
.qv-mini-lb-row:nth-child(2) {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.1);
}
.qv-mini-lb-row:nth-child(3) {
  background: rgba(192,192,192,0.04);
  border: 1px solid rgba(192,192,192,0.08);
}
.qv-mini-lb-row:nth-child(4) {
  background: rgba(205,127,50,0.04);
  border: 1px solid rgba(205,127,50,0.08);
}
.qv-mini-lb-row.qv-is-me {
  color: #38A1DB;
  font-weight: 700;
  background: rgba(56,161,219,0.08);
  border: 1px solid rgba(56,161,219,0.15);
}
.qv-mini-rank {
  min-width: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 17px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════
   UPGRADED FINAL LEADERBOARD — Premium Podium
   ═══════════════════════════════════════════ */
.qv-final {
  text-align: center;
}
.qv-final-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 24px/1 'Inter', system-ui, sans-serif;
  color: #fbbf24;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(251,191,36,0.3);
}
.qv-final-icon {
  color: #fbbf24;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(251,191,36,0.4));
}
.qv-final-rank {
  font: 500 16px/1.3 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.qv-final-rank strong { color: #38A1DB; font-size: 20px; }

.qv-podium {
  max-width: 420px;
  margin: 0 auto;
}

.qv-podium-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  font: 500 15px/1 'Inter', system-ui, sans-serif;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
  animation: qzRecapSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.qv-podium-row:nth-child(1) { animation-delay: 0.1s; }
.qv-podium-row:nth-child(2) { animation-delay: 0.2s; }
.qv-podium-row:nth-child(3) { animation-delay: 0.3s; }
.qv-podium-row:nth-child(4) { animation-delay: 0.4s; }
.qv-podium-row:nth-child(5) { animation-delay: 0.5s; }

.qv-podium-row.qv-top3:nth-child(1) {
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(251,191,36,0.03));
  border: 1px solid rgba(251,191,36,0.2);
  box-shadow: 0 0 20px rgba(251,191,36,0.08);
}
.qv-podium-row.qv-top3:nth-child(2) {
  background: linear-gradient(135deg, rgba(192,192,192,0.08), rgba(192,192,192,0.02));
  border: 1px solid rgba(192,192,192,0.15);
}
.qv-podium-row.qv-top3:nth-child(3) {
  background: linear-gradient(135deg, rgba(205,127,50,0.08), rgba(205,127,50,0.02));
  border: 1px solid rgba(205,127,50,0.15);
}

.qv-podium-row.qv-is-me {
  background: rgba(56,161,219,0.1);
  border: 1px solid rgba(56,161,219,0.2);
  box-shadow: 0 0 16px rgba(56,161,219,0.1);
}

.qv-podium-medal {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 22px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.55);
}

.qv-podium-name {
  flex: 1;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.qv-podium-score {
  font: 700 14px/1 'JetBrains Mono', monospace;
  color: #fbbf24;
  display: flex; align-items: center; gap: 4px;
}
.qv-podium-score::before {
  content: '★';
  font-size: 12px;
  opacity: 0.6;
}

/* ── Workshop ranking button ─────────────────────────── */
.qv-ranking-btn {
  position: fixed;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font: 500 13px/1 'Inter', -apple-system, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background 200ms ease-out;
  /* Must be > overlay (10001) but < modal backdrop (10100) */
  z-index: 10050;
}
.qv-ranking-btn:hover {
  transform: translateY(-2px);
  background: rgba(25, 20, 40, 0.7);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}
.qv-ranking-btn:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.6);
  outline-offset: 2px;
}
.qv-ranking-btn-icon { width: 16px; height: 16px; }
.qv-ranking-btn-rank {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
}
.qv-ranking-btn-rank[hidden] { display: none; }
.qv-ranking-btn-rank.is-gold   { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3a2a00; }
.qv-ranking-btn-rank.is-silver { background: linear-gradient(135deg, #e5e7eb, #94a3b8); color: #1f2937; }
.qv-ranking-btn-rank.is-bronze { background: linear-gradient(135deg, #fdba74, #b45309); color: #2a1500; }

/* ── Workshop ranking modal ──────────────────────────── */
.qv-ranking-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10100;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease-out;
}
.qv-ranking-backdrop.is-open { opacity: 1; pointer-events: auto; }
.qv-ranking-modal {
  width: min(420px, 92vw);
  max-height: 70vh;
  display: flex; flex-direction: column;
  background: rgba(20, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.qv-ranking-header {
  position: relative;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qv-ranking-title { font: 600 16px/1.2 'Inter', -apple-system, system-ui, sans-serif; }
.qv-ranking-subtitle { font: 400 12px/1.4 'Inter', sans-serif; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }
.qv-ranking-group-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
}
.qv-ranking-group-row[hidden] { display: none; }
.qv-ranking-group-label {
  font: 500 11px/1 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase; letter-spacing: 0.5px;
}
/* ── Custom dropdown (replaces native <select> for theme consistency) ── */
.qv-dd { position: relative; flex: 1 1 auto; }
.qv-dd-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: 500 12px/1.2 'Inter', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.qv-dd-trigger:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}
.qv-dd.is-open .qv-dd-trigger {
  border-color: rgba(56, 161, 219, 0.45);
  background: rgba(56, 161, 219, 0.08);
}
.qv-dd-value {
  flex: 1 1 auto; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.qv-dd-chev {
  flex-shrink: 0; opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s;
}
.qv-dd.is-open .qv-dd-chev {
  transform: rotate(180deg); opacity: 0.9;
}
.qv-dd-panel {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px;
  list-style: none;
  background: rgba(28, 24, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  max-height: 280px; overflow-y: auto;
  animation: qvDdPop 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes qvDdPop {
  from { transform: translateY(-4px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.qv-dd-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 6px;
  border-radius: 6px;
  font: 500 12px/1.2 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.qv-dd-opt:hover {
  background: rgba(56, 161, 219, 0.14);
  color: #fff;
}
.qv-dd-opt.is-selected {
  color: #38A1DB;
  background: rgba(56, 161, 219, 0.10);
}
.qv-dd-check {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #38A1DB;
}
.qv-dd-label { flex: 1 1 auto; }
.qv-ranking-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 14px;
  border: none; background: rgba(255, 255, 255, 0.06); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.qv-ranking-close:hover { background: rgba(255, 255, 255, 0.12); }
.qv-ranking-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 12px; }
.qv-ranking-row {
  display: grid;
  grid-template-columns: 32px 36px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}
.qv-ranking-row.is-me {
  background: rgba(139, 92, 246, 0.12);
  border-left: 2px solid rgba(139, 92, 246, 0.8);
  padding-left: 8px;
}
.qv-ranking-rank { font: 700 13px/1 'Inter', sans-serif; color: rgba(255, 255, 255, 0.55); text-align: center; }
.qv-ranking-rank.is-gold   { color: #f59e0b; }
.qv-ranking-rank.is-silver { color: #cbd5e1; }
.qv-ranking-rank.is-bronze { color: #b45309; }
.qv-ranking-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.qv-ranking-avatar--blank { display: inline-block; }
.qv-ranking-name {
  font: 500 14px/1.2 'Inter', sans-serif;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qv-ranking-chip {
  padding: 2px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px; color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.qv-ranking-score { font: 600 13px/1 'Inter', sans-serif; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.qv-ranking-footer {
  padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  font: 400 13px/1.4 'Inter', sans-serif; color: rgba(255, 255, 255, 0.7);
}
.qv-ranking-empty { padding: 32px 16px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ── TTS guion button — lives inside .ctx-menu-right HUD ──────── */
.qv-tts-btn { position: relative; /* anchor for absolute progress ring */ }

/* Circular progress ring: tracks audio playback progress around the button */
.qv-tts-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg); /* start from 12 o'clock */
}
.qv-tts-progress-circle {
  fill: none;
  stroke: rgba(56, 161, 219, 0.85);
  stroke-width: 2;
  stroke-linecap: round;
  /* circumference = 2 * π * 22 ≈ 138.23 */
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23; /* fully empty */
  transition: stroke-dashoffset 0.15s linear;
}
.qv-tts-icon { width: 26px; height: 26px; }
/* When playing/loading, subtle blue glow on the button */
.qv-tts-btn:has(.qv-tts-icon--playing:not([hidden])),
.qv-tts-btn:has(.qv-tts-icon--loading:not([hidden])) {
  box-shadow: 0 0 0 2px rgba(56, 161, 219, 0.35), 0 0 18px rgba(56, 161, 219, 0.4);
  border-color: rgba(56, 161, 219, 0.6) !important;
  color: #38a1db !important;
}
.qv-tts-icon[hidden] { display: none; }

/* Loading: circular spinner */
.qv-tts-icon--loading { animation: qvTtsSpin 0.9s linear infinite; transform-origin: center; }
@keyframes qvTtsSpin { to { transform: rotate(360deg); } }

/* Playing: 3 KITT-style equalizer bars (Coche Fantástico).
   transform-box: fill-box makes transform-origin % refer to the rect's
   own bounding box, not the SVG viewport — without this the bars rotate
   around the SVG center instead of scaling from each bar's center. */
.qv-tts-icon--playing .qv-tts-bar {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: qvTtsBar 0.85s ease-in-out infinite;
}
.qv-tts-icon--playing .qv-tts-bar-1 { animation-delay: 0s; }
.qv-tts-icon--playing .qv-tts-bar-2 { animation-delay: 0.18s; }
.qv-tts-icon--playing .qv-tts-bar-3 { animation-delay: 0.36s; }
@keyframes qvTtsBar {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1.25); }
}

/* ── Emoji font fallback (placed at END so the cascade wins over per-element `font:` shorthands) ── */
.qv-mode-chip,
.qv-mode-banner,
.qv-mode-flash,
.qv-mode-flash-mult,
.qz-mode-btn,
.qz-mode-badge,
.qz-live-chip,
.qz-host-vote-btn,
.qv-mini-rank,
.qv-poll-result-title,
.qv-fb-poll .qv-fb-text,
.qv-fb-boss .qv-fb-text,
.qv-fb-skulls .qv-fb-skull,
.qv-fb-skull-burst,
.qv-fb-points {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Inter', system-ui, sans-serif;
}

/* ── Boss multiplier hit animation (videogame style)
   ⭐ stars  = positive reward (correct answer in Boss mode)
   💀 skulls = negative penalty (wrong answer, future penalty mode) ── */
.qv-fb-boss {
  text-align: center;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  position: relative;
  overflow: visible;
  padding: 10px 16px 12px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.qv-fb-boss .qv-fb-text {
  color: #fbbf24;
  font: 800 13px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  flex: 0 0 auto;
}
.qv-fb-counter {
  font: 900 clamp(28px, 4vw, 44px)/1 'JetBrains Mono', 'Inter', monospace;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.85), 0 0 36px rgba(251, 191, 36, 0.4);
  display: inline-block;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 0 0 auto;
}
/* Penalty variant of the boss-feedback container (red theme) */
.qv-fb-penalty {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.40) !important;
}
.qv-fb-penalty .qv-fb-text {
  color: #ef4444;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
}
.qv-fb-counter--negative {
  color: #fff;
  text-shadow: 0 0 24px rgba(239, 68, 68, 0.85), 0 0 48px rgba(239, 68, 68, 0.45);
}
.qv-fb-counter.is-hit {
  transform: scale(1.18);
}
.qv-fb-skulls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  min-height: 28px;
}
.qv-fb-skull {
  font-size: clamp(18px, 2.4vw, 26px);
  display: inline-block;
  animation: qvSkullSlam 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.qv-fb-skull--star { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.85)); }
.qv-fb-skull--penalty { filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7)); }
@keyframes qvSkullSlam {
  0%   { transform: translateY(-80px) rotate(-180deg) scale(0.3); opacity: 0; }
  60%  { transform: translateY(8px) rotate(15deg) scale(1.4); opacity: 1; }
  80%  { transform: translateY(0) rotate(-5deg) scale(1.1); }
  100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}
/* Shockwave when each token hits */
.qv-fb-skull-burst {
  position: absolute;
  pointer-events: none;
  font: 800 clamp(18px, 2.4vw, 26px)/1 'JetBrains Mono', monospace;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.95);
  animation: qvBurstFloat 0.7s ease-out both;
  z-index: 10;
}
.qv-fb-skull-burst--penalty {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.95);
}
@keyframes qvBurstFloat {
  0%   { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20%  { transform: translate(-50%, -10px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(0.9); opacity: 0; }
}
