:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at top, #1e2a45, #0a101d 62%);
  color: #e8ecff;
  font-family: "Inter", "Segoe UI", sans-serif;
  padding: 20px;
}

.rps {
  width: min(720px, 100%);
  background: rgba(9, 14, 30, 0.84);
  border: 1px solid rgba(133, 157, 255, 0.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 42px rgba(1, 3, 10, 0.55);
}

.rps__header h1 {
  margin: 0;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
}

.rps__header p {
  margin: 8px 0 0;
  color: #b6c4ff;
}

.rps__choices {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rps__choices button,
.rps__reset {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #041329;
  background: linear-gradient(135deg, #7fd7ff, #73a8ff);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.rps__choices button {
  min-height: 46px;
}

.rps__choices button:hover,
.rps__reset:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.rps__result {
  margin: 16px 0 0;
  min-height: 2.8em;
  font-weight: 600;
  color: #f6f8ff;
}

.rps__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: #c9d5ff;
}

.rps__stats p {
  margin: 0;
}

.rps__reset {
  margin-top: 16px;
  min-height: 42px;
  padding: 0 16px;
}

.rps__history-wrap {
  margin-top: 18px;
  border-top: 1px solid rgba(133, 157, 255, 0.3);
  padding-top: 14px;
}

.rps__history-wrap h2 {
  margin: 0;
  font-size: 1rem;
}

.rps__history {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #b6c4ff;
}

.rps__history li + li {
  margin-top: 6px;
}

@media (max-width: 560px) {
  body {
    padding: 12px;
  }

  .rps {
    border-radius: 16px;
    padding: 16px;
  }

  .rps__choices {
    grid-template-columns: 1fr;
  }
}
