* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: rgb(25, 25, 25);
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  margin: 0;
  min-height: 100dvh;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 900;
  margin: 0 0 20px;
}

.game-container {
  width: min(100%, 750px);
  padding: 32px 20px;
}

.move-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 20px);
  margin-top: 24px;
}

.move-icon {
  height: clamp(44px, 13vw, 70px);
  vertical-align: middle;
}

.move-btn {
  border: clamp(5px, 1.6vw, 8px) solid white;
  border-radius: 50%;
  background-color: transparent;
  width: clamp(88px, 27vw, 150px);
  height: clamp(88px, 27vw, 150px);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.move-btn:hover,
.move-btn:focus-visible {
  border-color: rgb(255, 211, 105);
  transform: translateY(-4px);
  outline: none;
}

.game-output {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resultCss {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: bolder;
  margin: 40px 0 0;
}

.moveCss {
  min-height: 80px;
  margin: 32px 0 0;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scoreCss {
  margin: 32px 0 0;
  font-weight: 700;
}

.resetCss,
.autoPlayCss {
  margin-top: 32px;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.resetCss:hover,
.resetCss:focus-visible,
.autoPlayCss:hover,
.autoPlayCss:focus-visible {
  background-color: rgb(255, 211, 105);
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 520px) {
  body {
    align-items: flex-start;
    padding: 18px 12px;
  }

  .game-container {
    padding: 20px 0;
  }

  .move-buttons {
    gap: 10px;
  }

  .moveCss {
    min-height: 64px;
    gap: 10px;
  }
}

@media (max-width: 330px) {
  .move-btn {
    width: 78px;
    height: 78px;
  }

  .move-icon {
    height: 38px;
  }

  .resultCss {
    margin-top: 30px;
  }

  .resetCss {
    width: 100%;
    max-width: 180px;
  }
}
