/* 网站自己的字体（放在 shared/fonts/，不连 Google Fonts）。
   中文字体只有网站上用到的字；加了新的字要跑 tools/make-fonts.py 重新做。没有的字会用电脑本来的字体。 */
@font-face { font-family: 'Andika'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Andika-400.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Andika-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans SC'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/NotoSansSC-500.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans SC'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/NotoSansSC-700.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Fredoka-700.woff2') format('woff2'); }

/* ===== FunHanZi Logo（2026-11-19 定稿）=====
   三张歪歪的字卡「疯汉字」＋ FunHanZi™。大小用 font-size 调：.fhzLogo 的 font-size = 一张字卡的边长。
   <span class="fhzLogo" role="img" aria-label="FunHanZi 疯汉字">…</span>，HTML 用 shared/logo.js 的 FHZ.logo() 产生 */
.fhzLogo { display: inline-flex; flex-direction: column; align-items: center; gap: .26em; line-height: 1; }
.fhzCards { display: flex; flex-direction: row; align-items: center; gap: .12em; }
.fhzCard { width: 1em; height: 1em; box-sizing: content-box; border: .04em solid #1F5E73; border-radius: .17em; box-shadow: 0 .066em 0 #1F5E73;
  display: flex; align-items: center; justify-content: center; }
.fhzCard > b { font-family: 'Noto Sans SC', var(--f-zh, sans-serif); font-weight: 500; font-size: .74em; color: #FFFFFF; line-height: 1; transform: translateY(-.055em); }
.fhzCard.c1 { background: #F2A65A; transform: rotate(-10deg); margin-right: .1em; }   /* 「疯」是歪的（跟 Fun 一样疯），汉字两张是正的 */
.fhzCard.c2 { background: #8CC7A0; }
.fhzCard.c3 { background: #EC8FB3; }
.fhzWord { display: flex; flex-direction: row; align-items: baseline; font-family: 'Fredoka', var(--f-latin, sans-serif); font-weight: 700; font-size: .59em; letter-spacing: -.01em; }
.fhzWord .f { display: inline-block; color: #13B0D6; font-size: 1.28em; }   /* Fun 比 HanZi 大 */
.fhzWord .f1 { transform: rotate(-10deg) translateY(.03em); } .fhzWord .f2 { transform: rotate(8deg) translateY(-.14em); } .fhzWord .f3 { transform: rotate(-6deg) translateY(.04em); margin-right: .2em; }   /* Fun 跳跳的，可爱 */
.fhzWord .h { color: #1F5E73; }
.fhzWord .tm { font-size: .26em; color: #1F5E73; transform: translateY(-2.1em); margin-left: .1em; }
/* 一张「疯」的小字卡（游戏页最上面那一条用） */
.fhzMini { font-size: 22px; display: inline-flex; }
.fhzMini .fhzCard { transform: rotate(-10deg); border-width: 2px; box-shadow: 0 2px 0 #1F5E73; }
/* 一整排：字卡和 FunHanZi 排在同一行（.fhzLogo.row） */
.fhzLogo.row { flex-direction: row; align-items: center; gap: .26em; }
.fhzLogo.row .fhzWord { font-size: .72em; transform: translateY(var(--fhzDrop, .02em)); }
.fhzLogo.row.wordFirst { flex-direction: row-reverse; }
