/* 零钱柜台 · 晚高峰收银模拟经营 */
:root {
  --orange: #FF8A3D;
  --orange-2: #FF6A18;
  --orange-deep: #C9560D;
  --gold: #FFC63F;
  --gold-deep: #D89400;
  --cream: #FFF7EC;
  --cream-2: #FFEFD9;
  --paper: #FFFDF8;
  --ink: #34200F;
  --ink-2: #7B6150;
  --ink-3: #A88D77;
  --navy: #10263F;
  --navy-2: #091829;
  --line: #F0DCC3;
  --blue: #2FA2FF;
  --green: #57C934;
  --purple: #8B63F6;
  --teal: #1FC8C2;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #150a05;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
button:disabled { cursor: default; }
b, strong { font-weight: 900; }
em { font-style: normal; }
i { font-style: normal; }
p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  background: #170b05;
  box-shadow: 0 0 90px rgba(0, 0, 0, .65);
}

/* ============================================================
   首页背景
   ============================================================ */
.bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  background: #2A170C;
}
.bg::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: #2A170C url("images/gen/counter-cashier.jpg") center top / cover no-repeat;
  filter: blur(16px) brightness(.55) saturate(1.1);
}
.bg img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  top: 0;
  left: 0;
  filter: saturate(1.04) contrast(1.01);
}
.bg-shade {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 6, 2, .76) 0%, rgba(14, 6, 2, .44) 8%, rgba(14, 6, 2, .08) 24%, rgba(14, 6, 2, 0) 42%, rgba(18, 9, 4, .24) 58%, rgba(20, 10, 5, .92) 78%, #170b05 100%);
}

.home {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home::-webkit-scrollbar { display: none; }

/* ============================================================
   顶部 HUD
   ============================================================ */
.hud {
  position: relative;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: calc(8px + var(--safe-top)) 12px 0;
}
.player {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: none;
}
.avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(140deg, #FFE082, #FF9A3C 55%, #F26612);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18) inset;
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(40, 20, 8, .85);
  background-color: #E8BE9B;
  background-image: url("images/gen/cashier-avatar.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 38%;
  overflow: hidden;
}
.avatar-lv {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background: linear-gradient(180deg, #FFB247, #F06A0E);
  border: 1.5px solid #2A1509;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.player-meta { min-width: 0; }
.p-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
}
.p-name-row b {
  display: block;
  max-width: 74px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #FFF8EE;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}
.role-chip {
  flex: none;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 138, 61, .25);
  border: 1px solid rgba(255, 175, 110, .55);
  color: #FFD2A8;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
}
.p-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.p-sub > span:first-child {
  color: #FFD36B;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2px;
}
.xp-track {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
  overflow: hidden;
}
.xp-track i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFD25C, #FF9A22);
  box-shadow: 0 0 6px rgba(255, 190, 70, .8);
}
.wallet {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: none;
}
.cur {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 31, 43, .82), rgba(8, 16, 25, .86));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .09) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.cur .mp-icon { width: 14px; height: 14px; }
.cur b {
  color: #FFF8EC;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.cur.coin .mp-icon { color: #FFC63F; filter: drop-shadow(0 0 4px rgba(255, 190, 50, .45)); }
.cur.gem .mp-icon { color: #6FC8FF; filter: drop-shadow(0 0 4px rgba(90, 190, 255, .45)); }

.round-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(30, 42, 55, .86), rgba(8, 15, 23, .9));
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .1) inset;
  color: #FFD7AE;
  transition: transform .12s ease, filter .12s ease;
}
.round-btn .mp-icon { width: 17px; height: 17px; }
.round-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.round-btn:active { transform: scale(.9); filter: brightness(1.15); }
.round-btn.on-dark { background: linear-gradient(180deg, rgba(28, 40, 52, .88), rgba(8, 15, 23, .92)); color: #FFE3C4; }
.round-btn.light {
  background: linear-gradient(180deg, #FFF9EF, #FFE8CB);
  border-color: #F3D3AE;
  color: #6D4527;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

/* ============================================================
   首页挑战卡
   ============================================================ */
.hero {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-height: 155px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 320px;
  height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 145, 60, .28) 0%, rgba(255, 145, 60, 0) 70%);
  filter: blur(6px);
}
.challenge-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  padding: 11px 13px 10px;
  border-radius: 18px;
  pointer-events: auto;
  background:
    radial-gradient(120% 160% at 12% -30%, rgba(66, 143, 199, .42) 0%, rgba(66, 143, 199, 0) 58%),
    linear-gradient(155deg, rgba(23, 52, 82, .96) 0%, rgba(11, 29, 49, .97) 58%, rgba(9, 22, 39, .98) 100%);
  border: 1.5px solid rgba(96, 190, 255, .55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07) inset,
    0 12px 26px rgba(0, 0, 0, .42),
    0 0 26px rgba(55, 160, 235, .2);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  overflow: hidden;
}
.challenge-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.challenge-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -24px;
  height: 30px;
  border-radius: 50%;
  background: rgba(74, 180, 255, .3);
  filter: blur(14px);
  pointer-events: none;
}
.challenge-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cc-moon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 206, 95, .2), rgba(255, 168, 40, .06));
  border: 1px solid rgba(255, 208, 110, .35);
}
.cc-moon .mp-icon {
  width: 21px;
  height: 21px;
  color: #FFD25C;
  filter: drop-shadow(0 0 6px rgba(255, 200, 60, .5));
}
.cc-title h1 {
  color: #FFD25C;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .45);
}
.cc-title p {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  color: #A9CBE8;
  font-size: 10px;
  font-weight: 700;
}
.cc-title p .mp-icon { width: 11px; height: 11px; color: #8FC2EB; }
.cc-shift {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 208, 100, .15);
  border: 1px solid rgba(255, 208, 100, .38);
  color: #FFDE94;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3px;
}
.cc-goal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}
.cc-goal-copy > span {
  display: block;
  color: #9FC2DE;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2px;
}
.cc-goal-val {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.cc-goal-val .mp-icon {
  width: 17px;
  height: 17px;
  color: #FFD05A;
  filter: drop-shadow(0 0 5px rgba(255, 190, 50, .45));
}
.cc-goal-val b {
  color: #FFE39A;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .3px;
  text-shadow: 0 2px 0 rgba(90, 52, 0, .5), 0 0 12px rgba(255, 190, 50, .3);
}
.cc-progress-wrap {
  width: 96px;
  flex: none;
  padding-bottom: 2px;
}
.cc-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .46);
  box-shadow: 0 0 0 1px rgba(140, 200, 255, .16) inset;
  overflow: hidden;
}
.cc-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8ED84D, #D7F36B);
  box-shadow: 0 0 8px rgba(160, 230, 90, .7);
  transition: width .5s ease;
}
.cc-progress-wrap em {
  display: block;
  margin-top: 3px;
  color: #B9DDF7;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}
.cc-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(120, 175, 220, .18);
  color: #93B5D0;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.cc-meta span { display: flex; align-items: center; gap: 3px; }
.cc-meta .mp-icon { width: 11px; height: 11px; color: #86B4D6; }
.cc-meta span:last-child { color: #FFB8A0; }
.cc-meta span:last-child .mp-icon { color: #FF9A7C; }
.cc-start {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFB45E 0%, #FF8A3D 48%, #F26A0D 100%);
  border: 1px solid #FFD09B;
  box-shadow: 0 3px 0 #A94605, 0 7px 15px rgba(255, 110, 20, .35), 0 1px 0 rgba(255, 255, 255, .45) inset;
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 45, 0, .45);
  animation: ctaBreath 2.6s ease-in-out infinite;
}
.cc-start .mp-icon { width: 17px; height: 17px; }
.cc-start span { font-size: 14px; font-weight: 900; letter-spacing: 1px; }
.cc-start em {
  color: rgba(255, 244, 228, .88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2px;
}
.cc-start:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #A94605, 0 3px 8px rgba(255, 110, 20, .3);
  animation: none;
}
@keyframes ctaBreath {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

/* ============================================================
   底部操作面板
   ============================================================ */
.sheet {
  position: relative;
  z-index: 4;
  flex: none;
  margin-top: auto;
  padding: 7px 14px calc(8px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 140, 60, .13) 0%, rgba(255, 140, 60, 0) 70%),
    linear-gradient(180deg, #2A170D 0%, #1E1009 42%, #170B06 100%);
  border-top: 1px solid rgba(255, 174, 100, .28);
  box-shadow: 0 -18px 38px rgba(0, 0, 0, .48), 0 1px 0 rgba(255, 205, 150, .13) inset;
}
.sheet-grip {
  width: 32px;
  height: 3.5px;
  margin: 0 auto 5px;
  border-radius: 99px;
  background: rgba(255, 195, 140, .28);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 7px;
}
.sh-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.sh-title b {
  color: #FFF5E8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .4px;
}
.sh-title span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #A98F7C;
  font-size: 9.5px;
  font-weight: 600;
}
.shift-chip {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 158, 76, .12);
  border: 1px solid rgba(255, 158, 76, .28);
  color: #FFC28D;
  font-size: 9px;
  font-weight: 800;
}

.entries {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.entry {
  --c1: #56C3FF;
  --c2: #137DE0;
  --deep: #0B5AA8;
  --ico: #1677D2;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 57px;
  padding: 0 10px;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow:
    0 4px 0 var(--deep),
    0 8px 14px rgba(0, 0, 0, .32),
    0 1px 0 rgba(255, 255, 255, .34) inset;
  transition: transform .1s ease, box-shadow .1s ease, filter .1s ease;
}
.entry::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 48%;
  border-radius: 13px 13px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.entry::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.entry:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--deep), 0 3px 7px rgba(0, 0, 0, .3);
  filter: brightness(1.04);
}
.entry-ico {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF, #FFF0DC);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2), 0 1px 0 #fff inset;
  color: var(--ico);
}
.entry-ico .mp-icon { width: 22px; height: 22px; }
.entry-txt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.entry-txt b {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .6px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .32);
}
.entry-txt em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .82);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.entry-go {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
}
.entry-go .mp-icon { width: 16px; height: 16px; }

