/* ==========================================================================
   RN FIZIO-ARENA (OYUN BÖLGƏSİ) STYLES
   Fizioterapevt Ramazan Nəsirli
   ========================================================================== */

:root {
  --game-primary: #059669;
  --game-primary-hover: #047857;
  --game-primary-light: #10b981;
  --game-accent: #f59e0b;
  --game-accent-light: #fbbf24;
  --game-bg-dark: #0b1120;
  --game-bg-card: #1e293b;
  --game-bg-card-hover: #24344d;
  --game-text-main: #f8fafc;
  --game-text-muted: #94a3b8;
  --game-border: rgba(255, 255, 255, 0.08);
  --game-border-glow: rgba(16, 185, 129, 0.4);
  --game-success: #10b981;
  --game-danger: #ef4444;
  --game-purple: #8b5cf6;
}

body.games-body {
  background-color: var(--game-bg-dark);
  color: var(--game-text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Canvas Confetti */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

/* Container */
.games-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

/* ==========================================================================
   HERO / HEADER SECTION
   ========================================================================== */
.games-hero {
  text-align: center;
  position: relative;
  padding: 30px 20px 40px;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 32px;
  border: 1px solid var(--game-border);
  margin-bottom: 30px;
}

.games-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.games-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff 40%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.games-subtitle {
  font-size: 1.1rem;
  color: var(--game-text-muted);
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Player Status Bar */
.player-status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--game-border);
  border-radius: 20px;
  padding: 16px 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.status-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.status-stat-info {
  text-align: left;
}

.status-stat-label {
  font-size: 0.75rem;
  color: var(--game-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.status-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.xp-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.xp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 999px;
  width: 25%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--game-border);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  justify-content: center;
}
.sound-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

/* ==========================================================================
   GAME GRID (LOBBY VIEW)
   ========================================================================== */
.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.game-card {
  background: var(--game-bg-card);
  border: 1px solid var(--game-border);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--game-border-glow);
  box-shadow: 0 20px 35px -10px rgba(5, 150, 105, 0.2);
  background: var(--game-bg-card-hover);
}

.game-card-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-popular { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-new { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-daily { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.4); }

.game-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.game-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.game-card-desc {
  font-size: 0.95rem;
  color: var(--game-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  margin-top: auto;
}

.game-card-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
}

.game-card-play-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.game-card-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   ACTIVE GAME MODAL / ARENA VIEW
   ========================================================================== */
.active-arena-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  z-index: 99990;
  overflow-y: auto;
  padding: 30px 16px 60px;
  box-sizing: border-box;
}

.active-arena-overlay.open {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arena-box {
  background: #131c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  max-width: 900px;
  width: 100%;
  margin: auto;
  padding: 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  position: relative;
}

.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.arena-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.arena-game-icon {
  font-size: 2.2rem;
  background: rgba(16, 185, 129, 0.15);
  padding: 10px;
  border-radius: 16px;
}

.arena-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}

.arena-subtitle {
  font-size: 0.85rem;
  color: var(--game-text-muted);
  margin: 4px 0 0;
}

.arena-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.arena-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   GAME 1: YADDAŞ OYUNU (MEMORY MATCH)
   ========================================================================== */
.memory-stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1rem;
}

.memory-stat-val {
  color: #34d399;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1000px;
}

