:root {
  --bg-primary: #180027; /* Fundo principal */
  --primary-color: #c147e9; /* Cor primária */
  --secondary-color: #e5b8f4; /* Cor secundária */
  --accent-pink: #ff44cc; /* Rosa de destaque */
  --accent-cyan: #4ffbdf; /* Ciano de destaque */
  --accent-red: #ff6b6b; /* Vermelho de destaque */
}

body {
  background-color: var(--bg-primary);
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

h1 {
  margin: 30px;
  font-family: "Fredoka", sans-serif;
  font-size: 6rem;
  color: var(--primary-color);
  animation: shadowCycle 2s infinite ease-in-out;
  text-align: center;
}

h2.result-detail {
  font-family: "Nunito", sans-serif;
  font-size: 2.5rem;
  color: var(--secondary-color);
  opacity: 0.8;
  text-align: center;
}

p {
  font-size: 2rem;
  color: #e5b8f4;
  font-family: "Nunito", sans-serif;
  margin-bottom: 20px;
}

footer {
  margin-top: auto;
  padding: 20px;
  color: #eeeeee;
  text-align: center;
  font-family: "Nunito", sans-serif;
  background: rgba(0, 0, 0, 0.2);
}

.container {
  width: 100%;
  text-align: center;
  flex-grow: 1;
}

.hands-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.hand {
  text-align: center;
}

.hand img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(193, 71, 233, 0.3));
}

.hand img:hover {
  transform: scale(1.1);
}

.vs-divider {
  font-size: 4rem;
  color: #ff44cc;
  font-family: "Fredoka", sans-serif;
  animation: pulse 1.5s infinite;
}

.play-button {
  background: linear-gradient(45deg, #ff44cc, var(--primary-color), #4ffbdf);
  background-size: 300% 300%;
  border: none;
  border-radius: 50px;
  color: white;
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 15px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: gradientShift 3s infinite;
  box-shadow: 0 4px 15px rgba(193, 71, 233, 0.4);
  margin: 30px 0;
}

.play-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(193, 71, 233, 0.6);
}

.play-button:active {
  transform: translateY(0);
}

.score-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.score {
  background: rgba(193, 71, 233, 0.2);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 15px 25px;
  color: #e5b8f4;
  font-family: "Nunito", sans-serif;
  font-size: 1.2rem;
  min-width: 120px;
}

.score-number {
  font-size: 2rem;
  font-weight: 700;
  color: #4ffbdf;
}

.game-rules {
  background: rgba(193, 71, 233, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  color: #e5b8f4;
  font-family: "Nunito", sans-serif;
}

.rules-title {
  color: #ff44cc;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  .hands-container {
    flex-direction: column;
  }

  .vs-divider {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .hand img {
    width: 120px;
    height: 120px;
  }

  .score-container {
    flex-direction: column;
    align-items: center;
  }
}

@keyframes shadowCycle {
  0% {
    text-shadow: 4px 0 #ff44cc;
  }
  33% {
    text-shadow: 4px 0 #4ffbdf;
  }
  66% {
    text-shadow: 4px 0 #ff6b6b;
  }
  100% {
    text-shadow: 4px 0 #ff44cc;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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