/* Imposter Game Styles */
main .imposter-section {
  max-width: 700px;
  margin: 160px auto 0 auto;
  padding: 28px 18px 32px 18px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.363);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 540px;
  position: relative;
  overflow: hidden;
}

.imposter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  border-radius: 24px;
}

.imposter-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.imposter-title::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -35px;
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

.imposter-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.imposter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px auto;
  position: relative;
  z-index: 2;
}

.imposter-form label {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.imposter-form label::before {
  content: '';
  font-size: 1.1rem;
}

.imposter-form input[type="number"] {
  width: 80px;
  padding: 10px 12px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  color: #2a2f4a;
  font-weight: 600;
  margin-right: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.imposter-form input[type="number"]:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.imposter-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.95);
  color: #2a2f4a;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.imposter-form input[type="text"]:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.imposter-form .player-names {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.imposter-btn {
  margin-top: 12px;
  padding: 14px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 4px 20px rgba(255,107,107,0.4);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.imposter-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;
}

.imposter-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255,107,107,0.6);
  filter: brightness(1.1);
}

.imposter-btn:hover::before {
  left: 100%;
}

.imposter-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.imposter-card {
  background: rgba(255,255,255,0.98);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.imposter-player {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2a2f4a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.imposter-player::before {
  content: '';
  font-size: 1.3rem;
}

.imposter-question {
  font-size: 1.2rem;
  color: #4a4a6a;
  margin: 20px 0 14px 0;
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 16px;
  border-radius: 12px;
  background-color: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.2);
  position: relative;
}

.imposter-question::before {
  display: none;
}

.imposter-instructions {
  font-size: 1.1rem;
  color: #5a5a7a;
  margin: 16px 0 20px 0;
  font-weight: 600;
  line-height: 1.5;
}

.imposter-real-label {
  color: #ff4757 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem !important;
  margin-top: 8px !important;
}

.imposter-vote-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 16px 0;
}

.imposter-vote-btn {
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.9) 100%);
  color: #4a4a6a;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.imposter-vote-btn::before {
  content: '';
  margin-right: 8px;
  transition: transform 0.2s ease;
}

.imposter-vote-btn:hover {
  transform: translateX(4px);
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.imposter-vote-btn.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #667eea;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.imposter-vote-btn.selected::before {
  content: '';
  transform: scale(1.2);
}

.imposter-scoreboard {
  margin: 20px 0 0 0;
  font-size: 1.1rem;
  color: #4a4a6a;
  font-weight: 700;
  text-align: center;
  background: rgba(255,255,255,0.9);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  position: relative;
  z-index: 2;
}

.imposter-scoreboard::before {
  content: '';
  font-size: 1.5rem;
  margin-right: 8px;
}

.imposter-footer-tip {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.imposter-footer-tip::before {
  content: '';
  margin-right: 6px;
}

/* Special styling for different game phases */
/* .imposter-section.reveal-phase {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.imposter-section.voting-phase {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.imposter-section.results-phase {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
} */

/* Pulse animation for important buttons */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.imposter-btn.pulse {
  animation: pulse 2s infinite;
}

/* Success animation for correct votes */
@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(72, 187, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

.imposter-vote-btn.correct {
  animation: successPulse 1s ease-out;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

/* Shake animation for wrong votes */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.imposter-vote-btn.wrong {
  animation: shake 0.5s ease-in-out;
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

/* Fun hover effects for interactive elements */
.imposter-card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.imposter-player-input {
  transition: all 0.2s ease;
}

.imposter-player-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive design improvements */
@media (max-width: 600px) {
  main .imposter-section {
    max-width: 90%;
    margin: 80px auto 0 auto;
  }

  .imposter-title {
    font-size: 1.5rem;
  }

  .imposter-card {
    padding: 20px 16px;
    max-width: 100%;
  }

  .imposter-question {
    font-size: 1.1rem;
    padding: 12px;
  }
}
