/* 游戏界面通用样式 */

.game-container {
  width: 100%;
  max-width: 800px; /* 稍微宽一点，适应不同游戏 */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem;
  box-sizing: border-box;
  margin: 0 auto;
}

/* 游戏主区域（方框） */
.game-board {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  /* 默认保持一定的宽高比，或者最小高度 */
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid transparent;
  transition: all var(--transition);
  overflow: hidden;
}

/* 游戏状态提示 */
.game-status-overlay {
  text-align: center;
  padding: 2rem;
}

.game-status-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.game-visual-placeholder {
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* 底部控制按钮区 */
.game-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.game-btn {
  background: var(--card-bg);
  color: var(--primary);
  border: 2px solid var(--primary-light);
  padding: 1rem 0.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0, 120, 255, 0.05);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-btn i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.game-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.15);
}

.game-btn:active {
  transform: translateY(0);
  background: #dbeafe;
}

/* 主要操作按钮样式 */
.game-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.25);
}

.game-btn.primary:hover {
  background: #0066d9;
  border-color: #0066d9;
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.35);
}

/* 危险/退出按钮样式 */
.game-btn.danger {
  color: #ff4757;
  border-color: #ffe0e3;
}

.game-btn.danger:hover {
  background: #ffe0e3;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.15);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .game-container {
    padding: 0;
  }
  
  .game-board {
    border-radius: 0 0 24px 24px; /* 移动端顶部贴边，底部圆角 */
    min-height: 350px;
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .game-controls {
    padding: 0 1rem;
    gap: 0.8rem;
  }
  
  .game-btn {
    padding: 0.8rem 0.3rem;
    font-size: 0.9rem;
  }
  
  .game-btn i {
    font-size: 1.2rem;
  }
}
