/* ==========================================================
   base.css — 变量、字体、重置
   色板对齐 GDD v1.2 第 8.2 节
   ========================================================== */

:root {
  /* —— 主色板 —— */
  --c-green-wall: #24503f;   /* 墨绿墙 */
  --c-gold: #c9a24a;         /* 暗金 */
  --c-deep-purple: #3f3157;  /* 深蓝紫 */
  --c-candle: #e8a65c;       /* 烛光橙 */
  --c-parchment: #eadcd5;    /* 羊皮纸 */
  --c-wood: #4a2f22;         /* 暗木褐 */
  --c-wine: #7a2f3a;         /* 酒红 */
  --c-ice: #b9d8e8;          /* 冰蓝 */

  /* —— 派生色 —— */
  --c-gold-light: #e6c878;
  --c-gold-dark: #8a6d2f;
  --c-purple-light: #5a4578;
  --c-parchment-dark: #d4c4b8;
  --c-text-dark: #2a1f1a;
  --c-text-light: #f5ede4;

  /* —— 字体 —— */
  --f-serif: "Noto Serif SC", "Songti SC", serif;
  --f-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* —— 尺寸 —— */
  --stage-w: 1920px;
  --stage-h: 1080px;

  /* —— 动效 —— */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.35s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--f-sans);
  color: var(--c-text-light);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--c-gold-dark);
  border-radius: 4px;
}
