/* ============================================================================
   Kidswap 动效层 v1（motion.css）
   ----------------------------------------------------------------------------
   为什么要单独一层，而不是散在各处改 transition
   ------------------------------------------------
   全站原有动效几乎为零：index.html 只有 1 个 @keyframes、4 处 transition。
   但界面风格是「新粗野主义」——2px 黑描边 + 硬阴影 + 圆角，本身就有很强的
   玩具感。这种风格不能配「平滑淡入淡出」，会显得软塌；要配**带惯性的回弹**，
   像塑料积木被推动后轻轻弹一下。

   三条硬约束
   ----------
   1. 只动 transform / opacity。绝不动 width / height / top / left —— 那些会
      触发 layout，一个列表 30 张卡片同时动，低端安卓直接掉帧。
   2. 入场动画用 `animation-fill-mode: backwards`，【不用 both】。
      both 会在动画结束后把 transform 钉在 `none`，于是 `.item:hover` 的位移
      永远失效 —— 这是最容易踩、又最难查的坑（表现为「hover 效果时有时无」，
      因为取决于动画是否播过）。
   3. prefers-reduced-motion 命中时全部退化为「直接到终态」，不播任何东西。
      系统级开关是用户真实需求（前庭功能敏感、晕动症），不是可选项。
   ============================================================================ */

:root {
  /* 时长阶梯：快用于按压反馈，慢用于整块入场。超过 480ms 的入场在触屏上会
     让人以为「卡了」，所以最长就到 --mo-4。 */
  --mo-1: 110ms;
  --mo-2: 180ms;
  --mo-3: 300ms;
  --mo-4: 460ms;

  /* 回弹曲线：末尾超过 1 的那一小段就是「弹一下」。
     数值不是随手写的 —— 1.56 的回弹量在 300ms 内刚好能看出来又不显廉价。 */
  --mo-back: cubic-bezier(.34, 1.56, .64, 1);
  /* 收尾曲线：用于退场与淡出，比 back 稳，不会让人等 */
  --mo-smooth: cubic-bezier(.22, .9, .3, 1);

  /* 错峰步长：每多一个元素晚 26ms 出现。8 个以内最舒服，
     再多就变成「排队等动画」，所以 JS 侧封顶。 */
  --mo-step: 26ms;
}

/* ---- 全局降级开关 ---- */
@media (prefers-reduced-motion: reduce) {
  .mo-rise,
  .mask.mo-open,
  .mask.mo-open > .modal,
  .mask.mo-closing,
  .mask.mo-closing > .modal,
  #toast.mo-toast-in,
  #toast.mo-toast-out,
  .mo-confetti,
  .mo-shine::after {
    animation: none !important;
  }
  .mo-rise { opacity: 1 !important; transform: none !important; }
}
body.mo-off .mo-rise,
body.mo-off .mask.mo-open,
body.mo-off .mask.mo-open > .modal,
body.mo-off #toast.mo-toast-in,
body.mo-off .mo-confetti {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================================
   1. 入场：整块上浮 + 轻微放大回正
   ============================================================================ */
.mo-rise {
  animation: moRise var(--mo-3) var(--mo-back) backwards;
  will-change: transform, opacity;
}
@keyframes moRise {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.975); }
  to   { opacity: 1; transform: none; }
}

/* 切页方向感：往右翻页就从右侧进来，往左就从左侧。
   没有方向的转场会让「首页→我的书包」和「我的书包→首页」看起来一模一样，
   用户会觉得页面是一团糊上去的。位移量刻意压到 18px —— 太多会像轮播图。 */
