/* ============================================================
   三国志铭文 · On-Chain Three Kingdoms
   宣纸 / 朱砂 / 玄墨 —— 与铭文平涂美学统一
   零 CDN，全相对路径
   ============================================================ */

:root {
  /* 纸与墨 */
  --paper:      #F2EEE4;
  --paper-2:    #E9E3D6;
  --paper-3:    #DED6C6;
  /* 画心底：78 张人物像自带的纸底实测落在 #EEEBE3–#F1EDE5，取中值。
     卡片底与图片占位都用它，缩略像才不会在卡片上浮出一块浅方格。
     人物像是位图且纸底带手绘噪点，抠成透明必留毛边，故统一底色而非去背。 */
  --mount:      #F0ECE2;
  /* 抬起时的受光面：只比画心亮 3 级。提得再多，缩略像的纸底就会反过来
     变成一块暗方——刚消掉的色差会在 hover 时原样长回来 */
  --mount-up:   #F3EFE7;
  --ink:        #1F1B16;
  --ink-2:      #4A4238;
  --ink-3:      #7C7263;
  --cinnabar:   #A93226;
  --cinnabar-2: #C0392B;
  --gold:       #C9A961;
  --line:       rgba(31, 27, 22, .14);
  --line-2:     rgba(31, 27, 22, .07);

  /* 视频叠字三档（依 Veo 后期管线文档 §6.1 的 WCAG 实测） */
  --on-light:   #F0EBE1;  /* 魏：深色画面 → 纸白  11.92:1 */
  --on-dark:    #2B2B2B;  /* 蜀/吴/传奇：高调画面 → 炭黑 5.75–9.36:1 */
  --on-darkest: #000000;  /* 群雄：中间调 → 必须纯黑 4.76:1 */

  --serif: 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'STSong',
           'Songti TC', 'PMingLiU', 'Hiragino Mincho ProN', 'Yu Mincho',
           'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans',
           'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;

  --gut: clamp(20px, 5vw, 88px);
  --max: 1360px;
}

:root:lang(ja) {
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', 'YuMincho', serif;
}
:root:lang(en) {
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: inherit; }

/* 宣纸纹理：纯 CSS，不引外部图 */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(169,50,38,.028) 0 38%, transparent 60%),
    radial-gradient(circle at 82% 68%, rgba(31,27,22,.03)  0 40%, transparent 62%);
}

/* ============ 顶部导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gut);
  background: linear-gradient(to bottom, rgba(242,238,228,.94), rgba(242,238,228,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .4s ease;
}
.nav.solid {
  background: rgba(242,238,228,.96);
  border-bottom: 1px solid var(--line-2);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .1em;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
/* 站名与印章按视觉中线对齐：CJK 字面本身偏下，
   靠 baseline 对齐会让印章显得下沉，故用 center 再微调 */