@media (max-width: 650px) {
  .memory-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

.memory-card {
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.memory-card.flipped,
.memory-card.matched {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  box-sizing: border-box;
  padding: 8px;
  text-align: center;
}

.memory-card-front {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #10b981;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.memory-card:hover .memory-card-front {
  border-color: #10b981;
  transform: scale(1.02);
}

.memory-card-back {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  border: 2px solid #34d399;
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.memory-card.matched .memory-card-back {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border-color: #34d399;
}

.memory-card-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.memory-card-text {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.memory-tip-toast {
  margin-top: 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   GAME 2: REAKSİYA TESTİ
   ========================================================================== */
.reaction-arena-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reaction-target-box {
  width: 100%;
  max-width: 580px;
  height: 320px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  padding: 24px;
  box-sizing: border-box;
}

.reaction-target-box:active {
  transform: scale(0.98);
}

/* States */
.reaction-target-box.idle {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 2px dashed rgba(255, 255, 255, 0.2);
}
.reaction-target-box.waiting {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  border: 3px solid #f87171;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.4);
}
.reaction-target-box.ready {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 3px solid #34d399;
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.6);
  animation: pulseTarget 0.4s infinite alternate;
}
.reaction-target-box.early {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border: 3px solid #ef4444;
}
.reaction-target-box.result {
  background: linear-gradient(135deg, #059669, #047857);
  border: 3px solid #34d399;
}

@keyframes pulseTarget {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.reaction-big-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.reaction-big-text {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.reaction-hint-text {
  font-size: 1rem;
  opacity: 0.9;
}

.reaction-rounds-track {
  display: flex;
  gap: 8px;
  margin: 24px 0 10px;
}

.reaction-round-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #94a3b8;
}
.reaction-round-pill.done {
  background: #10b981;
  color: #fff;
}
.reaction-round-pill.current {
  border: 2px solid #34d399;
  color: #fff;
}

/* ==========================================================================
   GAME 3: DOĞRU / YANLIŞ (ERQONOMİKA)
   ========================================================================== */
.tf-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--game-border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.tf-question-num {
  font-size: 0.85rem;
  color: var(--game-primary-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.tf-statement {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.tf-btn {
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s;
  color: #fff;
}

.tf-btn-true {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
}
.tf-btn-true:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.tf-btn-false {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-color: #f87171;
}
.tf-btn-false:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.tf-feedback-banner {
  display: none;
  border-radius: 18px;
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  animation: slideUp 0.3s ease;
}

.tf-feedback-banner.correct {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
}

.tf-feedback-banner.wrong {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
}

.tf-explanation-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-top: 6px;
}

/* ==========================================================================
   GAME 4: AYAQ FORMASINI TAP (VİZUAL ORTOPEDİYA)
   ========================================================================== */
.foot-quiz-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.foot-visual-card {
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.foot-svg-wrap {
  width: 100%;
  max-width: 320px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .foot-options-grid {
    grid-template-columns: 1fr;
  }
}

.foot-opt-btn {
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.foot-opt-btn:hover {
  background: #24344d;
  border-color: #10b981;
}

.foot-opt-btn.correct {
  background: #065f46 !important;
  border-color: #34d399 !important;
  color: #fff !important;
}

.foot-opt-btn.wrong {
  background: #7f1d1d !important;
  border-color: #f87171 !important;
  color: #fff !important;
}

/* ==========================================================================
   GAME 5: GÜNDƏLİK VƏRDİŞ & KARYERA (DAILY QUEST RPG)
   ========================================================================== */
.career-overview-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.career-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.career-badge-huge {
  font-size: 3rem;
  margin-right: 16px;
}

.career-rank-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.career-rank-desc {
  font-size: 0.9rem;
  color: var(--game-text-muted);
  margin: 4px 0 0;
}

.daily-quests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.quest-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--game-border);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}

.quest-item-card.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.quest-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quest-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quest-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
}

.quest-sub {
  font-size: 0.8rem;
  color: var(--game-text-muted);
  margin: 0;
}

.quest-action-btn {
  background: var(--game-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quest-action-btn:hover {
  background: var(--game-primary-light);
}

.quest-action-btn.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  cursor: default;
  border: 1px solid #10b981;
}

/* Posture Timer Modal Inside Arena */
.posture-timer-screen {
  background: #0f172a;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-circle-display {
  font-size: 3.5rem;
  font-weight: 900;
  color: #34d399;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   GAME 6: FİZİOTERAPİYA İQ TESTİ
   ========================================================================== */
.iq-quiz-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iq-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.iq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #8b5cf6);
  width: 10%;
  transition: width 0.3s ease;
}

.iq-question-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--game-border);
  border-radius: 20px;
  padding: 24px;
}

.iq-q-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.5;
}

.iq-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iq-option-btn {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.iq-option-btn:hover {
  background: #28374d;
  border-color: #10b981;
}

/* Certificate Result Card */
.iq-cert-card {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border: 3px solid #f59e0b;
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.15);
  position: relative;
}

.iq-cert-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.iq-score-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: #f59e0b;
  margin: 10px 0;
  line-height: 1;
}

/* ==========================================================================
   VICTORY & SUMMARY MODAL
   ========================================================================== */
.game-result-modal {
  text-align: center;
  padding: 20px 10px;
  animation: fadeIn 0.3s ease;
}

.result-stars-wrap {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.result-xp-gained {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.result-action-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--game-border);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .games-title {
    font-size: 2.1rem;
  }
  .games-hub-grid {
    grid-template-columns: 1fr;
  }
  .arena-box {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .arena-title {
    font-size: 1.3rem;
  }
  .reaction-target-box {
    height: 260px;
  }
  .reaction-big-text {
    font-size: 1.5rem;
  }
}