.e-green { --c1: #9BE45A; --c2: #4DBC2B; --deep: #2D8A13; --ico: #3C9E1B; }
.e-yellow { --c1: #FFD45A; --c2: #F3A300; --deep: #B97700; --ico: #C78500; }
.e-purple { --c1: #B18CFF; --c2: #7B4DE8; --deep: #5429B8; --ico: #7040D8; }
.e-teal { --c1: #57E2DA; --c2: #10A8B8; --deep: #067889; --ico: #0B9AA8; }

.statusbar {
  display: grid;
  grid-template-columns: 0.95fr 0.95fr 1.45fr 1fr;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 7px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .2));
  border: 1px solid rgba(255, 190, 130, .13);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 1px 2px;
}
.stat > .mp-icon {
  flex: none;
  width: 15px;
  height: 15px;
  color: #FFC36B;
  filter: drop-shadow(0 0 4px rgba(255, 170, 60, .3));
}
.stat > div { min-width: 0; }
.stat span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #B99B86;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.15;
}
.stat b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #FFF6EA;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .2px;
}
.stat.prog {
  display: block;
  padding: 0 2px;
}
.prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.prog-top span { font-size: 8px; }
.prog-top b { color: #D8F19A; font-size: 10px; }
.st-track {
  height: 4px;
  margin-top: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
  overflow: hidden;
}
.st-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8CDB45, #D6F46B);
  box-shadow: 0 0 6px rgba(150, 230, 80, .55);
  transition: width .5s ease;
}

/* ============================================================
   游戏画面
   ============================================================ */
