/* ── Стили Академии Судьбы (quiz.css) ── */

.quiz-page {
  background: var(--bg, #08070e);
  color: var(--text, #fff);
  font-family: 'Inter Tight', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.quiz-hero {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Переливающийся заголовок */
.quiz-shimmer-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold, #e2b853) 0%, var(--pink, #ec4899) 50%, var(--purple, #a78bfa) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quizTitleShimmer 4s linear infinite;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.quiz-hero-desc {
  font-size: 1rem;
  color: var(--text, rgba(255, 255, 255, 0.7));
  line-height: 1.6;
  opacity: 0.85;
}

/* Макет сетки */
.quiz-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.quiz-content-area {
  min-width: 0;
}

/* Стили экранов */
.quiz-screen {
  display: none;
  animation: quizFadeIn 0.4s ease forwards;
}

.quiz-screen.active {
  display: block;
}

/* Гостевая плашка */
.quiz-guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(226, 184, 83, 0.06);
  border: 1px solid rgba(226, 184, 83, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 1160px;
  margin: 20px auto 0;
  box-sizing: border-box;
}

.quiz-guest-icon {
  font-size: 1.8rem;
}

.quiz-guest-text {
  flex: 1;
}

.quiz-guest-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold, #e2b853);
  margin-bottom: 2px;
}

.quiz-guest-desc {
  font-size: 0.8rem;
  color: var(--text, rgba(255, 255, 255, 0.6));
  line-height: 1.4;
}

.quiz-guest-login {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold, #e2b853) 0%, var(--pink, #ec4899) 100%);
  border: none;
  color: #000 !important;
}

/* Сетка категорий */
.quiz-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.quiz-category-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  backdrop-filter: var(--blur, blur(25px));
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.quiz-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 15px 30px rgba(167, 139, 250, 0.1), 0 0 15px rgba(167, 139, 250, 0.05);
}

.quiz-cat-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--cat-color, #a78bfa);
  filter: blur(40px);
  opacity: 0.15;
  top: -30px;
  right: -30px;
  pointer-events: none;
}

.quiz-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-cat-emoji {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px var(--cat-color, #a78bfa));
}

.quiz-cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text, rgba(255, 255, 255, 0.45));
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.05));
}

.quiz-cat-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 0;
}

.quiz-cat-desc {
  font-size: 0.82rem;
  color: var(--text, rgba(255, 255, 255, 0.5));
  line-height: 1.5;
  margin: 0;
}

/* Игровой экран */
.quiz-game-panel {
  padding: 24px;
  border-radius: 24px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  backdrop-filter: var(--blur, blur(25px));
  position: relative;
}

.quiz-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quiz-back-btn {
  background: transparent;
  border: none;
  color: var(--text, rgba(255, 255, 255, 0.6));
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.quiz-back-btn:hover {
  color: #fff;
}

.quiz-mode-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold, #e2b853);
  border: 1px solid rgba(226, 184, 83, 0.3);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(226, 184, 83, 0.05);
  letter-spacing: 0.5px;
}

/* Прогресс-бар */
.quiz-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.quiz-progress-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold, #e2b853), var(--pink, #ec4899));
  border-radius: 6px;
  transition: width 0.3s ease;
}

.quiz-progress-text {
  font-size: 0.72rem;
  color: var(--text, rgba(255, 255, 255, 0.45));
  font-weight: 700;
  text-align: right;
}

/* Карточка вопроса */
.quiz-question-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin-bottom: 24px;
}

.quiz-question-emoji-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.quiz-question-emoji {
  font-size: 1.8rem;
}

.quiz-question-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

/* Кнопки вариантов ответов */
.quiz-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt-btn {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--card, rgba(255, 255, 255, 0.02));
  color: var(--text, #fff);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.quiz-opt-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.quiz-opt-btn.correct-select {
  background: rgba(74, 222, 128, 0.15) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  color: #4ade80 !important;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.15);
}

.quiz-opt-btn.wrong-select {
  background: rgba(248, 113, 113, 0.15) !important;
  border-color: rgba(248, 113, 113, 0.5) !important;
  color: #f87171 !important;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.15);
}

