/**
 * ZUKKO AVLOD — O'YINLAR VA ARENA USLUBLARI (GAMES.CSS)
 * Quiz test markazi, Ikki o'yinchili Arena, 10 ta o'yin mexanikasi, Buzzer, Xotira kartalari, Poyga.
 */

/* ==========================================================================
   1. QUIZ VIEW STYLES
   ========================================================================== */

.quiz-container {
  max-width: 820px;
  margin: 0 auto;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.quiz-subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.quiz-progress-wrapper {
  flex: 1;
}

.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.quiz-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.quiz-card {
  padding: 2.2rem;
  position: relative;
}

.quiz-meta-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.tag-badge {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.tag-badge.difficulty-boshlangich { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-badge.difficulty-orta { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-badge.difficulty-murakkab { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.tag-badge.difficulty-mantiqiy { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.tag-badge.difficulty-ijodiy { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-badge.points-tag { background: rgba(245, 158, 11, 0.2); color: #fbbf24; margin-left: auto; }

.quiz-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #fff;
}

/* OPTIONS GRID */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.quiz-option-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.quiz-option-btn.selected {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--blue-royal);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.quiz-option-btn.is-correct {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: var(--green-emerald) !important;
  color: #34d399 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.quiz-option-btn.is-wrong {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: var(--red-crimson) !important;
  color: #f87171 !important;
}

.opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.opt-text {
  flex: 1;
}

/* BOOLEAN GRID */
.quiz-boolean-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.boolean-btn {
  padding: 1.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  justify-content: center;
}

.bool-icon {
  font-size: 2rem;
}

/* MATCHING GRID */
.quiz-matching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.matching-col h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  text-align: center;
}

.match-item {
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-align: center;
}

.match-item:hover {
  background: rgba(51, 65, 85, 0.8);
}

.match-item.active-select {
  border-color: var(--blue-royal);
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.match-item.paired {
  border-color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.match-hint {
  font-size: 0.85rem;
  color: #93c5fd;
  text-align: center;
}

/* SEQUENCE LIST */
.sequence-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sequence-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.seq-handle {
  color: var(--text-dim);
  cursor: grab;
}

.seq-num {
  font-weight: 700;
  color: #60a5fa;
}

.seq-text {
  flex: 1;
}

.seq-btns {
  display: flex;
  gap: 0.3rem;
}

.btn-seq-move {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.btn-seq-move:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* EXPLANATION BOX */
.quiz-explanation-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.quiz-explanation-box.correct-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.quiz-explanation-box.wrong-box {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.exp-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.correct-box .exp-header h4 { color: #34d399; }
.wrong-box .exp-header h4 { color: #fb923c; }

.exp-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* RESULTS CARD */
.quiz-results-card {
  max-width: 650px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.result-trophy-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.result-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.result-stat-box.highlight {
  border-color: var(--blue-royal);
  background: rgba(37, 99, 235, 0.15);
}

.stat-big-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.medal-reward-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 2rem;
}

.medal-badge {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  display: block;
  margin-bottom: 0.3rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. TWO-PLAYER ARENA STYLES
   ========================================================================== */

.arena-hero-banner {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3)), var(--bg-card);
}

.arena-badge-ribbon {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.arena-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.arena-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.arena-setup-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.player-setup-card {
  flex: 1;
  padding: 1.8rem;
}

.p1-card { border-top: 4px solid var(--blue-royal); }
.p2-card { border-top: 4px solid var(--purple-primary); }

.player-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.player-tag {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.p1-tag { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.p2-tag { background: rgba(124, 58, 237, 0.2); color: #c084fc; }

.player-avatar-preview {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.arena-vs-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-circle-pulse {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  animation: pulse-ring 2s infinite;
}

/* 10 ARENA MODES GRID */
.arena-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.arena-mode-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.arena-mode-card:hover {
  background: rgba(51, 65, 85, 0.7);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.arena-mode-card.selected {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--blue-royal);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.mode-badge {
  font-size: 1.8rem;
}

.mode-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.mode-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ARENA IN-MATCH VIEW */
.arena-match-container {
  max-width: 900px;
  margin: 0 auto;
}

.arena-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  margin-bottom: 1.5rem;
}

.arena-sb-player {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sb-avatar {
  font-size: 2.8rem;
}

.sb-name {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.sb-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fbbf24;
}

.arena-sb-center {
  text-align: center;
}

.sb-mode-badge {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: 0.2rem;
}

.sb-round-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arena-turn-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.turn-avatar {
  font-size: 2.5rem;
}

.turn-info {
  flex: 1;
}

.turn-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.turn-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.turn-timer-badge {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f87171;
  padding: 0.4rem 0.8rem;
  background: rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
}

.arena-question-card {
  padding: 2.2rem;
}

.arena-q-meta {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.arena-badge-round {
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.arena-super-multiplier {
  padding: 0.25rem 0.7rem;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

.arena-error-badge {
  padding: 0.25rem 0.7rem;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

.arena-relay-badge {
  padding: 0.25rem 0.7rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

.arena-q-text {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.arena-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.arena-opt-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.arena-opt-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.arena-opt-idx {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* 2. BUZZER STAGE */
.buzzer-stage-card {
  padding: 3rem 2rem;
}

.buzzer-round-tag {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.05em;
}

.buzzer-instruction {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.buzzer-duel-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.buzzer-big-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.buzzer-p1-btn {
  background: radial-gradient(circle, #ef4444 30%, #991b1b 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.6);
  color: #fff;
}

.buzzer-p2-btn {
  background: radial-gradient(circle, #3b82f6 30%, #1e40af 100%);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
  color: #fff;
}

.buzzer-big-btn:hover {
  transform: scale(1.06);
}

.buzzer-big-btn:active {
  transform: scale(0.95);
}

.buzzer-av { font-size: 3rem; margin-bottom: 0.3rem; }
.buzzer-name { font-size: 1.1rem; font-weight: 800; }
.buzzer-press-lbl { font-size: 0.8rem; font-weight: 700; opacity: 0.8; }

.buzzer-timer-center {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f87171;
}

/* 3. RACE TRACK VIEW */
.race-track-wrapper {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.race-lane {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.race-driver {
  width: 140px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-road {
  flex: 1;
  height: 48px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
}

.race-car {
  position: absolute;
  font-size: 2rem;
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  top: 5px;
}

.finish-line {
  position: absolute;
  right: 10px;
  font-size: 1.8rem;
}

/* 4. MYSTERY CHESTS */
.mystery-chests-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.chest-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: rgba(15, 23, 42, 0.7);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}

.chest-btn:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: #fbbf24;
  box-shadow: var(--glow-gold);
}

.chest-icon { font-size: 3.5rem; margin-bottom: 0.4rem; }
.chest-label { font-size: 0.95rem; font-weight: 700; color: #fbbf24; }

.multiplier-reveal-banner {
  padding: 0.8rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
}

/* 5. MEMORY GRID 3D FLIP */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.memory-card-flip {
  height: 110px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.memory-card-flip.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  font-weight: 700;
}

.card-front {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-glass);
  font-size: 2.2rem;
}

.card-back {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: rotateY(180deg);
  font-size: 0.95rem;
}

.memory-card-flip.matched .card-back {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
}

/* 6. MAZE BOARD */
.maze-board {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.maze-board h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #93c5fd;
}

.maze-path-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.maze-player-tag {
  width: 150px;
  font-weight: 700;
  font-size: 0.95rem;
}

.maze-cell {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
}

.maze-cell.unlocked {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--green-emerald);
  color: #34d399;
}

/* DUEL FEEDBACK OVERLAY MODAL */
.duel-feedback-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.duel-feedback-card {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
}

.duel-feedback-card.correct {
  border-color: var(--green-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.duel-feedback-card.wrong {
  border-color: var(--orange-vibrant);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}

.duel-feedback-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.duel-feedback-exp {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 0.8rem;
  line-height: 1.6;
}

/* WINNER CELEBRATION PODIUM SCREEN */
.arena-winner-container {
  max-width: 750px;
  margin: 1.5rem auto;
  padding: 3.5rem 2rem;
}

.winner-trophy-burst {
  font-size: 6rem;
  margin-bottom: 1rem;
  animation: float 2.5s ease-in-out infinite;
}

.winner-headline {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.winner-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.winner-scores-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.winner-player-podium {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.winner-player-podium.champion {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.8));
  box-shadow: var(--shadow-lg), var(--glow-gold);
  transform: scale(1.05);
}

.podium-av { font-size: 3.5rem; margin-bottom: 0.5rem; }
.podium-score { font-size: 2rem; font-weight: 900; color: #fbbf24; margin-top: 0.5rem; }
.gold-crown { margin-top: 0.6rem; font-weight: 800; color: #fbbf24; font-size: 1rem; }
.winner-vs-badge { font-size: 1.5rem; font-weight: 900; color: var(--text-dim); }

.winner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   3. INDEPENDENT DUEL ARENA 3.0 (TWO PLAYERS | TWO QUESTIONS | ONE CHAMPION)
   ========================================================================== */

.duel-battlefield-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* TOP HUD */
.duel-top-hud {
  padding: 1.2rem 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.85);
}

.duel-hud-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hud-subject-chip {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.hud-round-chip {
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.hud-diff-pill {
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

/* TUG-OF-WAR MOMENTUM BAR */
.momentum-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.momentum-score-lbl {
  font-size: 0.95rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.p1-lbl b { color: #60a5fa; }
.p2-lbl b { color: #c084fc; }

.momentum-track {
  flex: 1;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  overflow: hidden;
}

.momentum-fill-p1 {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.momentum-fill-p2 {
  height: 100%;
  background: linear-gradient(90deg, #9333ea, #c084fc);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.momentum-spark-center {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  font-size: 1.2rem;
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 6px #fbbf24);
}

/* 3-COLUMN DUEL ARENA LAYOUT */
.duel-arena-layout {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

/* PLAYER PANEL STYLING */
.player-duel-panel {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.p1-panel {
  border-top: 5px solid var(--blue-royal);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2);
}

.p2-panel {
  border-top: 5px solid var(--purple-primary);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.2);
}

.player-duel-panel.locked-answering {
  opacity: 0.95;
}

/* PLAYER HUD HEADER */
.player-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.player-hud-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.player-hud-av {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.player-hud-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.player-streak-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.player-streak-badge.p2-badge {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.35);
  color: #c084fc;
}

.player-hud-score {
  text-align: right;
}

.hud-score-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  display: block;
}

.hud-score-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* PLAYER TIMER BAR */
.player-timer-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.player-timer-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.p1-timer { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.p2-timer { background: linear-gradient(90deg, #f472b6, #7c3aed); }

/* STATUS TAG */
.player-status-tag {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.2rem;
  transition: all 0.2s;
}

.status-thinking {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--border-glass);
  color: #94a3b8;
}

.status-answered {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* QUESTION CARD */
.player-question-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.q-source-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.player-question-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1.4rem;
  min-height: 3.5rem;
}

/* 4 OPTIONS BUTTONS */
.player-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.player-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
}

.player-opt-btn:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.player-opt-btn.is-selected {
  background: rgba(37, 99, 235, 0.3);
  border-color: var(--blue-royal);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.p2-panel .player-opt-btn.is-selected {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--purple-primary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.player-opt-btn.is-correct {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: var(--green-emerald) !important;
  color: #34d399 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
}

.player-opt-btn.is-wrong {
  background: rgba(239, 68, 68, 0.35) !important;
  border-color: var(--red-crimson) !important;
  color: #f87171 !important;
}

.player-opt-btn:disabled {
  cursor: default;
}

/* ROUND FEEDBACK DRAWER */
.round-feedback-drawer {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.feedback-correct {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.feedback-wrong {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.rf-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feedback-correct .rf-title { color: #34d399; }
.feedback-wrong .rf-title { color: #fb923c; }

.rf-exp {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* CENTRAL VS COLUMN */
.vs-central-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.vs-arena-badge-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-glow-shield {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
  animation: pulse-ring 2s infinite;
}

.central-timer-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s;
}

.central-timer-dial.timer-critical {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
  animation: pulse 0.8s infinite;
}

.timer-dial-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.central-timer-dial.timer-critical .timer-dial-num {
  color: #f87171;
}

.timer-dial-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.central-round-indicator {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.central-round-indicator b {
  display: block;
  font-size: 1rem;
  color: #fff;
}

/* TIE BREAKER BADGE */
.tiebreaker-pulse {
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
  animation: pulse 1s infinite;
}

/* FINAL CHAMPIONSHIP SCREEN (7. YAKUNIY NATIJA) */
.final-champion-container {
  max-width: 880px;
  margin: 1rem auto;
  padding: 3rem 2.5rem;
}

.champion-trophy-box {
  position: relative;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.trophy-big-icon {
  font-size: 6.5rem;
  display: block;
  animation: float 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.6));
}

.winner-av-badge {
  position: absolute;
  bottom: 0;
  right: -10px;
  font-size: 3rem;
}

.champion-winner-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.champion-subject-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* PODIUM SCORES COMPARISON */
.duel-podium-row {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.duel-podium-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s;
}

.duel-podium-card.is-winner {
  border-color: #fbbf24;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  transform: scale(1.04);
}

.crown-badge {
  position: absolute;
  top: -14px;
  padding: 0.25rem 0.8rem;
  background: #fbbf24;
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.podium-av { font-size: 3.5rem; margin-bottom: 0.5rem; }
.podium-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }

.podium-score-pill {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 1.2rem;
}

.podium-stat-list {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.p-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.p-stat-item b {
  color: #fff;
}

.podium-vs-center {
  text-align: center;
}

.vs-glow-shield-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.rounds-finished-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
}

.champion-actions-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE LAYOUT FOR DUEL ARENA */
@media (max-width: 900px) {
  .duel-arena-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vs-central-column {
    order: -1;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
  }

  .duel-podium-row {
    grid-template-columns: 1fr;
  }

  .podium-vs-center {
    display: none;
  }
}