.nav-brand > span { display: block; transform: translateY(1px); }
.nav-brand .seal {
  display: block; flex: none;
  width: 26px; height: 26px;
  object-fit: contain;
}
.nav-mid { display: flex; gap: clamp(10px, 1.6vw, 24px); }
.nav-mid a {
  font-size: 13.5px; letter-spacing: .12em; text-decoration: none;
  color: var(--ink-2); padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav-mid a:hover, .nav-mid a.on { color: var(--cinnabar); border-color: var(--cinnabar); }

.lang { display: flex; gap: 2px; }
.lang button {
  font: inherit; font-size: 12.5px; letter-spacing: .06em;
  padding: 4px 9px; cursor: pointer;
  background: transparent; color: var(--ink-3);
  border: 1px solid transparent; border-radius: 2px;
  transition: all .22s;
}
.lang button:hover { color: var(--ink); }
.lang button.on { color: var(--paper); background: var(--ink); }

@media (max-width: 820px) {
  .nav-mid { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid; align-content: center;
  padding: 120px var(--gut) 90px;
  max-width: var(--max); margin: 0 auto;
}
.hero-mark {
  font-size: 12px; letter-spacing: .3em; color: var(--cinnabar);
  text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(46px, 9.5vw, 132px);
  line-height: .98; letter-spacing: .02em; font-weight: 600;
}
/* 落笔的质感与阵营大字统一：下沉 + 微微带角度地摆正，
   像刻刀落下后把笔画扶直，而不是单纯从下方平移上来 */
.hero h1 .ch {
  display: inline-block; opacity: 0;
  transform: translateY(.48em) rotate(2.5deg) scale(.96);
}
/* 词整体 nowrap：.ch 逐个 inline-block 会让词内每处都能断行 */
.hero h1 .word { display: inline-block; white-space: nowrap; }
/* 词间空格必须是独立节点——包进 inline-block 的 span 会被空白折叠掉 */
.hero h1 .sp { display: inline-block; width: .3em; }
.hero .sub {
  margin: 22px 0 0; max-width: 30ch;
  font-size: clamp(16px, 1.9vw, 23px); color: var(--ink-2);
}
/* 用 em 而非 ch：ch 按西文 "0" 的字宽算，中文字宽约两倍，
   46ch 只装得下 23 个汉字，会把文言的第二句拦腰折断 */
.hero .lead {
  margin: 30px 0 0; max-width: 30em;
  font-size: clamp(14px, 1.35vw, 16.5px); color: var(--ink-3); line-height: 1.95;
}
:root:lang(en) .hero .lead { max-width: 46ch; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-stats .v {
  font-size: clamp(30px, 4vw, 48px); line-height: 1;
  font-weight: 600; letter-spacing: -.01em;
}
.hero-stats .k {
  margin-top: 9px; font-size: 12px; letter-spacing: .16em; color: var(--ink-3);
}
/* 滚动提示做成「向下展卷」：一条竖线自上而下反复延伸，
   像竹简或画卷被徐徐拉开，比横线更能指示方向 */
.scroll-cue {
  margin-top: clamp(34px, 5vw, 60px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-size: 11.5px; letter-spacing: .24em; color: var(--ink-3);
}
.scroll-cue i {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  transform-origin: top center;
  animation: cue 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes cue {
  0%        { transform: scaleY(0);   opacity: 0; }
  30%       { opacity: 1; }
  70%, 100% { transform: scaleY(1);   opacity: 0; }
}

/* ============ 阵营叙事区 ============ */
.faction { position: relative; z-index: 1; }

.fx-scroll { position: relative; }              /* 高度由 JS 按 400vh 设定 */
.fx-sticky {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  background: var(--paper);
}
.fx-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.fx-veil {           /* 极淡的一层，仅用于让帧序列与纸底接得住，不做遮罩 */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(242,238,228,.30) 0 26%, transparent 52%);
}
.fx-overlay {
  position: absolute; z-index: 2;
  left: var(--gut); top: 0; height: 100%;
  width: min(44%, 620px);          /* 文案安全区：左 0–44%（实测 §1.5） */
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 0 12vh;             /* 纵向落在上半区 */
  pointer-events: none;
}
.fx-overlay > * { pointer-events: auto; }

/* 三档叠字色 */
.fx-overlay { color: var(--on-dark); }
.faction[data-ink="light"]   .fx-overlay { color: var(--on-light); }
.faction[data-ink="darkest"] .fx-overlay { color: var(--on-darkest); }

.fx-tag {
  font-size: 11.5px; letter-spacing: .3em; opacity: 0;
  margin-bottom: 20px;
}
.fx-name {
  margin: 0; font-weight: 600;
  font-size: clamp(64px, 13vw, 190px); line-height: .9; letter-spacing: .04em;
}
.fx-name .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); }
.fx-full {
  margin: 18px 0 0; font-size: clamp(17px, 2.1vw, 27px);
  letter-spacing: .06em; opacity: 0;
}
.fx-line {
  margin: 26px 0 0; max-width: 34ch;
  font-size: clamp(13.5px, 1.3vw, 16px); line-height: 1.95; opacity: 0;
}
.fx-count {
  margin-top: 34px; display: flex; align-items: baseline; gap: 10px; opacity: 0;
}
.fx-count b { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1; }
.fx-count span { font-size: 12px; letter-spacing: .18em; }

/* 进度条 */
.fx-bar {
  position: absolute; left: var(--gut); bottom: 8vh; z-index: 2;
  width: min(44%, 620px); height: 1px;
  background: currentColor; opacity: .18;
}
.fx-bar i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: currentColor; transform-origin: left;
}
.faction .fx-bar { color: var(--on-dark); }
.faction[data-ink="light"]   .fx-bar { color: var(--on-light); }
.faction[data-ink="darkest"] .fx-bar { color: var(--on-darkest); }

@media (max-width: 820px) {
  .fx-overlay { width: calc(100% - var(--gut) * 2); padding-top: 12vh; justify-content: flex-start; }
  .fx-name { font-size: clamp(52px, 19vw, 96px); }
  .fx-bar  { width: calc(100% - var(--gut) * 2); }
  .fx-veil { background: linear-gradient(180deg, rgba(242,238,228,.42) 0 30%, transparent 58%); }
}

/* ============ 铭文一览 ============ */
.roster {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) var(--gut) clamp(70px, 10vw, 140px);
}
.roster-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.roster-head h3 {
  margin: 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: .04em;
}
.roster-head .hint { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }

.grid {
  display: grid; gap: clamp(10px, 1.1vw, 16px);
  grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr));
}
/* 入场动画挂在 cell 上、hover 位移挂在 card 上：
   两者都写 transform，同挂一个元素时 animation 会永久压过 :hover */
.card-cell { display: flex; min-width: 0; }

.card {
  position: relative; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  flex: 1; min-width: 0;
  background: var(--mount);
  /* 卡片底与画心同色后，格子只能靠线立住，边框须从 --line-2 提到 --line */
  border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 15px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .3s cubic-bezier(.2,.8,.25,1), box-shadow .3s, background .3s, border-color .3s;
}
.card:hover {
  background: var(--mount-up);
  border-color: rgba(31,27,22,.22);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -14px rgba(31,27,22,.35);
}

/* 缩略像：铭文原图是 1:1 半身，脸落在上三分之一，
   纵向取景点上移才框得住面部。取 26% 而非更高，是为了兼顾
   戴冕旒/高冠的君主——取景太高会让冠帽占满，脸被切掉。 */
.card-thumb {
  width: 60px; height: 60px; flex: none;
  border-radius: 2px; overflow: hidden;
  background: var(--mount);
}
.card-thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
  transition: transform .45s cubic-bezier(.2,.8,.25,1);
}
.card:hover .card-thumb img { transform: scale(1.07); }