/* Панель фидбека */
.quiz-feedback-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: quizSlideUp 0.3s ease forwards;
}

.quiz-feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quiz-feedback-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
}

.quiz-feedback-panel.correct-state .quiz-feedback-icon {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.quiz-feedback-panel.wrong-state .quiz-feedback-icon {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.quiz-feedback-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.quiz-feedback-panel.correct-state .quiz-feedback-title {
  color: #4ade80;
}

.quiz-feedback-panel.wrong-state .quiz-feedback-title {
  color: #f87171;
}

.quiz-feedback-explanation {
  font-size: 0.85rem;
  color: var(--text, rgba(255, 255, 255, 0.7));
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.quiz-reward-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.quiz-reward-pill {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.xp-pill {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c084fc;
}

.gems-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.quiz-next-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold, #e2b853), var(--pink, #ec4899));
  color: #000;
  font-weight: 800;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(226, 184, 83, 0.25);
  transition: all 0.2s;
}

.quiz-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 184, 83, 0.35);
}

/* Экран результатов */
.quiz-results-panel {
  padding: 40px 24px;
  border-radius: 28px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  backdrop-filter: var(--blur, blur(25px));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.quiz-results-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gold, #e2b853);
  filter: blur(80px);
  opacity: 0.15;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.quiz-results-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(226, 184, 83, 0.1);
  border: 2px solid var(--gold, #e2b853);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(226, 184, 83, 0.2);
}

.quiz-results-icon {
  font-size: 2.5rem;
}

.quiz-results-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.quiz-results-subtitle {
  font-size: 0.9rem;
  color: var(--text, rgba(255, 255, 255, 0.5));
  margin-bottom: 30px;
}

.quiz-results-stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.quiz-res-stat-item {
  flex: 1;
  max-width: 140px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.quiz-res-stat-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold, #e2b853);
  margin-bottom: 4px;
}

.quiz-res-stat-label {
  font-size: 0.72rem;
  color: var(--text, rgba(255, 255, 255, 0.45));
  font-weight: 700;
  line-height: 1.3;
}

.quiz-results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.quiz-btn-restart {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold, #e2b853), var(--pink, #ec4899));
  color: #000;
  font-weight: 800;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(226, 184, 83, 0.2);
}

.quiz-btn-home {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.quiz-btn-home:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Сайдбар статистики */
.quiz-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-stats-panel {
  padding: 24px;
  border-radius: 24px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  backdrop-filter: var(--blur, blur(25px));
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.3px;
}

.quiz-stats-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.quiz-stat-label {
  color: var(--text, rgba(255, 255, 255, 0.5));
}

.quiz-stat-val {
  font-weight: 800;
  color: #fff;
}

.quiz-sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}

.quiz-info-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
}

.quiz-info-card strong {
  display: block;
  font-size: 0.8rem;
  color: var(--gold, #e2b853);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-info-card p {
  font-size: 0.76rem;
  color: var(--text, rgba(255, 255, 255, 0.55));
  line-height: 1.45;
  margin: 0;
}

/* Анимации */
@keyframes quizTitleShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quizSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 820px) {
  .quiz-main-layout {
    grid-template-columns: 1fr;
  }
  
  .quiz-sidebar {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .quiz-hero {
    padding: 30px 10px 10px;
  }
  
  .quiz-shimmer-title {
    font-size: 2rem;
  }
  
  .quiz-game-panel {
    padding: 16px;
  }
  
  .quiz-opt-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  
  .quiz-results-stats-row {
    flex-direction: column;
    align-items: center;
  }
  
  .quiz-res-stat-item {
    width: 100%;
    max-width: 200px;
  }
}

/* ── Стили Дуэлей (quiz_duels) ── */
.quiz-mode-selector {
  max-width: 500px;
  margin: 0 auto 24px;
  display: flex;
  padding: 6px;
  border-radius: 16px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  gap: 8px;
}

.quiz-mode-tab-btn {
  flex: 1;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
}

.quiz-mode-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.quiz-mode-tab-btn.active {
  background: linear-gradient(135deg, var(--gold, #e2b853) 0%, var(--pink, #ec4899) 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(226, 184, 83, 0.2);
}

.quiz-duel-lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .quiz-duel-lobby-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-duel-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card, rgba(13, 10, 25, 0.45));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  backdrop-filter: var(--blur, blur(25px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.quiz-duel-card-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.quiz-duel-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.quiz-duel-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.quiz-duel-card-cost {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold, #e2b853);
  background: rgba(226, 184, 83, 0.05);
  border: 1px solid rgba(226, 184, 83, 0.15);
  padding: 8px 12px;
  border-radius: 12px;
  margin: 8px 0;
}

.quiz-duel-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.quiz-duel-input {
  flex-grow: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.quiz-duel-input:focus {
  outline: none;
  border-color: var(--gold, #e2b853);
}

.quiz-duel-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.quiz-duel-btn-primary {
  background: linear-gradient(135deg, var(--gold, #e2b853) 0%, var(--pink, #ec4899) 100%);
  color: #000;
}

.quiz-duel-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 184, 83, 0.3);
}

.quiz-duel-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-duel-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quiz-duel-vs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 24px;
  margin-bottom: 20px;
}

.quiz-duel-vs-fighter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.quiz-duel-vs-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.quiz-duel-vs-score {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold, #e2b853);
}

.quiz-duel-vs-divider {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink, #ec4899);
  font-style: italic;
}

.quiz-duel-timer-bar {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink, #ec4899);
  text-align: center;
  margin-bottom: 12px;
  background: rgba(236, 72, 153, 0.05);
  border: 1px solid rgba(236, 72, 153, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: center;
}

.quiz-duel-recent-section {
  margin-top: 32px;
}

.quiz-duel-recent-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.quiz-duel-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-duel-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--card, rgba(13, 10, 25, 0.3));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.05));
}

.quiz-duel-recent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-duel-recent-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, rgba(255, 255, 255, 0.45));
}

.quiz-duel-recent-details {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.quiz-duel-recent-status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.quiz-duel-status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.quiz-duel-status-active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.quiz-duel-status-finished {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.quiz-duel-status-won {
  color: #4ade80;
  font-weight: 800;
}

.quiz-duel-status-lost {
  color: #f87171;
  font-weight: 800;
}

.quiz-duel-status-draw {
  color: #fbbf24;
  font-weight: 800;
}

.quiz-duel-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.quiz-duel-review-item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-duel-review-q {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
}

.quiz-duel-review-ans {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.quiz-duel-review-expl {
  font-size: 0.8rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Карточка 3:4 в викторине (Web & TMA) ── */
.quiz-card-34-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 14px auto 16px auto;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.quiz-card-34-frame {
  position: relative;
  width: 165px;
  max-width: 90vw;
  height: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 2px solid rgba(226, 184, 83, 0.65);
  background: radial-gradient(circle at 50% 25%, rgba(28, 22, 52, 0.95), rgba(8, 6, 16, 0.98));
  box-shadow: 0 0 16px rgba(226, 184, 83, 0.35), 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 0 10px rgba(226, 184, 83, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.quiz-card-34-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  border-radius: 10px;
}

.quiz-card-34-frame::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(226, 184, 83, 0.25);
  border-radius: 9px;
  pointer-events: none;
}

@keyframes quizCardFlipIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateY(-22deg) scale(0.92);
    filter: brightness(0.85);
  }
  60% {
    opacity: 1;
    transform: perspective(1000px) rotateY(3deg) scale(1.02);
    filter: brightness(1.1);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) scale(1);
    filter: brightness(1);
  }
}

.quiz-card-anim-flip {
  animation: quizCardFlipIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.quiz-card-34-frame.card-correct {
  border-color: #34d399 !important;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.55), 0 0 0 1px rgba(52, 211, 153, 0.7), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.02);
}

.quiz-card-34-frame.card-wrong {
  border-color: #f87171 !important;
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.5), 0 0 0 1px rgba(248, 113, 113, 0.7), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  transform: scale(0.98);
}

