/* themes/fonts.css  —— 字体层（不属于任何主题） */

/* 1) 注册字体 */
@font-face{
  font-family:"FontMini";
  src:url("../fonts/mini.woff2") format("woff2");
  font-display: swap;
}
@font-face{
  font-family:"FontLaoShan";
  src:url("../fonts/laoshan.woff2") format("woff2");
  font-display: swap;
}
@font-face{
  font-family:"FontGothic";
  src:url("../fonts/gothic.woff2") format("woff2");
  font-display: swap;
}

/* 2) 默认变量：你可以让用户改这几个 */
:root{
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --ui-font-size: 16px;
  --ui-line-height: 1.8;
  --ui-letter-spacing: 0px;
}

/* 3) 强制覆盖 game.html 里的内联 body font-family（必须用 !important） */
body{
  font-family: var(--ui-font), -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  font-size: var(--ui-font-size);
  line-height: var(--ui-line-height);
  letter-spacing: var(--ui-letter-spacing);
}



/* 图标/符号专用字体：避免自定义字体缺字导致按钮“消失” */
.ui-glyph{
  font-family: system-ui, "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}

.icon{
  font-family: system-ui, "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
}


/* ========================================================================
 * 回溯按钮（回溯=撤回）
 * - 仅显示在【你】的消息条上
 * - 不展示世界账本（账本只在 state.worldLedger）
 * ======================================================================== */
.meta .right{
  display:flex;
  align-items:center;
  gap:10px;
}

.rollback-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  border-radius: 10px;
  padding: 4px 8px;
  line-height: 1;
  font-size: 12px;
  cursor: pointer;
  opacity: .85;
}

.rollback-btn:hover{
  opacity: 1;
  background: rgba(255,255,255,.10);
}

.rollback-btn:active{
  transform: translateY(1px);
}
