* { box-sizing: border-box; }
html,body {
 background-color: #ffffff; /* 白色背景 */
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
 flex-direction: column; /* 纵向排列：文字在上，游戏在下 */
 font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* 顶部标题文字 */
      h1 {
        font-size: 28px;
        font-weight: 600;
        color: #333;
        margin-bottom: 24px; /* 与游戏区域的间距 */
        text-align: center;
      }


.game-container {
  background-image: url("/IMG_2009.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 900px;   /* 你的游戏区域宽度 */
  height: 600px;  /* 游戏区域高度 */
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  display: block;
  margin: 0 auto;
  border: 3px solid rgba(230,238,248,0.08);
  background: transparent;
  border-radius: 6px;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

button {
  background: linear-gradient(180deg,#0ea5a5,#047857);
  border: 0;
  padding: 8px 14px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

button#pauseBtn { background: linear-gradient(180deg,#f97316,#b45309); }

.hint {
  font-size: 13px;
  opacity: 0.9;
  margin-left: 8px;
}
