/* ============================================
   Tablo — Rock Paper Scissors Styles
   ============================================ */

.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 20px;
  gap: 20px;
}

.game-wrapper::before {
  content: '';
  display: block;
  height: 12px;
  flex-shrink: 0;
}

.game-stats {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #2dd4bf;
}

.rps-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
}

.rps-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rps-hand {
  width: 80px;
  height: 80px;
  background: #0f1923;
  border: 3px solid #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rps-hand svg {
  width: 44px;
  height: 44px;
  color: #e2e8f0;
}

.rps-hand.winner {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.rps-hand.loser {
  border-color: #ef4444;
  opacity: 0.6;
}

.rps-hand.shaking {
  animation: rps-shake 0.5s ease-in-out infinite;
}

@keyframes rps-shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.rps-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rps-vs {
  font-size: 20px;
  font-weight: 800;
  color: #2dd4bf;
  min-width: 60px;
  text-align: center;
  transition: all 0.3s ease;
}

.rps-vs.win {
  color: #22c55e;
  font-size: 14px;
}

.rps-vs.lose {
  color: #ef4444;
  font-size: 14px;
}

.rps-vs.draw {
  color: #eab308;
  font-size: 14px;
}

.rps-choices {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.rps-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.rps-choice-btn:hover:not(:disabled) {
  background: #243044;
  border-color: #2dd4bf;
  transform: translateY(-4px);
}

.rps-choice-btn:active {
  transform: translateY(0);
}

.rps-choice-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rps-choice-btn svg {
  width: 36px;
  height: 36px;
  color: #2dd4bf;
}

.rps-choice-btn span {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.game-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-primary, sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.game-btn:hover {
  background: #243044;
  border-color: #2dd4bf;
  color: #2dd4bf;
}

.game-hint {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin: 8px auto;
  max-width: 360px;
  line-height: 1.5;
}

.tablo-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.tablo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .rps-hand {
    width: 64px;
    height: 64px;
  }

  .rps-hand svg {
    width: 36px;
    height: 36px;
  }

  .rps-arena {
    gap: 12px;
    padding: 24px 16px;
  }

  .rps-choice-btn {
    min-width: 80px;
    padding: 12px 16px;
  }

  .game-stats { gap: 16px; padding: 12px 16px; }
  .game-btn { width: 100%; }
}