/* ===== BINGO BATTLE ROYALE - PHASE 4: PLAYER & QR STYLES ===== */

/* ===== PLAYER CONTAINER ===== */
.playerContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 800px at 50% 20%, #1b1c33 0%, #07070b 55%, #000 100%);
  z-index: 5000;
  overflow-y: auto;
}

/* Cannon ball styles for player screens */
.playerContainer .cannonBall {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
}

.playerContainer .cannonBall span:first-child {
  font-size: 10px;
  line-height: 1;
}

.playerContainer .cannonBall span:last-child {
  font-size: 14px;
  line-height: 1;
}

/* Ball colors for player screens */
.playerContainer .ball-blue {
  background: radial-gradient(circle at 30% 30%, #6eb5ff, #1e90ff 40%, #0052a3 100%);
  box-shadow: inset -6px -6px 15px rgba(0,0,0,0.3), inset 3px 3px 8px rgba(255,255,255,0.4), 0 0 15px rgba(30, 144, 255, 0.4);
}

.playerContainer .ball-red {
  background: radial-gradient(circle at 30% 30%, #ff7b7b, #e63946 40%, #8b0000 100%);
  box-shadow: inset -6px -6px 15px rgba(0,0,0,0.3), inset 3px 3px 8px rgba(255,255,255,0.4), 0 0 15px rgba(230, 57, 70, 0.4);
}

.playerContainer .ball-white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0 40%, #a0a0a0 100%);
  color: #1a1a2e;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  box-shadow: inset -6px -6px 15px rgba(0,0,0,0.15), inset 3px 3px 8px rgba(255,255,255,0.8), 0 0 15px rgba(255, 255, 255, 0.3);
}

.playerContainer .ball-green {
  background: radial-gradient(circle at 30% 30%, #7dff8a, #2ecc71 40%, #1a8a4a 100%);
  box-shadow: inset -6px -6px 15px rgba(0,0,0,0.3), inset 3px 3px 8px rgba(255,255,255,0.4), 0 0 15px rgba(46, 204, 113, 0.4);
}

.playerContainer .ball-yellow {
  background: radial-gradient(circle at 30% 30%, #ffed7d, #f1c40f 40%, #a68a00 100%);
  color: #1a1a2e;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  box-shadow: inset -6px -6px 15px rgba(0,0,0,0.25), inset 3px 3px 8px rgba(255,255,255,0.5), 0 0 15px rgba(241, 196, 15, 0.4);
}

/* ===== JOIN SCREEN ===== */
.joinScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Join screen background effects */
.joinBgEffects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.joinBgEffects .cannonBall {
  position: absolute;
}

.joinCb1 {
  animation: joinCannonFly1 9s linear infinite !important;
}

.joinCb2 {
  animation: joinCannonFly2 11s linear infinite !important;
  animation-delay: 3s !important;
}

.joinCb3 {
  animation: joinCannonFly3 8s linear infinite !important;
  animation-delay: 6s !important;
}

.joinCb4 {
  animation: joinCannonFly4 10s linear infinite !important;
  animation-delay: 1.5s !important;
}

@keyframes joinCannonFly1 {
  0% { transform: translate(-80px, 70vh) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(calc(100vw + 80px), 20vh) rotate(540deg); opacity: 0; }
}

@keyframes joinCannonFly2 {
  0% { transform: translate(calc(100vw + 60px), 30vh) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(-60px, 80vh) rotate(-480deg); opacity: 0; }
}

@keyframes joinCannonFly3 {
  0% { transform: translate(-60px, 40vh) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(calc(100vw + 60px), 60vh) rotate(360deg); opacity: 0; }
}

@keyframes joinCannonFly4 {
  0% { transform: translate(calc(100vw + 70px), 85vh) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate(-70px, 15vh) rotate(-420deg); opacity: 0; }
}

.joinCard {
  position: relative;
  z-index: 1;
  width: min(440px, 95vw);
  background: linear-gradient(180deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
  border: 2px solid rgba(214, 178, 94, 0.3);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(214, 178, 94, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.joinLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.joinLogoImg {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
}

.joinHeroText {
  text-align: center;
  margin-bottom: 28px;
}

.joinHeroText h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #ffd700, #d6b25e, #ffeaa7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 2px;
}

.joinSubtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.joinForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.joinField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.joinField label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
}

.joinInput {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.joinInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(214, 178, 94, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.joinInput::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.joinBtn {
  margin-top: 8px;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

.joinBtn.primary {
  background: linear-gradient(135deg, #d6b25e, #c9a227);
  color: #000;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(214, 178, 94, 0.4);
}

.joinBtn.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f0d27b, #d6b25e);
  border-color: rgba(255, 255, 255, 0.35);
  outline: 2px solid rgba(214, 178, 94, 0.75);
  outline-offset: 3px;
  box-shadow: 0 10px 40px rgba(214, 178, 94, 0.55);
}

.joinBtn.primary:focus-visible {
  background: linear-gradient(135deg, #f0d27b, #d6b25e);
  border-color: rgba(255, 255, 255, 0.45);
  outline: 3px solid rgba(214, 178, 94, 0.85);
  outline-offset: 4px;
  box-shadow: 0 10px 45px rgba(214, 178, 94, 0.6);
}

.joinBtn.primary:active {
  transform: translateY(0);
}

.joinStatus {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  min-height: 20px;
}

.joinStatus.error {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.3);
  color: #ff9999;
}

.joinStatus.connecting {
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: #ffe9a1;
}

.joinStatus.success {
  background: rgba(25, 195, 125, 0.15);
  border: 1px solid rgba(25, 195, 125, 0.3);
  color: #88ffcc;
}

.joinBack {
  margin-top: 20px;
  text-align: center;
}

.joinBack a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.joinBack a:hover {
  color: var(--gold);
}

.joinTips {
  margin-top: 16px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.joinTips span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== WAITING SCREEN ===== */
.playerWaiting {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.waitingIcon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: pulse 2s ease-in-out infinite;
}

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

.playerWaiting h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: var(--gold);
}

.playerWaiting p {
  font-size: 18px;
  margin: 8px 0;
  color: var(--white);
}

.waitingSub {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.waitingDots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.waitingDots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.waitingDots span:nth-child(1) { animation-delay: 0s; }
.waitingDots span:nth-child(2) { animation-delay: 0.2s; }
.waitingDots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== PLAYER GAME SCREEN ===== */
.playerGame {
  padding: 16px;
  padding-bottom: 100px;
}

.playerBallDisplay {
  background: linear-gradient(180deg, rgba(214, 178, 94, 0.2), rgba(17, 18, 36, 0.5));
  border: 2px solid rgba(214, 178, 94, 0.35);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.playerCurrentBall {
  font-size: 72px;
  font-weight: 950;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.playerCurrentBall.active {
  color: var(--gold);
  animation: ballGlow 1s ease-in-out infinite;
}

@keyframes ballGlow {
  0%, 100% { text-shadow: 0 4px 20px rgba(214, 178, 94, 0.3); }
  50% { text-shadow: 0 4px 40px rgba(214, 178, 94, 0.6); }
}

.playerLastCalls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lastCallChip {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

/* ===== STATUS BANNER ===== */
.playerStatusBanner {
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.playerStatusBanner.spin {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.2), rgba(255, 150, 0, 0.2));
  border: 2px solid rgba(255, 204, 0, 0.4);
  color: #ffe9a1;
  animation: spinBannerPulse 1.5s ease-in-out infinite;
}

@keyframes spinBannerPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.2); }
  50% { box-shadow: 0 0 30px rgba(255, 204, 0, 0.4); }
}

.playerStatusBanner.halftime {
  background: rgba(255, 100, 50, 0.2);
  border: 2px solid rgba(255, 100, 50, 0.4);
  color: #ffcc99;
}

.playerStatusBanner.winner {
  background: linear-gradient(135deg, rgba(25, 195, 125, 0.3), rgba(50, 220, 150, 0.2));
  border: 2px solid rgba(25, 195, 125, 0.5);
  color: #88ffcc;
  font-size: 18px;
}

/* ===== CARD NAVIGATION ===== */
.cardNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cardNavBtn {
  width: 44px;
  height: 44px;
  min-width: unset;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.cardNavLabel {
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
}

/* ===== PLAYER CARD ===== */
.playerCardContainer {
  margin-bottom: 16px;
}

.playerCard {
  background: linear-gradient(180deg, rgba(17, 18, 36, 0.95), rgba(7, 7, 11, 0.95));
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.playerCard.eliminated {
  opacity: 0.5;
  border-color: rgba(255, 77, 77, 0.4);
}

.playerCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cardTeam {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cardTeam.red {
  background: rgba(255, 59, 59, 0.2);
  border: 1px solid rgba(255, 59, 59, 0.4);
  color: #ffaaaa;
}

.cardTeam.white {
  background: rgba(242, 242, 242, 0.2);
  border: 1px solid rgba(242, 242, 242, 0.4);
  color: #ffffff;
}

.cardTeam.blue {
  background: rgba(47, 123, 255, 0.2);
  border: 1px solid rgba(47, 123, 255, 0.4);
  color: #aad4ff;
}

.cardEliminated {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff9999;
}

.playerCardLetters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.playerCardLetters span {
  text-align: center;
  font-size: 18px;
  font-weight: 950;
  color: var(--gold);
}

.playerCardGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.playerCell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.playerCell:active:not(.marked):not(.free):not(.eliminated) {
  transform: scale(0.95);
}

.playerCell.marked {
  background: radial-gradient(circle at 30% 30%, rgba(246, 210, 122, 0.8), rgba(214, 178, 94, 0.5));
  border-color: rgba(214, 178, 94, 0.8);
  color: #14121a;
  font-weight: 950;
}

.playerCell.free {
  background: radial-gradient(circle at 30% 30%, rgba(25, 195, 125, 0.5), rgba(25, 195, 125, 0.3));
  border-color: rgba(25, 195, 125, 0.5);
  color: #14121a;
  font-size: 24px;
  cursor: default;
}

.playerCell.rowElim {
  background: rgba(255, 77, 77, 0.2);
  border-color: rgba(255, 77, 77, 0.4);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
}

.playerCell.eliminated {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== BINGO CLAIM BUTTON ===== */
.bingoClaim {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  font-size: 22px;
  font-weight: 950;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(25, 195, 125, 0.3), rgba(25, 195, 125, 0.15));
  border: 3px solid rgba(25, 195, 125, 0.5);
  color: #88ffcc;
  box-shadow: 0 10px 40px rgba(25, 195, 125, 0.3);
  z-index: 100;
  max-width: 400px;
  margin: 0 auto;
}

.bingoClaim:active {
  transform: scale(0.98);
  box-shadow: 0 5px 20px rgba(25, 195, 125, 0.4);
}

/* ===== WINNER SCREEN ===== */
.playerWinnerScreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.playerWinnerScreen .winnerIcon {
  font-size: 100px;
  margin-bottom: 24px;
}

.playerWinnerScreen h1 {
  font-size: 42px;
  font-weight: 950;
  margin: 0 0 16px 0;
  color: var(--gold);
}

.playerWinnerScreen.youWin h1 {
  color: var(--ok);
  animation: winnerTextGlow 1s ease-in-out infinite;
}

@keyframes winnerTextGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(25, 195, 125, 0.5); }
  50% { text-shadow: 0 0 50px rgba(25, 195, 125, 0.8); }
}

.playerWinnerScreen p {
  font-size: 18px;
  color: var(--muted);
}

/* ===== TOAST NOTIFICATIONS ===== */
.playerToast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  z-index: 10000;
  animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.playerToast.fadeOut {
  animation: toastFade 0.3s ease-out forwards;
}

@keyframes toastFade {
  to { transform: translateX(-50%) translateY(-20px); opacity: 0; }
}

.playerToast.info {
  background: rgba(47, 123, 255, 0.9);
  border: 2px solid rgba(47, 123, 255, 1);
  color: white;
}

.playerToast.warning {
  background: rgba(255, 100, 50, 0.9);
  border: 2px solid rgba(255, 100, 50, 1);
  color: white;
}

.playerToast.success {
  background: rgba(25, 195, 125, 0.9);
  border: 2px solid rgba(25, 195, 125, 1);
  color: white;
}

/* ===== QR CODE MODAL ===== */
.qrModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.qrModalContent {
  background: linear-gradient(180deg, rgba(17, 18, 36, 0.98), rgba(7, 7, 11, 0.98));
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(214, 178, 94, 0.3);
}

.qrCloseBtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  min-width: unset;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.qrModalContent h2 {
  font-size: 24px;
  font-weight: 950;
  margin: 0 0 24px 0;
  color: var(--gold);
}

.qrCodeContainer {
  background: #111224;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrCodeImg {
  display: none;
  border-radius: 7px;
}

.qrLoading {
  color: var(--muted);
  font-weight: 700;
}

.qrDivider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.qrDivider::before,
.qrDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.qrDivider span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.qrManualJoin {
  margin-bottom: 24px;
}

.qrLabel {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.qrRoomCode {
  font-size: 48px;
  font-weight: 950;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 16px;
}

.qrCopyBtn {
  min-width: unset;
  padding: 12px 24px;
}

.qrInstructions {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.qrInstructions p {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.qrInstructions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== HOST LOBBY UPDATES ===== */
.qrShowBtn {
  margin-top: 12px;
}

.connectedCount {
  font-size: 14px;
  color: var(--ok);
  font-weight: 800;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .playerCurrentBall {
    font-size: 56px;
  }
  
  .playerCell {
    font-size: 16px;
    border-radius: 8px;
  }
  
  .playerCardLetters span {
    font-size: 14px;
  }
  
  .bingoClaim {
    font-size: 18px;
    padding: 16px;
  }
  
  .qrRoomCode {
    font-size: 36px;
  }
}

/* ===== TEAM SELECTED GLOW EFFECT ===== */
.playerCard.teamSelected,
.bingoCard.teamSelected {
  animation: teamGlow 1s ease-in-out infinite;
}

@keyframes teamGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(214, 178, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(214, 178, 94, 0.9), 0 0 60px rgba(214, 178, 94, 0.5);
  }
}

/* Team-specific glow colors */
.playerCard.teamSelected[data-team="red"],
.bingoCard.teamSelected.red-team {
  animation: teamGlowRed 1s ease-in-out infinite;
}

@keyframes teamGlowRed {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 59, 59, 0.5); }
  50% { box-shadow: 0 0 40px rgba(255, 59, 59, 0.9), 0 0 60px rgba(255, 59, 59, 0.5); }
}

.playerCard.teamSelected[data-team="white"],
.bingoCard.teamSelected.white-team {
  animation: teamGlowWhite 1s ease-in-out infinite;
}

@keyframes teamGlowWhite {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.4); }
}

.playerCard.teamSelected[data-team="blue"],
.bingoCard.teamSelected.blue-team {
  animation: teamGlowBlue 1s ease-in-out infinite;
}

@keyframes teamGlowBlue {
  0%, 100% { box-shadow: 0 0 20px rgba(47, 123, 255, 0.5); }
  50% { box-shadow: 0 0 40px rgba(47, 123, 255, 0.9), 0 0 60px rgba(47, 123, 255, 0.5); }
}

/* ===== PLAYER BINGO CARDS - HOST STYLE ===== */
.playerGame {
  padding: 12px;
  padding-bottom: 160px;
  max-height: 100vh;
  overflow-y: auto;
}

/* Ball Display - Horizontal with Ball Styling */
.playerBallDisplay {
  background: linear-gradient(180deg, rgba(214, 178, 94, 0.15), rgba(17, 18, 36, 0.5));
  border: 2px solid rgba(214, 178, 94, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.currentBallWrapper, .lastBallsWrapper {
  text-align: center;
}

.ballLabel {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.bigBallCircle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #2a2a2a);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ball colors based on BINGO letter - same as TV display */
.bigBallCircle.ball-blue {
  background: radial-gradient(circle at 30% 30%, #6eb5ff, #1e90ff 40%, #0052a3 100%);
  border-color: rgba(30, 144, 255, 0.6);
  box-shadow: 0 6px 25px rgba(30, 144, 255, 0.5);
}

.bigBallCircle.ball-red {
  background: radial-gradient(circle at 30% 30%, #ff7b7b, #e63946 40%, #8b0000 100%);
  border-color: rgba(230, 57, 70, 0.6);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.bigBallCircle.ball-white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0 40%, #a0a0a0 100%);
  border-color: rgba(255, 255, 255, 0.6);
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.bigBallCircle.ball-green {
  background: radial-gradient(circle at 30% 30%, #7dff8a, #2ecc71 40%, #1a8a4a 100%);
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 6px 25px rgba(46, 204, 113, 0.5);
}

.bigBallCircle.ball-gold {
  background: radial-gradient(circle at 30% 30%, #ffed7d, #f1c40f 40%, #a68a00 100%);
  border-color: rgba(241, 196, 15, 0.6);
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 25px rgba(241, 196, 15, 0.5);
}

.bigBallCircle.newBall {
  animation: ballPulse 0.5s ease-out;
}

@keyframes ballPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.lastBallsRow {
  display: flex;
  gap: 8px;
}

.smallBallCircle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(80, 80, 80, 0.8), rgba(40, 40, 40, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Small ball colors */
.smallBallCircle.ball-blue {
  background: radial-gradient(circle at 30% 30%, #6eb5ff, #1e90ff 50%, #0052a3 100%);
  border-color: rgba(30, 144, 255, 0.4);
}

.smallBallCircle.ball-red {
  background: radial-gradient(circle at 30% 30%, #ff7b7b, #e63946 50%, #8b0000 100%);
  border-color: rgba(230, 57, 70, 0.4);
}

.smallBallCircle.ball-white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0 50%, #a0a0a0 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #1a1a2e;
}

.smallBallCircle.ball-green {
  background: radial-gradient(circle at 30% 30%, #7dff8a, #2ecc71 50%, #1a8a4a 100%);
  border-color: rgba(46, 204, 113, 0.4);
}

.smallBallCircle.ball-gold {
  background: radial-gradient(circle at 30% 30%, #ffed7d, #f1c40f 50%, #a68a00 100%);
  border-color: rgba(241, 196, 15, 0.4);
  color: #1a1a2e;
}

/* Player Cards Grid Container */
.playerCardsGrid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

/* Grid layouts based on card count */
.playerCardsGrid.grid-1 {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 0 auto 12px;
}

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

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

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

@media (min-width: 700px) {
  .playerCardsGrid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .playerCardsGrid.grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Player Bingo Card - HOST STYLE */
.playerBingoCard {
  background: linear-gradient(180deg, rgba(17, 18, 36, 0.95), rgba(7, 7, 11, 0.95));
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.playerBingoCard.red-border { border-color: rgba(255, 59, 59, 0.4); }
.playerBingoCard.white-border { border-color: rgba(255, 255, 255, 0.3); }
.playerBingoCard.blue-border { border-color: rgba(47, 123, 255, 0.4); }

.playerBingoCard.eliminated {
  opacity: 0.4;
  border-color: rgba(255, 77, 77, 0.4);
  position: relative;
}

.cardEliminatedOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 30, 30, 0.85);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: eliminatedPulse 1.5s ease-in-out infinite;
}

/* Cry Wolf specific styling - dark brown/amber theme like Picture 2 */
.cardEliminatedOverlay.cry-wolf {
  background: linear-gradient(180deg, rgba(60, 45, 30, 0.95), rgba(40, 30, 20, 0.98));
  animation: none;
}

/* Wolf silhouette icon */
.cryWolfIcon {
  width: 70px;
  height: 70px;
  color: rgba(180, 160, 140, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  margin-bottom: 4px;
}

.cryWolfIcon svg {
  width: 100%;
  height: 100%;
}

.cardEliminatedOverlay.cry-wolf .eliminatedText {
  color: #d4a44a;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin-top: 0;
}

.eliminatedIcon {
  font-size: 48px;
  animation: eliminatedBounce 0.5s ease;
}

.eliminatedText {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

@keyframes eliminatedPulse {
  0%, 100% { background: rgba(255, 30, 30, 0.85); }
  50% { background: rgba(200, 0, 0, 0.9); }
}

@keyframes eliminatedBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Cry Wolf button styling */
.cardBingoBtn.cry-wolf-btn {
  background: rgba(60, 45, 30, 0.8) !important;
  border-color: rgba(212, 164, 74, 0.5) !important;
  color: #d4a44a !important;
}

.cardBingoBtn.eliminated {
  background: rgba(100, 100, 100, 0.3) !important;
  border-color: rgba(255, 77, 77, 0.4) !important;
  color: rgba(255, 120, 120, 0.8) !important;
  cursor: not-allowed !important;
}

.playerBingoCard.teamSelected {
  animation: teamGlow 1s ease-in-out infinite;
}

.playerCardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.playerCardLabel {
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
}

.playerCardBadge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.playerCardBadge.red {
  background: rgba(255, 59, 59, 0.25);
  border: 1px solid rgba(255, 59, 59, 0.5);
  color: #ff8888;
}

.playerCardBadge.white {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.playerCardBadge.blue {
  background: rgba(47, 123, 255, 0.25);
  border: 1px solid rgba(47, 123, 255, 0.5);
  color: #88bbff;
}

.playerCardLetters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.playerCardLetters span {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
}

.playerCardGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.playerCardCell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--white);
}

.playerCardCell:active:not(.marked):not(.free):not(.eliminated) {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

.playerCardCell.marked {
  background: radial-gradient(circle at 30% 30%, rgba(246, 210, 122, 0.9), rgba(214, 178, 94, 0.6));
  border-color: rgba(214, 178, 94, 0.8);
  color: #14121a;
  font-weight: 950;
  box-shadow: 0 0 10px rgba(214, 178, 94, 0.3);
}

.playerCardCell.free {
  background: radial-gradient(circle at 30% 30%, rgba(25, 195, 125, 0.5), rgba(25, 195, 125, 0.3));
  border-color: rgba(25, 195, 125, 0.5);
  color: #14121a;
  font-size: 10px;
  font-weight: 900;
  cursor: default;
}

.playerCardCell.rowElim {
  background: rgba(255, 77, 77, 0.2);
  border-color: rgba(255, 77, 77, 0.4);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  cursor: not-allowed;
}

.playerCardCell.eliminated {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Bingo Claim Area - Now unused, kept for compatibility */
.bingoClaimArea {
  display: none;
}

/* Per-Card Bingo Button */
.cardBingoBtn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #19c37d, #14a066);
  border: 2px solid rgba(25, 195, 125, 0.5);
  color: white;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cardBingoBtn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(25, 195, 125, 0.4);
}

.cardBingoBtn:active:not(:disabled) {
  transform: scale(0.98);
}

.cardBingoBtn:disabled,
.cardBingoBtn.disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* Responsive adjustments for small phones */
@media (max-width: 380px) {
  .playerCardCell {
    font-size: 12px;
  }
  
  .playerCardGrid {
    gap: 2px;
  }
  
  .playerBingoCard {
    padding: 8px;
  }
  
  .bigBallCircle {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
  
  .smallBallCircle {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }
}

/* ===== TEAM SELECTION SCREEN ===== */
.playerTeamSelection {
  padding: 20px 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.teamSelectionHeader {
  text-align: center;
  margin-bottom: 24px;
}

.teamSelectionHeader h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.teamSelectionHeader p {
  color: var(--muted);
}

.teamSelectionCards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 0 12px;
  box-sizing: border-box;
}

.teamSelectCard {
  background: rgba(17, 18, 36, 0.9);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
}

.teamSelectCardLabel {
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.teamSelectButtons {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.teamSelectBtn {
  flex: 1 1 auto;
  min-width: 70px;
  max-width: 120px;
  padding: 12px 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* Mobile responsiveness for small screens */
@media (max-width: 380px) {
  .teamSelectBtn {
    font-size: 10px;
    padding: 10px 6px;
    gap: 3px;
    min-width: 60px;
  }
  
  .teamSelectButtons {
    gap: 4px;
  }
  
  .teamSelectCard {
    padding: 12px 8px;
  }
  
  .teamSelectionCards {
    padding: 0 8px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .teamSelectBtn {
    font-size: 9px;
    padding: 8px 4px;
    min-width: 50px;
  }
}

.teamSelectBtn.red:hover, .teamSelectBtn.red.selected {
  background: rgba(255, 59, 59, 0.3);
  border-color: rgba(255, 59, 59, 0.6);
}

.teamSelectBtn.white:hover, .teamSelectBtn.white.selected {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.teamSelectBtn.blue:hover, .teamSelectBtn.blue.selected {
  background: rgba(47, 123, 255, 0.3);
  border-color: rgba(47, 123, 255, 0.6);
}

.teamSelectBtn.selected {
  transform: scale(1.05);
}

.teamSelectStatus {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.teamSelectStatus.selected {
  color: var(--gold);
}

.teamSelectStatus.selected.red { color: #ff8888; }
.teamSelectStatus.selected.white { color: #ffffff; }
.teamSelectStatus.selected.blue { color: #88bbff; }

.teamSelectConfirm {
  margin-top: 24px;
  padding: 16px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #19c37d, #14a066);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teamSelectConfirm:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: not-allowed;
}

.teamSelectConfirm:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(25, 195, 125, 0.4);
}

/* ===== PLAYER SPIN MODAL ===== */
.playerSpinModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.spinModalContent {
  text-align: center;
  padding: 32px;
}

.spinModalIcon {
  font-size: 80px;
  animation: spinIcon 2s linear infinite;
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinModalContent h2 {
  font-size: 28px;
  font-weight: 950;
  color: var(--gold);
  margin: 16px 0;
}

.spinModalContent p {
  color: var(--muted);
  margin-bottom: 24px;
}

.spinModalBtn {
  padding: 18px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #b8972e);
  border: none;
  color: #14121a;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulse 1.5s ease-in-out infinite;
}

.spinModalBtn:hover {
  transform: scale(1.05);
}

/* ===== SPIN TIME ANIMATION (matches host/TV) ===== */
.spinTimeAnimation {
  background: linear-gradient(135deg, #14121a 0%, #1a1825 100%);
}

.spinTimeAnimation .spinModalContent {
  position: relative;
  padding: 40px 50px;
}

.spinTimeCircle {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinTimeCircle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #ff00ff;
  border-right-color: #00ffff;
  border-bottom-color: #ffff00;
  animation: spinRing 2s linear infinite;
}

.spinTimeCircle::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #00ffff;
  border-bottom-color: #ff00ff;
  animation: spinRing 1.5s linear infinite reverse;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinTimeIcon {
  font-size: 50px;
  z-index: 1;
  animation: bounceIcon 0.6s ease-in-out infinite alternate;
}

@keyframes bounceIcon {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.spinTimeTitle {
  font-size: 36px !important;
  font-weight: 950;
  color: #ff00ff !important;
  text-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.4);
  letter-spacing: 4px;
  animation: glowPulse 1s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.4); }
  to { text-shadow: 0 0 50px rgba(255, 0, 255, 1), 0 0 100px rgba(255, 0, 255, 0.6); }
}

.spinTimeSubtitle {
  color: #aaa !important;
  font-size: 14px;
  margin-bottom: 30px !important;
  letter-spacing: 1px;
}

.spinTimeLightning {
  position: absolute;
  font-size: 40px;
  animation: flashLightning 0.5s ease-in-out infinite;
}

.spinTimeLightning.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.spinTimeLightning.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

@keyframes flashLightning {
  0%, 100% { opacity: 1; color: #ffdd00; }
  50% { opacity: 0.3; color: #ff8800; }
}

.spinModalBtn.pulse {
  animation: bigPulse 1s ease-in-out infinite;
}

@keyframes bigPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(214, 178, 94, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(214, 178, 94, 0.8); }
}

/* ===== TRADE CARD MODAL ===== */
.playerTradeModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.tradeModalContent {
  text-align: center;
  padding: 32px;
}

.tradeModalIcon {
  font-size: 64px;
  animation: tradeRotate 2s ease-in-out infinite;
}

@keyframes tradeRotate {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

.tradeModalContent h2 {
  font-size: 24px;
  font-weight: 950;
  color: var(--gold);
  margin: 16px 0;
}

.tradeTimer {
  font-size: 48px;
  font-weight: 950;
  color: var(--bad);
  margin: 16px 0;
}

.tradeCardOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.tradeCardBtn {
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(47, 123, 255, 0.2);
  border: 2px solid rgba(47, 123, 255, 0.4);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tradeCardBtn:hover {
  background: rgba(47, 123, 255, 0.4);
  transform: scale(1.05);
}

/* ===== CARD DIMMING FOR MISS/EXTRA EFFECTS ===== */
.playerBingoCard.dimmed {
  opacity: 0.3;
  filter: grayscale(80%);
  pointer-events: none;
}

.playerBingoCard.dimmed::after {
  content: '🚫';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.8;
}

.playerBingoCard.highlighted {
  animation: highlightPulse 1s ease-in-out infinite;
  border-color: var(--gold);
}

@keyframes highlightPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(214, 178, 94, 0.3); }
  50% { box-shadow: 0 0 30px rgba(214, 178, 94, 0.6); }
}

/* ===== REWARDED ROW STYLING ===== */
.playerCardCell.rewarded {
  background: radial-gradient(circle at 30% 30%, rgba(25, 195, 125, 0.6), rgba(25, 195, 125, 0.3)) !important;
  border-color: rgba(25, 195, 125, 0.5) !important;
  color: white !important;
}

/* Rewarded column header styling */
.headerLetter.rewarded {
  background: linear-gradient(135deg, rgba(25, 195, 125, 0.7), rgba(214, 178, 94, 0.5)) !important;
  color: #ffffff !important;
  font-weight: 900;
  border-radius: 4px;
  padding: 2px 4px;
  animation: rewardedPulse 2s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes rewardedPulse {
  0%, 100% { 
    box-shadow: 0 0 8px rgba(25, 195, 125, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 16px rgba(25, 195, 125, 0.7);
    transform: scale(1.05);
  }
}

/* ===== GAME RULES DISPLAY ===== */
.gameRulesScreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.rulesHeader {
  margin-bottom: 32px;
}

.rulesIcon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.rulesHeader h2 {
  font-size: 32px;
  font-weight: 950;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.rulesList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.ruleItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(17, 18, 36, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ruleLabel {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.ruleValue {
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  text-align: right;
  max-width: 180px;
}

.ruleValue.blackout {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(214, 178, 94, 0.5);
}

.rulesCountdown {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  animation: pulse 1s ease-in-out infinite;
}

/* ===== KICKED SCREEN ===== */
.playerKicked {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.kickedIcon {
  font-size: 80px;
  margin-bottom: 20px;
}

.playerKicked h2 {
  font-size: 28px;
  font-weight: 950;
  color: var(--bad);
  margin-bottom: 12px;
}

.playerKicked p {
  color: var(--muted);
  margin-bottom: 24px;
}

.rejoinBtn {
  padding: 16px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #1a5fd4);
  border: none;
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rejoinBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(47, 123, 255, 0.4);
}

/* ===== BLOCKED CELL (from Remove Last Called) ===== */
.playerCardCell.blocked {
  background: rgba(255, 77, 77, 0.2) !important;
  border-color: rgba(255, 77, 77, 0.4) !important;
  color: rgba(255, 77, 77, 0.6) !important;
  text-decoration: line-through;
  pointer-events: none;
}

/* ==========================================
   PLAYER HEADER - LEAVE BUTTON
   ========================================== */

.playerHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.playerLeaveBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.playerLeaveBtn:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  color: #ff6b7a;
}

.playerRoomInfo {
  color: #888;
  font-size: 0.85rem;
}

.waitingLeaveBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.waitingLeaveBtn:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  color: #ff6b7a;
}

/* ===== BATTLE CHOICE MODAL ===== */
.battleChoiceModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.battleChoiceContent {
  width: 90%;
  max-width: 400px;
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 1));
  border: 2px solid rgba(255, 170, 0, 0.5);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  animation: slideUp 0.4s ease-out;
}

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

.battleChoiceIcon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: pulse 1s ease-in-out infinite;
}

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

.battleChoiceTitle {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffaa00;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(255, 170, 0, 0.3);
}

.battleChoiceDesc {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.battleChoiceTimer {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.battleChoiceTimer .timerBar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff4444, #ffaa00);
  border-radius: 4px;
  transition: width 1s linear;
}

.battleChoiceTimer span {
  position: absolute;
  right: 10px;
  top: -24px;
  color: #ff6666;
  font-weight: 700;
  font-size: 0.9rem;
}

.battleChoiceTargets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.targetCard {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.targetCard:hover {
  transform: scale(1.02);
  border-color: rgba(255, 170, 0, 0.6);
  background: rgba(255, 170, 0, 0.1);
}

.targetCard:active {
  transform: scale(0.98);
}

.targetCard.red {
  border-color: rgba(255, 68, 68, 0.5);
}

.targetCard.red:hover {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.2);
}

.targetCard.white {
  border-color: rgba(240, 240, 240, 0.5);
}

.targetCard.white:hover {
  border-color: #f0f0f0;
  background: rgba(240, 240, 240, 0.15);
}

.targetCard.blue {
  border-color: rgba(68, 136, 255, 0.5);
}

.targetCard.blue:hover {
  border-color: #4488ff;
  background: rgba(68, 136, 255, 0.2);
}

.targetCard.trade {
  border-color: rgba(100, 200, 100, 0.5);
}

.targetCard.trade:hover {
  border-color: #64c864;
  background: rgba(100, 200, 100, 0.2);
}

.targetCard.sacrifice {
  border-color: rgba(180, 100, 180, 0.5);
}

.targetCard.sacrifice:hover {
  border-color: #b464b4;
  background: rgba(180, 100, 180, 0.2);
}

.targetCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.targetPlayerName {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.targetTeamBadge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.targetTeamBadge.red {
  background: rgba(255, 68, 68, 0.3);
  color: #ff6666;
}

.targetTeamBadge.white {
  background: rgba(240, 240, 240, 0.3);
  color: #f0f0f0;
}

.targetTeamBadge.blue {
  background: rgba(68, 136, 255, 0.3);
  color: #6699ff;
}

.targetCardLabel {
  color: #aaa;
  font-size: 0.85rem;
}

.targetCardCount {
  color: #888;
  font-size: 0.8rem;
}

.noTargets {
  color: #888;
  font-style: italic;
  padding: 20px;
}

/* ===== PLAYER SOUND TOGGLE ===== */
.playerSoundToggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  position: absolute;
  right: 100px;
}

.playerSoundToggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.playerSoundToggle.muted {
  opacity: 0.5;
}

.playerHeader {
  position: relative;
}


/* Player chosen-one overlay hint */
.spin-moment-hint{
  margin-top: 8px;
  opacity: 0.75;
  font-size: 14px;
}
