/* Play Chinese · HSK course: the IELTS runner (ielts/app.css) as it is, plus the layout of the new item types
   (tone, hanzi, pinyin) and Chinese type. Colours come from the IELTS tokens; the Play Chinese colour set is
   zh/theme.css, loaded after this file. */
:root { --f-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
[lang="zh-CN"] { font-family: var(--f-zh); }
.flip .w[lang="zh-CN"] { font-family: var(--f-zh); font-weight: 700; letter-spacing: 2px; }

/* tone: the character, its pinyin without the mark, five buttons */
.zt-card { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px auto 12px; padding: 16px 28px; border-radius: 22px; background: var(--paper); color: var(--pink-ink); width: max-content; min-width: 150px; box-shadow: 0 16px 34px -20px #000; }
.zt-card b { font: 700 64px/1.1 var(--f-zh); }
.zt-card span { font-size: 22px; font-weight: 700; color: var(--pink-ink-2); }
.zt-card span[class^="pz-t"] { filter: brightness(.62) saturate(1.4); }
.zt-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.zt-opts .opt { justify-content: flex-start; gap: 10px; }
.zt-opts .opt:last-child { grid-column: 1 / -1; }
.zt-m { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .1); font: 800 24px/1 var(--f-b); }

/* hanzi: stroke order pad */
.zh-wh { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.zh-wh b { font: 700 48px/1 var(--f-zh); }
.zh-py { font-weight: 800; color: var(--sun); }
.zh-pad { display: grid; place-items: center; min-height: 220px; margin: 0 auto 12px; padding: 10px; border-radius: 22px; width: max-content; min-width: 220px;
  background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)) center/100% 1px no-repeat, linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)) center/1px 100% no-repeat, rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); touch-action: none; }
.zh-off { font: 700 120px/1 var(--f-zh); color: var(--sun); text-align: center; }
.zh-msg { text-align: center; margin-top: 8px; font-size: 14px; }

/* pinyin: an answer box with tone number keys */
.zp-in { display: block; width: 100%; margin-top: 10px; font-size: 20px; }
.zp-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.zp-keys .chip { min-width: 44px; min-height: 40px; justify-content: center; border: 0; cursor: pointer; font-weight: 800; }