.game-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1A0D07;
}
.game-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.game-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 40%;
  filter: blur(9px) brightness(.42) saturate(1.15);
  transform: scale(1.16);
}
.game-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 42% at 50% 20%, rgba(255, 144, 64, .16) 0%, rgba(255, 144, 64, 0) 70%),
    linear-gradient(180deg, rgba(12, 6, 3, .52) 0%, rgba(15, 8, 4, .36) 36%, rgba(14, 7, 3, .85) 76%, #160a05 100%);
}
.game-top {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(8px + var(--safe-top)) 12px 0;
}
.g-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 37, 49, .88), rgba(8, 15, 23, .92));
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.g-pill .mp-icon { width: 14px; height: 14px; color: #FFC96E; }
.g-pill b {
  color: #FFF8ED;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
}
.g-hearts {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding-right: 2px;
}
.g-hearts .mp-icon {
  width: 17px;
  height: 17px;
  color: #FF6B58;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  transition: color .2s ease, transform .2s ease;
}
.g-hearts .mp-icon.lost { color: rgba(255, 255, 255, .2); transform: scale(.86); }

/* 本班营收目标 */
.shift-goal {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  margin: 7px 14px 0;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 37, 49, .8), rgba(8, 15, 23, .86));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .26);
}
.sg-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #A8C4DB;
  font-size: 8.5px;
  font-weight: 700;
}
.sg-label .mp-icon { width: 11px; height: 11px; color: #FFD26A; }
.sg-label b { color: #FFE19B; font-size: 9px; font-weight: 900; }
.sg-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .46);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
  overflow: hidden;
}
.sg-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFB14E, #FFE06A);
  box-shadow: 0 0 7px rgba(255, 200, 80, .55);
  transition: width .45s ease;
}
.sg-revenue {
  flex: none;
  min-width: 52px;
  color: #FFF6E7;
  font-size: 10.5px;
  font-weight: 900;
  text-align: right;
  letter-spacing: .2px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.game-scene {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 122px;
  padding: 2px 16px 0;
}
.queue-bubble {
  position: absolute;
  top: 0;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(10, 20, 30, .66);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #C9DFF0;
  font-size: 8.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.queue-bubble .mp-icon { width: 11px; height: 11px; color: #8FC4E8; }
.queue-bubble b { color: #FFD26A; font-size: 11px; font-weight: 900; margin: 0 1px; }
.cust-wrap {
  position: relative;
  flex: none;
  width: 96px;
  height: 110px;
  margin-top: 10px;
}
.cust {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.cust svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .38));
}
.cust-shadow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 68px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .36);
  filter: blur(4px);
}
.cust .face { display: none; }
.cust[data-face="neutral"] .face-neutral { display: block; }
.cust[data-face="happy"] .face-happy { display: block; }
.cust[data-face="sad"] .face-sad { display: block; }
.cust-wrap.enter { animation: custEnter .34s cubic-bezier(.2, .9, .3, 1.3); }
.cust-wrap.happy { animation: custHappy .4s ease; }
.cust-wrap.sad { animation: custSad .4s ease; }
@keyframes custEnter {
  0% { opacity: 0; transform: translateX(34px) scale(.92); }
  100% { opacity: 1; transform: none; }
}
@keyframes custHappy {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-9px) scale(1.03); }
  70% { transform: translateY(-3px); }
}
@keyframes custSad {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}
.speech {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 232px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(180deg, #FFFDF6, #FFF2DD);
  color: #4A2C17;
  font-size: 12.5px;
  line-height: 1.42;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.speech::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 9px;
  width: 13px;
  height: 13px;
  background: #FFF4E2;
  transform: rotate(45deg);
  border-radius: 2px;
}
.speech b { color: #E85D1A; font-weight: 900; }

.register {
  position: relative;
  z-index: 3;
  flex: none;
  margin: 5px 14px 0;
  padding: 7px;
  border-radius: 17px;
  background: linear-gradient(180deg, #352218 0%, #20120B 58%, #180D08 100%);
  border: 1px solid rgba(255, 184, 116, .27);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .36), 0 1px 0 rgba(255, 205, 160, .14) inset;
}
.reg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 5px;
}
.reg-head span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFCB93;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
}
.reg-head .mp-icon { width: 13px; height: 13px; }
.reg-head em {
  color: #9E7C63;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}
.reg-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 124px;
  max-height: 198px;
  padding: 7px 9px 6px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%),
    #FFFDF6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25) inset, 0 0 0 2px rgba(255, 255, 255, .12);
  overflow: hidden;
}
.reg-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(120, 85, 50, 0) 0 22px, rgba(120, 85, 50, .035) 22px 23px);
}
.reg-items {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.reg-items::-webkit-scrollbar { display: none; }
.reg-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 3px 0;
  border-bottom: 1px dashed #EDDCC7;
  color: #5B4030;
  font-size: 11px;
  font-weight: 600;
}
.reg-item:last-child { border-bottom: 0; }
.reg-item .gi {
  flex: none;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--gc, #FFDBAF);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.reg-item .gi .mp-icon { width: 13px; height: 13px; }
.reg-item .gname {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.reg-item .gqty { color: #A88D77; font-size: 9px; font-weight: 700; }
.reg-item .gprice {
  margin-left: auto;
  flex: none;
  color: #4A2F1C;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
}
.reg-empty {
  padding: 18px 0;
  color: #B49B86;
  font-size: 11px;
  text-align: center;
}
.reg-sum {
  position: relative;
  z-index: 1;
  flex: none;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1.5px solid #E7D1B6;
}
.reg-sum > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
  color: #8A705C;
  font-size: 10px;
  font-weight: 600;
}
.reg-sum > div b {
  color: #5E4230;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}
.reg-sum .discount-row { color: #3C9E1B; }
.reg-sum .discount-row b { color: #3C9E1B; }
.reg-sum .due-row {
  align-items: center;
  margin-top: 1px;
  padding-top: 2px;
  border-top: 1px dashed #E7D1B6;
  color: #4A2F1C;
  font-size: 11px;
  font-weight: 800;
}
.reg-sum .due-row b {
  color: #E85D1A;
  font-size: 21px;
  letter-spacing: -.3px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.reg-sum .due-row.pending b { color: #B79D86; font-size: 17px; }
.patience {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 3px 0;
}
.pat-label {
  flex: none;
  color: #C49D80;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
}
.pat-track {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .45);
  overflow: hidden;
}
.pat-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7ADBB7, #B5F0D5);
  transition: width .2s linear, background .3s ease;
}
.pat-track i.warn { background: linear-gradient(90deg, #FFB14E, #FFD584); }
.pat-track i.low { background: linear-gradient(90deg, #EF5A48, #FF9B8C); animation: patPulse .7s infinite alternate; }
@keyframes patPulse { from { opacity: .65; } to { opacity: 1; } }

.step-area {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 9px 14px calc(9px + var(--safe-bottom));
  scrollbar-width: none;
}
.step-area::-webkit-scrollbar { display: none; }
.game-footmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  color: rgba(255, 221, 190, .2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.game-footmark .mp-icon { width: 11px; height: 11px; }
.game-footmark em { color: rgba(255, 221, 190, .14); font-style: normal; }

/* ============================================================
   游戏步骤卡片
   ============================================================ */
.step-card {
  position: relative;
  padding: 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF9EF 0%, #FFF0DC 100%);
  border: 1px solid #F0D8BC;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .9) inset;
  animation: stepIn .24s ease;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.step-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #A87B54;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}
.step-kicker .mp-icon { width: 13px; height: 13px; color: #E28A3A; }
.step-lead {
  margin-top: 3px;
  color: #3A2415;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}
.step-lead small { color: #9A7B60; font-size: 10px; font-weight: 700; }

/* 扫码录入 */
.scan-counter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.scan-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 49px;
  padding: 6px 8px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF, #FFF7EB);
  border: 1.5px dashed #E4C7A3;
  box-shadow: 0 2px 0 #E6CFB4;
  text-align: left;
  transition: transform .1s ease, border-color .2s ease, background .2s ease;
}
.scan-item:active { transform: translateY(2px); box-shadow: 0 0 0 #E6CFB4; }
.si-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gc, #FFDBAF);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 1px 0 rgba(255, 255, 255, .3) inset;
}
.si-ico .mp-icon { width: 20px; height: 20px; }
.si-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.si-txt b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #4A2F1D;
  font-size: 12.5px;
  font-weight: 800;
}
.si-txt em { color: #A8896F; font-size: 8.5px; font-weight: 600; }
.si-price {
  flex: none;
  color: #5C402C;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}
.si-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #FFF0D9;
  color: #D98D35;
}
.si-mark .mp-icon { width: 17px; height: 17px; }
.scan-item.done {
  background: linear-gradient(180deg, #F2FFE9, #E1F7D3);
  border-style: solid;
  border-color: #8ED35F;
  box-shadow: 0 2px 0 #A9D98B;
}
.scan-item.done .si-txt b { color: #3C7220; }
.scan-item.done .si-txt em { color: #6E9A53; }
.scan-item.done .si-mark { background: #DDF4CB; color: #3C9E1B; }
.scan-item.done .si-price { color: #3C7220; }
.scan-done {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(120deg, #EDFFE6, #D8F8CC);
  border: 1px solid #8ED35F;
  color: #2F7416;
  font-size: 11px;
  font-weight: 700;
}
.scan-done .mp-icon { flex: none; width: 17px; height: 17px; color: #3C9E1B; }
.scan-done b { color: #1F5C0C; font-size: 13px; font-weight: 900; }

.coupon-quote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: linear-gradient(120deg, #FFF1D9, #FFE7C4);
  border: 1px dashed #E6B16A;
}
.coupon-quote > .mp-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: #E26D12;
  filter: drop-shadow(0 1px 0 #fff);
}
.coupon-quote b { display: block; color: #8A440C; font-size: 13px; font-weight: 900; }
.coupon-quote span { display: block; margin-top: 1px; color: #A87948; font-size: 9px; font-weight: 600; }

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 7px 4px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF, #FFF5E7);
  border: 1.5px solid #ECD5B8;
  box-shadow: 0 2px 0 #DCC0A0;
  color: #4C3120;
  font-size: 12.5px;
  font-weight: 900;
  text-align: center;
  transition: transform .1s ease, background .15s ease;
}
.opt small {
  color: #A1836B;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.25;
}
.opt:active { transform: translateY(2px); box-shadow: 0 0 0 #DCC0A0; }
.opt.correct {
  background: linear-gradient(180deg, #EDFFE6, #D8F8CC);
  border-color: #57C934;
  color: #2C7C13;
  box-shadow: 0 2px 0 #3E9C22;
}
.opt.correct small { color: #4D8E36; }
.opt.wrong {
  background: linear-gradient(180deg, #FFECE7, #FFD9D0);
  border-color: #E9604C;
  color: #B13222;
  animation: shake .34s ease;
}
.opt:disabled { opacity: 1; }
.opt.dim { opacity: .46; filter: grayscale(.3); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

.due-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, #FFF3DF, #FFE4BE);
  border: 1px solid #F0C995;
}
.due-callout span { color: #8E6A4B; font-size: 10px; font-weight: 700; }
.due-callout b {
  color: #E85D1A;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.5px;
}
.due-callout b small { font-size: 12px; margin-left: 2px; }

/* 本单结算小票 */
.settle-card { background: linear-gradient(180deg, #FFFDF6 0%, #FFF4E3 100%); }
.settle-lines {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px dashed #E5CDAF;
}
.settle-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 19px;
  color: #8B705A;
  font-size: 10px;
  font-weight: 700;
}
.settle-lines > div b {
  color: #4A2F1C;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}
.settle-lines > div.minus b { color: #3C9E1B; }

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFA957 0%, #FF7A1D 55%, #F2660C 100%);
  border: 1px solid #FFBE7C;
  box-shadow: 0 4px 0 #B84B07, 0 8px 16px rgba(190, 75, 5, .35), 0 1px 0 rgba(255, 255, 255, .45) inset;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(120, 45, 0, .4);
  transition: transform .1s ease, box-shadow .1s ease;
}
.primary-btn .mp-icon { width: 19px; height: 19px; }
.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #B84B07, 0 3px 8px rgba(190, 75, 5, .3);
}
.primary-btn[disabled] {
  opacity: .42;
  filter: grayscale(.35);
  box-shadow: 0 4px 0 #6E4B32;
}
.step-actions { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid #E7CFB3;
  box-shadow: 0 2px 0 #D9BE9E;
  color: #72533C;
  font-size: 13px;
  font-weight: 800;
}
.ghost-btn .mp-icon { width: 17px; height: 17px; }
.ghost-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #D9BE9E; }
.ghost-btn.on-dark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  color: #D9C4B2;
}
.ghost-btn.danger { color: #E26752; border-color: #F0C5B9; background: #FFF4F0; }

/* 付款 / 找零 */
.pay-summary {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-top: 7px;
}
.cash-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 7px 10px;
  border-radius: 11px;
  background: linear-gradient(140deg, #A8D8A0 0%, #86C77A 100%);
  border: 1px solid #6EAE62;
  box-shadow: 0 2px 0 #5C9550, 0 1px 0 rgba(255, 255, 255, .35) inset;
  color: #23481B;
}
.cash-tile span { font-size: 8.5px; font-weight: 800; letter-spacing: .3px; opacity: .8; }
.cash-tile b {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.3px;
}
.change-tile {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 7px 10px;
  border-radius: 11px;
  background: linear-gradient(140deg, #FFE6AA 0%, #FFD25E 100%);
  border: 1px solid #E8AD2E;
  box-shadow: 0 2px 0 #C88F13, 0 1px 0 rgba(255, 255, 255, .4) inset;
  color: #6A4300;
}
.change-tile span { font-size: 8.5px; font-weight: 800; letter-spacing: .3px; opacity: .8; }
.change-tile b {
  color: #B04A00;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.change-tray {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 36px;
  margin-top: 7px;
  padding: 5px 7px;
  border-radius: 10px;
  background: #F9EAD5;
  border: 1px dashed #E3C49E;
}
.change-tray .empty {
  color: #B0947B;
  font-size: 9.5px;
  font-weight: 600;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFF9EE, #FFE4BE);
  border: 1px solid #E8B97C;
  box-shadow: 0 1px 0 #D5A363;
  color: #8B4A0A;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 900;
}
.change-total {
  margin-left: auto;
  padding-left: 4px;
  color: #E85D1A;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
}
.money-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 7px;
}
.money-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 46px;
  padding: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #FFFEF9 0%, #F8EAD8 100%);
  border: 1.5px solid var(--mc, #D9BB98);
  box-shadow: 0 2px 0 var(--md, #B99977), 0 1px 0 rgba(255, 255, 255, .9) inset;
  color: #4A3020;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 900;
  transition: transform .08s ease, filter .08s ease;
}
.money-btn .val { font-size: 14px; line-height: 1.05; letter-spacing: -.3px; }
.money-btn .unit { font-size: 8px; line-height: 1; color: #9B7B5E; font-weight: 700; }
.money-btn::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 4px;
  height: 2px;
  border-radius: 99px;
  background: var(--mc, #D9BB98);
  opacity: .65;
}
.money-btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--md, #B99977); filter: brightness(1.04); }
.money-btn.undo {
  --mc: #D8C3AD;
  --md: #B69E86;
  background: linear-gradient(180deg, #FFF8EF, #F2E1CF);
}
.money-btn.undo .mp-icon { width: 19px; height: 19px; color: #8A6A50; }
.money-btn.undo em { margin-top: 1px; color: #8A6A50; font-family: inherit; font-size: 8.5px; font-weight: 800; }

.scan-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 9px;
  border-radius: 12px;
  background: linear-gradient(120deg, #F2FAFF, #E3F3FF);
  border: 1px solid #C3E2F7;
}
.qr {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, #12314A 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, #12314A 0 4px, transparent 4px 8px),
    #fff;
  background-blend-mode: multiply;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px #C3E2F7, 0 3px 7px rgba(30, 90, 130, .12);
}
.scan-copy { flex: 1; min-width: 0; }
.scan-copy b { display: block; color: #174A68; font-size: 12.5px; font-weight: 900; }
.scan-copy span { display: block; margin-top: 2px; color: #6C93A9; font-size: 9px; font-weight: 600; }
.scan-copy em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #D6EFFF;
  color: #1C79A8;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

/* 退款 */
.refund-box {
  margin-top: 7px;
  padding: 8px 9px;
  border-radius: 11px;
  background: #F6EADB;
  border: 1px dashed #DCC1A1;
}
.refund-box .rb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #7E6048;
  font-size: 9px;
  font-weight: 700;
}
.refund-box .rb-head b { color: #E85D1A; font-size: 12px; }
.refund-box .rb-items {
  margin-top: 4px;
  color: #5C3C26;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}
.refund-box .rb-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.refund-box .rb-item b {
  color: #33200F;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 800;
}
.refund-box .rb-math {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dashed #D9BB98;
  color: #9A7654;
  font-size: 8.5px;
  line-height: 1.5;
}
.refund-box .rb-math b { color: #B05212; }

.tip-line {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 7px;
  color: #9B7C62;
  font-size: 9px;
  line-height: 1.45;
}
.tip-line .mp-icon { flex: none; width: 12px; height: 12px; margin-top: 1px; color: #D8994F; }

/* ============================================================
   通用弹层
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(10, 5, 2, .7);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .18s ease;
}
#ov-pause { z-index: 60; }
#ov-keypad { z-index: 72; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 390px;
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFBF3 0%, #FFF2DF 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .9) inset;
  animation: modalIn .26s cubic-bezier(.2, .9, .25, 1.15);
  scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.modal h2 {
  color: #38200E;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .4px;
}
.eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #C57B38;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.lead {
  margin-top: 8px;
  color: #7E6250;
  font-size: 12px;
  line-height: 1.6;
}
.lead strong { color: #D95B18; }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.x-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F4E3D0;
  border: 1px solid #E6CDB1;
  color: #8A6A50;
}
.x-btn .mp-icon { width: 17px; height: 17px; }
.x-btn:active { transform: scale(.92); }

/* 开始营业 */
.start-modal {
  overflow: hidden auto;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(58, 139, 200, .38) 0%, rgba(58, 139, 200, 0) 58%),
    linear-gradient(160deg, #1B3A57 0%, #0D2036 58%, #091625 100%);
  border: 1px solid rgba(100, 195, 255, .4);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.start-modal::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 200, 90, .14);
  filter: blur(30px);
  pointer-events: none;
}
.start-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
}
.start-moon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 208, 90, .24), rgba(255, 160, 40, .06));
  border: 1px solid rgba(255, 210, 110, .4);
  box-shadow: 0 0 18px rgba(255, 190, 70, .18);
}
.start-moon .mp-icon {
  width: 30px;
  height: 30px;
  color: #FFD25C;
  filter: drop-shadow(0 0 8px rgba(255, 200, 70, .5));
}
.start-hero-txt .eyebrow { color: #8FC5E8; }
.start-hero-txt h2 {
  color: #FFD25C;
  font-size: 27px;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.start-hero-txt p {
  margin-top: 3px;
  color: #B4D2E8;
  font-size: 11px;
  font-weight: 600;
}
.start-goal {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.start-goal > div {
  flex: 1;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
}
.start-goal span { display: block; color: #91B6D2; font-size: 8.5px; font-weight: 700; }
.start-goal b {
  display: block;
  margin-top: 1px;
  color: #FFE19A;
  font-size: 17px;
  font-weight: 900;
}
.start-goal > div:last-child b { color: #B8E7B4; font-size: 15px; }
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}
.rule-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 4px;
  border-radius: 10px;
  background: rgba(6, 18, 30, .38);
  border: 1px solid rgba(110, 180, 235, .16);
}
.rule-grid .mp-icon { width: 15px; height: 15px; color: #7FC4F2; }
.rule-grid b { color: #FFF6E8; font-size: 13px; font-weight: 900; }
.rule-grid span { color: #8AAEC7; font-size: 8px; font-weight: 600; }
.rule-grid > div:nth-child(2) .mp-icon { color: #FF9A7C; }
.rule-grid > div:nth-child(3) .mp-icon { color: #FFCF62; }
.start-steps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.start-steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
}
.start-steps em {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 7px;
  background: linear-gradient(180deg, #FFB24E, #EF6C0D);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.start-steps b { display: block; color: #F1E6D9; font-size: 11.5px; font-weight: 800; }
.start-steps span { display: block; margin-top: 1px; color: #8FB1C7; font-size: 9px; line-height: 1.4; }
.start-modal .primary-btn { margin-top: 12px; }
.start-modal .ghost-btn { margin-top: 7px; }

/* 暂停 */
.pause-modal {
  max-width: 340px;
  text-align: center;
  background:
    radial-gradient(100% 70% at 50% -10%, rgba(255, 160, 80, .1) 0%, rgba(255, 160, 80, 0) 70%),
    linear-gradient(170deg, #24394B 0%, #122232 60%, #0B1722 100%);
  border: 1px solid rgba(130, 190, 235, .25);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .7);
}
.modal-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
}
.modal-ico .mp-icon { width: 27px; height: 27px; color: #FFD08A; }
.pause-modal h2 { color: #FFF4E4; font-size: 21px; }
.pause-modal .lead { color: #9DB6C8; margin: 6px 0 13px; font-size: 11px; }
.pause-modal .ghost-btn { margin-top: 7px; }
.pause-modal .ghost-btn.danger { background: rgba(255, 100, 80, .08); border-color: rgba(255, 130, 110, .28); color: #FFA38F; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }

/* ============================================================
   盘点键盘
   ============================================================ */
.keypad-modal {
  max-width: 340px;
  background: linear-gradient(170deg, #24394B 0%, #122232 60%, #0B1722 100%);
  border: 1px solid rgba(130, 190, 235, .25);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .7);
}
.kp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.kp-head span { display: block; color: #8FB1C7; font-size: 10px; font-weight: 700; letter-spacing: .6px; }
.kp-head b {
  display: block;
  margin-top: 1px;
  color: #FFE09A;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.keypad-modal .x-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #CBDCE8;
}
.kp-hint { margin: 2px 0 10px; color: #7795AA; font-size: 9.5px; }
.kp-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.kp-keys button {
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .1) inset;
  color: #F7EEE3;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  transition: transform .08s ease, background .08s ease;
}
.kp-keys button:active { transform: translateY(2px); background: rgba(255, 190, 120, .2); }
.kp-keys .key-del .mp-icon { width: 23px; height: 23px; color: #FFB48A; }
.keypad-modal .primary-btn { margin-top: 11px; }

/* ============================================================
   交班报告
   ============================================================ */
.report-modal {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  padding: 0;
  overflow: hidden;
  background: #FFF9EF;
  border-radius: 22px;
}
.report-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(13px + var(--safe-top)) 16px 12px;
  background:
    radial-gradient(100% 130% at 20% 0%, rgba(255, 170, 80, .16) 0%, rgba(255, 170, 80, 0) 60%),
    linear-gradient(150deg, #1D3954, #0C1D30);
  border-bottom: 1px solid rgba(255, 190, 120, .22);
}
.rep-store { display: flex; align-items: center; gap: 9px; }
.rep-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(180deg, #FFB35C, #E96E12);
  box-shadow: 0 3px 0 #A94807, 0 1px 0 rgba(255, 255, 255, .4) inset;
  color: #fff;
}
.rep-logo .mp-icon { width: 21px; height: 21px; }
.rep-store b { display: block; color: #FFF6E8; font-size: 15px; font-weight: 900; letter-spacing: .6px; }
.rep-store span { display: block; margin-top: 1px; color: #8FB3CC; font-size: 9px; font-weight: 600; letter-spacing: .4px; }
.rep-stamp {
  flex: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 200, 110, .1);
  border: 1.5px dashed rgba(255, 200, 110, .5);
  color: #FFD58A;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-5deg);
}
.rep-stamp.pass { color: #B6F08E; border-color: rgba(160, 235, 120, .55); background: rgba(120, 220, 80, .1); }
.rep-stamp.fail { color: #FFA38F; border-color: rgba(255, 140, 110, .55); background: rgba(255, 100, 80, .1); }
.report-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 11px 15px calc(14px + var(--safe-bottom));
  scrollbar-width: none;
}
.report-scroll::-webkit-scrollbar { display: none; }
.rep-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #A0836B;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2px;
}
.rep-meta span:last-child {
  padding: 2px 6px;
  border-radius: 999px;
  background: #F5E4CF;
  color: #9B6B3D;
  font-weight: 800;
}
.rep-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  border-radius: 13px;
  background: #FFFDF8;
  border: 1px solid #EFDAC0;
  box-shadow: 0 4px 10px rgba(150, 100, 55, .07);
  overflow: hidden;
}
.rep-stats > div {
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid #F3E3CF;
}
.rep-stats > div:last-child { border-right: 0; }
.rep-stats span { display: block; color: #A4876E; font-size: 8px; font-weight: 600; }
.rep-stats b {
  display: block;
  margin-top: 2px;
  color: #3B2515;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.2px;
}
.rep-stats b small { color: #A98D75; font-size: 8px; font-weight: 700; }

.rep-grade {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 13px;
  background: linear-gradient(120deg, #F1FFE7, #DFF8D1);
  border: 1px solid #BDE7A6;
  box-shadow: 0 3px 8px rgba(90, 160, 50, .1);
}
.rep-grade.fail {
  background: linear-gradient(120deg, #FFF1EC, #FFE2D9);
  border-color: #F4C2B4;
}
.grade-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #6BC63C;
  box-shadow: 0 3px 8px rgba(90, 160, 50, .18);
}
.rep-grade.fail .grade-ring { border-color: #E9634C; }
.grade-ring b {
  color: #3A941A;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}
.rep-grade.fail .grade-ring b { color: #C8402A; }
.grade-copy b { display: block; color: #2E6C17; font-size: 13px; font-weight: 900; }
.rep-grade.fail .grade-copy b { color: #A93320; }
.grade-copy span { display: block; margin-top: 2px; color: #6C8C5A; font-size: 9px; line-height: 1.4; }
.rep-grade.fail .grade-copy span { color: #9A6A5E; }

.ledger {
  margin-top: 9px;
  padding: 10px 11px 9px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 40%),
    #FFFDF8;
  border: 1px solid #EFDAC0;
  box-shadow: 0 4px 10px rgba(150, 100, 55, .06);
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed #E7D2B8;
  color: #7B5A40;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}
.ledger-head .mp-icon { width: 15px; height: 15px; color: #C08A52; }
.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed #F2E3D1;
  color: #6E513B;
  font-size: 10px;
  font-weight: 600;
}
.ledger-row b {
  color: #3A2515;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 800;
}
.ledger-row.minus b { color: #C4562E; }
.ledger-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 5px;
  color: #4A2F1C;
  font-size: 11px;
  font-weight: 900;
}
.ledger-total b {
  color: #E85D1A;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.3px;
}
.count-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  background: linear-gradient(120deg, #FFF0D7, #FFE3B8);
  border: 1.5px dashed #E1B36E;
  text-align: left;
}
.count-row span { color: #7D5A38; font-size: 10px; font-weight: 800; }
.count-row b {
  margin-left: auto;
  color: #B8540E;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
}
.count-row .mp-icon { width: 14px; height: 14px; color: #B98A55; }
.count-row:active { transform: scale(.99); }
.diff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px 1px;
  color: #6E513B;
  font-size: 10px;
  font-weight: 800;
}
.diff-row b {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  color: #8E745E;
}
.diff-row b.ok { color: #3F9C22; }
.diff-row b.bad { color: #D5432C; }
.diff-row b.warn { color: #D49112; }
.rep-note {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #F8EEDF;
  color: #987A5E;
  font-size: 9px;
  line-height: 1.5;
}
.rep-actions { margin-top: 11px; display: flex; flex-direction: column; gap: 6px; }
.rep-actions .primary-btn { height: 44px; }
.rep-actions .ghost-btn { height: 38px; font-size: 12px; }

/* ============================================================
   练习
   ============================================================ */
.practice-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 26px);
  padding: 0;
  overflow: hidden;
}
.practice-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 15px 10px;
  background: linear-gradient(180deg, #FFFBF3, #FFF4E5);
  border-bottom: 1px solid #EFDCC5;
}
.practice-head > div:first-child { flex: 1; min-width: 0; }
.practice-head h2 { font-size: 20px; }
.practice-tally {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #F6E4CE;
  border: 1px solid #E7CDAE;
  color: #A06A34;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}
.practice-head .x-btn { margin-top: 1px; }
.practice-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 15px;
  scrollbar-width: none;
}
.practice-body::-webkit-scrollbar { display: none; }
.practice-actions {
  flex: none;
  display: flex;
  gap: 7px;
  padding: 10px 15px calc(13px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(255, 246, 234, .4), #FFF2DF);
  border-top: 1px solid #F0DCC3;
}
.practice-actions .primary-btn { flex: 1.4; height: 43px; }
.practice-actions .ghost-btn { flex: 1; height: 43px; }

.mini-receipt {
  padding: 9px 10px 8px;
  border-radius: 11px;
  background: #FFFDF8;
  border: 1px solid #EDD8BE;
  box-shadow: 0 2px 6px rgba(150, 100, 55, .05);
}
.mini-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1.5px dashed #EBD7BE;
  color: #8E6E54;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .4px;
}
.mini-receipt-head b { color: #4A3020; font-size: 9.5px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px dashed #F2E4D3;
  color: #5D4230;
  font-size: 10px;
  font-weight: 600;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row .gdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc, #E8B97C);
}
.mini-row b {
  margin-left: auto;
  color: #3E2818;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
}
.mini-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1.5px solid #EBD7BE;
  color: #6E513B;
  font-size: 10px;
  font-weight: 800;
}
.mini-sum b {
  color: #E85D1A;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 900;
}
.practice-question {
  margin: 9px 0 7px;
  color: #3A2415;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}
.practice-question small { color: #97795F; font-size: 9px; font-weight: 600; }
.practice-result {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 9px;
  font-size: 9.5px;
  line-height: 1.5;
}
.practice-result.ok { background: #EAF9E2; border: 1px solid #BFE8AA; color: #39701F; }
.practice-result.bad { background: #FFF0EB; border: 1px solid #F3C7B9; color: #A33E2B; }
.practice-result .mp-icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }

/* ============================================================
   营业记录
   ============================================================ */
.records-modal { max-width: 400px; }
.record-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 11px;
}
.record-summary > div {
  padding: 8px 6px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px solid #EDD9BF;
  text-align: center;
}
.record-summary span { display: block; color: #A2856C; font-size: 8px; font-weight: 600; }
.record-summary b {
  display: block;
  margin-top: 2px;
  color: #3B2515;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}
.record-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 44dvh;
  overflow-y: auto;
  padding-right: 1px;
  scrollbar-width: none;
}
.record-list::-webkit-scrollbar { display: none; }
.record-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px solid #EDD9BF;
}
.record-grade {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, #F3FFE9, #DCF7CB);
  border: 1px solid #B9E39F;
  color: #368B1B;
  font-size: 14px;
  font-weight: 900;
}
.record-grade.bad { background: #FFF1EC; border-color: #F1C4B6; color: #BF412B; }
.record-main { flex: 1; min-width: 0; }
.record-main b { display: block; color: #3B2515; font-size: 11px; font-weight: 800; }
.record-main span { display: block; margin-top: 1px; color: #A1836B; font-size: 8.5px; font-weight: 600; }
.record-side { flex: none; text-align: right; }
.record-side b {
  display: block;
  color: #3B2515;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}
.record-side span { display: block; margin-top: 1px; color: #A1836B; font-size: 8px; font-weight: 600; }
.record-side span.bad { color: #D5432C; }
.record-side span.ok { color: #3F9C22; }
.records-empty {
  padding: 24px 10px;
  text-align: center;
  color: #A1836B;
}
.records-empty .mp-icon { width: 34px; height: 34px; color: #D5B896; }
.records-empty b { display: block; margin-top: 6px; color: #7B5A40; font-size: 13px; }
.records-empty span { display: block; margin-top: 3px; font-size: 9px; line-height: 1.5; }
.records-modal .primary-btn { margin-top: 11px; }

/* ============================================================
   营业手册
   ============================================================ */
.help-modal { max-width: 390px; }
.help-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}
.help-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px solid #EDD9BF;
}
.help-list li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFF0D8, #FFE2B8);
  color: #C06B1E;
}
.help-list .mp-icon { width: 15px; height: 15px; }
.help-list b { display: block; color: #3B2515; font-size: 11.5px; font-weight: 900; }
.help-list p { margin-top: 1px; color: #8C6E55; font-size: 9px; line-height: 1.5; }
.rule-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #FFF0E6;
  border: 1px solid #F3D2BC;
  color: #B05228;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}
.rule-line .mp-icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FFFDF8;
  border: 1px solid #EDD9BF;
}
.setting-label { display: flex; align-items: center; gap: 6px; color: #6E513B; font-size: 11px; font-weight: 800; }
.setting-label .mp-icon { width: 16px; height: 16px; color: #C08A52; }
.switch {
  position: relative;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #D9C4AE;
  box-shadow: 0 1px 3px rgba(90, 55, 25, .2) inset;
  transition: background .18s ease;
}
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(80, 45, 20, .28);
  transition: transform .18s ease;
}
.switch.on { background: linear-gradient(180deg, #FFA552, #F27618); }
.switch.on .knob { transform: translateX(19px); }
.help-modal .primary-btn { margin-top: 11px; }

/* ============================================================
   Toast / 特效
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 120;
  max-width: 86vw;
  padding: 9px 15px;
  border-radius: 999px;
  transform: translate(-50%, 8px);
  background: rgba(24, 13, 7, .94);
  border: 1px solid rgba(255, 180, 110, .26);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  color: #FFE6C9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(140, 235, 100, .4); color: #DFFFC9; }
.toast.bad { border-color: rgba(255, 120, 95, .45); color: #FFCDBF; }
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  overflow: hidden;
}
.fx-score {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translateX(-50%);
  color: #FFD25C;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .5px;
  text-shadow: 0 2px 0 #8C3D00, 0 4px 12px rgba(0, 0, 0, .5);
  animation: fxUp 1s cubic-bezier(.2, .8, .3, 1) forwards;
  white-space: nowrap;
}
.fx-score.bad { color: #FF8A74; text-shadow: 0 2px 0 #661A0C, 0 4px 12px rgba(0, 0, 0, .5); }
.fx-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(24, 13, 7, .9);
  border: 1px solid rgba(255, 190, 120, .3);
  color: #FFE6C9;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  animation: fxNote 1.05s ease forwards;
}
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: .9;
  animation: sparkFly .75s ease-out forwards;
}
@keyframes fxUp {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  70% { opacity: 1; transform: translate(-50%, -26px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(.92); }
}
@keyframes fxNote {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  18% { opacity: 1; transform: translate(-50%, 0); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -12px); }
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(.3); }
}

/* ============================================================
   小屏适配
   ============================================================ */
@media (max-height: 780px) {
  /* 矮屏优先保证收银员完整可见，柜台操作可向下滚动 */
  .hero { flex: none; height: 375px; }
}
@media (max-height: 730px) {
  .hero { min-height: 0; height: 360px; }
  .challenge-card { padding: 9px 11px 8px; bottom: 7px; border-radius: 15px; }
  .cc-title h1 { font-size: 15px; }
  .cc-moon { width: 28px; height: 28px; }
  .cc-moon .mp-icon { width: 18px; height: 18px; }
  .cc-goal-val b { font-size: 19px; }
  .cc-meta { display: none; }
  .entry { height: 54px; }
  .entry-ico { width: 36px; height: 36px; }
  .entry-txt b { font-size: 15px; }
  .statusbar { margin-top: 7px; padding: 5px 6px; }
  .game-scene { height: 108px; }
  .cust-wrap { width: 86px; height: 98px; }
  .speech { font-size: 12px; padding: 8px 10px; }
  .reg-screen { min-height: 112px; max-height: 172px; }
  .reg-item { min-height: 25px; }
  .step-card { padding: 10px; }
  .due-callout b { font-size: 22px; }
  .money-btn { height: 43px; }
}
@media (max-height: 640px) {
  .hero { min-height: 0; height: 335px; }
  .challenge-card { padding: 7px 10px 7px; }
  .cc-title p { display: none; }
  .cc-goal { margin-top: 4px; }
  .cc-progress-wrap { width: 78px; }
  .entry { height: 50px; }
  .entry-txt em { font-size: 9px; }
  .sheet { padding-top: 5px; }
  .sheet-head { padding-bottom: 5px; }
  .statusbar { margin-top: 6px; }
  .stat span { font-size: 7.5px; }
  .stat b { font-size: 11.5px; }
  .game-scene { display: none; }
  .register { margin-top: 4px; }
  .reg-screen { min-height: 104px; max-height: 158px; }
  .reg-item { min-height: 23px; }
}

/* 桌面预览时保持手机比例 */
@media (min-width: 620px) {
  .app { border-radius: 0; }
  .overlay { padding: 24px; }
}

/* 窄屏顶部 HUD：保证钱包和按钮不被挤出 */
@media (max-width: 360px) {
  .hud { gap: 3px; padding-left: 8px; padding-right: 8px; }
  .player { gap: 4px; }
  .avatar-wrap { width: 38px; height: 38px; }
  .p-name-row b { max-width: 58px; font-size: 11px; }
  .role-chip { display: none; }
  .wallet { gap: 3px; }
  .cur { height: 24px; padding: 0 5px; gap: 3px; }
  .cur .mp-icon { width: 12px; height: 12px; }
  .cur b { font-size: 10px; }
  .round-btn { width: 27px; height: 27px; }
  .round-btn .mp-icon { width: 15px; height: 15px; }
  #btn-records { display: none; }
}


/* 首页收紧：保留既有开班入口与游戏逻辑，仅整理首页呈现 */
#home {
  background: linear-gradient(180deg, rgba(255, 247, 236, .1), rgba(24, 12, 5, .14));
}
#home .hud { display: none; }
#home .hero {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  margin: auto 14px 16px;
  padding-top: max(22px, calc(var(--safe-top) + 16px));
  pointer-events: auto;
}
#home .hero-glow { display: none; }
#home .challenge-card {
  position: relative;
  inset: auto;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 224, 185, .72);
  background: linear-gradient(160deg, rgba(255, 250, 239, .96), rgba(255, 231, 201, .96));
  box-shadow: 0 12px 30px rgba(39, 17, 4, .25);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#home .challenge-card::before,
#home .challenge-card::after { display: none; }
#home .challenge-top { justify-content: center; text-align: center; }
#home .cc-title { flex-direction: column; gap: 8px; }
#home .cc-moon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff0d8;
  border: 1px solid #f4c993;
}
#home .cc-moon .mp-icon { color: var(--orange-deep); filter: none; }
#home .cc-title h1 {
  color: var(--ink);
  font-size: 27px;
  text-shadow: none;
}
#home .cc-title p { display: none; }
#home .cc-shift,
#home .cc-goal,
#home .cc-meta,
#home .sheet { display: none !important; }
#home .challenge-card > .cc-start {
  min-height: 54px;
  margin-top: 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ff9a51, #f47724);
  box-shadow: 0 4px 0 #cf5919, 0 8px 16px rgba(185, 78, 17, .23);
  transition: transform .12s ease, filter .12s ease;
}
#home .challenge-card > .cc-start:active {
  transform: scale(.97) translateY(2px);
  filter: brightness(.92);
  box-shadow: 0 2px 0 #cf5919, 0 4px 10px rgba(185, 78, 17, .2);
}
#home .cc-start em { display: none; }
#home .cc-start span { font-size: 17px; font-weight: 900; }
#home .challenge-card > .cc-start::after {
  content: "进入柜台";
  font-size: 17px;
  font-weight: 900;
}
#home .challenge-card > .cc-start span { display: none; }
#home .challenge-card > .cc-start .mp-icon { display: none; }
#home .challenge-card::before {
  content: "看清账单，收好现金，把零钱准确找给顾客。";
  display: block;
  position: static;
  height: auto;
  margin-top: 13px;
  color: #765b45;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  background: none;
}
@media (max-height: 640px) {
  #home .hero { margin-top: auto; padding-top: 12px; }
  #home .challenge-card { padding: 14px; }
  #home .cc-moon { width: 40px; height: 40px; }
  #home .cc-title h1 { font-size: 24px; }
}

.change-guide,#shift-bill{margin:8px 0;padding:9px 12px;background:#fff7e9;color:#482f20;border:1px solid #e8c79b;border-radius:8px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.change-guide strong{display:block}.change-guide [role=status]{color:#8a3614;margin-top:4px}
#shift-bill{white-space:pre-line;border-top:2px dashed #ddae78}#shift-bill::first-line{font-size:16px;font-weight:800}
#queue-bubble[data-count]{flex-wrap:wrap;max-width:152px;width:max-content}#queue-bubble[data-count] #queue-num{font-size:0}#queue-bubble[data-count] #queue-num::after{content:var(--q,'4');font-size:11px}#queue-bubble[data-count='3']{--q:'3'}#queue-bubble[data-count='2']{--q:'2'}#queue-bubble[data-count='1']{--q:'1'}#queue-bubble[data-count='0']{--q:'0'}
#patience-line{display:flex;gap:4px;width:100%;pointer-events:none}#patience-line label:not([hidden]){display:grid;gap:1px;font:600 10px/1.15 system-ui;color:inherit}#patience-line progress{width:22px;height:5px;border:none;border-radius:4px;overflow:hidden;background:#ddd;accent-color:#ff8a3d}#patience-line progress::-webkit-progress-bar{background:#ddd}#patience-line progress::-webkit-progress-value{background:#ff8a3d}

#ov-revive .revive-remaining { margin:.65rem 0; font-weight:700; }
#ov-revive .lead { min-height:2.8em; }
#ov-revive button:disabled { opacity:.58; }