.card-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card .no {
  font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.card .nm {
  font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .zi {
  font-size: 12.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .r {
  position: absolute; top: 11px; right: 11px;
  width: 6px; height: 6px; border-radius: 50%;
}

/* ---- 一览入场：随滚动逐格展开 ----
   回退层（Firefox / 减弱动效）：IntersectionObserver 一次性触发。 */
.card-cell {
  /* 底边为轴：卡片像从桌面平躺处被翻起立正，而不是整体平移 */
  transform-origin: 50% 100%;
  opacity: 0; transform: perspective(760px) translateY(56px) rotateX(-14deg) scale(.95);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.25,1);
}
.card-cell.in { opacity: 1; transform: none; }

/* 滚动驱动层：进度直接绑在滚动条上——往下拉展开，往回拉收回，
   拉到一半就停在一半。--col 由 main.js 按实际列数写入（列数随视口变），
   逐列后延让一行不是齐刷刷亮起，而是自左向右像展卷一样掀开。

   范围必须按 cover 算，不能按 entry：entry 的总滚动距离恰好等于元素自身高度，
   卡片才 108px 高，比一格鼠标滚轮（100–120px）还短——过程会被整格跨过去，
   人眼只看得到「已完成」。cover 100% = 视口高 + 元素高 ≈ 1000px，
   取 24% 约合 240px（两格滚轮），展开才真的看得见。 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-cell {
      opacity: 1; transform: none; transition: none;
      animation: card-reveal linear both;
      animation-timeline: view();
      animation-range: cover calc(var(--col, 0) * 5%)
                       cover calc(28% + var(--col, 0) * 5%);
    }
  }
}
/* 幅度要够大才读得出「一格一格滑进来」：位移 88px（约小半张卡片高）、
   底边为轴后倒 18°、缩到 .93。透视写在 transform 里而非 .grid 上——
   父级共享灭点会让同一行两侧的卡片歪向不同方向，逐格落位的秩序感就散了。
   落位后 transform 归 none，3D 上下文随之消失，静止态的文字不会发虚。 */
@keyframes card-reveal {
  from {
    opacity: 0;
    transform: perspective(760px) translateY(88px) rotateX(-18deg) scale(.93);
  }
  to { opacity: 1; transform: none; }
}

/* ============ 人物详情 ============ */
.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 44px);
  background: rgba(31,27,22,.52);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-box {
  position: relative;
  width: min(1000px, 100%); max-height: 92svh; overflow-y: auto;
  background: var(--paper); border-radius: 4px;
  display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  transform: translateY(20px) scale(.985); transition: transform .38s cubic-bezier(.2,.8,.25,1);
  box-shadow: 0 40px 90px -30px rgba(31,27,22,.6);
}
.sheet.open .sheet-box { transform: none; }
.sheet-img { position: relative; background: var(--mount); }
.sheet-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: clamp(26px, 3.4vw, 48px); min-width: 0; }
.sheet-no {
  font-size: 11px; letter-spacing: .24em; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.sheet-no .dot { width: 6px; height: 6px; border-radius: 50%; }
.sheet-body h4 {
  margin: 14px 0 0; font-size: clamp(30px, 4vw, 46px);
  font-weight: 600; letter-spacing: .05em; line-height: 1.1;
}
.sheet-meta {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12.5px; color: var(--ink-3);
}
.sheet-meta b { font-weight: 400; color: var(--ink-2); }
.sheet-bio {
  margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: clamp(14px, 1.3vw, 15.5px); line-height: 2.05; color: var(--ink-2);
  text-align: justify;
}
.sheet-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 13px; letter-spacing: .06em;
  padding: 11px 20px; text-decoration: none; cursor: pointer;
  border-radius: 2px; transition: all .25s;
}
.btn-a { background: var(--cinnabar); color: var(--paper); border: 1px solid var(--cinnabar); }
.btn-a:hover { background: var(--cinnabar-2); border-color: var(--cinnabar-2); }
.btn-b { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-b:hover { border-color: var(--ink-3); color: var(--ink); }
.sheet-id {
  margin-top: 20px; font-size: 10.5px; line-height: 1.7;
  color: var(--ink-3); word-break: break-all;
  font-family: ui-monospace, 'SFMono-Regular', monospace;
}
.sheet-id span { letter-spacing: .16em; font-family: var(--serif); }
.sheet-x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; display: grid; place-items: center;
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  background: var(--paper); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 50%;
  transition: all .25s;
}
.sheet-x:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 760px) {
  .sheet-box { grid-template-columns: 1fr; }
  .sheet-img { aspect-ratio: 1 / 1; }
}

/* ============ 关于 / 页脚 ============ */
/* 上下 padding 不对称：下方紧接火箭印记，与它自己的上留白合并计算，
   否则 140 + 72 会在段落与火箭之间留出 212px 的空场 */
.about {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--paper);
  padding: clamp(70px, 10vw, 140px) var(--gut) clamp(44px, 5.2vw, 74px);
}
.about-in { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(26px, 4vw, 56px); }
.about h3 {
  margin: 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: .05em;
}
.about p {
  margin: 0; max-width: 62ch;
  font-size: clamp(14px, 1.35vw, 16.5px); line-height: 2.1;
  color: rgba(242,238,228,.74); text-align: justify;
}
/* 火箭是所有「链上」系列共通的作者标识，交互由 rocket-fx.js 接管
   （悬停颤动、点击升空喷 ₿），此处只负责静态呈现与落位 */
