/* 🌿 页面整体样式 */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #5b3a29;
}

canvas {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

}

/* 文本框样式 */
#story-box {
  
  margin: 60vh auto 0;   /* 往下推，滚动才能看到 */
  width: 1000px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(220, 210, 200);
  color: #FDFBF7;
 
}

/* 🏆 成就弹窗样式 */
#achievement-box {
  position: fixed;
  top: 40px;
  right: -300px; /* 初始隐藏 */
  background: #3b2f2f;
  color: #f8e8c0;
  font-size: 18px;
  font-family: "Arial", sans-serif;
  padding: 16px 28px;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: right 0.8s ease-out;
  z-index: 9999;
}

#achievement-box.show {
  right: 20px; /* 滑入位置 */
}

/* 📜 永久成就列表 */
#achievement-list {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 220px;
  background: rgba(59, 47, 47, 0.85);
  color: #f8e8c0;
  font-family: "Arial", sans-serif;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

#achievement-list h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(248, 232, 192, 0.5);
  padding-bottom: 5px;
}

#achievement-count {
  font-weight: normal;
  font-size: 14px;
  font-weight: normal;
  color: rgba(248, 232, 192, 0.9);
}

/* 🪶 成就条目 */
#achievement-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

#achievement-items li {
  margin-bottom: 5px;
  font-size: 14px;
}





/* 横向物品栏 */
.inventory-bar {
  position: absolute;
  top: 90%;           /* 在画布底部 */
  left: 50%;           /* 居中 */
  transform: translateX(-50%); /* 把自身水平中心对齐 */

  margin-top: 10px;           /* 画布与物品栏间距 */
  padding: 5px 7px;
  background: #3e2a1e;        /* 比背景深一点以区分 */
  border-radius: 10px;
  display: flex;
  gap: 7px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* 每个方块 */
.slot {
  width: 35px;
  height: 35px;
  background: #7a5540;         /* 稍浅的格子底色 */
  border: 2px solid #a3765a;   /* 浅边框提升层次 */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #f8e8d0;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.3);
}
.slot.lit {
  background: #b7896a;               /* 亮一点 */
  border-color: #ffd8a6;             /* 边更亮 */
  box-shadow:
    inset 0 2px 2px rgba(0,0,0,0.25),
    0 0 10px rgba(255, 220, 160, 0.7); /* 外发光 */
  transform: translateY(-1px);
}



