.player-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
}

.player-card-exit {
  opacity: 0;
  transform: scale(0.5);
}

.winner-card {
  transform: scale(1.5);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes winnerEntrance {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5) rotate(5deg);
  }
  100% {
    transform: scale(1.3) rotate(0deg);
  }
}

.animate-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.animate-winner {
  animation: winnerEntrance 1s ease-in-out forwards;
}

.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
}

.fullscreen-mode > div {
  width: 100%;
  height: 100%;
  padding: 3rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-mode > div > div {
  width: 100%;
  height: 100%;
  background: transparent !important;
  backdrop-filter: none !important;
}

.fullscreen-grid {
  width: 100%;
  height: 100%;
  align-content: center;
  column-gap: 0.75rem !important;
  row-gap: 1.25rem !important;
}

.fullscreen-grid .player-card {
  height: fit-content;
  min-height: 120px;
}

.fullscreen-grid .player-card img {
  width: var(--avatar-size, 60px) !important;
  height: var(--avatar-size, 60px) !important;
}

.fullscreen-grid .player-card p {
  font-size: var(--card-font-size, 0.875rem) !important;
}



.winner-display {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100vh !important;
  padding-bottom: 10vh !important;
}

.winner-display .player-card {
  background: white;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.winner-display .player-card img {
  width: 200px !important;
  height: 200px !important;
  border-width: 8px !important;
}

.winner-display .player-card p {
  font-size: 2rem !important;
  margin-top: 1rem;
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 10000;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

#fullscreen-btn {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  background: rgba(147, 51, 234, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.5);
  border-radius: 0.5rem;
  color: white;
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
}

#fullscreen-btn:hover {
  opacity: 1;
}

.next-round-corner {
  position: fixed !important;
  bottom: 0.5rem !important;
  right: 0.5rem !important;
  z-index: 10002 !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  color: white !important;
  opacity: 0.5 !important;
  transition: opacity 0.2s !important;
  cursor: pointer !important;
}

.next-round-corner:hover {
  opacity: 1 !important;
}

.qr-after-winner {
  position: fixed !important;
  bottom: 1rem !important;
  left: 1rem !important;
  z-index: 10002 !important;
  width: 280px !important;
  height: auto !important;
  background: white !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
  padding: 1.25rem !important;
}

.qr-after-winner > div {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.qr-after-winner img {
  width: 180px !important;
  height: 180px !important;
  margin: 0 0 0.75rem 0 !important;
  border-radius: 0.5rem !important;
}

.qr-after-winner h3 {
  font-size: 1rem !important;
  margin-bottom: 0.5rem !important;
  color: #1f2937 !important;
  text-align: center !important;
}

.qr-after-winner p {
  font-size: 0.7rem !important;
  word-break: break-all !important;
  color: #6b7280 !important;
  text-align: center !important;
  line-height: 1.3 !important;
}
