.rock-paper-scissors-section {
  display: flex;
}

.rock-paper-scissors-container {
  display: flex;
  flex-direction: column;
  margin: 80px 0;
  padding: 80px 20px;
  justify-content: center;
  align-items: center;
  flex: 1;
  background-color: var(--color-primary-shade);
  box-shadow: var(--shadow-md) var(--color-shadow);
  gap: 28px;
}

.rps-names-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
}

.rps-name, .rps-versus {
  font-family: var(--font-family-accent);
  color: var(--color-text);
  text-shadow: var(--text-shadow-sm) var(--color-shadow);
  font-weight: bold;
  justify-content: center;
  text-align: center;
}

.rps-name {
  font-size: var(--font-size-h2);
  line-height: 100%;
  width: 80px;
}

.rps-versus {
  font-size: var(--font-size-h1);
  line-height: 40%;
  width: 100px;
}

.rps-avatars-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 360px;
  width: 100%;
  gap: 20px;
  padding-bottom: 20px;
}

.rps-avatar-wrapper {
  position: relative;
  height: 150px;
  aspect-ratio: 1 / 1;
}

.rps-avatar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 100%;
  box-shadow: 0 0 8px 0 var(--color-shadow);
  background-color: transparent;
  z-index: 1;
  background-color: var(--color-primary-dark);
}

.rps-avatar-image {
  height: 90%;
  position: absolute;
  bottom: -2px;
  object-fit: fill;
  z-index: 0;
}

.rps-avatar-move {
  position: absolute;
  bottom: -20px;
  width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  aspect-ratio: 1/1;
  background-color: var(--color-primary-shade);
  border-radius: 100%;
  border: 3px solid var(--color-border);
  box-shadow: 0 0 4px 0 var(--color-shadow);
}

.rps-player-move {
  right: -4px;
}

.rps-player-move-content {
  transform: scaleY(-1) rotate(90deg) translateY(0);
  transform-origin: center;
}

.rps-ai-move {
  left: -4px;
}

.rps-ai-move-content {
  transform: rotate(-90deg) translateY(0);
  transform-origin: center;
}

.rps-player-move-content.hidden, .rps-ai-move-content.hidden {
  margin-top: -5px;
}

.rps-fill-bar-container {
  width: 320px;
}

.rps-fill-bar-fill {
  transition: width 0.3s ease;
}

.rock-paper-scissors-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.move-icon {
  aspect-ratio: 1/1;
  height: 40px;
  align-self: center;
  vertical-align: middle;
}

.rock-icon {
  height: 40px;
}

.moves {
  transition: opacity 0.4s ease;
  opacity: 1;
  text-align: center;
  margin: 0;
}

.result {
  font-size: var(--font-size-body);
  font-family: var(--font-family-accent);
  font-weight: regular;
  margin: 0;
  line-height: 20px;
  height: 20px;

  opacity: 1;
  transition: opacity 0.4s ease;
}

.result.hidden {
  opacity: 0;
}

.result-highlight {
  font-size: var(--font-size-h3);
  font-weight: 500;
  text-shadow: var(--text-shadow-sm) var(--color-shadow);
}