/* ============================================================
   牛马打工记 · 像素风样式
   配色基于 PICO-8 / 复古办公室暖色调
   ============================================================ */
:root {
  --bg: #1a1c2c;
  --bg-2: #29366f;
  --panel: #252a4a;
  --panel-2: #1f2440;
  --line: #3b4477;
  --ink: #f4f4f8;
  --ink-dim: #a7adce;
  --ink-faint: #6b7199;
  --yellow: #ffcd75;
  --orange: #ef7d57;
  --red: #e64f57;
  --green: #38b764;
  --teal: #41a6f6;
  --purple: #8d6fdd;
  --pink: #f582ae;
  --gold: #ffd700;
  --shadow: rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overscroll-behavior-y: none;
}

body {
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 22px 22px;
}

button { font-family: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; }

#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ============ 屏幕切换 ============ */
.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; animation: screenIn .3s cubic-bezier(.2, .7, .3, 1); } /* 每次切屏都重放(动画放在 .active 上) */
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ============ 通用按钮 ============ */
.btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: 10px;
  transition: transform .06s, filter .15s;
}
.btn:active { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn-primary { background: var(--orange); border-color: #b85436; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn-good { background: var(--green); border-color: #25804a; color: #fff; }
.btn-icon {
  width: 42px; height: 42px; flex: none;
  font-size: 20px; line-height: 1;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 10px;
}
.btn-icon:active { transform: translateY(2px); border-bottom-width: 2px; }

/* ============ 标题屏 ============ */
#screen-title { justify-content: center; padding: 24px 22px 40px; text-align: center; }
.title-inner { width: 100%; }
#title-canvas {
  width: min(78%, 300px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5));
}
.logo {
  font-size: clamp(44px, 13vw, 64px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.15;
  color: var(--yellow);
  text-shadow: 0 4px 0 #b8541f, 0 8px 0 rgba(0, 0, 0, .35);
}
.logo-2 { color: var(--ink); text-shadow: 0 4px 0 #4a5499, 0 8px 0 rgba(0, 0, 0, .35); }
.subtitle { color: var(--ink-dim); margin: 10px 0 26px; letter-spacing: 2px; font-size: 14px; }
.menu { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.title-tip {
  margin-top: 26px;
  min-height: 44px;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 0 8px;
}
.title-credit {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--yellow);
  opacity: .8;
}

/* ============ HUD ============ */
.hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 8px;
  gap: 10px;
}
.hud-left { min-width: 0; }
.hud-day { font-size: 15px; font-weight: 700; }
.hud-level { font-size: 12px; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; align-items: center; gap: 10px; }
.hud-money { font-size: 17px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.hud-money.flash { animation: moneyFlash .6s; }
@keyframes moneyFlash { 30% { transform: scale(1.18); color: #fff; } }

/* ============ 场景 ============ */
.scene-wrap { position: relative; padding: 0 14px; overflow: hidden; }
#scene {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #0f1020;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
#scene { transition: opacity .45s ease; animation: sceneKen 24s ease-in-out infinite alternate; }
@keyframes sceneKen { 0% { transform: scale(1.005); } 100% { transform: scale(1.05) translate(-1.2%, -1%); } }
.scene-wrap.scene-poke { animation: scenePoke .32s ease; }
@keyframes scenePoke { 0% { transform: scale(1); } 35% { transform: scale(.97) rotate(-1deg); } 70% { transform: scale(1.02); } 100% { transform: scale(1); } }
.scene-time {
  position: absolute; top: 10px; left: 26px;
  font-size: 12px; color: rgba(255, 255, 255, .85);
  background: rgba(0, 0, 0, .42);
  padding: 2px 10px; border-radius: 99px;
  pointer-events: none;
}

/* ============ 属性条 ============ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px 10px;
  padding: 10px 14px 4px;
}
.stat { font-size: 12px; }
.stat-label { display: flex; justify-content: space-between; color: var(--ink-dim); margin-bottom: 2px; }
.stat-label b { color: var(--ink); font-weight: 600; }
.stat-bar {
  height: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.stat-fill { height: 100%; border-radius: 3px; transition: width .45s ease, background-color .45s; }
.stat-fill.low { animation: lowPulse 1.1s infinite; }
@keyframes lowPulse { 50% { opacity: .45; } }

/* ============ 主屏快捷栏（跳槽 / 裸辞 / 道具店 / 存档；待业时为 投简历 / 道具店 / 存档） ============ */
.quickbar { display: flex; gap: 7px; padding: 6px 14px 0; }
.qbtn {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 3px; font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap;
  background: var(--panel); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 11px;
  background-image: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08));
  transition: transform .06s, border-color .15s;
}
.qbtn:active { transform: translateY(2px); border-bottom-width: 2px; }
.qbtn .qb-ic { font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
#q-hop { border-color: #3f7d54; }
#q-quit { border-color: #9a5a3a; }
#q-apply { border-color: #3f7d54; }
#btn-shop { border-color: #b3892f; }
#btn-save { border-color: #2c6e8a; }
.qbtn.saved { border-color: var(--green); }

/* ============ 叙述与操作面板 ============ */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 10px 14px 14px;
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  min-height: 230px;
}
.narr { font-size: 15px; color: var(--ink); min-height: 52px; margin-bottom: 12px; white-space: pre-wrap; }
.narr .narr-cursor { display: inline-block; width: 8px; height: 16px; background: var(--yellow); vertical-align: -2px; animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.action-btn {
  position: relative;
  padding: 11px 8px 9px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: 12px;
  color: var(--ink);
  text-align: center;
  transition: transform .06s;
}
.action-btn:active { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.action-btn .a-icon { font-size: 24px; line-height: 1.2; display: block; }
.action-btn .a-name { font-size: 15px; font-weight: 700; display: block; margin-top: 2px; }
.action-btn .a-desc { font-size: 11px; color: var(--ink-faint); display: block; line-height: 1.4; margin-top: 1px; }
.action-btn.wide { grid-column: 1 / -1; }
.action-btn:disabled { opacity: .4; pointer-events: none; }

/* ============ 弹窗 ============ */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 11, 22, .78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .22s ease;
}
.overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 420px;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 18px;
  text-align: center;
  animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 18px 50px var(--shadow);
}
@keyframes popIn { from { opacity: 0; transform: scale(.85); } }
.modal-icon { font-size: 46px; line-height: 1.2; }
.modal-title { font-size: 20px; margin: 6px 0 8px; color: var(--yellow); }
.modal-text { font-size: 15px; color: var(--ink); text-align: left; white-space: pre-wrap; }
.modal-text .hl { color: var(--yellow); font-weight: 700; }
.modal-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ============ 突发事件弹窗 ============ */
.modal.emergency { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 79, 87, .35), 0 18px 50px var(--shadow); animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1), emFlash 1s ease infinite; }
.modal.emergency .modal-title { color: var(--red); }
@keyframes emFlash { 50% { box-shadow: 0 0 0 5px rgba(230, 79, 87, .55), 0 18px 50px var(--shadow); } }
.em-timer { height: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin: 2px 0 6px; }
.em-timer-fill { height: 100%; width: 100%; background: var(--green); transition: width .1s linear; }
.em-timer-fill.danger { background: var(--red); animation: lowPulse .4s infinite; }
.name-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color .15s, outline-color .15s;
}
.name-input::placeholder { color: var(--ink-faint); font-weight: 400; }
.name-input:focus { border-color: var(--yellow); }
.name-input:focus-visible { outline-color: rgba(255, 205, 117, .72); }
.name-hint { font-size: 12px; color: var(--ink-faint); margin: -2px 0 2px; }

/* ============ 小游戏 ============ */
.mg-box {
  position: relative;
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  animation: popIn .25s cubic-bezier(.34, 1.56, .64, 1);
}
.mg-box.mg-shake { animation: mgShake .25s; }
@keyframes mgShake { 0%,100%{transform:none} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.mg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-weight: 800; }
.mg-title { font-size: 17px; color: var(--yellow); }
.mg-timer { font-size: 15px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.mg-timer.urgent { color: var(--red); animation: lowPulse .5s infinite; }
.mg-score { font-size: 15px; color: var(--green); font-variant-numeric: tabular-nums; }
.mg-arena {
  position: relative;
  height: 300px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,0) 18%),
    linear-gradient(180deg, #2b3160 0%, #232a52 62%, #3a2f22 62%, #34291f 100%);
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  touch-action: manipulation;
  box-shadow: inset 0 0 30px rgba(0,0,0,.4);
}
.mg-intro { text-align: center; padding: 10px 6px 4px; }
.mg-intro .mg-emoji { font-size: 52px; }
.mg-intro h3 { font-size: 21px; color: var(--yellow); margin: 6px 0; }
.mg-intro p { font-size: 14px; color: var(--ink-dim); margin-bottom: 16px; white-space: pre-wrap; }
.mg-result { text-align: center; padding: 14px 6px 4px; }
.mg-result .mg-emoji { font-size: 52px; }
.mg-result h3 { font-size: 22px; margin: 8px 0 4px; }
.mg-result p { font-size: 14px; color: var(--ink-dim); margin-bottom: 16px; white-space: pre-wrap; }

/* 搬砖任务块 */
.task-chip {
  position: absolute;
  min-width: 86px;
  padding: 8px 10px 6px;
  background: var(--panel-2);
  border: 2px solid var(--teal);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  text-align: center;
  animation: chipIn .18s ease;
  z-index: 2;
}
.task-chip .chip-bar { height: 4px; background: #14162b; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.task-chip .chip-fill { height: 100%; background: var(--teal); width: 100%; }
.task-chip.urgent { border-color: var(--red); }
.task-chip.urgent .chip-fill { background: var(--red); }
.task-chip.trap { border-color: var(--purple); }
.task-chip.trap .chip-fill { background: var(--purple); }
@keyframes chipIn { from { transform: scale(.6); opacity: 0; } }
.chip-pop { animation: chipPop .22s ease forwards !important; pointer-events: none; }
@keyframes chipPop { to { transform: scale(1.45); opacity: 0; } }

.mg-combo {
  position: absolute; top: 8px; right: 10px;
  font-size: 14px; font-weight: 900; color: var(--yellow);
  pointer-events: none; z-index: 3;
}

/* 摸鱼 */
.slack-stage { position: relative; }
.slack-stage canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 200px; object-fit: contain; image-rendering: pixelated; display: block; margin: 0 auto; }
.slack-status {
  text-align: center; font-size: 15px; font-weight: 700;
  min-height: 26px; margin: 6px 0;
}
.slack-status.danger { color: var(--red); animation: lowPulse .35s infinite; }
.slack-status.safe { color: var(--green); }
.slack-toggle {
  width: 100%;
  padding: 16px;
  font-size: 19px; font-weight: 900;
  border-radius: 14px;
  border: 3px solid #25804a; border-bottom-width: 6px;
  background: var(--green); color: #fff;
}
.slack-toggle.working { background: var(--teal); border-color: #2a6db1; }
.slack-toggle:active { transform: translateY(3px); border-bottom-width: 3px; margin-bottom: 3px; }
.slack-meter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; }
.slack-meter .stat-bar { flex: 1; height: 10px; }

