@keyframes spotlight {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), inset 0 0 10px rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 35px rgba(251, 191, 36, 0.8), inset 0 0 15px rgba(251, 191, 36, 0.4); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

body.biblical-theme {
  background:
    linear-gradient(135deg,
      rgba(20, 15, 10, 0.95),
      rgba(40, 30, 20, 0.95),
      rgba(30, 25, 15, 0.95)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 116, 78, 0.03) 2px,
      rgba(139, 116, 78, 0.03) 4px
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="parchment" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(139,116,78,0.1)"/><circle cx="80" cy="60" r="1" fill="rgba(139,116,78,0.08)"/><circle cx="50" cy="90" r="1" fill="rgba(139,116,78,0.09)"/></pattern></defs><rect width="1200" height="800" fill="url(%23parchment)"/></svg>');
  background-size: 400% 400%, 100%, cover;
  background-attachment: fixed;
  animation: gradientShift 20s ease infinite;
}

body.neutral-theme {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

body {
  background:
    linear-gradient(135deg, rgba(15, 12, 41, 0.95), rgba(48, 43, 99, 0.95), rgba(36, 36, 62, 0.95)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="crosses" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><text x="50" y="50" font-size="40" fill="rgba(251,191,36,0.05)" text-anchor="middle" dominant-baseline="middle">✝</text></pattern></defs><rect width="1200" height="800" fill="url(%23crosses)"/></svg>');
  background-size: 400% 400%, cover;
  background-attachment: fixed;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.spotlight-effect {
  animation: spotlight 4s ease-in-out infinite;
}

.glow-current {
  animation: subtle-glow 2s ease-in-out infinite;
  transform: scale(1.05);
}

.game-card {
  animation: fadeIn 0.6s ease-out;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(145deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.2)),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(251, 191, 36, 0.03) 49px, rgba(251, 191, 36, 0.03) 50px);
  border: 3px solid rgba(251, 191, 36, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(251, 191, 36, 0.1),
    inset 0 0 40px rgba(251, 191, 36, 0.05);
}

.question-container {
  background:
    linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(31, 41, 55, 0.95)),
    radial-gradient(ellipse at top, rgba(251, 191, 36, 0.05), transparent);
  border: 3px solid rgba(251, 191, 36, 0.5);
  box-shadow:
    0 4px 20px rgba(251, 191, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 40px rgba(251, 191, 36, 0.15);
  animation: fadeIn 0.5s ease-out;
  position: relative;
}

.answer-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
  border: 2px solid rgba(139, 92, 246, 0.5);
  position: relative;
  overflow: hidden;
}

.answer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.answer-btn:hover:not(:disabled)::before {
  left: 100%;
}

.answer-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.8);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
}

@keyframes suspensePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  }
  25% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.7);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.9);
  }
  75% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(251, 191, 36, 1);
  }
}

.answer-suspense {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.4)) !important;
  border-color: rgba(251, 191, 36, 0.9) !important;
  animation: suspensePulse 0.8s ease-in-out infinite !important;
}

.answer-correct {
  background: linear-gradient(135deg, rgb(34, 197, 94), rgb(22, 163, 74)) !important;
  border-color: rgb(34, 197, 94) !important;
  color: white !important;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.8), 0 8px 20px rgba(34, 197, 94, 0.5) !important;
  animation: pulse 0.5s ease-in-out;
}

.answer-wrong {
  background: linear-gradient(135deg, rgb(239, 68, 68), rgb(220, 38, 38)) !important;
  border-color: rgb(239, 68, 68) !important;
  color: white !important;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.8), 0 8px 20px rgba(239, 68, 68, 0.5) !important;
  animation: pulse 0.5s ease-in-out;
}

.lifeline-btn {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
  border: 3px solid rgba(139, 92, 246, 0.6);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lifeline-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.lifeline-btn:hover:not(:disabled)::before {
  left: 100%;
}

.lifeline-btn:hover:not(:disabled) {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.7), 0 0 50px rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.9);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.5), rgba(251, 191, 36, 0.3));
}

