@font-face {
  font-family: 'ZCOOL';
  src: url(../assets/ZCOOLKuaiLe-Regular.ttf) format('truetype');
  font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #0e1c12;
  font-family: 'ZCOOL', 'Microsoft YaHei', sans-serif;
  color: #22361a;
  overflow: auto;
  min-width: 1024px;
  min-height: 620px;
  user-select: none;
}
#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 1024px;
  min-height: 620px;
}
.hidden { display: none !important; }
button { font-family: inherit; }

/* ---------- 通用按钮 ---------- */
button.primary, button.ghost {
  cursor: pointer;
  border-radius: 14px;
  min-height: 56px;
  font-size: 22px;
  border: 2px solid transparent;
  transition: filter 0.15s, transform 0.08s, background 0.15s;
}
button.primary {
  background: linear-gradient(180deg, #5ccb41, #3f9e2c);
  color: #fff;
  border-color: #2f7a20;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px rgba(0, 0, 0, 0.25);
}
button.primary:hover { filter: brightness(1.06); }
button.primary:active { transform: translateY(1px); }
button.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #eaf7e4;
  border-color: rgba(255, 255, 255, 0.25);
}
button.ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- 通用弹层 ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-mask { position: absolute; inset: 0; background: rgba(3, 6, 4, 0.72); }

/* ---------- 全屏页面背景 ---------- */
.screen-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.screen-shade { position: absolute; inset: 0; background: rgba(4, 10, 6, 0.38); }