/* 周报 */
.word-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.word-btn {
  padding: 9px 2px;
  font-size: 14px; font-weight: 700;
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
}
.word-btn.sel { background: var(--orange); border-color: #b85436; color: #fff; }
.report-out {
  background: var(--bg);
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  min-height: 86px;
  margin: 10px 0;
  text-align: left;
  white-space: pre-wrap;
}
.report-out .hl { color: var(--yellow); font-weight: 700; }

/* ============ 浮动提示 ============ */
#toast-wrap {
  position: fixed;
  top: 18vh;
  top: 18dvh;
  left: 50%; transform: translateX(-50%);
  z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  width: max-content; max-width: 90vw;
}
.toast {
  background: rgba(20, 22, 43, .92);
  border: 2px solid var(--line);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 14px; font-weight: 700;
  animation: toastUp 1.5s ease forwards;
  white-space: nowrap;
}
.toast.t-good { color: #7beda4; border-color: #2c7c4c; }
.toast.t-bad { color: #ff9aa0; border-color: #93363c; }
.toast.t-info { color: var(--yellow); border-color: #8a6c3c; }
@keyframes toastUp { 0% { opacity: 0; transform: translateY(12px); } 12% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

/* 成就弹出 */
#ach-pop {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  z-index: 400;
  background: linear-gradient(135deg, #3a2f12, #2a2410);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
  animation: achIn 3.2s ease forwards;
  max-width: 92vw;
}
#ach-pop.hidden { display: none; }
#ach-pop .ap-icon { font-size: 30px; }
#ach-pop .ap-head { font-size: 11px; color: var(--gold); letter-spacing: 2px; }
#ach-pop .ap-name { font-size: 16px; font-weight: 900; color: #fff; }
@keyframes achIn { 0% { opacity: 0; transform: translate(-50%, -24px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18px); } }

/* ============ 结局屏 ============ */
#screen-ending { justify-content: center; padding: 30px 22px; text-align: center; }
.ending-icon { font-size: 74px; animation: endFloat 2.6s ease-in-out infinite; }
@keyframes endFloat { 50% { transform: translateY(-10px); } }
.ending-tag {
  display: inline-block;
  font-size: 12px; letter-spacing: 4px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 2px 14px; border-radius: 99px;
  margin: 14px 0 8px;
}
.ending-title { font-size: 30px; color: var(--yellow); margin-bottom: 14px; }
.ending-text { font-size: 15px; color: var(--ink-dim); white-space: pre-wrap; text-align: left; max-width: 400px; margin: 0 auto; }
.ending-stats {
  margin: 20px auto;
  max-width: 380px;
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 16px;
  color: var(--ink-dim);
}
.ending-stats b { color: var(--ink); }
.ending-btns { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }

/* ============ 子页面（成就/说明） ============ */
.sub-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px;
  gap: 10px;
}
.sub-header h2 { font-size: 19px; }
.ach-count { font-size: 13px; color: var(--ink-faint); min-width: 42px; text-align: right; }
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 14px 24px; }
.ach-card {
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex; gap: 10px; align-items: center;
}
.ach-card .ac-icon { font-size: 26px; flex: none; }
.ach-card .ac-name { font-size: 14px; font-weight: 800; }
.ach-card .ac-desc { font-size: 11px; color: var(--ink-faint); line-height: 1.4; }
.ach-card.locked { opacity: .45; filter: grayscale(1); }
.ach-card.unlocked { border-color: #8a6c3c; }

.help-body { padding: 4px 20px 30px; }
.help-body h3 { color: var(--yellow); font-size: 16px; margin: 16px 0 4px; }
.help-body p { font-size: 14px; color: var(--ink-dim); margin-bottom: 6px; }
.help-body b { color: var(--ink); }
.help-credit { margin-top: 26px; text-align: center; font-size: 12px; color: var(--ink-faint); }

/* ============ 其他 ============ */
.icp { text-align: center; padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
.icp a { color: #5a5f80; font-size: 11px; text-decoration: none; }

#btn-mute {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  width: 44px; height: 44px;
  font-size: 19px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 50%;
  opacity: .8;
}

.day-trans {
  position: fixed; inset: 0; z-index: 500;
  background: #0c0d18;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  animation: dayTrans 1.15s ease forwards;
}
.day-trans .dt-day { font-size: 30px; font-weight: 900; color: var(--yellow); }
.day-trans .dt-sub { font-size: 14px; color: var(--ink-faint); }
@keyframes dayTrans { 0% { opacity: 0; } 18% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ============ 新小游戏通用飘字/连击 ============ */
.mg-float {
  position: absolute; z-index: 6;
  font-size: 15px; font-weight: 900; pointer-events: none;
  animation: floatUp .85s ease forwards;
}
.mg-float.plus { color: var(--yellow); }
.mg-float.minus { color: var(--red); }
@keyframes floatUp { from { opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
.combo-bump { animation: comboBump .15s ease; }
@keyframes comboBump { 50% { transform: scale(1.4); } }

/* ============ 彩虹屁大师 ============ */
.mg-boss-bubble {
  position: relative; background: var(--panel-2);
  border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 8px 0 10px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  min-height: 62px; line-height: 1.45; transition: background .18s;
}
.mg-boss-bubble.crash { background: #3d1a2a; }
.mg-boss-face { font-size: 22px; margin-right: 6px; }
.mg-boss-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; vertical-align: middle; border: 2px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mg-boss-hint { font-size: 13px; color: var(--yellow); min-height: 18px; text-align: center; margin-bottom: 8px; font-weight: 700; }
.mg-opts { display: flex; flex-direction: column; gap: 9px; }
.mg-opt {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--panel); color: var(--ink);
  border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-align: left;
  white-space: normal; line-height: 1.35;
  transition: transform .1s, border-color .15s, background .15s;
}
.mg-opt:active { transform: translateY(2px); border-bottom-width: 2px; }
.mg-opt.good { background: #2a2410; border-color: var(--yellow); animation: optPop .22s ease; }
.mg-opt.bad { border-color: var(--red); animation: optShake .18s ease; }
.mg-opt.dim { opacity: .55; }
@keyframes optPop { 50% { transform: scale(1.04); } }
@keyframes optShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ============ 撸铁达人 ============ */
.mg-gym-stage { position: relative; padding: 12px 0; }
.mg-gym-stage.mg-shake { animation: mgShake .26s; }
.mg-gym-track {
  position: relative; height: 48px;
  background: var(--bg); border: 2px solid var(--line);
  border-radius: 10px; overflow: hidden;
  touch-action: manipulation; transition: box-shadow .15s;
}
.mg-gym-track.flash { background: #3d1a2a; }
.mg-gym-sweet { position: absolute; top: 0; bottom: 0; background: rgba(56,183,100,.28); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.mg-gym-fail { position: absolute; top: 0; bottom: 0; background: rgba(230,79,87,.34); border: 1px solid var(--red); }
.mg-gym-needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: var(--yellow); box-shadow: 0 0 6px var(--yellow); will-change: left; pointer-events: none; }
.mg-gym-pop { position: absolute; top: -4px; transform: translateX(-50%); font-size: 14px; font-weight: 900; pointer-events: none; white-space: nowrap; z-index: 4; animation: floatUp .45s ease forwards; }

/* ============ 脑力闯关 ============ */
.brain-hint { text-align: center; font-size: 15px; font-weight: 700; min-height: 26px; margin: 8px 0; color: var(--ink-dim); }
.brain-hint.go { color: var(--green); }
.brain-hint.bad { color: var(--red); animation: lowPulse .35s infinite; }
.brain-pad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 4px; touch-action: manipulation; }
.brain-pad.locked { pointer-events: none; }
.brain-pad.pulse > .brain-key { animation: brainPulse .35s ease; }
.brain-pad.shake { animation: mgShake .3s; }
@keyframes brainPulse { 50% { transform: scale(1.04); } }
.brain-key {
  aspect-ratio: 1 / 1; min-height: 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px; border: 3px solid var(--line); border-bottom-width: 6px;
  background: var(--panel-2); color: var(--ink);
  font-size: 14px; font-weight: 800; user-select: none;
  transition: transform .08s, filter .12s, box-shadow .12s;
}
.brain-key .bk-emoji { font-size: 34px; line-height: 1; }
.brain-key.k0 { border-color: var(--teal); }
.brain-key.k1 { border-color: var(--green); }
.brain-key.k2 { border-color: var(--orange); }
.brain-key.k3 { border-color: var(--purple); }
.brain-key.brain-on { filter: brightness(1.65) saturate(1.4); transform: scale(1.06); box-shadow: 0 0 18px currentColor; }
.brain-key.brain-bad { background: #3d1a2a; border-color: var(--red); }
.brain-key:active { transform: translateY(3px); border-bottom-width: 3px; }

/* ============ 直播带货 ============ */
.mg-fall {
  position: absolute; min-width: 46px; padding: 6px 8px;
  background: var(--panel-2); border: 2px solid var(--teal);
  border-radius: 10px; font-size: 22px; text-align: center;
  will-change: top; z-index: 2;
}
.mg-fall.bad { border-color: var(--red); }
.mg-fall.refund { border-color: var(--purple); }
.mg-fall.gift { border-color: var(--yellow); box-shadow: 0 0 8px rgba(255,205,117,.5); }
.fall-pop { animation: fallPop .22s ease forwards !important; pointer-events: none; }
@keyframes fallPop { to { transform: scale(1.4); opacity: 0; } }
.slack-meter .stat-fill.full { background: var(--yellow) !important; box-shadow: 0 0 8px rgba(255,205,117,.6); }

/* ============ DDL 冲刺 ============ */
.crunch-bar { height: 30px; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; margin: 14px 0; transition: box-shadow .15s; }
.crunch-bar.lag { box-shadow: 0 0 0 3px var(--red) inset; }
.crunch-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .08s linear; }

/* ============ 抢红包 ============ */
.red-stage { position: relative; height: 230px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; touch-action: manipulation; display: flex; align-items: center; justify-content: center; }
.red-tip { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-dim); }
.red-tip.good { color: var(--green); }
.red-tip.miss { color: var(--red); }
.red-packet { padding: 18px 22px; font-size: 19px; font-weight: 900; color: #fff; background: var(--red); border: 3px solid #b03a46; border-bottom-width: 6px; border-radius: 16px; animation: optPop .18s ease; }
.red-packet:active { transform: translateY(3px); border-bottom-width: 3px; }
.red-packet.big { background: linear-gradient(135deg, #e64f57, #ffcd75); border-color: #b8801f; }
.red-packet.scam { background: var(--panel); color: var(--ink-dim); border-color: var(--line); font-size: 16px; }

/* ============ 代码捉虫 ============ */
.debug-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; touch-action: manipulation; }
.debug-cell { position: relative; aspect-ratio: 1 / 1; background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.debug-mole { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--panel); border: none; border-radius: 10px; transform: translateY(100%); transition: transform .12s ease; }
.debug-mole.up { transform: translateY(0); }
.debug-mole.gem { background: #2a2a4a; }
.debug-mole.squashed { transform: scale(1.3); opacity: 0; transition: transform .15s, opacity .15s; }
.debug-mole.boom { background: #3d1a2a; }

/* ============ 抓娃娃机 ============ */
.claw-stage { position: relative; height: 220px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; touch-action: manipulation; }
.claw-hook { position: absolute; top: 4px; left: 0; width: 30px; margin-left: -15px; text-align: center; font-size: 26px; will-change: left, top; transition: top .3s ease; }
.claw-hook.drop { top: 130px; }
.claw-row { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; }
.claw-slot { flex: 1; text-align: center; font-size: 26px; min-height: 34px; }
.claw-slot span { display: inline-block; }

/* ============ 数羊入睡 ============ */
.sheep-stage { position: relative; height: 200px; background: linear-gradient(180deg, #1a1c3a, #29306a); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.sheep-fence { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 34px; }
.sheep-actor { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); font-size: 40px; }
.sheep-actor.jump { animation: sheepJump .9s ease; }
.sheep-actor.msg { bottom: 70px; animation: msgBlink .8s ease infinite; }
.sheep-actor.counted { animation: sheepCounted .4s ease forwards; }
@keyframes sheepJump { 0% { transform: translateX(-50%) translateY(10px) scale(.9); } 50% { transform: translateX(-50%) translateY(-22px) scale(1.05); } 100% { transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes msgBlink { 50% { opacity: .5; } }
@keyframes sheepCounted { to { transform: translateX(-50%) translateY(-30px) scale(.5); opacity: 0; } }

/* ============ FX 互动特效层 ============ */
#fx-layer { position: fixed; inset: 0; z-index: 350; pointer-events: none; overflow: hidden; }
.fx-confetti { position: absolute; border-radius: 1px; will-change: transform, opacity; }
.fx-coin { position: absolute; font-size: 20px; will-change: transform, opacity; }
.fx-burst { position: absolute; font-size: 18px; will-change: transform, opacity; }
.fx-bubble {
  position: absolute; padding: 4px 10px;
  background: #fff; color: #23232e; font-size: 13px; font-weight: 800;
  border: 2px solid var(--line); border-radius: 10px; white-space: nowrap;
  will-change: transform, opacity;
}
@keyframes shake {
  0%,100%{transform:translate(0,0)} 15%{transform:translate(-5px,3px)} 30%{transform:translate(5px,-3px)}
  45%{transform:translate(-4px,-2px)} 60%{transform:translate(4px,2px)} 75%{transform:translate(-2px,2px)} 90%{transform:translate(2px,-1px)}
}
@keyframes shakeHard {
  0%,100%{transform:translate(0,0)} 12%{transform:translate(-9px,5px)} 28%{transform:translate(9px,-5px)}
  44%{transform:translate(-7px,-3px)} 60%{transform:translate(7px,4px)} 76%{transform:translate(-4px,3px)} 90%{transform:translate(4px,-2px)}
}
#app.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97) both; }
#app.shake-hard { animation: shakeHard .58s cubic-bezier(.36,.07,.19,.97) both; }
@media (prefers-reduced-motion: reduce) { #app.shake, #app.shake-hard { animation: none; } }

@media (max-width: 360px) {
  .word-grid { grid-template-columns: repeat(3, 1fr); }
  .word-btn { font-size: 13px; }
  .brain-key { min-height: 92px; font-size: 13px; }
  .brain-key .bk-emoji { font-size: 28px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px 8px; padding: 8px 12px 2px; }
  .action-btn .a-icon { font-size: 20px; }
  .action-btn .a-name { font-size: 14px; }
  .logo { letter-spacing: 2px; }
}

/* ============================================================
   v2 UI 润色（HUD 框架 / 玻璃质感属性条 / 场景光感）
   ============================================================ */
.hud {
  background: linear-gradient(180deg, rgba(41,54,111,.30), rgba(41,54,111,0));
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.hud-day { letter-spacing: .5px; }
.hud-money { text-shadow: 0 0 10px rgba(255,215,0,.35); }

#scene {
  border-color: #2c335e;
  box-shadow: 0 6px 22px rgba(0,0,0,.4), inset 0 0 26px rgba(0,0,0,.35);
}
.scene-time {
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 600; letter-spacing: .5px;
  backdrop-filter: blur(2px);
}

/* 玻璃质感属性条：保留 JS 设的底色，叠加高光/暗部 + 细发光 */
.stat-bar { box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.stat-fill {
  background-image: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 45%, rgba(0,0,0,.18));
  box-shadow: 0 0 5px rgba(255,255,255,.10);
}
.stat-label b { font-variant-numeric: tabular-nums; }

/* 行动卡片：更立体的高光 */
.action-btn { background-image: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08)); }
.action-btn .a-icon { filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.btn-primary { background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.08)); }

/* ============================================================
   道具商店 + 每日状态横幅
   ============================================================ */
.shop-money { font-size: 15px; font-weight: 800; color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,.3); }
.shop-tip { text-align: center; font-size: 12px; color: var(--ink-faint); margin: -4px 0 8px; }
.shop-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 24px; }
.shop-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2);
  border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: 14px; padding: 11px 13px;
}
.shop-card.owned { opacity: .72; border-color: #8a6c3c; }
.shop-icon { font-size: 30px; flex: none; width: 36px; text-align: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.shop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-info b { font-size: 15px; }
.shop-info i { font-size: 11.5px; color: var(--ink-dim); font-style: normal; line-height: 1.35; }
.shop-buy {
  flex: none; min-width: 76px; padding: 9px 12px;
  font-size: 14px; font-weight: 800; color: #fff;
  background: var(--green); border: 2px solid #25804a; border-bottom-width: 4px;
  border-radius: 10px; font-variant-numeric: tabular-nums;
}
.shop-buy:active { transform: translateY(2px); border-bottom-width: 2px; }
.shop-buy.off { background: var(--panel); border-color: var(--line); color: var(--ink-faint); }
.shop-owned { flex: none; font-size: 13px; font-weight: 700; color: var(--yellow); }

/* 每日状态横幅（场景右上角小条） */
.daily-chip {
  position: absolute; top: 10px; right: 26px; z-index: 5;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 7px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
  background: rgba(20,22,43,.78); border: 1px solid var(--line);
  pointer-events: none; max-width: 60%;
  animation: dailyIn .4s ease;
}
.daily-chip.good { border-color: #2c7c4c; color: #9fe9b8; }
.daily-chip.bad { border-color: #93363c; color: #ff9aa0; }
.daily-chip.hidden { display: none; }
.daily-chip .dc-icon { font-size: 14px; }
.daily-chip .dc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes dailyIn { from { opacity: 0; transform: translateY(-6px); } }

/* 结局插画 */
#ending-canvas {
  display: block; width: min(92%, 360px); max-width: 360px;
  margin: 0 auto 4px; border-radius: 14px;
  border: 3px solid var(--line);
  image-rendering: pixelated; image-rendering: crisp-edges;
  box-shadow: 0 8px 26px rgba(0,0,0,.45);
}
#screen-ending .ending-icon { font-size: 48px; margin-top: -34px; position: relative; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }

/* ============ 结局图鉴 + 生涯数据 ============ */
.codex-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 4px 14px 12px; }
.codex-stat {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 11px; font-size: 12.5px; color: var(--ink-dim);
}
.codex-stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.codex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 14px 26px; }
.codex-card {
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 14px;
  overflow: hidden; border-bottom-width: 4px;
}
.codex-card.locked { opacity: .6; }
.codex-illu { display: block; width: 100%; height: auto; image-rendering: pixelated; background: #0c0e1a; }
.codex-illu.locked-illu { display: flex; align-items: center; justify-content: center; aspect-ratio: 240/105; font-size: 34px; color: var(--ink-faint); }
.codex-meta { padding: 8px 10px 10px; }
.codex-meta .cx-tag { display: block; font-size: 10px; letter-spacing: 2px; color: var(--ink-faint); }
.codex-meta b { font-size: 14px; }
.codex-meta i { font-size: 11px; color: var(--yellow); font-style: normal; margin-left: 4px; }
.codex-meta .cx-hint { display: block; margin: 5px 0 0; margin-left: 0; font-size: 10.5px; line-height: 1.35; color: var(--ink-dim); font-style: normal; }
@media (max-width: 380px) { .codex-grid { grid-template-columns: 1fr; } }

/* 工装配色选择器（入职登记） */
.look-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 4px; }
.look-sw {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px 5px; background: var(--panel-2);
  border: 2px solid var(--line); border-radius: 10px; color: var(--ink-dim);
  font-size: 11px; transition: border-color .12s, transform .08s;
}
.look-sw.sel { border-color: var(--yellow); color: var(--ink); }
.look-sw:active { transform: translateY(2px); }
.look-sw .lw-shirt {
  position: relative; width: 22px; height: 18px; border-radius: 4px 4px 0 0;
  display: inline-block;
}
.look-sw .lw-tie { position: absolute; left: 50%; top: 3px; width: 4px; height: 12px; transform: translateX(-50%); border-radius: 1px; }
.look-sw .lw-name { white-space: nowrap; }

/* ============================================================
   新增小游戏样式（v32 职级专属玩法）
   ============================================================ */
/* 复印 */
.copier-stage { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 14px 0; }
.copier-bar { position: relative; width: 70px; height: 190px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.copier-zone { position: absolute; left: 0; right: 0; background: rgba(56,183,100,.32); border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); }
.copier-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(180deg, var(--teal), #2a6db1); }

/* 订奶茶 */
.boba-order { text-align: center; font-size: 14px; min-height: 44px; padding: 10px; margin: 6px 0; border-radius: 10px; background: var(--panel-2); border: 2px dashed var(--line); color: var(--ink-dim); }
.boba-order.show { background: #2a2f55; border-style: solid; border-color: var(--yellow); color: var(--ink); }
.boba-order b { color: var(--yellow); }
.boba-panel { display: flex; flex-direction: column; gap: 6px; }
.boba-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.boba-label { width: 24px; font-weight: 800; color: var(--ink-dim); flex: 0 0 auto; }
.boba-chip { padding: 7px 10px; font-size: 13px; font-weight: 700; border-radius: 9px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); }
.boba-chip.on { background: var(--teal); border-color: #2a6db1; color: #fff; }

/* 对账 */
.recon-table { display: flex; flex-direction: column; gap: 5px; margin: 6px 0; }
.recon-row { display: grid; grid-template-columns: 1.3fr 1fr auto 1fr; align-items: center; gap: 6px; padding: 8px 10px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; }
.recon-name { color: var(--ink-dim); }
.recon-n { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.recon-vs { color: var(--ink-faint); font-size: 11px; }
.recon-row.hit { border-color: var(--green); background: rgba(56,183,100,.18); }
.recon-row.miss { border-color: var(--red); background: rgba(230,79,87,.18); }

/* 联调连线 */
.wire-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0; }
.wire-col { display: flex; flex-direction: column; gap: 8px; }
.wire-node { padding: 11px 8px; font-size: 14px; font-weight: 800; border-radius: 10px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--panel); color: var(--ink); }
.wire-node.sel { border-color: var(--yellow); background: #2f3056; }
.wire-node.linked { border-color: var(--green); background: rgba(56,183,100,.22); color: var(--green); }
.wire-node.flash { border-color: var(--red); background: rgba(230,79,87,.25); }

/* 图表配对 */
.chart-q { text-align: center; font-size: 15px; margin: 8px 0; min-height: 24px; }
.chart-q b { color: var(--yellow); }
.chart-opts { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 8px 0; }
.chart-opts.lock { pointer-events: none; }
.chart-card { background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.chart-card svg { width: 72px; height: 72px; }
.chart-card.right { border-color: var(--green); background: rgba(56,183,100,.18); }
.chart-card.wrong { border-color: var(--red); background: rgba(230,79,87,.18); }

/* 会海求生 */
.meeting-meter { height: 22px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 11px; overflow: hidden; margin: 6px 0; }
.meeting-fill { height: 100%; width: 70%; background: var(--teal); transition: width .1s linear; }
.meeting-stage { position: relative; height: 120px; margin: 8px 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #3a3550 0%, #2f2b44 60%, #5a4632 60%, #43351f 100%); box-shadow: inset 0 0 22px rgba(0, 0, 0, .5); }
.meeting-stage::after { content: ''; position: absolute; left: 6%; right: 6%; top: 60%; height: 5px; background: linear-gradient(90deg, transparent, rgba(255, 220, 165, .3), transparent); }
.mtg-boss { position: absolute; left: 16px; bottom: 30px; font-size: 40px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); }
.mtg-talk { position: absolute; left: 58px; bottom: 66px; font-size: 12px; color: var(--ink-dim); opacity: .75; }
.mtg-me { position: absolute; right: 20px; bottom: 28px; font-size: 42px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); transition: transform .2s; }
.mtg-zzz { position: absolute; right: 22px; bottom: 76px; font-size: 22px; transition: opacity .3s; }
.meeting-bubble { position: absolute; left: 50%; top: 28%; transform: translateX(-50%); padding: 12px 16px; font-size: 16px; font-weight: 900; border-radius: 14px; border: 3px solid var(--yellow); border-bottom-width: 5px; background: var(--orange); color: #fff; animation: chipIn .15s ease; }
.meeting-bubble.ok { border-color: var(--green); background: var(--green); }

/* 派活 */
.assign-queue { text-align: center; margin: 6px 0; }
.assign-card { display: inline-block; padding: 12px 18px; font-size: 16px; font-weight: 800; border-radius: 12px; border: 2px solid var(--yellow); background: #2f3056; color: var(--ink); }
.assign-tip { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.assign-mems { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 8px 0; }
.assign-mem { padding: 8px 4px; border-radius: 10px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--panel); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.assign-name { font-size: 13px; font-weight: 800; }
.assign-bar { width: 26px; height: 70px; background: var(--bg); border: 2px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; }
.assign-fill { width: 100%; height: 0%; background: var(--green); transition: height .15s; }
.assign-load { font-size: 11px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* 面试 / 工作群 / 邮件 公用按钮区 */
.intv-card { background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.intv-card.flash-ok { border-color: var(--green); }
.intv-card.flash-no { border-color: var(--red); animation: mgShake .25s; }
.intv-h { font-weight: 900; color: var(--yellow); margin-bottom: 8px; text-align: center; }
.intv-r { font-size: 14px; font-weight: 700; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.intv-r.red { color: var(--red); }
.intv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.intv-btns .slack-toggle { padding: 14px 6px; font-size: 16px; }
.intv-btns .slack-toggle:first-child { background: var(--red); border-color: #a52d34; }
.email-btns { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 6px; }
.email-btns .slack-toggle { padding: 14px 4px; font-size: 15px; }
.email-btns .slack-toggle:last-child { background: var(--red); border-color: #a52d34; }

/* PPT 对齐 */
.align-canvas { position: relative; height: 230px; background: linear-gradient(180deg, #2b3160, #232a52); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.align-guide { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--yellow) 0 6px, transparent 6px 12px); transform: translateX(-50%); }
.align-box { position: absolute; width: 64px; height: 18px; margin-top: -9px; background: var(--teal); border-radius: 5px; transition: left .18s ease, background .18s; }
.align-box.off { background: var(--orange); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.align-box.lined { background: var(--green); }

/* 融资路演 */
.pitch-track { position: relative; height: 30px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 15px; margin: 16px 0; overflow: hidden; }
.pitch-band { position: absolute; top: 0; bottom: 0; background: rgba(56,183,100,.3); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.pitch-ptr { position: absolute; top: -4px; width: 6px; height: 38px; background: var(--yellow); border-radius: 3px; transform: translateX(-50%); transition: left .05s linear; }
.pitch-ptr.hot { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* 商务酒局 */
.banq-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 10px 0; justify-items: center; }
.banq-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.banq-cap { font-size: 14px; font-weight: 800; }
.banq-bar { width: 42px; height: 150px; background: var(--bg); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; }
.banq-fill { width: 100%; height: 10%; transition: height .1s linear; }

/* 接受采访 */
.press-sentence { min-height: 44px; padding: 10px; margin: 6px 0; border-radius: 10px; background: var(--panel-2); border: 2px solid var(--line); font-size: 14px; }
.press-sentence b { color: var(--yellow); }
.press-pool { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.press-word { padding: 9px 12px; font-size: 14px; font-weight: 700; border-radius: 9px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--panel); color: var(--ink); }
.press-word.used { opacity: .4; }

/* 工作群 / 邮件 消息卡 */
.gc-stage { min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 8px 0; }
.gc-msg { padding: 14px 16px; font-size: 15px; font-weight: 700; border-radius: 12px; background: var(--panel-2); border: 2px solid var(--line); max-width: 92%; text-align: center; animation: chipIn .12s ease; }
.gc-msg.junk { border-color: var(--purple); }
.gc-msg.vip { border-color: var(--yellow); }

/* 端咖啡 */
.coffee-tray { position: relative; height: 60px; margin: 14px 0 6px; }
.coffee-cup { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 34px; transition: left .04s linear; }
.coffee-cup.tilt { filter: drop-shadow(0 0 5px var(--red)); }
.coffee-ctrls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.coffee-ctrls .slack-toggle { font-size: 22px; }

/* 贴发票 */
.rc-slips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; justify-content: center; }
.rc-slip { padding: 9px 11px; font-size: 13px; font-weight: 700; border-radius: 9px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--panel); color: var(--ink); }
.rc-slip.sel { border-color: var(--yellow); background: #2f3056; }
.rc-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 8px 0; }
.rc-slot { padding: 10px 4px; font-size: 13px; font-weight: 800; border-radius: 10px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--panel-2); color: var(--ink); line-height: 1.5; }
.rc-slot.flash-ok { border-color: var(--green); background: rgba(56,183,100,.2); }
.rc-slot.flash-no { border-color: var(--red); background: rgba(230,79,87,.2); }

/* 记客户脸 */
.nf-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; min-height: 90px; }
.nf-card { font-size: 40px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel-2); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nf-name { font-size: 13px; font-weight: 800; color: var(--yellow); }
.nf-card.right { border-color: var(--green); background: rgba(56,183,100,.2); }
.nf-card.wrong { border-color: var(--red); background: rgba(230,79,87,.2); }

/* 商务谈判 */
.nego-bar { position: relative; height: 30px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 15px; margin: 16px 0; overflow: hidden; }
.nego-zone { position: absolute; top: 0; bottom: 0; background: rgba(56,183,100,.3); border-left: 2px solid var(--green); }
.nego-ptr { position: absolute; top: -4px; width: 6px; height: 38px; background: var(--yellow); border-radius: 3px; transform: translateX(-50%); transition: left .06s linear; }
.nego-ptr.hot { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ============================================================
   iOS 全面屏安全区适配（WKWebView 全屏，避免刘海/灵动岛/home条遮挡）
   env() 在非全面屏/桌面上为 0，不影响网页版
   ============================================================ */
#app {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
.hud, .sub-header { padding-top: calc(10px + env(safe-area-inset-top)); }
#screen-title .title-inner { padding-top: calc(16px + env(safe-area-inset-top)); }

/* ============ 理财投资屏 ============ */
.invest-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 24px; }
.invest-card { background: var(--panel-2); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 11px 13px; }
.invest-top { display: flex; align-items: center; gap: 10px; }
.invest-ic { font-size: 26px; }
.invest-name { font-weight: 800; font-size: 15px; }
.invest-sub { font-size: 11px; color: var(--ink-faint); }
.invest-price { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.invest-chg { font-size: 12px; font-weight: 700; }
.invest-chg.up { color: #ff5a5a; }
.invest-chg.down { color: var(--green); }
.invest-hold { font-size: 12px; color: var(--ink-dim); margin-top: 7px; }
.invest-hold b { color: var(--gold); }
.invest-btns { display: flex; gap: 8px; margin-top: 9px; }
.invest-btns button { flex: 1; padding: 9px 4px; font-weight: 800; font-size: 14px; border-radius: 10px; border: 2px solid var(--line); border-bottom-width: 3px; background: var(--panel); color: var(--ink); }
.invest-btns button:active { transform: translateY(2px); border-bottom-width: 1px; }
.invest-btns .ibuy { border-color: #b3402f; }
.invest-btns .isell { border-color: #2c6e8a; }
.invest-btns button:disabled { opacity: .4; }

/* ============ 平板/iPad：居中游戏区加边框阴影，像一台竖屏掌机 ============ */
@media (min-width: 700px) {
  #app {
    max-width: 560px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 80px rgba(0, 0, 0, .45);
  }
}

/* 理财模拟免责声明 */
.invest-disclaimer { font-size: 11px; color: var(--ink-faint); text-align: center; padding: 4px 18px 22px; line-height: 1.5; opacity: .85; }

/* ============ 茶水间游戏厅(arcade) + 移植小游戏 stash 网格 ============ */
.stash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0; touch-action: manipulation; }
.stash-cell { position: relative; aspect-ratio: 1 / 1; background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; transition: transform .08s, border-color .15s, background .15s; }
.stash-cell .sc-label { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-faint); font-weight: 700; }
.stash-cell.has { background: #2a2410; border-color: var(--yellow); }
.stash-cell.searched { background: #2a2d3e; }
.stash-cell.busted { background: #3d1a2a; border-color: var(--red); animation: mgShake .25s; }
.stash-cell.safe { border-color: var(--green); }
.stash-cell:active { transform: scale(.94); }
.stash-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; font-weight: 700; color: var(--ink-dim); }
.stash-bar .stat-bar { flex: 1; height: 12px; }
.stash-bar .stat-fill { background: var(--red); }
.arcade-tip { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 2px 18px 10px; }
.arcade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 2px 14px 26px; }
.arcade-card { background: var(--panel-2); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 13px 8px 11px; text-align: center; cursor: pointer; transition: transform .08s, border-color .15s; }
.arcade-card:active { transform: translateY(2px); border-bottom-width: 2px; }
.arcade-ic { font-size: 28px; line-height: 1; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 2px; }
.arcade-name { font-weight: 800; font-size: 13px; margin-top: 6px; color: var(--ink); }
.arcade-hi { font-size: 11px; color: var(--gold); margin-top: 4px; min-height: 14px; font-variant-numeric: tabular-nums; }

/* 小游戏按钮统一按下反馈(体感:让"按住/点中"一眼可感,惠及 meeting/coffee/pitch 等) */
#mg-box button:active { transform: scale(.95); filter: brightness(1.14); }

/* 体感:debug 让宝石(好)和虫子(坏)一眼可分 + redpacket 诈骗包闪烁红光 */
.debug-mole.gem { background: radial-gradient(circle, #ffe9a8, #ffcd75) !important; border-color: var(--gold) !important; font-size: 1.18em; box-shadow: 0 0 10px rgba(255, 205, 117, .65); }
.debug-mole.warn { background: #3a2330 !important; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 rgba(239, 79, 87, 0); } 50% { box-shadow: 0 0 14px rgba(239, 79, 87, .9); } }

/* 体感重构:对账可标记态(提交前可反复改) + PPT对齐让"歪框"一眼可辨(减误触) */
.recon-row.sel { border-color: var(--gold) !important; background: #2a2410; }
.recon-row.sel::after { content: '✓ 标'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--gold); font-weight: 800; }
.recon-row { position: relative; }
.align-box.off { border-color: var(--gold) !important; box-shadow: 0 0 9px rgba(255, 205, 117, .55); }

/* ============ 进度备份/恢复屏 ============ */
.backup-body { padding: 8px 16px 32px; overflow-y: auto; }
.backup-body h3 { font-size: 15px; color: var(--gold); margin: 20px 0 8px; }
.backup-tip { font-size: 13px; color: var(--ink-dim); line-height: 1.7; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 0; }
.backup-area { width: 100%; min-height: 88px; resize: vertical; box-sizing: border-box; background: var(--panel-2); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.5; word-break: break-all; -webkit-user-select: text; user-select: text; }
.backup-body .btn { width: 100%; margin-top: 10px; }

/* GPU 粒子画布(满屏覆盖,不挡操作) */
.pfx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ===== 场景动效 / 视差（让画面"活"起来；尊重系统「减弱动态效果」）===== */
/* 标题各层视差：随手机倾斜/指针移动差速位移=纵深感（--tx/--ty 由 tilt.js 提供，reduce 时恒 0） */
#title-canvas { transform: translate(calc(var(--tx, 0) * 10px), calc(var(--ty, 0) * 8px)); transition: transform .12s ease-out; will-change: transform; }
.logo { transform: translate(calc(var(--tx, 0) * -5px), calc(var(--ty, 0) * -4px)); transition: transform .14s ease-out; }
.subtitle { transform: translate(calc(var(--tx, 0) * -7px), calc(var(--ty, 0) * -5px)); transition: transform .16s ease-out; }
@keyframes bgDrift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 4px 0 rgba(0, 0, 0, .28); } 50% { box-shadow: 0 4px 22px rgba(239, 125, 87, .55); } }
@keyframes modalPop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body { animation: bgDrift 44s linear infinite; }
  #btn-new { animation: btnPulse 2.8s ease-in-out infinite; }
  #modal-box.pop { animation: modalPop .26s cubic-bezier(.2, .8, .3, 1.15); }
}

/* ===== 投掷游戏·精美舞台（黄昏办公室落地窗 + 城市夜景 + 木桌）===== */
.throw-stage {
  background:
    radial-gradient(150% 75% at 50% -12%, rgba(255, 205, 140, .22), transparent 55%),
    linear-gradient(180deg, #2e2b63 0%, #574a86 26%, #9c5f86 42%, #e09a6e 53%, #2a3358 53.4%, #222a52 57%, #4a3a24 57%, #6b5436 64%, #3d2f1d 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55), inset 0 -10px 24px rgba(0, 0, 0, .35);
}
.throw-stage .ts-sky { position: absolute; left: 0; right: 0; bottom: 43%; height: 16%; z-index: 0; opacity: .9; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cg fill='%231a1530'%3E%3Crect x='0' y='40' width='22' height='40'/%3E%3Crect x='26' y='26' width='18' height='54'/%3E%3Crect x='48' y='48' width='16' height='32'/%3E%3Crect x='68' y='18' width='20' height='62'/%3E%3Crect x='92' y='44' width='14' height='36'/%3E%3Crect x='110' y='32' width='22' height='48'/%3E%3Crect x='136' y='52' width='20' height='28'/%3E%3C/g%3E%3Cg fill='%23ffd27a'%3E%3Crect x='6' y='48' width='3' height='3'/%3E%3Crect x='13' y='58' width='3' height='3'/%3E%3Crect x='32' y='34' width='3' height='3'/%3E%3Crect x='37' y='50' width='3' height='3'/%3E%3Crect x='74' y='28' width='3' height='3'/%3E%3Crect x='81' y='46' width='3' height='3'/%3E%3Crect x='116' y='40' width='3' height='3'/%3E%3Crect x='125' y='56' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / auto 100%;
}
.throw-stage .ts-frame { position: absolute; left: 8px; right: 8px; top: 8px; bottom: 43%; border: 3px solid rgba(18, 14, 36, .7); border-radius: 6px; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04); }
.throw-stage .ts-frame::before { content: ''; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 3px; background: rgba(18, 14, 36, .7); transform: translateX(-50%); }
.throw-stage .ts-frame::after { content: ''; position: absolute; top: 50%; left: -1px; right: -1px; height: 3px; background: rgba(18, 14, 36, .7); transform: translateY(-50%); }
.throw-stage .ts-desk { position: absolute; left: 0; right: 0; top: 57%; height: 4px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 220, 165, .55), transparent); }
.throw-stage .ts-actor { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); z-index: 3; }
.throw-stage .ts-target { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 2px dashed rgba(255, 210, 58, .7); box-shadow: 0 0 16px rgba(255, 210, 58, .45); z-index: 2; pointer-events: none; animation: tgtPulse 1.5s ease-in-out infinite; }
@keyframes tgtPulse { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }
.throw-stage .ts-dot { background: radial-gradient(circle, #fff6d0, #ffcd3a) !important; box-shadow: 0 0 6px rgba(255, 205, 58, .9); }
.throw-stage .ts-cup { filter: drop-shadow(0 0 8px rgba(255, 220, 120, .8)); z-index: 4; }
/* 事件配图/动作过场图(即梦4.0 AI 插画)——竖屏弹窗里当 banner，完整显示不裁剪 */
.modal-art { display: block; width: 100%; height: auto; border-radius: 12px; margin: 2px auto 10px; box-shadow: 0 6px 18px rgba(0,0,0,.4); border: 2px solid var(--line); animation: modalArtIn .45s ease; }
@keyframes modalArtIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
/* 茶水间游戏厅 + 小游戏覆盖层 AI 背景衬底(深色渐变遮罩保证卡片/游戏可读) */
#screen-arcade { background: linear-gradient(rgba(10,11,22,.80), rgba(10,11,22,.90)), url('art/bg/chashui_1.jpg?v=107') center/cover no-repeat; }
#mg-layer { background: linear-gradient(rgba(8,9,18,.85), rgba(8,9,18,.93)), url('art/bg/chashui_2.jpg?v=107') center/cover no-repeat; }
/* ============ 四季 + 天气 氛围 ============ */
.scene-time { z-index: 6; }
.weather-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; border-radius: 12px; }
.wfx-p { position: absolute; top: -15%; will-change: top; }
@keyframes wfxFall { from { top: -15%; } to { top: 115%; } }
@keyframes wfxSway { from { margin-left: -7px; } to { margin-left: 7px; } }
.wfx-rain .wfx-p { width: 2px; height: 16px; background: linear-gradient(rgba(200,215,255,0), rgba(205,220,255,.8)); animation: wfxFall linear infinite; }
.wfx-snow .wfx-p { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 3px rgba(255,255,255,.6); animation: wfxFall linear infinite, wfxSway ease-in-out infinite alternate; }
.wfx-petal .wfx-p { width: 10px; height: 7px; border-radius: 60% 0 60% 0; background: rgba(255,183,206,.85); animation: wfxFall linear infinite, wfxSway ease-in-out infinite alternate; }
.wfx-leaf .wfx-p { width: 10px; height: 8px; border-radius: 0 60% 0 60%; background: rgba(214,140,69,.85); animation: wfxFall linear infinite, wfxSway ease-in-out infinite alternate; }
.scene-wrap[data-season="spring"]::before { content: ''; position: absolute; inset: 0; background: rgba(255,180,200,.07); pointer-events: none; z-index: 3; border-radius: 12px; }
.scene-wrap[data-season="summer"]::before { content: ''; position: absolute; inset: 0; background: rgba(255,232,120,.05); pointer-events: none; z-index: 3; border-radius: 12px; }
.scene-wrap[data-season="autumn"]::before { content: ''; position: absolute; inset: 0; background: rgba(255,150,60,.08); pointer-events: none; z-index: 3; border-radius: 12px; }
.scene-wrap[data-season="winter"]::before { content: ''; position: absolute; inset: 0; background: rgba(150,190,255,.09); pointer-events: none; z-index: 3; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .wfx-p { display: none; } }

/* ============================================================
   v122 App-ready 游戏层：把小游戏从网页弹窗升级成移动端游戏舞台
   ============================================================ */
body.mg-open { overflow: hidden; touch-action: none; }
#mg-layer {
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  align-items: stretch;
}
.mg-box.mg-app {
  width: min(100%, 540px);
  min-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(54, 59, 95, .96), rgba(23, 25, 45, .97)),
    radial-gradient(circle at 20% 0%, rgba(255, 205, 117, .18), transparent 42%);
  border-color: rgba(255, 205, 117, .22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mg-box.mg-app::before {
  content: '';
  position: sticky;
  top: -14px;
  height: 4px;
  margin: -14px -14px 10px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal));
  border-radius: 18px 18px 0 0;
  flex: none;
  z-index: 2;
}
.mg-box.mg-app .mg-head {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 9px 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(17, 19, 35, .72);
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
}
.mg-box.mg-app .mg-title { font-size: 15px; letter-spacing: .2px; }
.mg-box.mg-app .mg-score,
.mg-box.mg-app .mg-timer {
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
}
.mg-box.mg-app .mg-timer.urgent {
  background: rgba(230, 79, 87, .18);
}
.mg-score-pop { animation: mgScorePop .22s ease; }
@keyframes mgScorePop { 45% { transform: scale(1.18); filter: brightness(1.25); } }
.mg-bump { animation: mgBump .18s ease; }
@keyframes mgBump { 50% { transform: scale(1.035); } }
.mg-box.mg-app .slack-status {
  border-radius: 12px;
  padding: 7px 10px;
  background: rgba(15, 17, 31, .52);
  border: 1px solid rgba(255, 255, 255, .07);
}
.mg-box.mg-app .slack-toggle,
.mg-box.mg-app .btn,
.mg-box.mg-app .word-btn,
.mg-box.mg-app .task-chip,
.mg-box.mg-app .debug-mole,
.mg-box.mg-app .rc-slip,
.mg-box.mg-app .rc-slot {
  touch-action: manipulation;
}

.work-board {
  height: min(54dvh, 420px);
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(72, 83, 132, .8), rgba(24, 28, 56, .95)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 82px);
}
.work-board-grid {
  position: absolute;
  inset: 46px 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.work-focus {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 86px);
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(13, 15, 30, .7);
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}
.task-chip {
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}
.task-chip::before {
  content: attr(data-priority);
  display: block;
  margin: -3px auto 3px;
  width: max-content;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.09);
  color: var(--yellow);
  font-size: 10px;
}
.task-chip.urgent::before { color: #fff; background: rgba(230,79,87,.72); }
.task-chip.trap::before { color: #fff; background: rgba(141,111,221,.72); }

.debug-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.debug-console {
  min-height: 52px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7, 10, 20, .75);
  border: 1px solid rgba(106, 166, 255, .28);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.debug-console b {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: .4px;
}
.debug-console span {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.35;
}
.debug-console.hot { border-color: rgba(255, 205, 117, .45); box-shadow: 0 0 18px rgba(255, 205, 117, .12); }
.debug-console.hot b { color: var(--yellow); }
.debug-console.safe { border-color: rgba(56, 183, 100, .45); }
.debug-console.safe b { color: var(--green); }
.debug-console.danger { border-color: rgba(230, 79, 87, .5); }
.debug-console.danger b { color: var(--red); }

.coffee-tray {
  height: 118px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(255, 205, 117, .14), transparent 45%),
    linear-gradient(180deg, #2e345d 0%, #252a4a 60%, #5d4630 61%, #3c2c1e 100%);
  border: 2px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.coffee-safe {
  position: absolute;
  left: 38%;
  right: 38%;
  top: 18px;
  bottom: 24px;
  border-radius: 99px;
  background: rgba(56,183,100,.18);
  border: 1px solid rgba(56,183,100,.45);
}
.coffee-table {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 205, 117, .24);
  box-shadow: 0 10px 20px rgba(0,0,0,.24);
}
.coffee-cup {
  top: 36px;
  z-index: 2;
  font-size: 44px;
}
.coffee-ctrls .slack-toggle {
  min-height: 64px;
  font-size: 26px;
}

.mail-card {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.mail-card i {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: .8px;
}
.mail-card b {
  font-size: 14px;
  line-height: 1.45;
}
.mail-card small {
  color: var(--ink-dim);
  font-size: 11px;
}
.email-btns .slack-toggle {
  min-height: 58px;
  border-radius: 14px;
}

@media (max-width: 390px) {
  .mg-box.mg-app {
    border-radius: 18px;
    padding: 12px;
  }
  .work-board { min-height: 300px; }
  .task-chip { min-width: 76px; font-size: 12px; }
  .email-btns { gap: 6px; }
  .email-btns .slack-toggle { font-size: 13px; }
}

/* ============================================================
   v122 App Store-ready 主界面质感层
   ============================================================ */
:root {
  --bg: #171922;
  --bg-2: #242938;
  --panel: #293047;
  --panel-2: #202637;
  --line: #46506d;
  --ink: #f7f1e7;
  --ink-dim: #c6c0b6;
  --ink-faint: #8d938f;
  --yellow: #f6c96b;
  --orange: #e9724c;
  --red: #e9565c;
  --green: #47bf7b;
  --teal: #57a6d9;
  --purple: #9b7bd7;
  --pink: #df7aa1;
  --gold: #f6c96b;
  --desk: #6b4b35;
  --paper: #efe3ce;
}
html {
  background: #11131a;
  color-scheme: dark;
}
body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(180deg, #171922 0%, #11131a 100%);
  background-size: auto, 34px 34px, 34px 34px, auto;
}
#app {
  background:
    linear-gradient(180deg, rgba(246, 201, 107, .055), rgba(0, 0, 0, 0) 32%),
    linear-gradient(180deg, rgba(23, 25, 34, .18), rgba(10, 11, 16, .34));
}
.screen.active {
  animation: screenIn .24s cubic-bezier(.2, .7, .3, 1);
}
.hud {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 10px 6px;
  padding: calc(10px + env(safe-area-inset-top)) 10px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0 0 18px 18px;
  background: rgba(22, 25, 35, .78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}
.hud-day {
  color: var(--paper);
  font-size: 14px;
}
.hud-level {
  margin-top: 1px;
  color: var(--yellow);
  opacity: .92;
}
.hud-money {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(246, 201, 107, .13);
  border: 1px solid rgba(246, 201, 107, .22);
}
.btn-icon,
.btn,
.qbtn,
.action-btn {
  box-shadow: 0 8px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.07);
}
.btn-icon:focus-visible,
.btn:focus-visible,
.qbtn:focus-visible,
.action-btn:focus-visible,
.slack-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.scene-wrap {
  padding: 0 12px;
}
#scene,
#title-canvas,
#ending-canvas,
.codex-illu {
  image-rendering: auto;
}
#scene {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,.34), inset 0 0 36px rgba(0,0,0,.20);
  background: #11131a;
}
.scene-wrap::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 30%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.20));
  pointer-events: none;
  z-index: 2;
}
.scene-time,
.daily-chip {
  z-index: 7;
  background: rgba(14, 16, 24, .72);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.stats {
  padding: 10px 12px 4px;
  gap: 8px;
}
.stat {
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}
.stat-label {
  font-size: 11px;
  margin-bottom: 5px;
}
.stat-bar {
  height: 8px;
  border-color: rgba(255,255,255,.08);
}
.quickbar {
  padding: 7px 12px 0;
}
.qbtn {
  border-radius: 13px;
  min-height: 42px;
  background: rgba(32,38,55,.82);
  border-color: rgba(255,255,255,.10);
}
.panel {
  margin: 10px 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(24, 29, 43, .92);
  box-shadow: 0 14px 32px rgba(0,0,0,.24);
}
.narr {
  color: var(--paper);
  line-height: 1.72;
}
.actions {
  gap: 9px;
}
.action-btn {
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.09);
  border-bottom-width: 4px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
    rgba(41, 48, 71, .95);
}
.action-btn .a-icon {
  font-size: 25px;
}
.action-btn .a-desc {
  color: var(--ink-dim);
}
.overlay {
  background: rgba(8, 9, 15, .70);
  backdrop-filter: blur(8px);
}
.modal {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(31, 37, 54, .97);
  box-shadow: 0 24px 70px rgba(0,0,0,.60);
}
.modal-title {
  color: var(--yellow);
  line-height: 1.28;
}
.modal-text {
  line-height: 1.72;
}
.modal-art {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  image-rendering: auto;
}
.modal-choices .btn {
  border-radius: 14px;
}
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.08)),
    var(--orange);
  border-color: #ac5439;
}
#btn-mute {
  background: rgba(22,25,35,.74);
  border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
body.arcade-screen #btn-mute {
  display: none;
}
.sub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17,19,26,.78);
  backdrop-filter: blur(10px);
}
.shop-card,
.invest-card,
.arcade-card,
.ach-card,
.codex-card {
  border-color: rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(30, 36, 52, .92);
}
@media (max-width: 380px) {
  .hud { margin-left: 8px; margin-right: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .action-btn { min-height: 76px; }
  .action-btn .a-desc { display: none; }
}

/* ============================================================
   v122.1 小游戏质感补强：暖灰掌机舞台 + 更明确触控层次
   ============================================================ */
#mg-layer {
  background:
    linear-gradient(rgba(13, 14, 16, .74), rgba(13, 14, 16, .86)),
    url('art/bg/chashui_2.jpg?v=107') center/cover no-repeat;
}
.mg-box.mg-app {
  color: #fbf4e8;
  background:
    linear-gradient(180deg, rgba(73, 71, 63, .98), rgba(27, 29, 27, .985)),
    radial-gradient(circle at 18% 0%, rgba(246, 201, 107, .22), transparent 40%);
  border: 1px solid rgba(246, 201, 107, .24);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .64),
    inset 0 1px 0 rgba(255, 255, 255, .11),
    inset 0 -1px 0 rgba(0, 0, 0, .28);
}
.mg-box.mg-app .mg-head {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.12)),
    rgba(29, 31, 30, .9);
  border-color: rgba(246, 201, 107, .14);
}
.mg-box.mg-app .mg-score,
.mg-box.mg-app .mg-timer {
  min-width: 58px;
  text-align: center;
  background: rgba(239, 227, 206, .12);
  color: #fbf4e8;
}
.mg-box.mg-app .mg-score {
  color: var(--green);
}
.mg-box.mg-app .slack-status {
  background: rgba(239, 227, 206, .10);
  border-color: rgba(239, 227, 206, .14);
  color: #ded6c8;
}
.mg-box.mg-app .slack-status.safe { color: var(--green); border-color: rgba(71, 191, 123, .34); }
.mg-box.mg-app .slack-status.danger { color: var(--red); border-color: rgba(233, 86, 92, .36); }
.mg-box.mg-app .slack-toggle,
.mg-box.mg-app .btn,
.mg-box.mg-app .word-btn,
.mg-box.mg-app .boba-chip,
.mg-box.mg-app .press-word,
.mg-box.mg-app .wire-node,
.mg-box.mg-app .rc-slip,
.mg-box.mg-app .rc-slot {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(0,0,0,.08)),
    rgba(52, 55, 52, .96);
  border-color: rgba(239, 227, 206, .18);
}
.mg-box.mg-app .slack-toggle.working,
.mg-box.mg-app .btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.10)),
    #3fb879;
  border-color: #2c8658;
  color: #fff;
}
.mg-box.mg-app .email-btns .slack-toggle:last-child,
.mg-box.mg-app .intv-btns .slack-toggle:first-child {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.10)),
    #d94f55;
  border-color: #9e373d;
}
.work-board {
  background:
    linear-gradient(180deg, rgba(92, 93, 80, .88), rgba(30, 33, 31, .96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 82px);
}
.work-board-grid {
  border-color: rgba(239, 227, 206, .10);
  background:
    linear-gradient(rgba(239,227,206,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,227,206,.055) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
}
.work-focus {
  background: rgba(18, 20, 18, .74);
  color: #ded6c8;
}
.task-chip {
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.12)),
    rgba(43, 47, 44, .96);
  border-color: rgba(87, 166, 217, .85);
}
.task-chip.urgent {
  border-color: rgba(233, 86, 92, .95);
  box-shadow: 0 0 0 2px rgba(233,86,92,.18), 0 0 22px rgba(246,201,107,.36);
}
.task-chip.trap {
  border-color: rgba(155, 123, 215, .95);
}
.debug-cell,
.brain-key,
.gc-msg,
.intv-card,
.boba-order,
.press-sentence,
.recon-row,
.chart-card,
.assign-mem,
.nf-card {
  background: rgba(31, 34, 32, .86);
  border-color: rgba(239, 227, 206, .14);
}
.debug-console {
  background: rgba(16, 18, 17, .84);
  border-color: rgba(87, 166, 217, .28);
}
.debug-mole {
  background: rgba(48, 51, 48, .98);
}
.debug-mole.gem {
  background: radial-gradient(circle, #ffe69a 0%, #f6c96b 55%, #584730 100%);
}
.brain-key {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.11)),
    rgba(32, 35, 33, .96);
}
.brain-key.brain-on {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.08)),
    rgba(55, 76, 67, .98);
}
.coffee-tray {
  background:
    radial-gradient(ellipse at 50% 78%, rgba(246, 201, 107, .20), transparent 45%),
    linear-gradient(180deg, #4b5047 0%, #343832 58%, #76543a 59%, #3f3023 100%);
}
.coffee-safe {
  background: rgba(71, 191, 123, .24);
}
.mail-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.05)),
    rgba(239, 227, 206, .10);
}
.mail-card.vip {
  border-color: rgba(246, 201, 107, .86);
  box-shadow: 0 0 0 2px rgba(246, 201, 107, .10);
}
.mail-card.junk {
  border-color: rgba(155, 123, 215, .86);
}
@media (max-width: 430px) {
  #mg-layer {
    padding-left: 8px;
    padding-right: 8px;
  }
  .mg-box.mg-app {
    width: calc(100vw - 16px);
    min-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  }
}

