/* 按钮样式 */
.button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.button:hover {
  background-color: #45a049;
}
.button:active {
  background-color: #3e8e41;
}

/* 倒计时样式 */
.countdown {
  color: #f44336;
  font-size: 2.5em;
  text-align: center;
  margin: 20px 0;
}

/* 游戏大厅网格布局 */
.game-hall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.game-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.game-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}

.puzzle-cell {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  transition: box-shadow 0.2s, background 0.2s;
  user-select: none;
  overflow: hidden;
}
.puzzle-cell:hover {
  box-shadow: 0 2px 8px rgba(76,175,80,0.18);
  background: #f1f8e9;
} 

/* 拼图游戏自适应布局 */
.puzzle-content-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.puzzle-tips-box {
  flex: 0 0 220px;
  min-width: 120px;
  max-width: 180px;
  background: #f8fff5;
  border-radius: 10px;
  padding: 6px 8px 6px 8px;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  font-size: 0.98em;
  color: #388e3c;
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .puzzle-content-flex {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 100vw;
    padding: 0 4vw;
  }
  .puzzle-tips-box {
    flex: unset;
    min-width: 0;
    max-width: 100%;
    padding: 2px 4px;
    margin-bottom: 4px;
    height: auto;
  }
} 

/* 3秒挑战（掐秒表）移动端适配 */
@media (max-width: 600px) {
  #stopwatch-view > div {
    flex-direction: column !important;
    gap: 8px !important;
    max-width: 98vw !important;
    align-items: stretch !important;
  }
  #stopwatch-view .puzzle-tips-box {
    max-width: 100% !important;
  }
  #stopwatch-timer {
    font-size: 2em !important;
    padding: 12px 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #stopwatch-btn {
    width: 100% !important;
    font-size: 1.1em !important;
    padding: 10px 0 !important;
    margin: 0 auto !important;
  }
  #stopwatch-best {
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto 8px auto !important;
    font-size: 1.08em !important;
    padding: 10px 0 8px 0 !important;
  }
  #stopwatch-result {
    font-size: 1.2em !important;
  }
} 

/* 拼图游戏伪全屏样式 */
.puzzle-fullscreen {
  position: fixed !important;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #fff !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  /* 防止底部 UI 透出 */
  min-height: 100vh;
  min-width: 100vw;
}
.puzzle-fullscreen .puzzle-grid {
  max-width: 98vw !important;
  max-height: 80vh !important;
  width: 98vw !important;
  height: auto !important;
  margin: 0 auto !important;
  aspect-ratio: 16/9 !important;
  background: #fff !important;
} 

body {
  background: #e8f5e9;
  margin: 0;
  padding: 0;
  background: #fff;
} 

/* 移除 puzzle-mobile-landscape 横屏样式，移动端全屏和 PC 端一致 */ 