/* 全局基底：色板继承小程序（绿桌布 + 金按钮） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: #0a5940;
  color: #fff;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "KaiTi", sans-serif;
  font-size: 16px; line-height: 1.6;
  overscroll-behavior: none;
}
#app { min-height: 100dvh; }

button {
  border: none; outline: none; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7d774, #d9a520);
  color: #4a3400;
  padding: 12px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
button:active { transform: translateY(1px); }
button[disabled] { opacity: 0.45; box-shadow: none; }

input {
  font-family: inherit; font-size: 17px; color: #2b2b2b;
  border: none; outline: none; border-radius: 12px;
  background: #fff; padding: 11px 14px; width: 100%;
}
input::placeholder { color: #9aa5a0; }

/* ---------- toast / confirm / loading（float 层） ---------- */
#toast {
  position: fixed; left: 50%; bottom: 12%; transform: translateX(-50%);
  max-width: 78vw; padding: 10px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 14px;
  z-index: 99; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
#toast.on { opacity: 1; }

.mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 98;
}
.dialog {
  width: min(320px, 84vw); background: linear-gradient(180deg, #14503a, #0a3323);
  border: 2px solid #d9a520; border-radius: 18px; padding: 22px 20px 16px; text-align: center;
}
.dialog .msg { font-size: 16px; margin-bottom: 18px; white-space: pre-wrap; }
.dialog .row { display: flex; gap: 12px; justify-content: center; }
.dialog .row button { font-size: 15px; padding: 9px 22px; }
.dialog .row .ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }

#loading {
  position: fixed; inset: 0; z-index: 97;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 15px;
}
