.start-center-buttons {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.start-right-buttons {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 3;
}

.start-button {
  position: relative;
  border: none;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 450px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 999px;
}

.start-button:hover {
  transform: translateY(-5px) scale(1.05);
}

.start-button:active {
  animation: buttonClick 0.3s ease !important;
  animation-iteration-count: 1 !important;
}

@keyframes buttonClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.start-button.training-start:active {
  background: #cd524e;
}

.start-button.view-ranking:active {
  background: #4cafa1;
}

.start-button.training-start:hover {
  background: #cd524e;
  filter: brightness(0.8);
}

.start-button.training-start {
  cursor: pointer;
  background: #cd524e;
  animation: pulse 2s infinite;
}

.start-button.view-ranking {
  cursor: pointer;
  background: #4cafa1;
  animation: scalePulse 2.5s infinite ease-in-out;
}

.start-button.view-ranking:hover {
  background: #4cafa1;
  filter: brightness(0.8);
}

.button-content {
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-weight: bold;
}

.button-text {
  font-size: 32px;
  line-height: 1;
}

.training-text {
  font-size: 45px;
  font-weight: 500;
}

.start-text {
  font-size: 55px;
  font-weight: 500;
}

.button-text.special-width {
  max-width: 65%;
  margin: 0 auto;
}

.button-sub {
  font-size: 24px;
  margin-top: 5px;
  font-weight: bold;
}

@keyframes scalePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.countdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.countdown-overlay.show {
  display: flex;
}

.countdown-container {
  text-align: center;
  color: white;
}

.countdown-number {
  font-size: 100px;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: countdownPulse 1s ease-in-out;
  margin-bottom: 20px;
}

@keyframes countdownPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

.start-buttons.hidden {
  display: none;
}

.chosen-languages.hidden {
  display: none;
}

.how-to-plays.hidden {
  display: none;
}

.hand-pointing.hidden {
  display: none;
}

.are-you-ready-buttons.hidden {
  display: none;
}

.how-to-buttons.hidden {
  display: none;
}

.chosen-languages {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 60px;
}

.language-button {
  position: relative;
  border: none;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 400px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 999px;
}

.language-button:active {
  animation: buttonClick 0.3s ease !important;
  animation-iteration-count: 1 !important;
}

.language-button.japanese-button {
  background: #cd524e;
  animation: pulse 2s infinite;
}

.language-button.japanese-button:hover {
  background: #cd524e;
  filter: brightness(0.8);
}

.language-button.english-button {
  background: #4cafa1;
  animation: pulse 2s infinite;
}

.language-button:hover {
  transform: translateY(-5px) scale(1.05);
}

.language-button:active {
  animation: buttonPress 0.5s ease;
}

.language-button.japanese-button:active {
  background: #cd524e;
}

.language-button.english-button:active {
  background: #4cafa1;
}

.language-button.english-button:hover {
  background: #4cafa1;
  filter: brightness(0.8);
}

.how-to-plays {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 100px;
}

.how-to-plays .button-text {
  color: #000;
}

.are-you-ready-buttons {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-to-buttons {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hand-pointing-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hand-pointing {
  position: absolute;
  width: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-70deg);
}

@keyframes scalePulseHandPointing {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-70deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(-70deg) scale(1.08);
  }
}

.how-to-play {
  transition: all 0.5s ease;
  position: relative;
  width: 500px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 15px;
  border: 3px solid #1a252f;
  background-color: #fff;
}

.how-to-play.step-one {
  animation: pulse 2s infinite;
}

.how-to-play.step-two {
  animation: pulse 2s infinite;
}

.centered-images {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  gap: 20px;
  z-index: 3;
}

.centered-images img {
  width: 400px;
  height: auto;
  animation: shake 0.6s infinite;
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0);
  }

  20% {
    transform: translate(-5px, 0) rotate(-2deg);
  }

  40% {
    transform: translate(5px, 0) rotate(2deg);
  }

  60% {
    transform: translate(-5px, 0) rotate(-1deg);
  }

  80% {
    transform: translate(5px, 0) rotate(1deg);
  }

  100% {
    transform: translate(0, 0) rotate(0);
  }
}

@media (max-width: 768px) {
  .start-button {
    min-width: 250px;
    padding: 15px 30px;
  }

  .button-text {
    font-size: 20px;
  }

  .countdown-number {
    font-size: 80px;
  }

  .countdown-text {
    font-size: 24px;
  }
}