.lifeline-btn:active:not(:disabled) {
  transform: translateY(-4px) scale(1.05);
}

.lifeline-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.lifeline-btn:hover:not(:disabled) .lifeline-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 6px 12px rgba(251, 191, 36, 0.6));
}

.lifeline-label {
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

.lifeline-used {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(1);
  transform: scale(0.95);
}

.lifeline-used:hover {
  transform: scale(0.95) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2) !important;
}

.biblical-theme .prize-ladder {
  background:
    linear-gradient(180deg,
      rgba(58, 47, 32, 0.95),
      rgba(45, 35, 25, 0.95)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(139, 116, 78, 0.1) 10px,
      rgba(139, 116, 78, 0.1) 11px
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="50" fill="rgba(218,165,32,0.12)" text-anchor="middle" dominant-baseline="middle">⚔️</text></svg>');
  background-size: 100%, 100%, 70px 70px;
  background-position: center, center, center;
  background-repeat: no-repeat, repeat, no-repeat;
  border: 3px solid rgba(139, 116, 78, 0.6);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(139, 116, 78, 0.15),
    0 0 60px rgba(218, 165, 32, 0.2);
}

.biblical-theme .game-card {
  background:
    linear-gradient(145deg,
      rgba(58, 47, 32, 0.3),
      rgba(45, 35, 25, 0.3)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      rgba(139, 116, 78, 0.08) 49px,
      rgba(139, 116, 78, 0.08) 50px
    );
  border: 4px solid rgba(139, 116, 78, 0.5);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(218, 165, 32, 0.15),
    inset 0 0 50px rgba(139, 116, 78, 0.1);
}

.biblical-theme .question-container {
  background:
    linear-gradient(135deg,
      rgba(58, 47, 32, 0.98),
      rgba(45, 35, 25, 0.98)),
    radial-gradient(ellipse at top, rgba(218, 165, 32, 0.08), transparent);
  border: 3px solid rgba(139, 116, 78, 0.7);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(218, 165, 32, 0.2),
    0 0 50px rgba(218, 165, 32, 0.2);
}

.biblical-theme .answer-btn {
  background: linear-gradient(135deg,
    rgba(88, 70, 50, 0.4),
    rgba(70, 55, 40, 0.4));
  border: 2px solid rgba(139, 116, 78, 0.6);
}

.biblical-theme .answer-btn:hover:not(:disabled) {
  border-color: rgba(218, 165, 32, 0.9);
  background: linear-gradient(135deg,
    rgba(139, 116, 78, 0.5),
    rgba(118, 98, 68, 0.5));
  box-shadow:
    0 8px 30px rgba(218, 165, 32, 0.5),
    0 0 40px rgba(218, 165, 32, 0.3);
}

.biblical-theme .lifeline-btn {
  background: linear-gradient(145deg,
    rgba(88, 70, 50, 0.5),
    rgba(70, 55, 40, 0.5));
  border: 3px solid rgba(139, 116, 78, 0.7);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(218, 165, 32, 0.2);
}

.biblical-theme .lifeline-btn:hover:not(:disabled) {
  border-color: rgba(218, 165, 32, 0.9);
  background: linear-gradient(145deg,
    rgba(139, 116, 78, 0.6),
    rgba(118, 98, 68, 0.6));
  box-shadow:
    0 12px 35px rgba(218, 165, 32, 0.6),
    0 0 50px rgba(218, 165, 32, 0.4);
}

.biblical-theme .prize-item {
  background: rgba(45, 35, 25, 0.3);
  border-color: rgba(139, 116, 78, 0.4) !important;
  color: rgba(218, 165, 32, 0.7);
}

.biblical-theme .prize-item.glow-current {
  background: rgba(139, 116, 78, 0.3) !important;
  border-color: rgba(218, 165, 32, 0.9) !important;
  color: rgb(218, 165, 32) !important;
  box-shadow:
    0 0 25px rgba(218, 165, 32, 0.6),
    inset 0 0 15px rgba(218, 165, 32, 0.3) !important;
}

.biblical-theme .header-badge {
  background: linear-gradient(135deg,
    rgba(139, 116, 78, 0.9),
    rgba(118, 98, 68, 0.9));
  border: 2px solid rgba(218, 165, 32, 0.6);
  box-shadow:
    0 4px 15px rgba(218, 165, 32, 0.5),
    inset 0 1px 0 rgba(218, 165, 32, 0.3);
  color: rgb(30, 25, 15);
}

.biblical-theme .biblical-title {
  background: linear-gradient(135deg,
    rgb(218, 165, 32),
    rgb(238, 201, 95),
    rgb(218, 165, 32));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.biblical-theme .biblical-subtitle {
  color: rgb(218, 165, 32);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.biblical-theme .biblical-verse {
  color: rgba(218, 165, 32, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.neutral-theme .biblical-title {
  background: linear-gradient(to right, #fbbf24, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neutral-theme .biblical-subtitle {
  color: #d1d5db;
}

.neutral-theme .biblical-verse {
  color: rgba(251, 191, 36, 0.6);
}

.biblical-theme .modal-content {
  background:
    linear-gradient(145deg,
      rgba(58, 47, 32, 0.98),
      rgba(45, 35, 25, 0.98));
  border: 3px solid rgba(139, 116, 78, 0.7);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(218, 165, 32, 0.3),
    inset 0 0 40px rgba(139, 116, 78, 0.1);
}

.biblical-theme .modal-btn {
  background: linear-gradient(135deg,
    rgba(139, 116, 78, 0.9),
    rgba(118, 98, 68, 0.9));
  border: 2px solid rgba(218, 165, 32, 0.7);
  color: rgb(30, 25, 15);
  box-shadow:
    0 4px 15px rgba(218, 165, 32, 0.5),
    inset 0 1px 0 rgba(218, 165, 32, 0.3);
}

.biblical-theme .modal-btn:hover {
  box-shadow:
    0 6px 25px rgba(218, 165, 32, 0.7),
    inset 0 1px 0 rgba(218, 165, 32, 0.4);
  border-color: rgba(218, 165, 32, 0.9);
}

.neutral-theme .prize-ladder {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.8));
}

.prize-ladder {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="60" fill="rgba(251,191,36,0.08)" text-anchor="middle" dominant-baseline="middle">🕊️</text></svg>');
  background-size: 100%, 80px 80px;
  background-position: center, center;
  background-repeat: no-repeat;
  border: 3px solid rgba(251, 191, 36, 0.4);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 30px rgba(251, 191, 36, 0.05);
}

.prize-item {
  transition: all 0.3s ease;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.prize-milestone {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.1)) !important;
  border: 2px solid rgba(14, 165, 233, 0.6) !important;
  font-weight: bold;
}

.header-badge {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  font-weight: bold;
  animation: subtle-glow 3s ease-in-out infinite;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.95), rgba(31, 41, 55, 0.95));
  border: 3px solid rgba(251, 191, 36, 0.6);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(251, 191, 36, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.modal-header h3 {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.modal-body {
  padding: 1.5rem 0;
  color: white;
}

.modal-footer {
  text-align: center;
  margin-top: 2rem;
}

.modal-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
  border: 2px solid rgba(251, 191, 36, 0.8);
  color: black;
  font-weight: bold;
  font-size: 1.125rem;
  padding: 0.75rem 2.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.modal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

.custom-questions-modal-content {
  max-width: 700px;
  width: 95%;
}

.custom-questions-textarea {
  width: 100%;
  background: rgba(17, 24, 39, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 200px;
}

.custom-questions-textarea:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}