/* 火箭要读作独立的落款，上下都得留白——原先下 padding 为 0，
   它整个压在页脚分割线上，像掉下去了 */
.foot-seal {
  position: relative; z-index: 1;
  background: var(--ink);
  padding: clamp(34px, 4vw, 52px) var(--gut) clamp(30px, 3.4vw, 44px);
  display: flex; justify-content: center;
}
.foot__rocket {
  height: 64px; width: auto; display: block;
  filter: drop-shadow(0 4px 18px rgba(247,147,26,.28));
  transition: transform .35s ease, filter .35s ease;
}
@media (max-width: 600px) { .foot__rocket { height: 54px; } }

.foot {
  position: relative; z-index: 1;
  background: var(--ink); color: rgba(242,238,228,.42);
  padding: 0 var(--gut) 56px;
  font-size: 11.5px; letter-spacing: .1em;
}
.foot-in {
  max-width: var(--max); margin: 0 auto;
  padding-top: 28px; border-top: 1px solid rgba(242,238,228,.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}

/* 首屏字符动画 */
@keyframes rise { to { opacity: 1; transform: none; } }

/* 首屏其余各层的入场起点。延迟由 main.js 按标题实际字数算出后写在 inline style 上 */
.hero-mark, .hero .sub, .hero .lead, .hero-stats > div, .scroll-cue {
  opacity: 0; transform: translateY(16px);
}

/* 首屏是唯一自动播放的动画，减弱动效时整屏直接呈现最终态 */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ch,
  .hero-mark, .hero .sub, .hero .lead, .hero-stats > div, .scroll-cue {
    animation: none !important;
    opacity: 1; transform: none;
  }
}

/* ============ 窄屏 ============ */
@media (max-width: 820px) {
  /* 单列后卡片变宽，缩略像和留白都要收，否则一屏只装得下六七张 */
  .card { padding: 11px 13px; gap: 12px; }
  .card-thumb { width: 52px; height: 52px; }
  /* flex:1 让文字块占满剩余宽度：既消掉右侧大片空白，
     也让 ellipsis 在超长名字时真正生效（shrink-to-fit 时永远不会溢出） */
  .card-txt { flex: 1; }
  .card .no { font-size: 10px; letter-spacing: .16em; }
  .card .nm { font-size: 18px; line-height: 1.3; }
  .card .zi { font-size: 12px; }
  .card .r { top: 10px; right: 10px; }

  /* 语言切换四个按钮在 375px 下会顶到边 */
  .nav { padding: 12px var(--gut); gap: 10px; }
  .nav-brand { font-size: 15px; gap: 8px; min-width: 0; }
  .nav-brand .seal { width: 22px; height: 22px; transform: translateY(3px); }
  .lang { flex: none; }          /* 语言切换绝不让步，宁可挤压站名 */
  .lang button { padding: 4px 7px; font-size: 11.5px; letter-spacing: 0; }

  .roster-head { padding-bottom: 16px; }
  .roster-head .hint { font-size: 11.5px; }
}

/* 超窄屏（iPhone SE 一类）：英文长名如「Yan Liang & Wen Chou」
   在此宽度下必然放不进一行，允许折行而不是截断成省略号 */
@media (max-width: 400px) {
  .card .nm { white-space: normal; }
  .card .zi { white-space: normal; }

  /* 两个中文按钮并排放不下会折行，折行后左对齐显得零落——直接各占一行 */
  .sheet-links { flex-direction: column; }
  .sheet-links .btn { justify-content: center; }
}

/* 英文站名「Three Kingdoms Inscribed」有 24 个字符，在窄屏会把语言切换
   推出视口右缘——而 body 的 overflow-x:hidden 会把它裁掉，按钮点不到也看不见。
   中日文站名只有五个字，放得下，所以只对英文收起文字，留印章作标识。 */
@media (max-width: 560px) {
  :root:lang(en) .nav-brand span { display: none; }
}
