/**
 * FlameVerse AI - Game System Styles
 * ===================================
 * Styles for the SOLO gaming system pages.
 * Follows the design system from privacy-policy.css
 */

/* Premium Lock States */
.premium-locked {
  position: relative;
  opacity: 0.6;
  filter: blur(1px);
  pointer-events: auto; /* Still clickable to show paywall */
  cursor: pointer;
}

.premium-locked::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 28px;
  z-index: 1;
  pointer-events: none;
}

.premium-locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.premium-locked .premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(155, 93, 255, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-locked-btn {
  position: relative;
  opacity: 0.7;
}

.premium-locked-btn::after {
  content: "🔒";
  margin-left: 0.5rem;
}

/* Lock Icon Overlay */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.lock-overlay-icon {
  font-size: 4rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Premium Required Badge */
.premium-required-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(155, 93, 255, 0.2),
    rgba(57, 242, 255, 0.15)
  );
  border: 2px solid rgba(155, 93, 255, 0.4);
  color: #c4b5fd;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.premium-required-badge::before {
  content: "💎";
  font-size: 1.1rem;
}

/* Game-specific card styles */
.game-card {
  position: relative;
  background: rgba(5, 12, 28, 0.55);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  backdrop-filter: blur(32px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.2);
}

.game-card:hover .skill-name {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Game grid layouts */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 100%;
  overflow-x: visible;
}

.locked-grid .game-card,
.game-card.game-card--locked {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  transform: none;
  cursor: not-allowed;
}

.locked-grid .game-card::after,
.game-card.game-card--locked::before {
  content: "🔒";
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 1.2rem;
  opacity: 0.85;
}
.game-card.game-card--coming-soon::after {
  content: "COMING SOON";
  position: absolute;
  left: 50% !important;
  bottom: 0.5rem !important;
  transform: translateX(-50%) !important;
  width: 80%;
  text-align: center;
  padding: 0.35rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(120, 70, 255, 0.3),
    rgba(180, 90, 255, 0.2)
  );

  border: 1px solid rgba(180, 90, 255, 0.4);

  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: all 0.3s ease;
  z-index: 2;
}
@media (max-width: 1024px) {
  .game-card--coming-soon::after {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
    bottom: 0.5rem !important;
  }
}
.hide {
  display: none !important;
}
.game-card.game-card--premium::after {
  content: "⭐ PREMIUM";
  position: absolute;

  /* Κεντράρισμα με Transform */
  left: 50% !important;
  bottom: 1rem;
  transform: translateX(-50%) !important; /* Αυτό το βάζει ακριβώς στη μέση */

  /* Σταθερό μέγεθος για να μην παραμορφώνεται */
  width: 85%;
  max-width: 200px; /* Για να μην γίνεται τεράστιο σε μεγάλες οθόνες */

  /* Flex για να είναι το κείμενο και το εικονίδιο πάντα στο κέντρο */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  padding: 0.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.25),
    rgba(218, 165, 32, 0.15)
  );
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* Responsive για tablet και κινητά */
@media (max-width: 1024px) {
  .game-card.game-card--premium::after {
    bottom: 0.8rem;
    font-size: 0.6rem;
    left: 10%;
    width: 80%;
  }
}

.locked-grid .game-card:hover,
.game-card.game-card--locked:hover {
  transform: none;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Corner badges (premium / new) use top-right; keep lock icon on the left */
#certificates-card.game-card--locked::after,
#exclusive-content-card.game-card--locked::after {
  right: auto;
  left: 0.6rem;
}

.game-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Skill cards */
.skill-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #00d4ff;
  transition: color 0.3s ease;
}

.skill-xp {
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.8);
  margin-bottom: 1.5rem;
}

.skill-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #9b5dff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Challenge cards */
.challenge-card {
  position: relative;
}

.challenge-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
}

.challenge-type.daily {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.challenge-type.weekly {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.challenge-type.timed {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.challenge-type.progress {
  background: rgba(168, 85, 247, 0.2);
  color: #a78bfa;
}

.challenge-type.milestone {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}

.challenge-type.special {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.challenge-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #00d4ff;
}

.challenge-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 255, 0.9);
  margin-bottom: 1rem;
}

.challenge-status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.challenge-status.active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.challenge-status.locked {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.challenge-status.completed {
  background: rgba(196, 181, 253, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.3);
}

.challenge-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin: 1rem 0;
}

.challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #9b5dff);
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* Profession cards */
.profession-card {
  position: relative;
  overflow: hidden;
}

.profession-card.locked {
  opacity: 0.5;
  filter: blur(2px);
  cursor: not-allowed;
}

.profession-card.locked > * {
  pointer-events: none;
}

.profession-card.locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 10;
}

.profession-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #00d4ff;
}

.profession-matching {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: rgba(196, 181, 253, 0.2);
  color: #c4b5fd;
}

.profession-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 255, 0.9);
  margin-bottom: 1rem;
}

.profession-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.profession-skill-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

/* Level cards */
.level-card {
  text-align: center;
  padding: 2rem;
}

.level-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #9b5dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.level-xp-required {
  font-size: 1rem;
  color: rgba(226, 232, 255, 0.8);
  margin-bottom: 1rem;
}

.level-rewards {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.level-reward-item {
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.9);
  margin: 0.25rem 0;
}

