/* 极简纯色舞台 + 全屏高燃拆盒演出；兼容 Chrome 61（不用 flex gap/clamp/min/max/aspect-ratio/inset） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, #fffaf6 0%, #fff1ea 55%, #ffe6de 100%);
  font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: #54372c;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
button { font-family: inherit; color: inherit; border: 0; outline: 0; cursor: pointer; background: transparent; }
img { -webkit-user-drag: none; pointer-events: none; }
.hidden { display: none !important; }

#app {
  position: relative; height: 100%; max-width: 480px; margin: 0 auto;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 241, 234, 0.5) 56%, rgba(255, 230, 222, 0.85) 100%);
  overflow: hidden;
  will-change: transform;
}

/* ---------- 极简顶栏 ---------- */
#top {
  position: relative; z-index: 5; -webkit-flex: none; flex: none;
  /* 浏览器里只让开刘海；小红书容器里由 app.js 按胶囊按钮位置改写 */
  padding: 12px 16px 8px; padding-top: calc(12px + env(safe-area-inset-top));
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
#wallet {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #fff; border: 2px solid #54372c; border-radius: 20px;
  padding: 3px 12px 3px 6px; box-shadow: 0 2px 0 #54372c;
}
.coin-ico { font-size: 16px; color: #f0a518; margin-right: 6px; }
#coins { font-size: 18px; font-weight: 900; }
#coins.bump { -webkit-animation: bump 0.25s; animation: bump 0.25s; }
#wallet.glow { -webkit-animation: walletglow 0.38s ease-out; animation: walletglow 0.38s ease-out; }

#top-btns { margin-left: auto; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.chip {
  background: #fff; border: 2px solid #54372c; border-radius: 16px; padding: 5px 8px;
  font-size: 12px; font-weight: 800; margin-left: 4px; box-shadow: 0 2px 0 #54372c; white-space: nowrap;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.chip i { font-size: 12px; margin-right: 4px; color: #f07298; }
.chip.icon { padding: 6px 8px; }
/* 小屏顶栏再紧一档，出现礼盒时右侧按钮也不被挤出屏幕 */
@media (max-width: 374px) {
  #top { padding-left: 12px; padding-right: 12px; }
  #wallet { padding-right: 9px; }
  #coins { font-size: 16px; }
  .chip { padding: 5px 6px; margin-left: 3px; }
  .chip.icon { padding: 6px 7px; }
}
.chip.icon i { margin-right: 0; color: #54372c; }
.chip.gift {
  background: #6cc596; color: #fff;
  -webkit-animation: wiggle 0.9s infinite; animation: wiggle 0.9s infinite;
}
.chip.gift i { color: #fff; }
.chip:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: none; }
.chip.dot { position: relative; }
.chip.dot::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: #ff4f72; border: 2px solid #fff;
}

/* ---------- 居中盲盒舞台 ---------- */
#stage {
  position: relative; z-index: 3; -webkit-flex: 1; flex: 1; min-height: 0;
  padding: 6px 16px 8px;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
}
/* 系列页签：可横向滑选的带缩略图分段选择器，白色高亮块丝滑跟随选中项 */
#series-tabs {
  position: relative; display: -webkit-flex; display: flex; margin-bottom: 8px; padding: 3px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  background: #f3e6dd; border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(90, 58, 46, 0.12);
}
#series-tabs.hidden { display: none; }
.st-ind {
  position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 13px;
  background: #fff; box-shadow: 0 2px 0 rgba(84, 55, 44, 0.16), 0 3px 8px rgba(90, 58, 46, 0.1);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(.3, 1.25, .5, 1), width 0.3s ease;
  transition: transform 0.3s cubic-bezier(.3, 1.25, .5, 1), width 0.3s ease;
}
.st-tab {
  position: relative; z-index: 1; -webkit-flex: none; flex: none; min-width: 146px; height: 40px; padding: 0 9px 0 7px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  color: #a3806e; white-space: nowrap; -webkit-transition: color 0.2s; transition: color 0.2s;
}
.st-thumb {
  width: 30px; height: 30px; -webkit-flex: none; flex: none; margin-right: 6px; object-fit: contain;
  opacity: 0.55; -webkit-filter: saturate(0.4); filter: saturate(0.4);
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s; transition: opacity 0.2s, transform 0.2s;
}
.st-txt {
  -webkit-flex: 1; flex: 1; min-width: 0; text-align: left; line-height: 1.15;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
}
.st-tab .st-vol { font-size: 9px; font-weight: 800; opacity: 0.8; }
.st-tab .st-name { font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; }
.st-tab .st-cnt {
  -webkit-flex: none; flex: none; margin-left: 5px; font-size: 10px; font-weight: 900; padding: 0 6px; line-height: 16px;
  border-radius: 8px; background: rgba(140, 102, 82, 0.12); color: #a3806e;
}
.st-tab.on { color: #54372c; }
.st-tab.on .st-thumb { opacity: 1; -webkit-filter: none; filter: none; -webkit-transform: rotate(-6deg) scale(1.08); transform: rotate(-6deg) scale(1.08); }
.st-tab.on.st-dessert .st-vol { color: #ff5c8e; opacity: 1; }
.st-tab.on.st-dream .st-vol { color: #8a63d6; opacity: 1; }
.st-tab.on.st-garden .st-vol { color: #36a46e; opacity: 1; }
.st-tab.on.st-onsen .st-vol { color: #df693f; opacity: 1; }
.st-tab.on.st-cafe .st-vol { color: #9c6034; opacity: 1; }
.st-tab.on.st-park .st-vol { color: #ec4d7e; opacity: 1; }
.st-tab.on.st-space .st-vol { color: #3c82eb; opacity: 1; }
.st-tab.on.st-market .st-vol { color: #dc3c36; opacity: 1; }
.st-tab.on.st-beach .st-vol { color: #179cb0; opacity: 1; }
.st-tab.on.st-magic .st-vol { color: #c77d0e; opacity: 1; }
.st-tab.on .st-cnt { background: #ffe4ee; color: #e8487c; }
.st-tab.on.st-dream .st-cnt { background: #efe7ff; color: #7855cc; }
.st-tab.on.st-garden .st-cnt { background: #e1f8ec; color: #2d9462; }
.st-tab.on.st-onsen .st-cnt { background: #ffece2; color: #d65c32; }
.st-tab.on.st-cafe .st-cnt { background: #f3e6d8; color: #8c5228; }
.st-tab.on.st-park .st-cnt { background: #ffe4ef; color: #df3d70; }
.st-tab.on.st-space .st-cnt { background: #e3f0ff; color: #2b6fd8; }
.st-tab.on.st-market .st-cnt { background: #ffe5e0; color: #cc312a; }
.st-tab.on.st-beach .st-cnt { background: #def7fb; color: #128596; }
.st-tab.on.st-magic .st-cnt { background: #fff0cf; color: #b06c08; }
.st-tab.done .st-cnt { background: #e1f8ec; color: #2b9463; }
/* 左右滑切换系列：盒子区从对应一侧滑入 */
#case-tray { touch-action: pan-y; overflow: hidden; } /* 滑动切换时盒子不越出外框 */
#case-grid.sw-from-r { -webkit-animation: colfromr 0.26s ease-out; animation: colfromr 0.26s ease-out; }
#case-grid.sw-from-l { -webkit-animation: colfroml 0.26s ease-out; animation: colfroml 0.26s ease-out; }

/* 第二～八弹柔和专属主题氛围 */
#app[data-series="mochi_dream"] { background: linear-gradient(180deg, #f3efff 0%, #f8f3ff 46%, #fff8f4 100%); }
#app[data-series="mochi_dream"] .s-vol { background: #9272df; }
#app[data-series="mochi_dream"] .s-vibe { background: #efe7ff; color: #6e4bc2; }
#app[data-series="mochi_dream"] #series-tabs { background: #ece4fb; }
#app[data-series="mochi_dream"] #case-tray { border-color: rgba(196, 178, 232, 0.85); box-shadow: 0 12px 30px rgba(114, 86, 178, 0.11), inset 0 2px 0 #fff; }

#app[data-series="mochi_garden"] { background: linear-gradient(180deg, #eefbf3 0%, #f5fdf7 46%, #fffaf2 100%); }
#app[data-series="mochi_garden"] .s-vol { background: #46b57e; }
#app[data-series="mochi_garden"] .s-vibe { background: #dff7ea; color: #268255; }
#app[data-series="mochi_garden"] #series-tabs { background: #e0f3e8; }
#app[data-series="mochi_garden"] #case-tray { border-color: rgba(168, 218, 190, 0.85); box-shadow: 0 12px 30px rgba(68, 154, 108, 0.1), inset 0 2px 0 #fff; }

#app[data-series="mochi_onsen"] { background: linear-gradient(180deg, #fff3ea 0%, #fff7f1 46%, #fffaf5 100%); }
#app[data-series="mochi_onsen"] .s-vol { background: #e8774e; }
#app[data-series="mochi_onsen"] .s-vibe { background: #ffeae0; color: #c45229; }
#app[data-series="mochi_onsen"] #series-tabs { background: #f6e4d8; }
#app[data-series="mochi_onsen"] #case-tray { border-color: rgba(235, 194, 168, 0.85); box-shadow: 0 12px 30px rgba(188, 112, 74, 0.1), inset 0 2px 0 #fff; }

#app[data-series="mochi_cafe"] { background: linear-gradient(180deg, #f6eee4 0%, #faf4ec 46%, #fffaf4 100%); }
#app[data-series="mochi_cafe"] .s-vol { background: #a86b3e; }
#app[data-series="mochi_cafe"] .s-vibe { background: #f1e3d4; color: #834d25; }
#app[data-series="mochi_cafe"] #series-tabs { background: #ece0d3; }
#app[data-series="mochi_cafe"] #case-tray { border-color: rgba(212, 186, 160, 0.85); box-shadow: 0 12px 30px rgba(140, 96, 58, 0.1), inset 0 2px 0 #fff; }

#app[data-series="mochi_park"] { background: linear-gradient(180deg, #fff0f6 0%, #f4f9ff 48%, #fffaf5 100%); }
#app[data-series="mochi_park"] .s-vol { background: #f25e8b; }
#app[data-series="mochi_park"] .s-vibe { background: #ffe3ee; color: #cf3869; }
#app[data-series="mochi_park"] #series-tabs { background: #f6e1eb; }
#app[data-series="mochi_park"] #case-tray { border-color: rgba(235, 192, 212, 0.85); box-shadow: 0 12px 30px rgba(214, 96, 140, 0.1), inset 0 2px 0 #fff; }

#app[data-series="mochi_space"] { background: linear-gradient(180deg, #eaf4ff 0%, #f3f7ff 48%, #fff9f8 100%); }
#app[data-series="mochi_space"] .s-vol { background: #4a8df2; }
#app[data-series="mochi_space"] .s-vibe { background: #e1eeff; color: #2865c4; }
#app[data-series="mochi_space"] #series-tabs { background: #dfebfa; }
#app[data-series="mochi_space"] #case-tray { border-color: rgba(176, 206, 242, 0.85); box-shadow: 0 12px 30px rgba(72, 126, 204, 0.11), inset 0 2px 0 #fff; }

#app[data-series="mochi_market"] { background: linear-gradient(180deg, #fff1eb 0%, #fff8ea 48%, #fffaf5 100%); }
#app[data-series="mochi_market"] .s-vol { background: #e54942; }
#app[data-series="mochi_market"] .s-vibe { background: #ffe4de; color: #c42f28; }
#app[data-series="mochi_market"] #series-tabs { background: #f7dfd8; }
#app[data-series="mochi_market"] #case-tray { border-color: rgba(236, 186, 170, 0.85); box-shadow: 0 12px 30px rgba(204, 82, 68, 0.11), inset 0 2px 0 #fff; }

#app[data-series="mochi_beach"] { background: linear-gradient(180deg, #e7fbff 0%, #f2fdff 46%, #fff8ee 100%); }
#app[data-series="mochi_beach"] .s-vol { background: #1fb6c9; }
#app[data-series="mochi_beach"] .s-vibe { background: #daf6fb; color: #128596; }
#app[data-series="mochi_beach"] #series-tabs { background: #dcf3f7; }
#app[data-series="mochi_beach"] #case-tray { border-color: rgba(154, 218, 228, 0.88); box-shadow: 0 12px 30px rgba(31, 166, 186, 0.11), inset 0 2px 0 #fff; }

#app[data-series="mochi_magic"] { background: linear-gradient(180deg, #fff7e0 0%, #fffaf0 48%, #fff3f8 100%); }
#app[data-series="mochi_magic"] .s-vol { background: #d99018; }
#app[data-series="mochi_magic"] .s-vibe { background: #ffefc9; color: #ad6906; }
#app[data-series="mochi_magic"] #series-tabs { background: #f6ead1; }
#app[data-series="mochi_magic"] #case-tray { border-color: rgba(235, 204, 146, 0.9); box-shadow: 0 12px 30px rgba(206, 142, 30, 0.12), inset 0 2px 0 #fff; }
#series-head {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin-bottom: 10px;
}
/* 标题分两层：上面「第一弹 + 主题 + 公示」小字，下面系列名，各自不折行 */
.series-title {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: flex-start; align-items: flex-start;
  -webkit-flex: 1; flex: 1; min-width: 0; padding: 0; margin-right: 8px; text-align: left;
}
.s-sub {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  white-space: nowrap; margin-bottom: 2px;
}
.s-vol {
  font-size: 10px; font-weight: 900; color: #fff; background: #ff7ba2; line-height: 14px;
  border-radius: 7px; padding: 1px 6px; margin-right: 5px;
}
.s-vibe {
  font-size: 10px; font-weight: 800; color: #d84b7d; background: #ffe5ef; line-height: 14px;
  border-radius: 7px; padding: 1px 6px; margin-right: 6px;
}
.s-vibe:empty { display: none; }
.s-name {
  display: block; max-width: 100%; font-size: 17px; font-weight: 900; line-height: 22px;
  color: #54372c; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-more { font-size: 11px; font-weight: 800; color: #a87f6d; }
.s-more i { font-size: 9px; }
#case-actions { margin-left: auto; -webkit-flex: none; flex: none; display: -webkit-flex; display: flex; }
@media (max-width: 359px) {
  .s-vol, .s-vibe { padding: 1px 5px; margin-right: 4px; font-size: 9.5px; }
  .s-name { font-size: 15px; }
  .ghost-btn { padding: 4px 8px; margin-left: 4px; }
}
.ghost-btn {
  background: rgba(255, 255, 255, 0.9); border: 1.5px solid #d9bcb0; border-radius: 12px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; color: #755344; margin-left: 6px; white-space: nowrap;
}
.ghost-btn.accent { background: #fff0c2; border-color: #e6ba55; color: #8a5600; }
.ghost-btn.off { opacity: 0.45; }
.ghost-btn:active { -webkit-transform: scale(0.95); transform: scale(0.95); }

#case-meta {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin-bottom: 10px;
}
#case-title { font-size: 12px; font-weight: 800; color: #9c7563; }
#wish-mini { margin-left: auto; display: -webkit-flex; display: flex; }
.mini-tag {
  font-size: 11px; font-weight: 800; border-radius: 11px; padding: 3px 8px; margin-left: 6px;
  max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.mini-tag i { font-size: 10px; margin-right: 4px; -webkit-flex: none; flex: none; }
.mini-tag span { overflow: hidden; text-overflow: ellipsis; }
.mini-tag.wish { background: #fff3cf; color: #915c0c; }
.mini-tag.avoid { background: #f3e8ff; color: #6c449b; }
.mini-tag:active { opacity: 0.75; }

#case-tray {
  -webkit-flex: 1; flex: 1; min-height: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(226, 198, 184, 0.85); border-radius: 26px; padding: 12px;
  box-shadow: 0 12px 30px rgba(154, 102, 82, 0.09), inset 0 2px 0 #fff;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
#case-grid {
  width: 100%; height: 100%;
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-content: space-between; align-content: space-between;
}
.slot {
  position: relative; width: 31.6%; height: 48%;
  background: #fffdfb; border: 2px solid #f0dfd5; border-radius: 18px;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 14px 4px 16px;
  -webkit-transition: border-color 0.15s, box-shadow 0.18s, background-color 0.15s;
  transition: border-color 0.15s, box-shadow 0.18s, background-color 0.15s;
}
/* 选中不位移、不缩放、边框粗细不变，只换颜色和光晕，避免画面晃动 */
.slot.selected {
  background: #fff8eb; border-color: #ff6b98; border-style: solid;
  box-shadow: inset 0 0 0 1px #ff6b98, 0 6px 16px rgba(255, 107, 152, 0.22);
}
.slot.opened {
  background: rgba(250, 241, 236, 0.55); border-style: dashed; border-color: #e4cfc3;
}
.slot.tier-R { border-color: #79d2a6; background: #f3fdf8; }
.slot.tier-SR { border-color: #6ab5ff; background: #eff7ff; }
.slot.tier-SSR { border-color: #ff6b8b; background: #fff1f4; box-shadow: 0 4px 14px rgba(255, 59, 107, 0.18); }
.slot.tier-UR { border-color: #f59e0b; background: linear-gradient(145deg, #fffbe2, #ffebb3); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28); }
.slot.peeked { border-style: solid; border-width: 2.5px; }
/* 已拆开 / 已透视的格子被选中：整圈换成粉色实线 + 外发光，不叠内圈描边（否则虚线和实线会同时出现） */
.slot.opened.selected, .slot.peeked.selected {
  border-style: solid; border-color: #ff6b98;
  box-shadow: 0 6px 16px rgba(255, 107, 152, 0.26);
}
.slot .s-no {
  position: absolute; left: 7px; top: 6px; font-size: 10px; font-weight: 900;
  color: #ad8a79;
}
.slot.selected .s-no { color: #ff5c8e; }
.slot .s-gold {
  position: absolute; right: 6px; top: 5px; font-size: 9px; font-weight: 900;
  color: #8f5800; background: #ffe285; border-radius: 7px; padding: 1px 5px;
}
.slot .s-peek-badge {
  position: absolute; right: 6px; top: 5px; font-size: 9px; font-weight: 900;
  color: #fff; background: #8f5fd6; border-radius: 7px; padding: 1px 5px;
}
.slot .s-rbadge {
  position: absolute; right: 5px; top: 5px; font-size: 9px; font-weight: 900;
  color: #fff; border-radius: 6px; padding: 1px 5px; letter-spacing: 0.3px;
}
.slot .s-img { width: 82%; height: 82%; max-width: 102px; max-height: 102px; }
.slot.gold-look .s-img img { -webkit-filter: drop-shadow(0 0 8px #ffd45e); filter: drop-shadow(0 0 8px #ffd45e); }
.slot.opened .s-img { width: 74%; height: 74%; opacity: 0.92; }
.slot.shaking .s-img { -webkit-animation: boxshake 0.44s ease-in-out; animation: boxshake 0.44s ease-in-out; }
.slot.weighing .s-img { -webkit-animation: boxweigh 0.44s ease-in-out; animation: boxweigh 0.44s ease-in-out; }
.slot .s-tags {
  position: absolute; left: 4px; right: 4px; bottom: 5px;
  display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center;
  overflow: hidden;
}
.s-tag {
  font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 7px;
  white-space: nowrap; color: #6e4e3d; background: #f5e6dc; margin: 0 1px;
}
.s-tag.w { background: #ffe5b8; color: #824d09; }
.s-tag.sh { background: #ddf5e8; color: #266c49; }
.s-tag.ex { background: #efe4ff; color: #603b96; }
.s-tag.peek { background: #8f5fd6; color: #fff; }
.s-tag.danger { background: #ff4f72; color: #fff; }
.s-tag.done { background: transparent; color: #9a7766; }

#clue-bar {
  margin-top: 10px; min-height: 28px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #7e5a48; text-align: center;
  background: rgba(255, 255, 255, 0.72); border-radius: 14px; padding: 5px 12px;
  white-space: nowrap; overflow: hidden;
}
#clue-bar.hot { background: #fff2cc; color: #965700; }
#clue-bar.danger { background: #ffe6ec; color: #d62d54; }
/* 线索里每一款的稀有度颜色 */
#clue-bar .cl-c { font-weight: 900; }
#clue-bar .c-R { color: #2e9a68; }
#clue-bar .c-SR { color: #2563eb; }
#clue-bar .c-SSR { color: #e8335d; }
#clue-bar .c-UR { color: #d98200; }

/* ---------- 极简底部操作区 ---------- */
#dock {
  position: relative; z-index: 5; -webkit-flex: none; flex: none;
  padding: 6px 16px 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
#tool-bar {
  display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
  margin-bottom: 10px;
}
.tool-btn {
  position: relative; width: 23.6%; background: #fff; border: 2px solid #54372c; border-radius: 14px;
  padding: 8px 2px; font-size: 11px; font-weight: 900; text-align: center;
  box-shadow: 0 2px 0 #54372c; white-space: nowrap;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.tb-free {
  position: absolute; top: -8px; right: 4px; font-style: normal;
  font-size: 8.5px; font-weight: 900; line-height: 13px; padding: 0 4px; border-radius: 6px;
  background: #dff8ea; color: #208050; border: 1.5px solid #54372c; pointer-events: none;
}
.tool-btn.guide-pulse {
  -webkit-animation: guidepulse 1.5s ease-in-out infinite;
  animation: guidepulse 1.5s ease-in-out infinite;
}
.open-cta.guide-pulse {
  -webkit-animation: guidepulsecta 1.5s ease-in-out infinite;
  animation: guidepulsecta 1.5s ease-in-out infinite;
}
@-webkit-keyframes guidepulse {
  0%, 100% { box-shadow: 0 2px 0 #54372c, 0 0 0 0 rgba(255, 114, 158, 0.72); }
  55% { box-shadow: 0 2px 0 #54372c, 0 0 0 8px rgba(255, 114, 158, 0); }
}
@keyframes guidepulse {
  0%, 100% { box-shadow: 0 2px 0 #54372c, 0 0 0 0 rgba(255, 114, 158, 0.72); }
  55% { box-shadow: 0 2px 0 #54372c, 0 0 0 8px rgba(255, 114, 158, 0); }
}
@-webkit-keyframes guidepulsecta {
  0%, 100% { box-shadow: 0 4px 0 #54372c, 0 0 0 0 rgba(255, 114, 158, 0.78); }
  55% { box-shadow: 0 4px 0 #54372c, 0 0 0 9px rgba(255, 114, 158, 0); }
}
@keyframes guidepulsecta {
  0%, 100% { box-shadow: 0 4px 0 #54372c, 0 0 0 0 rgba(255, 114, 158, 0.78); }
  55% { box-shadow: 0 4px 0 #54372c, 0 0 0 9px rgba(255, 114, 158, 0); }
}
.tool-btn i { font-size: 12px; margin-right: 4px; color: #f07298; }
.tool-btn b { color: #ff5c8e; margin-left: 3px; }
.tool-btn.peek { background: #f6eeff; color: #623799; }
.tool-btn.peek i { color: #8f5fd6; }
.tool-btn.peek b { color: #8f5fd6; }
.tool-btn.off { opacity: 0.42; }
.tool-btn:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: none; }

/* 拆盒按钮左边的委托方块：和拆盒按钮等高，上面图标+字、下面进度 */
#cta-row { display: -webkit-flex; display: flex; -webkit-align-items: stretch; align-items: stretch; }
.order-side {
  position: relative; -webkit-flex: none; flex: none; width: 54px; margin-right: 7px;
  background: #fff; border: 2.5px solid #54372c; border-radius: 18px; box-shadow: 0 4px 0 #54372c;
  color: #54372c; line-height: 1.1; padding: 0;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
#order-ico { font-size: 13px; color: #f07298; }
#order-txt { margin-top: 2px; font-size: 11px; font-weight: 900; }
#order-sub { margin-top: 1px; font-size: 10px; font-weight: 900; color: #ff5c8e; }
.order-side:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: none; }
.order-side.dot::after {
  content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px;
  border-radius: 50%; background: #ff4f72; border: 2px solid #fff;
}
.order-side.gift {
  background: #6cc596; color: #fff;
  -webkit-animation: wiggle 0.9s infinite; animation: wiggle 0.9s infinite;
}
.order-side.gift #order-ico, .order-side.gift #order-sub { color: #fff; }
.open-cta {
  -webkit-flex: 1; flex: 1; min-width: 0; background: linear-gradient(180deg, #ff8bb0 0%, #f55f8f 100%); color: #fff;
  border: 2.5px solid #54372c; border-radius: 20px; padding: 12px 16px;
  box-shadow: 0 4px 0 #54372c, 0 8px 20px rgba(245, 95, 143, 0.28);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
#act-open-ico { font-size: 15px; margin-right: 7px; }
#act-open-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px; font-weight: 900; letter-spacing: 0.3px;
}
@media (max-width: 374px) {
  .order-side { width: 52px; margin-right: 6px; }
  .open-cta { padding-left: 10px; padding-right: 10px; }
  #act-open-txt { font-size: 14px; letter-spacing: 0; }
  #act-open-ico { margin-right: 5px; }
  #act-open-sub { margin-left: 5px; }
}
#act-open-ico, #act-open-sub { -webkit-flex: none; flex: none; }
#act-open-sub {
  margin-left: 8px; font-size: 12px; font-weight: 900;
  background: rgba(255, 255, 255, 0.24); padding: 2px 9px; border-radius: 10px;
}
.open-cta.subsidy {
  background: linear-gradient(180deg, #7cd4a6 0%, #52b783 100%);
  box-shadow: 0 4px 0 #54372c, 0 8px 20px rgba(82, 183, 131, 0.28);
  -webkit-animation: bump 1.2s infinite; animation: bump 1.2s infinite;
}
.open-cta.off { background: #dfd1c8; color: #8c7669; box-shadow: 0 3px 0 #54372c; }
.open-cta:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: none; }

#mode-badge {
  position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 9px; opacity: 0.55;
  pointer-events: none; padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 全屏高燃聚光灯拆盒舞台 ---------- */
#unbox {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 35;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  overflow: hidden;
}
#unbox-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 44%, #4f2c3f 0%, #241320 64%, #120810 100%);
  -webkit-transition: background 0.45s ease; transition: background 0.45s ease;
}
#unbox.tier-R #unbox-bg {
  background: radial-gradient(circle at 50% 42%, #1d5742 0%, #0f2f24 58%, #071611 100%);
}
#unbox.tier-SR #unbox-bg {
  background: radial-gradient(circle at 50% 42%, #184b86 0%, #0d264a 58%, #061224 100%);
}
#unbox.tier-SSR #unbox-bg {
  background: radial-gradient(circle at 50% 42%, #9e1b44 0%, #4d0c21 58%, #21040d 100%);
}
#unbox.tier-UR #unbox-bg {
  background: radial-gradient(circle at 50% 42%, #855210 0%, #3d2006 56%, #170a01 100%);
}
#unbox.tier-avoid #unbox-bg {
  background: radial-gradient(circle at 50% 42%, #3d245e 0%, #1c102e 60%, #0b0614 100%);
}

/* 双层反向旋转圣光光轮（按四档稀有度变色） */
#unbox-rays, #unbox-rays-2 {
  position: absolute; left: 50%; top: 44%; width: 160vmax; height: 160vmax;
  margin: -80vmax 0 0 -80vmax; pointer-events: none; opacity: 0.22;
  background: repeating-conic-gradient(from 0deg, rgba(255, 224, 178, 0.55) 0deg 10deg, transparent 10deg 26deg);
  -webkit-animation: spin 18s linear infinite; animation: spin 18s linear infinite;
  -webkit-transition: opacity 0.35s; transition: opacity 0.35s;
}
#unbox-rays-2 {
  opacity: 0.14;
  background: repeating-conic-gradient(from 12deg, rgba(255, 165, 205, 0.5) 0deg 8deg, transparent 8deg 24deg);
  -webkit-animation: spinrev 26s linear infinite; animation: spinrev 26s linear infinite;
}
#unbox.phase-reveal #unbox-rays { opacity: 0.45; }
#unbox.phase-reveal #unbox-rays-2 { opacity: 0.3; }
#unbox.tier-R #unbox-rays { background: repeating-conic-gradient(from 0deg, rgba(110, 231, 183, 0.55) 0deg 10deg, transparent 10deg 26deg); }
#unbox.tier-SR #unbox-rays { background: repeating-conic-gradient(from 0deg, rgba(96, 185, 255, 0.65) 0deg 9deg, transparent 9deg 24deg); -webkit-animation-duration: 14s; animation-duration: 14s; }
#unbox.tier-SSR #unbox-rays { opacity: 0.58; background: repeating-conic-gradient(from 0deg, rgba(255, 112, 145, 0.72) 0deg 9deg, transparent 9deg 22deg); -webkit-animation-duration: 12s; animation-duration: 12s; }
#unbox.tier-SSR #unbox-rays-2 { opacity: 0.36; background: repeating-conic-gradient(from 10deg, rgba(255, 178, 130, 0.62) 0deg 7deg, transparent 7deg 20deg); -webkit-animation-duration: 17s; animation-duration: 17s; }
#unbox.tier-UR #unbox-rays {
  opacity: 0.72;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 92, 0.82) 0deg 9deg, transparent 9deg 22deg);
  -webkit-animation-duration: 9s; animation-duration: 9s;
}
#unbox.tier-UR #unbox-rays-2 {
  opacity: 0.46;
  background: repeating-conic-gradient(from 10deg, rgba(255, 245, 175, 0.72) 0deg 6deg, transparent 6deg 20deg);
  -webkit-animation-duration: 14s; animation-duration: 14s;
}

#unbox-wrap {
  position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 20px 18px;
  text-align: center; color: #fff; will-change: transform;
}
#unbox-step {
  display: inline-block; font-size: 13px; font-weight: 900; color: #fff;
  background: rgba(255, 118, 160, 0.92); border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px; padding: 4px 16px; letter-spacing: 0.6px;
  box-shadow: 0 4px 18px rgba(255, 100, 150, 0.45);
}
#unbox.tier-R #unbox-step { background: #3eb47e; box-shadow: 0 4px 18px rgba(62, 180, 126, 0.5); }
#unbox.tier-SR #unbox-step { background: linear-gradient(90deg, #3395ff, #2563eb); box-shadow: 0 4px 20px rgba(51, 149, 255, 0.55); }
#unbox.tier-SSR #unbox-step { background: linear-gradient(90deg, #ff3366, #ff6b4a); box-shadow: 0 0 24px rgba(255, 59, 107, 0.78); }
#unbox.tier-UR #unbox-step {
  background: linear-gradient(90deg, #ffb92e 0%, #ffe680 50%, #ff9b21 100%);
  color: #542d00; border-color: #fff8d6;
  box-shadow: 0 0 26px rgba(255, 210, 70, 0.9);
}
#unbox.tier-avoid #unbox-step {
  background: linear-gradient(90deg, #8b56d6 0%, #ff4f7e 100%);
}
#unbox-hint {
  font-size: 13px; font-weight: 700; color: rgba(255, 244, 238, 0.88);
  margin: 10px 0 8px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
#unbox-stage {
  position: relative; width: 100%; height: 290px; margin: 4px auto;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  touch-action: none;
}
#unbox-target {
  position: relative; width: 224px; height: 224px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
#unbox-trail {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none;
}

/* 舞台中央大盲盒 */
.u-box {
  position: relative; width: 214px; height: 214px;
  -webkit-animation: boxenter 0.42s cubic-bezier(.18, 1.55, .45, 1);
  animation: boxenter 0.42s cubic-bezier(.18, 1.55, .45, 1);
}
.u-box .sprite { width: 100%; height: 100%; }
.u-box .sprite img { -webkit-filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45)); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45)); }
.u-box.hit { -webkit-animation: hit 0.16s; animation: hit 0.16s; }
.u-box.blast-out { -webkit-animation: boxblast 0.24s ease-in forwards; animation: boxblast 0.24s ease-in forwards; }
.u-tape {
  position: absolute; left: 18%; right: 16%; top: 39%; height: 0; pointer-events: none; /* 对齐盒盖和盒身的接缝 */
  border-top: 5px dashed #ffffff;
  -webkit-filter: drop-shadow(0 0 8px rgba(255, 224, 130, 0.95)) drop-shadow(0 1.5px 0 #54372c);
  filter: drop-shadow(0 0 8px rgba(255, 224, 130, 0.95)) drop-shadow(0 1.5px 0 #54372c);
  -webkit-animation: tapepulse 1s ease-in-out infinite; animation: tapepulse 1s ease-in-out infinite;
}
.u-tape .tape-ico { position: absolute; left: -22px; top: -13px; font-size: 18px; color: #ffe68a; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }

/* 铝箔盲袋 + 出金进化特效 */
.u-bag-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 18px; margin-left: -60px; z-index: 1;
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
  -webkit-animation: bagshadow 2.8s 0.42s ease-in-out infinite; animation: bagshadow 2.8s 0.42s ease-in-out infinite;
}
.u-bag-stage { position: relative; width: 224px; height: 224px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.u-bag {
  position: relative; z-index: 2; width: 150px; height: 204px;
  -webkit-filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(255, 165, 210, 0.55));
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(255, 165, 210, 0.55));
  -webkit-animation: bagenter 0.42s cubic-bezier(.18, 1.5, .45, 1), bagfloat 2.8s 0.42s ease-in-out infinite;
  animation: bagenter 0.42s cubic-bezier(.18, 1.5, .45, 1), bagfloat 2.8s 0.42s ease-in-out infinite;
  margin-top: -14px;
}
.u-bag.crimson {
  -webkit-filter: drop-shadow(0 0 18px rgba(255, 65, 112, 0.95)) drop-shadow(0 0 36px rgba(255, 110, 70, 0.6));
  filter: drop-shadow(0 0 18px rgba(255, 65, 112, 0.95)) drop-shadow(0 0 36px rgba(255, 110, 70, 0.6));
}
.u-bag.gold {
  -webkit-filter: drop-shadow(0 0 20px rgba(255, 214, 70, 0.95)) drop-shadow(0 0 40px rgba(255, 150, 50, 0.6));
  filter: drop-shadow(0 0 20px rgba(255, 214, 70, 0.95)) drop-shadow(0 0 40px rgba(255, 150, 50, 0.6));
}
.u-bag.evolve { -webkit-animation: evolve 0.55s ease-out; animation: evolve 0.55s ease-out; }
.u-bag.charging { -webkit-animation: charge 0.16s ease-in forwards; animation: charge 0.16s ease-in forwards; }
/* 袋身：金属箔竖向拉丝 + 斜向高光 */
.bag-body {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.16) 2px, rgba(255, 255, 255, 0) 5px),
    linear-gradient(115deg, #f7c6dd 0%, #fff0f7 22%, #f19bc4 46%, #ffd9ec 64%, #c7a6f5 100%);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding-top: 4px;
}
.u-bag.crimson .bag-body {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.16) 2px, rgba(255, 255, 255, 0) 5px),
    linear-gradient(115deg, #ff9db3 0%, #ffe0e7 22%, #ff4778 48%, #ffb08a 66%, #ff6b45 100%);
}
.u-bag.gold .bag-body {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.18) 2px, rgba(255, 255, 255, 0) 5px),
    linear-gradient(115deg, #ffd86b 0%, #fffbe0 22%, #ffbf2e 46%, #fff1a8 64%, #ff9933 100%);
}
.bag-body::after {
  content: ""; position: absolute; left: -60%; top: -20%; width: 50%; height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  -webkit-transform: rotate(22deg); transform: rotate(22deg);
  -webkit-animation: sheen 1.8s ease-in-out infinite; animation: sheen 1.8s ease-in-out infinite;
}
/* 上下热封压纹 */
/* 袋身鼓起的明暗：两侧和靠近封边处变暗，左上一大块柔光，像充气的小枕头 */
.bag-shade {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 36% 40%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 20% 12% at 70% 74%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(70, 20, 55, 0.42) 0%, rgba(70, 20, 55, 0.12) 12%, rgba(70, 20, 55, 0) 28%, rgba(70, 20, 55, 0) 66%, rgba(70, 20, 55, 0.16) 84%, rgba(70, 20, 55, 0.5) 100%),
    linear-gradient(180deg, rgba(70, 20, 55, 0) 28px, rgba(70, 20, 55, 0.34) 29px, rgba(70, 20, 55, 0) 58px, rgba(70, 20, 55, 0) 146px, rgba(70, 20, 55, 0.36) 175px, rgba(70, 20, 55, 0) 176px);
}
/* 封边压扁不鼓：平涂 + 压纹，和袋身交界处有一道折痕阴影 */
.bag-seal {
  position: absolute; left: 0; right: 0; height: 28px; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(84, 55, 44, 0.18) 0, rgba(84, 55, 44, 0.18) 1.5px, rgba(255, 255, 255, 0.4) 1.5px, rgba(255, 255, 255, 0.4) 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.1));
}
.bag-seal.top { top: 0; box-shadow: 0 3px 4px rgba(70, 20, 55, 0.3); }
.bag-seal.bottom { bottom: 0; box-shadow: 0 -3px 4px rgba(70, 20, 55, 0.3); }
/* 撕开线 + 来回划的手指 */
.bag-tear {
  position: absolute; left: 12px; right: 12px; top: 14px; height: 0; z-index: 3;
  border-top: 3px dashed #ffffff;
  -webkit-filter: drop-shadow(0 1px 0 rgba(84, 55, 44, 0.6)); filter: drop-shadow(0 1px 0 rgba(84, 55, 44, 0.6));
}
.bag-finger {
  position: absolute; left: 0; top: -4px; font-size: 22px; color: #fff;
  text-shadow: 0 2px 4px rgba(84, 55, 44, 0.7);
  -webkit-animation: tearswipe 1.4s ease-in-out infinite; animation: tearswipe 1.4s ease-in-out infinite;
}
.bag-brand {
  position: relative; z-index: 2; font-size: 10px; font-weight: 900; color: #fff; letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(90, 40, 60, 0.6); margin-bottom: 6px;
}
.bag-mark {
  position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: 3px solid #54372c;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  font-size: 32px; color: #f06a8f; box-shadow: 0 4px 0 rgba(84, 55, 44, 0.35);
}
.u-bag.gold .bag-mark { color: #e08a00; }
.u-bag.crimson .bag-mark { color: #e0244f; }
.bag-txt {
  position: relative; z-index: 2; font-size: 12px; font-weight: 900; color: #54372c; margin-top: 10px;
  background: rgba(255, 255, 255, 0.92); padding: 3px 12px; border-radius: 12px; white-space: nowrap;
}
@-webkit-keyframes bagfloat {
  0%, 100% { -webkit-transform: translateY(0); }
  50% { -webkit-transform: translateY(-6px); }
}
@keyframes bagfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@-webkit-keyframes bagshadow {
  0%, 100% { -webkit-transform: scale(1); opacity: 1; }
  50% { -webkit-transform: scale(0.86); opacity: 0.7; }
}
@keyframes bagshadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.86); opacity: 0.7; }
}
@-webkit-keyframes tearswipe {
  0% { -webkit-transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  75% { -webkit-transform: translateX(100px); opacity: 1; }
  100% { -webkit-transform: translateX(110px); opacity: 0; }
}
@keyframes tearswipe {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  75% { transform: translateX(100px); opacity: 1; }
  100% { transform: translateX(110px); opacity: 0; }
}

/* 聚光灯出货区 */
.u-halo {
  position: relative; width: 220px; height: 220px; margin: 6px auto 8px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.u-halo::before {
  content: ""; position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 198, 222, 0.42) 52%, transparent 74%);
  -webkit-animation: halopulse 1.8s ease-in-out infinite; animation: halopulse 1.8s ease-in-out infinite;
}
#unbox.tier-R .u-halo::before {
  background: radial-gradient(circle, rgba(220, 255, 238, 0.9) 0%, rgba(62, 180, 126, 0.45) 54%, transparent 76%);
}
#unbox.tier-SR .u-halo::before {
  background: radial-gradient(circle, rgba(220, 240, 255, 0.95) 0%, rgba(51, 149, 255, 0.55) 54%, transparent 76%);
}
#unbox.tier-SSR .u-halo::before {
  background: radial-gradient(circle, rgba(255, 228, 234, 0.96) 0%, rgba(255, 65, 115, 0.65) 54%, transparent 76%);
}
#unbox.tier-UR .u-halo::before {
  background: radial-gradient(circle, rgba(255, 252, 210, 0.98) 0%, rgba(255, 200, 60, 0.68) 54%, transparent 78%);
}
.u-reveal-img {
  position: relative; z-index: 2; width: 210px; height: 210px;
  -webkit-animation: heroReveal 0.56s cubic-bezier(.16, 1.62, .38, 1);
  animation: heroReveal 0.56s cubic-bezier(.16, 1.62, .38, 1);
}
.u-reveal-img img { -webkit-filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.48)); filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.48)); }

.u-rarity-pill {
  display: inline-block; font-size: 15px; font-weight: 900; padding: 5px 18px;
  border-radius: 18px; margin-bottom: 6px; color: #fff; letter-spacing: 0.8px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  -webkit-animation: stampdrop 0.36s cubic-bezier(.18, 1.5, .45, 1); animation: stampdrop 0.36s cubic-bezier(.18, 1.5, .45, 1);
}
.u-rarity-pill.r-R { background: #3eb47e; box-shadow: 0 0 18px rgba(62, 180, 126, 0.65); }
.u-rarity-pill.r-SR { background: linear-gradient(90deg, #3ba4ff, #2563eb); box-shadow: 0 0 22px rgba(59, 164, 255, 0.75); }
.u-rarity-pill.r-SSR { background: linear-gradient(90deg, #ff2e63, #ff6b4a); box-shadow: 0 0 26px rgba(255, 59, 107, 0.85); }
.u-rarity-pill.r-UR {
  background: linear-gradient(90deg, #ff9900, #ffe680, #ff9900); color: #542800; border-color: #fffbe0;
  box-shadow: 0 0 30px rgba(255, 210, 70, 0.95);
}
.u-sub-banner {
  display: block; font-size: 12px; font-weight: 800; color: rgba(255, 245, 235, 0.92); margin-bottom: 2px;
}

.u-name {
  font-size: 26px; font-weight: 900; margin: 2px 0; color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}
#unbox.tier-SR .u-name { color: #b8e1ff; }
#unbox.tier-SSR .u-name { color: #ffd4de; text-shadow: 0 0 16px rgba(255, 65, 115, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6); }
#unbox.tier-UR .u-name { color: #ffe785; text-shadow: 0 0 18px rgba(255, 195, 45, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6); }
.u-meta { font-size: 12px; font-weight: 800; color: rgba(255, 236, 224, 0.85); margin-bottom: 4px; }
.u-quip { font-size: 13px; color: rgba(255, 250, 245, 0.92); margin: 4px 0 6px; }
.u-fortune {
  display: inline-block; max-width: 92%; margin: 0 auto 8px; padding: 5px 12px;
  border-radius: 12px; font-size: 12px; font-weight: 800; line-height: 1.45;
  color: #fff6d9; background: rgba(255, 214, 128, 0.16);
  border: 1px dashed rgba(255, 224, 152, 0.55);
}
.u-feel {
  font-size: 11px; color: #ffeeda; background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px;
  padding: 6px 12px; display: inline-block; max-width: 92%;
}
#unbox-actions {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-justify-content: center; justify-content: center; margin-top: 16px;
}
#unbox-actions .u-break { -webkit-flex-basis: 100%; flex-basis: 100%; height: 0; }
#unbox-actions .btn {
  background: rgba(255, 255, 255, 0.95); color: #54372c;
}
#unbox-actions .btn.main {
  background: linear-gradient(180deg, #ff8cb0 0%, #f25587 100%); color: #fff;
  box-shadow: 0 3px 0 #54372c, 0 6px 18px rgba(242, 85, 135, 0.5);
}
#unbox-actions .btn.gold {
  background: linear-gradient(180deg, #ffe273 0%, #ffba26 100%); color: #542d00;
  box-shadow: 0 3px 0 #54372c, 0 6px 18px rgba(255, 186, 38, 0.55);
}
#unbox-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35); box-shadow: none;
}

/* ---------- 全屏特效层 ---------- */
.sprite { position: relative; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.sprite img { width: 100%; height: 100%; object-fit: contain; }
.sprite .emoji { font-size: 36px; line-height: 1; }
#fx { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; overflow: hidden; }
#vfx-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.coin-fly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 2; will-change: transform; -webkit-filter: drop-shadow(0 0 5px rgba(255, 220, 110, 0.95)); filter: drop-shadow(0 0 5px rgba(255, 220, 110, 0.95)); }
.num {
  position: absolute; font-size: 20px; font-weight: 900; color: #ffcf45; white-space: nowrap; z-index: 3;
  text-shadow: 0 2px 0 #54372c, 0 -2px 0 #54372c, 2px 0 0 #54372c, -2px 0 0 #54372c, 0 4px 14px rgba(0, 0, 0, 0.45);
  -webkit-animation: floatup 1.05s forwards; animation: floatup 1.05s forwards;
}
.num.big { font-size: 26px; color: #ff7ba6; }
.num.q1 { font-size: 18px; color: #ffd666; }
.num.q2 { font-size: 26px; color: #ff77aa; }
.bubble {
  position: absolute; z-index: 3; max-width: 74vw; background: #fff; border: 2px solid #54372c; border-radius: 14px;
  padding: 6px 11px; font-size: 12px; font-weight: 800; line-height: 1.35; color: #54372c;
  box-shadow: 0 4px 12px rgba(84, 55, 44, 0.16);
  -webkit-animation: bubble 2.2s forwards; animation: bubble 2.2s forwards;
}
.flash-screen {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 232, 165, 0.8) 55%, rgba(255, 210, 120, 0) 100%);
  -webkit-animation: flashbang 0.55s ease-out forwards; animation: flashbang 0.55s ease-out forwards;
}
.flash-screen.avoid {
  background: radial-gradient(circle, rgba(235, 195, 255, 0.85) 0%, rgba(145, 70, 225, 0.55) 60%, transparent 100%);
}

#toast {
  position: fixed; left: 50%; top: 50%; z-index: 65; -webkit-transform: translate(-50%, -50%) scale(0.92); transform: translate(-50%, -50%) scale(0.92);
  background: rgba(58, 36, 28, 0.94); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 18px;
  width: -webkit-max-content; width: max-content; max-width: 86vw; text-align: center; opacity: 0; pointer-events: none;
  -webkit-transition: opacity 0.25s, -webkit-transform 0.25s; transition: opacity 0.25s, transform 0.25s;
}
#toast.show { opacity: 1; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }

/* ---------- 弹窗（隐藏所有滚动条） ---------- */
#modal {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 45; background: rgba(42, 24, 20, 0.62);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.sheet {
  position: relative; width: 90vw; max-width: 440px; max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  background: #fffaf5; border: 3px solid #54372c; border-radius: 24px; padding: 14px;
  -webkit-animation: pop 0.28s cubic-bezier(.2, 1.5, .5, 1); animation: pop 0.28s cubic-bezier(.2, 1.5, .5, 1);
}
.sheet::-webkit-scrollbar, .detail-page::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fa-inline { margin-right: 4px; }
.fa-gold { color: #f0a518; }
.fa-pink { color: #ff5c8e; }
.fa-purple { color: #8f5fd6; }
.fa-danger { color: #ff4f72; }
.fa-mint { color: #52c088; }
#modal-body h2 { margin: 2px 0 6px; font-size: 18px; text-align: center; }
#modal-body p { margin: 5px 0; font-size: 12px; text-align: center; line-height: 1.5; color: #785847; }
.cert-img {
  display: block; width: auto; max-width: 100%; max-height: 58vh; margin: 0 auto;
}
/* 证书立体卡：透视里慢慢摆动，底边几层深棕叠出厚度，斜向高光扫过，地面一块椭圆投影；按住或悬停时朝手指方向翻 */
.cert-3d {
  position: relative; -webkit-perspective: 1000px; perspective: 1000px; padding: 4px 0 18px;
  display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center;
}
.cert-3d::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 16px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(60, 30, 20, 0.4) 0%, rgba(60, 30, 20, 0) 70%);
}
.cert-tilt {
  position: relative; z-index: 1; max-width: 100%; border-radius: 5.9% / 4.3%;
  box-shadow: 0 1px 0 #735141, 0 2px 0 #684839, 0 3px 0 #5d3f32, 0 4px 0 #52372c, 0 5px 0 #472f25,
    0 8px 6px rgba(40, 20, 12, 0.25), 0 20px 26px -10px rgba(40, 20, 12, 0.44);
  -webkit-animation: certsway 6s ease-in-out infinite; animation: certsway 6s ease-in-out infinite;
}
.cert-tilt.aim { -webkit-animation: none; animation: none; -webkit-transition: -webkit-transform 0.12s; transition: transform 0.12s; }
.cert-sheen {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 58%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-animation: certglint 6s ease-in-out infinite; animation: certglint 6s ease-in-out infinite;
}
.cert-tilt.aim .cert-sheen { -webkit-animation: none; animation: none; }
.cert-3d.ssr .cert-sheen {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 34%, rgba(255, 210, 225, 0.55) 46%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%);
}
.cert-3d.ur .cert-sheen {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 236, 150, 0.6) 42%, rgba(255, 190, 225, 0.5) 50%, rgba(170, 232, 255, 0.5) 57%, rgba(255, 255, 255, 0) 68%);
}
@-webkit-keyframes certsway {
  0%, 100% { -webkit-transform: rotateY(-8deg) rotateX(4deg); }
  50% { -webkit-transform: rotateY(8deg) rotateX(2deg); }
}
@keyframes certsway {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg); }
  50% { transform: rotateY(8deg) rotateX(2deg); }
}
@-webkit-keyframes certglint { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes certglint { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.detail-page .cert-img { max-height: 46vh; }
.detail-page .cert-3d { -webkit-flex: none; flex: none; margin: auto 0; }
#modal-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; margin-top: 10px; }
.btn {
  margin: 4px; padding: 9px 15px; border-radius: 16px; font-size: 13px; font-weight: 800;
  background: #fff; border: 2px solid #54372c; box-shadow: 0 3px 0 #54372c;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.btn i { margin-right: 5px; font-size: 12px; }
.btn.main { background: #ff7da5; color: #fff; }
.btn.gold { background: #ffd34d; color: #54372c; }
.btn.off { opacity: 0.48; }
.btn.confirm, #unbox-actions .btn.confirm {
  background: #ff4f72; color: #fff;
  -webkit-animation: wiggle 0.5s; animation: wiggle 0.5s;
}
.btn:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: none; }

.order {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 9px 10px; margin-top: 8px;
}
.order.claimed { opacity: 0.55; }
.o-info { -webkit-flex: 1; flex: 1; min-width: 0; margin-right: 8px; }
.o-text { font-size: 13px; font-weight: 800; }
.o-sub { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.order .progress { margin: 5px 0 2px; height: 7px; }
.o-btn { margin: 0; padding: 7px 11px; font-size: 12px; white-space: nowrap; }

.series-banner {
  background: linear-gradient(135deg, #ffe7ef 0%, #fff3d6 100%);
  border: 2px solid #ecd6c6; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; text-align: center;
}
.series-banner .sb-vol {
  display: inline-block; font-size: 10px; font-weight: 900; color: #fff;
  background: #ff7ba2; border-radius: 10px; padding: 1px 8px; margin-bottom: 4px;
}
.series-banner .sb-name { font-size: 17px; font-weight: 900; }
.series-banner .sb-sub { font-size: 11px; color: #7d5b49; margin-top: 3px; }
.series-banner .sb-story { font-size: 11px; color: #8c6652; line-height: 1.45; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e7cfc0; }
.odds-facts {
  display: -webkit-flex; display: flex; margin-bottom: 10px;
  background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 7px 2px;
}
.of-cell { -webkit-flex: 1; flex: 1; min-width: 0; text-align: center; }
.of-cell + .of-cell { border-left: 1.5px dashed #ecdad0; }
.of-cell b { display: block; font-size: 15px; font-weight: 900; color: #f55f8f; white-space: nowrap; }
.of-cell span { display: block; margin-top: 1px; font-size: 10px; font-weight: 700; color: #8c6652; white-space: nowrap; }
.of-cell.ur b { color: #e08a00; }

/* 四档稀有度图例与卡片色阶 */
.r-R { background: #3eb47e; box-shadow: 0 0 18px rgba(62, 180, 126, 0.65); }
.u-rarity-pill.r-SR { background: linear-gradient(90deg, #3ba4ff, #2563eb); box-shadow: 0 0 22px rgba(59, 164, 255, 0.75); }
.u-rarity-pill.r-SSR { background: linear-gradient(90deg, #ff2e63, #ff6b4a); box-shadow: 0 0 26px rgba(255, 59, 107, 0.85); }
.u-rarity-pill.r-UR {
  background: linear-gradient(90deg, #ff9900, #ffe680, #ff9900); color: #542800; border-color: #fffbe0;
  box-shadow: 0 0 30px rgba(255, 210, 70, 0.95);
}
.u-sub-banner {
  display: block; font-size: 12px; font-weight: 800; color: rgba(255, 245, 235, 0.92); margin-bottom: 2px;
}

.u-name {
  font-size: 26px; font-weight: 900; margin: 2px 0; color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}
#unbox.tier-SR .u-name { color: #b8e1ff; }
#unbox.tier-SSR .u-name { color: #ffd4de; text-shadow: 0 0 16px rgba(255, 65, 115, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6); }
#unbox.tier-UR .u-name { color: #ffe785; text-shadow: 0 0 18px rgba(255, 195, 45, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6); }
.u-meta { font-size: 12px; font-weight: 800; color: rgba(255, 236, 224, 0.85); margin-bottom: 4px; }
.u-quip { font-size: 13px; color: rgba(255, 250, 245, 0.92); margin: 4px 0 6px; }
.u-fortune {
  display: inline-block; max-width: 92%; margin: 0 auto 8px; padding: 5px 12px;
  border-radius: 12px; font-size: 12px; font-weight: 800; line-height: 1.45;
  color: #fff6d9; background: rgba(255, 214, 128, 0.16);
  border: 1px dashed rgba(255, 224, 152, 0.55);
}
.u-feel {
  font-size: 11px; color: #ffeeda; background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px;
  padding: 6px 12px; display: inline-block; max-width: 92%;
}
#unbox-actions {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  -webkit-justify-content: center; justify-content: center; margin-top: 16px;
}
#unbox-actions .u-break { -webkit-flex-basis: 100%; flex-basis: 100%; height: 0; }
#unbox-actions .btn {
  background: rgba(255, 255, 255, 0.95); color: #54372c;
}
#unbox-actions .btn.main {
  background: linear-gradient(180deg, #ff8cb0 0%, #f25587 100%); color: #fff;
  box-shadow: 0 3px 0 #54372c, 0 6px 18px rgba(242, 85, 135, 0.5);
}
#unbox-actions .btn.gold {
  background: linear-gradient(180deg, #ffe273 0%, #ffba26 100%); color: #542d00;
  box-shadow: 0 3px 0 #54372c, 0 6px 18px rgba(255, 186, 38, 0.55);
}
#unbox-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35); box-shadow: none;
}

/* ---------- 全屏特效层 ---------- */
.sprite { position: relative; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
.sprite img { width: 100%; height: 100%; object-fit: contain; }
.sprite .emoji { font-size: 36px; line-height: 1; }
#fx { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; overflow: hidden; }
#vfx-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.coin-fly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 2; will-change: transform; -webkit-filter: drop-shadow(0 0 5px rgba(255, 220, 110, 0.95)); filter: drop-shadow(0 0 5px rgba(255, 220, 110, 0.95)); }
.num {
  position: absolute; font-size: 20px; font-weight: 900; color: #ffcf45; white-space: nowrap; z-index: 3;
  text-shadow: 0 2px 0 #54372c, 0 -2px 0 #54372c, 2px 0 0 #54372c, -2px 0 0 #54372c, 0 4px 14px rgba(0, 0, 0, 0.45);
  -webkit-animation: floatup 1.05s forwards; animation: floatup 1.05s forwards;
}
.num.big { font-size: 26px; color: #ff7ba6; }
.num.q1 { font-size: 18px; color: #ffd666; }
.num.q2 { font-size: 26px; color: #ff77aa; }
.bubble {
  position: absolute; z-index: 3; max-width: 74vw; background: #fff; border: 2px solid #54372c; border-radius: 14px;
  padding: 6px 11px; font-size: 12px; font-weight: 800; line-height: 1.35; color: #54372c;
  box-shadow: 0 4px 12px rgba(84, 55, 44, 0.16);
  -webkit-animation: bubble 2.2s forwards; animation: bubble 2.2s forwards;
}
.flash-screen {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 232, 165, 0.8) 55%, rgba(255, 210, 120, 0) 100%);
  -webkit-animation: flashbang 0.55s ease-out forwards; animation: flashbang 0.55s ease-out forwards;
}
.flash-screen.avoid {
  background: radial-gradient(circle, rgba(235, 195, 255, 0.85) 0%, rgba(145, 70, 225, 0.55) 60%, transparent 100%);
}

#toast {
  position: fixed; left: 50%; top: 50%; z-index: 65; -webkit-transform: translate(-50%, -50%) scale(0.92); transform: translate(-50%, -50%) scale(0.92);
  background: rgba(58, 36, 28, 0.94); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 18px;
  width: -webkit-max-content; width: max-content; max-width: 86vw; text-align: center; opacity: 0; pointer-events: none;
  -webkit-transition: opacity 0.25s, -webkit-transform 0.25s; transition: opacity 0.25s, transform 0.25s;
}
#toast.show { opacity: 1; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }

/* ---------- 弹窗（隐藏所有滚动条） ---------- */
#modal {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 45; background: rgba(42, 24, 20, 0.62);
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.sheet {
  position: relative; width: 90vw; max-width: 440px; max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  background: #fffaf5; border: 3px solid #54372c; border-radius: 24px; padding: 14px;
  -webkit-animation: pop 0.28s cubic-bezier(.2, 1.5, .5, 1); animation: pop 0.28s cubic-bezier(.2, 1.5, .5, 1);
}
.sheet::-webkit-scrollbar, .detail-page::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fa-inline { margin-right: 4px; }
.fa-gold { color: #f0a518; }
.fa-pink { color: #ff5c8e; }
.fa-purple { color: #8f5fd6; }
.fa-danger { color: #ff4f72; }
.fa-mint { color: #52c088; }
#modal-body h2 { margin: 2px 0 6px; font-size: 18px; text-align: center; }
#modal-body p { margin: 5px 0; font-size: 12px; text-align: center; line-height: 1.5; color: #785847; }
.cert-img {
  display: block; width: auto; max-width: 100%; max-height: 58vh; margin: 0 auto;
}
/* 证书立体卡：透视里慢慢摆动，底边几层深棕叠出厚度，斜向高光扫过，地面一块椭圆投影；按住或悬停时朝手指方向翻 */
.cert-3d {
  position: relative; -webkit-perspective: 1000px; perspective: 1000px; padding: 4px 0 18px;
  display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center;
}
.cert-3d::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 0; height: 16px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(60, 30, 20, 0.4) 0%, rgba(60, 30, 20, 0) 70%);
}
.cert-tilt {
  position: relative; z-index: 1; max-width: 100%; border-radius: 5.9% / 4.3%;
  box-shadow: 0 1px 0 #735141, 0 2px 0 #684839, 0 3px 0 #5d3f32, 0 4px 0 #52372c, 0 5px 0 #472f25,
    0 8px 6px rgba(40, 20, 12, 0.25), 0 20px 26px -10px rgba(40, 20, 12, 0.44);
  -webkit-animation: certsway 6s ease-in-out infinite; animation: certsway 6s ease-in-out infinite;
}
.cert-tilt.aim { -webkit-animation: none; animation: none; -webkit-transition: -webkit-transform 0.12s; transition: transform 0.12s; }
.cert-sheen {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 58%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-animation: certglint 6s ease-in-out infinite; animation: certglint 6s ease-in-out infinite;
}
.cert-tilt.aim .cert-sheen { -webkit-animation: none; animation: none; }
.cert-3d.ssr .cert-sheen {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 34%, rgba(255, 210, 225, 0.55) 46%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 60%);
}
.cert-3d.ur .cert-sheen {
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 236, 150, 0.6) 42%, rgba(255, 190, 225, 0.5) 50%, rgba(170, 232, 255, 0.5) 57%, rgba(255, 255, 255, 0) 68%);
}
@-webkit-keyframes certsway {
  0%, 100% { -webkit-transform: rotateY(-8deg) rotateX(4deg); }
  50% { -webkit-transform: rotateY(8deg) rotateX(2deg); }
}
@keyframes certsway {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg); }
  50% { transform: rotateY(8deg) rotateX(2deg); }
}
@-webkit-keyframes certglint { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes certglint { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.detail-page .cert-img { max-height: 46vh; }
.detail-page .cert-3d { -webkit-flex: none; flex: none; margin: auto 0; }
#modal-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; margin-top: 10px; }
.btn {
  margin: 4px; padding: 9px 15px; border-radius: 16px; font-size: 13px; font-weight: 800;
  background: #fff; border: 2px solid #54372c; box-shadow: 0 3px 0 #54372c;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.btn i { margin-right: 5px; font-size: 12px; }
.btn.main { background: #ff7da5; color: #fff; }
.btn.gold { background: #ffd34d; color: #54372c; }
.btn.off { opacity: 0.48; }
.btn.confirm, #unbox-actions .btn.confirm {
  background: #ff4f72; color: #fff;
  -webkit-animation: wiggle 0.5s; animation: wiggle 0.5s;
}
.btn:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: none; }

.order {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 9px 10px; margin-top: 8px;
}
.order.claimed { opacity: 0.55; }
.o-info { -webkit-flex: 1; flex: 1; min-width: 0; margin-right: 8px; }
.o-text { font-size: 13px; font-weight: 800; }
.o-sub { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.order .progress { margin: 5px 0 2px; height: 7px; }
.o-btn { margin: 0; padding: 7px 11px; font-size: 12px; white-space: nowrap; }

.series-banner {
  background: linear-gradient(135deg, #ffe7ef 0%, #fff3d6 100%);
  border: 2px solid #ecd6c6; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; text-align: center;
}
.series-banner .sb-vol {
  display: inline-block; font-size: 10px; font-weight: 900; color: #fff;
  background: #ff7ba2; border-radius: 10px; padding: 1px 8px; margin-bottom: 4px;
}
.series-banner .sb-name { font-size: 17px; font-weight: 900; }
.series-banner .sb-sub { font-size: 11px; color: #7d5b49; margin-top: 3px; }
.series-banner .sb-story { font-size: 11px; color: #8c6652; line-height: 1.45; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e7cfc0; }
.odds-facts {
  display: -webkit-flex; display: flex; margin-bottom: 10px;
  background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 7px 2px;
}
.of-cell { -webkit-flex: 1; flex: 1; min-width: 0; text-align: center; }
.of-cell + .of-cell { border-left: 1.5px dashed #ecdad0; }
.of-cell b { display: block; font-size: 15px; font-weight: 900; color: #f55f8f; white-space: nowrap; }
.of-cell span { display: block; margin-top: 1px; font-size: 10px; font-weight: 700; color: #8c6652; white-space: nowrap; }
.of-cell.ur b { color: #e08a00; }

/* 四档稀有度图例与卡片色阶 */
.rarity-legend {
  display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
  margin-bottom: 8px;
}
.rl-chip {
  -webkit-flex: 1; flex: 1; text-align: center; font-size: 10px; font-weight: 900;
  padding: 4px 2px; border-radius: 10px; color: #fff; margin: 0 2px;
}
.r-R { background: #3eb47e; }
.r-SR { background: linear-gradient(135deg, #3ba4ff, #2563eb); }
.r-SSR { background: linear-gradient(135deg, #ff2e63, #ff6b4a); }
.r-UR { background: linear-gradient(135deg, #ff9900, #ffd84d); color: #542800 !important; }

.codex-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
.cx {
  position: relative; background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 6px 3px 5px; text-align: center;
}
.cx.card-R { border-color: #9be0bd; background: #f6fef9; }
.cx.card-SR { border-color: #7cc0ff; background: #f1f8ff; }
.cx.card-SSR { border-color: #ff7a98; background: #fff2f5; box-shadow: 0 3px 10px rgba(255, 59, 107, 0.16); }
.cx.secret-card {
  grid-column: 1 / -1; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 12px 14px 12px 10px; text-align: left; overflow: hidden;
  background: linear-gradient(135deg, #fffaf0 0%, #ffefc2 52%, #ffd97a 100%);
  border: 2.5px solid #f5a524;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cx.secret-card::after {
  content: ""; position: absolute; left: -60%; top: -30%; width: 34%; height: 160%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  -webkit-transform: rotate(20deg); transform: rotate(20deg);
  -webkit-animation: sheen 3.2s ease-in-out infinite; animation: sheen 3.2s ease-in-out infinite;
}
.cx.secret-card .rt { top: 6px; left: 8px; z-index: 2; }
.cx.secret-card .ct { top: 6px; right: 9px; z-index: 2; color: #8a5a1c; font-weight: 800; opacity: 1; }
.cx.secret-card .sc-art {
  position: relative; width: 86px; height: 86px; -webkit-flex: none; flex: none; margin: 6px 12px 0 4px; border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0%, #ffeaa6 52%, rgba(255, 214, 90, 0) 72%);
}
.cx.secret-card .sc-art .sprite { width: 100%; height: 100%; }
.cx.secret-card .sc-info { position: relative; z-index: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.sc-tag {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
  font-size: 10px; font-weight: 900; color: #fff; border-radius: 8px; padding: 2px 8px;
  background: linear-gradient(135deg, #ff9900, #ffc83d); box-shadow: 0 2px 0 rgba(160, 90, 0, 0.35);
}
.sc-tag i { font-size: 9px; color: #fff; }
.sc-name {
  margin-top: 5px; font-size: 16px; font-weight: 900; color: #5a3000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-sub { margin-top: 3px; font-size: 10px; line-height: 1.4; color: #8a5a1c; }
/* 矮屏图鉴：隐藏款卡收紧，给上面两排卡片留出竖长的高度 */
@media (max-height: 720px) {
  .cx.secret-card { padding-top: 8px; padding-bottom: 8px; }
  .cx.secret-card .sc-art { width: 70px; height: 70px; margin-top: 4px; }
}
.cx.pick-wish { border-color: #f0a23b; background: #fff7df; }
.cx.pick-avoid { border-color: #9b6fd6; background: #f6eeff; }
/* 心愿 / 避雷挑选页：说明只占一行；状态是右上角小签 */
#modal-body p.pick-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx .pk-tag {
  position: absolute; top: 3px; right: 4px; z-index: 2; height: 16px; line-height: 16px; padding: 0 6px; border-radius: 8px;
  font-size: 9px; font-weight: 900; color: #fff; white-space: nowrap;
}
.cx .pk-tag i { font-size: 8px; margin-right: 2px; color: #fff; }
.cx .pk-tag.avoid { background: #8a5fd0; box-shadow: 0 1px 3px rgba(110, 70, 180, 0.35); }
.cx .pk-tag.wish { background: #f0a23b; box-shadow: 0 1px 3px rgba(200, 120, 20, 0.35); }
.cx .pk-tag.other { background: rgba(140, 102, 82, 0.14); color: #8c6652; }
.cx .sprite { width: 100%; height: 70px; }
.cx.locked .sprite { -webkit-filter: brightness(0) opacity(0.15); filter: brightness(0) opacity(0.15); }
.cx .nm { font-size: 11px; font-weight: 900; margin-top: 2px; }
.cx .ct { position: absolute; top: 3px; right: 5px; font-size: 10px; opacity: 0.7; }
.got-badge {
  position: absolute; top: 3px; right: 4px; z-index: 2; padding: 1px 6px 1px 5px; border-radius: 6px;
  font-size: 9px; font-weight: 900; color: #fff; line-height: 14px; background: #3eb47e;
  box-shadow: 0 1px 0 rgba(30, 110, 70, 0.45);
}
.got-badge i { font-size: 8px; margin-right: 2px; color: #fff; }
.cx.secret-card .got-badge { top: 6px; right: 9px; }
.cx .rt { position: absolute; top: 3px; left: 4px; font-size: 9px; color: #fff; font-weight: 900; padding: 1px 5px; border-radius: 6px; }
.cx .feel-mini { font-size: 9px; color: #8c6652; margin-top: 2px; }

/* 钱包可点，打开收益面板 */
#wallet { cursor: pointer; }
#wallet:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: none; }

/* 顶栏放了仓库、展柜、音效三个图标：图鉴只留文字 */
#codex-btn i { display: none; }
#top-btns .chip { margin-left: 7px; }
@media (max-width: 374px) { #top-btns .chip { margin-left: 5px; } }
/* 展柜入口：顶栏金色小店图标 */
/* 顶栏图标按钮统一宽度，图标居中 */
.chip.icon { width: 36px; -webkit-justify-content: center; justify-content: center; padding-left: 0; padding-right: 0; }
/* 顶栏放不下时不压图标按钮：flex 收缩会按图标宽度压，仓库、展柜、音效就会一个比一个窄 */
.chip.icon { -webkit-flex: none; flex: none; }
.chip.store { background: #ffe08a; color: #6b3a00; }

/* 展柜 */
.show-head { position: relative; margin: -14px -14px 10px; padding-top: 22px; }
.sh-awning {
  position: absolute; left: 0; top: 0; right: 0; height: 26px; border-radius: 21px 21px 0 0;
  background: repeating-linear-gradient(90deg, #ff8fb1 0, #ff8fb1 22px, #fff4f7 22px, #fff4f7 44px);
  box-shadow: inset 0 -2px 0 rgba(84, 55, 44, 0.15);
}
.sh-awning::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 11px;
  background: radial-gradient(circle at 11px 0, #ff8fb1 10px, transparent 10.5px) 0 0 / 44px 11px repeat-x,
    radial-gradient(circle at 33px 0, #fff4f7 10px, transparent 10.5px) 0 0 / 44px 11px repeat-x;
  -webkit-filter: drop-shadow(0 2px 0 rgba(84, 55, 44, 0.18)); filter: drop-shadow(0 2px 0 rgba(84, 55, 44, 0.18));
}
.sh-sign {
  position: relative; margin: 6px auto 0; width: 72%; padding: 6px 10px 7px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #9a6a4f 0%, #7a5039 100%); border: 2.5px solid #54372c; box-shadow: 0 3px 0 #54372c;
}
.sh-title { font-size: 17px; font-weight: 900; color: #fff5e6; letter-spacing: 1px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.sh-title i { color: #ffd45c; }
.sh-sub { margin-top: 1px; font-size: 10px; font-weight: 700; color: #f3dcc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.show-sum {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, #fff7dc 0%, #ffe9a6 100%); border: 2px solid #f3c96a; border-radius: 14px;
  padding: 8px 14px; min-height: 63px;
}
.ss-main { -webkit-flex: 1; flex: 1; text-align: left; }
.ss-main span, .ss-side span { display: block; font-size: 11px; font-weight: 800; color: #a06a10; }
.ss-main b { display: block; font-size: 24px; font-weight: 900; color: #8a4b00; line-height: 1.15; }
.ss-main small { font-size: 12px; font-weight: 800; color: #a06a10; }
.ss-side { text-align: right; padding-left: 12px; border-left: 1.5px dashed #e7c46f; }
.ss-side b { display: block; font-size: 17px; font-weight: 900; color: #e08a00; }
.show-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 10px 8px;
  -webkit-flex: 1; flex: 1; min-height: 0; padding: 10px 8px 12px; border-radius: 16px;
  background: linear-gradient(180deg, #8b5e45 0%, #6d4634 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.18), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 4px 0 #54372c;
}
/* 每格是一个玻璃小柜：上亮下暗的柜体 + 底部木质台座 */
.sh-slot {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 0;
  background: linear-gradient(180deg, #fffdf9 0%, #f6ebe2 78%, #e9d6c7 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), inset 0 -18px 0 #d8b89c, inset 0 -20px 0 #c49c7e;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: flex-end; justify-content: flex-end;
  padding: 16px 4px 0;
}
.sh-slot::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%);
}
.sh-slot .rt { position: absolute; top: 5px; left: 6px; z-index: 2; font-size: 9px; color: #fff; font-weight: 900; padding: 1px 5px; border-radius: 6px; }
.sh-slot .sprite { position: relative; z-index: 1; width: 100%; -webkit-flex: 1; flex: 1; min-height: 0; height: auto; margin-bottom: 2px; }
.sh-slot .sprite img { position: absolute; left: 0; top: 0; -webkit-filter: drop-shadow(0 4px 3px rgba(84, 55, 44, 0.35)); filter: drop-shadow(0 4px 3px rgba(84, 55, 44, 0.35)); }
.sh-glow {
  position: absolute; left: 50%; top: 52%; width: 86%; padding-bottom: 86%; margin: -43% 0 0 -43%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
}
.sh-slot.tier-SR .sh-glow { background: radial-gradient(circle, rgba(140, 200, 255, 0.55) 0%, rgba(140, 200, 255, 0) 70%); }
.sh-slot.tier-SSR .sh-glow { background: radial-gradient(circle, rgba(255, 120, 160, 0.5) 0%, rgba(255, 120, 160, 0) 70%); }
.sh-slot.tier-UR .sh-glow {
  background: radial-gradient(circle, rgba(255, 214, 90, 0.85) 0%, rgba(255, 214, 90, 0) 70%);
  -webkit-animation: tapepulse 1.6s ease-in-out infinite; animation: tapepulse 1.6s ease-in-out infinite;
}
.sh-plate {
  position: relative; z-index: 2; height: 18px; line-height: 18px; margin: 0 0 1px; padding: 0 7px; border-radius: 6px;
  font-size: 10px; font-weight: 900; color: #fff7ea; white-space: nowrap; text-shadow: 0 1px 0 rgba(84, 55, 44, 0.5);
}
.sh-slot.full .sh-plate { color: #fff; }
.sh-add {
  position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 2px dashed #d3b4a2; color: #c49c7e; font-size: 15px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.sh-slot.locked { background: linear-gradient(180deg, #e9ddd4 0%, #ddc9bb 100%); }
.sh-slot.locked .sh-add { border-style: solid; border-color: #c7ab98; background: rgba(255, 255, 255, 0.4); color: #a5826e; }
.sh-unlock {
  position: relative; z-index: 2; margin-bottom: 1px; padding: 0 8px; height: 18px; line-height: 16px; border-radius: 9px;
  font-size: 10px; font-weight: 900; color: #542800; background: linear-gradient(180deg, #ffe273, #ffba26); border: 1px solid #a06a10;
}
.sh-unlock i { font-size: 9px; margin-right: 3px; }
.sh-slot.nope { -webkit-animation: shnope 0.32s; animation: shnope 0.32s; }
@-webkit-keyframes shnope { 25% { -webkit-transform: translateX(-4px); } 75% { -webkit-transform: translateX(4px); } }
@keyframes shnope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sh-slot.placed { -webkit-animation: bump 0.3s; animation: bump 0.3s; }
/* 拖动换位置：摆着藏品的格子不让浏览器抢走手势；原位留个淡影，跟手的是一张复制出来的格子 */
.sh-slot.full { touch-action: none; -webkit-user-select: none; user-select: none; }
.sh-slot img { -webkit-user-drag: none; }
.sh-slot.drag-src > * { opacity: 0.25; }
.sh-slot.drop-on { box-shadow: inset 0 0 0 3px #ffd34d, inset 0 -18px 0 #d8b89c, inset 0 -20px 0 #c49c7e; }
.sh-ghost {
  position: fixed; z-index: 70; margin: 0; pointer-events: none; opacity: 0.92;
  box-shadow: 0 10px 22px rgba(42, 24, 20, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.7), inset 0 -18px 0 #d8b89c, inset 0 -20px 0 #c49c7e;
}
.sx-rate { color: #c27a00; font-weight: 800; }
.sx-show {
  position: absolute; right: 5px; top: 5px; font-size: 8px; font-weight: 900; color: #fff; line-height: 14px;
  background: #e08a00; border-radius: 6px; padding: 0 4px;
}
.sx-mark ~ .sx-show { right: 27px; }

/* 藏品编号 */
.u-serial {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.5px; color: rgba(255, 244, 238, 0.9); background: rgba(0, 0, 0, 0.28);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.rec-meta {
  margin-top: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid #ecdad0; text-align: center;
}
.rm-sn {
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: #8c6652; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: "SF Mono", Menlo, Consolas, monospace; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1.5px dashed #f0e2d8;
}
.rm-tags { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; margin: -2px; }
.rm-tag {
  margin: 2px; padding: 2px 8px; border-radius: 9px; font-size: 11px; font-weight: 800; line-height: 16px; white-space: nowrap;
  color: #8c6652; background: #f8efe8;
}
.rm-tag i { font-size: 9px; }
.rm-tag.wish { color: #e0457a; background: #ffeaf1; }
.rm-tag.avoid { color: #7b4fc0; background: #f1e8ff; }
.rm-tag.show { color: #a06a10; background: #fff3cc; }
.detail-serial {
  margin-top: 8px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: #8c6652;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
/* 收益面板 */
.inc-hero {
  position: relative; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin: 2px 0 12px; padding: 12px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #fff3b8 0%, #ffd45c 55%, #ffb72e 100%);
  border: 2.5px solid #54372c; box-shadow: 0 4px 0 #54372c;
}
.inc-hero::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.ih-coin {
  width: 48px; height: 48px; -webkit-flex: none; flex: none; margin-right: 12px; border-radius: 50%;
  background: #fff8dc; border: 2.5px solid #54372c; color: #f0a518; font-size: 22px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.ih-main { position: relative; z-index: 1; text-align: left; }
.ih-main span { display: block; font-size: 12px; font-weight: 800; color: #7a4a00; }
.ih-main b { display: block; font-size: 32px; font-weight: 900; color: #54372c; line-height: 1.1; letter-spacing: 0.5px; }
.inc-card {
  margin-bottom: 10px; padding: 10px 14px 12px; border-radius: 16px; text-align: left;
  background: #fff; border: 2px solid #ecdad0;
}
.ic-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.ic-title { -webkit-flex: 1; flex: 1; font-size: 13px; font-weight: 900; color: #54372c; }
.ic-title i { color: #ff5c8e; }
.ic-tag { font-size: 10px; font-weight: 900; color: #a06a10; background: #fff3cc; border-radius: 9px; padding: 2px 8px; }
.ic-big { margin: 4px 0 8px; white-space: nowrap; }
.ic-big b { font-size: 30px; font-weight: 900; color: #e08a00; }
.ic-big small { margin-left: 4px; font-size: 12px; font-weight: 800; color: #a06a10; }
.inc-card.idle .ic-big b { color: #c9b2a5; }
.ic-minis { display: -webkit-flex; display: flex; }
.ic-mini {
  -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 5px 10px; border-radius: 10px; background: #fbf4ee;
}
.ic-mini + .ic-mini { margin-left: 8px; }
.ic-mini span { font-size: 11px; font-weight: 800; color: #9c7563; }
.ic-mini b { font-size: 13px; font-weight: 900; color: #8a4b00; }
.inc-list { margin-bottom: 10px; border-radius: 16px; background: #fff; border: 2px solid #ecdad0; padding: 2px 14px; }
.il-row {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; height: 38px; text-align: left;
}
.il-row + .il-row { border-top: 1.5px dashed #f0e2d8; }
.il-ico { width: 24px; height: 24px; -webkit-flex: none; flex: none; margin-right: 8px; border-radius: 8px; font-size: 11px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  background: #fff0f4; color: #ff5c8e; }
.il-row:nth-child(2) .il-ico { background: #fff3cc; color: #e08a00; }
.il-row:nth-child(3) .il-ico { background: #e9f8ef; color: #3eb47e; }
.il-row span { -webkit-flex: 1; flex: 1; font-size: 13px; font-weight: 800; color: #7d5b49; }
.il-row b { font-size: 15px; font-weight: 900; color: #54372c; }
.inc-note {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #7e5fb0; background: #f4eeff; border-radius: 12px; padding: 6px 10px; white-space: nowrap;
}
.inc-note i { color: #8f5fd6; }

/* 赞赏入口：收益面板底部、集齐证书下面的一行，不抢主按钮 */
.reward-row {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  margin-top: 8px; font-size: 11px; font-weight: 700; color: #8c6652;
}
.reward-btn {
  -webkit-flex: none; flex: none; margin-left: 8px; padding: 4px 10px; border-radius: 12px;
  background: #fff2e3; border: 1.5px solid #e7c29f; color: #8c5a32; font-size: 11px; font-weight: 900; white-space: nowrap;
}
.reward-btn i { margin-right: 4px; color: #e08a00; }
.reward-btn:active { -webkit-transform: scale(0.95); transform: scale(0.95); }

/* 仓库 */
.stash-filter { display: -webkit-flex; display: flex; margin-bottom: 8px; }
.sf-chip {
  -webkit-flex: 1; flex: 1; margin: 0 2px; padding: 4px 0; border-radius: 11px; font-size: 11px; font-weight: 900;
  background: #fff; border: 1.5px solid #ecdad0; color: #8c6652; white-space: nowrap;
}
.sf-chip.on { background: #54372c; border-color: #54372c; color: #fff; }
.sf-chip.sf-UR.on { background: linear-gradient(135deg, #ff9900, #ffc83d); border-color: #e08a00; color: #542800; }
.sf-chip.sf-SSR.on { background: #ff3b6b; border-color: #ff3b6b; }
.sf-chip.sf-SR.on { background: #3395ff; border-color: #3395ff; }
.sf-chip.sf-R.on { background: #3eb47e; border-color: #3eb47e; }
.stash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; -webkit-align-content: start; align-content: start;
  overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 2px 2px 6px;
}
.sx {
  position: relative; background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 16px 3px 6px; text-align: center;
}
.sx.card-R { border-color: #9be0bd; background: #f6fef9; }
.sx.card-SR { border-color: #7cc0ff; background: #f1f8ff; }
.sx.card-SSR { border-color: #ff7a98; background: #fff2f5; }
.sx.card-UR { border-color: #f5a524; background: linear-gradient(160deg, #fffaf0 0%, #ffe9a8 100%); }
.sx .rt { position: absolute; top: 4px; left: 5px; font-size: 9px; color: #fff; font-weight: 900; padding: 1px 5px; border-radius: 6px; }
.sx .sprite { width: 100%; height: 62px; }
.sx .nm { font-size: 11px; font-weight: 900; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-no { font-size: 9px; color: #9c7563; margin-top: 1px; }
.sx-mark {
  position: absolute; top: 4px; right: 5px; width: 18px; height: 18px; border-radius: 50%; font-size: 9px; color: #fff;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.sx-mark.wish { background: #ff5c8e; }
.sx-mark.avoid { background: #8f5fd6; }
.sx-mark.gift { background: #52c088; }
.sx-check {
  display: none; position: absolute; right: 5px; bottom: 30px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid #d9bcb0; color: transparent; font-size: 10px;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.stash-grid.picking .sx-check { display: -webkit-flex; display: flex; }
.stash-grid.picking .sx-mark { display: none; }
.stash-grid.picking .sx { opacity: 0.62; }
.stash-grid.picking .sx.picked { opacity: 1; border-style: solid; border-color: #ff6b98; box-shadow: 0 0 0 2px rgba(255, 107, 152, 0.35); }
.stash-grid.picking .sx.picked .sx-check { background: #ff6b98; border-color: #ff6b98; color: #fff; }
.pick-bar {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 10px;
  background: #fff7e0; border: 2px solid #f3c96a; border-radius: 14px; padding: 8px 8px 8px 12px; min-height: 63px;
}
.pb-txt { -webkit-flex: 1; flex: 1; min-width: 0; }
.pb-txt b { display: block; font-size: 15px; font-weight: 900; color: #54372c; }
.pb-txt span { display: block; font-size: 11px; font-weight: 800; color: #a06a10; white-space: nowrap; }
.pb-btn {
  margin-left: 6px; padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 900;
  background: #fff; border: 1.5px solid #e2c48a; color: #8a5600; white-space: nowrap;
}
.stash-grid.is-empty {
  overflow: hidden; -webkit-align-content: stretch; align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
}
.stash-tip {
  grid-column: 1 / -1; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, #fff2f6 0%, #ffe3ec 100%); border: 2px solid #ffc2d4;
}
.st-ico {
  width: 38px; height: 38px; -webkit-flex: none; flex: none; border-radius: 50%; margin-right: 10px;
  background: #fff; border: 2px solid #ff8fb1; color: #ff5c8e; font-size: 17px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.st-txt { -webkit-flex: 1; flex: 1; min-width: 0; text-align: left; }
.st-txt b { display: block; font-size: 14px; font-weight: 900; color: #54372c; }
.st-txt span { display: block; margin-top: 2px; font-size: 11px; color: #9c7563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-go {
  -webkit-flex: none; flex: none; margin-left: 8px; padding: 6px 11px; border-radius: 13px;
  font-size: 12px; font-weight: 900; color: #fff; background: #ff7da5; box-shadow: 0 2px 0 #54372c; border: 2px solid #54372c;
}
.st-go:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: none; }
.sx.ghost {
  background: rgba(255, 255, 255, 0.55); border-style: dashed; border-color: #e6d3c8; box-shadow: none;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.sx.ghost.card-R, .sx.ghost.card-SR, .sx.ghost.card-SSR, .sx.ghost.card-UR { background: rgba(255, 255, 255, 0.55); }
.sx.ghost .sprite { -webkit-flex: 1; flex: 1; min-height: 40px; height: auto; opacity: 0.35; -webkit-filter: grayscale(1); filter: grayscale(1); }
.sx.ghost .sprite img { position: absolute; left: 0; top: 0; }
.sx.ghost.card-R .sprite, .sx.ghost.card-SR .sprite, .sx.ghost.card-SSR .sprite, .sx.ghost.card-UR .sprite {
  opacity: 1; -webkit-filter: brightness(0) opacity(0.14); filter: brightness(0) opacity(0.14);
}
.sx.ghost .rt { opacity: 0.55; }
.sx.ghost .nm { color: #c4a898; }
/* 图鉴 / 公示 / 仓库横滑切换：竖向滚动交给浏览器，横向留给手势；新页从一侧滑入 */
.sheet.codex-sheet #modal-body,
.sheet.odds-sheet #modal-body { touch-action: pan-y; }
#modal-body.col-from-r > :not(.col-fixed) { -webkit-animation: colfromr 0.26s ease-out; animation: colfromr 0.26s ease-out; }
#modal-body.col-from-l > :not(.col-fixed) { -webkit-animation: colfroml 0.26s ease-out; animation: colfroml 0.26s ease-out; }
@-webkit-keyframes colfromr { 0% { -webkit-transform: translateX(40px); opacity: 0.3; } 100% { -webkit-transform: none; opacity: 1; } }
@keyframes colfromr { 0% { transform: translateX(40px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
@-webkit-keyframes colfroml { 0% { -webkit-transform: translateX(-40px); opacity: 0.3; } 100% { -webkit-transform: none; opacity: 1; } }
@keyframes colfroml { 0% { transform: translateX(-40px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
.sheet.codex-sheet .stash-grid { -webkit-flex: 1; flex: 1; min-height: 0; }

/* 图鉴弹窗定高：列表卡片纵向拉高填满（不再是方块），和详情页同高 */
.sheet.codex-sheet { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.sheet.codex-sheet #modal-body { -webkit-flex: 1; flex: 1; min-height: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.sheet.codex-sheet #modal-actions { -webkit-flex: none; flex: none; }
.sheet.codex-sheet .codex-grid { -webkit-flex: 1; flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; }
.sheet.codex-sheet .cx:not(.secret-card) {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 16px 3px 8px;
}
.sheet.codex-sheet .cx:not(.secret-card) .sprite { -webkit-flex: 1; flex: 1; min-height: 48px; height: auto; }
.sheet.codex-sheet .cx:not(.secret-card) .sprite img { position: absolute; left: 0; top: 0; }
/* 心愿/避雷挑选页：卡片高度由 JS 定成和图鉴一样，里面的排法也和图鉴一样 */
.pick-grid .cx:not(.secret-card) {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 16px 3px 8px;
}
.pick-grid .cx:not(.secret-card) .sprite { -webkit-flex: 1; flex: 1; min-height: 48px; height: auto; position: relative; }
.pick-grid .cx:not(.secret-card) .sprite img { position: absolute; left: 0; top: 0; }

.stat-row {
  display: -webkit-flex; display: flex; -webkit-justify-content: space-around; justify-content: space-around;
  background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 7px 6px; margin-bottom: 10px;
}
.stat-cell { text-align: center; }
.stat-cell b { display: block; font-size: 16px; color: #f55f8f; }
.stat-cell span { font-size: 10px; color: #8c6652; font-weight: 700; }

/* 连爆包端网格（按四档稀有度清晰区分） */
.bulk-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; margin: 10px 0; }
.bulk-card {
  position: relative; background: #fff; border: 2px solid #ecdad0; border-radius: 14px; padding: 6px 4px; text-align: center;
  opacity: 0; -webkit-transform: scale(0.3); transform: scale(0.3);
}
.bulk-card.popped {
  opacity: 1; -webkit-transform: none; transform: none;
  -webkit-animation: bulkpop 0.44s cubic-bezier(.16, 1.6, .38, 1); animation: bulkpop 0.44s cubic-bezier(.16, 1.6, .38, 1);
}
.bulk-card.card-R { border-color: #8fdab4; background: #f4fdf8; }
.bulk-card.card-SR { border-color: #6bb5ff; background: #eff7ff; }
.bulk-card.card-SSR {
  border: 2px solid #ff4778; background: #fff1f4;
  box-shadow: 0 0 14px rgba(255, 59, 107, 0.36);
}
.bulk-card.card-UR {
  border: 2.5px solid #ffaa1d; background: linear-gradient(145deg, #fff9d6, #ffe399);
  box-shadow: 0 0 20px rgba(255, 190, 45, 0.8);
}
.bulk-card .sprite { width: 100%; height: 64px; }
.bulk-card .b-r {
  position: absolute; top: 3px; left: 3px; font-size: 9px; font-weight: 900; color: #fff;
  padding: 1px 5px; border-radius: 6px;
}
.bulk-card .b-tag {
  position: absolute; top: 3px; right: 3px; font-size: 9px; font-weight: 900; color: #fff;
  padding: 1px 5px; border-radius: 6px; background: #b3927d;
}
.bulk-card.is-new .b-tag { background: #ff5c8e; }

#modal-body, #modal-actions { -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s; transition: transform 0.3s ease, opacity 0.3s; }
.sheet.pushed { overflow-y: hidden; }
.sheet.no-trans #modal-body, .sheet.no-trans #modal-actions { -webkit-transition: none !important; transition: none !important; }
.sheet.pushed #modal-body, .sheet.pushed #modal-actions { -webkit-transform: translateX(-30%); transform: translateX(-30%); opacity: 0.3; }
.detail-page {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2;
  background: #fffaf5; padding: 12px 14px 14px; overflow-y: auto; touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-transform: translateX(100%); transform: translateX(100%);
  -webkit-transition: -webkit-transform 0.3s ease; transition: transform 0.3s ease;
  box-shadow: -6px 0 12px rgba(90, 58, 46, 0.12);
}
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cx .qs i { font-size: 9px; margin: 0 1px; color: #e6a825; }
.cx .qs i.dim { opacity: 0.25; }
.sprite .fallback-ico { font-size: 32px; color: #c79d89; }
.detail-page.in { -webkit-transform: translateX(0); transform: translateX(0); }
.sheet.dragging .detail-page, .sheet.dragging #modal-body, .sheet.dragging #modal-actions { -webkit-transition: none; transition: none; }
.detail-page p { margin: 8px 0 0; font-size: 13px; text-align: center; }
.detail-story {
  margin-top: 8px; padding: 9px 11px; border-radius: 14px; background: #fff7ef;
  border: 2px solid #eed8c8; text-align: left;
}
.ds-head {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 5px;
}
.ds-label { font-size: 11px; font-weight: 900; color: #8c6652; }
.ds-persona {
  font-size: 10px; font-weight: 800; color: #ff5c8e; background: #ffeaf1;
  border: 1px solid #ffc7da; border-radius: 9px; padding: 1px 8px;
}
.ds-fortune-bar {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin-bottom: 7px; padding: 6px 8px; border-radius: 10px;
  background: #fff; border: 1.5px dashed #e6c6b2;
}
.ds-fortune-txt {
  -webkit-flex: 1; flex: 1; min-width: 0; font-size: 11px; font-weight: 700;
  line-height: 1.45; color: #6b4a3c;
}
/* 签名印章：粉底白字的小方章，下面一行小字英文，和签文一眼分开；收藏里的专属签用金色 */
.ds-fortune-tag {
  -webkit-flex: none; flex: none; margin-right: 8px; padding: 3px 6px 2px; border-radius: 7px;
  background: linear-gradient(160deg, #ff7aa2, #ff4f86); color: #fff; text-align: center; line-height: 1;
  box-shadow: 0 2px 0 #d93c6e; -webkit-transform: rotate(-4deg); transform: rotate(-4deg);
}
.ds-fortune-tag b { display: block; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.ds-fortune-tag span { display: block; margin-top: 2px; font-size: 6px; font-weight: 900; letter-spacing: 1px; opacity: 0.85; }
.ds-fortune-tag.mine { background: linear-gradient(160deg, #ffc94d, #f29a1f); box-shadow: 0 2px 0 #c26f10; color: #5a2e00; }
/* 换签按钮压在签条虚线框右下角的边上，不占签文那一行的宽度，签文不会被挤到换行 */
.ds-fortune-bar.has-swap { position: relative; margin-bottom: 15px; }
.ds-fortune-swap {
  position: absolute; right: 8px; bottom: -11px; padding: 2px 8px; border-radius: 9px;
  background: #fff2e3; border: 1px solid #e7c29f; font-size: 10px; font-weight: 900;
  color: #8c5a32; white-space: nowrap;
}
.ds-fortune-swap:active { -webkit-transform: scale(0.95); transform: scale(0.95); }
.ds-text { font-size: 12px; line-height: 1.55; color: #54372c; }
.ds-secret {
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e6cec0;
  font-size: 11px; line-height: 1.5; color: #8c6652;
}
.detail-bonds { margin-top: 7px; }
.bond-row {
  padding: 6px 8px; border-radius: 10px; background: #f6eee8; border: 1.5px dashed #decac0;
  font-size: 11px; line-height: 1.45; color: #947463;
}
.bond-row + .bond-row { margin-top: 6px; }
.bond-row.on { background: #fff0f5; border-style: solid; border-color: #ffbdd3; color: #54372c; }
.bond-row.cross.on { background: #f5f0ff; border-style: solid; border-color: #cbb5f6; color: #4a356e; }
.bond-head { font-weight: 900; margin-bottom: 2px; }
.bond-line { font-size: 11px; }
.codex-series-tabs {
  position: relative; -webkit-flex: none; flex: none; display: -webkit-flex; display: flex; margin: 0 0 8px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  background: #f5eae2; border-radius: 12px; padding: 3px;
}
.cst-btn {
  position: relative; z-index: 1; -webkit-flex: none; flex: none;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 4px 10px; border-radius: 9px; line-height: 1.2;
  color: #8c6652; white-space: nowrap;
  -webkit-transition: color 0.2s; transition: color 0.2s;
}
.cst-btn + .cst-btn { margin-left: 3px; }
.cst-top { font-size: 9px; font-weight: 800; opacity: 0.78; white-space: nowrap; }
.cst-name { font-size: 11.5px; font-weight: 900; margin-top: 1px; white-space: nowrap; }
.cst-btn.on { color: #54372c; }
.cst-btn.on .cst-top { opacity: 1; }
.cst-btn.on.cst-dessert .cst-top { color: #ff5c8e; }
.cst-btn.on.cst-dream .cst-top { color: #8a63d6; }
.cst-btn.on.cst-garden .cst-top { color: #36a46e; }
.cst-btn.on.cst-onsen .cst-top { color: #df693f; }
.cst-btn.on.cst-cafe .cst-top { color: #9c6034; }
.cst-btn.on.cst-park .cst-top { color: #ec4d7e; }
.cst-btn.on.cst-space .cst-top { color: #3c82eb; }
.cst-btn.on.cst-market .cst-top { color: #dc3c36; }
.cst-btn.on.cst-beach .cst-top { color: #179cb0; }
.cst-btn.on.cst-magic .cst-top { color: #c77d0e; }
/* 激活白块是一块单独的滑块，换弹时从旧的一弹滑过去 */
.cst-ind {
  position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 9px;
  background: #fff; box-shadow: 0 1px 4px rgba(90, 58, 46, 0.12);
  -webkit-transition: -webkit-transform 0.32s cubic-bezier(.3, 1.25, .5, 1), width 0.32s cubic-bezier(.3, 1.25, .5, 1);
  transition: transform 0.32s cubic-bezier(.3, 1.25, .5, 1), width 0.32s cubic-bezier(.3, 1.25, .5, 1);
}
.cst-ind.no-trans { -webkit-transition: none; transition: none; }
/* 公示海报：每弹专属柔和配色 + 主题标签 */
.series-banner .sb-tags {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
  margin-bottom: 4px;
}
.series-banner .sb-vol { margin-bottom: 0; }
.series-banner .sb-vibe {
  display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 900;
  color: #c74272; background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 123, 162, 0.38); border-radius: 10px; padding: 0 8px; line-height: 16px;
}
.series-banner.sb-dream { background: linear-gradient(135deg, #efe7ff 0%, #fff4fa 100%); border-color: #d7c7f2; }
.series-banner.sb-dream .sb-vol { background: #9272df; }
.series-banner.sb-dream .sb-vibe { color: #6e4bc2; border-color: rgba(146, 114, 223, 0.35); }
.series-banner.sb-garden { background: linear-gradient(135deg, #e2f7eb 0%, #fff8e6 100%); border-color: #bce4cd; }
.series-banner.sb-garden .sb-vol { background: #46b57e; }
.series-banner.sb-garden .sb-vibe { color: #268255; border-color: rgba(70, 181, 126, 0.35); }
.series-banner.sb-onsen { background: linear-gradient(135deg, #ffeae0 0%, #fff6df 100%); border-color: #efcab7; }
.series-banner.sb-onsen .sb-vol { background: #e8774e; }
.series-banner.sb-onsen .sb-vibe { color: #c45229; border-color: rgba(232, 119, 78, 0.35); }
.series-banner.sb-cafe { background: linear-gradient(135deg, #f3e6d8 0%, #fff5e8 100%); border-color: #dfcab4; }
.series-banner.sb-cafe .sb-vol { background: #a86b3e; }
.series-banner.sb-cafe .sb-vibe { color: #834d25; border-color: rgba(168, 107, 62, 0.35); }
.series-banner.sb-park { background: linear-gradient(135deg, #ffe4f0 0%, #eaf4ff 100%); border-color: #efc4d8; }
.series-banner.sb-park .sb-vol { background: #f25e8b; }
.series-banner.sb-park .sb-vibe { color: #cf3869; border-color: rgba(242, 94, 139, 0.35); }
.series-banner.sb-space { background: linear-gradient(135deg, #e2efff 0%, #f5eeff 100%); border-color: #c2d9f5; }
.series-banner.sb-space .sb-vol { background: #4a8df2; }
.series-banner.sb-space .sb-vibe { color: #2865c4; border-color: rgba(74, 141, 242, 0.35); }
.series-banner.sb-market { background: linear-gradient(135deg, #ffe5dd 0%, #fff3cf 100%); border-color: #f0c2b5; }
.series-banner.sb-market .sb-vol { background: #e54942; }
.series-banner.sb-market .sb-vibe { color: #c42f28; border-color: rgba(229, 73, 66, 0.35); }
.series-banner.sb-beach { background: linear-gradient(135deg, #dcf8fd 0%, #fff3df 100%); border-color: #b4e2ea; }
.series-banner.sb-beach .sb-vol { background: #1fb6c9; }
.series-banner.sb-beach .sb-vibe { color: #128596; border-color: rgba(31, 182, 201, 0.35); }
.series-banner.sb-magic { background: linear-gradient(135deg, #fff1c9 0%, #ffe9f3 100%); border-color: #ecd19a; }
.series-banner.sb-magic .sb-vol { background: #d99018; }
.series-banner.sb-magic .sb-vibe { color: #ad6906; border-color: rgba(217, 144, 24, 0.35); }
.odds-tips {
  margin: -4px 0 9px; text-align: center; font-size: 10.5px; font-weight: 700;
  color: #946e5b; line-height: 1.4;
}
.detail-bar { position: relative; height: 32px; margin-bottom: 8px; text-align: center; }
.detail-back {
  position: absolute; left: 0; top: 0; height: 30px; padding: 0 10px; border-radius: 15px;
  background: #fff; border: 2px solid #54372c; font-size: 13px; font-weight: 800;
}
.detail-title { font-size: 17px; font-weight: 900; line-height: 32px; }
.detail-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; margin-top: 8px; }
.progress { height: 10px; background: #f1e2d3; border-radius: 6px; overflow: hidden; margin: 4px 0 10px; }
.progress i { display: block; height: 100%; background: #ff7da5; }

/* ---------- 动画 ---------- */
@-webkit-keyframes walletglow { 0% { box-shadow: 0 2px 0 #54372c, 0 0 0 0 rgba(255, 214, 90, 0.95); } 100% { box-shadow: 0 2px 0 #54372c, 0 0 0 14px rgba(255, 214, 90, 0); } }
@keyframes walletglow { 0% { box-shadow: 0 2px 0 #54372c, 0 0 0 0 rgba(255, 214, 90, 0.95); } 100% { box-shadow: 0 2px 0 #54372c, 0 0 0 14px rgba(255, 214, 90, 0); } }
@-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@-webkit-keyframes spinrev { from { -webkit-transform: rotate(360deg); } to { -webkit-transform: rotate(0deg); } }
@keyframes spinrev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@-webkit-keyframes bump { 50% { -webkit-transform: scale(1.06); } }
@keyframes bump { 50% { transform: scale(1.06); } }
@-webkit-keyframes wiggle { 25% { -webkit-transform: rotate(-4deg); } 75% { -webkit-transform: rotate(4deg); } }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@-webkit-keyframes boxshake {
  0%, 100% { -webkit-transform: rotate(0); }
  20% { -webkit-transform: rotate(-13deg) translateX(-4px); }
  45% { -webkit-transform: rotate(13deg) translateX(4px); }
  70% { -webkit-transform: rotate(-8deg) translateX(-2px); }
}
@keyframes boxshake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg) translateX(-4px); }
  45% { transform: rotate(13deg) translateX(4px); }
  70% { transform: rotate(-8deg) translateX(-2px); }
}
@-webkit-keyframes boxweigh {
  0%, 100% { -webkit-transform: translateY(0); }
  30% { -webkit-transform: translateY(-11px) scale(0.96, 1.06); }
  65% { -webkit-transform: translateY(8px) scale(1.08, 0.91); }
}
@keyframes boxweigh {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-11px) scale(0.96, 1.06); }
  65% { transform: translateY(8px) scale(1.08, 0.91); }
}
@-webkit-keyframes boxenter {
  0% { -webkit-transform: scale(0.35) translateY(70px) rotate(-10deg); opacity: 0; }
  65% { -webkit-transform: scale(1.12, 0.92) translateY(-6px) rotate(2deg); opacity: 1; }
  100% { -webkit-transform: none; opacity: 1; }
}
@keyframes boxenter {
  0% { transform: scale(0.35) translateY(70px) rotate(-10deg); opacity: 0; }
  65% { transform: scale(1.12, 0.92) translateY(-6px) rotate(2deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@-webkit-keyframes boxblast {
  0% { -webkit-transform: scale(1); opacity: 1; }
  35% { -webkit-transform: scale(1.24, 0.78); opacity: 1; }
  100% { -webkit-transform: scale(1.6) translateY(-45px) rotate(12deg); opacity: 0; }
}
@keyframes boxblast {
  0% { transform: scale(1); opacity: 1; }
  35% { transform: scale(1.24, 0.78); opacity: 1; }
  100% { transform: scale(1.6) translateY(-45px) rotate(12deg); opacity: 0; }
}
@-webkit-keyframes bagenter {
  0% { -webkit-transform: scale(0.25) translateY(50px) rotate(-8deg); opacity: 0; }
  65% { -webkit-transform: scale(1.14, 0.9) translateY(-8px) rotate(3deg); opacity: 1; }
  100% { -webkit-transform: none; opacity: 1; }
}
@keyframes bagenter {
  0% { transform: scale(0.25) translateY(50px) rotate(-8deg); opacity: 0; }
  65% { transform: scale(1.14, 0.9) translateY(-8px) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@-webkit-keyframes evolve {
  0% { -webkit-transform: scale(1); }
  25% { -webkit-transform: scale(0.84) rotate(-8deg); }
  55% { -webkit-transform: scale(1.26) rotate(6deg); }
  80% { -webkit-transform: scale(0.95) rotate(-2deg); }
  100% { -webkit-transform: scale(1); }
}
@keyframes evolve {
  0% { transform: scale(1); }
  25% { transform: scale(0.84) rotate(-8deg); }
  55% { transform: scale(1.26) rotate(6deg); }
  80% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1); }
}
@-webkit-keyframes charge {
  0% { -webkit-transform: scale(1); }
  100% { -webkit-transform: scale(1.26, 0.72); }
}
@keyframes charge {
  0% { transform: scale(1); }
  100% { transform: scale(1.26, 0.72); }
}
@-webkit-keyframes sheen {
  0% { left: -65%; }
  45%, 100% { left: 135%; }
}
@keyframes sheen {
  0% { left: -65%; }
  45%, 100% { left: 135%; }
}
@-webkit-keyframes heroReveal {
  0% { -webkit-transform: scale(0.15) translateY(40px); opacity: 0; }
  55% { -webkit-transform: scale(1.24, 0.88) translateY(-10px); opacity: 1; }
  78% { -webkit-transform: scale(0.94, 1.06) translateY(2px); }
  100% { -webkit-transform: none; opacity: 1; }
}
@keyframes heroReveal {
  0% { transform: scale(0.15) translateY(40px); opacity: 0; }
  55% { transform: scale(1.24, 0.88) translateY(-10px); opacity: 1; }
  78% { transform: scale(0.94, 1.06) translateY(2px); }
  100% { transform: none; opacity: 1; }
}
@-webkit-keyframes bulkpop {
  0% { -webkit-transform: scale(0.25) rotate(-8deg); opacity: 0; }
  65% { -webkit-transform: scale(1.16) rotate(2deg); opacity: 1; }
  100% { -webkit-transform: none; opacity: 1; }
}
@keyframes bulkpop {
  0% { transform: scale(0.25) rotate(-8deg); opacity: 0; }
  65% { transform: scale(1.16) rotate(2deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@-webkit-keyframes stampdrop {
  0% { -webkit-transform: scale(2.1) translateY(-16px); opacity: 0; }
  100% { -webkit-transform: none; opacity: 1; }
}
@keyframes stampdrop {
  0% { transform: scale(2.1) translateY(-16px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@-webkit-keyframes halopulse {
  0%, 100% { -webkit-transform: scale(0.95); opacity: 0.78; }
  50% { -webkit-transform: scale(1.08); opacity: 1; }
}
@keyframes halopulse {
  0%, 100% { transform: scale(0.95); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}
@-webkit-keyframes tapepulse { 50% { opacity: 0.5; } }
@keyframes tapepulse { 50% { opacity: 0.5; } }
@-webkit-keyframes hit { 50% { -webkit-transform: scale(1.12, 0.88); } }
@keyframes hit { 50% { transform: scale(1.12, 0.88); } }
@-webkit-keyframes floatup { from { -webkit-transform: translate(-50%, 0) scale(0.8); opacity: 1; } 25% { -webkit-transform: translate(-50%, -16px) scale(1.15); opacity: 1; } to { -webkit-transform: translate(-50%, -66px) scale(1); opacity: 0; } }
@keyframes floatup { from { transform: translate(-50%, 0) scale(0.8); opacity: 1; } 25% { transform: translate(-50%, -16px) scale(1.15); opacity: 1; } to { transform: translate(-50%, -66px) scale(1); opacity: 0; } }
@-webkit-keyframes bubble { 0% { opacity: 0; -webkit-transform: translateY(8px) scale(0.85); } 10%, 85% { opacity: 1; -webkit-transform: none; } 100% { opacity: 0; -webkit-transform: translateY(-6px); } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px) scale(0.85); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@-webkit-keyframes flashbang { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashbang { 0% { opacity: 1; } 100% { opacity: 0; } }
@-webkit-keyframes pop { from { -webkit-transform: scale(0.82); opacity: 0; } }
@keyframes pop { from { transform: scale(0.82); opacity: 0; } }

/* 展柜底部的「返回」：窄按钮，不和主按钮平分宽度 */
#modal-actions .btn.back { -webkit-flex: none; flex: none; padding-left: 14px; padding-right: 16px; }
