0b22691b3d
单机发牌器 — 一台手机轮流传,无 room / 无 ws。30 个角色 + 4 档默认预设 (8/9/10/12 人) + 配置历史(dedup + cap 50)+ 4x 偏好加权 + swipe-to-reveal + tap-to-confirm + 3D card flip + 死亡标记,全部本地 localStorage。 RNG 注入,logic 层 29 个 vitest(含 2000 次蒙特卡洛验证偏好命中率 > 40%、 均匀分布 ±5%)。也把 *.tsbuildinfo 加进 .gitignore。
36 lines
728 B
CSS
36 lines
728 B
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #1a1a2e;
|
|
--bg-soft: rgba(255, 255, 255, 0.06);
|
|
--bg-card: rgba(255, 255, 255, 0.08);
|
|
--border: rgba(255, 255, 255, 0.15);
|
|
--fg: rgba(255, 255, 255, 0.92);
|
|
--fg-dim: rgba(255, 255, 255, 0.6);
|
|
--accent: #7c3aed;
|
|
--accent-2: #06b6d4;
|
|
--danger: #ef4444;
|
|
--ok: #4caf50;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body, #app {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|