* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.game-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.5s ease-out;
}

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

.game-header {
  text-align: center;
  margin-bottom: 30px;
}

.game-title {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

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

.title-emoji {
  display: inline-block;
  animation: rotate 2s linear infinite;
}

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

.mode-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mode-btn.active {
  background: #667eea;
  color: white;
}

.score-board {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
}

.player-score,
.computer-score {
  text-align: center;
}

.player-score h3,
.computer-score h3 {
  color: #333;
  margin-bottom: 10px;
}

.score {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  display: block;
  animation: scoreChange 0.3s ease;
}

@keyframes scoreChange {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.streak {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

.round-info {
  text-align: center;
}

.round-number {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 5px;
}

.game-mode {
  font-size: 1rem;
  color: #666;
  font-style: italic;
}

.game-area {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 30px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.choice-container {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.choice-container.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.choice-emoji {
  font-size: 4rem;
  margin-bottom: 10px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.choice-label {
  color: #666;
  font-size: 0.9rem;
}

.vs-display {
  text-align: center;
}

.vs-text {
  font-size: 2rem;
  font-weight: bold;
  color: #764ba2;
  margin-bottom: 10px;
}

.result-message {
  font-size: 1.2rem;
  font-weight: bold;
  min-height: 30px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.result-message.win {
  color: #4caf50;
}

.result-message.lose {
  color: #f44336;
}

.result-message.draw {
  color: #ff9800;
}

.choices-section {
  text-align: center;
  margin-bottom: 30px;
}

.choices-title {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.choices,
.special-choices {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.choice-btn {
  padding: 20px;
  border: 3px solid #667eea;
  background: white;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.choice-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  background: #667eea;
  color: white;
}

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

.choice-btn.special {
  border-color: #ff6b6b;
}

.choice-btn.special:hover {
  background: #ff6b6b;
}

.choice-icon {
  font-size: 3rem;
  display: block;
}

.choice-name {
  font-size: 1.1rem;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

.tournament-bracket {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.tournament-bracket h3 {
  color: #333;
  margin-bottom: 15px;
}

.bracket-display {
  text-align: center;
}

.tournament-round {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.tournament-progress {
  margin: 15px 0;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #667eea, #764ba2);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

.best-of {
  color: #666;
  font-size: 0.9rem;
}

.achievements {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.achievements h3 {
  color: #333;
  margin-bottom: 15px;
}

.achievement-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 50px;
}

.achievement-item {
  background: white;
  padding: 10px 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: achievementPop 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.achievement-icon {
  font-size: 1.5rem;
}

.achievement-text {
  font-size: 0.9rem;
  color: #333;
}

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

.control-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  animation: modalSlide 0.3s ease;
}

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

.close-modal {
  float: right;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

.modal-content h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 10px;
}

.stat-label {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

@media (max-width: 768px) {
  .game-title {
    font-size: 1.8rem;
  }

  .choice-emoji {
    font-size: 3rem;
  }

  .choice-icon {
    font-size: 2rem;
  }

  .score {
    font-size: 2rem;
  }

  .game-area {
    flex-direction: column;
    gap: 20px;
  }
}