@keyframes moRiseL {
  from { opacity: 0; transform: translate3d(-18px, 0, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes moRiseR {
  from { opacity: 0; transform: translate3d(18px, 0, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
#main.mo-dir-l .mo-rise { animation-name: moRiseL; }
#main.mo-dir-r .mo-rise { animation-name: moRiseR; }

/* 数字专用：入场更短、不带位移，避免「数字从下面冒出来」的廉价感 */
.mo-rise-soft {
  animation: moRiseSoft var(--mo-2) var(--mo-smooth) backwards;
}
@keyframes moRiseSoft {
  from { opacity: 0; transform: translate3d(0, 5px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================================
   2. 弹窗：遮罩淡入 + 卡片从下方弹起
   ============================================================================ */
.mask.mo-open {
  animation: moFade var(--mo-2) ease-out backwards;
}
.mask.mo-open > .modal {
  animation: moModal var(--mo-3) var(--mo-back) backwards;
}
@keyframes moFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes moModal {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* 退场：比入场快 40%，退场拖沓会让人觉得「点了没反应」 */
.mask.mo-closing {
  animation: moFadeOut 150ms ease-in forwards;
}
.mask.mo-closing > .modal {
  animation: moModalOut 150ms ease-in forwards;
}
@keyframes moFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes moModalOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translate3d(0, 12px, 0) scale(.95); }
}

/* ============================================================================
   3. Toast：从上方落下 + 回弹
   ★ 原样式带 transform:translateX(-50%) 做居中，动画里必须把这个基准带上，
     否则动画一帧就会把 toast 甩到屏幕右侧。
   ============================================================================ */
#toast.mo-toast-in {
  animation: moToastIn 280ms var(--mo-back) backwards;
}
#toast.mo-toast-out {
  animation: moToastOut 190ms ease-in forwards;
}
@keyframes moToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(.94); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes moToastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.97); }
}

/* ============================================================================
   4. 悬停：桌面端「抬起来」
   ★ 只在 (hover:hover) 里启用。触屏浏览器在点击后会残留 hover 状态，
     卡片会卡在浮起位置，看起来像「点坏了」。用媒体查询把触屏排除掉。
   ============================================================================ */
@media (hover: hover) and (pointer: fine) {
  .card,
  .item,
  .lbcell,
  .row {
    transition: transform var(--mo-2) var(--mo-back),
                box-shadow var(--mo-2) var(--mo-smooth);
  }
  .card:hover,
  .item:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .lbcell:hover {
    transform: translateY(-2px) rotate(-.6deg);
  }
  /* 按下必须盖住悬停：放到后面，且同样针对 :active */
  .card:active,
  .item:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
  }
}

/* 按钮：按下时轻微「压扁」，松手弹回。原有 .btn:active 的位移保留。 */
.btn {
  transition: transform var(--mo-1) var(--mo-back),
              box-shadow var(--mo-1) var(--mo-smooth),
              filter var(--mo-1) linear;
}
.btn:active:not(:disabled) {
  filter: brightness(.94);
}

/* ============================================================================
   5. 骨架屏：加载中的占位闪光
   ============================================================================ */
.mo-shine {
  position: relative;
  overflow: hidden;
  background: #EFEFEF;
}
.mo-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-100%);
  animation: moShine 1.15s linear infinite;
}
@keyframes moShine {
  to { transform: translateX(100%); }
}

/* ============================================================================
   6. 纸屑：纯 CSS 驱动，JS 只负责创建节点与随机初值
   ★ 用 CSS 变量传方向与距离，让浏览器把整段位移交给合成器，
     不占主线程 —— 40 片同时飞也不掉帧。
   ============================================================================ */
.mo-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  z-index: 95;
  pointer-events: none;
  border: 1.5px solid rgba(26, 26, 26, .55);
  border-radius: 2px;
  will-change: transform, opacity;
  animation: moConfetti var(--mo-cf-dur, 900ms) cubic-bezier(.2, .7, .35, 1) forwards;
}
@keyframes moConfetti {
  from { transform: translate3d(var(--mo-cf-x0), var(--mo-cf-y0), 0) rotate(0deg) scale(1); opacity: 1; }
  to   { transform: translate3d(var(--mo-cf-x1), var(--mo-cf-y1), 0) rotate(var(--mo-cf-rot, 360deg)) scale(.4); opacity: 0; }
}

/* ============================================================================
   7. 数值滚动时不要抖宽
   ============================================================================ */
.mo-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* 数值变化时「弹一下」。用在顶栏积分这种不需要逐帧滚动、
   但必须让用户察觉到「钱变了」的位置。 */
.mo-bump {
  animation: moBump 420ms var(--mo-back);
  display: inline-block;
}
@keyframes moBump {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.22) rotate(-1.2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================================
   8. 点击涟漪（挂在按钮内部，absolute 定位）
   ============================================================================ */
.mo-ripple-host {
  position: relative;
  overflow: hidden;
}
.mo-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: currentColor;
  opacity: .22;
  transform: scale(0);
  animation: moRipple 520ms ease-out forwards;
}
@keyframes moRipple {
  to { transform: scale(2.4); opacity: 0; }
}

