/* CUSTOM STYLING & ANIMATIONS FOR WRESTLING TRIVIA ARENA */

@supports (padding-top: env(safe-area-inset-top)) {
  .pt-calc-top {
    padding-top: calc(8px + env(safe-area-inset-top));
  }
  .pb-calc-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Spotlights ambient background */
.spotlight {
  position: absolute;
  top: -20%;
  width: 250px;
  height: 120%;
  background: radial-gradient(ellipse at top, rgba(255, 30, 39, 0.25) 0%, rgba(255, 215, 0, 0.08) 40%, transparent 80%);
  filter: blur(30px);
  transform-origin: top center;
  pointer-events: none;
}

.spotlight-left {
  left: 10%;
  animation: spotlightSwingLeft 12s infinite ease-in-out alternate;
}

.spotlight-right {
  right: 10%;
  animation: spotlightSwingRight 14s infinite ease-in-out alternate;
}

@keyframes spotlightSwingLeft {
  0% { transform: rotate(-25deg); opacity: 0.4; }
  100% { transform: rotate(15deg); opacity: 0.8; }
}

@keyframes spotlightSwingRight {
  0% { transform: rotate(20deg); opacity: 0.8; }
  100% { transform: rotate(-20deg); opacity: 0.4; }
}

/* Metallic Choice Buttons */
.btn-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #201d2a 0%, #13111b 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: right;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  touch-action: manipulation;
  min-height: 52px;
}

.btn-choice:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, #2b273a 0%, #1b1828 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.15);
}

.btn-choice:active {
  transform: scale(0.97);
}

.btn-choice .choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 30, 39, 0.2);
  border: 1px solid rgba(255, 30, 39, 0.5);
  color: #ff4d55;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-choice:hover .choice-letter {
  background: #FF1E27;
  color: #ffffff;
}

/* States for choice buttons */
.btn-choice.correct {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
  animation: pulseCorrect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-choice.correct .choice-letter {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
}

.btn-choice.wrong {
  background: linear-gradient(135deg, #881337 0%, #9f1239 100%) !important;
  border-color: #f43f5e !important;
  opacity: 0.85;
  animation: shakeWrong 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.btn-choice.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Animations */
@keyframes pulseCorrect {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shakeWrong {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Filter buttons in Roster */
.btn-filter {
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #9ca3af;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-filter.active, .btn-filter:hover {
  background-color: #FF1E27;
  color: #ffffff;
  border-color: #ff4d55;
}

/* Golden Card styling for Roster */
.roster-card {
  position: relative;
  background: linear-gradient(145deg, #1f1c2b 0%, #110f18 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.roster-card.unlocked {
  border-color: #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.roster-card.unlocked:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.roster-card.locked {
  filter: grayscale(1) opacity(0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Scrollbar polish */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a090e;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}