.feature-card {
  background-color: rgb(31 41 55);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.how-to-card {
  background-color: rgb(31 41 55);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  position: relative;
  padding-left: 4rem;
}

.step-number {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  background-color: rgb(126 34 206);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.contributor-tag {
  background-color: rgb(88 28 135);
  color: rgb(233 213 255);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.game-loading-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 0.5rem;
  z-index: 10;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #333;
  border-bottom-color: #7c3aed;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  color: #9ca3af;
  font-size: 1.125rem;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#game-frame {
  background: #1a1a1a;
  min-height: 600px;
  position: relative;
  z-index: 1;
}

/* 添加播放按钮样式 */
.game-play-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 0.5rem;
  z-index: 10;
}

.play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.play-text {
  color: #9ca3af;
  font-size: 1.25rem;
  font-weight: 500;
}

/* 添加工具类 */
.hidden {
  display: none;
}
