/*
 * Wishmash 视觉方向：「雪夜小镇 · 剪纸绘本」
 * 场景：深蓝冬夜、剪纸风小镇剪影、雪地上一串通往炉子的脚印；砖陶色小炉子是画面里最暖的光源。
 * 质感：卡片是一张张剪下来、用和纸胶带贴上去的米色纸（不规则圆角 + 硬边错位阴影 + 细颗粒纹理）。
 * 字体：只用系统自带中文字体。界面用黑体；愿望、礼物名这类「有感情」的字用宋体，像一封手写的许愿信。
 * 参考：传统剪纸窗花的硬边轮廓；冬夜绘本里「一盏暖灯照亮雪地」的构图。
 * 禁区：红绿圣诞配色、版权角色、外部字体和 CDN。
 *
 * 文件分工：app.css 设计变量与基础排版；scene.css 夜空、落雪、小镇、炉子；ui.css 卡片、表单、按钮等组件。
 */
:root {
  /* 夜空 */
  --sky-0: #060920;
  --sky-1: #0c1238;
  --sky-2: #161c52;
  --sky-3: #241f5a;
  --sky-text: #e9ecff;
  --sky-muted: #aab1de;
  --sky-dim: #7d85bb;
  --snow: #e6ebff;
  --moon: #f6f0d2;

  /* 炉火 */
  --ember-700: #b8401a;
  --ember-600: #e2541c;
  --ember-500: #ff7a2f;
  --ember-400: #ff9a45;
  --ember-300: #ffbe66;
  --ember-100: #ffe7a8;

  /* 纸 */
  --paper-hi: #fdf6e6;
  --paper: #f6e9cf;
  --paper-lo: #ecd8b4;
  --paper-edge: #d9bf94;
  --ink: #2b1c18;
  --ink-soft: #6c5545;
  --ink-faint: #9a8370;

  /* 陶土炉身 */
  --clay: #9a4632;
  --clay-light: #c0603f;
  --clay-dark: #4d2219;
  --clay-deep: #3a1812;
  --seal: #c23a2b;

  /* 反应等级 */
  --rare: #a77bff;
  --legend: #ffd24a;

  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-letter: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-2xs: 0.72rem;
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.45rem;
  --text-2xl: clamp(1.55rem, 1.2rem + 1.8vw, 1.85rem);
  --text-hero: clamp(1.95rem, 1.3rem + 3.2vw, 2.4rem);

  --gutter: 16px;
  --radius-paper: 18px 22px 15px 24px / 22px 15px 24px 18px;
  --shadow-paper:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 0 rgba(4, 6, 26, 0.62),
    0 24px 40px -14px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 3px 0 rgba(77, 34, 25, 0.22);

  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.1  0 0 0 0.11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

html { -webkit-text-size-adjust: 100%; background: var(--sky-0); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--sky-text);
  background: var(--sky-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--ember-300); }

.page {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px var(--gutter) 56px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
