/* ==========================================================================
   tokens.css · 设计变量（蛋仔数学大冒险）
   童趣卡通 / 圆润大圆角 / 柔和渐变 / 轻玻璃拟态
   纯 CSS，无外部字体与 CDN（离线本机可运行）
   ========================================================================== */
:root {
  /* 主色 */
  --c-primary: #ff8c42;
  --c-primary-2: #ffb072;
  --c-teal: #4ecdc4;
  --c-purple: #6c5ce7;
  --c-purple-2: #a29bfe;

  /* 背景 */
  --c-bg-1: #fff7ed;
  --c-bg-2: #f0f9ff;
  --c-bg-3: #fffdf7;
  --c-card: #ffffff;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);

  /* 文本 */
  --c-ink: #2d3436;
  --c-ink-2: #5b6b7b;
  --c-ink-3: #93a3b3;

  /* 功能色 */
  --c-ok: #2ecc71;
  --c-gold: #ffb400;
  --c-warn: #ff6b6b;

  /* 圆角 */
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-1: 0 6px 18px rgba(45, 52, 54, 0.08);
  --sh-2: 0 16px 44px rgba(45, 52, 54, 0.16);
  --sh-in: inset 0 -3px 0 rgba(0, 0, 0, 0.06);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
  --dur-slow: 380ms;

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 世界场景主题色（由 worlds.css 结合使用） */
:root {
  --scene-castle: #3f4a5a;
  --scene-forest: #4a6b4f;
  --scene-funfair: #6b4a6b;
  --scene-compass: #3d5a70;
  --scene-mine: #4a4030;
  --scene-cake: #6b4f52;
  --scene-shape: #44506e;
  --scene-snow: #54697e;
  --scene-town: #5d5240;
  --scene-shop: #5a4a30;
}
