/* 此间 · 全局基础：像素游戏全局、舞台 letterbox、场景图
   依赖约定：html/body 100%，禁选中/长按菜单/双击缩放（6.5 决议） */
/* T6.7 中文像素字（缝合像素字体 Fusion Pixel 12px，OFL-1.1，本地 woff2 零外网依赖） */
@font-face {
  font-family: "Herein Pixel";
  src: url("../assets/fonts/fusion-pixel-12px-zh_hans.woff2") format("woff2");
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root { --zoom: 1; }  /* 镜头倍率（camera.js 运行时覆写；T24.1：全景 1.0 / 交谈 1.08） */

/* 舞台：等比缩放 letterbox，320x544 世界坐标（T20.4 tile 路线）
   T24.1：--fit（视窗适配，stage.js）× --zoom（camera.js：全景 1.0 / 交谈 1.08）组合缩放 */
#stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 320px; height: 544px;   /* T22.5 竖版（V0.7.21 收紧） */
  transform: translate(-50%, -50%) scale(calc(var(--fit, 0.9) * var(--zoom, 1)));
  transform-origin: var(--origin, center center);
  transition: transform .9s cubic-bezier(.4, .1, .2, 1);
  background: #000;
}

/* 渲染画布：唯一 canvas——engine 图层依次绘制（静态层 blit → 家具/角色 y-sort → 光照 → 粒子），
   热区叠在其上。旧的双 canvas（#scene 静态层 / #fx 动态层）随整图路线废弃，V0.7.52 删掉空置的 #scene */
#fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
