:root {
  --green: #2D7A4C;
  --green-dark: #225c39;
  --gold: #C8A165;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e5e7eb;
  --danger: #b91c1c;
  --ok: #15803d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px;
}
header.app {
  background: var(--green); color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
}
header.app h1 { font-size: 18px; margin: 0; font-weight: 700; }
header.app .spacer { flex: 1; }
header.app a, header.app .pill {
  color: #fff; text-decoration: none; font-size: 13px; opacity: .9;
  border: 1px solid rgba(255,255,255,.4); padding: 4px 10px; border-radius: 999px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.grid { display: grid; gap: 12px; }
.btn {
  border: 0; border-radius: 10px; padding: 14px 16px; font-size: 16px; font-weight: 600;
  cursor: pointer; background: var(--green); color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #1f2937; }
.btn.danger { background: var(--danger); }
.btn.lg { padding: 18px; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
input, select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.center { text-align: center; }
.big-num { font-size: 40px; font-weight: 800; line-height: 1; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 50;
  opacity: 0; transition: opacity .2s; pointer-events: none; font-weight: 600;
}
.toast.show { opacity: 1; }