/* v122.1 成就提示轻量化：避开 HUD，减少移动端遮挡 */
#ach-pop {
  top: calc(76px + env(safe-area-inset-top));
  width: min(360px, calc(100vw - 24px));
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.08)),
    rgba(44, 37, 16, .94);
  border: 1px solid rgba(246, 201, 107, .65);
  box-shadow: 0 12px 34px rgba(0,0,0,.46);
  backdrop-filter: blur(10px);
}
#ach-pop .ap-icon {
  font-size: 25px;
}
#ach-pop .ap-head {
  font-size: 10px;
  letter-spacing: 1px;
}
#ach-pop .ap-name {
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================================
   v123 精品操作层：日程牌工作台
   ============================================================ */
.actions.op-desk {
  display: block;
  margin-top: 0;
}
.op-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.op-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 227, 206, .10);
  border-radius: 14px;
  background: rgba(10, 12, 17, .34);
}
.op-top span {
  color: var(--paper);
  font-size: 14px;
  font-weight: 900;
}
.op-top b {
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.op-hand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.op-card {
  position: relative;
  min-height: 148px;
  padding: 10px 9px 9px;
  border: 1px solid rgba(239, 227, 206, .11);
  border-bottom-width: 4px;
  border-radius: 16px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.12)),
    rgba(34, 40, 55, .94);
  box-shadow: 0 10px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  text-align: left;
  touch-action: manipulation;
  transition: transform .08s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.op-card:active {
  transform: translateY(3px) scale(.985);
}
.op-card.selected {
  border-color: rgba(246, 201, 107, .75);
  box-shadow: 0 0 0 2px rgba(246, 201, 107, .15), 0 14px 28px rgba(0,0,0,.28);
  filter: brightness(1.06);
}
.op-card-tag {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--yellow);
  background: rgba(246, 201, 107, .12);
  font-size: 10px;
  font-weight: 900;
}
.op-card-ic {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  font-size: 23px;
  background: rgba(239, 227, 206, .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.op-card-name {
  display: block;
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
.op-card-desc {
  display: block;
  min-height: 30px;
  margin: 2px 0 6px;
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.35;
}
.op-card-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 10px;
  line-height: 1.45;
}
.op-card-line b {
  color: var(--ink-faint);
  font-weight: 800;
}
.op-risk {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.op-card > .op-risk {
  margin-top: 7px;
}
.op-risk i {
  display: block;
  width: 13px;
  height: 5px;
  border-radius: 99px;
  background: rgba(239, 227, 206, .14);
}
.op-risk i.on {
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  box-shadow: 0 0 8px rgba(246, 201, 107, .22);
}
.op-planner {
  padding: 10px;
  border: 1px solid rgba(239, 227, 206, .10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(12, 14, 19, .42);
}
.op-plan-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "ic name"
    "ic desc";
  column-gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.op-plan-head span {
  grid-area: ic;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(246, 201, 107, .13);
  font-size: 24px;
}
.op-plan-head b {
  grid-area: name;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.2;
}
.op-plan-head small {
  grid-area: desc;
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.25;
}
.op-stances {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.op-stance {
  min-height: 72px;
  padding: 7px 4px;
  border: 1px solid rgba(239, 227, 206, .12);
  border-bottom-width: 3px;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(37, 43, 56, .88);
  text-align: center;
  touch-action: manipulation;
}
.op-stance.on {
  border-color: rgba(71, 191, 123, .7);
  background:
    linear-gradient(180deg, rgba(71,191,123,.28), rgba(0,0,0,.08)),
    rgba(34, 54, 45, .92);
}
.op-stance span,
.op-stance b,
.op-stance small {
  display: block;
}
.op-stance span { font-size: 18px; line-height: 1; margin-bottom: 4px; }
.op-stance b { color: var(--paper); font-size: 12px; line-height: 1.1; }
.op-stance small { color: var(--ink-dim); font-size: 9px; line-height: 1.25; margin-top: 3px; }
.op-forecast {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}
.op-forecast-actions {
  margin: 10px 0 12px;
}
.op-forecast span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--ink-dim);
  background: rgba(239, 227, 206, .08);
  border: 1px solid rgba(239, 227, 206, .08);
  font-size: 11px;
  font-weight: 800;
}
.op-forecast .op-risk {
  padding: 7px 8px;
  justify-content: center;
}
.op-exec {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(246, 201, 107, .45);
  border-bottom-width: 5px;
  border-radius: 16px;
  color: #1b1710;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(0,0,0,.08)),
    var(--yellow);
  box-shadow: 0 12px 22px rgba(0,0,0,.24);
  touch-action: manipulation;
}
.op-exec:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.op-exec span,
.op-exec b {
  display: block;
}
.op-exec span {
  font-size: 11px;
  font-weight: 900;
  opacity: .78;
}
.op-exec b {
  font-size: 18px;
  line-height: 1.15;
}
@media (max-width: 390px) {
  .op-hand {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(158px, 47%);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
  }
  .op-card {
    min-height: 126px;
    padding: 9px 8px 8px;
    scroll-snap-align: start;
  }
  .op-card-desc {
    min-height: 0;
  }
  .op-card-line {
    font-size: 9px;
  }
  .op-planner { padding: 8px; }
  .op-plan-head { margin-bottom: 7px; }
  .op-stances { grid-template-columns: repeat(4, 1fr); }
  .op-stance {
    min-height: 52px;
    display: block;
    padding: 6px 3px;
    text-align: center;
  }
  .op-stance span { margin: 0 0 3px; font-size: 17px; }
  .op-stance b { font-size: 11px; }
  .op-stance small { display: none; }
  .op-forecast { margin: 7px 0; }
  .op-exec { min-height: 52px; }
}

/* ============================================================
   v124 移动端一屏操作：主游戏屏不再上下滑动
   ============================================================ */
@media (max-width: 430px) {
  body.game-active {
    overflow: hidden;
    touch-action: manipulation;
  }
  body.game-active #app {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.game-active .icp {
    display: none;
  }
  body.game-active #btn-mute {
    display: none;
  }
  body.game-active #screen-game.active {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    overflow: hidden;
  }
  body.game-active .hud {
    position: relative;
    margin: 0 8px 4px;
    padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
    border-radius: 0 0 14px 14px;
  }
  body.game-active .hud-day {
    font-size: 13px;
    line-height: 1.15;
  }
  body.game-active .hud-level {
    max-width: 210px;
    font-size: 11px;
    line-height: 1.25;
  }
  body.game-active .hud-right {
    gap: 7px;
  }
  body.game-active .hud-money {
    padding: 4px 8px;
    font-size: 15px;
  }
  body.game-active .hud .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }
  body.game-active .scene-wrap {
    height: clamp(112px, 18.5dvh, 158px);
    padding: 0 10px;
    flex: none;
  }
  body.game-active #scene {
    width: 100%;
    min-height: 100%;
    border-radius: 16px;
  }
  body.game-active .scene-time {
    top: 8px;
    left: 20px;
    max-width: calc(100% - 40px);
    padding: 2px 8px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .daily-chip {
    top: 8px;
    right: 20px;
    max-width: 42%;
    padding: 2px 8px 2px 6px;
    font-size: 11px;
  }
  body.game-active .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px 10px 0;
    min-height: 0;
  }
  body.game-active .stat {
    min-width: 0;
    padding: 4px 5px;
    border-radius: 10px;
  }
  body.game-active .stat-label {
    gap: 4px;
    margin-bottom: 3px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }
  body.game-active .stat-label span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .stat-label b {
    flex: none;
    font-size: 10px;
  }
  body.game-active .stat-bar {
    height: 5px;
    border-radius: 99px;
  }
  body.game-active .quickbar {
    gap: 6px;
    padding: 5px 10px 0;
  }
  body.game-active .qbtn {
    min-height: 38px;
    padding: 5px 2px;
    border-radius: 12px;
    font-size: 12px;
  }
  body.game-active .qbtn .qb-ic {
    font-size: 14px;
  }
  body.game-active .panel {
    min-height: 0;
    margin: 6px 10px 8px;
    padding: 8px;
    overflow: hidden;
  }
  body.game-active .narr {
    min-height: 0;
    max-height: 36px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
  }
  body.game-active .actions.op-desk {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  body.game-active .op-deck {
    height: 100%;
    min-height: 0;
    gap: 6px;
    overflow: hidden;
  }
  body.game-active .op-top {
    flex: none;
    order: 0;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 12px;
  }
  body.game-active .op-top span {
    font-size: 13px;
  }
  body.game-active .op-top b {
    max-width: 58%;
    font-size: 10px;
    line-height: 1.2;
  }
  body.game-active .op-hand {
    flex: 0 0 82px;
    order: 1;
    grid-auto-columns: minmax(104px, 32%);
    gap: 7px;
    padding-bottom: 1px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  body.game-active .op-card {
    min-height: 76px;
    padding: 7px 7px 6px;
    border-radius: 13px;
  }
  body.game-active .op-card-tag {
    right: 6px;
    top: 6px;
    padding: 1px 5px;
    font-size: 9px;
  }
  body.game-active .op-card-ic {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border-radius: 10px;
    font-size: 18px;
  }
  body.game-active .op-card-name {
    max-width: 78px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .op-card-desc,
  body.game-active .op-card-line {
    display: none;
  }
  body.game-active .op-card > .op-risk {
    margin-top: 6px;
  }
  body.game-active .op-risk i {
    width: 11px;
    height: 4px;
  }
  body.game-active .op-planner {
    flex: 1 1 auto;
    order: 2;
    min-height: 0;
    padding: 7px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
  }
  body.game-active .op-plan-head {
    flex: none;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    margin-bottom: 6px;
  }
  body.game-active .op-plan-head span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 19px;
  }
  body.game-active .op-plan-head b {
    font-size: 13px;
  }
  body.game-active .op-plan-head small {
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .op-stances {
    display: none;
    flex: none;
    gap: 5px;
  }
  body.game-active .op-stance {
    min-height: 38px;
    padding: 4px 2px;
    border-radius: 11px;
  }
  body.game-active .op-stance span {
    margin-bottom: 2px;
    font-size: 14px;
  }
  body.game-active .op-stance b {
    font-size: 10px;
  }
  body.game-active .op-stance small {
    display: none;
  }
  body.game-active .op-forecast {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 6px 0;
  }
  body.game-active .op-forecast span {
    min-width: 0;
    min-height: 22px;
    padding: 3px 4px;
    justify-content: center;
    border-radius: 9px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .op-forecast .op-risk {
    padding: 6px 4px;
  }
  body.game-active .op-exec {
    flex: 0 0 44px;
    min-height: 44px;
    margin-top: auto;
    border-radius: 13px;
  }
  body.game-active .op-exec span {
    font-size: 10px;
  }
  body.game-active .op-exec b {
    font-size: 15px;
  }
}

@media (max-width: 430px) and (max-height: 700px) {
  body.game-active .scene-wrap {
    height: clamp(104px, 17dvh, 122px);
  }
  body.game-active .stats {
    gap: 4px;
    padding-top: 5px;
  }
  body.game-active .stat {
    padding: 3px 5px;
  }
  body.game-active .panel {
    margin-top: 5px;
    padding: 7px;
  }
  body.game-active .narr {
    max-height: 32px;
    margin-bottom: 5px;
  }
  body.game-active .op-hand {
    flex-basis: 76px;
  }
  body.game-active .op-card {
    min-height: 70px;
  }
  body.game-active .op-plan-head small {
    display: none;
  }
  body.game-active .op-forecast {
    margin: 5px 0;
  }
  body.game-active .op-exec {
    flex-basis: 42px;
    min-height: 42px;
  }
}

/* ============================================================
   v125 移动端修正：完整场景图 + 真实行动网格
   ============================================================ */
@media (max-width: 430px) {
  body.game-active .scene-wrap {
    height: auto;
    padding: 0 10px;
    overflow: visible;
  }
  body.game-active #scene {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  body.game-active .stats {
    gap: 4px;
    padding-top: 5px;
  }
  body.game-active .stat {
    padding: 3px 5px;
  }
  body.game-active .quickbar {
    padding-top: 5px;
  }
  body.game-active .panel {
    margin: 5px 10px 8px;
    padding: 7px;
  }
  body.game-active .narr {
    max-height: 30px;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.25;
  }
  body.game-active .op-deck {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 5px;
    height: 100%;
  }
  body.game-active .op-top {
    min-height: 28px;
    padding: 4px 8px;
  }
  body.game-active .op-top span {
    font-size: 13px;
  }
  body.game-active .op-top b {
    max-width: 60%;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .op-hand {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    flex: none;
    order: 1;
    gap: 6px;
    height: auto;
    padding: 0;
    overflow: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
  }
  body.game-active .op-deck[data-count="4"] .op-hand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.game-active .op-card {
    min-height: 50px;
    padding: 5px 6px;
    border-radius: 13px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "ic name"
      "ic tag";
    column-gap: 6px;
    align-items: center;
    align-content: center;
    scroll-snap-align: none;
  }
  body.game-active .op-card-ic {
    grid-area: ic;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 10px;
    font-size: 17px;
  }
  body.game-active .op-card-name {
    grid-area: name;
    max-width: none;
    font-size: 13px;
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
  }
  body.game-active .op-card-tag {
    position: static;
    grid-area: tag;
    justify-self: start;
    max-width: 100%;
    padding: 1px 5px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.game-active .op-card-desc,
  body.game-active .op-card-line,
  body.game-active .op-card > .op-risk {
    display: none;
  }
  body.game-active .op-planner {
    order: 2;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    grid-template-rows: auto;
    gap: 6px;
  }
  body.game-active .op-plan-head,
  body.game-active .op-forecast {
    display: none;
  }
  body.game-active .op-stances {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  body.game-active .op-stance {
    min-height: 39px;
    padding: 4px 2px;
    border-radius: 12px;
  }
  body.game-active .op-stance span {
    margin-bottom: 2px;
    font-size: 14px;
  }
  body.game-active .op-stance b {
    font-size: 10px;
  }
  body.game-active .op-exec {
    min-height: 42px;
    flex-basis: auto;
    margin-top: 0;
    border-radius: 13px;
  }
  body.game-active .op-exec b {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  body.game-active .hud-level {
    max-width: 188px;
  }
  body.game-active .op-card {
    min-height: 48px;
    padding: 4px 5px;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 5px;
  }
  body.game-active .op-card-ic {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  body.game-active .op-card-name {
    font-size: 12px;
  }
  body.game-active .op-stance {
    min-height: 36px;
  }
  body.game-active .op-exec {
    min-height: 40px;
  }
}

@media (max-width: 430px) and (min-height: 760px) {
  body.game-active .panel {
    align-self: start;
  }
  body.game-active .op-deck {
    height: auto;
  }
}

/* ============================================================
   v128 茶水间精品小游戏厅
   ============================================================ */
#screen-arcade {
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(13, 14, 16, .78), rgba(13, 15, 20, .92)),
    url('art/bg/chashui_1.jpg?v=107') center/cover no-repeat;
}
#screen-arcade .sub-header {
  backdrop-filter: blur(12px);
}
.arcade-tip {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 18px 12px;
  color: rgba(239, 227, 206, .78);
  line-height: 1.5;
}
.arcade-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  max-width: 760px;
  margin: 0 auto;
  padding: 2px 12px 28px;
}
.arcade-card {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(239, 227, 206, .12);
  border-bottom-width: 4px;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.11)),
    rgba(31, 36, 45, .92);
  box-shadow: 0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.07);
  text-align: left;
  touch-action: manipulation;
}
.arcade-card:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.arcade-card-feature {
  grid-column: 1 / -1;
  min-height: 94px;
  background:
    linear-gradient(135deg, rgba(246,201,107,.20), rgba(71,191,123,.10) 48%, rgba(65,166,246,.12)),
    rgba(26, 31, 39, .95);
  border-color: rgba(246, 201, 107, .38);
}
.arcade-ic {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 8px;
  font-size: 26px;
  flex: none;
}
.arcade-copy {
  min-width: 0;
}
.arcade-kicker,
.arcade-tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 18px;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(246, 201, 107, .12);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.arcade-name {
  margin-top: 4px;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.arcade-card-feature .arcade-name {
  font-size: 17px;
}
.arcade-desc {
  margin-top: 3px;
  color: rgba(239, 227, 206, .68);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.arcade-hi {
  margin-top: 5px;
  min-height: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}
.arcade-app {
  overflow: hidden;
}
.arcade-app .mg-intro,
.arcade-app .mg-result {
  margin: auto 0;
}
.arcade-app .mg-arena,
.arc-rhythm,
.arc-conveyor,
.arc-expense,
.arc-subway {
  border: 1px solid rgba(239, 227, 206, .13);
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(0,0,0,.42), 0 10px 22px rgba(0,0,0,.22);
}
.arc-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 0 8px currentColor;
}

/* 晨会点名:节奏下落 */
.arc-rhythm {
  position: relative;
  height: 264px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(48,55,72,.94), rgba(18,20,28,.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.035) 31px 32px);
}
.arc-lane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.333%;
  border-right: 1px solid rgba(239,227,206,.08);
}
.arc-lane-label {
  position: absolute;
  top: 8px;
  width: 33.333%;
  text-align: center;
  color: rgba(239,227,206,.56);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: none;
}
.arc-hit-zone {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 34px;
  border: 2px solid rgba(246, 201, 107, .78);
  border-radius: 8px;
  background: rgba(246, 201, 107, .12);
  box-shadow: 0 0 18px rgba(246, 201, 107, .22);
  pointer-events: none;
}
.arc-note {
  position: absolute;
  width: 60px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(239,227,206,.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(0,0,0,.08)),
    rgba(52, 65, 86, .96);
  color: var(--paper);
  text-align: center;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(0,0,0,.32);
  z-index: 5;
}
.arc-note b,
.arc-note span {
  display: block;
}
.arc-note b {
  font-size: 20px;
  line-height: 1.1;
  margin-top: 4px;
}
.arc-note span {
  color: var(--yellow);
  font-size: 11px;
}
.arc-note.ok {
  transform: scale(1.15);
  opacity: 0;
  transition: transform .14s, opacity .14s;
}
.arc-note.miss {
  border-color: var(--red);
  opacity: 0;
  transition: opacity .18s;
}
.arc-rhythm-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* 录工号:流水线 */
.arc-conveyor {
  position: relative;
  height: 270px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(29, 40, 48, .96), rgba(16, 20, 24, .98)),
    repeating-linear-gradient(90deg, rgba(239,227,206,.055) 0 2px, transparent 2px 82px);
}
.arc-conveyor::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: repeating-linear-gradient(90deg, #343a3f 0 28px, #252a2e 28px 56px);
  box-shadow: inset 0 3px 10px rgba(0,0,0,.38);
}
.arc-scanner {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(71, 191, 123, .75);
  border-radius: 8px;
  color: rgba(71,191,123,.95);
  font-size: 12px;
  font-weight: 900;
  background: rgba(71,191,123,.09);
  pointer-events: none;
}
.arc-badge {
  position: absolute;
  width: 78px;
  min-height: 48px;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid rgba(239, 227, 206, .18);
  border-bottom-width: 3px;
  color: #263036;
  background:
    linear-gradient(180deg, #f7f1e4, #d6c8af);
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
  text-align: center;
  touch-action: manipulation;
  z-index: 4;
}
.arc-badge span,
.arc-badge b {
  display: block;
}
.arc-badge span {
  color: #6f776e;
  font-size: 10px;
  font-weight: 800;
}
.arc-badge b {
  font-size: 16px;
  line-height: 1.25;
}
.arc-badge.real {
  border-color: rgba(246, 201, 107, .62);
}
.arc-badge.ok,
.arc-badge.bad {
  opacity: 0;
  transform: scale(1.15);
  transition: transform .16s, opacity .16s;
}
.arc-badge.bad {
  border-color: var(--red);
}

/* 报销核账 */
.arc-expense {
  position: relative;
  min-height: 246px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(63, 57, 47, .95), rgba(24, 26, 25, .98));
}
.arc-expense-desk {
  position: relative;
  min-height: 216px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arc-receipt {
  width: min(92%, 310px);
  min-height: 184px;
  padding: 13px;
  border-radius: 8px;
  color: #28231c;
  background:
    linear-gradient(180deg, #fffaf0, #e7dcc7);
  box-shadow: 0 14px 26px rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.7);
  transition: transform .18s, opacity .18s, filter .18s;
}
.arc-receipt.ok {
  transform: translateX(16px) rotate(3deg);
  filter: saturate(1.1);
}
.arc-receipt.bad {
  transform: translateX(-16px) rotate(-3deg);
  filter: grayscale(.2) sepia(.25);
}
.arc-receipt-top,
.arc-receipt-row,
.arc-receipt-sum {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.arc-receipt-top {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(40,35,28,.28);
  font-size: 13px;
}
.arc-receipt-top span {
  color: #9b3f36;
  font-weight: 900;
}
.arc-receipt-row {
  margin-top: 10px;
  font-size: 14px;
}
.arc-receipt-row b {
  font-variant-numeric: tabular-nums;
}
.arc-receipt-sum {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(40,35,28,.28);
  color: #315c42;
  font-weight: 900;
}
.arc-audit-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* 地铁赶班 */
.arc-subway {
  position: relative;
  height: 270px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(41, 49, 58, .98), rgba(17, 20, 25, .99)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(239,227,206,.035) 34px 35px);
}
.arc-track-line {
  position: absolute;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: rgba(239,227,206,.09);
}
.arc-train-door {
  position: absolute;
  top: 8px;
  left: 16px;
  right: 16px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(65,166,246,.24), rgba(65,166,246,.08));
  border: 1px solid rgba(65,166,246,.32);
  font-size: 13px;
  font-weight: 900;
}
.arc-runner {
  position: absolute;
  bottom: 16px;
  width: 33.333%;
  text-align: center;
  font-size: 30px;
  transform: none;
  transition: left .12s, transform .12s;
  z-index: 6;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.5));
}
.arc-obstacle {
  position: absolute;
  width: 33.333%;
  text-align: center;
  font-size: 28px;
  z-index: 5;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.45));
}
.arc-obstacle.good {
  color: var(--yellow);
}
.arc-obstacle.bad {
  color: var(--red);
}
.arc-run-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(239,227,206,.13);
}
.arc-run-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  box-shadow: 0 0 10px rgba(246,201,107,.35);
}

@media (max-width: 430px) {
  .arcade-grid {
    grid-template-columns: 1fr;
    padding: 2px 10px 24px;
  }
  .arcade-card {
    min-height: 82px;
  }
  .arcade-card-feature {
    min-height: 90px;
  }
  .arcade-desc {
    -webkit-line-clamp: 1;
  }
  .arc-rhythm,
  .arc-conveyor,
  .arc-subway {
    height: 252px;
  }
  .arc-expense {
    min-height: 232px;
    padding: 10px;
  }
  .arc-expense-desk {
    min-height: 202px;
  }
}