/* Story chapter cards */
.story-chapter-card {
  position: relative;
  padding: 2rem;
}

.chapter-number {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.8);
  margin-bottom: 0.5rem;
}

.chapter-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f9f5ff;
}

.chapter-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 255, 0.9);
  margin-bottom: 1.5rem;
}

.chapter-status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.chapter-status.locked {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.chapter-status.unlocked {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.chapter-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Badge cards */
.badge-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.badge-card.locked {
  opacity: 0.6;
  filter: grayscale(0.5);
  pointer-events: auto; /* Allow clicking to view badge details */
}

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

.badge-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #00d4ff;
}

.badge-rarity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-rarity.common {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.badge-rarity.uncommon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.badge-rarity.rare {
  background: rgba(168, 85, 247, 0.2);
  color: #a78bfa;
}

.badge-rarity.legendary {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.badge-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(226, 232, 255, 0.9);
}

/* XP display */
.xp-display {
  text-align: center;
  padding: 2rem;
}

.xp-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #9b5dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.xp-label {
  font-size: 1rem;
  color: rgba(226, 232, 255, 0.8);
}

.xp-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #9b5dff);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* Buttons */
.game-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #00d4ff, #9b5dff);
  color: #fff;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 212, 255, 0.5),
    0 0 20px rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, #00e5ff, #a86bff);
}

.game-btn-secondary {
  background: rgba(196, 181, 253, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.3);
}

.game-btn-secondary:hover {
  background: rgba(196, 181, 253, 0.3);
}

/* Choice buttons - better styling for game choices */
.choice-btn {
  width: 100%;
  padding: 1.25rem 1.5rem !important;
  text-align: center !important;
  font-size: 1rem;
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.5;
  background: rgba(196, 181, 253, 0.15) !important;
  border: 2px solid rgba(196, 181, 253, 0.3) !important;
  color: #f9f5ff !important;
  transition: all 0.3s ease;
}

.choice-btn:hover {
  background: rgba(196, 181, 253, 0.25) !important;
  border-color: rgba(196, 181, 253, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 181, 253, 0.3);
}

/* Stats display */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(129, 140, 248, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #9b5dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(226, 232, 255, 0.8);
}

/* Navigation links */
.game-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.game-nav-link {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  text-decoration: none;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.2s ease;
}

.game-nav-link:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #00e5ff;
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Responsive */
@media (min-width: 1600px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1rem;
  }

  .game-grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-card {
    padding: 1.25rem;
  }

  /* Challenge/quest cards - readable font on mobile */
  .challenge-card .challenge-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #00d4ff !important;
  }
  .challenge-card .challenge-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(226, 232, 255, 0.95) !important;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  /* Challenge/quest cards - larger font on small mobile */
  .challenge-card .challenge-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff !important;
  }
  .challenge-card .challenge-description {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(226, 232, 255, 0.98) !important;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: rgba(226, 232, 255, 0.7);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.1rem;
}

/* Phase E: Transition animations */
.transition-card {
  text-align: center;
  padding: 3rem 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.transition-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(196, 181, 253, 0.2);
  border-top-color: #c4b5fd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.transition-text {
  font-size: 1.2rem;
  color: rgba(226, 232, 255, 0.9);
  font-weight: 600;
}

/* Page transition animations */
/* Invisible Roles — scene option cards (play / reveal) */
.ir-vanilla .ir-option-card:hover,
.ir-choice-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(0, 220, 255, 0.45) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 215, 255, 0.15);
}

.ir-vanilla .ir-option-card:active,
.ir-choice-btn:active {
  transform: translateY(0);
}

.ir-vanilla .ir-option-card.is-selected,
.ir-choice-btn.ir-choice-selected {
  background: rgba(0, 220, 255, 0.12) !important;
  border-color: #00d7ff !important;
  box-shadow: 0 0 0 1px rgba(0, 215, 255, 0.35) !important;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

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

.fade-in-down {
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reward card animation */
.reward-card {
  animation: rewardPulse 2s ease-in-out infinite;
}

@keyframes rewardPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 24px 80px rgba(196, 181, 253, 0.3);
  }
}

/* Phase G2: Cinematic Transitions */
.cinematic-enter {
  animation: cinematicEnter 0.6s ease-out forwards;
}

.cinematic-exit {
  animation: cinematicExit 0.4s ease-in forwards;
}

.cinematic-wipe {
  animation: cinematicWipe 0.8s ease-in-out forwards;
}

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

@keyframes cinematicExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

@keyframes cinematicWipe {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  50% {
    opacity: 0.5;
    clip-path: inset(0 50% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Hub intro card */
.hub-intro-card {
  text-align: center;
}

/* Typewriter skip button */
.typewriter-skip-btn {
  transition: all 0.2s ease;
}

.typewriter-skip-btn:hover {
  background: rgba(196, 181, 253, 0.3) !important;
  transform: translateY(-2px);
}

.typewriter-skip-btn:focus {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

/* Episode HUD */
.episode-hud {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .episode-hud {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .episode-hud .hud-scene-count {
    align-self: flex-end;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cinematic-enter,
  .cinematic-exit,
  .cinematic-wipe {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reward-card {
    animation: none !important;
  }

  .fade-in-up,
  .fade-in-down {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .transition-spinner {
    animation: none !important;
  }
}