/* ============================================================================
   9. 群英录页面（heroes.js）的按钮手感
   ----------------------------------------------------------------------------
   只补 transition，不改 heroes.js 里已有的 :hover / :active 规则 ——
   那些按下位移本来就有，缺的是过渡，导致按下去是「瞬移」而不是「压下去」。
   选择器写成单类，与 heroes.js 的 `.hx-es-btn:active` 同权重，
   heroes.js 的样式块在 motion.css 之后插入，仍然是它说了算。
   ============================================================================ */
.hx-es-btn,
.hx-es-tbtn,
.hx-es-topback {
  transition: transform var(--mo-1) var(--mo-back),
              box-shadow var(--mo-1) var(--mo-back),
              filter var(--mo-1) linear;
}

@media (hover: hover) and (pointer: fine) {
  .hx-es-tbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  }
  .hx-es-tbtn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-es-btn,
  .hx-es-tbtn,
  .hx-es-topback { transition: none; }
}

/* ============================================================================
   10. 农场大富翁：掷骰子与落格
   ----------------------------------------------------------------------------
   骰子挂在 <body> 上（不是棋盘里）—— 棋盘每 30 秒会自己重绘一次，
   挂在里面会被连 DOM 一起冲掉，骰子会突然消失。
   ============================================================================ */
.dice-pop {
  position: fixed;
  left: 50%;
  top: 34%;
  /* 55：必须低于 .mask(60)。掷到答题格会立刻弹卷子，
     骰子要是压在弹窗上面会盖住题目，孩子看着像卡住了。 */
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);   /* 基准必须有：入场动画结束后不能跳到左上 */
  animation: moDiceShow 280ms var(--mo-back) backwards;
}

/* 骰子本体：白底黑边 + 硬投影，与全站卡片同一套语言 */
.dice-cube {
  width: 76px;
  height: 76px;
  box-sizing: border-box;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #FFFBEB;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 9px;
  /* 翻滚：小幅摆动比整圈旋转更像「在手里晃」，也不会糊成一团 */
  animation: moDiceRoll 260ms ease-in-out infinite;
}
@keyframes moDiceRoll {
  0%   { transform: rotate(-11deg) scale(.97); }
  50%  { transform: rotate(11deg) scale(1.03); }
  100% { transform: rotate(-11deg) scale(.97); }
}
.dice-cube i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  place-self: center;
  opacity: 0;
}
/* 九宫格里按点数点亮。1 中心 / 2 对角 / 3 斜线 / 4 四角 / 5 四角+中 / 6 两列三行 */
.dice-cube[data-face="1"] i:nth-child(5) { opacity: 1; }
.dice-cube[data-face="2"] i:nth-child(1),
.dice-cube[data-face="2"] i:nth-child(9) { opacity: 1; }
.dice-cube[data-face="3"] i:nth-child(1),
.dice-cube[data-face="3"] i:nth-child(5),
.dice-cube[data-face="3"] i:nth-child(9) { opacity: 1; }
.dice-cube[data-face="4"] i:nth-child(1),
.dice-cube[data-face="4"] i:nth-child(3),
.dice-cube[data-face="4"] i:nth-child(7),
.dice-cube[data-face="4"] i:nth-child(9) { opacity: 1; }
.dice-cube[data-face="5"] i:nth-child(1),
.dice-cube[data-face="5"] i:nth-child(3),
.dice-cube[data-face="5"] i:nth-child(5),
.dice-cube[data-face="5"] i:nth-child(7),
.dice-cube[data-face="5"] i:nth-child(9) { opacity: 1; }
.dice-cube[data-face="6"] i:nth-child(1),
.dice-cube[data-face="6"] i:nth-child(3),
.dice-cube[data-face="6"] i:nth-child(4),
.dice-cube[data-face="6"] i:nth-child(6),
.dice-cube[data-face="6"] i:nth-child(7),
.dice-cube[data-face="6"] i:nth-child(9) { opacity: 1; }

@keyframes moDiceShow {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-18deg); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
.dice-pop.dice-done {
  animation: moDiceSettle 600ms cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.dice-pop.dice-done .dice-cube {
  animation: none;
}
@keyframes moDiceSettle {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  32%  { opacity: 1; transform: translate(-50%, -50%) scale(1.34) rotate(7deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12) rotate(0deg); }
}

/* 棋子落格：那一格自己弹一下。box-shadow 不参与布局，不会把 8 列挤歪。 */
.mk-land {
  animation: moLand 620ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes moLand {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, .85); }
  38%  { transform: scale(1.16); box-shadow: 0 0 0 6px rgba(234, 88, 12, .45); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(234, 88, 12, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dice-pop { animation: none; }
  .dice-pop.dice-done { animation: none; opacity: 0; }
  .dice-cube { animation: none; }
  .mk-land { animation: none; }
}




/* ============================================================================
   v84 场景动效层（程序化生成，零外部素材）
   形状靠参数（--mo2-* / --i）、材质靠公式（gradient / conic）、氛围靠光（radial + blur）
   只动 transform / opacity，一律 backwards，结束撤类。
   ============================================================================ */
:root { --mo2-step: 44ms; }

/* ?motion=off 的实际开关挂在 <html> 上，旧规则写的是 body，这里补齐 */
html.mo-off #moAura { display: none !important; }
html.mo-off .mo2-in,
html.mo-off .mo2-live::after,
html.mo-off .mo2-gear,
html.mo-off .mo2-glow,
html.mo-off .mo2-mote { animation: none !important; }

#moAura {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 900ms ease;
}
#moAura.on { opacity: 1; }
#moAura .mo2-glow {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  width: var(--r, 42vmax); height: var(--r, 42vmax); border-radius: 50%;
  background: radial-gradient(circle,
      hsla(var(--h, 32), 84%, 62%, var(--a, .15)) 0%,
      hsla(var(--h, 32), 84%, 62%, 0) 68%);
  filter: blur(20px);
  animation: mo2Drift var(--d, 19s) ease-in-out infinite alternate backwards;
}
@keyframes mo2Drift {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(1.16) translate(var(--dx, 24px), var(--dy, -16px)); opacity: .95; }
}
#moAura .mo2-mote {
  position: absolute; left: var(--x, 50%); top: var(--y, 90%);
  width: var(--w, 3px); height: var(--w, 3px); border-radius: 50%;
  background: hsla(calc(var(--h, 32) + 18), 90%, 80%, .72);
  box-shadow: 0 0 7px hsla(calc(var(--h, 32) + 18), 90%, 80%, .5);
  animation: mo2Mote var(--d, 10s) linear var(--delay, 0s) infinite backwards;
}
@keyframes mo2Mote {
  0%   { transform: translate3d(0, 18px, 0); opacity: 0; }
  14%  { opacity: .85; }
  86%  { opacity: .55; }
  100% { transform: translate3d(var(--mx, 16px), -140px, 0); opacity: 0; }
}

/* ---- 通用卡片入场：覆盖 v83 没铺到的页面 ---- */
.mo2-in {
  animation: mo2Card 520ms var(--mo-back) backwards;
  animation-delay: calc(var(--i, 0) * var(--mo2-step));
}
@keyframes mo2Card {
  0%   { opacity: 0; transform: translateY(14px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- 材质：纯公式生成的斜向扫光，不加图片 ----
   不给容器加 overflow:hidden（会裁掉书院朱印盖下时的放大），
   改为用 clip-path 只裁光带自身。 */
.mo2-live { position: relative; }
.mo2-live::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  clip-path: inset(0);
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .16) 50%, transparent 66%);
  transform: translateX(-120%);
  animation: mo2Sheen 6.5s ease-in-out infinite backwards;
  animation-delay: var(--sheen, 0s);
}
@keyframes mo2Sheen {
  0%, 72% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}

/* ---- 城池：底图缓推、人物错峰、下一章光环 ---- */
#main[data-mo-scene="city"] .hx-plate {
  animation: mo2Plate 17s ease-in-out infinite alternate backwards;
}
@keyframes mo2Plate {
  0%   { transform: scale(1.015) translate(0, 0); filter: brightness(1); }
  100% { transform: scale(1.075) translate(-1.2%, -.8%); filter: brightness(1.06); }
}
/* .hx-person 靠 margin-left 定位，无 transform 基准，可安全用 translateY */
#main[data-mo-scene="city"] .hx-person.mo2-in {
  animation: mo2Person 620ms var(--mo-back) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes mo2Person {
  0%   { opacity: 0; transform: translateY(26px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
#main[data-mo-scene="city"] .hx-person img {
  animation: mo2Breathe 4.2s ease-in-out infinite alternate backwards;
  animation-delay: calc(var(--i, 0) * 220ms);
}
@keyframes mo2Breathe {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-3px) scale(1.012); }
}
#main[data-mo-scene="city"] .hx-gochap { position: relative; }
#main[data-mo-scene="city"] .hx-gochap::after {
  content: ''; position: absolute; inset: -6px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(250, 204, 21, .8);
  animation: mo2Ring 2.4s ease-out infinite backwards;
}
@keyframes mo2Ring {
  0%   { opacity: .85; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.22); }
}

