/* ── BASE ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--text); color: var(--bg); padding: 8px 16px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  opacity: 0; transition: all 0.2s; z-index: 999; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLL-TO-TOP BUTTON ─────────────────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest-mid);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
  font-size: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--forest);
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

body.dark .scroll-to-top {
  background: var(--forest-mid);
}

body.dark .scroll-to-top:hover {
  background: var(--forest);
}

/* ── NUMBER ROLL ANIMATION ──────────────────────────────────────────────── */
.hero-stat-val {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.roll-digit-wrap {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1em;
  vertical-align: bottom;
  line-height: 1;
}
.roll-digit-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.roll-digit-inner span {
  height: 1em;
  line-height: 1;
  display: block;
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.empty-state { padding: 64px 32px; text-align: center; color: var(--text2); }
.empty-state .icon { font-size: 32px; margin-bottom: 12px; display:flex; align-items:center; justify-content:center; color:var(--text3); }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }
