:root {
  --ink: #6b4450;
  --ink-soft: #a7838c;
  --cream: #fffaf7;
  --pink: #f4a3b8;
  --pink-2: #ec7f9c;
  --pink-deep: #d9577a;
  --pink-pale: #fde8ee;
  --line: #f3c4d0;
  --gold: #f5c84c;
  --mint: #8fd3b8;
  --shadow: 0 6px 18px rgba(214, 120, 148, 0.22);
  --r: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #f7dce3;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
body.dragging, body.dragging * { cursor: grabbing !important; }

#app { position: fixed; inset: 0; overflow: hidden; }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; animation: screenIn .35s ease-out; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 246, 248, 0.35), rgba(255, 240, 244, 0.78));
}
.scrim.soft { background: linear-gradient(180deg, rgba(255, 246, 248, 0.05), rgba(255, 236, 242, 0.55)); }
.scrim.light { background: rgba(255, 248, 250, 0.28); }
/* 不用 backdrop-filter：手机浏览器上全屏模糊层叠加循环动画会导致画面闪烁 */
.scrim.veil { background: rgba(120, 70, 86, 0.46); }

.content {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
  gap: 9px;
}
.content.center { justify-content: center; }

.hidden { display: none !important; }

/* ---------- 通用卡片 / 按钮 ---------- */
.card {
  background: var(--cream);
  border-radius: var(--r);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--line), var(--shadow);
  padding: 12px 14px;
}
.card.lace { position: relative; }
.card.lace::before, .card.lace::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 10px;
  background: radial-gradient(circle at 6px 0, #fff 5px, transparent 5.5px) 0 0 / 12px 10px repeat-x;
  filter: drop-shadow(0 1px 0 var(--line));
}
.card.lace::before { top: -9px; transform: rotate(180deg); }
.card.lace::after { bottom: -9px; }

.btn {
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: 2px;
  min-height: 50px; padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--pink-deep);
  box-shadow: 0 4px 0 #f1cbd5, 0 8px 16px rgba(214, 120, 148, 0.18);
  cursor: pointer; touch-action: manipulation;
  flex: 1; transition: transform .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #f1cbd5; }
.btn.primary {
  color: #fff; border-color: #fff;
  background: linear-gradient(180deg, #f9b3c4 0%, #ef8ba5 55%, #e7738f 100%);
  box-shadow: 0 0 0 2px #f2a6b9, 0 4px 0 #d9677f, 0 10px 18px rgba(217, 87, 122, 0.3);
  text-shadow: 0 1px 0 rgba(176, 60, 90, 0.35);
}
.btn.primary:active { box-shadow: 0 0 0 2px #f2a6b9, 0 1px 0 #d9677f; }
.btn.ghost { flex: 0.75; }
.btn.gold {
  color: #8a5a1c; border-color: #fff7dc; flex: none; width: min(70%, 260px);
  background: linear-gradient(180deg, #fde8a6, #f3cd6e);
  box-shadow: 0 0 0 2px #e9c46a, 0 4px 0 #c99a3a, 0 10px 18px rgba(0, 0, 0, 0.25);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-link {
  font: inherit; font-size: 13px; color: var(--ink-soft);
  background: none; border: none; text-decoration: underline;
  cursor: pointer; padding: 8px; touch-action: manipulation;
}
.btn-link.light { color: #fff; text-shadow: 0 1px 3px rgba(80, 40, 90, 0.8); }

.footer { display: flex; gap: 10px; margin-top: auto; }

/* ---------- HUD ---------- */
.hud { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.coin-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.92); border-radius: 999px;
  padding: 3px 12px 3px 3px; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(214, 120, 148, 0.2);
}
.coin {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 18%, #ffd85c 40%, #f0a82a 100%);
  box-shadow: inset 0 -2px 0 #d68a17, 0 1px 2px rgba(0, 0, 0, 0.15);
}
.coin.sm { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.hud-stats {
  margin-left: auto; display: flex; gap: 8px; font-size: 12px;
  background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 0 0 2px #fff;
  white-space: nowrap;
}
.hud-stats b { color: var(--pink-deep); }
.hearts { color: var(--pink-2); letter-spacing: 1px; }
.hearts i { font-style: normal; color: #e9d3d9; }

/* ---------- 开场 ---------- */
.logo { position: relative; text-align: center; margin-bottom: 26px; }
.logo-cat {
  width: 150px; display: block; margin: 0 auto -18px;
  filter: drop-shadow(0 6px 10px rgba(214, 120, 148, 0.3));
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.logo-title {
  position: relative;
  font-size: 50px; font-weight: 900; letter-spacing: 6px;
  color: #f28aa6;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #fff, 0 6px 0 #f6bccb, 0 10px 18px rgba(217, 87, 122, 0.35);
}
.logo-sub {
  display: inline-block; margin-top: 6px;
  font-size: 14px; letter-spacing: 3px; color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.85); padding: 4px 16px; border-radius: 999px;
  box-shadow: 0 0 0 2px var(--line);
}
.intro-card { min-height: 190px; display: flex; flex-direction: column; cursor: pointer; padding: 18px 18px 14px; }
.intro-text { font-size: 16px; line-height: 1.9; flex: 1; animation: fadeUp .45s ease-out; }
.intro-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 50px; }
.intro-foot .btn { flex: 0 0 auto; padding: 10px 30px; margin-left: auto; }
@keyframes blink { 50% { opacity: .4; } }
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #f2d3db; }
.dots i.on { background: var(--pink-2); }

/* ---------- 后台订单 ---------- */
.screen-title {
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
  font-size: 24px; font-weight: 900; letter-spacing: 3px; color: #f07f9d;
  -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill;
  text-shadow: 0 3px 8px rgba(217, 87, 122, 0.25);
}
.screen-title small { font-size: 13px; letter-spacing: 1px; color: var(--ink-soft); -webkit-text-stroke: 0; }
.buyer-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.avatar-ring {
  width: 64px; height: 64px; border-radius: 50%; flex: none; padding: 3px;
  background: conic-gradient(from 0deg, #fff 0 8%, #f9cfd9 8% 16%) ;
  box-shadow: 0 0 0 2px var(--line), 0 3px 8px rgba(214, 120, 148, 0.25);
}
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fde8ee; border: 2px solid #fff; }
.avatar-ring.sm { width: 50px; height: 50px; }
.buyer-meta { flex: 1; min-width: 0; }
.buyer-name { font-size: 17px; font-weight: 800; }
.buyer-name small { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.buyer-sum { font-size: 13px; color: var(--ink-soft); margin-top: 3px; border-top: 1px dashed var(--line); padding-top: 3px; }
.price-tag {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.12;
  font-size: 22px; font-weight: 900; color: var(--pink-deep);
}
.price-tag > small { font-size: 10.5px; font-weight: 400; color: var(--ink-soft); }
.price-tag > b { display: flex; align-items: center; gap: 3px; }
.price-tag .cost-hint { font-style: normal; font-size: 10px; font-weight: 400; color: #b98a92; }

.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 2px; justify-content: flex-end; }
.msg {
  align-self: flex-start; max-width: 86%;
  background: #fff; border-radius: 4px 18px 18px 18px;
  padding: 9px 13px; font-size: 15px; line-height: 1.6;
  box-shadow: 0 0 0 2px var(--line), 0 3px 8px rgba(214, 120, 148, 0.15);
  animation: msgIn .3s ease-out;
}
.msg.me { align-self: flex-end; background: #fbd3dd; border-radius: 18px 4px 18px 18px; box-shadow: 0 0 0 2px #fff; }
.msg.typing { color: var(--ink-soft); letter-spacing: 3px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.slip { padding: 10px 12px; }
.slip-title {
  font-weight: 800; font-size: 14px; letter-spacing: 1px; color: var(--pink-deep);
  border-bottom: 2px dotted var(--line); margin-bottom: 6px; padding-bottom: 4px;
}
.slip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 13px; line-height: 1.5; }
.slip-grid div { display: flex; gap: 6px; min-width: 0; }
.slip-grid span:first-child { color: var(--ink-soft); flex: none; }
.slip-grid span:last-child { font-weight: 700; }
.slip-grid .wide { grid-column: span 2; }

/* ---------- 流程条（图标 + 虚线） ---------- */
.flow { display: flex; align-items: flex-start; justify-content: space-between; position: relative; padding: 0 4px; }
.flow::before {
  content: ""; position: absolute; left: 34px; right: 34px; top: 25px;
  border-top: 3px dotted #fff; filter: drop-shadow(0 0 1px var(--pink));
}
.fs {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; font: inherit; cursor: pointer; touch-action: manipulation;
  width: 68px;
}
.fs .ic {
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle, #fff 55%, #fde3ea 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.fs .ic img { width: 76%; height: 76%; object-fit: contain; }
.fs .lb {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.85); padding: 1px 8px; border-radius: 999px;
}
.fs.current .ic { transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--pink-2), 0 0 14px rgba(236, 127, 156, 0.6); }
.fs.current .lb { color: #fff; background: var(--pink-2); }
.fs.done .ic::after {
  content: "✓"; position: absolute; right: 6px; top: -2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--pink-2); color: #fff;
  font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.fs.locked { cursor: default; }

/* ---------- 买家小条 ---------- */
.buyer-strip {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255, 250, 247, 0.94); border-radius: 18px; padding: 7px 10px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow);
}
.strip-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.oc {
  font-size: 11.5px; line-height: 1.3; padding: 3px 8px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink);
  white-space: nowrap;
}
.oc b { color: var(--ink-soft); font-weight: 700; margin-right: 2px; }
.oc.ok { background: #e6f6ef; box-shadow: inset 0 0 0 1.5px #a9dcc5; }
.oc.ok::after { content: " ✓"; color: #3a9e72; font-weight: 900; }
.oc.price { background: var(--pink-pale); color: var(--pink-deep); font-weight: 800; }

.patience { height: 8px; border-radius: 999px; background: #f6e3e8; overflow: hidden; }
.patience-fill {
  height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f7b6c6, #ef8ba5);
  transition: width .5s linear;
}
.patience-fill.low { background: linear-gradient(90deg, #f6c36a, #ef8b6b); }

/* 买家说话的气泡 */
.say {
  position: relative; align-self: stretch;
  background: #fff; border-radius: 16px;
  padding: 8px 12px 8px 14px; font-size: 14.5px; line-height: 1.55;
  min-height: 44px;
  box-shadow: 0 0 0 2px var(--line), 0 3px 8px rgba(214, 120, 148, 0.15);
}
.say::before {
  content: ""; position: absolute; left: 22px; top: -8px; width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg);
  box-shadow: -2px -2px 0 0 var(--line);
}
.say.pop-in { animation: msgIn .3s ease-out; }

/* ---------- 配货台 ---------- */
.stage { position: relative; flex: 1; min-height: 170px; }
.phone {
  position: absolute; left: 50%; top: 50%;
  height: 92%; aspect-ratio: 504 / 997;
  transform: translate(-50%, -50%);
}
.phone-ghost {
  position: absolute; inset: 0; border-radius: 16% / 8%;
  border: 3px dashed rgba(236, 127, 156, 0.6); background: rgba(255, 255, 255, 0.35);
}
.case-img, .sup-img, .acc-img {
  position: absolute; display: none;
  object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(160, 80, 100, 0.28));
}
.case-img { inset: 0; width: 100%; height: 100%; z-index: 1; }
.case-img.on { display: block; }
.sup-img { width: 62%; left: 19%; top: 46%; z-index: 2; }
.acc-img { height: 58%; right: -34%; top: 8%; z-index: 2; }
.sup-img.on, .acc-img.on { display: block; }

.zone {
  position: absolute; border-radius: 18px;
  border: 2px dashed transparent;
  visibility: hidden; pointer-events: none; z-index: 3;
}
body.dragging .zone { visibility: visible; border-color: rgba(217, 87, 122, 0.55); background: rgba(255, 255, 255, 0.25); }
body.dragging .zone.hot { border-style: solid; border-color: var(--pink-deep); background: rgba(244, 163, 184, 0.45); }
.zone-case { inset: -4%; }
.zone-sup { left: 6%; top: 42%; width: 88%; height: 40%; }
.zone-acc { right: -44%; top: 2%; width: 50%; height: 64%; }

.stage-hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; color: var(--pink-deep); font-weight: 700;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 0 0 2px var(--line);
}
.stage.shake { animation: shake .5s; }

.burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 8; pointer-events: none; }
.spark {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  animation: burst .75s ease-out forwards;
}
.spark.heart { border-radius: 0; clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%); width: 14px; height: 14px; }
@keyframes burst {
  0% { transform: translate(0, 0) scale(.6); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(200deg); opacity: 0; }
}

.float-text {
  position: absolute; left: 50%; top: 40%; z-index: 9;
  transform: translate(-50%, -50%);
  font-size: 28px; font-weight: 900; color: #f07f9d;
  -webkit-text-stroke: 2px #fff; paint-order: stroke fill;
  white-space: nowrap; pointer-events: none;
  animation: floatup 1s ease-out forwards;
}
@keyframes floatup {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -160%); }
}

/* ---------- 托盘 ---------- */
.tray {
  display: flex; gap: 9px;
  overflow-x: auto; overflow-y: hidden;
  padding: 6px 4px 8px;
  min-height: 136px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tray.idle { visibility: hidden; }
.tray::-webkit-scrollbar { display: none; }
.tile {
  position: relative;
  flex: none; width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 5px 6px;
  background: var(--cream); border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--line), 0 4px 10px rgba(214, 120, 148, 0.16);
  font: inherit; color: var(--ink); text-align: center;
  cursor: grab; touch-action: pan-x;
  -webkit-user-drag: none;
}
.tile img { width: 62px; height: 62px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.tile .tn {
  font-size: 12.5px; font-weight: 700; line-height: 1.3; pointer-events: none;
  background: #fff; border-radius: 999px; padding: 1px 8px; box-shadow: inset 0 0 0 1.5px var(--line);
}
.tile .td { font-size: 11px; color: var(--ink-soft); line-height: 1.3; pointer-events: none; }
.tile .tier {
  font-size: 11px; font-weight: 800; color: #fff; background: #f09bb1;
  padding: 1px 10px; border-radius: 6px; pointer-events: none;
}
.tile .cost { font-size: 13px; font-weight: 800; pointer-events: none; display: flex; align-items: center; gap: 3px; }
.tile.picked { background: #fff0f4; box-shadow: 0 0 0 3px var(--pink-2), 0 4px 12px rgba(236, 127, 156, 0.35); }
.tile.picked::after {
  content: "✓"; position: absolute; right: -6px; top: -6px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--pink-2); color: #fff;
  font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.tile.none { justify-content: center; background: #fdf3f5; }
.tile.none .tn { font-size: 14px; }

.drag-ghost {
  position: fixed; z-index: 100;
  width: 86px; height: 86px;
  transform: translate(-50%, -110%);
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(160, 80, 100, 0.35));
}
.drag-ghost img { width: 100%; height: 100%; object-fit: contain; }
.drag-ghost.ghost-text {
  width: auto; height: auto;
  background: #fff; border-radius: 999px; box-shadow: 0 0 0 2px var(--line);
  padding: 6px 12px; font-weight: 700; font-size: 14px;
}

/* ---------- 打包台 ---------- */
.pack-stage { position: relative; flex: 1; min-height: 230px; }
.pack-box {
  position: absolute; left: 50%; top: 50%;
  height: 96%; max-width: 92%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.box-ghost {
  position: absolute; inset: 8%; border-radius: 22px;
  border: 3px dashed rgba(236, 127, 156, 0.6); background: rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--pink-deep);
}
.pack-box.has-box .box-ghost { display: none; }
body.dragging .pack-box.hot .box-ghost, body.dragging .pack-box.hot .pbox { outline: none; }
body.dragging .pack-box.hot { filter: drop-shadow(0 0 14px rgba(236, 127, 156, 0.8)); }
.pack-items { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.in-item {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 5px rgba(160, 80, 100, 0.3));
}
.in-item.slot-case { left: 40%; top: 50%; height: 64%; width: auto; transform: translate(-50%, -50%) rotate(-8deg); }
.in-item.slot-support { left: 70%; top: 36%; height: 26%; width: auto; }
.in-item.slot-acc { left: 70%; top: 66%; height: 30%; width: auto; }
.in-item.drop-in { animation: dropIn .5s cubic-bezier(.3, 1.3, .5, 1); }
.in-item.slot-case.drop-in { animation: dropInR .5s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes dropIn {
  0% { transform: translate(-50%, -300%) scale(.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes dropInR {
  0% { transform: translate(-50%, -200%) rotate(-8deg) scale(.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; }
}
.pack-box.closed .pack-items { display: none; }
.pack-box.closing .pbox { animation: lidClose .5s ease-in; }
@keyframes lidClose {
  0% { transform: scale(1); }
  50% { transform: scale(1.04, .92); }
  100% { transform: scale(1); }
}
.pack-box.fly {
  transition: transform .9s cubic-bezier(.5, 0, .9, .6), opacity .9s ease;
  transform: translate(10%, -220%) rotate(14deg) scale(.35);
  opacity: 0;
}
.pbox {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: none;
  filter: drop-shadow(0 8px 10px rgba(160, 80, 100, 0.28));
  pointer-events: none;
}
.pack-box.has-box .pbox { display: block; }
.pack-box.pop-anim .pbox { animation: popScale .45s ease-out; }
.pack-box.tied .pbox { animation: tieBounce .6s ease-out; }
@keyframes tieBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.06, .94); }
  60% { transform: scale(.98, 1.03); }
  100% { transform: scale(1); }
}

.pack-decos { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.deco-slot { position: absolute; width: 27%; pointer-events: none; }
.deco-slot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 4px rgba(160, 80, 100, 0.3)); pointer-events: none; }
.deco-slot img.pop { animation: popScale .45s ease-out; }
.pack-stage.step-deco .deco-slot { pointer-events: auto; cursor: grab; touch-action: none; }
.deco-slot.moving { cursor: grabbing; }

/* 系丝带：按顺序划过光点 */
.ribbon-dots { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ribbon-dots.on { pointer-events: auto; touch-action: none; }
.ribbon-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.ribbon-dots.on .ribbon-path { display: block; }
.tie-dot {
  position: absolute; width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%; background: #fff;
  border: 3px solid var(--pink);
  display: none;
}
.ribbon-dots.on .tie-dot { display: block; }
.tie-dot.next { background: #ffe58f; border-color: #fff; box-shadow: 0 0 0 3px var(--pink-2), 0 0 14px #ffd36e; animation: pulse .8s ease-in-out infinite; }
.tie-dot.hit { background: var(--pink-2); border-color: #fff; box-shadow: 0 0 0 2px var(--pink-2); }

/* 封口：圆圈缩到虚线圈时轻点 */
.seal-target {
  position: absolute; left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 6;
}
.seal-target.on { pointer-events: auto; cursor: pointer; }
.seal-dot { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 2px rgba(217, 87, 122, 0.5); display: none; }
.seal-target.on .seal-dot { display: block; }
.seal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid var(--pink-2);
  box-shadow: 0 0 10px rgba(236, 127, 156, 0.7);
  transform: scale(2.2);
  opacity: 0;
}
.seal-target.on .seal-ring { opacity: 1; }
.seal-img { position: absolute; inset: -6%; width: 112%; height: 112%; display: none; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(160, 80, 100, 0.35)); }
.seal-img.on { display: block; animation: stamp .4s ease-out; }
@keyframes stamp {
  0% { transform: scale(1.8) rotate(-12deg); opacity: 0; }
  60% { transform: scale(.95) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- 晒单卡 ---------- */
.review-card {
  position: relative;
  background: linear-gradient(180deg, #fff6f8, #fde9ef);
  border-radius: 28px; padding: 26px 16px 14px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #f6b9c9, 0 18px 40px rgba(120, 50, 70, 0.35);
  animation: cardIn .45s cubic-bezier(.3, 1.3, .5, 1);
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes cardIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.rv-badge {
  position: absolute; left: 50%; top: -15px; transform: translateX(-50%);
  background: linear-gradient(180deg, #f9b3c4, #ec7f9c); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: 1px; white-space: nowrap;
  padding: 5px 16px; border-radius: 999px; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(217, 87, 122, 0.3);
}
.rv-title {
  text-align: center; font-size: 28px; font-weight: 900; letter-spacing: 3px; color: #ea7895;
  -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill;
}
.rv-inner {
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: inset 0 0 0 2px #f6cbd6;
  display: flex; flex-direction: column; gap: 8px;
}
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-meta { flex: 1; min-width: 0; }
.rv-name { font-weight: 800; font-size: 15px; }
.stars { font-size: 22px; letter-spacing: 2px; color: #f1dfe4; line-height: 1.2; }
.stars span { display: inline-block; }
.stars span.on { color: #ffc94d; text-shadow: 0 1px 0 #e8a52a; animation: starpop .42s ease-out; }
.rv-score { text-align: center; font-size: 11px; color: var(--ink-soft); }
.rv-score b { display: block; font-size: 26px; color: var(--pink-deep); line-height: 1.1; }
.rv-text { font-size: 14.5px; line-height: 1.65; background: var(--pink-pale); border-radius: 12px; padding: 8px 10px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.checklist li {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #fff; border-radius: 12px; padding: 5px 2px; font-size: 12px;
  box-shadow: inset 0 0 0 1.5px #f3d3dc;
}
.checklist li span:first-child { color: var(--ink-soft); }
.checklist .ok { color: #3a9e72; font-weight: 800; }
.checklist .part { color: #c48a2a; font-weight: 800; }
.checklist .ng { color: var(--pink-deep); font-weight: 800; }
.rv-money { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); border-top: 2px dotted #f3d3dc; padding-top: 8px; flex-wrap: wrap; }
.rv-money b { color: var(--ink); }
.rv-money .sum { font-size: 22px; font-weight: 900; color: var(--pink-deep); display: flex; align-items: center; gap: 4px; }
.rv-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rv-actions .btn { width: 100%; }

/* ---------- 打烊账本 ---------- */
.content.night { align-items: center; gap: 12px; }
.ledger {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f8efe1; border-radius: 10px;
  border: 6px solid #e47e98;
  box-shadow: 0 0 0 2px #f8c8d4, 0 22px 40px rgba(20, 20, 60, 0.45);
  padding: 16px 0 54px;
  margin-bottom: 30px;
  animation: cardIn .5s ease-out;
}
.ledger::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.08));
}
.ledger::after {
  content: ""; position: absolute; left: 50%; top: -10px; width: 22px; height: 46px; margin-left: -11px;
  background: linear-gradient(180deg, #f6d27a, #e5b04a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.ledger-page { padding: 6px 12px; font-size: 13px; }
.ledger-page.left { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.lg-day { font-size: 12px; color: #9a7b6e; }
.lg-day b { color: var(--pink-deep); }
.lg-title { font-size: 16px; font-weight: 900; color: #5a4038; padding-bottom: 8px; border-bottom: 1px solid #e3d3c0; }
.lg-lines { font-size: 12.5px; line-height: 1.9; color: #6b5048; }
.lg-lines b { color: var(--pink-deep); }
.lg-rows { display: flex; flex-direction: column; gap: 3px; }
.lg-rows div { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted #e3d3c0; color: #5a4038; }
.lg-rows b { font-weight: 800; }
.lg-total { display: flex; justify-content: space-between; margin-top: 8px; font-size: 15px; font-weight: 900; color: #5a4038; }
.lg-total b { color: var(--pink-deep); }
.ledger-cat {
  position: absolute; left: -10px; bottom: -44px; width: 46%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  animation: breathe 3.2s ease-in-out infinite; transform-origin: bottom center;
}
@keyframes breathe { 50% { transform: scale(1.02, .985); } }

/* ---------- 提示 ---------- */
#toast {
  position: fixed; left: 50%; top: 18%; z-index: 120; transform: translate(-50%, -10px);
  background: rgba(255, 255, 255, 0.96); color: var(--pink-deep); font-weight: 800;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 0 0 2px var(--line), var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 动效 ---------- */
.pop { animation: popScale .45s ease-out; }
@keyframes popScale {
  0% { transform: scale(.25); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes starpop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px) rotate(-1deg); }
  40% { transform: translate(6px, -2px) rotate(1deg); }
  60% { transform: translate(-4px, 0); }
  80% { transform: translate(3px, 1px); }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

/* ---------- 矮屏 ---------- */
@media (max-height: 760px) {
  .content { gap: 7px; }
  .fs { width: 60px; }
  .fs .ic { width: 42px; height: 42px; }
  .flow::before { top: 21px; }
  .avatar-ring.sm { width: 42px; height: 42px; }
  .say { padding: 6px 10px 6px 12px; font-size: 13.5px; min-height: 38px; }
  .tray { min-height: 122px; }
  .tile { width: 84px; }
  .tile img { width: 52px; height: 52px; }
  .btn { min-height: 46px; font-size: 16px; }
  .logo-cat { width: 120px; }
  .logo-title { font-size: 42px; }
}
@media (max-height: 680px) {
  .tray { min-height: 108px; }
  .tile img { width: 44px; height: 44px; }
  .tile .td { display: none; }
  .fs .lb { font-size: 11px; }
  .stage { min-height: 120px; }
  .pack-stage { min-height: 170px; }
  .oc { font-size: 10.5px; padding: 2px 6px; }
  .review-card { padding-top: 22px; gap: 7px; }
  .rv-title { font-size: 23px; }
  .msg { font-size: 14px; padding: 7px 11px; }
}

/* 横屏手机：竖屏游戏，提示转过来 */
#rotate-hint {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  background: #f7d4de; color: var(--pink-deep); font-size: 18px; font-weight: 700; letter-spacing: 1px;
}
#rotate-hint .phone-icon {
  width: 46px; height: 76px; border: 4px solid var(--pink-deep); border-radius: 10px;
  animation: tilt 1.6s ease-in-out infinite;
}
@keyframes tilt { 0%, 30% { transform: rotate(0deg); } 60%, 100% { transform: rotate(90deg); } }
@media (orientation: landscape) and (max-height: 500px) {
  #rotate-hint { display: flex; }
  #app { visibility: hidden; }
}

/* =====================================================================
   动效与新玩法界面（v2）
   ===================================================================== */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* ---------- 屏幕切换：淡入 + 内容依次浮起 ---------- */
.screen.active { z-index: 2; animation: none; }
.screen.leaving { display: flex; z-index: 1; pointer-events: none; animation: screenOut .32s ease-in forwards; }
.screen.entering { animation: screenIn .42s var(--ease-out); }
@keyframes screenIn { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@keyframes screenOut { to { opacity: 0; transform: scale(.97); } }
.screen.entering .content > * { animation: riseIn .55s var(--ease-out) both; }
.screen.entering .content > *:nth-child(2) { animation-delay: .05s; }
.screen.entering .content > *:nth-child(3) { animation-delay: .1s; }
.screen.entering .content > *:nth-child(4) { animation-delay: .15s; }
.screen.entering .content > *:nth-child(5) { animation-delay: .2s; }
.screen.entering .content > *:nth-child(6) { animation-delay: .25s; }
.screen.entering .content > *:nth-child(7) { animation-delay: .3s; }
.screen.entering .content > *:nth-child(8) { animation-delay: .35s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 背景飘落的花瓣与亮片 ---------- */
#ambient { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.amb {
  position: absolute; bottom: -20px; display: block;
  animation: ambFloat linear infinite;
  transform: scale(var(--s, 1));
}
.amb.petal { width: 11px; height: 9px; background: #f9bfd0; border-radius: 80% 0 80% 0; opacity: .75; }
.amb.glint { width: 12px; height: 12px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: .9; filter: drop-shadow(0 0 3px #fff); }
.amb.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 6px #fff; }
#app.night .amb.petal { background: #e7d8ff; }
#app.night .amb.glint { background: #fff6c8; filter: drop-shadow(0 0 4px #ffe58f); }
@keyframes ambFloat {
  0% { transform: translate(0, 0) rotate(0) scale(var(--s, 1)); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(var(--sway, 20px), -55vh) rotate(180deg) scale(var(--s, 1)); }
  90% { opacity: .8; }
  100% { transform: translate(0, -112vh) rotate(360deg) scale(var(--s, 1)); opacity: 0; }
}

/* ---------- 特效层 ---------- */
#fx { position: fixed; inset: 0; z-index: 130; pointer-events: none; overflow: hidden; }
.fly-coin {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8 0 18%, #ffd85c 40%, #f0a82a 100%);
  box-shadow: inset 0 -2px 0 #d68a17, 0 2px 6px rgba(240, 168, 42, .5);
  transition: transform .26s var(--spring);
}
.fly-coin.go { transition: transform .5s cubic-bezier(.55, -0.2, .75, .9); }
.pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; animation: ptOut .8s var(--ease-out) forwards; }
.pt.heart { background: #ff8fb0; clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%); width: 13px; height: 13px; }
.pt.star { background: #ffe07a; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); filter: drop-shadow(0 0 3px #fff); }
@keyframes ptOut {
  0% { transform: translate(0, 0) scale(.3); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(90deg); opacity: 0; }
}
.mood-heart {
  position: absolute; width: 16px; height: 16px; margin-left: -8px;
  background: #ff7aa2; clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%);
  animation: moodUp 1.1s var(--ease-out) both;
}
@keyframes moodUp {
  0% { transform: translateY(0) scale(.2); opacity: 0; }
  25% { transform: translateY(-14px) scale(1.2); opacity: 1; }
  100% { transform: translate(8px, -54px) scale(.8); opacity: 0; }
}
.mood-sweat {
  position: absolute; width: 11px; height: 15px; background: linear-gradient(180deg, #d9f1ff, #8cc8f2);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 100% 60%, 85% 95%, 50% 100%, 15% 95%, 0 60%);
  animation: sweat 1s ease-in both;
}
@keyframes sweat { 0% { transform: translateY(-6px) scale(.4); opacity: 0; } 25% { opacity: 1; transform: none; } 100% { transform: translateY(14px); opacity: 0; } }
.js-mood.happy { animation: avHappy .55s var(--spring); }
.js-mood.sad { animation: avSad .5s ease-out; }
@keyframes avHappy { 0% { transform: none; } 35% { transform: translateY(-6px) scale(1.12); } 100% { transform: none; } }
@keyframes avSad { 0%, 100% { transform: none; } 25% { transform: translateX(-4px) rotate(-6deg); } 60% { transform: translateX(3px) rotate(4deg); } }

/* ---------- HUD ---------- */
.coin-pill.bump { animation: bump .45s var(--spring); }
@keyframes bump { 0% { transform: none; } 40% { transform: scale(1.18); } 100% { transform: none; } }
.coin-pill .coin { animation: coinSpin 4s ease-in-out infinite; }
@keyframes coinSpin { 0%, 85%, 100% { transform: rotateY(0); } 92% { transform: rotateY(180deg); } }
.hearts .h { font-style: normal; color: #ecd6dc; display: inline-block; }
.hearts .h.on { color: var(--pink-2); }
.hearts .h.lost { animation: heartLost .7s ease-out; }
@keyframes heartLost { 0% { color: var(--pink-2); transform: none; } 40% { transform: scale(1.8) translateY(-4px); color: var(--pink-2); } 100% { transform: none; } }
.hud-combo {
  font-size: 12px; font-weight: 900; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, #ff9a8b, #ff6a88, #ff99ac); background-size: 200% 100%;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(255, 106, 136, .4);
  animation: comboShine 2s linear infinite;
}
@keyframes comboShine { to { background-position: 200% 0; } }

/* ---------- 开场 ---------- */
.logo-title span { display: inline-block; animation: letterIn .7s var(--spring) both, letterFloat 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms), calc(.8s + var(--i) * 160ms); }
@keyframes letterIn { from { transform: translateY(-40px) scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes letterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
.logo-cat { cursor: pointer; pointer-events: auto; }
.logo-cat.purr, .pet-cat.purr img { animation: purr .7s var(--spring); }
@keyframes purr {
  0% { transform: none; } 20% { transform: translateY(-14px) scale(1.06, .94); } 40% { transform: translateY(0) scale(.94, 1.06); }
  55% { transform: rotate(-6deg); } 70% { transform: rotate(5deg); } 100% { transform: none; }
}
.dots i.past { background: #f5b4c4; }
.intro-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--pink-2); animation: blink 1s steps(1) infinite; }

/* ---------- 按钮手感 ---------- */
.btn { position: relative; overflow: hidden; transition: transform .22s var(--spring), box-shadow .15s, opacity .2s; }
.btn:active:not(:disabled) { transform: translateY(3px) scale(.96); }
.btn.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: shine 3.2s ease-in-out infinite;
}
.btn.primary:disabled::after { display: none; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ready { animation: readyPop .6s var(--spring); }
@keyframes readyPop { 0% { transform: scale(.92); } 50% { transform: scale(1.06); } 100% { transform: none; } }

/* ---------- 后台顶栏：目标 + 进货 ---------- */
.shop-bar { display: flex; gap: 8px; align-items: center; }
.goal-pill, .store-btn {
  font: inherit; border: none; cursor: pointer; touch-action: manipulation;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 12px; min-height: 36px;
  box-shadow: 0 0 0 2px var(--line), 0 3px 10px rgba(214, 120, 148, .18);
  color: var(--ink); transition: transform .2s var(--spring);
}
.goal-pill:active, .store-btn:active { transform: scale(.94); }
.goal-pill { flex: 1; justify-content: space-between; }
.gp-label { font-size: 13px; font-weight: 800; color: var(--pink-deep); }
.gp-dots { display: flex; align-items: center; gap: 4px; }
.gp-dots i { width: 9px; height: 9px; border-radius: 50%; background: #f3dbe2; transition: background .3s; }
.gp-dots i.on { background: var(--pink-2); box-shadow: 0 0 6px rgba(236, 127, 156, .7); animation: pop .45s var(--spring); }
.gp-dots b { font-size: 12px; color: var(--ink-soft); margin-left: 4px; }
.store-btn { position: relative; font-size: 13px; font-weight: 800; color: var(--pink-deep); padding-left: 6px; }
.store-btn img { width: 26px; height: 26px; object-fit: contain; }
.store-btn .badge { position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border-radius: 50%; background: #ff5f7e; box-shadow: 0 0 0 2px #fff; animation: pulse 1.2s ease-in-out infinite; }

.price-col { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rush-tag {
  font-size: 11px; font-weight: 900; color: #fff; padding: 2px 9px; border-radius: 6px;
  background: linear-gradient(90deg, #ff9966, #ff5e62); animation: rushBlink 1s ease-in-out infinite;
}
@keyframes rushBlink { 50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(255, 94, 98, .6); } }
.buyer-card.rush { box-shadow: 0 0 0 2px #ffb199, 0 0 16px rgba(255, 120, 100, .35); }

.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #f0a7b9; animation: typingDot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.msg { animation: msgIn .42s var(--spring); transform-origin: left top; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
.slip { transition: opacity .35s, filter .35s; }
.slip.veiled { opacity: .35; filter: blur(2px); }
.slip.slip-in .slip-grid > div { animation: riseIn .45s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }

/* ---------- 流程条 ---------- */
.flow-fill {
  position: absolute; left: 34px; top: 24px; height: 5px; border-radius: 3px; z-index: 0;
  width: calc((100% - 68px) * var(--k, 0));
  background: linear-gradient(90deg, #f9b3c4, #ec7f9c); box-shadow: 0 0 6px rgba(236, 127, 156, .6);
  transition: width .7s var(--ease-out);
}
.fs { z-index: 1; }
.fs .ic { transition: transform .35s var(--spring), box-shadow .3s; }
.fs.current .ic { animation: icBob 1.6s ease-in-out infinite; }
@keyframes icBob { 0%, 100% { transform: scale(1.12) translateY(0); } 50% { transform: scale(1.12) translateY(-3px); } }
.fs.done .ic::after { animation: pop .4s var(--spring); }
.fs:active .ic { transform: scale(.92); }

/* ---------- 订单小条 ---------- */
.oc { transition: background .3s, box-shadow .3s; }
.oc.just { animation: chipOk .6s var(--spring); }
@keyframes chipOk { 0% { transform: scale(1); } 40% { transform: scale(1.18); background: #c9f0dd; } 100% { transform: none; } }
.oc.price.rush { background: linear-gradient(90deg, #ffe1d6, #ffd0d8); color: #e0533f; }

.patience { display: flex; align-items: center; gap: 6px; height: auto; background: none; overflow: visible; }
.patience-slot { flex: 1; min-width: 0; min-height: 18px; }
.p-heart {
  width: 14px; height: 14px; flex: none; background: #f07f9d;
  clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%);
  animation: beat 1.4s ease-in-out infinite;
}
.patience.low .p-heart { background: #ff8a5c; animation-duration: .5s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
.patience-track { flex: 1; height: 9px; border-radius: 999px; background: #f6e3e8; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.patience-fill {
  background: repeating-linear-gradient(-45deg, #f7b6c6 0 8px, #f29ab1 8px 16px) !important;
  background-size: 22px 22px !important; animation: stripes 1s linear infinite;
}
.patience-fill.low { background: repeating-linear-gradient(-45deg, #ffc58a 0 8px, #ff9a6b 8px 16px) !important; }
@keyframes stripes { to { background-position: 22px 0; } }

/* ---------- 托盘格子 ---------- */
.tray.stagger .tile { animation: tileIn .5s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px) scale(.7); } to { opacity: 1; transform: none; } }
.tile { transition: transform .25s var(--spring), opacity .2s, box-shadow .2s; }
.tile:active { transform: scale(.92); }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); } }
.tile.lifting { opacity: .35; transform: scale(.88); }
.tile.picked::after { animation: pop .4s var(--spring); }
.tile.locked { cursor: not-allowed; background: #f7f0f2; }
.tile.locked img { filter: grayscale(.85) brightness(1.08); opacity: .55; }
.tile .lock { font-size: 10.5px; font-weight: 800; color: #fff; background: #c9b3ba; padding: 1px 8px; border-radius: 6px; }

.drag-ghost {
  transform: translate(-50%, -110%) rotate(var(--tilt, 0deg)) scale(1.12);
  transition: transform .12s ease-out;
}
.drag-ghost.over { transform: translate(-50%, -110%) rotate(var(--tilt, 0deg)) scale(1.28); filter: drop-shadow(0 0 12px rgba(236, 127, 156, .9)); }
.drag-ghost.back { transition: left .3s var(--ease-out), top .3s var(--ease-out), transform .3s, opacity .3s; transform: translate(-50%, -110%) scale(.5); opacity: 0; }

/* ---------- 配货台 ---------- */
.phone-ghost { animation: ghostBreath 2s ease-in-out infinite; transition: opacity .3s; }
.phone.has-case .phone-ghost { opacity: 0; }
@keyframes ghostBreath { 50% { border-color: rgba(236, 127, 156, .95); background: rgba(255, 255, 255, .5); } }
.stage-hint { animation: hintBob 1.6s ease-in-out infinite; }
@keyframes hintBob { 50% { transform: translate(-50%, -58%); } }
.case-img.land { animation: landCase .55s var(--spring); }
@keyframes landCase { 0% { transform: translateY(-36px) scale(1.08, .9); opacity: .2; } 55% { transform: translateY(4px) scale(.97, 1.04); opacity: 1; } 100% { transform: none; } }
.sup-img.land { animation: landSmall .5s var(--spring); }
@keyframes landSmall { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.acc-img { transform-origin: 30% 0; animation: swing 2.8s ease-in-out infinite; }
.acc-img.land { animation: landSwing 1.2s var(--ease-out), swing 2.8s ease-in-out 1.2s infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes landSwing { 0% { transform: translateY(-30px) rotate(-30deg); opacity: 0; } 30% { opacity: 1; transform: rotate(22deg); } 55% { transform: rotate(-12deg); } 80% { transform: rotate(6deg); } 100% { transform: rotate(-5deg); } }

/* 店长棉花糖 */
.pet-cat {
  position: absolute; left: 0; bottom: 0; z-index: 6; width: 62px;
  border: none; background: none; padding: 0; cursor: pointer; touch-action: manipulation;
}
.pet-cat img { width: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .3)); animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes catIdle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.012) translateY(-1%); } }
.pet-cat.yawn img { animation: yawn .8s ease-in-out; }
@keyframes yawn { 30% { transform: scale(1.06, .9); } 70% { transform: scale(.97, 1.04); } }
.pet-tip {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: var(--pink-deep); white-space: nowrap;
  background: #fff; padding: 2px 8px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line);
  animation: tipFloat 2s ease-in-out infinite;
}
.pet-tip.tip-pop { animation: pop .4s var(--spring); }
@keyframes tipFloat { 50% { transform: translate(-50%, -3px); } }

/* ---------- 打包台 ---------- */
.pack-box { transform: translate(-50%, -50%); }
.pack-box.box-in .pbox { animation: boxDrop .6s var(--spring); }
@keyframes boxDrop { 0% { transform: translateY(-60%) scale(.8) rotate(-6deg); opacity: 0; } 60% { transform: translateY(3%) scale(1.03, .96); opacity: 1; } 100% { transform: none; } }
.pack-box.thud .pbox { animation: thud .35s ease-out; }
@keyframes thud { 40% { transform: scale(1.04, .95); } 100% { transform: none; } }
.plid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0; z-index: 4; filter: drop-shadow(0 10px 12px rgba(160, 80, 100, .3)); }
.plid.drop { animation: lidDrop .62s cubic-bezier(.5, 0, .4, 1.3) forwards; }
@keyframes lidDrop { 0% { transform: translateY(-75%) scale(1.06); opacity: 0; } 30% { opacity: 1; } 75% { transform: translateY(2%) scale(1.01, .98); opacity: 1; } 100% { transform: none; opacity: 1; } }
.pack-box.fly { transition: none; animation: shipOut 1.05s cubic-bezier(.5, 0, .7, .4) forwards; opacity: 1; }
@keyframes shipOut {
  0% { transform: translate(-50%, -50%); }
  25% { transform: translate(-50%, -60%) scale(1.04, .96); }
  40% { transform: translate(-52%, -50%) scale(.98, 1.03) rotate(-3deg); }
  100% { transform: translate(140%, -60%) rotate(14deg) scale(.7); opacity: 0; }
}
.ship-stamp {
  position: absolute; left: 50%; top: 46%; z-index: 9; pointer-events: none;
  font-size: 34px; font-weight: 900; letter-spacing: 6px; color: #ec6f90;
  border: 4px solid #ec6f90; border-radius: 14px; padding: 4px 18px 4px 24px;
  background: rgba(255, 255, 255, .85);
  transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); opacity: 0;
}
.ship-stamp.on { animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stampIn { to { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; } }
.pack-stage.impact { animation: impact .3s ease-out; }
@keyframes impact { 20% { transform: translate(2px, 3px); } 45% { transform: translate(-3px, -1px); } 70% { transform: translate(1px, -2px); } }
.ribbon-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.ribbon-dots.live .ribbon-guide { display: block; }
.ribbon-path { filter: drop-shadow(0 0 4px rgba(236, 127, 156, .8)); }
.tie-dot { transition: transform .2s var(--spring), background .2s; }
.ribbon-dots:not(.live) .tie-dot { display: none; }
.tie-dot.hit { animation: pop .35s var(--spring); }
.seal-dot { animation: dashSpin 6s linear infinite; }
@keyframes dashSpin { to { transform: rotate(360deg); } }
.seal-ring.near { border-color: #ffd36e; box-shadow: 0 0 18px #ffd36e; }
.seal-target { top: 66%; }
.deco-slot { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); transition: transform .2s var(--spring), opacity .2s; }
.deco-slot.moving { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.18); z-index: 5; }
.deco-slot.out { opacity: .4; }
.deco-slot img.pop { animation: decoIn .5s var(--spring); }
@keyframes decoIn { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.float-text.perfect { color: #ff6f9a; font-size: 32px; }
.float-text.miss { color: #a99aa0; }
.float-text.small { font-size: 16px; color: var(--ink-soft); -webkit-text-stroke: 3px #fff; top: 12%; }
.spark.star { clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); width: 14px; height: 14px; border-radius: 0; }

/* ---------- 晒单卡 ---------- */
.review-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.review-card.drop { animation: cardDrop .7s var(--spring); }
@keyframes cardDrop { 0% { transform: translateY(-60px) scale(.85) rotate(-3deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.review-card .burst { top: 30%; }
.combo-badge {
  align-self: center; margin-top: -4px;
  font-size: 13px; font-weight: 900; color: #fff; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(90deg, #ff9a8b, #ff6a88, #ff99ac); background-size: 200% 100%;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(255, 106, 136, .4);
  animation: comboShine 2s linear infinite;
}
.checklist li { animation: riseIn .4s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 70ms); }
.stars span.on { animation: starpop .5s var(--spring); }
.rv-money .sum { transition: transform .3s; }

/* ---------- 打烊账本 ---------- */
.ledger { perspective: 900px; }
.ledger.open .ledger-page.left { animation: pageL .8s var(--ease-out) both; transform-origin: right center; }
.ledger.open .ledger-page.right { animation: pageR .8s var(--ease-out) .1s both; transform-origin: left center; }
@keyframes pageL { from { transform: rotateY(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pageR { from { transform: rotateY(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ledger.open .lg-rows div { animation: riseIn .4s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * 80ms); }
.lg-goals { display: flex; flex-direction: column; gap: 3px; text-align: left; font-size: 11px; color: #9a7b6e; margin-top: 4px; padding-top: 6px; border-top: 1px dashed #e3d3c0; }
.lg-goals div { display: flex; gap: 5px; align-items: center; line-height: 1.35; }
.lg-goals i { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.5px solid #d8c3b5; }
.lg-goals .ok { color: #5a4038; }
.lg-goals .ok i { background: var(--pink-2); border-color: var(--pink-2); }
.ledger-cat { position: absolute; left: -10px; bottom: -44px; width: 46%; pointer-events: none; }
.ledger-cat img { width: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); animation: breathe 3.2s ease-in-out infinite; transform-origin: bottom center; }
.zz { position: absolute; left: 62%; top: 10%; font-weight: 900; color: #fff; text-shadow: 0 0 6px #b9a8ff; opacity: 0; animation: zz 3s ease-out infinite; }
.zz.z1 { font-size: 13px; }
.zz.z2 { font-size: 16px; animation-delay: 1s; }
.zz.z3 { font-size: 20px; animation-delay: 2s; }
@keyframes zz { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(26px, -46px) rotate(12deg); opacity: 0; } }
.night-actions { display: flex; gap: 10px; width: 100%; justify-content: center; }
.night-actions .btn.gold { flex: 1; width: auto; max-width: 240px; }
.btn.ghost-night {
  flex: 0 0 auto; color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ledger-cat ~ * { }
.ledger { margin-bottom: 34px; }
.ledger-page.left { gap: 4px; }

/* ---------- 进货 ---------- */
.store-tip { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: -4px; }
.store-grid {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 4px 10px; align-content: start;
}
.store-grid::-webkit-scrollbar { display: none; }
.sc {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--cream); border-radius: 18px; padding: 10px 8px; border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--line), 0 5px 14px rgba(214, 120, 148, .16);
  animation: tileIn .5s var(--spring) both; animation-delay: calc(var(--i) * 50ms);
}
.sc-img { width: 100%; height: 78px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: radial-gradient(circle, #fff 40%, #fde6ec 100%); }
.sc-img img { max-width: 80%; max-height: 70px; object-fit: contain; }
.sc:not(.owned) .sc-img img { animation: bob 3s ease-in-out infinite; }
.sc-name { font-size: 14px; font-weight: 800; }
.sc-sub { font-size: 11px; color: var(--ink-soft); line-height: 1.35; min-height: 15px; }
.sc-buy {
  font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; touch-action: manipulation;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
  color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 4px 16px;
  background: linear-gradient(180deg, #f9b3c4, #ec7f9c);
  box-shadow: 0 0 0 2px #f2a6b9, 0 3px 0 #d9677f; transition: transform .2s var(--spring);
}
.sc-buy:active { transform: scale(.92) translateY(2px); }
.sc-buy.poor { background: linear-gradient(180deg, #eee3e6, #d9c8cd); box-shadow: 0 0 0 2px #e3d3d8, 0 3px 0 #c4b0b6; color: #fff; }
.sc-owned { font-size: 12px; font-weight: 800; color: #3a9e72; background: #e6f6ef; padding: 4px 14px; border-radius: 999px; margin-top: 2px; }
.sc.owned { background: #fbfffd; }
.sc.just { animation: unlockFlip .8s var(--spring); }
@keyframes unlockFlip { 0% { transform: rotateY(0) scale(1); } 40% { transform: rotateY(90deg) scale(1.08); } 100% { transform: rotateY(0) scale(1); box-shadow: 0 0 0 3px #ffd36e, 0 0 24px rgba(255, 211, 110, .7); } }
.sc.perk .sc-img { background: radial-gradient(circle, #fff 40%, #efe6ff 100%); }

/* ---------- 今日目标弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 110; background: rgba(90, 40, 60, 0); pointer-events: none;
  transition: background .3s; display: flex; align-items: flex-end; justify-content: center;
}
.sheet-mask.on { background: rgba(90, 40, 60, .38); pointer-events: auto; }
.sheet {
  width: 100%; max-width: 480px; background: linear-gradient(180deg, #fff8fa, #fdeef3);
  border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(120, 50, 70, .25);
  transform: translateY(105%); transition: transform .45s var(--spring);
  display: flex; flex-direction: column; gap: 12px;
}
.sheet-mask.on .sheet { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #f0c5d1; align-self: center; }
.sheet-title { text-align: center; font-size: 20px; font-weight: 900; color: #ea7895; letter-spacing: 3px; }
.goal-list { display: flex; flex-direction: column; gap: 10px; }
.goal-row { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 0 0 2px var(--line); }
.sheet-mask.on .goal-row { animation: riseIn .45s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * 80ms); }
.gr-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.gr-reward { display: flex; align-items: center; gap: 3px; font-weight: 900; color: #c88a1c; }
.gr-bar { height: 8px; border-radius: 999px; background: #f6e3e8; margin-top: 7px; overflow: hidden; }
.gr-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f9b3c4, #ec7f9c); transition: width .8s var(--ease-out); }
.gr-num { font-size: 11px; color: var(--ink-soft); text-align: right; margin-top: 3px; }
.goal-row.done { box-shadow: 0 0 0 2px #a9dcc5; background: #f4fbf7; }
.goal-row.done .gr-bar i { background: linear-gradient(90deg, #a9e3c8, #6cc59d); }
.goal-row.done .gr-num { color: #3a9e72; font-weight: 800; }

/* ---------- 提示条 ---------- */
#toast { transition: opacity .25s, transform .35s var(--spring); max-width: 92vw; white-space: normal; text-align: center; font-size: 14px; }
#toast.goal { color: #8a5a1c; background: linear-gradient(180deg, #fff6d6, #ffe7a6); box-shadow: 0 0 0 2px #f3cd6e, 0 8px 20px rgba(240, 168, 42, .35); }

/* 矮屏下的新元素 */
@media (max-height: 760px) {
  .pet-cat { width: 52px; }
  .goal-pill, .store-btn { min-height: 32px; padding: 4px 10px; }
  .sc-img { height: 64px; }
}
@media (max-height: 680px) {
  .shop-bar { margin-bottom: -2px; }
  .screen-title { font-size: 20px; }
  .buyer-card { padding: 7px 10px; }
  .avatar-ring { width: 54px; height: 54px; }
  .slip { padding: 7px 10px; }
  .slip-grid { font-size: 12px; }
  .pet-cat { width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #ambient { display: none; }
}
.ledger-cat { animation: none; filter: none; }
.ledger-cat { left: auto; right: -12px; bottom: -40px; width: 44%; }
.ledger-cat img { transform: scaleX(-1); animation: none; }
.ledger-cat .zz { left: 18%; }
.btn.ghost-night { background: rgba(70, 50, 130, .45); border-color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* =====================================================================
   v3：圆润字体、显眼的等级/天数/粉丝、升级、转盘、福袋、爆单、音乐
   ===================================================================== */
@font-face { font-family: "MiaoRound"; src: url("assets/fonts/zcool-kuaile.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "MiaoRound2"; src: url("assets/fonts/huninn-fallback.woff2") format("woff2"); font-display: swap; }
html, body, button, .btn, input { font-family: "MiaoRound", "MiaoRound2", "Yuanti SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
body { letter-spacing: .3px; }
.btn, .tile .tn, .sc-name, .screen-title, .rv-title, .logo-title, .sheet-title, .lv-title, .wheel-title, .bag-title { font-weight: 400; }
b, strong { font-weight: 400; }

/* ---------- 新 HUD ---------- */
.hud { gap: 6px; align-items: stretch; min-height: 50px; }
.hud-lv {
  flex: 1.4; min-width: 0; display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94); border-radius: 18px; padding: 4px 10px 4px 4px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), 0 4px 12px rgba(214, 120, 148, .2);
}
.hud-lv.bump { animation: bump .5s var(--spring); }
.lv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-name { font-size: 12px; color: var(--pink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.lv-bar { height: 7px; border-radius: 999px; background: #f6dfe6; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffc0d0, #ec6f90); box-shadow: 0 0 6px rgba(236, 111, 144, .6); transition: width .3s; }
.lv-fans { font-size: 11px; color: var(--ink-soft); line-height: 1.1; white-space: nowrap; }
.lv-fans b { font-size: 16px; color: var(--pink-deep); }
.lv-fans small { font-size: 10px; }

.medal {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, #ffd3df 60%, #f59ab3 100%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f6a9bd, 0 3px 8px rgba(214, 90, 130, .35);
}
.medal .ti { position: absolute; inset: 7px; background: #ef6f92; clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%); }
.medal b { position: relative; z-index: 1; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(150, 40, 70, .6); margin-top: 1px; }
.medal.tier-diamond { background: radial-gradient(circle at 35% 30%, #fff 0 20%, #cfe9ff 60%, #7cb8f2 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #8cc5f5, 0 3px 8px rgba(70, 130, 210, .35); }
.medal.tier-diamond .ti { background: #4b9be6; clip-path: polygon(50% 100%, 0 38%, 22% 6%, 78% 6%, 100% 38%); }
.medal.tier-crown { background: radial-gradient(circle at 35% 30%, #fff 0 20%, #e8dcff 60%, #a98bf0 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #b9a1f5, 0 3px 8px rgba(120, 80, 210, .35); }
.medal.tier-crown .ti { background: #8a63e6; clip-path: polygon(0 30%, 25% 55%, 50% 10%, 75% 55%, 100% 30%, 88% 92%, 12% 92%); }
.medal.tier-gold { background: radial-gradient(circle at 35% 30%, #fff 0 20%, #fff0b8 55%, #f2b73c 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f3c95d, 0 0 14px rgba(255, 200, 60, .7); animation: goldGlow 2s ease-in-out infinite; }
.medal.tier-gold .ti { background: #e09a12; clip-path: polygon(0 30%, 25% 55%, 50% 10%, 75% 55%, 100% 30%, 88% 92%, 12% 92%); }
@keyframes goldGlow { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f3c95d, 0 0 22px rgba(255, 200, 60, 1); } }
.medal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); background-size: 250% 100%; animation: medalShine 3.5s ease-in-out infinite; }
@keyframes medalShine { 0%, 70% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.medal.big { width: 120px; height: 120px; }
.medal.big .ti { inset: 20px; }
.medal.big b { font-size: 40px; }

.hud-day {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #f9a9bf, #ec7393); border-radius: 16px; padding: 4px 10px;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(217, 87, 122, .35);
}
.day-tag { font-size: 12px; color: #fff; line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 2px rgba(160, 40, 80, .4); }
.day-tag b { font-size: 21px; margin: 0 2px; display: inline-block; }
.day-tag.bump b { animation: bump .6s var(--spring); }
.hud-day .hearts { display: flex; gap: 2px; }
.hud-day .hearts .h {
  width: 9px; height: 9px; background: rgba(255, 255, 255, .4);
  clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%);
}
.hud-day .hearts .h.on { background: #fff; }
.hud-money { position: relative; flex: none; display: flex; align-items: center; }
.hud .coin-pill { font-size: 17px; padding: 4px 12px 4px 4px; height: 38px; align-self: center; }
.hud .coin-pill .coin { width: 28px; height: 28px; }
.hud-combo { display: none; }
.hud-combo.on {
  display: block; position: absolute; right: -2px; bottom: -9px;
  font-size: 10.5px; color: #fff; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(90deg, #ff9a8b, #ff6a88); box-shadow: 0 0 0 2px #fff;
}
.hud.fever .coin-pill { box-shadow: 0 0 0 2px #ffd36e, 0 0 16px rgba(255, 180, 60, .9); animation: feverPill 1s ease-in-out infinite; }
@keyframes feverPill { 50% { transform: scale(1.05); } }
.hud .hud-stats { display: none; }

/* ---------- 爆单 ---------- */
#app.fever::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(255, 205, 90, .9), inset 0 0 40px rgba(255, 170, 60, .55);
  animation: feverEdge 1.2s ease-in-out infinite;
}
@keyframes feverEdge { 50% { box-shadow: inset 0 0 0 4px rgba(255, 120, 150, .9), inset 0 0 56px rgba(255, 120, 150, .55); } }
.fever-banner {
  position: fixed; left: 50%; top: 28%; z-index: 125; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.fever-banner b {
  font-size: 46px; color: #ffd84d; letter-spacing: 4px;
  -webkit-text-stroke: 3px #e5487a; paint-order: stroke fill;
  text-shadow: 0 5px 0 #fff, 0 10px 24px rgba(229, 72, 122, .55);
}
.fever-banner span { font-size: 16px; color: #fff; background: #ec6f90; padding: 3px 14px; border-radius: 999px; box-shadow: 0 0 0 3px #fff; }
.fever-banner.show { animation: feverIn 2.2s var(--ease-out) forwards; }
@keyframes feverIn {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(-10deg); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; }
}

/* ---------- 顶栏按钮 ---------- */
.wheel-btn { position: relative; padding-left: 6px; }
.wheel-btn.has { box-shadow: 0 0 0 2px #ffd36e, 0 0 12px rgba(255, 200, 80, .7); animation: feverPill 1.4s ease-in-out infinite; }
.mini-wheel {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: conic-gradient(#ffd9e3 0 45deg, #fff3f6 45deg 90deg, #ffe08a 90deg 135deg, #e9dcff 135deg 180deg, #ffd9e3 180deg 225deg, #fff3f6 225deg 270deg, #ffe8c7 270deg 315deg, #ffd9e3 315deg);
  box-shadow: 0 0 0 2px #ec7f9c; animation: miniSpin 6s linear infinite;
}
@keyframes miniSpin { to { transform: rotate(360deg); } }
.store-btn .count {
  position: absolute; right: -4px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ff5f7e; color: #fff; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.music-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 2px var(--line);
  display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 10px;
}
.music-btn i { width: 3px; height: 14px; border-radius: 2px; background: var(--pink-2); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.music-btn i:nth-child(2) { animation-delay: .2s; }
.music-btn i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.music-btn.off i { animation: none; transform: scaleY(.3); background: #d8c3ca; }
.music-btn.off::after { content: ""; position: absolute; width: 24px; height: 2.5px; background: #d8a3b1; transform: rotate(-40deg); margin-bottom: 7px; }
.music-btn { position: relative; }
.music-btn.corner { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 5; }
.shop-bar .goal-pill { min-width: 0; }
.shop-bar .store-btn span { white-space: nowrap; }

/* ---------- 晒单标签与转盘按钮 ---------- */
.rv-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.rv-tags:empty { display: none; }
.tg { font-size: 12px; padding: 3px 10px; border-radius: 999px; color: #fff; animation: tileIn .5s var(--spring) both; animation-delay: calc(1.4s + var(--i) * 120ms); }
.tg.fever { background: linear-gradient(90deg, #ffb347, #ff6a88); }
.tg.dbl { background: linear-gradient(90deg, #a18cd1, #fbc2eb); }
.tg.fast { background: linear-gradient(90deg, #4facfe, #7ed3f5); }
.tg.rush { background: linear-gradient(90deg, #ff9966, #ff5e62); }
.tg.spin { background: linear-gradient(90deg, #f6d365, #fda085); }
.btn.spin {
  color: #8a4a00; border-color: #fff7dc; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: linear-gradient(180deg, #fff1b8, #ffd36e);
  box-shadow: 0 0 0 2px #f3c95d, 0 4px 0 #d9a53a, 0 0 18px rgba(255, 200, 80, .6);
  animation: spinGlow 1.2s ease-in-out infinite;
}
@keyframes spinGlow { 50% { transform: scale(1.03); box-shadow: 0 0 0 2px #f3c95d, 0 4px 0 #d9a53a, 0 0 28px rgba(255, 200, 80, .95); } }
.rv-actions { gap: 8px; }

/* ---------- 弹层通用 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 115; display: flex; align-items: center; justify-content: center;
  background: rgba(80, 30, 55, .62);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s linear .3s;
}
.overlay.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s, visibility 0s; }
.overlay .burst { position: absolute; left: 50%; top: 42%; }
.overlay.opening .lv-box, .overlay.opening .wheel-box, .overlay.opening .bag-box { animation: ovPop .6s var(--spring); }
@keyframes ovPop { from { transform: scale(.6) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 升级 */
.ov-rays {
  position: absolute; left: 50%; top: 40%; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  background: repeating-conic-gradient(rgba(255, 236, 170, .32) 0 10deg, transparent 10deg 22deg);
  border-radius: 50%; mask-image: radial-gradient(circle, #000 25%, transparent 65%); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 65%);
  animation: rays 14s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.lv-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(86vw, 340px); text-align: center; }
.lv-kicker { font-size: 38px; color: #fff; letter-spacing: 4px; -webkit-text-stroke: 3px #ec6f90; paint-order: stroke fill; text-shadow: 0 6px 18px rgba(236, 111, 144, .6); }
.overlay.on .medal.big { animation: medalIn .9s var(--spring) .1s both, bob 3s ease-in-out 1s infinite; }
@keyframes medalIn { from { transform: scale(0) rotate(-200deg); } to { transform: none; } }
.lv-title { font-size: 18px; color: #fff; }
.lv-title b { display: block; font-size: 30px; color: #ffe58f; -webkit-text-stroke: 2px #d9577a; paint-order: stroke fill; }
.lv-rewards { display: flex; gap: 10px; }
.lv-rewards span { display: flex; align-items: center; gap: 6px; background: #fff; color: var(--pink-deep); font-size: 16px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 0 0 2px #ffd36e; }
.lv-box .btn { width: 70%; flex: none; }

/* 转盘 */
.wheel-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 380px); }
.wheel-title { font-size: 36px; color: #ffe58f; letter-spacing: 4px; -webkit-text-stroke: 3px #e5487a; paint-order: stroke fill; text-shadow: 0 5px 0 #fff; }
.wheel-sub { font-size: 14px; color: #fff; }
.wheel-wrap { position: relative; width: min(80vw, 300px); aspect-ratio: 1; margin: 6px 0; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 8px #ec7f9c, 0 0 0 12px #fff, 0 0 0 15px #f3c95d, 0 14px 30px rgba(0, 0, 0, .35);
}
.wheel.spinning { transition: transform 4.2s cubic-bezier(.15, .7, .1, 1); }
.wline { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; background: rgba(236, 127, 156, .35); transform-origin: bottom center; }
.wl { position: absolute; left: 50%; top: 0; width: 70px; height: 50%; margin-left: -35px; transform-origin: bottom center; display: flex; justify-content: center; }
.wl span { margin-top: 12%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wl em { font-style: normal; font-size: 13px; color: var(--ink); white-space: nowrap; }
.wl .wi { width: 22px; height: 22px; display: block; background-position: center; background-repeat: no-repeat; background-size: contain; }
/* 10 格之后窄格子要缩一点，不然文字会担到隔壁 */
/* 窄格子：只留图标，文字会在隔壁那边堆叠 */
.wl.narrow > span { margin-top: 20%; }
.wl.narrow em { display: none; }
.wl.narrow .wi { width: 21px; height: 21px; }
/* 中等宽度的格子：字缩到 10px，三字标题也放得下 */
.wl.tiny em { font-size: 10px; }
.wl.tiny .wi { width: 19px; height: 19px; }
.wl.wide em { font-size: 14px; }
.wi { background-position: center; background-repeat: no-repeat; background-size: contain; }
/* 转盘 / 结果图标：直接复用游戏里的美术图标（金币、粉丝、盲盒） */
.wl-coin .wi { background-image: url("assets/ach/hud-coin-v3.svg"); filter: drop-shadow(0 1px 2px rgba(150, 90, 20, .28)); }
.wl-fans .wi { background-image: url("assets/ach/hud-fans.webp"); }
.wl-stock .wi { background-image: url("assets/ach/hubq-store.webp"); }
.wl-wear .wi { background-image: url("assets/ach/hubq-wear.webp"); }
.wl-decor .wi { background-image: url("assets/ach/hubq-decor.webp"); }
.wl-energy .wi { background-image: url("assets/ach/hud-energy.webp"); }
.wl-double .wi { background-image: url("assets/ach/hud-double.png"); width: 24px; height: 22px; }
.wl-pet .wi { background-image: url("assets/cutouts/mascot-cat-sitting.webp"); width: 28px; height: 28px; }
.wl-mystery .wi { background-image: url("assets/cutouts/box-kraft-closed.webp"); width: 26px; height: 26px; }
/* 大奖：和其他格子一样的金币图标与字号，只保留金色扇区 */
.wl-jackpot .wi { background-image: url("assets/ach/hud-coin-v3.svg"); }
.wi.ic-jackpot { background-image: url("assets/ach/hud-coin-v3.svg"); }
.wi.ic-double { background-image: url("assets/ach/hud-double.png"); }
/* 自选三券 */
.wl-pickWear .wi { background-image: url("assets/ach/hubq-wear.webp"); }
.wl-pickDecor .wi { background-image: url("assets/ach/hubq-decor.webp"); }
.wl-pickSign .wi { background-image: url("assets/ach/hud-sign.png"); }
.wi.ic-pickWear { background-image: url("assets/ach/hubq-wear.webp"); }
.wi.ic-pickDecor { background-image: url("assets/ach/hubq-decor.webp"); }
.wi.ic-pickSign { background-image: url("assets/ach/hud-sign.png"); }

/* 保底盖章：转盘下方 10 颗爪印 */
.wheel-stamps { width: min(80vw, 300px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 5px; margin-top: -2px; }
.wheel-stamps em { flex: 0 0 100%; text-align: center; font-style: normal; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.ws { width: 17px; height: 17px; background: url("assets/ach/icon-paw.webp") center / contain no-repeat; filter: grayscale(1) opacity(.25); transition: transform .25s var(--spring), filter .25s; }
.ws.on { filter: none; transform: scale(1.08); }
.ws.last { border-radius: 50%; box-shadow: 0 0 0 1.5px #f3c95d; }

/* 稀有度光晕 */
#ov-wheel.res-rare .wheel-box { box-shadow: 0 0 0 3px #ffd7e4, 0 0 40px rgba(255, 150, 190, .55); }
#ov-wheel.res-epic .wheel-box { box-shadow: 0 0 0 3px #e2c7ff, 0 0 56px rgba(190, 140, 255, .62); }
#ov-wheel.res-jackpot .wheel-box { box-shadow: 0 0 0 4px #ffd36e, 0 0 72px rgba(255, 190, 80, .85); }

/* 自选券三选一 */
.pick-box { width: min(88vw, 372px); padding: 16px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 24px; border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .pick-box { animation: ovPop .6s var(--spring); }
.pick-title { font-size: 19px; color: var(--pink-deep); }
.pick-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: -4px; }
.pick-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 2px; }
.pick-card { font: inherit; cursor: pointer; border: none; background: #fff; border-radius: 16px; padding: 8px 6px 6px;
  box-shadow: 0 0 0 1.5px #f3dfe5, 0 3px 8px rgba(214, 120, 148, .12); display: flex; flex-direction: column; align-items: center; gap: 3px;
  animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
.pick-card .pc-img { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pick-card .pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pick-card em { font-style: normal; font-size: 12px; color: var(--ink); text-align: center; line-height: 1.25; }
.pick-card small { font-size: 10px; color: var(--ink-soft); }
.pick-card:active { transform: translateY(2px) scale(.98); }
.pick-skip { font-size: 12.5px; color: var(--ink-soft); }
/* 行内小图标：结果汇总、单项奖励里用 */
.wi.ic-coin { background-image: url("assets/ach/hud-coin-v3.svg"); }
.wi.ic-fans { background-image: url("assets/ach/hud-fans.webp"); }
.wi.ic-energy { background-image: url("assets/ach/hud-energy.webp"); }
.wi.ic-stock { background-image: url("assets/ach/hubq-store.webp"); }
.wi.ic-wear { background-image: url("assets/ach/hubq-wear.webp"); }
.wi.ic-decor { background-image: url("assets/ach/hubq-decor.webp"); }

.wheel-pointer {
  position: absolute; left: 50%; top: -22px; z-index: 3; width: 34px; height: 44px; margin-left: -17px;
  background: linear-gradient(180deg, #ff8fb0, #e5487a); clip-path: polygon(50% 100%, 0 30%, 15% 5%, 50% 0, 85% 5%, 100% 30%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transform-origin: 50% 20%;
}
.wheel-pointer.flick { animation: flick .12s ease-out; }
@keyframes flick { 50% { transform: rotate(-14deg); } }
.wheel-hub {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  border: 4px solid #fff; cursor: pointer; font-family: inherit; font-size: 24px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffb3c8, #e5487a);
  box-shadow: 0 0 0 4px #f3c95d, 0 6px 14px rgba(0, 0, 0, .35); text-shadow: 0 2px 2px rgba(150, 30, 70, .5);
  animation: hubPulse 1.1s ease-in-out infinite; transition: transform .2s var(--spring);
}
.wheel-hub:active { transform: scale(.9); }
.wheel-hub:disabled { animation: none; filter: grayscale(.6); opacity: .8; cursor: default; }
@keyframes hubPulse { 50% { transform: scale(1.08); } }
.wheel-lights { position: absolute; inset: -11px; pointer-events: none; }
.wheel-lights i { position: absolute; left: 50%; top: 0; width: 8px; height: 50%; margin-left: -4px; transform-origin: bottom center; }
.wheel-lights i::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 6px #ffd36e; animation: bulb 1s steps(1) infinite; }
.wheel-lights i:nth-child(odd)::before { animation-delay: .5s; }
.overlay.spinning .wheel-lights i::before { animation-duration: .25s; }
@keyframes bulb { 50% { background: #ff8fb0; box-shadow: 0 0 6px #ff8fb0; } }
.wheel-result { min-height: 30px; font-size: 20px; color: #fff; text-align: center; opacity: 0; transform: scale(.6); }
.wheel-result.show { animation: resultIn .5s var(--spring) forwards; }
.wheel-result.big { font-size: 24px; color: #ffe58f; -webkit-text-stroke: 1.5px #d9577a; paint-order: stroke fill; }
@keyframes resultIn { to { opacity: 1; transform: none; } }
.wheel-box .btn { width: 60%; flex: none; }

/* 福袋 */
.bag-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(86vw, 340px); text-align: center; }
.bag-title { font-size: 30px; color: #fff; letter-spacing: 2px; -webkit-text-stroke: 3px #ec6f90; paint-order: stroke fill; }
.bag-sub { font-size: 14px; color: #fff; }
.bag { border: none; background: none; cursor: pointer; width: 190px; padding: 0; animation: bagWiggle 1.6s ease-in-out infinite; }
.bag img { width: 100%; display: block; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
@keyframes bagWiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg) scale(1.04); } 80% { transform: rotate(6deg) scale(1.04); } 90% { transform: rotate(-3deg); } }
.bag.open { animation: bagOpen .5s var(--spring) forwards; }
@keyframes bagOpen { 40% { transform: scale(1.25, .8); } 100% { transform: scale(.85) translateY(10px); opacity: .5; } }
.bag-result { min-height: 40px; font-size: 32px; color: #ffe58f; -webkit-text-stroke: 2px #d9577a; paint-order: stroke fill; opacity: 0; }
.bag-result.show { animation: resultIn .5s var(--spring) forwards; }
.bag-box .btn { width: 70%; flex: none; }

@media (max-height: 680px) {
  .hud { min-height: 44px; }
  .medal { width: 36px; height: 36px; }
  .medal b { font-size: 13px; }
  .day-tag b { font-size: 18px; }
  .hud .coin-pill { height: 34px; font-size: 15px; }
  .hud .coin-pill .coin { width: 24px; height: 24px; }
  .music-btn { width: 32px; height: 32px; }
}
@media (max-width: 370px) {
  .hud-lv { padding-right: 6px; }
  .lv-name { font-size: 11px; }
  .shop-bar { gap: 6px; }
  .goal-pill .gp-dots i { width: 7px; height: 7px; }
  .store-btn { padding: 4px 8px; }
}
.hud-combo.on { bottom: auto; top: -9px; right: -4px; z-index: 2; }

/* =====================================================================
   v4：开始界面、订单小票（看图）、九宫格托盘
   ===================================================================== */
/* ---------- 开始界面 ---------- */
.title-scrim { background: linear-gradient(180deg, rgba(255, 240, 246, 0) 0%, rgba(255, 240, 246, 0) 55%, rgba(255, 232, 240, .85) 100%); }
.title-content { justify-content: space-between; padding-top: calc(54px + env(safe-area-inset-top)); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.title-logo { text-align: center; }
.logo-title.big { font-size: 58px; letter-spacing: 8px; }
.title-logo .logo-sub { margin-top: 10px; font-size: 13px; }
.title-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.title-save {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); border-radius: 18px; padding: 8px 16px 8px 8px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow); min-height: 54px;
}
.title-save > div { display: flex; flex-direction: column; }
.title-save b { font-size: 16px; color: var(--pink-deep); }
.title-save span { font-size: 12px; color: var(--ink-soft); }
.title-save > div:only-child { padding-left: 8px; }
.start-btn { flex: none; width: min(78%, 300px); min-height: 62px; font-size: 24px; letter-spacing: 6px; animation: startPulse 1.8s ease-in-out infinite; }
@keyframes startPulse { 50% { transform: scale(1.05); } }
#s-title .btn-link.light { color: var(--pink-deep); text-shadow: none; }

/* ---------- 订单小票 ---------- */
.ticket {
  position: relative; background: #fffdfb; border-radius: 16px; padding: 10px 12px 12px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow);
}
.ticket::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -6px; height: 10px;
  background: radial-gradient(circle at 5px 10px, transparent 5px, #fffdfb 5.5px) 0 0 / 10px 10px repeat-x;
}
.ticket.slip-in { animation: riseIn .5s var(--spring); }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px dashed var(--line); padding-bottom: 5px; margin-bottom: 8px; }
.tk-head span { font-size: 17px; color: var(--pink-deep); letter-spacing: 2px; }
.tk-head small { font-size: 12px; color: var(--ink-soft); }
.tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.tc { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.tc-img {
  position: relative; width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #fff 45%, #fde8ee 100%); box-shadow: inset 0 0 0 2px #f6d3dc;
}
.tc-img img { max-width: 82%; max-height: 82%; object-fit: contain; }
.tc span { font-size: 12px; color: var(--ink); text-align: center; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tc.no .tc-img { background: #f6f0f2; box-shadow: inset 0 0 0 2px #eadde1; }
.tc.no span { color: #b8a5ab; }
.tc-x { width: 40%; height: 40%; position: relative; }
.tc-x::before, .tc-x::after { content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 100%; margin-left: -2px; border-radius: 2px; background: #d9c3ca; transform: rotate(45deg); }
.tc-x::after { transform: rotate(-45deg); }
.tc.wish .tc-img { background: radial-gradient(circle, #fff 45%, #fff3c9 100%); box-shadow: inset 0 0 0 2px #f3c95d, 0 0 10px rgba(255, 205, 90, .55); animation: wishGlow 1.6s ease-in-out infinite; }
.tc.wish span { color: #c88a1c; }
@keyframes wishGlow { 50% { box-shadow: inset 0 0 0 2px #f3c95d, 0 0 18px rgba(255, 205, 90, .95); } }
.tc.ok .tc-img::after {
  content: "✓"; position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%;
  background: #4cc38a; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff; animation: pop .4s var(--spring);
}
.tc.ok .tc-img { box-shadow: inset 0 0 0 2px #a9dcc5; background: radial-gradient(circle, #fff 45%, #e3f6ec 100%); }
.tc.tc-flash .tc-img { animation: hintFlash .6s ease-out 2; }
@keyframes hintFlash { 50% { transform: scale(1.18); box-shadow: inset 0 0 0 3px #ff6f91, 0 0 16px rgba(255, 111, 145, .8); } }
#s-shop .chat { gap: 6px; }
#s-shop .msg { font-size: 14.5px; padding: 8px 12px; }

/* ---------- 配货 / 打包 顶部订单条 ---------- */
.order-strip {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255, 252, 250, .95); border-radius: 18px; padding: 7px 10px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow);
}
.order-strip .slots { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.order-strip .oc.price { flex: none; font-size: 12px; padding: 3px 8px; }
.order-strip .tc { width: 50px; flex: none; }
.order-strip .tc-img { max-width: 44px; border-radius: 11px; }
.order-strip .tc span { font-size: 10.5px; }
.order-strip .tc.ok .tc-img::after { width: 16px; height: 16px; font-size: 10px; right: -4px; top: -4px; }
.p-time { flex: none; font-size: 12px; color: #4b9be6; min-width: 46px; text-align: right; }
.p-time.gone { color: var(--ink-soft); }

/* ---------- 九宫格托盘 ---------- */
.grid-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 2px 2px 4px; }
.grid-tray.idle { display: none; }
#pack-tray { display: flex; justify-content: center; gap: 8px; }
#pack-tray .gt { width: calc((100% - 32px) / 5); max-width: 84px; }
.gt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 3px 5px; border-radius: 16px; border: 2px solid #fff; cursor: pointer; touch-action: manipulation;
  background: var(--cream); color: var(--ink); font-family: inherit;
  box-shadow: 0 0 0 2px var(--line), 0 4px 10px rgba(214, 120, 148, .16);
  transition: transform .2s var(--spring), opacity .25s, filter .25s;
}
.gt:active { transform: scale(.9); }
.gt-img { width: 100%; aspect-ratio: 1; max-height: 64px; display: flex; align-items: center; justify-content: center; }
.gt-img img { max-width: 88%; max-height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(160, 80, 100, .22)); }
.gt-name { font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gt-extra { font-size: 11px; color: #c88a1c; display: flex; align-items: center; gap: 2px; }
.gt.used { opacity: .3; transform: scale(.86); filter: grayscale(.7); pointer-events: none; }
.gt.nope { animation: nope .45s ease-out; }
@keyframes nope {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px) rotate(-4deg); box-shadow: 0 0 0 3px #ff7b98, 0 0 14px rgba(255, 90, 120, .6); }
  40% { transform: translateX(6px) rotate(3deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.grid-tray.stagger .gt { animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.fly-item { position: fixed; z-index: 131; object-fit: contain; pointer-events: none; transition: transform .38s cubic-bezier(.4, .1, .3, 1.2), opacity .38s ease-in; filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .35)); }
.float-mini { position: fixed; z-index: 132; transform: translate(-50%, -50%); font-size: 15px; color: #ff5f7e; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; pointer-events: none; animation: floatup 0.9s ease-out forwards; }

/* 配货台：手机摆在展示台中间，更大 */
#s-work .stage { min-height: 150px; }
#s-work .phone { height: 94%; }
.phone.done { animation: phoneDone .7s var(--spring); }
@keyframes phoneDone { 30% { transform: translate(-50%, -50%) scale(1.08) rotate(-3deg); } 60% { transform: translate(-50%, -50%) scale(.98) rotate(2deg); } 100% { transform: translate(-50%, -50%); } }
.say { font-size: 15px; }

/* 打包台 */
.pack-footer:has(.btn:not(.hidden)) { display: flex; }
.pack-footer { min-height: 0; }
.content.tray-hidden .pack-stage { min-height: 260px; }
.tg.wish { background: linear-gradient(90deg, #f6d365, #ff9a9e); }
.tg.clean { background: linear-gradient(90deg, #84fab0, #8fd3f4); }

@media (max-height: 760px) {
  .tk-grid { gap: 6px 5px; }
  .tc-img { max-width: 54px; }
  .logo-title.big { font-size: 48px; }
  .gt-img { max-height: 54px; }
  .flow .fs .ic { width: 40px; height: 40px; }
  .flow::before, .flow-fill { top: 19px; }
}
@media (max-height: 680px) {
  .tc-img { max-width: 46px; border-radius: 11px; }
  .tc span { font-size: 11px; }
  .tk-head { padding-bottom: 3px; margin-bottom: 5px; }
  .ticket { padding: 8px 10px; }
  .gt-img { max-height: 46px; }
  .gt { padding: 4px 2px; }
  .gt-name { font-size: 11px; }
  .order-strip .tc { width: 42px; }
  .order-strip .tc-img { max-width: 36px; }
  .flow .lb { display: none; }
  .flow .fs .ic { width: 34px; height: 34px; }
  .flow::before, .flow-fill { top: 16px; }
  #s-shop .msg { font-size: 13.5px; padding: 6px 10px; }
  .start-btn { min-height: 54px; font-size: 21px; }
}

/* =====================================================================
   v5：少女心动效 · 开始界面与爱心转场
   ===================================================================== */
:root { --silk: cubic-bezier(.16, 1, .3, 1); --pink-glow: rgba(255, 168, 196, .55); }

/* ---------- 镜头对焦：背景由柔焦慢慢清晰 ---------- */
#s-title.entering .bg { animation: bgFocus 2.2s var(--silk) both; }
@keyframes bgFocus { from { transform: scale(1.1); filter: blur(10px) saturate(1.25) brightness(1.08); } 55% { filter: blur(0) saturate(1.1) brightness(1.03); } to { transform: scale(1); filter: none; } }
#s-title.entering .content > * { animation: none; }
#s-title .bg { transform-origin: 50% 62%; }

/* ---------- 梦幻层：3D 飘落的樱花瓣 + 柔光泡泡 ---------- */
.title-dream { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; perspective: 600px; }
.tp { position: absolute; top: -40px; left: var(--x); animation: tpFall var(--d) linear var(--dl) infinite; will-change: transform; }
.tp b {
  display: block; width: calc(14px * var(--s)); height: calc(11px * var(--s));
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #fff6f8 0%, #ffd3df 45%, #f7a9be 100%);
  box-shadow: inset -1px -1px 2px rgba(231, 115, 143, .35), 0 0 6px rgba(255, 255, 255, .6);
  animation: tpFlutter var(--f) ease-in-out infinite alternate;
  transform-style: preserve-3d;
}
@keyframes tpFall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: 1; }
  25% { transform: translate3d(var(--sw), 25vh, 0); }
  50% { transform: translate3d(calc(var(--sw) * -0.6), 52vh, 0); }
  75% { transform: translate3d(var(--sw), 80vh, 0); }
  92% { opacity: .9; }
  100% { transform: translate3d(calc(var(--sw) * -0.3), 108vh, 0); opacity: 0; }
}
@keyframes tpFlutter {
  0% { transform: rotateX(10deg) rotateY(-20deg) rotateZ(0deg); }
  50% { transform: rotateX(70deg) rotateY(30deg) rotateZ(120deg); }
  100% { transform: rotateX(-40deg) rotateY(80deg) rotateZ(260deg); }
}
.bokeh {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--w); border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, .95), rgba(255, 214, 226, .55) 45%, rgba(255, 190, 210, 0) 72%);
  filter: blur(1.5px); mix-blend-mode: screen; opacity: 0;
  animation: bokeh var(--d) ease-in-out var(--dl) infinite;
}
@keyframes bokeh {
  0%, 100% { opacity: 0; transform: translateY(14px) scale(.8); }
  40%, 60% { opacity: var(--o); }
  50% { transform: translateY(-10px) scale(1.05); }
}

/* ---------- Logo：字一个个"绽放"出来，再有珍珠光泽扫过 ---------- */
.title-logo { position: relative; }
.title-logo .logo-title span {
  position: relative;
  animation: letterBloom 1s var(--spring) both, letterFloat 3.6s ease-in-out infinite;
  animation-delay: calc(.45s + var(--i) * 130ms), calc(1.6s + var(--i) * 220ms);
}
@keyframes letterBloom {
  0% { opacity: 0; transform: translateY(18px) scale(.15) rotate(-24deg); filter: blur(8px); }
  55% { opacity: 1; transform: translateY(-8px) scale(1.14) rotate(5deg); filter: blur(0); }
  78% { transform: translateY(2px) scale(.96) rotate(-2deg); }
  100% { opacity: 1; transform: none; filter: none; }
}
.logo-title span::after {
  content: attr(data-ch); position: absolute; inset: 0; pointer-events: none;
  color: transparent; -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .0) 42%, rgba(255, 255, 255, .95) 49%, rgba(255, 236, 246, .9) 52%, rgba(255, 255, 255, 0) 58%, transparent 62%);
  background-size: 320% 100%; background-position: 160% 0;
  -webkit-background-clip: text; background-clip: text;
  animation: pearlSweep 5.2s ease-in-out infinite; animation-delay: calc(2s + var(--i) * 110ms);
}
@keyframes pearlSweep { 0%, 70% { background-position: 160% 0; } 92%, 100% { background-position: -60% 0; } }

/* 副标题：像缎带一样从中间展开 */
.title-logo .logo-sub { animation: ribbonOpen .9s var(--silk) 1.15s both; }
@keyframes ribbonOpen {
  from { clip-path: inset(-6px 50% -6px 50% round 999px); opacity: 0; transform: translateY(4px); }
  to { clip-path: inset(-6px -6px -6px -6px round 999px); opacity: 1; transform: none; }
}

/* Logo 周围一闪一闪的四角星 */
.logo-stars { position: absolute; inset: -10px -6px -14px; pointer-events: none; z-index: 2; }
.lstar {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2);
  background: radial-gradient(circle, #fff 0 22%, #ffe6f0 40%, #ffc2d4 70%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px rgba(255, 160, 190, .8));
  opacity: 0; animation: twinkle var(--d) ease-in-out var(--dl) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  18% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  32% { opacity: .9; transform: scale(.85) rotate(70deg); }
  48% { opacity: 0; transform: scale(0) rotate(110deg); }
}

/* ---------- 存档卡片 + 开始按钮：依次轻轻落下 ---------- */
#s-title .title-save { animation: saveIn .9s var(--spring) 1.45s both, saveFloat 4.2s ease-in-out 2.4s infinite; }
@keyframes saveIn { from { opacity: 0; transform: translateY(22px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes saveFloat { 50% { transform: translateY(-4px); } }
#s-title .title-save .medal { animation: medalShine 3.4s ease-in-out infinite; }

.title-bottom { position: relative; }
.start-btn { animation: btnRise .9s var(--spring) 1.7s both, btnBreath 2.8s ease-in-out 2.6s infinite; will-change: transform; }
@keyframes btnRise { from { opacity: 0; transform: translateY(30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes btnBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #f2a6b9, 0 4px 0 #d9677f, 0 10px 18px rgba(217, 87, 122, .3), 0 0 0 0 var(--pink-glow); }
  45% { transform: scale(1.025); box-shadow: 0 0 0 2px #f2a6b9, 0 4px 0 #d9677f, 0 12px 22px rgba(217, 87, 122, .34), 0 0 0 0 var(--pink-glow); }
  100% { box-shadow: 0 0 0 2px #f2a6b9, 0 4px 0 #d9677f, 0 10px 18px rgba(217, 87, 122, .3), 0 0 0 18px rgba(255, 168, 196, 0); }
}
.start-btn.jelly { animation: jelly .62s var(--spring) both !important; }
@keyframes jelly {
  0% { transform: scale(1); }
  22% { transform: scale(1.1, .86); }
  42% { transform: scale(.94, 1.08); }
  62% { transform: scale(1.03, .97); }
  100% { transform: scale(1); }
}
.tap-ripple {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, 0) 70%);
  animation: tapRipple .7s var(--silk) forwards;
}
@keyframes tapRipple { from { transform: scale(0); opacity: 1; } to { transform: scale(9); opacity: 0; } }
.btn-star {
  position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2;
  background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 6px rgba(255, 150, 185, .9));
  opacity: 0; animation: twinkle 2.6s ease-in-out infinite;
}

/* ---------- 爱心转场：爱心从指尖绽开铺满屏幕，猫爪印章“啵”地盖下 ---------- */
#heart-wipe { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; display: none; }
#heart-wipe.on { display: block; pointer-events: auto; }
.hw-heart {
  position: absolute; left: 0; top: 0; width: 100px; height: 90px; margin: -50px 0 0 -50px;
  transform: translate(var(--hx), var(--hy)) scale(0); transform-origin: 50px 50px;
  /* 不加 filter：爱心要放大到约 40 倍铺满屏幕，带滤镜时手机每帧都要重算，会卡 */
}
#heart-wipe.cover .hw-back { animation: hwGrow .62s cubic-bezier(.6, 0, .3, 1) forwards; }
#heart-wipe.cover .hw-front { animation: hwGrow .62s cubic-bezier(.6, 0, .3, 1) .09s forwards; }
@keyframes hwGrow {
  0% { transform: translate(var(--hx), var(--hy)) scale(0) rotate(-8deg); }
  35% { transform: translate(var(--hx), var(--hy)) scale(calc(var(--hs) * .12)) rotate(6deg); }
  100% { transform: translate(var(--hx), var(--hy)) scale(var(--hs)) rotate(0deg); }
}
#heart-wipe.reveal .hw-back,
#heart-wipe.reveal .hw-front { animation: hwFade .7s var(--silk) forwards; }
#heart-wipe.reveal .hw-back { animation-delay: .06s; }
@keyframes hwFade {
  from { transform: translate(var(--hx), var(--hy)) scale(var(--hs)); opacity: 1; }
  to { transform: translate(var(--hx), var(--hy)) scale(calc(var(--hs) * 1.25)); opacity: 0; }
}
.hw-paw {
  position: absolute; left: 50%; top: 46%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  opacity: 0; transform: scale(2.2) rotate(-25deg);
  filter: drop-shadow(0 6px 14px rgba(217, 87, 122, .35));
}
#heart-wipe.cover .hw-paw { animation: pawStamp .5s var(--spring) .5s forwards; }
@keyframes pawStamp {
  0% { opacity: 0; transform: scale(2.2) rotate(-25deg); }
  60% { opacity: 1; transform: scale(.9) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
#heart-wipe.reveal .hw-paw { opacity: 1; transform: scale(1) rotate(-6deg); animation: pawLift .5s var(--silk) forwards; }
@keyframes pawLift { to { opacity: 0; transform: scale(1.35) translateY(-30px) rotate(-6deg); } }

/* 转场后的新画面：柔焦拉近 */
.screen.dreamy-in .bg { animation: dreamyBg 1.1s var(--silk) both; }
/* 不用 blur 滤镜做全屏动画：手机上很卡；改为轻微放大 + 淡入 */
@keyframes dreamyBg { from { transform: scale(1.06); opacity: .55; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .title-dream, .logo-stars, .btn-star, #heart-wipe { display: none !important; }
  .logo-title span::after { display: none; }
}

/* ---------- 关注作者弹窗 ---------- */
.overlay.opening .follow-box { animation: ovPop .6s var(--spring); }
.follow-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(84vw, 330px); padding: 84px 22px 18px; margin-top: 56px; text-align: center;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 26px; border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35);
}
.follow-box::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -9px; height: 10px;
  background: radial-gradient(circle at 6px 10px, #fff 5px, transparent 5.5px) 0 0 / 12px 10px repeat-x;
}
.follow-cat { position: absolute; top: -62px; left: 50%; width: 112px; margin-left: -56px; filter: drop-shadow(0 8px 12px rgba(150, 60, 90, .3)); animation: bob 3s ease-in-out infinite; }
.follow-title { font-size: 28px; letter-spacing: 3px; color: #f28aa6; -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 3px 0 #f6bccb; }
.follow-sub { font-size: 14px; line-height: 1.6; color: var(--ink); }
.follow-gift {
  display: flex; align-items: center; gap: 6px; padding: 6px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #fff7d6, #ffe8a3); box-shadow: 0 0 0 2px #f3cd6e, 0 6px 14px rgba(240, 168, 42, .3);
  color: #b0701c; font-size: 15px; animation: startPulse 1.8s ease-in-out infinite;
}
.follow-gift b { font-size: 30px; color: #e8901f; -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill; }
.follow-box .btn { width: 100%; flex: none; }
.follow-box .btn-link { color: var(--ink-soft); font-size: 13px; }
.follow-x {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(236, 127, 156, .12);
}
.follow-x::before, .follow-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; background: var(--pink-2); border-radius: 2px; transform: rotate(45deg); }
.follow-x::after { transform: rotate(-45deg); }
.follow-done { height: 0; overflow: visible; font-size: 18px; color: #e8901f; -webkit-text-stroke: 1px #fff; paint-order: stroke fill; opacity: 0; transform: translateY(6px); }
.follow-done.show { height: auto; animation: resultIn .5s var(--spring) forwards; }
#btn-follow-go.success { background: linear-gradient(180deg, #a8e6c9, #7fd0ac); box-shadow: 0 0 0 2px #9ad9bd, 0 4px 0 #5fb48f, 0 10px 18px rgba(95, 180, 143, .3); opacity: 1; }
#btn-follow-go.success::after { display: none; }
.follow-x.hidden, .follow-box .btn-link.hidden { visibility: hidden; display: block; }

/* ---------- 挂件：挂在手机壳右侧挂绳孔上 ---------- */
.acc-img {
  left: 98%; top: 13.5%; right: auto; height: auto; width: var(--aw, 50%);
  translate: calc(var(--hx, 50) * -1%) 0;
  transform-origin: calc(var(--hx, 50) * 1%) 0;
}
.acc-ring {
  position: absolute; left: 98%; top: 13.5%; z-index: 3; display: none;
  width: 9px; height: 9px; margin: -6px 0 0 -4.5px; border-radius: 50%;
  border: 2.5px solid #d9dde3; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(150, 150, 165, .55), 0 0 0 1px rgba(150, 150, 165, .45), 0 1px 2px rgba(120, 60, 80, .3);
}
.phone.has-acc .acc-ring { display: block; }
.zone-acc { right: auto; left: 70%; top: 10%; width: 50%; height: 46%; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes landSwing { 0% { transform: translateY(-24px) rotate(-26deg); opacity: 0; } 30% { opacity: 1; transform: rotate(18deg); } 55% { transform: rotate(-10deg); } 80% { transform: rotate(5deg); } 100% { transform: rotate(-4deg); } }
.acc-img { rotate: var(--ar, 0deg); }
.phone { transition: margin-left .6s var(--silk); }

/* =====================================================================
   配货台产品区：手机壳 / 支架 / 挂件 三行 + 清晰的选对选错
   ===================================================================== */
#tray.rows { display: flex; flex-direction: column; gap: 6px; }
.gt-row { display: flex; align-items: stretch; gap: 6px; }
.gt-row-label {
  flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 14px; background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 2px var(--line);
  color: var(--pink-deep); text-align: center; transition: background .3s, box-shadow .3s, color .3s;
}
.gt-row-label b { font-size: 13px; font-weight: 400; line-height: 1.1; }
.gt-row-label small { font-size: 10px; color: var(--ink-soft); line-height: 1.1; }
.gt-row-items { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#tray.rows .gt { padding: 3px 2px 3px; border-radius: 13px; }
#tray.rows .gt-img { max-height: 46px; }
#tray.rows .gt-name { font-size: 11px; }

/* 这一行已选好 */
.gt-row.done .gt-row-label { background: linear-gradient(180deg, #e9fbf2, #c9f0dd); box-shadow: 0 0 0 2px #8fd3b8; color: #2f9a6d; }
.gt-row.done .gt-row-label small { color: #2f9a6d; }
.gt-row.done .gt:not(.right) { opacity: .42; filter: grayscale(.5); }
/* 这单不要这一类 */
.gt-row.skip .gt-row-label { background: #f4eef0; box-shadow: 0 0 0 2px #e6d9de; color: #a7838c; }
.gt-row.skip .gt-row-label small { color: #b8a5ab; }
.gt-row.skip .gt { opacity: .5; filter: grayscale(.6); }

/* 选对：绿框 + ✓，保持清楚可见 */
#tray .gt.used.right {
  opacity: 1; filter: none; transform: scale(.95);
  background: radial-gradient(circle, #fff 45%, #e3f6ec 100%);
  box-shadow: 0 0 0 3px #6cc79f, 0 4px 10px rgba(80, 180, 130, .25);
  animation: rightPop .45s var(--spring);
}
@keyframes rightPop { 0% { transform: scale(.95); } 40% { transform: scale(1.1); } 100% { transform: scale(.95); } }
/* 选错：红框 + ✕，留下记号 */
.gt.wrong {
  background: #fff4f6; filter: grayscale(.35);
  box-shadow: 0 0 0 3px #ff7b98, 0 4px 10px rgba(255, 90, 120, .2);
}
.gt.wrong .gt-img img { opacity: .55; }
.gt.right::after, .gt.wrong::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 5px rgba(120, 60, 80, .3);
  background-position: center; background-repeat: no-repeat; background-size: 12px 12px;
  animation: badgeIn .35s var(--spring) both;
}
.gt.right::after {
  background-color: #4cbf8c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.gt.wrong::after {
  background-color: #ff6f8e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
@keyframes badgeIn { from { transform: scale(0) rotate(-45deg); } to { transform: none; } }
/* 抖动动画优先于入场动画 */
.grid-tray .gt.nope, .grid-tray.stagger .gt.nope { animation: nope .45s ease-out; }

@media (max-height: 700px) {
  #tray.rows { gap: 4px; }
  .gt-row-items { gap: 5px; }
  #tray.rows .gt-img { max-height: 36px; }
  #tray.rows .gt-name { font-size: 10px; }
  .gt-row-label { flex-basis: 40px; }
}

/* 产品区 v2：按 手机壳 → 支架 → 挂件 顺序依次排列（4 列网格，无分类标签） */
#tray.work-seq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#tray.work-seq .gt.kind-done:not(.right) { opacity: .42; filter: grayscale(.5); }
#tray.work-seq .gt.kind-skip { opacity: .5; filter: grayscale(.6); }

/* =====================================================================
   新手引导 · 买家生气 · 取消订单
   ===================================================================== */
#coach { position: fixed; inset: 0; z-index: 112; pointer-events: none; display: none; }
#coach.on { display: block; }
.coach-ring {
  position: absolute; left: var(--cx); top: var(--cy); width: var(--sz); height: var(--sz);
  margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 3px #ff8fb0, 0 0 18px 4px rgba(255, 143, 176, .75), inset 0 0 12px rgba(255, 143, 176, .5);
  animation: coachPulse 1.3s ease-in-out infinite;
}
.coach-ring.r2 { border-color: rgba(255, 255, 255, .8); box-shadow: 0 0 0 2px rgba(255, 143, 176, .7); animation: coachWave 1.3s ease-out infinite; }
@keyframes coachPulse { 50% { transform: scale(.9); } }
@keyframes coachWave { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.coach-tip {
  position: absolute; transform: translate(-50%, -100%); max-width: min(78vw, 300px); width: max-content;
  padding: 8px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; color: #fff; text-align: center;
  background: linear-gradient(180deg, #f98fae, #e86d8f); box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(217, 87, 122, .35);
  animation: coachTipIn .45s var(--spring) both, coachBob 2s ease-in-out .45s infinite;
}
#coach.below .coach-tip { transform: translate(-50%, 0); }
.coach-tip::after {
  content: ""; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px;
  background: #e86d8f; transform: rotate(45deg); box-shadow: 2px 2px 0 0 #fff;
}
#coach.below .coach-tip::after { bottom: auto; top: -7px; background: #f98fae; box-shadow: -2px -2px 0 0 #fff; }
@keyframes coachTipIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes coachBob { 50% { translate: 0 -4px; } }

/* 买家生气 */
.patience.angry .patience-track { box-shadow: 0 0 0 2px #ff6f8e, 0 0 10px rgba(255, 90, 120, .6); animation: angryTrack .5s ease-in-out infinite alternate; }
@keyframes angryTrack { to { box-shadow: 0 0 0 2px #ff6f8e, 0 0 16px rgba(255, 90, 120, .9); } }
.p-time.angry { color: #fff !important; background: #ff5f7e; padding: 1px 7px; border-radius: 999px; animation: rushBlink .6s ease-in-out infinite; }
.js-mood.angry { box-shadow: 0 0 0 3px #ff6f8e, 0 0 12px rgba(255, 90, 120, .7); animation: avSad .6s ease-in-out infinite; }
.pet-cat.beg .pet-tip { background: #ff5f7e; color: #fff; animation: tipFloat .6s ease-in-out infinite; }
.pet-cat.beg img { filter: drop-shadow(0 0 8px rgba(255, 143, 176, .95)); }
#toast.warn { color: #fff; background: linear-gradient(180deg, #ff8aa5, #f2668a); box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(242, 102, 138, .4); }
.tg.late { background: linear-gradient(90deg, #ff9a9e, #f0718f); }

/* 取消订单弹窗 */
.overlay.opening .cancel-box { animation: ovPop .6s var(--spring); }
.cancel-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(84vw, 330px); padding: 22px 20px 18px; text-align: center;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 26px; border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35);
}
.cancel-av { width: 72px; height: 72px; filter: grayscale(.35); animation: avSad .7s ease-in-out 2; }
.cancel-title { font-size: 22px; color: var(--pink-deep); letter-spacing: 1px; }
.cancel-sub { font-size: 13px; color: var(--ink-soft); }
.cancel-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0; }
.cancel-lines span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); color: var(--ink); }
.cancel-lines b { color: #e0533f; font-weight: 400; }
.cancel-tip { font-size: 12px; color: #c88a1c; background: #fff7dc; border-radius: 12px; padding: 6px 10px; }
.cancel-box .btn { width: 100%; flex: none; margin-top: 4px; }

/* =====================================================================
   合并计时：一条耐心条，前段闪电区（金色），后段耐心区（粉色）
   ===================================================================== */
.patience-track { position: relative; }
.patience-fill { position: relative; z-index: 1; transition: width .25s linear; }
.p-zone { position: absolute; top: 0; bottom: 0; left: var(--fz, 64%); right: 0; background: #fff1c9; z-index: 0; }
.p-line {
  position: absolute; top: -3px; bottom: -3px; left: var(--fz, 64%); width: 3px; margin-left: -1.5px; z-index: 2;
  background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px #f0b94a, 0 0 4px rgba(240, 185, 74, .8);
}
.patience-track { overflow: visible; }
.patience-track .patience-fill { border-radius: 999px; }
.patience.fast .patience-fill:not(.low) { background: repeating-linear-gradient(-45deg, #ffe08a 0 8px, #ffc94d 8px 16px) !important; background-size: 22px 22px !important; box-shadow: 0 0 6px rgba(255, 200, 70, .7); }
.patience.fast .p-heart {
  background: #f7b731; animation: beat 1s ease-in-out infinite;
  clip-path: polygon(58% 0, 18% 56%, 46% 56%, 38% 100%, 82% 40%, 54% 40%);
}
.p-time.fast { color: #d48a06; }
.p-time { min-width: 58px; }
.patience.tut .p-zone, .patience.tut .p-line { display: none; }

/* =====================================================================
   买家好感度 · 专属故事单 · 来信 · 信箱
   ===================================================================== */
.aff-hearts { display: inline-flex; gap: 2px; vertical-align: middle; }
.ah {
  width: 13px; height: 12px; display: inline-block;
  clip-path: polygon(50% 100%, 0 40%, 10% 10%, 35% 5%, 50% 25%, 65% 5%, 90% 10%, 100% 40%);
  background: linear-gradient(90deg, #ff7aa2 0 var(--f), #f3dbe2 var(--f) 100%);
}
.shop-aff {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 8px 2px 6px;
  border: none; border-radius: 999px; background: #fff3f6; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; font: inherit;
}
.shop-aff em { font-style: normal; font-size: 11px; color: var(--pink-deep); }
.buyer-card.story { box-shadow: 0 0 0 2px #f3c95d, 0 0 18px rgba(255, 200, 80, .55); background: linear-gradient(180deg, #fffdf4, #fff6dc); }
.ticket.story { box-shadow: 0 0 0 2px #f3c95d, var(--shadow); }
.ticket.story .tk-head span { color: #c88a1c; }

.rv-aff { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; color: var(--ink-soft); }
.rv-aff b { font-weight: 400; font-size: 14px; }
.rv-aff b.up { color: #e8577f; }
.rv-aff b.down { color: #9a8a90; }
.rv-aff.full .aff-hearts { filter: drop-shadow(0 0 4px rgba(255, 122, 162, .8)); animation: bob 2s ease-in-out infinite; }
.rv-aff .ah { width: 15px; height: 14px; transition: background .6s; }

/* 来信 */
.letter-box { position: relative; width: min(88vw, 360px); display: flex; flex-direction: column; align-items: center; }
.envelope {
  position: absolute; top: 40%; left: 50%; width: 220px; height: 140px; margin: -70px 0 0 -110px; z-index: 2;
  background: linear-gradient(180deg, #ffd9e3, #f7b8c9); border-radius: 10px; box-shadow: 0 12px 30px rgba(120, 40, 70, .35);
  transition: transform .6s var(--silk), opacity .5s;
}
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 80px; background: #fbc6d4; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .5s var(--silk); }
.env-seal { position: absolute; left: 50%; top: 58px; width: 40px; height: 40px; margin-left: -20px; background: url("assets/cutouts/seal-paw.webp") center / contain no-repeat; }
#ov-letter.on .envelope { animation: envIn .5s var(--spring); }
@keyframes envIn { from { transform: translateY(40px) scale(.7); opacity: 0; } }
#ov-letter.read .env-flap { transform: rotateX(180deg); }
#ov-letter.read .envelope { transform: translateY(120px) scale(.85); opacity: 0; pointer-events: none; }
.letter-paper {
  position: relative; width: 100%; max-height: 82vh; overflow-y: auto; padding: 18px 20px 16px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, #fffdf8 0 27px, #f6e4ea 27px 28px); box-shadow: 0 16px 40px rgba(120, 40, 70, .35);
  opacity: 0; transform: translateY(30px) scale(.95); transition: opacity .5s .2s, transform .6s var(--spring) .2s;
}
#ov-letter.read .letter-paper { opacity: 1; transform: none; }
.letter-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.letter-top small { display: block; font-size: 11px; color: #c88a1c; }
.letter-top b { font-weight: 400; font-size: 18px; color: var(--pink-deep); }
.letter-head { font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.letter-body p { font-size: 14px; line-height: 28px; color: var(--ink); text-indent: 2em; opacity: 0; }
#ov-letter.read .letter-body p { animation: fadeUp .5s ease-out both; animation-delay: calc(.6s + var(--i) * .35s); }
.letter-sign { text-align: right; font-size: 14px; color: var(--pink-deep); margin: 4px 0 8px; }
.letter-reward { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.letter-reward:empty { display: none; }
.letter-reward span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #fff7dc; box-shadow: 0 0 0 1.5px #f3cd6e; color: #b0701c; display: inline-flex; align-items: center; gap: 4px; }
.letter-paper .btn { width: 100%; flex: none; }

/* 信箱 */
.overlay.opening .mail-box { animation: ovPop .6s var(--spring); }
.mail-box {
  width: min(90vw, 360px); max-height: 86vh; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 24px; border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35);
}
.mail-title { text-align: center; font-size: 24px; color: #f28aa6; -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 2px 0 #f6bccb; }
.mail-sub { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: -4px; }
.mail-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.mail-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); animation: fadeUp .4s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.mail-row .avatar-ring.sm { width: 44px; height: 44px; flex: none; }
.mail-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mail-name { font-size: 14px; color: var(--ink); }
.mail-status { font-size: 11px; color: var(--ink-soft); }
.mail-row.ready { box-shadow: 0 0 0 2px #f3c95d, 0 0 12px rgba(255, 200, 80, .45); }
.mail-row.ready .mail-status { color: #c88a1c; }
.mail-row.done .mail-status { color: var(--pink-deep); }
.mail-read { flex: none; border: none; cursor: pointer; font: inherit; font-size: 13px; color: #fff; padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, #f9b3c4, #e7738f); box-shadow: 0 2px 0 #d9677f; }
.mail-lock { flex: none; width: 26px; height: 20px; border-radius: 4px; background: #f3dbe2; position: relative; }
.mail-lock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #e9c3cf; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mail-tip { font-size: 11px; color: #c88a1c; background: #fff7dc; border-radius: 12px; padding: 6px 10px; text-align: center; }
.mail-box .btn { width: 100%; flex: none; }
.rv-aff.aff-pop .aff-hearts { animation: bump .5s var(--spring); }

/* =====================================================================
   装修：窗边小店装饰 + 棉花糖的小窝
   ===================================================================== */
.decor-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#title-decor { z-index: 1; transform-origin: 50% 62%; }
#s-title.entering #title-decor { animation: bgFocus 2.2s var(--silk) both; }
.dc { position: absolute; height: auto; filter: drop-shadow(0 4px 6px rgba(150, 70, 95, .28)); }
.dc-top { transform-origin: 50% 0; animation: garlandSway 5s ease-in-out infinite; }
.dc-top.glow { filter: drop-shadow(0 0 6px rgba(255, 230, 150, .95)) drop-shadow(0 3px 4px rgba(150, 70, 95, .2)); animation: garlandSway 5s ease-in-out infinite, twinkleGlow 1.8s ease-in-out infinite; }
.dc-left, .dc-right { transform-origin: 50% 100%; animation: decorIn .7s var(--spring) both; }
@keyframes garlandSway { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
@keyframes twinkleGlow { 50% { filter: drop-shadow(0 0 12px rgba(255, 230, 150, 1)) drop-shadow(0 3px 4px rgba(150, 70, 95, .2)); } }
@keyframes decorIn { from { transform: scale(.4) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 棉花糖的小窝 / 玩具（配货台、打包台） */
.pet-cat { isolation: isolate; }
.pet-cat .pc-bed, .pet-cat .pc-toy { position: absolute; display: none; pointer-events: none; animation: none; filter: drop-shadow(0 3px 4px rgba(160, 80, 100, .25)); }
.pet-cat .pc-bed.on, .pet-cat .pc-toy.on { display: block; }
.pet-cat .pc-bed { width: 132%; left: -16%; bottom: -8%; z-index: -1; }
.pet-cat .pc-toy { width: 48%; right: -42%; bottom: -2%; z-index: 1; }
.pet-cat.purr .pc-bed, .pet-cat.purr .pc-toy, .pet-cat.yawn .pc-bed, .pet-cat.yawn .pc-toy { animation: none; }
.pet-cat .pc-toy.on { animation: toyWobble 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes toyWobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
/* 打烊页：睡在小窝里 */
.ledger-cat .lc-bed { position: absolute; display: none; width: 132%; left: -14%; bottom: -16%; z-index: -1; transform: none !important; animation: none !important; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)) !important; }
.ledger-cat .lc-bed.on { display: block; }
.ledger-cat { isolation: isolate; }

/* 进货页标签 */
.store-tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px var(--line); }
.store-tabs button { font: inherit; font-size: 16px; letter-spacing: 2px; border: none; background: none; color: var(--ink-soft); padding: 6px 26px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.store-tabs button.on { background: linear-gradient(180deg, #f9b3c4, #ec7f9c); color: #fff; box-shadow: 0 2px 0 #d9677f; }
.store-grid.hidden, .decor-panel.hidden { display: none; }

/* 装修面板 */
.decor-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.decor-preview { display: flex; gap: 8px; align-items: stretch; }
.dp-scene { position: relative; flex: 1.35; aspect-ratio: 0.9; overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow); background: #f7d4de; }
.dp-bg { position: absolute; left: 0; }
.dp-cat { position: relative; flex: 1; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow); background: radial-gradient(circle at 50% 70%, #fff 0 30%, #fde6ec 100%); }
.dp-cat > span:not(.js-wear) { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-size: 12px; color: var(--pink-deep); }
.dpc-cat { position: absolute; left: 50%; bottom: 16%; width: 52%; margin-left: -26%; z-index: 1; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
.dpc-bed { position: absolute; left: 50%; bottom: 8%; width: 82%; margin-left: -41%; z-index: 0; display: none; }
.dpc-toy { position: absolute; right: 6%; bottom: 8%; width: 30%; z-index: 2; display: none; animation: toyWobble 3s ease-in-out infinite; transform-origin: 50% 100%; }
.dpc-bed.on, .dpc-toy.on { display: block; }
.pv-pop { animation: bump .5s var(--spring); }
.decor-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.decor-list::-webkit-scrollbar { display: none; }
.dl-head { font-size: 14px; color: var(--pink-deep); margin: 8px 2px 6px; display: flex; align-items: center; gap: 6px; }
.dl-head::before { content: ""; width: 6px; height: 14px; border-radius: 3px; background: var(--pink-2); }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.dc-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 3px 7px; border-radius: 14px; background: var(--cream); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 25ms); }
.dc-card.on { box-shadow: 0 0 0 3px #6cc79f, 0 4px 10px rgba(80, 180, 130, .25); background: radial-gradient(circle, #fff 45%, #e3f6ec 100%); }
.dc-card.just { animation: unlockFlip .8s var(--spring); }
.dcc-img { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; }
.dcc-img img { max-width: 86%; max-height: 50px; object-fit: contain; }
.dcc-name { font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dcc-btn { font: inherit; font-size: 12px; border: none; border-radius: 999px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.dcc-btn.poor { background: linear-gradient(180deg, #eee3e6, #d9c8cd); box-shadow: 0 2px 0 #c4b0b6; }
.dcc-btn.on { background: #e6f6ef; color: #3a9e72; box-shadow: none; }
.dc-card.owned:not(.on) .dcc-btn { background: #fff; color: var(--pink-deep); box-shadow: 0 0 0 1.5px var(--line); }

/* =====================================================================
   衣橱：帽子 / 小衣服叠在棉花糖身上
   ===================================================================== */
.js-wear { display: block; }
.pet-cat .pc-body.js-wear { position: relative; }
.js-wear .w-hat, .js-wear .w-outfit { position: absolute; display: none; height: auto; pointer-events: none; animation: none; filter: drop-shadow(0 2px 2px rgba(150, 70, 95, .22)); }
.js-wear .w-hat.on, .js-wear .w-outfit.on { display: block; }
.js-wear .w-outfit { z-index: 2; }
.js-wear .w-hat { z-index: 3; }
.js-wear .w-cat { display: block; width: 100%; }
/* 配货台 / 打包台：猫和衣服一起呼吸、一起被摸 */
/* 注意：这里的 .pc-body 和手机壳面板的 .pc-body 同名，必须显式撤掉面板的滚动/内边距，
   否则棉花糖会被当成滚动区裁掉下半身 */
.pet-cat .pc-body { width: 100%; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center;
  overflow: visible; padding: 0; display: block; min-height: 0; gap: 0; max-height: none; }
.pet-cat .pc-body img { animation: none; filter: none; }
.pet-cat .pc-body .pc-cat { filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .3)); }
.pet-cat.purr .pc-body { animation: purr .7s var(--spring); }
.pet-cat.yawn .pc-body { animation: yawn .8s ease-in-out; }
.pet-cat.purr .pc-body img, .pet-cat.yawn .pc-body img { animation: none; }
.pet-cat.beg .pc-body .pc-cat { filter: drop-shadow(0 0 8px rgba(255, 143, 176, .95)); }
.dpc-cat img { animation: none; }

/* 衣橱面板 */
.wd-preview { display: flex; gap: 10px; align-items: stretch; }
.wd-stage { position: relative; flex: 0 0 44%; aspect-ratio: .82; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), var(--shadow); background: radial-gradient(circle at 50% 65%, #fff 0 32%, #fde6ec 100%); }
.wd-cat { position: absolute; left: 50%; bottom: 10%; width: 66%; margin-left: -33%; z-index: 1; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
/* 跳跃作用在容器上（保持原来的 squash & hop 手感），但把待机动画写在同一个 animation 列表里：
   加/去这个类时 catIdle 不会重启，所以不会在动画尾巴上抖 */
.wd-cat.wd-spin { animation: catIdle 3.4s ease-in-out infinite, wdSpin .6s var(--spring); }
.dpc-cat.cat-pop { animation: catIdle 3.4s ease-in-out infinite, wdSpin .6s var(--spring); }
/* 跳跃：不挤压、不回弹，避免收尾发抖 */
@keyframes catHopClean {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-7%) scale(1.015, 1.015); }
  55% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-2.5%) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes wdSpin { 0% { transform: scale(1); } 30% { transform: scale(1.08, .92) translateY(4px); } 60% { transform: scale(.96, 1.06) translateY(-8px); } 100% { transform: none; } }
.wd-bed { position: absolute; left: 50%; bottom: 3%; width: 104%; margin-left: -52%; z-index: 0; display: none; }
.wd-bed.on { display: block; }
.wd-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px var(--line); }
.wd-info b { font-weight: 400; font-size: 18px; color: var(--pink-deep); }
.wd-info span { font-size: 13px; color: var(--ink); line-height: 1.5; }
.wd-info small { font-size: 11px; color: var(--ink-soft); }
.store-tabs button { padding: 6px 20px; }

/* 棉花糖分层穿戴
   所有图层共用一张 928×1152 画布（四周留了放帽子、披风的空间）；
   .js-wear 盒子只框住猫本身，图层按画布比例向外撑开并对齐。
   顺序：身体 → 自带蝴蝶结 → 小衣服 → 头和下巴的毛（旧式平面衣服才需要）→ 帽子 */
.js-wear { aspect-ratio: 690 / 851; }
.js-wear .w-cat, .js-wear .w-bow, .js-wear .w-head-front, .js-wear .w-hat.full, .js-wear .w-outfit.full {
  position: absolute; left: -17.246%; top: -27.77%; width: 134.49%; max-width: none; height: auto; bottom: auto;
}
.js-wear .w-bow, .js-wear .w-head-front { pointer-events: none; animation: none; filter: none; }
.js-wear .w-cat { z-index: 0; }
.js-wear .w-bow { z-index: 1; }
.js-wear .w-outfit { z-index: 2; }
.js-wear .w-head-front { z-index: 3; display: none; }
.js-wear .w-bow-head { z-index: 4; }
.js-wear .w-hat { z-index: 5; }
.js-wear .w-hat.full, .js-wear .w-outfit.full { filter: none; }
.js-wear.has-flat-outfit .w-head-front { display: block; filter: drop-shadow(0 1.5px 1px rgba(150, 70, 95, .16)); }
.js-wear.has-outfit .w-bow-neck, .js-wear.has-hat .w-bow-head { display: none; }

/* ---------- 衣橱试穿 ---------- */
.dc-card { position: relative; }
.dc-card.trying { box-shadow: 0 0 0 3px #f59ab3, 0 4px 12px rgba(236, 127, 156, .3); background: radial-gradient(circle, #fff 45%, #ffe6ee 100%); }
.dcc-try-tag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; line-height: 1; white-space: nowrap; padding: 3px 7px; border-radius: 999px; color: #fff; background: #ec7f9c; box-shadow: 0 0 0 2px #fff; animation: tryTag 1.4s ease-in-out infinite; z-index: 1; }
@keyframes tryTag { 50% { transform: translateX(-50%) translateY(-2px); } }
.dcc-btn.go { background: linear-gradient(180deg, #ffd36e, #f5a93c); box-shadow: 0 2px 0 #d98a22; color: #6b3a00; }
.dcc-btn.go.poor { background: linear-gradient(180deg, #eee3e6, #d9c8cd); box-shadow: 0 2px 0 #c4b0b6; color: #fff; }
.wd-try { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wd-try.hidden { display: none; }
.wd-try .dcc-btn { font-size: 13px; padding: 5px 12px; }
.wd-try-off { font: inherit; font-size: 12px; border: none; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 4px 2px; }
.dc-card.trying .dcc-btn.go { white-space: nowrap; padding: 3px 7px; }

/* ---------- 衣服效果 ---------- */
.dcc-buff { font-size: 10px; line-height: 1.2; color: #c0587a; background: #ffeef3; border-radius: 6px; padding: 1px 5px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wd-info { gap: 5px; padding: 9px 10px; }
.wd-buffs { display: flex; flex-direction: column; gap: 4px; }
.wd-buffs .wb-line { font-size: 11px; line-height: 1.35; color: var(--ink); }
.wd-buffs .wb-line b { font-weight: 700; color: var(--pink-deep); margin-right: 4px; }
.wd-buffs .wb-set { font-size: 10.5px; line-height: 1.35; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 4px; }
.wd-buffs .wb-set.on { color: #a0661a; background: linear-gradient(90deg, #fff4cf, #ffe7a6); border: none; border-radius: 8px; padding: 4px 6px; }
.wd-buffs .wb-set.on b { font-weight: 700; margin-right: 4px; }
.wd-buffs .wb-empty { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.tg.wear { background: linear-gradient(90deg, #f9a8c4, #c9a2f5); }

/* 接单台上的棉花糖 */
.shop-mid { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
/* 聊天区只让气泡本身接收点击，空白处让给后面的棉花糖 */
.shop-mid .chat { position: relative; z-index: 2; pointer-events: none; }
.shop-mid .chat > * { pointer-events: auto; }
.desk-cat { position: absolute; right: 2px; top: 6px; z-index: 1; width: min(36vw, 150px); border: none; background: none; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.desk-cat .dk-body { position: relative; width: 100%; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
.desk-cat .w-cat { filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .25)); }
.desk-cat.purr .dk-body { animation: purr .7s var(--spring); }
/* 棉花糖说话的气泡：在她头的左边，尾巴指向她 */
.shop-mid { --dcw: min(36vw, 150px); }
.desk-say { position: absolute; z-index: 3; top: 18px; right: calc(var(--dcw) - 4px); max-width: min(52vw, 210px); pointer-events: none;
  font-size: 13px; line-height: 1.45; color: var(--ink); background: #fff; padding: 7px 11px; border-radius: 14px;
  box-shadow: 0 0 0 1.5px var(--line), 0 4px 10px rgba(160, 80, 100, .18); opacity: 0; transform: scale(.6); transform-origin: 100% 60%; transition: opacity .25s, transform .25s; }
.desk-say::after { content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: #fff;
  box-shadow: 1.5px -1.5px 0 0 var(--line); transform: rotate(45deg); }
.desk-say.on { opacity: 1; transform: none; }
.desk-say.pop-in { animation: saySpring .4s var(--spring); }
@keyframes saySpring { 0% { transform: scale(.6); } 100% { transform: none; } }
@media (max-height: 760px) { .shop-mid { --dcw: min(30vw, 118px); } }
@media (max-height: 680px) { .shop-mid { --dcw: min(26vw, 96px); } }
@media (max-height: 760px) { .desk-cat { width: min(30vw, 118px); } }
@media (max-height: 680px) { .desk-cat { width: min(26vw, 96px); } }

/* 配货台 / 打包台的棉花糖放大一些 */
.pet-cat { width: 92px; }
@media (max-height: 760px) { .pet-cat { width: 78px; } }
@media (max-height: 680px) { .pet-cat { width: 66px; } }
.wd-info .wd-buffs b { font-size: 11px; line-height: 1.35; }
/* 棉花糖头顶的小标签：放在帽子上方，弹出时保持居中 */
.pet-tip { top: calc(var(--ht, 0) * 100% - 18px); }
.pet-tip.tip-pop { animation: tipPop .4s var(--spring); }
@keyframes tipPop { 0% { transform: translateX(-50%) scale(.5); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }

/* =====================================================================
   晒单相册 · 图鉴
   ===================================================================== */
.album-btn { padding: 4px 7px; }
.album-box {
  width: min(92vw, 380px); max-height: 90vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 24px; border: 2px solid #fff;
  box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35);
}
.overlay.opening .album-box { animation: ovPop .6s var(--spring); }
.album-box .btn { width: 100%; flex: none; }
.album-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.album-tabs button { position: relative; flex: 1; font: inherit; font-size: 14px; border: none; cursor: pointer; padding: 6px 0; border-radius: 999px; background: none; color: var(--ink-soft); }
.album-tabs button.on { color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.album-tabs .badge { position: absolute; right: 14px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f7e; box-shadow: 0 0 0 2px #fff; }
.album-tabs .badge.hidden, .album-btn .badge.hidden { display: none; }
.album-shots { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.album-shots.hidden, .album-dex.hidden { display: none; }

/* 一张拍立得 */
.al-page { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.al-photo { background: #fff; border-radius: 6px; padding: 10px 10px 8px; box-shadow: 0 0 0 1px #f1dde3, 0 6px 16px rgba(160, 80, 100, .18); transform: rotate(-1deg); }
.al-photo.flip-next { animation: alNext .45s var(--spring); }
.al-photo.flip-prev { animation: alPrev .45s var(--spring); }
@keyframes alNext { from { transform: translateX(40%) rotate(8deg); opacity: 0; } to { transform: rotate(-1deg); opacity: 1; } }
@keyframes alPrev { from { transform: translateX(-40%) rotate(-8deg); opacity: 0; } to { transform: rotate(-1deg); opacity: 1; } }
.al-scene { position: relative; height: min(40vh, 250px); border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff 0 30%, #fde6ec 100%); }
.al-phone { position: absolute; left: 30%; top: 8%; height: 80%; aspect-ratio: 504 / 997; transform: translateX(-50%); }
.al-phone .case-img, .al-phone .sup-img, .al-phone .acc-img { filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .25)); }
.al-phone .al-ring { display: block; }
.al-box { position: absolute; right: 6%; bottom: 8%; width: 40%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .25)); }
.al-decos { position: absolute; right: 8%; top: 8%; width: 38%; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.al-decos img { width: 44%; object-fit: contain; transform: rotate(calc((var(--i) - 1) * 10deg)); filter: drop-shadow(0 2px 3px rgba(160, 80, 100, .2)); }
.al-caption { display: flex; align-items: center; gap: 8px; padding: 8px 2px 2px; }
.al-caption .avatar-ring.sm { width: 40px; height: 40px; flex: none; }
.al-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.al-name { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.al-tag { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 6px; color: #fff; }
.al-tag.rush { background: #ff8a6b; }
.al-tag.story { background: #e3a92e; }
.al-stars i { font-style: normal; font-size: 13px; color: #ead9de; }
.al-stars i.on { color: #ffc23d; }
.al-say { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-day { flex: none; text-align: right; font-size: 11px; line-height: 1.4; color: var(--ink-soft); }
.al-items { font-size: 11px; color: #c0587a; line-height: 1.4; padding: 0 2px; }
.al-nav { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--ink-soft); min-height: 34px; }
.al-arrow { width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 2px 0 #f0c9d3; position: relative; }
.al-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-left: 2.5px solid var(--pink-deep); border-bottom: 2.5px solid var(--pink-deep); transform: translate(-30%, -50%) rotate(45deg); }
.al-arrow.next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.al-arrow:disabled { opacity: .35; cursor: default; }
.al-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; text-align: center; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line); }
.al-empty img { width: 70px; opacity: .8; }
.al-empty b { font-weight: 400; font-size: 16px; color: var(--pink-deep); }
.al-empty span { font-size: 12px; color: var(--ink-soft); }

/* 图鉴 */
.album-dex { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px; scrollbar-width: none; }
.album-dex::-webkit-scrollbar { display: none; }
.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff7dc; color: #a0661a; font-size: 12px; }
.dx-head b { font-weight: 400; font-size: 15px; }
.dx-group { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1.5px var(--line); }
.dx-ghead { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--ink-soft); }
.dx-ghead b { font-weight: 400; font-size: 14px; color: var(--pink-deep); }
.dx-ghead em { margin-left: auto; font-style: normal; font-size: 11px; color: #c88a1c; }
.dx-ghead .dx-claim { margin-left: auto; }
.dx-done { color: #3a9e72 !important; }
.dx-claim { font: inherit; font-size: 12px; border: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; color: #6b3a00; background: linear-gradient(180deg, #ffd36e, #f5a93c); box-shadow: 0 2px 0 #d98a22; animation: dxPulse 1.2s ease-in-out infinite; }
@keyframes dxPulse { 50% { transform: scale(1.06); } }
.dx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dx-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 10px; background: #f8f1f3; }
.dx-img { height: 46px; display: flex; align-items: center; justify-content: center; }
.dx-img img { max-width: 90%; max-height: 46px; object-fit: contain; filter: grayscale(1) brightness(1.15); opacity: .35; }
.dx-cell.got { background: #fff4f7; box-shadow: 0 0 0 1.5px #f6c3d1; }
.dx-cell.got .dx-img img { filter: drop-shadow(0 2px 3px rgba(160, 80, 100, .2)); opacity: 1; }
.dx-name { font-size: 10.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dx-cell:not(.got) .dx-name { color: var(--ink-soft); }
.dx-n { font-size: 9.5px; color: var(--ink-soft); }
.dx-cell.got .dx-n { color: #c0587a; }
.tg.album { background: linear-gradient(90deg, #ffb7c9, #ffd59e); }
.rv-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.al-link { position: relative; color: var(--pink-deep); }
.al-link .badge { position: absolute; right: -10px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #ff5f7e; box-shadow: 0 0 0 2px #fff; animation: dxPulse 1.2s ease-in-out infinite; }
.al-link .badge.hidden { display: none; }

/* 五星：金色相框 */
.al-photo { position: relative; }
.al-photo.gold { background: linear-gradient(180deg, #fffaf0, #fff3d6); box-shadow: 0 0 0 3px #f2c65a, 0 0 0 5px #fff1c2, 0 6px 18px rgba(224, 169, 58, .35); }
.al-photo.gold .al-scene { background: radial-gradient(circle at 50% 40%, #fff 0 30%, #ffe9b0 100%); }
.al-photo.gold::after { content: ''; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .32) 50%, transparent 56%); background-size: 250% 100%; animation: goldShine 3.2s ease-in-out infinite; }
@keyframes goldShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.al-ribbon { position: absolute; left: -6px; top: 14px; z-index: 3; font-size: 12px; color: #7a4500; padding: 3px 10px 3px 8px; border-radius: 4px 8px 8px 4px;
  background: linear-gradient(180deg, #ffd86e, #f0a92e); box-shadow: 0 2px 4px rgba(200, 130, 30, .35); transform: rotate(-6deg); }
.al-ribbon::before { content: '★ '; }
.al-photo.gold .al-items { color: #b0741c; }

/* 存成图片 */
.al-save { font: inherit; font-size: 12px; border: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.al-save.hidden { display: none; }
.shot-box { width: min(90vw, 360px); max-height: 90vh; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .shot-box { animation: ovPop .6s var(--spring); }
.shot-tip { text-align: center; font-size: 13px; color: var(--pink-deep); }
.shot-img-wrap { min-height: 200px; display: flex; align-items: center; justify-content: center; overflow: auto; border-radius: 10px; background: rgba(255, 255, 255, .6); scrollbar-width: none; }
.shot-img-wrap::-webkit-scrollbar { display: none; }
.shot-img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(160, 80, 100, .2); -webkit-touch-callout: default; user-select: auto; -webkit-user-select: auto; }
.shot-img:not([src]) { display: none; }
.shot-actions { display: flex; gap: 8px; }
.shot-actions .btn { flex: 1; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.shot-actions .btn.hidden { display: none; }

/* =====================================================================
   画面减负：买家气泡浮在画面上方、几秒后收起；接单台只留一句留言
   ===================================================================== */
.stage > .say, .pack-stage > .say {
  position: absolute; left: 6px; right: 6px; top: 4px; z-index: 30; min-height: 0;
  font-size: 13.5px; padding: 7px 12px; pointer-events: none;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s;
}
.stage > .say.on, .pack-stage > .say.on { opacity: 1; transform: none; }
.stage > .say.pop-in, .pack-stage > .say.pop-in { animation: none; }
.pack-stage { position: relative; }
#s-shop .chat { gap: 6px; }
.msg-more { align-self: flex-start; font: inherit; font-size: 12px; color: var(--pink-deep); border: none; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1.5px var(--line); }
#s-shop .chat.open { overflow-y: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; }
#s-shop .chat.open::-webkit-scrollbar { display: none; }
.tie-name { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); display: none; white-space: nowrap; pointer-events: none;
  font-size: 13px; color: #fff; padding: 3px 10px; border-radius: 999px; background: rgba(236, 127, 156, .9); box-shadow: 0 2px 6px rgba(160, 80, 100, .25); }
.ribbon-dots.live .tie-name { display: block; }
.tie-dot.next { z-index: 2; }

/* =====================================================================
   转盘 v2：字更大、永远朝上、颜色分明，支持连转
   ===================================================================== */
.wheel-wrap { width: min(80vw, 44vh, 320px); }
.wheel { box-shadow: 0 0 0 7px #ec7f9c, 0 0 0 11px #fff, 0 0 0 14px #f3c95d, 0 14px 30px rgba(0, 0, 0, .35); }
.wline { width: 3px; margin-left: -1.5px; background: rgba(255, 255, 255, .95); }
.wheel .wl { width: auto; height: auto; margin: 0; transform: translate(-50%, -50%); display: block; }
.wheel .wl-in { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; will-change: transform; }
.wheel .wl em { font-size: clamp(14px, 4.4vw, 17px); color: #6b2e45; letter-spacing: .5px;
  -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.wheel .wl .wi { width: clamp(24px, 8vw, 32px); height: clamp(24px, 8vw, 32px); }
.wheel .wl-pet .wi, .wheel .wl-mystery .wi { width: clamp(28px, 9vw, 36px); height: clamp(28px, 9vw, 36px); }

.wheel-hub { width: 70px; height: 70px; margin: -35px 0 0 -35px; font-size: 22px; }
.wheel-sub { font-size: 15px; }

.wheel-multi { font: inherit; font-size: 16px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; color: #7a4500; background: linear-gradient(180deg, #ffe08a, #f5b13c);
  box-shadow: 0 0 0 3px #fff, 0 4px 0 #d98a22, 0 8px 16px rgba(0, 0, 0, .25); }
.wheel-multi .mini-wheel { width: 20px; height: 20px; }
.wheel-multi:active { transform: translateY(2px); box-shadow: 0 0 0 3px #fff, 0 2px 0 #d98a22; }
.wheel-multi:disabled { filter: grayscale(.5); opacity: .7; }
.wheel-multi.hidden { display: none; }

.wheel-result.multi { opacity: 1; transform: none; width: 100%; }
.wr-one { font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.wr-one .wi { width: 30px; height: 30px; flex: none; }
.wr-sum .wi { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; margin: 0 2px 0 6px; }
.wr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wr-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; padding: 6px 6px 5px; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 2px #f6c3d1, 0 4px 8px rgba(0, 0, 0, .2); animation: chipIn .4s var(--spring) both; animation-delay: calc(var(--i) * 120ms); }
@keyframes chipIn { from { transform: scale(.4) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.wr-chip .wi { width: 26px; height: 26px; display: block; background-position: center; background-repeat: no-repeat; background-size: contain; }
.wr-chip em { font-style: normal; font-size: 13px; color: #6b2e45; white-space: nowrap; }
.wr-chip.jackpot { box-shadow: 0 0 0 2px #f3c95d, 0 0 12px rgba(255, 200, 80, .8); }
.wr-chip.jackpot em { color: #d9306a; }
.wr-chip.wl-coin .wi { filter: drop-shadow(0 1px 2px rgba(150, 90, 20, .25)); }
.wr-sum { margin-top: 8px; font-size: 16px; color: #ffe58f; -webkit-text-stroke: 1px #c23d6c; paint-order: stroke fill; }
.wheel-wrap { margin: 26px 0 16px; width: min(78vw, 40vh, 320px); }
.wheel-box { gap: 6px; }
.wheel-title { line-height: 1.1; }

/* 配货台：只看订单、手机和货架，顶上的等级 / 天数 / 金币不显示 */
#s-work .js-hud { display: none; }

/* 转盘标题：粉色缎带横幅 + 白字；副标题：白底小胶囊 */
.wheel-title { position: relative; font-size: 26px; letter-spacing: 3px; color: #fff; line-height: 1.2;
  -webkit-text-stroke: 0; text-shadow: 0 2px 0 rgba(150, 30, 70, .35);
  padding: 6px 30px 7px; border-radius: 12px; background: linear-gradient(180deg, #ff9dbb, #e5487a);
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0, 0, 0, .3); }
.wheel-title::before, .wheel-title::after { content: ''; position: absolute; top: 10px; width: 18px; height: 26px; background: #c93a68; z-index: -1; }
.wheel-title::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.wheel-title::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.wheel-sub { font-size: 14px; color: #c0386a; background: #fff; padding: 3px 12px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.wheel-x { position: absolute; right: 0; top: 0; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 2px var(--line), 0 3px 8px rgba(0, 0, 0, .25); }
.wheel-x::before, .wheel-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 2px; background: #e5487a; }
.wheel-x::before { transform: rotate(45deg); }
.wheel-x::after { transform: rotate(-45deg); }
.wheel-x:disabled { opacity: .35; cursor: default; }

/* 爆单光边：放在画面背景之上、内容卡片之下，只在屏幕边缘发光，不再罩住订单 */
#app.fever::after { content: none; }
#app.fever .screen.active::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(255, 205, 90, .9), inset 0 0 40px rgba(255, 170, 60, .55);
  animation: feverEdge 1.2s ease-in-out infinite;
}
/* 配货台没有顶栏后，订单条离屏幕上沿留一点距离 */
#s-work .content { padding-top: calc(16px + env(safe-area-inset-top)); }

/* 打包台：只看订单、礼盒和托盘，顶栏和步骤条不显示 */
#s-pack .js-hud, #s-pack #pack-progress { display: none; }
#s-pack .content { padding-top: calc(16px + env(safe-area-inset-top)); }

/* 订单条里的对号会往右上方凸出 5px，这一排上方和右侧留出空间，免得被裁掉 */
.order-strip .slots { padding: 7px 7px 0 0; margin-top: -7px; }

/* 系完丝带：画出来的线和圆点淡出，发走的盒子上不留线；封口章照常保留 */
.ribbon-dots .ribbon-path, .ribbon-dots .tie-dot { transition: opacity .6s ease-out; }
.ribbon-dots.fade .ribbon-path, .ribbon-dots.fade .tie-dot, .ribbon-dots.fade .tie-name { opacity: 0; }

/* 盖上盖子后，放进盒子里的装饰（小卡、干花、蝴蝶结、糖果、拍立得）跟着收进盒子；猫咪贴纸是贴在盒子外面的，留着 */
.pack-box.closed .deco-slot { opacity: 0; transition: opacity .25s ease-in .15s; }

/* 今日目标已去掉 */
#btn-goals, #lg-goals { display: none !important; }
.shop-bar { justify-content: flex-end; }

/* =====================================================================
   打包台：盒子从选盒到发货固定在同一个位置、同一个大小
   - 中间区域高度固定，不随下面托盘（一排礼盒 / 两排装饰 / 按钮）变化
   - 盒子框是正方形，虚线框、打开的盒子、合上的盒子都铺满它
   ===================================================================== */
#s-pack .pack-stage, #s-pack .content.tray-hidden .pack-stage {
  flex: none; min-height: 0; height: clamp(230px, min(94vw, calc(100vh - 370px)), 440px); container-type: size;
}
#s-pack .pack-box { height: auto; width: min(92cqw, 96cqh); max-width: none; aspect-ratio: 1; }
#s-pack .box-ghost { inset: 4%; }
#s-pack .pbox, #s-pack .plid { object-fit: fill; }

/* 打包台：盒子 + 托盘作为一组，在订单条和底部按钮之间上下居中；
   托盘区、按钮区始终占同样的高度，所以每一步盒子都不会动 */
#s-pack .pack-stage { margin-top: auto; }
#s-pack #pack-tray { min-height: 104px; margin-bottom: auto; align-items: flex-start; }
#s-pack #pack-tray.idle { display: flex; visibility: hidden; }
#s-pack .pack-footer { display: flex !important; min-height: 52px; margin-top: 0; }
#s-pack #pack-tray { height: 116px; min-height: 116px; box-sizing: border-box; }
#s-pack #pack-tray .gt { box-sizing: border-box; }

/* =====================================================================
   包装系统 v2：更大的盒子、铺填充（拉菲草 / 珠光碎纸 / 玫瑰花瓣 / 星星灯串）
   ===================================================================== */
/* 盒子更大：占满中间区域的宽度 */
#s-pack .pack-stage, #s-pack .content.tray-hidden .pack-stage { height: clamp(240px, min(calc(100vw - 24px), calc(100vh - 360px)), 460px); }
#s-pack .pack-box { width: min(100cqw, 100cqh); }
/* 货品在大盒子里摆得舒展一点，露出下面的填充 */
#s-pack .in-item.slot-case { height: 58%; left: 39%; }
#s-pack .in-item.slot-support { height: 22%; left: 71%; top: 34%; }
#s-pack .in-item.slot-acc { height: 27%; left: 71%; top: 64%; }
/* 填充层：铺在盒子内底，货品之下 */
.pfill { position: absolute; z-index: 1; width: auto; height: auto; object-fit: fill; pointer-events: none; opacity: 0; transition: opacity .35s ease-out; }
.pfill.on { opacity: 1; }
.pfill.lights { z-index: 3; filter: drop-shadow(0 0 6px rgba(255, 214, 120, .85)); }
.pfill.lights.on { animation: lightsTwinkle 1.6s ease-in-out infinite; }
@keyframes lightsTwinkle { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 120, .7)) brightness(1); } 50% { filter: drop-shadow(0 0 12px rgba(255, 220, 130, 1)) brightness(1.18); } }
.pfill.fill-in { animation: fillIn .45s cubic-bezier(.3, 1.3, .5, 1); }
.pfill.lights.fill-in { animation: fillIn .45s cubic-bezier(.3, 1.3, .5, 1), lightsTwinkle 1.6s ease-in-out .45s infinite; }
@keyframes fillIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.pack-box.closed .pfill { opacity: 0; transition: opacity .25s ease-in .15s; animation: none; }
/* 托盘里选中的填充 */
#pack-tray .gt.picked { box-shadow: 0 0 0 3px #f3c95d, 0 0 14px rgba(255, 200, 80, .7); background: linear-gradient(180deg, #fffaf0, #fff1cf); }
#pack-tray .gt.picked::after { content: '✓'; position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: #f0b43c; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
#pack-tray .gt { position: relative; }
#pack-tray .gt[data-kind="fill"] .gt-img img { border-radius: 8px; }
.tg.fill { background: linear-gradient(90deg, #f6c66d, #f38fb0); }

/* =====================================================================
   店铺等级 v2：红心 / 蓝钻 / 皇冠 / 金冠 四档徽章，每档 5 级
   ===================================================================== */
.medal.rank { background: none; box-shadow: none; border-radius: 0; width: 44px; height: 44px; }
.medal.rank::after { display: none; }
.medal.rank .ti { display: none; }
.medal.rank img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(150, 60, 90, .3)); }
.medal.rank b { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); margin: 0; font-size: 9.5px; line-height: 1; white-space: nowrap;
  color: #fff; padding: 2px 5px; border-radius: 999px; background: var(--rk, #ec6f90); box-shadow: 0 0 0 1.5px #fff; text-shadow: none; }
.medal.rank.tier-diamond { --rk: #4b9be6; }
.medal.rank.tier-crown { --rk: #a46ad8; }
.medal.rank.tier-gold { --rk: linear-gradient(90deg, #e9a92a, #d9821a); }
.medal.rank.tier-gold img { filter: drop-shadow(0 0 6px rgba(255, 200, 80, .8)); animation: goldGlow 2.4s ease-in-out infinite; }
@keyframes goldGlow { 50% { filter: drop-shadow(0 0 12px rgba(255, 210, 90, 1)); } }
.medal.rank.big { width: 132px; height: 132px; }
.medal.rank.big b { font-size: 16px; padding: 4px 12px; bottom: -6px; }

/* 顶栏等级卡 */
button.hud-lv { font: inherit; text-align: left; cursor: pointer; border: none; color: inherit; }
.hud-lv .lv-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hud-lv .lv-name { flex: 0 1 auto; }
.hud-lv .lv-info, .hud-lv .lv-bar, .hud-lv .lv-fans { display: flex; }
.hud-lv .lv-info { flex-direction: column; }
.hud-lv .lv-bar { display: block; }
.pips { display: inline-flex; gap: 1px; flex: none; }
.pips .pip { width: 13px; height: 13px; object-fit: contain; filter: grayscale(1) opacity(.28); }
.pips .pip.on { filter: none; }
.hud-lv.tier-diamond .lv-bar i { background: linear-gradient(90deg, #bfe0ff, #4b9be6); box-shadow: 0 0 6px rgba(75, 155, 230, .6); }
.hud-lv.tier-crown .lv-bar i { background: linear-gradient(90deg, #e6d2ff, #a46ad8); box-shadow: 0 0 6px rgba(164, 106, 216, .6); }
.hud-lv.tier-gold { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f3c95d, 0 0 14px rgba(255, 200, 80, .6); }
.hud-lv.tier-gold .lv-bar i { background: linear-gradient(90deg, #ffe7a0, #e9a92a); box-shadow: 0 0 6px rgba(240, 170, 40, .7); }
.hud-lv:active { transform: scale(.97); }

/* 升级弹窗 */
.lv-box .lv-kicker { font-size: 34px; }
.lv-box.tier-up .lv-kicker { color: #ffe58f; -webkit-text-stroke: 3px #d9577a; }
.lv-title .lv-pipline { display: block; margin-bottom: 4px; }
.lv-title .pips .pip { width: 24px; height: 24px; }
.lv-rewards { flex-wrap: wrap; justify-content: center; }
.lv-perk { flex-basis: 100%; margin-top: 4px; font-size: 15px; color: #7a4500; background: linear-gradient(90deg, #fff4cf, #ffe2a0); border-radius: 14px; padding: 7px 12px; box-shadow: 0 0 0 2px #fff; }
.lv-perk em { font-style: normal; font-size: 12px; color: #fff; background: #e39a2a; border-radius: 999px; padding: 2px 8px; margin-right: 6px; }

/* 店铺等级页 */
.rank-box { width: min(92vw, 380px); max-height: 90vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 24px; border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .rank-box { animation: ovPop .6s var(--spring); }
.rank-box .btn { width: 100%; flex: none; }
.rank-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; padding: 2px; }
.rank-body::-webkit-scrollbar { display: none; }
.rk-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.rk-head.tier-diamond { background: linear-gradient(135deg, #fff, #e6f2ff); }
.rk-head.tier-crown { background: linear-gradient(135deg, #fff, #f1e6ff); }
.rk-head.tier-gold { background: linear-gradient(135deg, #fffaf0, #ffe9b0); box-shadow: 0 0 0 2px #f3c95d; }
.rk-head .medal.rank.big { width: 96px; height: 96px; flex: none; }
.rk-head .medal.rank.big b { font-size: 13px; padding: 3px 9px; }
.rk-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rk-tier { font-size: 12px; color: var(--ink-soft); }
.rk-title { font-size: 20px; color: var(--pink-deep); }
.rk-meta .pips .pip { width: 18px; height: 18px; }
.rk-bar { height: 8px; border-radius: 999px; background: #f6dfe6; overflow: hidden; margin-top: 3px; }
.rk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffc0d0, #ec6f90); }
.rk-head.tier-diamond .rk-bar i { background: linear-gradient(90deg, #bfe0ff, #4b9be6); }
.rk-head.tier-crown .rk-bar i { background: linear-gradient(90deg, #e6d2ff, #a46ad8); }
.rk-head.tier-gold .rk-bar i { background: linear-gradient(90deg, #ffe7a0, #e9a92a); }
.rk-next { font-size: 11px; color: var(--ink-soft); }
.rk-perks { background: #fff; border-radius: 16px; padding: 9px 10px; box-shadow: 0 0 0 1.5px var(--line); }
.rk-sub { font-size: 13px; color: var(--pink-deep); margin-bottom: 6px; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rk-chips span { font-size: 12px; color: #7a4500; background: #fff4cf; border-radius: 10px; padding: 3px 8px; }
.rk-chips em { font-style: normal; color: #a0661a; margin-right: 4px; font-size: 11px; }
.rk-none { font-size: 12px; color: var(--ink-soft); }
.rk-road { display: flex; flex-direction: column; gap: 4px; }
.rk-tierhead { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.rk-tierhead img { width: 26px; height: 26px; object-fit: contain; }
.rk-tierhead b { font-weight: 400; color: var(--pink-deep); }
.rk-tierhead.tier-diamond b { color: #3b86d0; }
.rk-tierhead.tier-crown b { color: #8a54c4; }
.rk-tierhead.tier-gold b { color: #c17a12; }
.rk-row { display: grid; grid-template-columns: 38px 1fr 1.15fr 30px; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #f3dfe5; }
.rk-lv { font-size: 12px; color: var(--pink-deep); }
.rk-name { font-size: 13px; color: var(--ink); display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rk-name small { font-size: 10px; color: var(--ink-soft); }
.rk-pk { font-size: 11px; color: #a0661a; line-height: 1.3; }
.rk-st { font-style: normal; font-size: 11px; text-align: center; color: #3a9e72; }
.rk-row.cur { background: linear-gradient(90deg, #fff4f7, #ffe3ec); box-shadow: 0 0 0 2px #f08aa7; }
.rk-row.cur .rk-st { color: #fff; background: #ec6f90; border-radius: 999px; padding: 2px 0; font-size: 10px; }
.rk-row.lock { opacity: .55; }
.rk-row.lock .rk-pk { color: var(--ink-soft); }
.hud-lv .lv-fans { align-items: center; justify-content: space-between; gap: 4px; }
.hud-lv .lv-fnum b { font-size: 14px; }
.hud-lv .pips .pip { width: 12px; height: 12px; }
.hud-lv .lv-name { font-size: 12.5px; }
#lv-medal { background: none !important; box-shadow: none !important; width: auto; height: auto; border-radius: 0; }
#lv-medal::after { display: none; }
#lv-medal .medal.rank.big { filter: drop-shadow(0 0 22px rgba(255, 255, 255, .75)); }
.lv-title .pips { gap: 3px; }
.lv-title .pips .pip { filter: grayscale(1) brightness(1.6) opacity(.55); }
.lv-title .pips .pip.on { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8)); }

/* 打包台：棉花糖坐在底部按钮左边，不再叠在放大后的盒子上 */
#s-pack .pack-footer { position: relative; min-height: 64px; padding-left: 86px; align-items: flex-end; }
#s-pack .pack-footer .pet-cat { position: absolute; left: 2px; bottom: 0; width: 58px; }
#s-pack .pack-footer .pet-cat .pet-tip { top: calc(var(--ht, 0) * 100% - 18px); }
/* 打包台棉花糖放大：底部一排加高放下她，盒子区域相应让出高度 */
#s-pack .pack-footer { min-height: 112px; padding-left: 100px; }
#s-pack .pack-footer .pet-cat { width: 90px; }
#s-pack .pack-stage, #s-pack .content.tray-hidden .pack-stage { height: clamp(240px, min(calc(100vw - 24px), calc(100vh - 404px)), 460px); }
@media (max-height: 760px) {
  #s-pack .pack-footer { min-height: 90px; padding-left: 82px; }
  #s-pack .pack-footer .pet-cat { width: 72px; }
  #s-pack .pack-stage, #s-pack .content.tray-hidden .pack-stage { height: clamp(220px, min(calc(100vw - 24px), calc(100vh - 384px)), 460px); }
}

/* =====================================================================
   首屏「店主工作室」：店铺状态 + 入口 + 棉花糖 + 开始营业
   ===================================================================== */
#s-title .hub-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 240, 245, .35) 0%, rgba(255, 240, 245, 0) 22%, rgba(255, 240, 245, 0) 62%, rgba(255, 228, 236, .55) 100%); }
#s-title .content.hub { position: relative; z-index: 3; height: 100%; display: block; padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); }
:is(#s-title, #s-store, #s-review) .hud { position: relative; }
.hub-icons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.hub-ico { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), 0 4px 10px rgba(214, 120, 148, .25); padding: 0; }
.hub-ico img { width: 26px; height: 26px; object-fit: contain; }
.hub-ico .mini-wheel { width: 26px; height: 26px; }
.hub-ico.music-btn { min-height: 0; }
.hub-ico .badge, .hub-btn .badge { position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f7e; box-shadow: 0 0 0 2px #fff; animation: dxPulse 1.2s ease-in-out infinite; }
.hub-ico .badge.hidden, .hub-btn .badge.hidden { display: none; }
.hub-ico .count { position: absolute; right: -5px; top: -5px; }
.hub-logo-wrap { position: relative; text-align: center; margin-top: 2px; pointer-events: none; }
.hub-logo-wrap .logo-title.hub-logo { font-size: clamp(30px, 9vw, 40px); margin: 0; }
.hub-side { position: absolute; top: 34%; display: flex; flex-direction: column; gap: 14px; z-index: 4; }
.hub-side.left { left: 12px; }
.hub-side.right { right: 12px; }
.hub-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; border: none; background: none; cursor: pointer; padding: 0; font: inherit; }
.hub-btn .hb-ic { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, #ffe3ec 100%); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f6b8c8, 0 6px 14px rgba(214, 90, 130, .3); }
.hub-btn .hb-ic img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(160, 80, 100, .25)); }
.hub-btn b { margin-top: -6px; font-weight: 400; font-size: 14px; color: var(--pink-deep); background: #fff; padding: 2px 12px; border-radius: 999px; box-shadow: 0 0 0 2px #f6b8c8, 0 3px 6px rgba(214, 90, 130, .2); position: relative; }
.hub-btn:active .hb-ic { transform: scale(.92); }
.hub-btn .badge { right: 2px; top: 0; }
.hub-stage { position: absolute; left: 0; right: 0; bottom: calc(var(--hp, 190px) + 6px); display: flex; flex-direction: column; align-items: center; z-index: 3; pointer-events: none; }
.hub-cat { position: relative; width: min(44vw, 30vh, 200px); margin-bottom: 14px; border: none; background: none; padding: 0; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; isolation: isolate; }
/* 首页的猫只是「猫」，窝按装修预览的相对比例换算：窝 = 猫 × (82/52) = 158%，窝底 = 猫高 × 15.7% ≈ 16% */
.hub-cat .hc-body { position: relative; display: block; width: 100%; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
.hub-cat .w-cat { filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .3)); }
.hub-cat .hc-bed, .hub-cat .hc-toy { position: absolute; display: none; pointer-events: none; }
.hub-cat .hc-bed.on, .hub-cat .hc-toy.on { display: block; }
.hub-cat .hc-bed { width: 158%; left: 50%; margin-left: -79%; bottom: -16%; z-index: -1; }
.hub-cat .hc-toy { width: 42%; left: 82%; bottom: -2%; z-index: 1; animation: toyWobble 3s ease-in-out infinite; transform-origin: 50% 100%; }
.hub-cat.purr .hc-body { animation: purr .7s var(--spring); }
.hub-say { max-width: min(76vw, 280px); margin-bottom: 6px; font-size: 14px; line-height: 1.45; color: var(--ink); background: #fff; padding: 8px 13px; border-radius: 16px; position: relative;
  box-shadow: 0 0 0 2px var(--line), 0 4px 12px rgba(160, 80, 100, .2); opacity: 0; transform: scale(.6) translateY(10px); transform-origin: 50% 100%; transition: opacity .25s, transform .25s; }
.hub-say::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #fff; box-shadow: 1.5px 1.5px 0 0 var(--line); transform: rotate(45deg); }
.hub-say.on { opacity: 1; transform: none; }
.hub-panel { position: absolute; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 12px 14px 10px; border-radius: 22px; background: rgba(255, 252, 250, .95); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), 0 10px 24px rgba(160, 80, 100, .25); }
.hub-panel .title-save { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: none; box-shadow: none; padding: 0; margin: 0; animation: none; }
.hub-panel .title-save b { font-weight: 400; font-size: 17px; color: var(--pink-deep); }
.hub-panel .title-save span { font-size: 12.5px; color: var(--ink-soft); }
.hub-panel .start-btn { width: 100%; margin: 0; }
.hub-panel .start-btn.tired { background: linear-gradient(180deg, #c9b8f0, #9c86d8); box-shadow: 0 0 0 2px #fff, 0 4px 0 #7f69be; }
.hub-links { display: flex; justify-content: center; gap: 16px; min-height: 18px; }
.hub-links .hidden { display: none; }
#s-shop .shop-bar.hidden { display: none; }
/* 接单台精简：不放顶栏 */
#s-shop .js-hud { display: none; }
@media (max-height: 700px) {
  .hub-logo-wrap .logo-title.hub-logo { font-size: 28px; }
  .hub-side { top: 30%; gap: 10px; }
  .hub-btn .hb-ic { width: 54px; height: 54px; }
  .hub-btn .hb-ic img { width: 36px; height: 36px; }
  .hub-panel { padding: 10px 12px 8px; gap: 6px; }
}
.hub-say { margin-bottom: 40px; }
.hub-panel .start-btn { animation: btnBreath 2.8s ease-in-out infinite; min-height: 56px; }
.hub-links { position: relative; z-index: 2; }

/* =====================================================================
   接单台：买家视频通话
   ===================================================================== */
#s-shop .shop-mid { position: relative; }
.vcall { position: absolute; inset: 2px 0 4px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #ffe6ee, #f3dcff);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line), 0 10px 24px rgba(160, 80, 100, .25); }
.vc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; opacity: 0; transition: opacity .5s ease-out, transform .6s ease-out; transform: scale(1.06); }
.vcall.live .vc-img { opacity: 1; transform: none; }
.vcall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(80, 30, 55, .35)); z-index: 1; }
.vc-top { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; gap: 6px; align-items: center; }
.vc-live, .vc-time { font-size: 11px; color: #fff; background: rgba(60, 20, 40, .45); padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vc-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f7e; box-shadow: 0 0 6px #ff5f7e; animation: dxPulse 1.2s ease-in-out infinite; }
.vcall:not(.live) .vc-top { opacity: 0; }
/* 响铃 */
.vc-ring { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff;
  background: radial-gradient(circle at 50% 42%, rgba(255, 170, 200, .85), rgba(170, 90, 140, .92)); opacity: 0; pointer-events: none; transition: opacity .35s; }
.vcall.ringing .vc-ring { opacity: 1; }
.vc-ring-ava { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff; animation: ringPulse 1s ease-in-out infinite; }
.vc-ring-ava img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ringPulse { 0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgba(255, 255, 255, .6); } 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 18px rgba(255, 255, 255, 0); } }
.vc-ring b { font-weight: 400; font-size: 20px; }
.vc-ring span { font-size: 13px; opacity: .9; }
/* 店长小窗：棉花糖 */
.vc-self { position: absolute; right: 10px; top: 10px; z-index: 3; width: 88px; height: 116px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #fff6f8, #ffd9e4); box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgba(80, 30, 55, .3); }
.vc-self .desk-cat { position: absolute; left: 4%; right: auto; top: auto; bottom: -6%; width: 92%; }
.vc-self-tag { position: absolute; left: 6px; bottom: 5px; font-size: 10px; color: #fff; background: rgba(236, 111, 144, .9); padding: 1px 7px; border-radius: 999px; z-index: 2; pointer-events: none; }
.vcall .desk-say { right: 106px; top: 40px; z-index: 5; }
/* 字幕：买家说的话 */
.vcall .chat { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; max-height: 52%; flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0; overflow: hidden; pointer-events: none; }
.vcall .chat.open { overflow-y: auto; pointer-events: auto; }
.vcall .chat > * { pointer-events: auto; }
.vcall .msg { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(80, 30, 55, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vcall .msg-more { background: rgba(255, 255, 255, .9); }
.vcall:not(.live) .chat { opacity: 0; }

/* =====================================================================
   首屏：白天 / 傍晚 / 夜晚
   ===================================================================== */
#s-title .hub-bg { transition: opacity 1.2s ease-in-out; }
#s-title .hub-bg.eve, #s-title .hub-bg.night { opacity: 0; }
#s-title.ph-eve .hub-bg.eve, #s-title.ph-night .hub-bg.night { opacity: 1; }
#s-title.ph-night .hub-scrim { background: linear-gradient(180deg, rgba(40, 30, 80, .25) 0%, rgba(40, 30, 80, 0) 25%, rgba(40, 30, 80, 0) 60%, rgba(60, 30, 70, .35) 100%); }
#s-title.ph-night .hub-logo { filter: drop-shadow(0 0 8px rgba(255, 220, 240, .7)); }
#s-title.ph-night .dc.glow { filter: drop-shadow(0 0 10px rgba(255, 220, 130, 1)) brightness(1.15); }
/* 左右各三个入口 */
.hub-side { top: 29%; gap: 10px; }
.hub-pc .hb-ic img { width: 50px; height: 40px; border-radius: 6px; }
@media (max-height: 700px) { .hub-side { top: 27%; gap: 6px; } .hub-btn .hb-ic { width: 50px; height: 50px; } .hub-btn .hb-ic img { width: 32px; height: 32px; } .hub-pc .hb-ic img { width: 40px; height: 32px; } .hub-btn b { font-size: 12.5px; padding: 1px 10px; } }

/* =====================================================================
   店铺后台（电脑）
   ===================================================================== */
.pc-box { width: min(94vw, 400px); max-height: 90vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fffafc;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f3c4d2, 0 20px 44px rgba(80, 30, 55, .4); }
.overlay.opening .pc-box { animation: ovPop .6s var(--spring); }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: linear-gradient(180deg, #ffd3df, #f6b4c7); }
.pc-bar i { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .85; }
.pc-bar i:nth-child(1) { background: #ff8fa8; } .pc-bar i:nth-child(2) { background: #ffd36e; } .pc-bar i:nth-child(3) { background: #8fdcb4; }
.pc-bar span { margin-left: 6px; font-size: 13px; color: #9b3f62; }
.pc-body { overflow-y: auto; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.pc-body::-webkit-scrollbar { display: none; }
.pc-box > .btn { margin: 0 12px 12px; flex: none; }
.pc-shop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #fff, #ffe9f0); box-shadow: 0 0 0 1.5px var(--line); }
.pc-shopinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-shopinfo b { font-weight: 400; font-size: 18px; color: var(--pink-deep); }
.pc-shopinfo span { font-size: 12px; color: var(--ink-soft); }
.pc-score { text-align: center; }
.pc-score b { display: block; font-weight: 400; font-size: 26px; color: #e39a2a; line-height: 1; }
.pc-score span { font-size: 11px; color: var(--ink-soft); }
.pc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-cards div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #f3dfe5; }
.pc-cards span { font-size: 10.5px; color: var(--ink-soft); }
.pc-cards b { font-weight: 400; font-size: 15px; color: var(--pink-deep); white-space: nowrap; }
.pc-sec { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 0 0 1.5px #f3dfe5; }
.pc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 14px; color: var(--pink-deep); margin-bottom: 8px; }
.pc-h small { font-size: 11px; color: var(--ink-soft); }
.pc-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 4px; }
.pc-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.pc-col i { width: 70%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ffc0d0, #ec7f9c); }
.pc-col.today i { background: linear-gradient(180deg, #ffe08a, #f5a93c); }
.pc-col em { font-style: normal; font-size: 11px; color: var(--pink-deep); }
.pc-col span { font-size: 9.5px; color: var(--ink-soft); white-space: nowrap; }
.pc-rev { display: flex; gap: 8px; padding: 7px 0; border-top: 1px dashed #f3dfe5; }
.pc-rev:first-of-type { border-top: none; }
.pc-rev img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #f6c3d1; }
.pc-rev > div { flex: 1; min-width: 0; }
.pc-rv1 { display: flex; align-items: center; gap: 6px; }
.pc-rv1 b { font-weight: 400; font-size: 13px; color: var(--ink); }
.pc-rv1 small { margin-left: auto; font-size: 10px; color: var(--ink-soft); }
.pc-stars i { font-style: normal; font-size: 11px; color: #ead9de; }
.pc-stars i.on { color: #ffc23d; }
.pc-rev p { margin: 2px 0; font-size: 12px; color: var(--ink); line-height: 1.4; }
.pc-rev > div > small { font-size: 10.5px; color: #c0587a; }
.pc-none { font-size: 12px; color: var(--ink-soft); padding: 6px 0; }
.pc-reg { display: grid; grid-template-columns: 18px 36px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; align-items: center; padding: 7px 0; border-top: 1px dashed #f3dfe5; }
.pc-reg:first-of-type { border-top: none; }
.pc-rk { grid-row: 1 / 3; font-size: 13px; color: #e39a2a; text-align: center; }
.pc-reg img { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px #f6c3d1; }
.pc-reg > div { display: flex; flex-direction: column; min-width: 0; }
.pc-reg > div b { font-weight: 400; font-size: 13px; color: var(--ink); }
.pc-reg > div small { font-size: 10.5px; color: var(--ink-soft); }
.pc-n { font-size: 11px; color: var(--ink-soft); text-align: right; }
.pc-n b { font-weight: 400; font-size: 15px; color: var(--pink-deep); }
.pc-reg .aff-hearts { grid-column: 3; }
.pc-tag { grid-column: 4; font-style: normal; font-size: 10px; color: #a0661a; background: #fff4cf; padding: 1px 6px; border-radius: 8px; text-align: center; }

/* 配货台 / 打包台：买家头像改成小视频窗，表情跟着耐心变 */
.order-strip .avatar-ring.sm.js-mood { width: 52px; height: 66px; border-radius: 14px; overflow: hidden; flex: none; }
.order-strip .avatar-ring.sm.js-mood img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 12px; }
#rv-avatar { object-fit: cover; object-position: 50% 10%; }

/* 后台：回复评价 */
.pc-rbtns { display: flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.pc-rbtns span { font-size: 11px; color: var(--ink-soft); }
.pc-rbtns button { font: inherit; font-size: 11.5px; border: none; cursor: pointer; padding: 3px 10px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.pc-rbtns button:active { transform: translateY(1px); box-shadow: 0 1px 0 #d9677f; }
.pc-reply { margin-top: 5px; font-size: 11.5px; line-height: 1.45; color: var(--ink); background: #fff4f7; border-radius: 10px; padding: 5px 8px; }
.pc-reply em { font-style: normal; font-size: 10px; color: #fff; background: #ec7f9c; border-radius: 999px; padding: 1px 6px; margin-right: 5px; }

/* =====================================================================
   成就
   ===================================================================== */
.hub-ico .hub-q { font-weight: 400; font-size: 20px; color: var(--pink-deep); line-height: 1; }
.ach-box { width: min(92vw, 390px); max-height: 90vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, #fffaf0, #fff0f4); border-radius: 24px; border: 2px solid #fff; box-shadow: 0 0 0 3px #f3c95d, 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .ach-box { animation: ovPop .6s var(--spring); }
.ach-head { display: flex; align-items: center; gap: 10px; justify-content: center; }
.ach-head img { width: 54px; height: 54px; object-fit: contain; }
.ach-head .mail-title { text-align: left; }
.ach-sum { font-size: 12.5px; color: #a0661a; }
.ach-bar { height: 8px; border-radius: 999px; background: #f6e3c5; overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffe08a, #f5a93c); }
.ach-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; padding: 2px; }
.ach-body::-webkit-scrollbar { display: none; }
.ach-box > .btn { width: 100%; flex: none; }
.ach-cat { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1.5px #f3dfe5; display: flex; flex-direction: column; gap: 6px; }
.ach-ch { display: flex; align-items: center; gap: 6px; }
.ach-ch img { width: 26px; height: 26px; object-fit: contain; }
.ach-ch b { font-weight: 400; font-size: 15px; color: var(--pink-deep); }
.ach-ch span { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.ach-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: #fbf6f7; }
.ach-row > img { width: 38px; height: 38px; object-fit: contain; flex: none; filter: grayscale(.85) opacity(.55); }
.ach-row.done > img { filter: drop-shadow(0 2px 3px rgba(160, 80, 100, .25)); }
.ach-row.done { background: linear-gradient(90deg, #fffaf0, #fff1d2); box-shadow: 0 0 0 1.5px #f3c95d; }
.ach-row.got { background: #f7fbf8; box-shadow: none; }
.ach-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ach-info b { font-weight: 400; font-size: 13.5px; color: var(--ink); }
.ach-info small { font-size: 11px; color: var(--ink-soft); }
.ach-pg { height: 5px; border-radius: 999px; background: #f0e2e6; overflow: hidden; margin-top: 2px; }
.ach-pg i { display: block; height: 100%; background: linear-gradient(90deg, #ffc0d0, #ec7f9c); border-radius: 999px; }
.ach-row.done .ach-pg i { background: linear-gradient(90deg, #ffe08a, #f5a93c); }
.ach-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 70px; }
.ach-n { font-size: 11px; color: var(--ink-soft); }
.ach-rw { font-style: normal; font-size: 11px; color: #a0661a; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ach-got { font-style: normal; font-size: 11px; color: #3a9e72; }
.ach-claim { font: inherit; font-size: 12.5px; border: none; cursor: pointer; padding: 4px 12px; border-radius: 999px; color: #6b3a00; background: linear-gradient(180deg, #ffd36e, #f5a93c); box-shadow: 0 2px 0 #d98a22; animation: dxPulse 1.2s ease-in-out infinite; }

/* =====================================================================
   新手带逛
   ===================================================================== */
.tour { position: fixed; inset: 0; z-index: 140; }
.tour.hidden { display: none; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(70, 25, 50, .62); transition: left .35s var(--silk), top .35s var(--silk), width .35s var(--silk), height .35s var(--silk); pointer-events: none; }
.tour-hole.on { outline: 3px solid #ffe08a; outline-offset: 2px; animation: tourGlow 1.4s ease-in-out infinite; }
@keyframes tourGlow { 50% { outline-color: #fff; } }
.tour-card { position: fixed; left: 14px; right: 14px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px 14px 10px; border-radius: 20px;
  background: #fffafc; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f6b8c8, 0 12px 30px rgba(60, 20, 40, .4); max-width: 460px; margin: 0 auto; }
.tour-card.tour-in { animation: saySpring .35s var(--spring); }
.tour-cat { width: 58px; height: 58px; object-fit: contain; flex: none; }
.tour-text { flex: 1; min-width: 0; }
.tour-text b { display: block; font-weight: 400; font-size: 17px; color: var(--pink-deep); margin-bottom: 3px; }
.tour-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.tour-btns { flex-basis: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.tour-btns .btn { flex: none; min-height: 40px; padding: 0 22px; font-size: 15px; }
.tour-btns .hidden { display: none; }

/* 自定义店名 */
.hub-logo-wrap { display: flex; flex-direction: column; align-items: center; }
.hub-logo-wrap .hub-logo { white-space: nowrap; }
.name-chip { pointer-events: auto; font: inherit; font-size: 11px; color: var(--pink-deep); border: none; cursor: pointer; margin-top: 2px; padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1.5px var(--line); }
.name-box { width: min(88vw, 340px); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 12px; border-radius: 24px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .name-box { animation: ovPop .6s var(--spring); }
.name-cat { width: 74px; height: 74px; object-fit: contain; margin-top: -54px; filter: drop-shadow(0 4px 6px rgba(160, 80, 100, .3)); }
.name-sub { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.name-row { display: flex; gap: 6px; width: 100%; }
#name-input { flex: 1; min-width: 0; font: inherit; font-size: 20px; text-align: center; color: var(--pink-deep); padding: 10px 8px; border-radius: 14px; border: none; outline: none;
  background: #fff; box-shadow: 0 0 0 2px var(--line); }
#name-input:focus { box-shadow: 0 0 0 2.5px #ec7f9c, 0 0 12px rgba(236, 127, 156, .35); }
.name-dice { flex: none; font: inherit; font-size: 13px; border: none; cursor: pointer; padding: 0 12px; border-radius: 14px; color: #6b3a00; background: linear-gradient(180deg, #ffe08a, #f5b13c); box-shadow: 0 2px 0 #d98a22; }
.name-tip { font-size: 11.5px; color: var(--ink-soft); }
.name-tip.bad { color: #e0533f; }
.name-box > .btn { width: 100%; flex: none; }
.pc-rename { font: inherit; font-size: 10.5px; color: var(--pink-deep); border: none; cursor: pointer; padding: 1px 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); vertical-align: middle; }

/* =====================================================================
   招牌样式：颜色 × 字体 × 效果
   ===================================================================== */
.sg { --sg: #f28aa6; --sg2: #f6bccb; --sgg: rgba(217, 87, 122, .35); color: var(--sg); cursor: pointer; pointer-events: auto; }
.sg-c-mint { --sg: #3fb592; --sg2: #b9e8d9; --sgg: rgba(50, 150, 120, .35); }
.sg-c-lav { --sg: #9a72d4; --sg2: #d8c8f2; --sgg: rgba(120, 80, 190, .35); }
.sg-c-sky { --sg: #4f9ae2; --sg2: #c3dcf5; --sgg: rgba(60, 120, 200, .35); }
.sg-c-gold { --sg: #df9f2e; --sg2: #f6dca0; --sgg: rgba(200, 140, 40, .45); }
.sg-c-cocoa { --sg: #93604a; --sg2: #e3cdbf; --sgg: rgba(120, 80, 60, .35); }
.sg-f-round { font-family: "MiaoRound", "MiaoRound2", "Yuanti SC", "PingFang SC", sans-serif; }
.sg-f-soft { font-family: "MiaoRound2", "Yuanti SC", "PingFang SC", sans-serif; }
.sg-f-bold { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; font-weight: 900 !important; letter-spacing: 3px !important; }
.sg-f-serif { font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif; font-weight: 900 !important; letter-spacing: 4px !important; }
.logo-title.sg-x-emboss { -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 3px 0 #fff, 0 6px 0 var(--sg2), 0 10px 18px var(--sgg); }
.logo-title.sg-x-glow { -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill; text-shadow: 0 0 6px #fff, 0 0 14px var(--sg), 0 0 26px var(--sgg); }
.logo-title.sg-x-outline { color: #fff; -webkit-text-stroke: 4px var(--sg); paint-order: stroke fill; text-shadow: 0 4px 0 var(--sg2), 0 8px 14px var(--sgg); }
.logo-title.sg-x-plain { -webkit-text-stroke: 0; text-shadow: 0 2px 6px rgba(255, 255, 255, .9); }

/* =====================================================================
   设置
   ===================================================================== */
.hub-ico#btn-settings img { width: 30px; height: 30px; }
.set-box { width: min(92vw, 390px); max-height: 90vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border-radius: 24px; border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .set-box { animation: ovPop .6s var(--spring); }
.set-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.set-head img { width: 40px; height: 40px; }
.set-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; padding: 2px; }
.set-body::-webkit-scrollbar { display: none; }
.set-box > .btn { width: 100%; flex: none; }
.set-sec { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 0 0 1.5px #f3dfe5; display: flex; flex-direction: column; gap: 6px; }
.set-h { font-size: 14px; color: var(--pink-deep); }
.set-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.set-row { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.set-row > span { font-size: 13.5px; color: var(--ink); flex: none; }
.set-row > b { flex: 1; min-width: 0; font-weight: 400; font-size: 14px; color: var(--pink-deep); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row > b.set-warn { font-size: 11px; color: var(--ink-soft); }
.set-btn { flex: none; font: inherit; font-size: 12.5px; border: none; cursor: pointer; padding: 5px 12px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.set-btn.danger { background: #fff; color: #e0533f; box-shadow: 0 0 0 1.5px #f3b2a6; }
.set-btn.done, .set-btn[disabled] { background: #f6eef1; color: #b9a3ab; box-shadow: 0 0 0 1.5px #efe0e5; cursor: default; }

/* ---------- 设置 · 关注作者礼包卡 ---------- */
.set-sec.set-follow { padding: 0; background: none; box-shadow: none; }
.sf-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 12px 10px 8px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(130% 150% at 6% 0%, #fff9fc 0%, #ffe9f1 46%, #ffdfea 72%, #fff1e6 100%);
  box-shadow: 0 0 0 1.5px #f7d3e0, inset 0 1px 0 #fff, 0 7px 16px -7px rgba(214, 110, 146, .6); }
.sf-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 76% 16%, rgba(255,255,255,.95) 0 2px, transparent 2.6px),
    radial-gradient(circle at 88% 60%, rgba(255,255,255,.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 63% 85%, rgba(255,255,255,.85) 0 1.4px, transparent 2px); }
.sf-card::after { content: ""; position: absolute; right: -26px; top: -32px; width: 98px; height: 98px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 120, .6), rgba(255, 214, 120, 0) 70%); animation: sfGlow 3.6s ease-in-out infinite; }
@keyframes sfGlow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.sf-art { position: relative; z-index: 1; width: 52px; height: 52px; flex: none; object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(200, 120, 150, .35)); animation: sfFloat 3.4s ease-in-out infinite; }
@keyframes sfFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
.sf-txt { position: relative; z-index: 1; flex: 1; min-width: 0; }
.sf-title { font-size: 15px; color: #d1567d; letter-spacing: .5px; text-shadow: 0 1px 0 #fff; }
.sf-sub { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; color: #b06a84; }
.sf-num { font-weight: 700; color: #d98a3c; text-shadow: 0 1px 0 #fff; }
.sf-coin { width: 15px; height: 15px; flex: none; object-fit: contain; }
.sf-btn { position: relative; z-index: 1; flex: none; font: inherit; font-size: 13px; color: #fff; border: none; cursor: pointer;
  padding: 8px 15px; border-radius: 999px; letter-spacing: .5px; overflow: hidden;
  background: linear-gradient(180deg, #ffabc3, #f0658f); box-shadow: 0 3px 0 #cf4a70, 0 5px 12px -3px rgba(232, 90, 130, .65); }
.sf-btn::after { content: ""; position: absolute; top: -60%; left: -70%; width: 38%; height: 220%; transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.8), rgba(255,255,255,0)); animation: sfShine 2.9s ease-in-out infinite; }
@keyframes sfShine { 0%, 52% { left: -70%; } 86%, 100% { left: 132%; } }
.sf-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #cf4a70; }
.set-follow.is-done .sf-btn { background: #fff; color: #c0859a; box-shadow: 0 0 0 1.5px #f0d8e1; cursor: default; }
.set-follow.is-done .sf-btn::after { display: none; }
.set-follow.is-done .sf-art { animation: none; opacity: .88; }
.set-follow.is-done .sf-sub { color: #b6a0a9; }
.set-follow.is-done .sf-coin { display: none; }
.set-follow.is-done .sf-card::after { animation: none; opacity: .5; }
.sign-prev { display: flex; align-items: center; justify-content: center; min-height: 86px; border-radius: 14px; overflow: hidden;
  background: url("assets/scenes/bg-hub-studio-tall.jpg") center 12% / cover; box-shadow: inset 0 0 0 1.5px #f3dfe5; }
.sign-demo { font-size: 38px; margin: 0; white-space: nowrap; pointer-events: none; }
.sw-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sw { font: inherit; border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; }
.sw i { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #eadde1; }
.sw.on i { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--sw); }
.sw span { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.sw.on span { color: var(--ink); }
.chip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.chip { font-size: 13px; border: none; cursor: pointer; padding: 6px 2px; border-radius: 12px; color: var(--ink); background: #fbf3f5; box-shadow: 0 0 0 1.5px #f1dfe4; white-space: nowrap; }
.chip.on { color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.tgl { flex: none; position: relative; width: 48px; height: 28px; border: none; cursor: pointer; border-radius: 999px; background: #e6dadd; transition: background .2s; padding: 0; }
.tgl i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s var(--spring); }
.tgl.on { background: linear-gradient(90deg, #f9b3c4, #ec7f9c); }
.tgl.on i { left: 23px; }

/* 招牌底板：店名写在底板中间 */
.sign-box { position: relative; width: min(74vw, 300px); pointer-events: auto; }
.sign-box.demo { width: 230px; }
.sign-box .sign-plate { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(160, 80, 100, .25)); pointer-events: none; animation: plateSwing 4.5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes plateSwing { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
.sign-box .logo-title { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap; letter-spacing: 3px; line-height: 1; }
.sign-box.no-plate { width: auto; }
.sign-box.no-plate .sign-plate { display: none; }
.sign-box.no-plate .logo-title { position: static; transform: none; letter-spacing: 6px; }
.hub-logo-wrap { margin-top: -4px; }
.sign-prev { min-height: 120px; padding: 6px 0; }
.sign-demo { font-size: 30px; }
.plate-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.plate-chip { font: inherit; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px 4px; border-radius: 12px; background: #fbf3f5; box-shadow: 0 0 0 1.5px #f1dfe4; }
.plate-chip img { width: 100%; height: 32px; object-fit: contain; }
.plate-chip .pc-none { font-style: normal; height: 32px; display: flex; align-items: center; font-size: 13px; color: var(--ink-soft); }
.plate-chip span { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.plate-chip.on { background: #fff4f7; box-shadow: 0 0 0 2.5px #ec7f9c; }
.plate-chip.on span { color: var(--pink-deep); }

/* 存档导出 / 导入 */
.save-box { width: min(90vw, 360px); display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 10px; border-radius: 24px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .save-box { animation: ovPop .6s var(--spring); }
.save-sub { font-size: 12.5px; color: var(--ink-soft); text-align: center; line-height: 1.5; }
#save-text { width: 100%; box-sizing: border-box; height: 110px; resize: none; font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); padding: 8px 10px; border-radius: 12px; border: none; outline: none; background: #fff; box-shadow: 0 0 0 2px var(--line); word-break: break-all; }
.save-tip { font-size: 12px; color: var(--ink-soft); text-align: center; min-height: 16px; }
.save-tip.good { color: #3a9e72; }
.save-tip.bad { color: #e0533f; }
.save-btns { display: flex; gap: 8px; }
.save-btns.hidden { display: none; }
.save-btns .btn { flex: 1; min-height: 46px; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.save-file { position: relative; overflow: hidden; cursor: pointer; }
.save-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-height: 760px) { .sign-box { width: min(60vw, 236px); } }

/* 招牌字库：常用字全量，只在用到时下载 */
@font-face { font-family: "SignKuaiLe"; src: url("assets/fonts/zcool-kuaile.woff2") format("woff2"); font-display: swap; }
.sg-f-round { font-family: "MiaoRound", "SignKuaiLe", "PingFang SC", sans-serif; }
.sg-f-bold { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-weight: 900; }
/* 招牌字：贴纸风——粗白边 + 深一档的描色外圈 + 投影 */
.sg { --sgd: #d9577a; }
.sg-c-mint { --sgd: #23896b; } .sg-c-lav { --sgd: #6f4bb0; } .sg-c-sky { --sgd: #2f73bd; } .sg-c-gold { --sgd: #b9761a; } .sg-c-cocoa { --sgd: #6b3f2e; }
.logo-title.sg-x-emboss { -webkit-text-stroke: 7px #fff; paint-order: stroke fill;
  text-shadow: 0 0 1px var(--sgd), 2px 2px 0 var(--sg2), -2px 2px 0 var(--sg2), 2px -2px 0 var(--sg2), -2px -2px 0 var(--sg2), 0 4px 0 var(--sgd), 0 7px 12px var(--sgg); }
.logo-title.sg-x-outline { color: #fff; -webkit-text-stroke: 6px var(--sgd); paint-order: stroke fill; text-shadow: 0 4px 0 var(--sgd), 0 8px 14px var(--sgg); }
.logo-title.sg-x-glow { -webkit-text-stroke: 4px #fff; paint-order: stroke fill; text-shadow: 0 0 8px #fff, 0 0 16px var(--sg), 0 0 30px var(--sgg); }
/* 顶部三个小按钮加名字 */
.hub-icons { margin-bottom: 14px; }
.hub-ico .ico-lb { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); font-weight: 400; font-size: 11px; line-height: 1; color: var(--pink-deep);
  background: #fff; padding: 2px 7px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line); white-space: nowrap; pointer-events: none; }
.hub-btn .hb-ic img { width: 48px; height: 48px; }
@media (max-height: 700px) { .hub-btn .hb-ic img { width: 38px; height: 38px; } }
/* 招牌字描边随字号缩放，字小时不糊 */
.sign-box .logo-title { letter-spacing: .04em !important; }
.logo-title.sg-x-emboss { -webkit-text-stroke: .16em #fff; text-shadow: .03em .03em 0 var(--sg2), -.03em .03em 0 var(--sg2), .03em -.03em 0 var(--sg2), -.03em -.03em 0 var(--sg2), 0 .1em 0 var(--sgd), 0 .18em .3em var(--sgg); }
.logo-title.sg-x-outline { -webkit-text-stroke: .15em var(--sgd); text-shadow: 0 .1em 0 var(--sgd), 0 .18em .3em var(--sgg); }
.logo-title.sg-x-glow { -webkit-text-stroke: .1em #fff; }
.logo-title.sg-x-plain { -webkit-text-stroke: .05em #fff; }

/* =====================================================================
   顶栏去框：等级 / 天数 / 金币直接浮在画面上，顶部一层奶白渐变托底
   ===================================================================== */
.hud { position: relative; z-index: 6; isolation: isolate; }
.hud::before { content: ''; position: absolute; z-index: -1; pointer-events: none; left: -14px; right: -14px; top: calc(-12px - env(safe-area-inset-top)); bottom: -18px;
  background: linear-gradient(180deg, rgba(255, 247, 250, .95) 0%, rgba(255, 247, 250, .75) 55%, rgba(255, 247, 250, 0) 100%); }
.hud-lv, button.hud-lv, .hud-lv.tier-gold { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0; }
.hud-lv .lv-name { font-size: 13.5px; color: var(--pink-deep); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.hud-lv .lv-bar { background: rgba(236, 127, 156, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.hud-lv .lv-fnum { display: inline-flex; align-items: center; gap: 2px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.hud-lv .lv-fnum::before { content: ''; width: 14px; height: 14px; background: url("assets/ach/hud-star.webp") center / contain no-repeat; }
.hud-day { background: none; box-shadow: none; padding: 0 2px; gap: 3px; }
.day-tag { color: var(--pink-deep); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; font-size: 12.5px; }
.day-tag b { font-size: 22px; }
.hud-day .hearts { gap: 1px; }
.hud-day .hearts .h { width: 14px; height: 14px; clip-path: none; background: url("assets/ach/hud-heart.webp") center / contain no-repeat; }
.hud-day .hearts .h:not(.on) { filter: grayscale(1) opacity(.3); }
.hud-day .hearts .h.on { background: url("assets/ach/hud-heart.webp") center / contain no-repeat; }
.hud .coin-pill, .coin-pill { background: none; box-shadow: none; padding: 0; height: auto; gap: 4px; }
.hud .coin-pill { font-size: 21px; color: #b8761c; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.hud .coin-pill .coin { width: 32px; height: 32px; }
.hud.fever .coin-pill { box-shadow: none; text-shadow: 0 0 3px #fff, 0 0 10px #ffd36e, 0 0 16px rgba(255, 180, 60, .9); }
/* 金币图标：所有出现金币的地方统一用猫爪金币 */
.coin { border-radius: 0; box-shadow: none; background: url("assets/ach/hud-coin-v3.svg") center / contain no-repeat; }

/* =====================================================================
   装修 v2：主题工作室
   ===================================================================== */
.th-grid { display: flex; flex-direction: column; gap: 8px; }
.th-card { display: flex; gap: 10px; padding: 8px; border-radius: 16px; background: var(--cream); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.th-card.on { box-shadow: 0 0 0 3px #6cc79f, 0 4px 10px rgba(80, 180, 130, .25); background: radial-gradient(circle at 20% 30%, #fff 40%, #e3f6ec 100%); }
.th-card.just { animation: unlockFlip .8s var(--spring); }
.th-img { position: relative; flex: none; width: 74px; height: 104px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(160, 80, 100, .25); }
.th-img img { width: 100%; height: 100%; object-fit: cover; }
.th-img em { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: 10px; color: #fff; background: #3fae80; padding: 1px 6px; border-radius: 999px; }
.th-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.th-info b { font-weight: 400; font-size: 15px; color: var(--pink-deep); }
.th-info small { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.th-perk { font-size: 11px; color: #a0661a; background: #fff4cf; border-radius: 8px; padding: 2px 7px; line-height: 1.4; }
.th-perk.plain { color: var(--ink-soft); background: #f6eef1; }
.th-info .dcc-btn { margin-top: auto; align-self: flex-end; }
.th-tip { font-size: 11px; color: var(--ink-soft); text-align: center; padding: 4px 0 2px; }
/* 主题配套的猫垫 */
.js-bed.cushion { transform: none; }
.hub-cat .hc-bed.cushion { width: 118%; left: -9%; margin-left: 0; bottom: -10%; }
.pet-cat .pc-bed.cushion { width: 120%; left: -10%; bottom: -10%; }

/* =====================================================================
   进货 / 装修预览
   ===================================================================== */
.pv-box { position: relative; width: min(90vw, 360px); max-height: 92vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; border-radius: 24px;
  background: linear-gradient(180deg, #fffafc, #ffeef3); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--line), 0 18px 40px rgba(120, 40, 70, .35); overflow-y: auto; scrollbar-width: none; }
.pv-box::-webkit-scrollbar { display: none; }
.overlay.opening .pv-box { animation: ovPop .6s var(--spring); }
.pv-x { right: 8px; top: 8px; width: 32px; height: 32px; }
.pv-stage { position: relative; height: min(42vh, 280px); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 40%, #fff 0 30%, #fde6ec 100%); box-shadow: inset 0 0 0 1.5px #f3dfe5; flex: none; }
.pv-stage.theme { height: min(52vh, 380px); background: #fbe9ef; }
.pv-stage.theme.small { height: min(40vh, 280px); }
.pv-phone { position: relative; height: 84%; aspect-ratio: 504 / 997; margin-right: 18%; }
.pv-phone .acc-ring { display: block; }
.pv-phone .case-img, .pv-phone .sup-img, .pv-phone .acc-img { filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .25)); }
.pv-solo { max-width: 60%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(160, 80, 100, .25)); }
.pv-stage.two { padding: 0 10px; }
.pv-half { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pv-half small { font-size: 11px; color: var(--ink-soft); }
.pv-half .pv-openbox { width: 100%; }
.pv-closed { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .25)); }
.pv-openbox { position: relative; width: 74%; aspect-ratio: 1; }
.pv-boxbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .25)); }
.pv-in { position: absolute; display: flex; align-items: center; justify-content: center; }
.pv-in .pv-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.pv-in .pv-deco { width: 62%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(160, 80, 100, .25)); }
.pv-in .pv-phone { height: 88%; margin-right: 0; transform: rotate(-8deg); }
.pv-stage.theme .pv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .3s; }
.pv-catwrap { position: absolute; left: 50%; bottom: 6%; width: 42%; transform: translateX(-50%); isolation: isolate; }
.pv-stage.theme.small .pv-catwrap { width: 34%; }
.pv-catwrap .pv-cat-body { position: relative; display: block; width: 100%; z-index: 1; animation: catIdle 3.4s ease-in-out infinite; transform-origin: bottom center; }
.pv-catwrap .pv-cat-body .w-cat { filter: drop-shadow(0 6px 8px rgba(160, 80, 100, .3)); }
.pv-cush { position: absolute; left: -9%; bottom: -10%; width: 118%; z-index: 0; }
.pv-cush.bed { left: -16%; bottom: -8%; width: 132%; }
.pv-toy { position: absolute; right: -36%; bottom: -2%; width: 42%; z-index: 2; }
.pv-tabs { display: flex; gap: 6px; justify-content: center; }
.pv-tabs.hidden { display: none; }
.pv-tabs button { font: inherit; font-size: 13px; border: none; cursor: pointer; padding: 5px 16px; border-radius: 999px; color: var(--ink); background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.pv-tabs button.on { color: #fff; background: linear-gradient(180deg, #f9b3c4, #ec7f9c); box-shadow: 0 2px 0 #d9677f; }
.pv-info { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.pv-info b { font-weight: 400; font-size: 19px; color: var(--pink-deep); }
.pv-info > span { font-size: 12px; color: #a0661a; }
.pv-info p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.pv-likes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.pv-likes.hidden { display: none; }
.pv-likes em { font-style: normal; font-size: 11px; color: var(--ink-soft); flex-basis: 100%; }
.pv-likes span { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink); }
.pv-likes img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px #f6c3d1; }
.pv-likes .more { color: var(--ink-soft); }
.pv-box > .btn { width: 100%; flex: none; }
#btn-pv-go:disabled { background: linear-gradient(180deg, #a8e6c9, #7fd0ac); box-shadow: 0 0 0 2px #9ad9bd, 0 3px 0 #5fb48f; opacity: 1; }
/* 卡片整张可点 */
.sc, .th-card, .dc-card { cursor: pointer; }

/* =====================================================================
   首屏手机排版：背景铺到面板上沿、元素缩小留白
   ===================================================================== */
#s-title { background: linear-gradient(180deg, #f6dfe3, #f1d2c4); }
#s-title .hub-bg { height: var(--hub-bg-h, 100%); bottom: auto; object-position: 50% 100%; }
#s-title .hub-scrim { height: var(--hub-bg-h, 100%); }
#s-title .hub-bg + .hub-bg { }
#s-title::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--hub-bg-h, 100%) - 40px); height: 40px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(241, 210, 196, 0), #f1d2c4); }
.sign-box { width: min(56vw, 220px, 27vh); }
@media (max-height: 760px) { .sign-box { width: min(52vw, 200px, 27vh); } }
.hub-logo-wrap { margin-top: -8px; }
.hub-side { top: 27%; gap: 8px; }
.hub-btn .hb-ic { width: 52px; height: 52px; }
.hub-btn .hb-ic img { width: 38px; height: 38px; }
.hub-btn b { font-size: 12.5px; padding: 1px 10px; margin-top: -5px; }
.hub-ico { width: 38px; height: 38px; }
.hub-ico img { width: 24px !important; height: 24px !important; }
.hub-ico .mini-wheel { width: 24px; height: 24px; }
.hub-panel { padding: 9px 14px 7px; gap: 6px; }
.hub-panel .title-save b { font-size: 15.5px; }
.hub-panel .title-save span { font-size: 12px; }
.hub-panel .start-btn { min-height: 50px; font-size: 21px; }
.hub-cat { width: 160px; }
@media (max-height: 700px) { .hub-btn .hb-ic { width: 46px; height: 46px; } .hub-btn .hb-ic img { width: 32px; height: 32px; } .hub-side { gap: 5px; } }

/* 首屏底部：去掉白色面板，文字和按钮直接放在画面上 */
.hub-panel { background: none !important; box-shadow: none !important; border-radius: 0; padding: 4px 18px 4px; }
.hub-panel .title-save b, .hub-panel .title-save span, .hub-links .btn-link { text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, .9); }
.hub-panel .title-save b { font-size: 16.5px; }
.hub-panel .title-save span { color: #8a5f6b; font-size: 12.5px; }

/* =====================================================================
   打烊结算页 v2：工作室夜景 + 一张清楚的结算单
   ===================================================================== */
#s-rest .rest-bg { object-position: 50% 70%; }
#s-rest .rest-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(40, 24, 60, .25), rgba(40, 24, 60, .12) 40%, rgba(40, 24, 60, .45)); }
.content.rest-v2 { justify-content: center; gap: 14px; padding-top: calc(70px + env(safe-area-inset-top)); }
.ledger.rcpt { position: relative; width: min(88vw, 340px); display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: 22px; overflow: visible;
  background: #fffaf3; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f2c8d4, 0 16px 34px rgba(30, 10, 40, .45); perspective: none; }
.ledger.rcpt::before, .ledger.rcpt::after { display: none; }
.ledger.rcpt .ledger-page { padding: 0 18px; animation: none !important; transform: none !important; }
.ledger.rcpt .ledger-page.left { padding-top: 30px; gap: 4px; }
.ledger.rcpt .lg-day { font-size: 12px; color: #a08a80; }
.ledger.rcpt .lg-title { font-size: 19px; font-weight: 400; color: var(--pink-deep); border: none; padding: 0 0 6px; }
.lg-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 4px; }
.lg-chips span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 12px; background: #fff0f4; font-size: 10.5px; color: #9a7b84; line-height: 1.2; }
.lg-chips b { font-size: 18px; font-weight: 400; color: var(--pink-deep); }
.lg-empty { font-size: 13px; color: #9a7b84; padding: 8px 0; }
.lg-wear { font-size: 11.5px; color: #9a7b84; margin-top: 2px; }
.lg-wear b { color: var(--pink-deep); font-weight: 400; }
.ledger.rcpt .ledger-page.right { margin-top: 10px; padding-top: 10px; padding-bottom: 16px; border-top: 2px dashed #f0d6dd; }
.ledger.rcpt .lg-rows div { font-size: 13.5px; padding: 4px 0; border-bottom: 1px dotted #ecdcd3; color: #6b5048; }
.ledger.rcpt .lg-total { margin-top: 10px; align-items: baseline; font-size: 14px; font-weight: 400; color: #6b5048; }
.ledger.rcpt .lg-total b { font-size: 28px; font-weight: 400; color: #e0a21e; text-shadow: 0 2px 0 #fff3cf; }
.ledger.rcpt .ledger-cat { left: auto; right: -6px; top: -58px; bottom: auto; width: 44%; z-index: 2; }
.ledger.rcpt .ledger-cat .zz { color: #fff; text-shadow: 0 0 6px rgba(160, 120, 255, .9); }
.rest-sleep { width: min(88vw, 340px); min-height: 56px; font-size: 20px; flex: none; }
.rest-links { display: flex; gap: 22px; justify-content: center; }
.rest-ico { display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; cursor: pointer; padding: 0; font: inherit; }
.rest-ico img { width: 50px; height: 50px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(242, 200, 212, .9), 0 4px 10px rgba(30, 10, 40, .3); object-fit: contain; }
.rest-ico b { font-weight: 400; font-size: 12.5px; color: #fff; text-shadow: 0 1px 3px rgba(40, 10, 50, .8); }
.rest-ico:active img { transform: scale(.92); }

/* 首屏底部：去掉今日小结，背景用柔焦延伸填满到底 */
#s-title .hub-panel .title-save { display: none !important; }
#s-title { background: #f3d6d9; }
#s-title::after { display: none; }
#s-title .hub-bg-ext { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: blur(16px) saturate(1.05); transform: scale(1.12); z-index: 0; }
#s-title .hub-bg.day, #s-title .hub-bg.eve, #s-title .hub-bg.night { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 70px), transparent); }
.ledger.rcpt .ledger-cat { top: -74px; right: -12px; width: 38%; }
.ledger.rcpt .ledger-page.left { padding-top: 22px; }
.ledger.rcpt .ledger-page.left { padding-top: 46px; }
.ledger.rcpt .ledger-cat { right: -26px; width: 34%; top: -66px; }
/* 首屏遮罩只保留顶部一点，底部不再泛白 */
#s-title .hub-scrim { height: 100%; background: linear-gradient(180deg, rgba(255, 240, 245, .3) 0%, rgba(255, 240, 245, 0) 20%); }
#s-title.ph-night .hub-scrim { background: linear-gradient(180deg, rgba(40, 30, 80, .22) 0%, rgba(40, 30, 80, 0) 22%); }

/* =====================================================================
   首屏 v3：上中下三段式
   顶：状态栏 + 设置 ｜ 招牌，成就和转盘分立两侧
   中：棉花糖坐在地毯上（留白，不放按钮）
   底：开始营业 + 一排功能坞（后台 进货 装修 衣橱 相册 信箱）
   ===================================================================== */
#s-title .content.hub { max-width: 480px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom)); }

/* 顶栏：状态栏 + 设置齿轮同一行，奶白渐变托底挪到整行 */
.hub-top { position: relative; z-index: 6; display: flex; align-items: center; gap: 8px; isolation: isolate; }
.hub-top::before { content: ''; position: absolute; z-index: -1; pointer-events: none; left: -12px; right: -12px; top: calc(-10px - env(safe-area-inset-top)); bottom: -16px;
  background: linear-gradient(180deg, rgba(255, 247, 250, .95) 0%, rgba(255, 247, 250, .72) 58%, rgba(255, 247, 250, 0) 100%); }
:is(#s-title, #s-store, #s-review) .hud { flex: 1; min-width: 0; }
:is(#s-title, #s-store, #s-review) .hud::before { display: none; }
.hub-gear { flex: none; width: 34px; height: 34px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line), 0 3px 8px rgba(214, 120, 148, .22); }
.hub-gear img { width: 24px; height: 24px; object-fit: contain; }
.hub-gear:active { transform: scale(.92); }

/* 招牌行：成就 ｜ 招牌 ｜ 转盘 */
.hub-head { position: relative; z-index: 5; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; margin-top: 12px; }
.hub-head .hub-logo-wrap { margin: 0; min-width: 0; }
.hub-head .sign-box { width: min(58vw, 236px); }
.hub-head .sign-box.no-plate { width: auto; }
.hub-head .hub-logo-wrap .logo-title.hub-logo { font-size: clamp(26px, 7.6vw, 34px); }
.hub-head .hub-ico { width: 46px; height: 46px; justify-self: center; align-self: start; margin-top: 6px; }
.hub-head .hub-ico img { width: 30px !important; height: 30px !important; }
.hub-head .hub-ico .ico-lb { font-size: 11.5px; }

/* 底部：开始营业在上，功能坞贴底 */
#s-title .hub-panel { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 8px; padding: 0; background: none !important; box-shadow: none !important; }
#s-title .hub-panel .start-btn { min-height: 54px; font-size: 21px; }
#s-title .hub-links { min-height: 0; margin: -2px 0 0; }
#s-title .hub-links:not(:has(.btn-link:not(.hidden))) { display: none; }
.hub-dock { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px 4px 7px; border-radius: 22px;
  background: rgba(255, 250, 252, .86); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(246, 184, 200, .9), 0 8px 18px rgba(200, 90, 125, .18); }
.hub-dock .hub-btn { min-width: 0; gap: 3px; }
.hub-dock .hub-btn .hb-ic { width: 46px; height: 46px; background: radial-gradient(circle at 35% 30%, #fff 0 34%, #ffe8ef 100%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f6c3d1; }
.hub-dock .hub-btn .hb-ic img { width: 34px !important; height: 34px !important; }
.hub-dock .hub-pc .hb-ic img { width: 36px !important; height: 30px !important; border-radius: 4px; }
.hub-dock .hub-btn b { margin: 0; padding: 0; background: none; box-shadow: none; font-size: 12.5px; line-height: 1.2; color: var(--pink-deep); white-space: nowrap; }
.hub-dock .hub-btn .badge { right: calc(50% - 25px); top: -2px; }
.hub-dock .hub-btn:active .hb-ic { transform: scale(.9); }

/* 气泡离猫近一点 */
#s-title .hub-say { margin-bottom: 14px; }

/* 矮屏：压缩一点 */
@media (max-height: 700px) {
  .hub-head { margin-top: 8px; }
  .hub-head .sign-box { width: min(52vw, 200px); }
  #s-title .hub-panel .start-btn { min-height: 48px; font-size: 19px; }
  .hub-dock { padding: 6px 4px 5px; }
  .hub-dock .hub-btn .hb-ic { width: 40px; height: 40px; }
  .hub-dock .hub-btn .hb-ic img { width: 30px !important; height: 30px !important; }
  .hub-dock .hub-btn b { font-size: 11.5px; }
}
@media (max-width: 350px) {
  .hub-dock .hub-btn .hb-ic { width: 40px; height: 40px; }
  .hub-dock .hub-btn .hb-ic img { width: 30px !important; height: 30px !important; }
}

/* 宽屏：工作室背景只铺在中间一栏，两侧是柔焦延伸 */
#s-title .hub-bg.day, #s-title .hub-bg.eve, #s-title .hub-bg.night, #s-title #title-decor {
  left: calc(50% - var(--hub-bg-w, 100%) / 2); right: auto; width: var(--hub-bg-w, 100%); }
#s-title #title-decor { top: 0; bottom: auto; height: var(--hub-bg-h, 100%); }
#s-title.wide .hub-bg.day, #s-title.wide .hub-bg.eve, #s-title.wide .hub-bg.night {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 70px), transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 70px), transparent); mask-composite: intersect; }
/* 宽屏两侧：柔焦更重、蒙一层奶粉色，不和中间的房间抢戏 */
#s-title.wide .hub-bg-ext { filter: blur(34px) saturate(.95) brightness(1.04); transform: scale(1.2); }
#s-title.wide .hub-scrim { background: linear-gradient(90deg, rgba(250, 226, 233, .55) 0, rgba(250, 226, 233, 0) calc(50% - var(--hub-bg-w, 100%) / 2 + 40px), rgba(250, 226, 233, 0) calc(50% + var(--hub-bg-w, 100%) / 2 - 40px), rgba(250, 226, 233, .55) 100%); }
/* 首屏状态栏给齿轮让位：图标略收，金币多位数也不挤 */
.hub-top { gap: 6px; }
.hub-gear { width: 32px; height: 32px; }
.hub-gear img { width: 22px; height: 22px; }
:is(#s-title, #s-store, #s-review) .hud { gap: 4px; }
:is(#s-title, #s-store, #s-review) .hud-lv .pips .pip { width: 10px; height: 10px; }
:is(#s-title, #s-store, #s-review) .hud-lv .lv-fans { gap: 3px; }
:is(#s-title, #s-store, #s-review) .hud-day .hearts .h { width: 12px; height: 12px; }
:is(#s-title, #s-store, #s-review) .hud .coin-pill { font-size: 19px; }
:is(#s-title, #s-store, #s-review) .hud .coin-pill .coin { width: 28px; height: 28px; }
/* 柔焦延伸层不参与入场对焦动画（否则动画结束后 filter 被清掉，两侧变成清晰的第二个房间） */
#s-title.entering .hub-bg-ext { animation: none; }
/* 窄屏：首屏状态栏收起小星星，只留等级名、进度条和粉丝数 */
@media (max-width: 400px) { :is(#s-title, #s-store, #s-review) .hud-lv .js-pips { display: none; } }
@media (max-width: 400px) {
  :is(#s-title, #s-store, #s-review) .hud-lv .js-fnext { display: none; }
  :is(#s-title, #s-store, #s-review) .hud-lv .lv-info { overflow: hidden; }
  :is(#s-title, #s-store, #s-review) .hud-day .hearts .h { width: 11px; height: 11px; }
}

/* =====================================================================
   接单店面 v2：买家卡只留「谁 + 好感」，货款标明是货款；
   小票只画要配的货，均匀排开，「不要什么」收成一行字；底部主按钮更大
   ===================================================================== */
#s-shop .buyer-card { gap: 10px; padding: 9px 12px; }
#s-shop .avatar-ring { width: 56px; height: 56px; }
#s-shop .buyer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
#s-shop .buyer-name { font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#s-shop .buyer-sum { display: none; }
#s-shop .shop-aff { margin: 0; padding: 3px 9px 3px 7px; }
#s-shop .shop-aff em { font-size: 11.5px; padding-left: 6px; border-left: 1px solid var(--line); }
#s-shop .price-col { align-items: flex-end; gap: 2px; }
#s-shop .price-tag { flex-direction: column; align-items: flex-end; gap: 0; font-size: 22px; line-height: 1.05; }
#s-shop .price-tag small { font-size: 11px; font-weight: 400; color: var(--ink-soft); letter-spacing: 1px; }
#s-shop .price-tag b { display: flex; align-items: center; gap: 4px; font-weight: 900; }
#s-shop .price-tag .coin { width: 22px; height: 22px; }

#s-shop .tk-head { align-items: center; gap: 8px; }
#s-shop .tk-head span { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#s-shop .tk-head .tk-no-n { font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--ink-soft); }
#s-shop .tk-head small { flex: none; }
#s-shop .tk-head .tk-no { color: #b48a95; background: #f8eef1; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
#s-shop .tk-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 76px)); justify-content: center; gap: 8px 10px; }
#s-shop .tk-grid .tc-img { max-width: 60px; }

#s-shop .footer .btn.ghost { flex: 0 0 34%; }
#s-shop .footer .btn.primary { flex: 1; }
@media (max-height: 700px) {
  #s-shop .avatar-ring { width: 48px; height: 48px; }
  #s-shop .tk-grid .tc-img { max-width: 50px; }
}

/* =====================================================================
   首页棉花糖的小动作
   ===================================================================== */
#s-title .hub-cat { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#s-title .hub-cat img { -webkit-user-drag: none; pointer-events: none; }
.hub-cat.act-hop .hc-body { animation: catHop .75s var(--spring); }
.hub-cat.act-tilt .hc-body { animation: catTilt 1.3s ease-in-out; }
.hub-cat.act-spin .hc-body { animation: catSpin .9s ease-in-out; }
.hub-cat.act-wiggle .hc-body { animation: catWiggle 1s ease-in-out; }
.hub-cat.act-stretch .hc-body { animation: catStretch 1.4s ease-in-out; }
.hub-cat.act-hug .hc-body { animation: catHug .9s var(--spring); }
.hub-cat.stroking .hc-body { animation: catStroke .9s ease-in-out infinite; }
.hub-cat.napping .hc-body { animation: catNap 3.6s ease-in-out infinite; filter: saturate(.92) brightness(.97); }
@keyframes catHop { 0% { transform: none; } 18% { transform: scale(1.08, .88); } 45% { transform: translateY(-34%) scale(.94, 1.08); } 70% { transform: translateY(0) scale(1.1, .9); } 85% { transform: scale(.97, 1.03); } 100% { transform: none; } }
@keyframes catTilt { 0%, 100% { transform: none; } 25%, 70% { transform: rotate(-11deg) translateX(-3%); } }
@keyframes catSpin { 0% { transform: none; } 15% { transform: scale(1.05, .92); } 60% { transform: translateY(-10%) rotateY(300deg); } 100% { transform: rotateY(360deg); } }
@keyframes catWiggle { 0%, 100% { transform: none; } 15% { transform: rotate(-7deg); } 30% { transform: rotate(7deg); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-3deg); } }
@keyframes catStretch { 0%, 100% { transform: none; } 30% { transform: scale(1.12, .86); } 55% { transform: scale(.92, 1.12); } 75% { transform: scale(1.03, .98); } }
@keyframes catHug { 0% { transform: none; } 30% { transform: scale(1.14, .86); } 55% { transform: scale(.94, 1.06); } 75% { transform: scale(1.04, .97); } 100% { transform: none; } }
@keyframes catStroke { 0%, 100% { transform: rotate(-3deg) scale(1.02, .98); } 50% { transform: rotate(3deg) scale(1.02, .98); } }
@keyframes catNap { 0%, 100% { transform: translateY(3%) scale(1.03, .94); } 50% { transform: translateY(4%) scale(1.05, .92); } }
@media (prefers-reduced-motion: reduce) {
  .hub-cat.act-hop .hc-body, .hub-cat.act-tilt .hc-body, .hub-cat.act-spin .hc-body, .hub-cat.act-wiggle .hc-body,
  .hub-cat.act-stretch .hc-body, .hub-cat.act-hug .hc-body, .hub-cat.stroking .hc-body, .hub-cat.napping .hc-body { animation-duration: .01s; animation-iteration-count: 1; }
}
#s-shop .ticket.story .tk-head .tk-no-n { display: none; }

/* =====================================================================
   打烊前阿凯来取件：从左边探进来，说两句，抱走包裹
   ===================================================================== */
.akai-visit { position: absolute; left: 10px; right: 10px; top: 168px; z-index: 6; display: flex; align-items: center; gap: 8px; pointer-events: none;
  opacity: 0; transform: translateX(-110%); transition: transform .55s var(--spring), opacity .3s; }
.akai-visit.on { opacity: 1; transform: none; }
.akai-visit.out { opacity: 0; transform: translateX(-110%); transition: transform .5s ease-in, opacity .5s ease-in; }
.akai-visit .av-ring { flex: none; width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: #fff; box-shadow: 0 0 0 2.5px #9fd8c4, 0 6px 14px rgba(80, 150, 130, .3); }
.akai-visit .av-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.akai-visit .av-bubble { flex: 1; min-width: 0; background: #fff; border-radius: 4px 16px 16px 16px; padding: 7px 11px; box-shadow: 0 0 0 2px #cdeee2, 0 6px 14px rgba(80, 150, 130, .18); }
.akai-visit .av-bubble b { display: block; font-weight: 400; font-size: 11.5px; color: #3e9b7d; }
.akai-visit .av-bubble span { display: block; font-size: 14px; line-height: 1.45; color: var(--ink); }
.akai-visit .av-parcel { flex: none; position: relative; width: 46px; transition: transform .5s var(--spring); }
.akai-visit .av-parcel img { width: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(120, 80, 40, .25)); }
.akai-visit .av-parcel i { position: absolute; right: -6px; top: -6px; font-style: normal; font-size: 11px; color: #fff; background: #3fae80; border-radius: 999px; padding: 1px 6px; box-shadow: 0 0 0 2px #fff; }
.akai-visit.carry .av-parcel { transform: translate(-4px, -6px) rotate(-8deg); animation: parcelBob .6s ease-in-out 2; }
@keyframes parcelBob { 50% { transform: translate(-4px, -12px) rotate(-4deg); } }
@media (max-height: 700px) { .akai-visit { top: 140px; } }

/* 小芽的童言信：作业本横线纸、圆体字、彩笔色 */
#ov-letter.kid .letter-paper { background: repeating-linear-gradient(180deg, #fffdf6 0 27px, #f3dfe6 27px 28px); }
#ov-letter.kid .letter-head, #ov-letter.kid .letter-body p, #ov-letter.kid .letter-sign { font-family: "MiaoRound", "MiaoRound2", "Yuanti SC", sans-serif; }
#ov-letter.kid .letter-head { color: #e0708f; }
#ov-letter.kid .letter-body p { color: #5a6fb8; line-height: 28px; }
#ov-letter.kid .letter-body p:nth-child(even) { color: #d4708c; }
#ov-letter.kid .letter-sign { color: #3fae80; }
.mail-row.kid-row .avatar-ring img { object-fit: contain; background: #fff7fa; padding: 3px; }
.akai-visit { top: 210px; } @media (max-height: 700px) { .akai-visit { top: 172px; } }

/* =====================================================================
   打包台 v2：底部一整块面板 = 步骤说明 + 托盘 + 按钮，棉花糖坐在面板左下角
   ===================================================================== */
#s-pack .pack-cap, #s-pack #pack-tray, #s-pack .pack-footer { background: rgba(255, 250, 252, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#s-pack .pack-cap { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 14px 6px; border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 0 #fff, 0 -6px 14px rgba(200, 90, 125, .1); }
#s-pack .pack-cap b { flex: none; display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 16px; color: var(--pink-deep); }
#s-pack .pack-cap b em { font-style: normal; font-size: 11px; color: #fff; background: var(--pink-2, #ec7f9c); border-radius: 999px; padding: 1px 7px; }
#s-pack .pack-cap span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#s-pack .pack-cap .pc-dots { flex: none; display: flex; gap: 4px; }
#s-pack .pack-cap .pc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f1d4dc; }
#s-pack .pack-cap .pc-dots i.on { background: #ec7f9c; }
#s-pack .pack-cap .pc-dots i.cur { background: #ec7f9c; box-shadow: 0 0 0 3px rgba(236, 127, 156, .25); }
#s-pack #pack-tray { padding: 6px 10px 4px; border-radius: 0; }
#s-pack .pack-footer { border-radius: 0 0 20px 20px; padding-bottom: 10px; padding-right: 10px; margin-bottom: 0; }
#s-pack .pack-stage, #s-pack .content.tray-hidden .pack-stage { height: clamp(220px, min(calc(100vw - 24px), calc(100vh - 452px)), 460px); }
@media (max-height: 700px) {
  #s-pack .pack-cap { padding: 6px 12px 4px; }
  #s-pack .pack-cap span { font-size: 11.5px; }
}
#s-pack #pack-tray { margin-top: -7px; margin-bottom: 0; } #s-pack .pack-footer { margin-top: -7px; } #s-pack .pack-cap { margin-top: auto; }

/* 棉花糖跑去蹭阿凯：先往左边跑，蹭来蹭去，再回到地毯上 */
.hub-cat.act-rub .hc-body { animation: catRub 3.2s ease-in-out; }
@keyframes catRub {
  0% { transform: none; } 14% { transform: translateX(-36%) scale(1.04, .96); }
  24% { transform: translateX(-38%) rotate(-7deg); } 34% { transform: translateX(-36%) rotate(6deg); }
  44% { transform: translateX(-38%) rotate(-7deg); } 54% { transform: translateX(-36%) rotate(6deg); }
  64% { transform: translateX(-38%) rotate(-5deg); } 82% { transform: translateX(-36%); } 100% { transform: none; }
}
/* 阿凯蹲下摸摸棉花糖的拍立得 */
.akai-moment { position: absolute; left: 50%; top: 44%; z-index: 7; width: min(64vw, 250px); padding: 8px 8px 0; background: #fff; border-radius: 4px; pointer-events: none;
  box-shadow: 0 10px 26px rgba(120, 50, 80, .3); opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(.6); transition: transform .5s var(--spring), opacity .3s; }
.akai-moment.on { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
.akai-moment img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.akai-moment span { display: block; text-align: center; font-size: 13px; color: var(--pink-deep); padding: 6px 0 8px; }
/* 阿凯手里拿着小芽的星星贴纸 */
.akai-visit .av-gift { display: none; }
.akai-visit.gift .av-box, .akai-visit.gift #akai-count { display: none; }
.akai-visit.gift .av-gift { display: block; width: 100%; animation: giftWave 1s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(255, 220, 110, .9)); }
@keyframes giftWave { 50% { transform: rotate(10deg) scale(1.08); } }

/* 配货台 v2：底部一整块面板 = 步骤说明 + 托盘 */
#s-work .work-cap, #s-work #tray { background: rgba(255, 250, 252, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#s-work .work-cap { display: flex; align-items: center; gap: 8px; padding: 9px 14px 6px; border-radius: 20px 20px 0 0; margin-bottom: -7px;
  box-shadow: 0 -2px 0 #fff, 0 -6px 14px rgba(200, 90, 125, .1); }
#s-work .work-cap b { flex: none; display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 16px; color: var(--pink-deep); }
#s-work .work-cap b em { font-style: normal; font-size: 11px; color: #fff; background: var(--pink-2, #ec7f9c); border-radius: 999px; padding: 1px 7px; }
#s-work .work-cap span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#s-work .work-cap .pc-dots { flex: none; display: flex; gap: 4px; }
#s-work .work-cap .pc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #f1d4dc; }
#s-work .work-cap .pc-dots i.on { background: #ec7f9c; }
#s-work .work-cap .pc-dots i.cur { background: #ec7f9c; box-shadow: 0 0 0 3px rgba(236, 127, 156, .25); }
/* 配齐后：顶部条就是「去打包」按钮 */
#s-work .work-cap.done { cursor: pointer; background: linear-gradient(180deg, #fff3f7, #ffe3ec); }
#s-work .work-cap.done b { color: #d9577a; }
#s-work .work-cap.done span { color: #c2557a; font-weight: 700; }
#s-work .work-cap.done span::after { content: " →"; }
#s-work .work-cap.done:active { transform: scale(.985); }
#s-work #tray { border-radius: 0 0 20px 20px; padding: 8px 10px 10px; }
@media (max-height: 700px) { #s-work .work-cap { padding: 6px 12px 4px; } #s-work .work-cap span { font-size: 11.5px; } }
.akai-visit .av-parcel img.av-gift { display: none; }
.akai-visit.gift .av-parcel img.av-box { display: none; }
.akai-visit.gift .av-parcel img.av-gift { display: block; }
.akai-moment { top: 61%; width: min(56vw, 220px); }
@media (max-height: 700px) { .akai-moment { top: 60%; width: min(48vw, 180px); } }

/* =====================================================================
   状态栏：「第 N 天」+ 体力「♥ 体力 3/5」，数字一眼看清
   ===================================================================== */
.hud-day { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.hud-day .hearts { display: none !important; }
.hud-day .day-tag { display: flex; align-items: baseline; gap: 2px; line-height: 1; color: var(--pink-deep); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.hud-day .day-tag small { font-size: 12px; }
.hud-day .day-tag b { font-size: 20px; font-weight: 400; }
.hud-day .energy { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 999px; line-height: 1;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1.5px #f6c3d1, 0 2px 5px rgba(214, 120, 148, .18); }
.hud-day .energy .en-ic { width: 15px; height: 15px; background: url("assets/ach/hud-heart.webp") center / contain no-repeat; }
.hud-day .energy em { font-style: normal; font-size: 10.5px; color: var(--ink-soft); }
.hud-day .energy b { font-weight: 400; font-size: 15px; color: #e0587f; margin-left: 1px; }
.hud-day .energy small { font-size: 11px; color: #c99aa8; }
.hud-day .energy.low b { color: #f07a3c; }
.hud-day .energy.empty { background: rgba(240, 234, 250, .95); box-shadow: 0 0 0 1.5px #d6c8f0; }
.hud-day .energy.empty .en-ic { filter: grayscale(1) opacity(.45); }
.hud-day .energy.empty b { color: #9a86c8; }
.hud-day .energy.bump { animation: bump .5s var(--spring); }

/* =====================================================================
   店铺等级 v3：6 档图标 + 每档自己的颜色
   ===================================================================== */
.medal.rank.tier-paw { --rk: #ec6f90; } .medal.rank.tier-bow { --rk: #ef8a6a; } .medal.rank.tier-gift { --rk: #3fae80; }
.medal.rank.tier-star { --rk: #e0a43a; } .medal.rank.tier-crown { --rk: #a46ad8; } .medal.rank.tier-legend { --rk: linear-gradient(90deg, #e9a92a, #d9821a); }
.medal.rank.tier-legend img { filter: drop-shadow(0 0 6px rgba(255, 200, 80, .8)); animation: goldGlow 2.4s ease-in-out infinite; }
.hud-lv.tier-paw .lv-bar i { background: linear-gradient(90deg, #ffc6d4, #ec6f90); }
.hud-lv.tier-bow .lv-bar i { background: linear-gradient(90deg, #ffd2c2, #ef8a6a); }
.hud-lv.tier-gift .lv-bar i { background: linear-gradient(90deg, #bfeedd, #3fae80); }
.hud-lv.tier-star .lv-bar i { background: linear-gradient(90deg, #fff0b8, #e0a43a); }
.hud-lv.tier-crown .lv-bar i { background: linear-gradient(90deg, #e6d2ff, #a46ad8); }
.hud-lv.tier-legend .lv-bar i { background: linear-gradient(90deg, #ffe7a0, #e9a92a); box-shadow: 0 0 6px rgba(240, 170, 40, .7); }
.rk-head.tier-paw { background: linear-gradient(135deg, #fff, #ffe9ef); }
.rk-head.tier-bow { background: linear-gradient(135deg, #fff, #ffece4); }
.rk-head.tier-gift { background: linear-gradient(135deg, #fff, #e6f7f0); }
.rk-head.tier-star { background: linear-gradient(135deg, #fffdf4, #fff3cc); }
.rk-head.tier-crown { background: linear-gradient(135deg, #fff, #f1e6ff); }
.rk-head.tier-legend { background: linear-gradient(135deg, #fffaf0, #ffe9b0); box-shadow: 0 0 0 2px #f3c95d; }
.rk-head.tier-paw .rk-bar i { background: linear-gradient(90deg, #ffc6d4, #ec6f90); }
.rk-head.tier-bow .rk-bar i { background: linear-gradient(90deg, #ffd2c2, #ef8a6a); }
.rk-head.tier-gift .rk-bar i { background: linear-gradient(90deg, #bfeedd, #3fae80); }
.rk-head.tier-star .rk-bar i { background: linear-gradient(90deg, #fff0b8, #e0a43a); }
.rk-head.tier-crown .rk-bar i { background: linear-gradient(90deg, #e6d2ff, #a46ad8); }
.rk-head.tier-legend .rk-bar i { background: linear-gradient(90deg, #ffe7a0, #e9a92a); }
.rk-tierhead.tier-paw b { color: #d8557a; } .rk-tierhead.tier-bow b { color: #d96a48; } .rk-tierhead.tier-gift b { color: #2f9a6e; }
.rk-tierhead.tier-star b { color: #c08414; } .rk-tierhead.tier-crown b { color: #8a54c4; } .rk-tierhead.tier-legend b { color: #c17a12; }

/* =====================================================================
   首屏顶部 v4：两行，全部横排、统一高度
   第一行：等级卡（勋章｜等级名 ●●●○○｜进度条｜粉丝 36/60 · 铜爪章 3/5）+ 成就 / 转盘 / 设置
   第二行：📅 第 3 天 ｜ 🔋 体力 3/5 ｜ 🪙 420 —— 三个一样大的横条
   ===================================================================== */
#s-title .hub-top { display: block; position: relative; }
#s-title .hub-top::before { bottom: -10px; }
:is(#s-title, #s-store, #s-review) .hud { display: flex !important; flex-direction: column; align-items: stretch; gap: 7px; min-height: 0; }
#s-title .hub-tools { position: absolute; top: 4px; right: 0; display: flex; gap: 6px; z-index: 7; }
#s-title .hub-tools .hub-ico { width: 38px; height: 38px; margin: 0; }
#s-title .hub-tools .hub-ico img { width: 24px !important; height: 24px !important; }
#s-title .hub-tools .hub-ico .ico-lb { display: none; }
#s-title .hub-tools .hub-ico .count { right: -4px; top: -4px; }
#s-title .hub-head { display: flex; justify-content: center; margin-top: 10px; }
#s-title .hub-head .hub-logo-wrap { margin: 0; }

/* 等级卡 */
:is(#s-title, #s-store, #s-review) .hud .hud-lv { display: flex !important; align-items: center; gap: 8px; margin-right: 132px; height: 46px; padding: 0 12px 0 4px !important;
  background: rgba(255, 255, 255, .92) !important; border-radius: 999px !important; box-shadow: 0 0 0 1.5px #f6c3d1, 0 3px 8px rgba(214, 120, 148, .18) !important; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .js-medal { flex: none; display: flex; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank { width: 42px; height: 42px; margin: 0; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank img { width: 38px; height: 38px; object-fit: contain; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank b { font-size: 9px; padding: 0 4px; bottom: -3px; }
:is(#s-title, #s-store, #s-review) .hud .lv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: visible; }
:is(#s-title, #s-store, #s-review) .hud .lv-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
:is(#s-title, #s-store, #s-review) .hud .lv-name { font-size: 13.5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .js-pips { display: flex !important; flex: none; }
:is(#s-title, #s-store, #s-review) .hud .pips { gap: 3px; }
:is(#s-title, #s-store, #s-review) .hud .pip.dot { width: 7px; height: 7px; border-radius: 50%; background: #efdde3; filter: none; }
:is(#s-title, #s-store, #s-review) .hud .pip.dot.on { background: var(--tc, #ec7f9c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); }
:is(#s-title, #s-store, #s-review) .hud .lv-bar { height: 6px; border-radius: 999px; }
:is(#s-title, #s-store, #s-review) .hud .lv-fans { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; line-height: 1; }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum { display: inline-flex; align-items: center; gap: 3px; text-shadow: none; }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum::before { display: none; }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum .fan-ic { width: 14px; height: 14px; background: url("assets/ach/hud-fans.webp") center / contain no-repeat; }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum em { font-style: normal; color: var(--ink-soft); }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum b { font-size: 12.5px; color: var(--pink-deep); }
:is(#s-title, #s-store, #s-review) .hud .lv-fnum small, :is(#s-title, #s-store, #s-review) .hud-lv .js-fnext { display: inline !important; font-size: 10.5px; color: #c99aa8; }
:is(#s-title, #s-store, #s-review) .hud .lv-tier { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }

/* 第二行：三个一样大的横条 */
:is(#s-title, #s-store, #s-review) .hud .hud-r2 { display: flex; gap: 6px; }
:is(#s-title, #s-store, #s-review) .hud .hud-day { display: flex; flex-direction: row; gap: 6px; flex: 2; min-width: 0; align-items: stretch; }
:is(#s-title, #s-store, #s-review) .hud .hud-day .day-tag, :is(#s-title, #s-store, #s-review) .hud .hud-day .energy, :is(#s-title, #s-store, #s-review) .hud .hud-money .coin-pill {
  flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 8px; border-radius: 999px; line-height: 1;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1.5px #f6c3d1, 0 2px 6px rgba(214, 120, 148, .16); text-shadow: none; }
:is(#s-title, #s-store, #s-review) .hud .hud-money { flex: 1; min-width: 0; display: flex; }
:is(#s-title, #s-store, #s-review) .hud .day-tag .day-ic { width: 18px; height: 18px; flex: none; background: url("assets/ach/hud-day.webp") center / contain no-repeat; margin-right: 1px; }
:is(#s-title, #s-store, #s-review) .hud .day-tag small { font-size: 11.5px; color: var(--ink-soft); }
:is(#s-title, #s-store, #s-review) .hud .day-tag b { font-size: 16px; font-weight: 400; color: var(--pink-deep); }
:is(#s-title, #s-store, #s-review) .hud .energy .en-ic { width: 18px; height: 18px; flex: none; background: url("assets/ach/hud-energy.webp") center / contain no-repeat; }
:is(#s-title, #s-store, #s-review) .hud .energy em { font-size: 11.5px; }
:is(#s-title, #s-store, #s-review) .hud .energy b { font-size: 16px; }
:is(#s-title, #s-store, #s-review) .hud .energy small { font-size: 11.5px; }
:is(#s-title, #s-store, #s-review) .hud .energy.empty .en-ic { filter: grayscale(1) opacity(.5); }
:is(#s-title, #s-store, #s-review) .hud .coin-pill { font-size: 16px !important; color: #b8761c; }
:is(#s-title, #s-store, #s-review) .hud .coin-pill .coin { width: 20px !important; height: 20px !important; flex: none; }
:is(#s-title, #s-store, #s-review) .hud .coin-pill .coin-num { white-space: nowrap; }
@media (max-width: 370px) {
  :is(#s-title, #s-store, #s-review) .hud .hud-lv { margin-right: 124px; }
  #s-title .hub-tools .hub-ico { width: 35px; height: 35px; }
  :is(#s-title, #s-store, #s-review) .hud .energy em { display: none; }
  :is(#s-title, #s-store, #s-review) .hud .lv-tier { display: none; }
}

/* 等级勋章：6 档颜色 */
.medal.rank.tier-bronze { --rk: #c07a4e; } .medal.rank.tier-silver { --rk: #8592aa; } .medal.rank.tier-gold { --rk: #e0a43a; }
.medal.rank.tier-wreath { --rk: #4fa86a; } .medal.rank.tier-crown { --rk: #a46ad8; } .medal.rank.tier-legend { --rk: linear-gradient(90deg, #e9a92a, #d9821a); }
.medal.rank.tier-gold img { filter: none; animation: none; }
.hud-lv.tier-bronze .lv-bar i { background: linear-gradient(90deg, #f1cdb4, #c07a4e); }
.hud-lv.tier-silver .lv-bar i { background: linear-gradient(90deg, #dde3ee, #8592aa); }
.hud-lv.tier-gold .lv-bar i { background: linear-gradient(90deg, #fff0b8, #e0a43a); box-shadow: none; }
.hud-lv.tier-wreath .lv-bar i { background: linear-gradient(90deg, #cdeccf, #4fa86a); }
.rk-head.tier-bronze { background: linear-gradient(135deg, #fff, #fbeee4); }
.rk-head.tier-silver { background: linear-gradient(135deg, #fff, #eef1f6); }
.rk-head.tier-gold { background: linear-gradient(135deg, #fffdf4, #fff3cc); box-shadow: none; }
.rk-head.tier-wreath { background: linear-gradient(135deg, #fff, #e8f6ea); }
.rk-head.tier-bronze .rk-bar i { background: linear-gradient(90deg, #f1cdb4, #c07a4e); }
.rk-head.tier-silver .rk-bar i { background: linear-gradient(90deg, #dde3ee, #8592aa); }
.rk-head.tier-gold .rk-bar i { background: linear-gradient(90deg, #fff0b8, #e0a43a); }
.rk-head.tier-wreath .rk-bar i { background: linear-gradient(90deg, #cdeccf, #4fa86a); }
.rk-tierhead.tier-bronze b { color: #a8613a; } .rk-tierhead.tier-silver b { color: #6a7790; } .rk-tierhead.tier-gold b { color: #c08414; } .rk-tierhead.tier-wreath b { color: #3b8e55; }
.rk-head .pips .pip.dot, .rk-row .pip.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #efdde3; }
.rk-head .pips .pip.dot.on { background: var(--tc, #ec7f9c); }
/* 等级卡里的勋章放大 */
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank { width: 46px; height: 46px; background: none !important; box-shadow: none !important; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank img { width: 46px; height: 46px; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv { padding-left: 2px !important; }
/* 等级页：勋章阶梯 */
.rk-ladder { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; margin: 10px 0 4px; padding: 10px 6px 8px; border-radius: 16px; background: #fff7fa; box-shadow: inset 0 0 0 1.5px #f6d3dc; }
.rl-step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rl-step img { width: 100%; max-width: 46px; aspect-ratio: 1; object-fit: contain; }
.rl-step b { font-weight: 400; font-size: 10.5px; color: var(--ink); white-space: nowrap; }
.rl-step small { font-size: 9.5px; color: var(--ink-soft); }
.rl-step.lock img { filter: grayscale(1) opacity(.4); }
.rl-step.lock b, .rl-step.lock small { color: #c3b3b8; }
.rl-step.cur img { max-width: 54px; filter: drop-shadow(0 0 8px rgba(255, 190, 90, .7)); animation: bump 1.6s ease-in-out infinite; }
.rl-step.cur b { color: var(--pink-deep); }
.rl-arrow { flex: none; width: 7px; height: 7px; margin-bottom: 34px; border-top: 2px solid #e8b6c4; border-right: 2px solid #e8b6c4; transform: rotate(45deg); }
/* 升档弹窗：旧勋章 → 新勋章 */
.lv-up { display: flex; align-items: center; justify-content: center; gap: 10px; }
.lv-up .lv-from { width: 56px; height: 56px; object-fit: contain; filter: grayscale(.4) opacity(.75); }
.lv-up .rl-arrow { margin: 0; width: 10px; height: 10px; border-width: 3px; }
.lv-pipline .pip.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #efdde3; margin: 0 2px; }
.lv-pipline .pip.dot.on { background: var(--tc, #ec7f9c); }

/* 等级勋章 10 档的颜色 */
.medal.rank.tier-bronze { --rk: #c07a4e; } .hud-lv.tier-bronze .lv-bar i, .rk-head.tier-bronze .rk-bar i { background: linear-gradient(90deg, #f1cdb4, #c07a4e); box-shadow: none; } .rk-head.tier-bronze { background: linear-gradient(135deg, #fff, #fbeee4); box-shadow: none; } .rk-tierhead.tier-bronze b { color: #a8613a; }
.medal.rank.tier-lace { --rk: #e07f8f; } .hud-lv.tier-lace .lv-bar i, .rk-head.tier-lace .rk-bar i { background: linear-gradient(90deg, #ffd6dd, #e07f8f); box-shadow: none; } .rk-head.tier-lace { background: linear-gradient(135deg, #fff, #fff0f2); box-shadow: none; } .rk-tierhead.tier-lace b { color: #c95f72; }
.medal.rank.tier-silver { --rk: #8592aa; } .hud-lv.tier-silver .lv-bar i, .rk-head.tier-silver .rk-bar i { background: linear-gradient(90deg, #dde3ee, #8592aa); box-shadow: none; } .rk-head.tier-silver { background: linear-gradient(135deg, #fff, #eef1f6); box-shadow: none; } .rk-tierhead.tier-silver b { color: #6a7790; }
.medal.rank.tier-star { --rk: #7f93c9; } .hud-lv.tier-star .lv-bar i, .rk-head.tier-star .rk-bar i { background: linear-gradient(90deg, #dbe3f7, #7f93c9); box-shadow: none; } .rk-head.tier-star { background: linear-gradient(135deg, #fff, #eef2fb); box-shadow: none; } .rk-tierhead.tier-star b { color: #5f74ad; }
.medal.rank.tier-gold { --rk: #e0a43a; } .hud-lv.tier-gold .lv-bar i, .rk-head.tier-gold .rk-bar i { background: linear-gradient(90deg, #fff0b8, #e0a43a); box-shadow: none; } .rk-head.tier-gold { background: linear-gradient(135deg, #fff, #fff3cc); box-shadow: none; } .rk-tierhead.tier-gold b { color: #c08414; }
.medal.rank.tier-bow { --rk: #ec7f9c; } .hud-lv.tier-bow .lv-bar i, .rk-head.tier-bow .rk-bar i { background: linear-gradient(90deg, #ffd3df, #ec7f9c); box-shadow: none; } .rk-head.tier-bow { background: linear-gradient(135deg, #fff, #fff0f4); box-shadow: none; } .rk-tierhead.tier-bow b { color: #d25d80; }
.medal.rank.tier-wreath { --rk: #4fa86a; } .hud-lv.tier-wreath .lv-bar i, .rk-head.tier-wreath .rk-bar i { background: linear-gradient(90deg, #cdeccf, #4fa86a); box-shadow: none; } .rk-head.tier-wreath { background: linear-gradient(135deg, #fff, #e8f6ea); box-shadow: none; } .rk-tierhead.tier-wreath b { color: #3b8e55; }
.medal.rank.tier-gem { --rk: #e0607e; } .hud-lv.tier-gem .lv-bar i, .rk-head.tier-gem .rk-bar i { background: linear-gradient(90deg, #ffc9d5, #e0607e); box-shadow: none; } .rk-head.tier-gem { background: linear-gradient(135deg, #fff, #ffeef2); box-shadow: none; } .rk-tierhead.tier-gem b { color: #c4405f; }
.medal.rank.tier-crown { --rk: #a46ad8; } .hud-lv.tier-crown .lv-bar i, .rk-head.tier-crown .rk-bar i { background: linear-gradient(90deg, #e6d2ff, #a46ad8); box-shadow: none; } .rk-head.tier-crown { background: linear-gradient(135deg, #fff, #f1e6ff); box-shadow: none; } .rk-tierhead.tier-crown b { color: #8a54c4; }
.medal.rank.tier-legend { --rk: #d9921a; } .hud-lv.tier-legend .lv-bar i, .rk-head.tier-legend .rk-bar i { background: linear-gradient(90deg, #ffe7a0, #d9921a); box-shadow: none; } .rk-head.tier-legend { background: linear-gradient(135deg, #fff, #ffe9b0); box-shadow: none; } .rk-tierhead.tier-legend b { color: #c17a12; }
.medal.rank.tier-legend img { filter: drop-shadow(0 0 6px rgba(255, 200, 80, .8)); animation: goldGlow 2.4s ease-in-out infinite; } .rk-head.tier-legend { box-shadow: 0 0 0 2px #f3c95d; }
/* 等级页：10 枚勋章排两行 */
.rk-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 4px; align-items: end; }
.rk-ladder .rl-arrow { display: none; }
.rl-step b { font-size: 10px; white-space: normal; text-align: center; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.rl-step img { max-width: 44px; }
.rl-step.cur img { max-width: 50px; }
/* 首页：好评连击提示条（开始营业上方） */
#s-title .hub-combo { align-self: center; display: flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; line-height: 1.2;
  background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1.5px #f6c3d1, 0 3px 8px rgba(214, 120, 148, .18); }
#s-title .hub-combo.hidden { display: none; }
#s-title .hub-combo b { font-weight: 400; font-size: 14px; color: var(--pink-deep); white-space: nowrap; }
#s-title .hub-combo span { font-size: 11.5px; color: var(--ink-soft); }
#s-title .hub-combo.fever { background: linear-gradient(90deg, #fff6d8, #ffe7b0); box-shadow: 0 0 0 1.5px #f3c95d, 0 0 12px rgba(255, 190, 80, .55); }
#s-title .hub-combo.fever b { color: #c47a10; }
:is(#s-title, #s-store, #s-review) .hud .hud-combo { display: none !important; }

/* 新增档位颜色：纸 / 木 / 金冠 */
.medal.rank.tier-paper { --rk: #b89470; } .hud-lv.tier-paper .lv-bar i, .rk-head.tier-paper .rk-bar i { background: linear-gradient(90deg, #eadbc8, #b89470); box-shadow: none; } .rk-head.tier-paper { background: linear-gradient(135deg, #fff, #f8f1e8); box-shadow: none; } .rk-tierhead.tier-paper b { color: #8f6c4a; }
.medal.rank.tier-wood { --rk: #cf8a3e; } .hud-lv.tier-wood .lv-bar i, .rk-head.tier-wood .rk-bar i { background: linear-gradient(90deg, #f4d6b0, #cf8a3e); box-shadow: none; } .rk-head.tier-wood { background: linear-gradient(135deg, #fff, #fbf0e2); box-shadow: none; } .rk-tierhead.tier-wood b { color: #a9682a; }
.medal.rank.tier-goldcrown { --rk: #d9921a; } .hud-lv.tier-goldcrown .lv-bar i, .rk-head.tier-goldcrown .rk-bar i { background: linear-gradient(90deg, #ffe7a0, #d9921a); box-shadow: none; } .rk-head.tier-goldcrown { background: linear-gradient(135deg, #fff, #fff2cc); box-shadow: none; } .rk-tierhead.tier-goldcrown b { color: #b97710; }
.medal.rank.tier-legend { --rk: #e8a21a; } .hud-lv.tier-legend .lv-bar i, .rk-head.tier-legend .rk-bar i { background: linear-gradient(90deg, #ffe7a0, #e8a21a); box-shadow: none; } .rk-head.tier-legend { background: linear-gradient(135deg, #fff, #ffe9b0); box-shadow: none; } .rk-tierhead.tier-legend b { color: #c17a12; }
.rk-head.tier-legend { box-shadow: 0 0 0 2px #f3c95d; }

/* =====================================================================
   店铺等级：界面颜色统一用主色粉，档位只靠勋章本身区分
   （进度条、档内圆点、Lv 角标、等级页标题与背景，十档都一样）
   ===================================================================== */
.medal.rank[class*="tier-"] { --rk: #ec7f9c; }
.hud-lv[class*="tier-"] .lv-bar i, .rk-head[class*="tier-"] .rk-bar i { background: linear-gradient(90deg, #ffc6d4, #ec7f9c) !important; box-shadow: none !important; }
.rk-head[class*="tier-"] { background: linear-gradient(135deg, #fff, #fff0f4) !important; box-shadow: none !important; }
.rk-tierhead[class*="tier-"] b { color: var(--pink-deep) !important; }
.pip.dot.on, :is(#s-title, #s-store, #s-review) .hud .pip.dot.on, .rk-head .pips .pip.dot.on, .lv-pipline .pip.dot.on { background: #ec7f9c !important; }
.rl-step.cur img { filter: drop-shadow(0 0 8px rgba(236, 127, 156, .55)); }
.rl-step.cur b { color: var(--pink-deep); }
/* 勋章图已居中撑满；阶梯里靠 --s 逐级放大（低档小、高档大） */
.rl-step img { width: calc(46px * var(--s, 1)); max-width: none; height: calc(46px * var(--s, 1)); }
.rl-step.cur img { width: calc(52px * var(--s, 1)); height: calc(52px * var(--s, 1)); max-width: none; }
.rk-ladder { align-items: end; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv .medal.rank b { bottom: -5px; }

/* =====================================================================
   成就页 v2：贴纸风图标 + 主色粉，能领的排最前
   ===================================================================== */
.ach-bar { background: #f6dfe6; }
.ach-bar i { background: linear-gradient(90deg, #ffc6d4, #ec7f9c); }
.ach-row { background: #fdf8f9; }
.ach-row > img { width: 40px; height: 40px; filter: grayscale(1) opacity(.42); }
.ach-row.done > img, .ach-row.got > img { filter: drop-shadow(0 2px 3px rgba(160, 80, 100, .2)); }
.ach-row.done { background: linear-gradient(90deg, #fff, #ffeef3); box-shadow: 0 0 0 1.5px #f6b8c8, 0 3px 8px rgba(214, 120, 148, .15); }
.ach-row.done .ach-pg i { background: linear-gradient(90deg, #ffc6d4, #ec7f9c); }
.ach-row.got { background: #fbf7f8; box-shadow: none; }
.ach-row.got .ach-info b { color: var(--ink-soft); }
.ach-row.got .ach-pg i { background: #e9c9d3; }
.ach-rw { color: var(--ink-soft); }
.ach-got { color: #c3a2ad; }
.ach-claim { color: #fff; background: linear-gradient(180deg, #f6a0b7, #e8708f); box-shadow: 0 0 0 2px #fff, 0 3px 0 #d0607e; text-shadow: none; }
.ach-ch .ach-can { font-style: normal; font-size: 11px; color: #fff; background: #ec7f9c; border-radius: 999px; padding: 1px 8px; }
.ach-head img { width: 50px; height: 50px; }
.ach-box { background: linear-gradient(180deg, #fff, #fff0f4); box-shadow: 0 0 0 3px #f6b8c8, 0 18px 40px rgba(120, 40, 70, .35); }
.ach-sum { color: var(--ink-soft); }

/* 进货/衣橱页、评价页的状态栏：和首页同一套两行横排，等级卡占满整行；去掉顶部白色渐变 */
.hud::before { display: none !important; }
:is(#s-store, #s-review) .hud .hud-lv { margin-right: 0 !important; }
:is(#s-store, #s-review) .hud .hud-combo { display: none !important; }
:is(#s-title, #s-store, #s-review) .hud .hud-lv, :is(#s-title, #s-store, #s-review) .hud .hud-r2 { flex: none !important; }
:is(#s-store, #s-review) .hud { flex: none !important; height: auto !important; min-height: 0 !important; }

/* =====================================================================
   首页背景 v3：9:16 竖图铺满，不再有上下白色遮罩
   图片下方露出的一小条用地板色接上（白天暖木色 / 夜晚紫灰）
   ===================================================================== */
#s-title { background: #f2d4ba; }
#s-title.ph-night { background: #86758b; }
#s-title .hub-bg.day, #s-title .hub-bg.eve, #s-title .hub-bg.night {
  top: var(--hub-bg-t, 0px) !important; bottom: auto !important; height: var(--hub-bg-h, 100%) !important; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent) !important; mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent) !important; }
#s-title #title-decor { top: var(--hub-bg-t, 0px); }
#s-title .hub-scrim, #s-title.ph-night .hub-scrim { background: none !important; }
#s-title .hub-top::before, .hub-top::before { display: none !important; }
#s-title:not(.wide) .hub-bg-ext { display: none; }
#s-title.wide .hub-bg.day, #s-title.wide .hub-bg.eve, #s-title.wide .hub-bg.night {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 22px), transparent) !important;
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(180deg, #000 calc(100% - 22px), transparent) !important; }
#s-title.wide .hub-scrim { background: linear-gradient(90deg, rgba(250, 226, 233, .55) 0, rgba(250, 226, 233, 0) calc(50% - var(--hub-bg-w, 100%) / 2 + 40px), rgba(250, 226, 233, 0) calc(50% + var(--hub-bg-w, 100%) / 2 - 40px), rgba(250, 226, 233, .55) 100%) !important; }

/* 首页转盘：有次数时只显示红点（和成就、信箱等一致），不再显示数字和金色光圈 */
#s-title .hub-tools .wheel-btn.has { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line), 0 4px 10px rgba(214, 120, 148, .25); animation: none; }
#s-title .hub-tools .hub-ico #spin-count { right: -1px; top: -1px; width: 12px; height: 12px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; color: transparent;
  background: #ff5f7e; box-shadow: 0 0 0 2px #fff; animation: dxPulse 1.2s ease-in-out infinite; }
#s-title .hub-tools .hub-ico #spin-count.hidden { display: none; }

/* 通用确认框 */
.cf-box { width: min(84vw, 320px); display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 14px; text-align: center;
  background: linear-gradient(180deg, #fff, #fff0f4); border-radius: 24px; border: 2px solid #fff; box-shadow: 0 0 0 3px #f6b8c8, 0 18px 40px rgba(120, 40, 70, .35); }
.overlay.opening .cf-box { animation: ovPop .5s var(--spring); }
.cf-msg { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.cf-btns { display: flex; gap: 10px; margin-top: 4px; }
.cf-btns .btn { flex: 1; min-height: 46px; margin: 0; }
.cf-btns .btn.danger { background: linear-gradient(180deg, #ff9a8a, #f0645c); box-shadow: 0 0 0 2px #fff, 0 4px 0 #cf4a44; }
#ov-confirm { z-index: 120; }

/* 猫窝前沿：和猫窝同位置同大小，叠在猫身前（窝的其余部分仍在猫身后） */
img.bed-front { display: none; pointer-events: none; clip-path: inset(93% 0 0 0); }
img.bed-front.on { display: block; z-index: 2 !important; filter: none !important; animation: none !important; }
/* cover 类帽子：整只猫换装图，压在猫身上但位于衣服层之下 */
.js-wear .w-hat.full-cover { z-index: 1; }

/* ============ 打包台 · 亲手打包（v2） ============ */
#s-pack .content { padding-top: calc(10px + env(safe-area-inset-top)); gap: 0; }
#s-pack .pk-steps { display: flex; align-items: flex-start; margin: 8px 2px 0; }
.pks { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 46px; flex: none; opacity: .6; transition: opacity .2s; }
.pks-ic { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #f3c6d3; display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.pks-ic img { width: 76%; height: 76%; object-fit: contain; border-radius: 50%; }
.pks-lb { font-size: 10.5px; color: #b07a89; white-space: nowrap; }
.pks.cur, .pks.done { opacity: 1; }
.pks.cur .pks-ic { box-shadow: 0 0 0 2.5px #ec7f9c, 0 3px 10px rgba(236, 127, 156, .45); transform: scale(1.1); }
.pks.cur .pks-lb { color: #d4607f; }
.pks.done .pks-ic::after { content: '✓'; position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #ec7f9c; color: #fff; font-size: 10px; line-height: 15px; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.pks-dot { flex: 1; height: 2px; margin-top: 17px; background: repeating-linear-gradient(90deg, #efb9c8 0 3px, transparent 3px 6px); }
.pk-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; min-height: 30px; }
#pk-hint-text { background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #a3586e; box-shadow: 0 2px 8px rgba(200, 120, 150, .2); }
.pk-help { border: 0; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; color: #fff; background: linear-gradient(#f5a2b8, #e57996); box-shadow: 0 2px 8px rgba(229, 121, 150, .45); cursor: pointer; }
.pk-help.hidden { display: none; }
#s-pack .pk-stage { flex: 1; min-height: 190px; margin: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.pk-plate { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 4 / 1.05; transform: translate(-50%, 4%); border-radius: 50%;
  background: radial-gradient(closest-side, #fffdfd 70%, #fbeef2 86%, transparent 87%),
    repeating-conic-gradient(from 0deg, #fff 0 4deg, #f8e3ea 4deg 8deg);
  -webkit-mask: radial-gradient(closest-side, #000 96%, transparent 100%); mask: radial-gradient(closest-side, #000 96%, transparent 100%);
  filter: drop-shadow(0 6px 10px rgba(180, 100, 125, .18)); pointer-events: none; }
.pk-box { position: relative; width: min(94%, 430px); aspect-ratio: 1000 / 579; touch-action: none; z-index: 1; }
.pk-box > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-box:not(.has-box) > * { visibility: hidden; }
.pk-box:not(.has-box)::before { content: '挑一只礼盒'; position: absolute; inset: 14% 8%; border: 2.5px dashed #efb6c6; border-radius: 18px; display: grid; place-items: center; color: #d398a8; font-size: 15px; background: rgba(255, 255, 255, .45); }
.pk-open, .pk-closed { object-fit: fill; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 10px 12px rgba(150, 70, 95, .22)); }
.pk-cv, .pk-items, .pk-decos, .pk-paper { pointer-events: none; }
.pk-closed { display: none; }
.pk-box.closed .pk-closed { display: block; }
.pk-box.closed .pk-open, .pk-box.closed #pk-raffia, .pk-box.closed #pk-lights, .pk-box.closed .pk-items, .pk-box.closed .pk-decos, .pk-box.closed .pk-paper { visibility: hidden; }
.pk-box:not(.closed) #pk-ribbon, .pk-box:not(.closed) .pk-stickers { visibility: hidden; }
.pk-box.drawing { cursor: crosshair; }
.pk-item, .pk-deco { position: absolute; inset: auto; height: auto; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(0 3px 4px rgba(120, 50, 70, .28)); }
.pk-deco { width: 13%; }
.pk-item.drop-in { animation: pkItemIn .45s cubic-bezier(.3, 1.4, .6, 1) both; }
.pk-deco.pop { animation: pkItemIn .4s cubic-bezier(.3, 1.4, .6, 1) both; }
@keyframes pkItemIn { from { opacity: 0; transform: translate(-50%, -150%) rotate(var(--r, 0deg)) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); } }
.pk-paper { display: none; background-repeat: repeat; background-size: 100% 100%, 16% auto; box-shadow: inset 0 0 18px rgba(150, 80, 100, .25); }
.pk-paper.on { display: block; }
.pk-paper.paper-in { animation: pkPaperIn .45s ease-out; }
@keyframes pkPaperIn { from { opacity: 0; transform: translateY(-10%) scaleY(.9); } to { opacity: 1; transform: none; } }
.pk-closed.lid-drop { animation: pkLid .5s cubic-bezier(.5, 0, .6, 1.3); }
@keyframes pkLid { from { opacity: 0; transform: translateY(-34%) scale(1.04); } to { opacity: 1; transform: none; } }
#pk-ribbon.pop-in { animation: pkPop .35s ease-out; }
@keyframes pkPop { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.pk-box.box-in { animation: boxDrop .6s var(--spring); }
.pk-box.thud { animation: thud .35s ease-out; }
.pk-box.fly { animation: shipOut 1.05s cubic-bezier(.5, 0, .7, .4) forwards; }
.pk-stickers { pointer-events: none; }
.pk-box.dressing .pk-stickers { pointer-events: auto; }
.pk-st { position: absolute; inset: auto; height: auto; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); touch-action: none; cursor: grab; }
.pk-st img { display: block; width: 100%; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(120, 50, 70, .3)); }
.pk-st-txt { position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; letter-spacing: .5px; pointer-events: none; line-height: 1; }
.pk-st.sel { outline: 1.5px dashed #e57996; outline-offset: 3px; border-radius: 4px; z-index: 2; }
.pk-x, .pk-rot { display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(150, 70, 95, .4); font-style: normal; }
.pk-st.sel .pk-x { display: grid; place-items: center; left: -15px; top: -15px; color: #e57996; font-size: 15px; line-height: 1; }
.pk-st.sel .pk-rot { display: block; right: -15px; bottom: -15px; background: #ec7f9c; }
.pk-st.sel .pk-rot::before { content: '⟲'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; }
.pk-x::before, .pk-rot::after { content: ''; position: absolute; inset: -10px; }
.pk-panel { position: relative; background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 8px 6px 6px; margin: 4px 2px 0; box-shadow: 0 4px 16px rgba(200, 120, 150, .18); }
.pk-head { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pk-head b { color: #a3586e; font-size: 14.5px; }
.pk-head span { color: #c99aa8; font-size: 11px; }
.pk-head em { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 10.5px; color: #c08a3a; }
.pk-tabs { display: flex; justify-content: center; gap: 6px; margin: 6px 0 0; }
.pk-tabs.hidden { display: none; }
.pkt { border: 0; border-radius: 999px; padding: 4px 13px; background: #fbe8ee; color: #b57f8e; font: inherit; font-size: 12px; cursor: pointer; }
.pkt.on { background: #ec7f9c; color: #fff; box-shadow: 0 2px 6px rgba(236, 127, 156, .4); }
.pk-tray { display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px 2px; min-height: 92px; scrollbar-width: none; align-items: flex-start; }
.pk-tray::-webkit-scrollbar { display: none; }
.pk-tray > :first-child { margin-left: auto; }
.pk-tray > :last-child { margin-right: auto; }
.pk-tray.stagger > * { animation: tileIn .45s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
.pkc { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; font: inherit; padding: 2px 0; cursor: pointer; }
.pkc:active { transform: scale(.92); }
.pkc-sw { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--c, #fff); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 1.5px #f1c6d2; overflow: hidden; display: grid; place-items: center; transition: box-shadow .15s, transform .15s; }
.pkc-sw img { width: 82%; height: 82%; object-fit: contain; pointer-events: none; }
.pkc-sw.papers img, .pkc-sw.paper img { width: 100%; height: 100%; object-fit: cover; }
.pkc-sw.paper { background: repeating-linear-gradient(45deg, #fff 0 5px, #f6e9ee 5px 10px); }
.pkc-sw.raffia { background: repeating-linear-gradient(32deg, var(--c) 0 2.5px, color-mix(in srgb, var(--c), #fff 50%) 2.5px 4px, color-mix(in srgb, var(--c), #6a3a4a 16%) 4px 5.5px),
  repeating-linear-gradient(-38deg, transparent 0 6px, color-mix(in srgb, var(--c), #fff 40%) 6px 7.5px); }
.pkc-sw.ribbons { background: linear-gradient(90deg, transparent 40%, var(--c) 40%, var(--c) 60%, transparent 60%), linear-gradient(transparent 40%, var(--c) 40%, var(--c) 60%, transparent 60%), #fff7f9; }
.pkc-sw.lights { background: radial-gradient(circle at 50% 28%, #ffffff 0 55%, #fff1f5 100%); }
/* 灯串款式：整张透明底图标，三个大灯球直接铺满圆形色片 */
.pkc-sw.lights img { width: 96%; height: 96%; object-fit: contain; }
.pkc-sw.lights i { display: none; }
.pkc-sw.lights i { position: absolute; inset: 0; }
.pkc-sw.lights i::before, .pkc-sw.lights i::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: 40%; box-shadow: 0 0 8px 3px var(--g, #ffeaa0); }
.pkc-sw.lights i::before { left: 20%; background: var(--a, #fff3c4); }
.pkc-sw.lights i::after { right: 20%; background: var(--b, #fff3c4); }
.pkc-sw.lights .lt-rice { --a: #fff4c8; --b: #fff4c8; --g: rgba(255, 236, 160, .8); }
.pkc-sw.lights .lt-star { --a: #ffd45e; --b: #ffd45e; --g: rgba(255, 212, 94, .8); }
.pkc-sw.lights .lt-star::before, .pkc-sw.lights .lt-star::after { border-radius: 2px; transform: rotate(45deg); }
.pkc-sw.lights .lt-color { --a: #ff9fb8; --b: #9fd6ff; --g: rgba(255, 180, 200, .7); }
.pkc-sw.lights .lt-snow { --a: #e4f5ff; --b: #bfe4ff; --g: rgba(170, 220, 255, .8); }
.pkc.on .pkc-sw { box-shadow: 0 0 0 2.5px #ec7f9c, 0 3px 9px rgba(236, 127, 156, .45); transform: scale(1.06); }
.pkc.on .pkc-sw::after { content: '✓'; position: absolute; right: 1px; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: #ec7f9c; color: #fff; font-size: 10px; line-height: 15px; text-align: center; }
.pkc.locked .pkc-sw::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .45); z-index: 1; }
.pkc-name { font-size: 11px; color: #8f5b6a; white-space: nowrap; }
.pkc-price { font-size: 10.5px; color: #c88a1c; display: flex; align-items: center; gap: 2px; }
.pkc-foot { font-size: 10.5px; color: #ec7f9c; }
.pk-tray .pkbox { flex: none; width: 31%; max-width: 128px; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 0 0 1.5px #f3cad5, 0 3px 8px rgba(200, 120, 150, .14); padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; cursor: pointer; }
.pk-tray .pkbox.locked { opacity: .55; }
.pkbox-img { width: 100%; }
.pkbox-img img { width: 100%; aspect-ratio: 1000 / 579; object-fit: contain; display: block; pointer-events: none; }
.pkbox-name { font-size: 12px; color: #8f5b6a; white-space: nowrap; }
.pkbox-tier { font-size: 10px; color: #fff; background: #e99ab0; border-radius: 999px; padding: 1px 8px; }
.pkbox-cost { font-size: 11px; color: #c88a1c; display: flex; align-items: center; gap: 2px; }
.pk-tray .gt { flex: none; width: 66px; }
#s-pack .pk-footer { display: flex; gap: 8px; align-items: center; margin-top: 6px; min-height: 48px; }
#s-pack .pk-footer .btn { flex: 1; min-width: 0; padding-left: 0; padding-right: 0; }
#s-pack .pk-footer .btn.hidden { display: none; }
#s-pack .pk-footer .btn:disabled { opacity: .45; }
#s-pack .pk-stage > .pet-cat { position: absolute; left: 0; bottom: 8px; width: 64px; z-index: 2; }
/* 店长棉花糖整只露出来：脚下不压在下面的面板/托盘边上 */
#s-work .pet-cat { bottom: 8px; }
#s-pack .pack-footer .pet-cat { bottom: 8px; }

/* 海报卡 */
.pp-card { width: min(92vw, 380px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; padding: 16px 16px 10px; text-align: center; box-shadow: 0 12px 34px rgba(160, 70, 100, .3); }
.overlay.on .pp-card { animation: ovPop .55s var(--spring); }
.pp-title { display: block; font-size: 21px; color: #d06684; }
.pp-sub { margin: 2px 0 8px; font-size: 12px; color: #c99aa8; }
.pp-img { width: 100%; border-radius: 14px; box-shadow: 0 4px 12px rgba(180, 100, 125, .2); display: block; }
.pp-list { list-style: none; padding: 0; margin: 10px 2px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; text-align: left; font-size: 12px; }
.pp-list li { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dotted #f3d3dc; padding-bottom: 2px; }
.pp-list span { color: #c99aa8; white-space: nowrap; }
.pp-list b { color: #8f5b6a; font-weight: normal; text-align: right; }
.pp-row { display: flex; gap: 8px; }
.pp-row .btn { flex: 1; }
.pp-back { border: 0; background: none; color: #b57f8e; font: inherit; font-size: 12px; margin-top: 6px; text-decoration: underline; cursor: pointer; }
/* 本单结算 */
.rv-money:has(.settle) { display: block; }
.settle { width: 100%; }
.settle .st-h { display: block; text-align: center; color: #a3586e; font-size: 13px; margin-bottom: 4px; }
.settle p { display: flex; justify-content: space-between; align-items: center; margin: 1px 0; font-size: 12.5px; }
.settle p i { font-style: normal; color: var(--ink); }
.settle p i.neg { color: #c0566f; }
.settle .st-f { border-top: 1px dashed #f0c3cf; margin-top: 4px; padding-top: 4px; }
.pv-openbox { aspect-ratio: 1000 / 579; }
/* v2 覆盖旧打包台的固定高度 */
#s-pack .pk-stage, #s-pack .content.tray-hidden .pk-stage { flex: 1 1 auto; height: auto; min-height: 160px; margin-top: 0; container-type: normal; }
#s-pack #pack-tray.pk-tray { height: auto; min-height: 92px; margin-bottom: 0; }
#s-pack .content { overflow: hidden; }
.pk-plate { background: radial-gradient(closest-side, rgba(255, 255, 255, .96) 78%, rgba(255, 250, 252, .9) 84%, rgba(246, 214, 224, .9) 85.5%, rgba(255, 255, 255, .95) 87%, transparent 88.5%);
  -webkit-mask: none; mask: none; transform: translate(-50%, 6%); width: 104%; }
.pk-plate::after { content: ''; position: absolute; inset: 4% 3%; border-radius: 50%; border: 2px dashed rgba(236, 160, 182, .55); }
#s-pack #pack-tray.pk-tray { margin: 0; padding: 8px 2px 2px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; justify-content: flex-start; gap: 4px; }
#s-pack #pack-tray.pk-tray .gt { width: 66px; max-width: none; }
.pk-box { width: min(98%, 470px); }
#rv-list { grid-template-columns: repeat(4, 1fr) !important; }
/* v3：蕾丝垫、发货动画、分享按钮 */
.pk-plate { display: none; }
.pk-holder { position: relative; width: min(96%, 460px); z-index: 1; }
.pk-holder .pk-box { width: 100%; }
.pk-doily { position: absolute; left: -11%; width: 122%; top: 40%; pointer-events: none; user-select: none; filter: drop-shadow(0 8px 12px rgba(170, 90, 115, .2)); }
.pk-box.fly { animation: pkShip 1.05s cubic-bezier(.5, 0, .7, .4) forwards; }
/* 发货：和原来一样——先往上一顿、往左一歪，再转着飞出画面 */
@keyframes pkShip {
  0% { transform: none; }
  25% { transform: translate(0, -10%) scale(1.04, .96); }
  40% { transform: translate(-2%, 0) scale(.98, 1.03) rotate(-3deg); }
  100% { transform: translate(190%, -10%) rotate(14deg) scale(.7); opacity: 0; }
}
.pp-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.pp-sh { display: flex; align-items: center; justify-content: center; gap: 3px; border: 1.5px solid #f0bfcd; background: #fff; color: #b0566f; border-radius: 999px; padding: 7px 0; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pp-sh:active { transform: scale(.94); }
.pp-sh i { width: 13px; height: 13px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; flex: none; }
.pp-sh .ic-note::before { content: ''; position: absolute; left: 2px; right: 2px; top: 3px; height: 1.4px; background: currentColor; box-shadow: 0 3px 0 currentColor; }
.pp-sh .ic-video::before { content: ''; position: absolute; left: 3.5px; top: 2px; border-left: 5px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.pp-ship { width: 100%; font-size: 17px; letter-spacing: 6px; }
.pkc-sw.raffiaKind { background: var(--c, #f7f0e3); }
.pkc-sw.raffiaKind img { width: 92%; height: 92%; filter: drop-shadow(0 1px 1.5px rgba(110, 70, 60, .35)); }
#pk-raffia.pop-in { animation: pkPop .4s ease-out; }
/* 拉菲草色块：圆形里一小捆系蝴蝶结的拉菲草 */
.pkc-sw.raffia { background: radial-gradient(circle at 50% 40%, #fff, #fbeef2); }
.pkc-sw.raffia img { width: 96%; height: 96%; object-fit: contain; }
.pk-tray.raffia .pkc { width: 64px; }
.pk-tray.raffia .pkc-sw { width: 56px; height: 56px; }
.pkc.locked .pkc-sw::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -38%); z-index: 2;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3' fill='none' stroke='%23b88a7e' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='4' y='10' width='16' height='12' rx='3' fill='%23c79a8d'/%3E%3Ccircle cx='12' cy='16' r='1.8' fill='%23fff'/%3E%3C/svg%3E"); }
.pk-tray .pkbox { width: 27%; }

/* 小灯串面板：用新的灯串图标，浅底，按款式换色 */
.pkc-sw.lights { background: #fff8f3; }
.pkc-sw.lights i { display: none; }
.pkc-sw.lights img { width: 88%; height: 88%; object-fit: contain; }
.lv-need { font-style: normal; font-size: 10px; line-height: 1.5; color: #fff; background: #c98a9b; border-radius: 6px; padding: 0 4px; margin-left: 4px; white-space: nowrap; }
