:root {
  color-scheme: light;
  --primary-800: #24584f;
  --primary-700: #2a6359;
  --primary-600: #2f6f64;
  --primary-100: #deebe7;
  --accent-600: #bb8a45;
  --accent-100: #f5ead9;
  --violet-700: var(--primary-800);
  --violet-600: var(--primary-600);
  --violet-100: var(--primary-100);
  --blue-700: var(--primary-800);
  --blue-600: var(--primary-600);
  --blue-100: var(--primary-100);
  --live-600: #a94f49;
  --live-500: #b85f58;
  --success-600: #2f7467;
  --warning-600: #9a6b2f;
  --ink-950: #182522;
  --ink-800: #243430;
  --ink-700: #354741;
  --ink-600: #50615b;
  --ink-500: #667670;
  --ink-400: #91a09a;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --line: #d9e2de;
  --line-strong: #c4d0cb;
  --video-surface: #15201e;
  --shadow-card: 0 12px 34px rgba(34, 57, 51, 0.08);
  --shadow-float: 0 20px 60px rgba(24, 37, 34, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --focus-ring: 0 0 0 3px rgba(47, 111, 100, 0.28);
  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  font-family: var(--font-sans);
  color: var(--ink-950);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums,
.coin-value,
.stat-card strong,
.metric strong {
  font-variant-numeric: tabular-nums;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:active,
a:active,
[role="button"]:active {
  opacity: 0.78;
}

[hidden] { display: none !important; }
[data-ui-icon] { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; }
[data-ui-icon] svg { width: 100%; height: 100%; }

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.46;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 24px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.94);
  color: white;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