/* ---- 工坊：炉火光晕 + 程序化齿轮 ---- */
#main[data-mo-scene="forge"] .hx-es-board::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 46% 38% at 74% 76%,
      hsla(20, 92%, 54%, .20) 0%, hsla(20, 92%, 54%, 0) 70%);
  animation: mo2Forge 3.8s ease-in-out infinite alternate backwards;
}
@keyframes mo2Forge { 0% { opacity: .45; } 100% { opacity: 1; } }
.mo2-rig {
  position: absolute; right: 4%; bottom: 5%; width: 100px; height: 100px;
  pointer-events: none; z-index: 2; opacity: .48;
}
.mo2-gear {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 22%, rgba(120, 86, 42, .9) 23% 30%, transparent 31%),
    repeating-conic-gradient(from 0deg,
      rgba(140, 100, 52, .85) 0deg 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 0 62%, transparent 63% 68%, #000 69%);
          mask: radial-gradient(circle, #000 0 62%, transparent 63% 68%, #000 69%);
  animation: mo2Spin var(--d, 12s) linear infinite backwards;
}
.mo2-gear.a { width: 64px; height: 64px; left: 0; top: 0; --d: 12s; }
.mo2-gear.b { width: 42px; height: 42px; left: 52px; top: 44px; --d: 8s; animation-direction: reverse; }
@keyframes mo2Spin { to { transform: rotate(360deg); } }

/* ---- 书院：宣纸展开、朱印盖下、竹简翻入 ---- */
#main[data-mo-scene="academy"] .gx-card.mo2-in {
  animation: mo2Scroll 560ms var(--mo-back) backwards;
  animation-delay: calc(var(--i, 0) * var(--mo2-step));
}
@keyframes mo2Scroll {
  0%   { opacity: 0; transform: translateY(18px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* .gx-seal 自带 rotate(6deg)，关键帧每帧必须保留这个基准 */
#main[data-mo-scene="academy"] .gx-seal {
  animation: mo2Seal 620ms var(--mo-back) backwards;
}
@keyframes mo2Seal {
  0%   { opacity: 0; transform: rotate(6deg) scale(2.1); }
  70%  { opacity: 1; transform: rotate(6deg) scale(.92); }
  100% { opacity: 1; transform: rotate(6deg) scale(1); }
}
#main[data-mo-scene="academy"] .hx-slip.mo2-in {
  animation: mo2Slip 480ms var(--mo-back) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes mo2Slip {
  0%   { opacity: 0; transform: perspective(600px) rotateY(-70deg) translateX(-14px); }
  100% { opacity: 1; transform: perspective(600px) rotateY(0) translateX(0); }
}
#main[data-mo-scene="academy"] .gx-chip.mo2-in,
#main[data-mo-scene="academy"] .hx-slipopt button.mo2-in {
  animation: mo2Card 480ms var(--mo-back) backwards;
  animation-delay: calc(var(--i, 0) * 46ms);
}

@media (hover: hover) and (pointer: fine) {
  #main[data-mo-scene="city"] .hx-shops button {
    transition: transform var(--mo-2) var(--mo-back), filter var(--mo-2) ease;
  }
  #main[data-mo-scene="city"] .hx-shops button:hover {
    transform: translateY(-7px) scale(1.04);
    filter: drop-shadow(0 8px 12px rgba(30, 20, 10, .35));
  }
  .mo2-in:hover { filter: brightness(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  #moAura { display: none !important; }
  #main .mo2-in,
  #main .mo2-live::after,
  #main .mo2-gear,
  #main[data-mo-scene="city"] .hx-plate,
  #main[data-mo-scene="city"] .hx-person img,
  #main[data-mo-scene="city"] .hx-gochap::after,
  #main[data-mo-scene="forge"] .hx-es-board::after,
  #main[data-mo-scene="academy"] .gx-seal { animation: none !important; }
}
