.rps-tool {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
}

.rps-container {
  background: white;
  padding: 5vh;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 1400px;
  transition: transform 0.3s ease;
}

.rps-title {
  font-size: min(5vw, 48px);
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--color-primary);
}

.rps-score {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
  font-size: min(4vw, 24px);
  font-weight: 600;
}

.player-score, .computer-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-value {
  font-size: min(8vw, 48px);
  color: var(--color-primary);
}

.rps-arena {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.player-side, .computer-side {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vs-label {
  font-size: min(6vw, 36px);
  font-weight: 700;
  color: var(--color-text-light);
}

.choice-display {
  width: min(30vw, 200px);
  height: min(30vw, 200px);
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(15vw, 100px);
  margin: 20px 0;
  transition: all 0.3s ease;
}

.choice-display.winner {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.choice-display.tie {
  background: var(--color-text-light);
  color: white;
}

.result-message {
  font-size: min(5vw, 36px);
  font-weight: 600;
  margin: 30px 0;
  color: var(--color-primary);
  min-height: 50px;
}

.rps-choices {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.choice-btn {
  width: min(20vw, 120px);
  height: min(20vw, 120px);
  border-radius: 50%;
  border: none;
  background: var(--color-background);
  font-size: min(10vw, 60px);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-btn:hover {
  background: var(--color-background-dark);
  transform: translateY(-5px);
}

.choice-btn.active {
  background: var(--color-primary);
  color: white;
}

.rps-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.play-btn, .reset-btn {
  padding: min(3vh, 16px) min(4vw, 32px);
  font-size: min(3vw, 20px);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: min(20vw, 150px);
}

.play-btn {
  background: var(--color-primary);
  color: white;
}

.play-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.reset-btn {
  background: var(--color-text-light);
  color: white;
}

.reset-btn:hover {
  background: var(--color-text);
  transform: translateY(-2px);
}

.rps-history {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.history-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text);
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-result {
  font-weight: 600;
}

.history-result.win {
  color: #4CAF50;
}

.history-result.lose {
  color: #F44336;
}

.history-result.tie {
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .rps-arena {
    flex-direction: column;
  }
  
  .vs-label {
    transform: rotate(90deg);
    margin: 20px 0;
  }
  
  .rps-choices {
    flex-direction: column;
    align-items: center;
  }
}
