/* 玉石开开开 — 样式（Chrome 61 基线：不用 flex gap / clamp / inset / aspect-ratio / dvh） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --jade: #22b573; --jade-d: #14875a; --ink: #1f332b; --muted: #7b8a83;
  --cream: #fffaf1; --red: #e0492f; --gold: #ffd35a;
  --panel-h: 310px; --sat: 0px; --sab: 0px;
}
html, body { height: 100%; overflow: hidden; }
body {
  background: #10302a;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
}
html { touch-action: manipulation; }
button { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; outline: 0; }
/* iOS（含 WKWebView）只给「可点击」的元素派发 click：委托到 document 的 div 按钮要有 cursor: pointer，否则 iPhone 上点了没反应 */
[data-act], [data-mact] { cursor: pointer; }
button:focus { outline: 0; }

/* ---------- 布局 ---------- */
.app {
  position: relative; display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: #378e77; transition: background-color 0.6s;
}
/* 顶部不再固定留空：.safe-top 只是量 env 安全区用的探针（不占位）；.top-gap 的高度和 HUD 左右让位
   由 main.js 按 getWindowInfo 返回的安全区、原生按钮矩形算出来（--hud-t / --hud-l / --hud-r）。
   拿不到窗口信息的老客户端按原来的 30px 留空；JS 跑起来之前也先按 30px 排 */
.safe-top { position: absolute; left: 0; top: 0; width: 0; visibility: hidden; pointer-events: none; height: 0; height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); }
.top-gap { flex: none; height: 30px; height: var(--hud-t, 30px); }
.hud {
  flex: none; height: 46px; padding: 0 10px; padding-left: var(--hud-l, 10px); padding-right: var(--hud-r, 10px);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 47;
}
.hud-pill {
  display: flex; align-items: center; height: 32px; padding: 0 11px; max-width: calc(50% - 64px); overflow: hidden;
  border-radius: 16px; background: rgba(0, 0, 0, 0.3); color: #fff; font-weight: 800; font-size: 15px;
  white-space: nowrap; transition: transform 0.12s;
}
.hud-pill.money { color: #ffe27a; }
.hud-pill.money.bump { transform: scale(1.12); }
.coin-ic {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: 6px; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc93c 50%, #d89400);
  box-shadow: inset 0 0 0 2px #c98a00;
}
.hud-pill.lv { flex-direction: column; align-items: flex-start; justify-content: center; font-size: 11.5px; padding: 0 10px; }
.lvbar { display: block; width: 66px; height: 4px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.lvbar i { display: block; width: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #ffd35a, #fff1a8); transition: width 0.6s; }
.menu-btn {
  position: absolute; left: 50%; top: 50%; z-index: 4; display: flex; align-items: center;
  height: 38px; padding: 0 16px 0 13px; border: 2.5px solid #1f5a46; border-radius: 19px;
  background: #fffaf1; color: #1f5a46; font-size: 15px; font-weight: 900; letter-spacing: 1px; white-space: nowrap;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  box-shadow: 0 3px 0 #1f5a46, 0 6px 14px rgba(0, 0, 0, 0.22);
}
.menu-btn:active { -webkit-transform: translate(-50%, -48%) scale(0.96); transform: translate(-50%, -48%) scale(0.96); }
.mb-ic { position: relative; display: inline-block; width: 17px; height: 13px; margin-right: 6px; }
.mb-ic i { position: absolute; left: 0; right: 0; height: 2.6px; border-radius: 2px; background: #1f5a46; transition: transform 0.2s, opacity 0.2s; }
.mb-ic i:nth-child(1) { top: 0; }
.mb-ic i:nth-child(2) { top: 5.2px; }
.mb-ic i:nth-child(3) { top: 10.4px; }
.menu-btn.open .mb-ic i:nth-child(1) { -webkit-transform: translateY(5.2px) rotate(45deg); transform: translateY(5.2px) rotate(45deg); }
.menu-btn.open .mb-ic i:nth-child(2) { opacity: 0; }
.menu-btn.open .mb-ic i:nth-child(3) { -webkit-transform: translateY(-5.2px) rotate(-45deg); transform: translateY(-5.2px) rotate(-45deg); }
.mdot { display: none; width: 8px; height: 8px; margin-left: 5px; border-radius: 4px; background: #ff3b30; }
.mdot.on { display: inline-block; }
/* 这一排放在原生按钮之间、又不够三样并排时：金币靠左、「菜单」靠右，等级牌挪到这一排的右下角（浮在舞台上，不占高度） */
/* （hud-split 挂在 <html> 上：#app 的 class 会被各个界面整个改写） */
.hud-split .hud { justify-content: flex-start; }
.hud-split .hud-pill.money { flex: 0 1 auto; min-width: 0; max-width: none; }
.hud-split .menu-btn { position: relative; left: auto; top: auto; flex: none; margin-left: auto; -webkit-transform: none; transform: none; }
.hud-split .menu-btn:active { -webkit-transform: translateY(2px) scale(0.96); transform: translateY(2px) scale(0.96); }
.hud-split .hud-pill.lv { position: absolute; right: 8px; top: 100%; margin-top: 6px; max-width: none; height: 30px; background: rgba(0, 0, 0, 0.36); pointer-events: none; }
.hud-split .hint { top: 44px; }
.hud-split .pachi-pow { top: 44px; }

/* ---------- 下拉菜单（顶部正中展开，收起按钮在正下方中间） ---------- */
.menu-scrim { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 44; display: none; background: rgba(6, 18, 14, 0.3); }
.menu-scrim.show { display: block; }
.menu {
  position: fixed; left: 8px; right: 8px; z-index: 46; display: none; max-width: 320px; margin: 0 auto; padding: 12px 6px 12px;
  border: 2.5px solid #1f5a46; border-radius: 20px; background: #fffaf1; text-align: center;
  box-shadow: 0 4px 0 #1f5a46, 0 14px 34px rgba(0, 0, 0, 0.35);
}
.menu.show { display: block; animation: menuIn 0.18s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
.menu-head { margin: 0 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.menu-head b { color: var(--jade-d); }
.menu-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.mi {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 62px; margin: 0 1.5px 6px; border: 0; border-radius: 14px;
  background: #eef5ef; color: var(--ink); font-size: 11.5px; font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(31, 90, 70, 0.14);
}
.mi i { font-style: normal; font-size: 22px; line-height: 1.2; margin-bottom: 2px; }
.mi:active { transform: translateY(2px); }
.mi.off { opacity: 0.5; }
.mi.danger { background: #fdecea; color: #c0392b; }
.mi .badge { position: absolute; top: 3px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 10px; font-style: normal; line-height: 16px; }
.close-pill {
  display: block; width: 150px; height: 40px; margin: 10px auto 0; border: 0; border-radius: 20px;
  background: #1f5a46; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 2px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.close-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }

.stage { flex: 1 1 auto; position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.stage[data-tool="cut"] { cursor: crosshair; }
.stage[data-tool="window"] { cursor: pointer; }
.gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.c2d { display: none; }

.panel {
  flex: none; height: var(--panel-h); position: relative; z-index: 2;
  display: flex; flex-direction: column;
  background: var(--cream); border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
}
.panel-inner {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 13px 14px 8px;
}
.panel-inner.swap { animation: panelIn 0.28s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.safe-bottom { flex: none; height: 0; height: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); }
.safe-bottom.set { height: var(--sab); }
.app:not(.on) .panel { display: none; }
.app:not(.on) .hud .hud-pill { visibility: hidden; }
/* 检视时「收起」面板：舞台铺满整屏看背景，底部留一个「展开」小按钮 */
.app.fold .panel { display: none; }
.unfold-pill {
  display: none; position: absolute; left: 50%; bottom: 14px; z-index: 5; height: 36px; padding: 0 18px; border: 0; border-radius: 18px;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45); color: #ffe6b0; font-size: 14px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.app.fold .unfold-pill { display: block; }
.pill-row { display: flex; justify-content: center; }
.pill-row .close-pill { width: 132px; margin: 10px 6px 0; }
.close-pill.light { background: #fff; color: #1f5a46; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12); }
body.busy .panel-inner button { pointer-events: none; }

/* ---------- 舞台覆盖层 ---------- */
.cutline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.cutline.show { opacity: 1; }
#cl-line { stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-dasharray: 8 8; animation: dash 0.6s linear infinite; }
#cl-seg { stroke: #ff6b57; stroke-width: 4; stroke-linecap: round; }
.cutline.ok #cl-seg { stroke: #ffd35a; }
.cutline circle { fill: #fff; stroke: #ff6b57; stroke-width: 3; }
.cutline.ok circle { stroke: #ffb300; }
@keyframes dash { to { stroke-dashoffset: -32; } }

.flashlight { position: absolute; left: 0; top: 0; width: 34px; height: 112px; pointer-events: none; opacity: 0; transition: opacity 0.12s; will-change: transform; }
.flashlight.show { opacity: 1; }
.flashlight svg { display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); -webkit-filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.flashlight .beam {
  position: absolute; left: -38px; top: -136px; width: 110px; height: 140px; opacity: 0.85; transition: opacity 0.15s;
  background: linear-gradient(0deg, rgba(255, 246, 196, 0.6), rgba(255, 246, 196, 0));
  -webkit-clip-path: polygon(42% 100%, 58% 100%, 100% 0, 0 0);
  clip-path: polygon(42% 100%, 58% 100%, 100% 0, 0 0);
}
.flashlight.hit .beam { opacity: 0; }

.ticker {
  position: absolute; left: 50%; bottom: 10px; z-index: 3; display: none; max-width: 94%;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  padding: 5px 12px; border-radius: 14px; background: rgba(8, 26, 21, 0.66); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker.show { display: block; }
.ticker .up { color: #ffd35a; }
.ticker .dn { color: #9fd3ff; }
.ticker .bf { color: #ffb8a8; }
.hint {
  position: absolute; left: 50%; top: 12px; max-width: 90%; z-index: 4;
  -webkit-transform: translate(-50%, -8px); transform: translate(-50%, -8px);
  padding: 9px 14px; border-radius: 14px; background: rgba(15, 36, 30, 0.86); color: #fff;
  font-size: 14px; line-height: 1.5; text-align: center; white-space: nowrap;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.hint.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
.hint b { color: #ffd35a; }
@media (max-width: 360px) { .hint { white-space: normal; width: 90%; font-size: 13px; } }

.fx { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.float-text {
  position: absolute; font-weight: 900; font-size: 24px; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 10px rgba(0, 0, 0, 0.25);
  animation: floatUp 1.5s ease-out forwards;
}
.float-text.q3 { color: #ffe066; font-size: 30px; }
.float-text.q2 { color: #9ff5c1; }
.float-text.q0 { color: #c9d1d6; }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}
.big-text {
  position: absolute; left: 50%; top: 40%; white-space: nowrap; text-align: center;
  font-size: 46px; font-weight: 900; letter-spacing: 3px; color: #fff; line-height: 1.1;
  text-shadow: 0 4px 0 #0c3a2e, 0 0 22px rgba(255, 220, 120, 0.85);
  animation: bigPop 2.2s ease forwards;
}
.big-text small { display: block; font-size: 20px; letter-spacing: 1px; margin-top: 6px; }
.big-text.up, .big-text.lv { color: #ffe066; }
.big-text.down { color: #d5dde1; text-shadow: 0 4px 0 #2b3a40, 0 0 16px rgba(0, 0, 0, 0.4); }
.big-text.even { color: #b9f7d3; }
.big-text.rare {
  color: #fff3c4; text-shadow: 0 4px 0 #3b1a6e, 0 0 26px rgba(214, 150, 255, 0.95);
  -webkit-animation: bigPop 2.2s ease forwards, bigHue 1.1s linear infinite; animation: bigPop 2.2s ease forwards, bigHue 1.1s linear infinite;
}
.big-text.rare small { color: #fff; }
@-webkit-keyframes bigHue { 0%, 100% { color: #ffd6e6; } 33% { color: #fff3a6; } 66% { color: #b9ffe3; } }
@keyframes bigHue { 0%, 100% { color: #ffd6e6; } 33% { color: #fff3a6; } 66% { color: #b9ffe3; } }
@keyframes bigPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  22% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -85%) scale(1); }
}
.gl-status {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; z-index: 5;
  padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 14px;
}
.gl-status.show { display: block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; padding: 6px 14px; border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.15; color: #fff;
  background: linear-gradient(180deg, #34c989, #17a060);
  box-shadow: 0 4px 0 #0f7c4a, 0 6px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0f7c4a; }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: 0.85; margin-top: 2px; letter-spacing: 0; }
.btn.gold { color: #5b3900; background: linear-gradient(180deg, #ffe27e, #f7b500); box-shadow: 0 4px 0 #c98a00, 0 6px 12px rgba(0, 0, 0, 0.12); }
.btn.gold:active { box-shadow: 0 1px 0 #c98a00; }
.btn.ghost { color: var(--ink); background: #edf2ee; box-shadow: 0 4px 0 #cbd9d0; }
.btn.ghost:active { box-shadow: 0 1px 0 #cbd9d0; }
.btn.red { background: linear-gradient(180deg, #ff8b75, #ea5440); box-shadow: 0 4px 0 #b83b2b; }
.btn.red:active { box-shadow: 0 1px 0 #b83b2b; }
.btn.dim { opacity: 0.55; -webkit-filter: grayscale(0.5); filter: grayscale(0.5); }
.btn.big { min-height: 54px; font-size: 19px; border-radius: 18px; }
.btn.sq { width: 44px; padding: 0; font-size: 28px; font-weight: 400; flex: none; }
.btn.grow { flex: 1 1 auto; min-width: 0; }
.flash-btn { background: linear-gradient(180deg, #5c6c7d, #394655); box-shadow: 0 4px 0 #242d37; flex: none; padding: 6px 12px; }
.flash-btn:active { box-shadow: 0 1px 0 #242d37; }
.flash-btn.on { color: #4a3500; background: linear-gradient(180deg, #fff09a, #ffc400); box-shadow: 0 4px 0 #b88c00; }
.row { display: flex; align-items: stretch; margin-top: 10px; }
.row > * + * { margin-left: 8px; }
.subrow { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.link { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 6px 2px; text-decoration: underline; }
.link.light { color: rgba(255, 255, 255, 0.85); margin-top: 10px; }

/* ---------- 卡片 ---------- */
.tabs { display: flex; padding: 3px; border-radius: 12px; background: #efe8da; }
.tab { flex: 1 1 0; border: 0; background: transparent; padding: 7px 2px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tab.on { background: #fff; color: var(--jade-d); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.tab.locked { opacity: 0.55; }
.tab small { font-size: 10px; margin-left: 3px; color: #b98a2b; }
.card { margin-top: 10px; padding: 11px 13px; border-radius: 16px; background: #fff; border: 1px solid #f0eadf; box-shadow: 0 2px 8px rgba(31, 51, 43, 0.06); }
.sc-top { display: flex; justify-content: space-between; align-items: baseline; }
.sc-name { font-size: 17px; font-weight: 900; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-w { flex: none; margin-left: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; margin-top: 7px; }
.tag { margin: 0 6px 5px 0; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag.good { background: #e3f7ea; color: #178a4f; }
.tag.bad { background: #fde8e5; color: #d0412f; }
.tag.mid { background: #f1efe8; color: #7b7466; }
.tag.gold { background: #fff1c2; color: #a46a00; }
.tag.sale { background: #ffe3dc; color: #d23f22; }
.sc-note { font-size: 12.5px; color: var(--muted); }
.sc-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.price { font-size: 27px; font-weight: 900; color: var(--red); line-height: 1; }
.price small { font-size: 12px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.dots i { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 4px; background: #ddd6c6; vertical-align: middle; }
.dots i.on { width: 16px; background: var(--jade); }
.stone-card.compact .tags { margin-top: 5px; margin-bottom: -5px; }

.tools { display: flex; margin-top: 10px; }
.tool {
  flex: 1 1 0; min-width: 0; margin-left: 8px; padding: 8px 2px 7px; border: 0; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center;
  background: #f3efe6; color: var(--ink); box-shadow: 0 3px 0 #e1d9c9;
}
.tool:first-child { margin-left: 0; }
.tool i { font-style: normal; font-size: 24px; line-height: 1.15; }
.tool span { margin-top: 3px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.tool.hot { background: #fff0e2; box-shadow: 0 3px 0 #f1d6bb; }
.tool.on { background: #1faa6f; color: #fff; box-shadow: 0 3px 0 #0f7c4a; }
.tool.off { opacity: 0.45; }
.tool:active { transform: translateY(2px); }
.tool-tip { margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.tool-tip b { color: var(--jade-d); }

.res-head { padding: 2px 0; font-size: 23px; font-weight: 900; text-align: center; }
.res-head.up { color: var(--red); }
.res-head.down { color: #6b7b86; }
.res-head.even { color: var(--jade-d); }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed #efe7d8; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; margin-right: 10px; }
.kv b { text-align: right; }
.kv small { font-weight: 600; color: var(--muted); }
em.bad { font-style: normal; color: #d0412f; }
.report { padding: 6px 13px; }
.stats4 { display: flex; flex-wrap: wrap; margin: 6px -6px 0 0; }
.stat { width: calc(50% - 6px); margin: 0 6px 6px 0; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid #f0eadf; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.stat span { color: var(--muted); margin-right: 6px; white-space: nowrap; }
.stat b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-weight: 600; color: var(--muted); }
.offer { display: flex; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 14px; background: #fff4d6; font-size: 14px; line-height: 1.45; }
.offer .boss { flex: none; font-size: 30px; margin-right: 10px; }
.offer .money { color: var(--red); font-size: 17px; }
.offer small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 加工 ---------- */
.piece-info { display: flex; flex-wrap: wrap; align-items: center; font-size: 13.5px; }
.piece-info b { margin-right: 8px; font-size: 15.5px; }
.piece-info span { margin-right: 8px; color: var(--muted); }
.stars { color: #f0a500; letter-spacing: 1px; white-space: nowrap; }
.opts { display: flex; flex-wrap: wrap; margin: 8px -8px 0 0; }
.opt {
  position: relative; width: calc(33.333% - 8px); margin: 0 8px 8px 0; padding: 5px 2px 6px;
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid transparent; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.opt-ic svg { display: block; width: 36px; height: 36px; }
.opt-name { margin-top: 1px; font-size: 12.5px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.opt-val { font-size: 11px; font-weight: 800; color: var(--red); white-space: nowrap; }
.opt.off { opacity: 0.42; }
.opt.off .opt-val { color: var(--muted); }
.opt.on { border-color: var(--jade); background: #eefaf3; }
.opt .badge { position: absolute; top: -7px; right: -4px; padding: 2px 6px; border-radius: 8px; background: #ff7a45; color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.opt .badge2 { position: absolute; top: -7px; left: -4px; padding: 1px 5px; border-radius: 8px; background: #fff; color: #333; font-size: 11px; font-style: normal; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.opts.four .opt { width: calc(25% - 8px); }
.opts.four .opt-name { font-size: 11.5px; }
.opts.four .opt-val { font-size: 10.5px; }
/* 贴底操作行：面板内容放不下（小屏、系统字体放大）时，按钮依然钉在面板底部可见 */
.row.stick {
  position: -webkit-sticky; position: sticky; bottom: 0; z-index: 2;
  margin-left: -4px; margin-right: -4px; padding: 3px 4px 5px; background: var(--cream);
}
.row.stick::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; pointer-events: none;
  background: linear-gradient(rgba(255, 250, 241, 0), #fffaf1);
}
.btn.sell { flex: none; min-width: 102px; padding: 6px 10px; }
.scrap-card {
  display: flex; align-items: center; margin-top: 10px; padding: 12px; border-radius: 16px;
  background: #fff5df; border: 1.5px dashed #e8c77a; font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.scrap-card .opt-ic { flex: none; margin-right: 12px; }
.scrap-card .opt-ic svg { width: 46px; height: 46px; }
.scrap-card b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }

/* 9 种款式：加工台改成一排 5 个 */
.opts.five { margin-right: -5px; }
.opts.five .opt { width: calc(20% - 5px); margin: 0 5px 6px 0; padding: 4px 1px 5px; }
.opts.five .opt-ic svg { width: 30px; height: 30px; }
.opts.five .opt-name { font-size: 11px; }
.opts.five .opt-val { font-size: 10px; }
.opts.five .opt .badge { right: -3px; padding: 1px 4px; font-size: 9.5px; }

/* ---------- 包矿区 ---------- */
.mine-intro-row { display: flex; align-items: center; margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: left; }
.mine-intro-row span { flex: 1 1 auto; min-width: 0; }
.mine-intro-row b { color: var(--jade-d); }
.mine-intro-row .mini { flex: none; width: auto; margin-left: 8px; padding: 7px 10px; }
.conc-sum { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.conc-sum b { color: var(--ink); }
.conc-sum b.money { color: var(--red); }
.conc-grid { display: flex; flex-wrap: wrap; margin: 8px -8px 0 0; }
.cbtn {
  display: flex; flex-direction: column; align-items: center; width: calc(50% - 8px); margin: 0 8px 8px 0; padding: 7px 4px 6px;
  border: 0; border-radius: 14px; background: #fff3dc; color: var(--ink); box-shadow: 0 3px 0 #ecd6ad;
}
.cbtn i { font-style: normal; font-size: 22px; line-height: 1.15; }
.cbtn b { font-size: 13.5px; }
.cbtn small { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cbtn:active { transform: translateY(2px); }
.cbtn.off { opacity: 0.45; }
.yd { display: flex; align-items: center; margin-bottom: 6px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1px solid #f0eadf; text-align: left; }
.yd .yi { flex: none; margin-right: 8px; }
.yd .yi svg { display: block; width: 32px; height: 32px; }
.yd .od { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.yd .od b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yd .mini { flex: none; width: auto; min-width: 46px; margin-left: 8px; padding: 6px 8px; }
.rare-line { margin-top: 8px; font-size: 14px; font-weight: 900; color: #8a4de0; text-align: center; }
.ci-stg { position: absolute; top: 12px; left: 12px; padding: 1px 6px; border-radius: 8px; background: #e7dcc6; color: #5a4636; font-size: 11px; font-style: normal; font-weight: 900; pointer-events: none; }
.ci-stg.cut { background: #ffe0b8; color: #8a4a00; }
.ci-stg.piece { background: #d8f3e3; color: #157a48; }

/* ---------- 矿洞（洞采玉） ---------- */
.stage[data-tool="mine"] { cursor: pointer; }
.tab { position: relative; }
.tab .tdot { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; border-radius: 4px; background: #ff7a45; }
.mine-intro { margin-top: 8px; text-align: left; }
.lyr { display: flex; align-items: center; margin-top: 7px; padding: 7px 10px; border-radius: 14px; background: #fff; border: 1px solid #f0eadf; text-align: left; }
.lyr .ui { flex: none; margin-right: 10px; font-size: 24px; line-height: 1; }
.lyr .ud { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr .ud b { display: block; font-size: 14px; color: var(--ink); }
.lyr .ud b small { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.lyr .mini { flex: none; width: auto; min-width: 66px; margin-left: 8px; padding: 6px 8px; line-height: 1.3; }
.lyr.locked { opacity: 0.55; }
.mine-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.mine-head b { font-size: 15.5px; color: var(--ink); }
.bars { display: flex; margin-top: 7px; }
.bar { position: relative; flex: 1 1 0; height: 22px; border-radius: 11px; background: #ece4d4; overflow: hidden; }
.bar + .bar { margin-left: 8px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 11px; transition: width 0.2s; }
.bar.sta i { background: linear-gradient(90deg, #3cc47f, #8fe0a8); }
.bar.bat i { background: linear-gradient(90deg, #f2b51d, #ffe27a); }
.bar span { position: relative; display: block; padding-left: 10px; font-size: 11.5px; font-weight: 900; line-height: 22px; color: #2c3a33; white-space: nowrap; }
.mine-tools { margin-top: 8px; }
.tool small { display: block; margin-top: 1px; font-size: 10px; font-weight: 700; opacity: 0.7; white-space: nowrap; }
.found { text-align: center; }
.found-img { display: block; width: 150px; height: 150px; margin: -4px auto 0; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #6a5845, #241c15); }
.found-ic svg { display: block; width: 84px; height: 84px; margin: 0 auto; }
.found-name { margin-top: 6px; font-size: 15px; font-weight: 900; color: var(--ink); }
.found .tags { justify-content: center; }
.found-est b { font-size: 21px; color: var(--red); }

/* ---------- 收藏：上锁 / 检视 / 原石仓库 / 存档 ---------- */
.mtabs.five button { padding: 7px 0; font-size: 12px; }
.coll-item { position: relative; }
.ci-thumb { cursor: pointer; }
.ci-thumb.stone { background: radial-gradient(circle at 50% 40%, #6a5845, #241c15); }
.ci-thumb.stone svg { width: 58px; height: 58px; }
.ci-zoom { position: absolute; top: 12px; right: 12px; font-size: 13px; font-style: normal; opacity: 0.85; pointer-events: none; }
.ci-lk { position: absolute; top: 12px; left: 12px; padding: 1px 5px; border-radius: 8px; background: #ffd35a; color: #5b3900; font-size: 11px; font-style: normal; font-weight: 900; pointer-events: none; }
.coll-item.locked .ci-thumb { box-shadow: inset 0 0 0 3px #ffd35a; }
.mini.on { background: #ffe9a6; color: #8a5a00; }
.mini.dim { opacity: 0.45; }
.slot { display: flex; align-items: center; margin-bottom: 8px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 1px solid #f0eadf; text-align: left; }
.sl-no { flex: none; width: 26px; height: 26px; margin-right: 10px; border-radius: 13px; background: #1f5a46; color: #fff; font-size: 14px; font-weight: 900; line-height: 26px; text-align: center; }
.sl-info { flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.slot.empty .sl-info { color: var(--muted); }
.slot.empty .sl-no { background: #cfd8d3; }
.sl-btns { flex: none; display: flex; flex-direction: column; margin-left: 8px; }
.sl-btns .mini { flex: none; min-width: 60px; padding: 6px 8px; }
.sl-btns .mini + .mini { margin-left: 0; margin-top: 6px; }
/* 存档码 */
.code-box { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff7e2; border: 1px dashed #e8c76a; text-align: center; }
.code-box b { font-size: 14px; color: #8a5a00; }
.code-box .muted { margin: 4px 0 8px; font-size: 12px; line-height: 1.5; }
.code-btns { display: flex; justify-content: center; }
.code-btns .mini { flex: none; padding: 7px 12px; }
.code-btns .mini + .mini { margin-left: 8px; }
.code-ta { display: block; box-sizing: border-box; width: 100%; height: 120px; padding: 8px; border-radius: 10px; border: 1px solid #e3d9c6; background: #fff;
  font: 11px/1.35 monospace; color: #3b3b3b; word-break: break-all; resize: none; -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
.code-tip { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); text-align: left; }
.code-tip b { color: var(--red); }

/* ---------- 稀有色：角标 / 彩色名字 / 图标动画 ---------- */
.rbadge {
  display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 9px; vertical-align: 1px;
  font-size: 10.5px; font-style: normal; font-weight: 900; line-height: 17px; color: #fff; white-space: nowrap;
}
.rbadge.r1 { background: #1fb5a0; }
.rbadge.r2 { background: #6a5cff; background: linear-gradient(90deg, #4f7bff, #a85cff); }
.rbadge.r3 {
  background: #ff6f91; background: linear-gradient(90deg, #ff5f6d, #ffb347, #3ddc84, #4facfe, #c471f5, #ff5f6d);
  background-size: 300% 100%; -webkit-animation: rbShift 3s linear infinite; animation: rbShift 3s linear infinite;
}
@-webkit-keyframes rbShift { from { background-position: 0 0; } to { background-position: 150% 0; } }
@keyframes rbShift { from { background-position: 0 0; } to { background-position: 150% 0; } }
.ic-name .rbadge { margin: 0 0 0 6px; vertical-align: 3px; }
.rname { font-weight: 900; -webkit-animation: rnHue 3.2s linear infinite; animation: rnHue 3.2s linear infinite; }
@-webkit-keyframes rnHue { 0%, 100% { color: #e0457b; } 25% { color: #d98a00; } 50% { color: #1aa765; } 75% { color: #2f7fe0; } }
@keyframes rnHue { 0%, 100% { color: #e0457b; } 25% { color: #d98a00; } 50% { color: #1aa765; } 75% { color: #2f7fe0; } }
.fx1 svg, .fx1 img { -webkit-animation: fxGlow 2.4s ease-in-out infinite; animation: fxGlow 2.4s ease-in-out infinite; }
.fx2 svg, .fx2 img { -webkit-animation: fxShift 5s ease-in-out infinite alternate; animation: fxShift 5s ease-in-out infinite alternate; }
.fx3 svg, .fx3 img { -webkit-animation: fxTwinkle 1.7s ease-in-out infinite; animation: fxTwinkle 1.7s ease-in-out infinite; }
.fx4 svg, .fx4 img { -webkit-animation: fxHue 4s linear infinite; animation: fxHue 4s linear infinite; }
.fx5 svg, .fx5 img { -webkit-animation: fxGold 1.8s ease-in-out infinite; animation: fxGold 1.8s ease-in-out infinite; }
.fx6 svg, .fx6 img { -webkit-animation: fxFire 0.9s ease-in-out infinite alternate; animation: fxFire 0.9s ease-in-out infinite alternate; }
.fx7 svg, .fx7 img { -webkit-animation: fxBolt 2.2s linear infinite; animation: fxBolt 2.2s linear infinite; }
.fx8 svg, .fx8 img { -webkit-animation: fxPrism 2.4s linear infinite; animation: fxPrism 2.4s linear infinite; }
@-webkit-keyframes fxGold { 0%, 100% { -webkit-filter: drop-shadow(0 0 1px #ffd76a); } 50% { -webkit-filter: drop-shadow(0 0 6px #ffd76a) brightness(1.3); } }
@keyframes fxGold {
  0%, 100% { -webkit-filter: drop-shadow(0 0 1px #ffd76a); filter: drop-shadow(0 0 1px #ffd76a); }
  50% { -webkit-filter: drop-shadow(0 0 6px #ffd76a) brightness(1.3); filter: drop-shadow(0 0 6px #ffd76a) brightness(1.3); }
}
@-webkit-keyframes fxFire { from { -webkit-filter: hue-rotate(-12deg) brightness(1); } to { -webkit-filter: hue-rotate(18deg) brightness(1.3) drop-shadow(0 0 4px #ff8a30); } }
@keyframes fxFire {
  from { -webkit-filter: hue-rotate(-12deg) brightness(1); filter: hue-rotate(-12deg) brightness(1); }
  to { -webkit-filter: hue-rotate(18deg) brightness(1.3) drop-shadow(0 0 4px #ff8a30); filter: hue-rotate(18deg) brightness(1.3) drop-shadow(0 0 4px #ff8a30); }
}
@-webkit-keyframes fxBolt { 0%, 70%, 78%, 100% { -webkit-filter: brightness(1); } 72%, 76% { -webkit-filter: brightness(2.2) drop-shadow(0 0 5px #c39bff); } }
@keyframes fxBolt {
  0%, 70%, 78%, 100% { -webkit-filter: brightness(1); filter: brightness(1); }
  72%, 76% { -webkit-filter: brightness(2.2) drop-shadow(0 0 5px #c39bff); filter: brightness(2.2) drop-shadow(0 0 5px #c39bff); }
}
@-webkit-keyframes fxPrism { from { -webkit-filter: hue-rotate(0deg) saturate(2) brightness(1.1); } to { -webkit-filter: hue-rotate(360deg) saturate(2) brightness(1.1); } }
@keyframes fxPrism {
  from { -webkit-filter: hue-rotate(0deg) saturate(2) brightness(1.1); filter: hue-rotate(0deg) saturate(2) brightness(1.1); }
  to { -webkit-filter: hue-rotate(360deg) saturate(2) brightness(1.1); filter: hue-rotate(360deg) saturate(2) brightness(1.1); }
}
@-webkit-keyframes fxGlow { 0%, 100% { -webkit-filter: drop-shadow(0 0 1px rgba(141, 255, 224, 0.6)); } 50% { -webkit-filter: drop-shadow(0 0 6px #8dffe0) brightness(1.15); } }
@keyframes fxGlow {
  0%, 100% { -webkit-filter: drop-shadow(0 0 1px rgba(141, 255, 224, 0.6)); filter: drop-shadow(0 0 1px rgba(141, 255, 224, 0.6)); }
  50% { -webkit-filter: drop-shadow(0 0 6px #8dffe0) brightness(1.15); filter: drop-shadow(0 0 6px #8dffe0) brightness(1.15); }
}
@-webkit-keyframes fxShift { from { -webkit-filter: hue-rotate(-50deg); } to { -webkit-filter: hue-rotate(120deg); } }
@keyframes fxShift {
  from { -webkit-filter: hue-rotate(-50deg); filter: hue-rotate(-50deg); }
  to { -webkit-filter: hue-rotate(120deg); filter: hue-rotate(120deg); }
}
@-webkit-keyframes fxTwinkle { 0%, 100% { -webkit-filter: brightness(1); } 50% { -webkit-filter: brightness(1.6) drop-shadow(0 0 4px #cfe0ff); } }
@keyframes fxTwinkle {
  0%, 100% { -webkit-filter: brightness(1); filter: brightness(1); }
  50% { -webkit-filter: brightness(1.6) drop-shadow(0 0 4px #cfe0ff); filter: brightness(1.6) drop-shadow(0 0 4px #cfe0ff); }
}
@-webkit-keyframes fxHue { from { -webkit-filter: hue-rotate(0deg) saturate(1.4); } to { -webkit-filter: hue-rotate(360deg) saturate(1.4); } }
@keyframes fxHue {
  from { -webkit-filter: hue-rotate(0deg) saturate(1.4); filter: hue-rotate(0deg) saturate(1.4); }
  to { -webkit-filter: hue-rotate(360deg) saturate(1.4); filter: hue-rotate(360deg) saturate(1.4); }
}

.carve-title { font-size: 15px; font-weight: 900; text-align: center; }
.carve-bar { position: relative; height: 42px; margin: 14px 4px 10px; border-radius: 21px; background: #efe8da; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.14); }
.carve-bar .zone { position: absolute; top: 0; bottom: 0; background: rgba(34, 181, 115, 0.6); }
.carve-bar .zone i { position: absolute; left: 33%; width: 34%; top: 0; bottom: 0; background: rgba(255, 205, 70, 0.95); }
.needle { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px; background: #e0492f; box-shadow: 0 0 6px rgba(224, 73, 47, 0.8); }
.carve-marks { display: flex; justify-content: center; margin-bottom: 4px; }
.cm { margin: 0 5px; padding: 3px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; background: #f1efe8; color: var(--muted); }
.cm.q3 { background: #fff0c2; color: #b67a00; }
.cm.q2 { background: #e3f7ea; color: #178a4f; }
.cm.q1 { background: #eef1f4; color: #62707c; }
.cm.q0 { background: #fde8e5; color: #d0412f; }
.carve-btn { min-height: 58px; margin-top: 4px; }

.item-card { display: flex; align-items: center; padding: 11px 12px; border-radius: 16px; background: #fff; border: 1px solid #f0eadf; box-shadow: 0 2px 8px rgba(31, 51, 43, 0.06); }
.ic-icon svg { display: block; width: 54px; height: 54px; }
.ic-main { flex: 1 1 auto; min-width: 0; margin-left: 12px; }
.ic-name { font-size: 17px; font-weight: 900; }
.ic-sub { margin-top: 3px; font-size: 13px; color: var(--muted); }
.ic-sub b.g3 { color: #d98c00; }
.ic-sub b.g2 { color: var(--jade-d); }
.ic-val { margin-top: 3px; font-size: 14px; }
.ic-val b { font-size: 21px; color: var(--red); }
.share-row { display: flex; margin-top: 10px; }
.share {
  flex: 1 1 0; margin-left: 8px; padding: 6px 2px; border: 0; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center;
  background: #fff1ef; color: #e1323c; font-size: 12.5px; font-weight: 800;
}
.share:first-child { margin-left: 0; }
.share i { font-style: normal; font-size: 19px; line-height: 1.25; }
.share:active { transform: scale(0.96); }

.auc-title { font-size: 15.5px; font-weight: 900; text-align: center; }
.bidders { display: flex; margin-top: 10px; }
.bidder { flex: 1 1 0; margin-left: 8px; padding: 8px 4px; border-radius: 14px; background: #fff; text-align: center; border: 2px solid transparent; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.bidder:first-child { margin-left: 0; }
.bidder i { display: block; font-style: normal; font-size: 28px; }
.bidder span { display: block; font-size: 12px; color: var(--muted); }
.bidder b { display: block; min-height: 18px; font-size: 14px; color: var(--red); }
.bidder.hot { transform: scale(1.08); background: #fff6de; border-color: #ffd35a; }
.auc-price { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.auc-price b { display: block; margin-top: 2px; font-size: 30px; color: var(--red); }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 50; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 20, 16, 0.58); opacity: 0; transition: opacity 0.2s;
}
.modal-mask.show { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-width: 340px; max-height: 86%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 20px 18px 16px; border-radius: 22px; background: var(--cream);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transform: scale(0.9); transition: transform 0.22s;
}
.modal-mask.show .modal-card { transform: scale(1); }
.modal-card.wide { max-width: 420px; }
.modal-icon { font-size: 44px; text-align: center; line-height: 1.2; }
.modal-title { font-size: 19px; font-weight: 900; text-align: center; padding: 0 8px; }
.modal-body { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #3f5048; }
.modal-body p { margin: 6px 0; }
.modal-btns { display: flex; margin-top: 16px; }
.modal-btns .btn { flex: 1 1 0; min-width: 0; font-size: 15px; padding: 6px 8px; }
.modal-btns .btn + .btn { margin-left: 10px; }
.modal-btns.one { justify-content: center; }
.modal-btns.one .btn { flex: 0 1 auto; min-width: 180px; }
.muted { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.poster-img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.mtabs { display: flex; margin-bottom: 10px; padding: 3px; border-radius: 12px; background: #efe8da; }
.mtabs button { flex: 1 1 0; padding: 7px 2px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); }
.mtabs .on { background: #fff; color: var(--jade-d); }
.coll-grid { display: flex; flex-wrap: wrap; margin-right: -8px; }
.coll-item { width: calc(50% - 8px); margin: 0 8px 8px 0; padding: 8px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.ci-thumb { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #4a3f78, #15112b); overflow: hidden; }
.ci-thumb img { display: block; width: 96px; height: 96px; }
.ci-thumb svg { width: 46px; height: 46px; }
.ci-name { margin-top: 5px; font-size: 12.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-val { font-size: 13px; font-weight: 900; color: var(--red); }
.ci-btns { display: flex; margin-top: 5px; }
.mini { flex: 1 1 0; padding: 6px 0; border: 0; border-radius: 8px; background: #edf2ee; color: var(--ink); font-size: 12px; font-weight: 800; }
.mini + .mini { margin-left: 6px; }
.mini.gold { background: #ffd35a; color: #5b3900; }
.empty { padding: 30px 0; font-size: 14px; line-height: 1.7; color: var(--muted); text-align: center; }
.ach { display: flex; align-items: center; padding: 8px 4px; border-bottom: 1px dashed #efe7d8; opacity: 0.5; }
.ach.got { opacity: 1; }
.ach i { flex: none; margin-right: 10px; font-size: 24px; font-style: normal; }
.ach b { display: block; font-size: 14px; }
.ach small { font-size: 12px; color: var(--muted); }
.help .hp { display: flex; margin-bottom: 10px; font-size: 13.5px; line-height: 1.6; }
.hp i { flex: none; margin-right: 10px; font-size: 24px; font-style: normal; }
.hp b { margin-right: 4px; }
.hp em { font-style: normal; font-weight: 800; color: var(--jade-d); }
.ord, .upg { display: flex; align-items: center; margin-bottom: 8px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 1px solid #f0eadf; text-align: left; }
.ord .av, .upg .ui { flex: none; margin-right: 10px; font-size: 28px; line-height: 1; }
.ord .od, .upg .ud { flex: 1 1 auto; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ord .od b, .upg .ud b { display: block; font-size: 14px; color: var(--ink); }
.ord .rw { color: var(--red); font-weight: 900; }
.ord .mini, .upg .mini { flex: none; width: auto; min-width: 60px; margin-left: 8px; padding: 8px 8px; }
.ord.ready { border-color: #9fe0bd; background: #f0fbf4; }
.pips { display: inline-block; margin-left: 4px; vertical-align: 1px; }
.pips i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 4px; background: #e2dccd; }
.pips i.on { background: var(--jade); }
.mini[disabled] { opacity: 0.45; }
.cx-prog { margin-bottom: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.cx-sec { margin: 8px 0 6px; font-size: 13px; font-weight: 900; text-align: left; }
.cx-grid { display: flex; flex-wrap: wrap; margin-right: -6px; }
.cx { width: calc(33.333% - 6px); margin: 0 6px 6px 0; padding: 7px 4px 6px; border-radius: 12px; background: #fff; border: 1px solid #f0eadf; font-size: 12px; font-weight: 900; text-align: center; }
.cx i { display: block; width: 24px; height: 24px; margin: 0 auto 3px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.08); }
.cx small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.cx.lock { opacity: 0.42; }
.cx-sec.rare { color: #7b4fd6; }
.cx.rare { border-color: #e4d6ff; background: #fbf8ff; }
.cx .rbadge { display: table; margin: 3px auto 0; }
.cx i.sw { border-color: rgba(255, 255, 255, 0.75); }
.sw.fx1 {
  background: radial-gradient(circle at 40% 38%, #ffffff, #bff6e8 45%, #4fd1b5);
  -webkit-animation: swPulse 2.4s ease-in-out infinite; animation: swPulse 2.4s ease-in-out infinite;
}
.sw.fx2 { background: linear-gradient(135deg, #22d17a, #1ea8ff 50%, #a24bff); -webkit-animation: fxShift 5s ease-in-out infinite alternate; animation: fxShift 5s ease-in-out infinite alternate; }
.sw.fx3 {
  background: radial-gradient(circle at 30% 34%, #fff 0, #fff 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 68% 58%, #fff 0, #fff 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 46% 76%, #cfe0ff 0, #cfe0ff 1px, rgba(207, 224, 255, 0) 2px),
    radial-gradient(circle at 50% 50%, #3a3f9e, #141a4d);
  -webkit-animation: fxTwinkle 1.7s ease-in-out infinite; animation: fxTwinkle 1.7s ease-in-out infinite;
}
.sw.fx4 { background: linear-gradient(135deg, #ff5f6d, #ffc371, #47e891, #4facfe, #c471f5); -webkit-animation: fxHue 4s linear infinite; animation: fxHue 4s linear infinite; }
.sw.fx5 { background: linear-gradient(135deg, #2f3a12 20%, #ffd76a 45%, #2f3a12 55%, #e8b23a 80%, #2f3a12); -webkit-animation: fxGold 1.8s ease-in-out infinite; animation: fxGold 1.8s ease-in-out infinite; }
.sw.fx6 { background: radial-gradient(circle at 50% 75%, #fff2a8, #ff8a30 40%, #c4261a 75%, #4a0a05); -webkit-animation: fxFire 0.9s ease-in-out infinite alternate; animation: fxFire 0.9s ease-in-out infinite alternate; }
.sw.fx7 { background: linear-gradient(160deg, #1d0d38 30%, #c39bff 46%, #1d0d38 52%, #3a1f63); -webkit-animation: fxBolt 2.2s linear infinite; animation: fxBolt 2.2s linear infinite; }
.sw.fx8 { background: radial-gradient(circle at 35% 35%, #fff 0, #fff 1px, rgba(255, 255, 255, 0) 2px), radial-gradient(circle at 65% 60%, #ffb3d9 0, rgba(255, 179, 217, 0) 2px), radial-gradient(circle at 50% 50%, #e9f8ff, #9fd8f5); -webkit-animation: fxPrism 2.4s linear infinite; animation: fxPrism 2.4s linear infinite; }
@-webkit-keyframes swPulse { 0%, 100% { box-shadow: 0 0 3px rgba(141, 255, 224, 0.6); } 50% { box-shadow: 0 0 10px #8dffe0; } }
@keyframes swPulse { 0%, 100% { box-shadow: 0 0 3px rgba(141, 255, 224, 0.6); } 50% { box-shadow: 0 0 10px #8dffe0; } }
/* 1.8 版行星玉：角标「星辰」、图标呼吸光、图鉴色块 */
.rbadge.r4 { background: #2a2f8f; background: linear-gradient(90deg, #141a4d, #5b3fd6, #1f8fd1, #141a4d); background-size: 300% 100%; -webkit-animation: rbShift 4s linear infinite; animation: rbShift 4s linear infinite; }
.fx9 svg, .fx9 img { -webkit-animation: fxP9 2.2s ease-in-out infinite; animation: fxP9 2.2s ease-in-out infinite; }
@-webkit-keyframes fxP9 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #e8eef8); } 50% { -webkit-filter: drop-shadow(0 0 8px #e8eef8) brightness(1.25); } }
@keyframes fxP9 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #e8eef8); filter: drop-shadow(0 0 2px #e8eef8); } 50% { -webkit-filter: drop-shadow(0 0 8px #e8eef8) brightness(1.25); filter: drop-shadow(0 0 8px #e8eef8) brightness(1.25); } }
.fx10 svg, .fx10 img { -webkit-animation: fxP10 2.6s ease-in-out infinite; animation: fxP10 2.6s ease-in-out infinite; }
@-webkit-keyframes fxP10 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd36a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ffd36a) brightness(1.25); } }
@keyframes fxP10 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd36a); filter: drop-shadow(0 0 2px #ffd36a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ffd36a) brightness(1.25); filter: drop-shadow(0 0 8px #ffd36a) brightness(1.25); } }
.fx11 svg, .fx11 img { -webkit-animation: fxP11 1.1s ease-in-out infinite; animation: fxP11 1.1s ease-in-out infinite; }
@-webkit-keyframes fxP11 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ff6a2a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ff6a2a) brightness(1.25); } }
@keyframes fxP11 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ff6a2a); filter: drop-shadow(0 0 2px #ff6a2a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ff6a2a) brightness(1.25); filter: drop-shadow(0 0 8px #ff6a2a) brightness(1.25); } }
.fx12 svg, .fx12 img { -webkit-animation: fxP12 3s ease-in-out infinite; animation: fxP12 3s ease-in-out infinite; }
@-webkit-keyframes fxP12 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffc58a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ffc58a) brightness(1.25); } }
@keyframes fxP12 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffc58a); filter: drop-shadow(0 0 2px #ffc58a); } 50% { -webkit-filter: drop-shadow(0 0 8px #ffc58a) brightness(1.25); filter: drop-shadow(0 0 8px #ffc58a) brightness(1.25); } }
.fx13 svg, .fx13 img { -webkit-animation: fxP13 1.8s ease-in-out infinite; animation: fxP13 1.8s ease-in-out infinite; }
@-webkit-keyframes fxP13 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #fff0a0); } 50% { -webkit-filter: drop-shadow(0 0 8px #fff0a0) brightness(1.25); } }
@keyframes fxP13 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #fff0a0); filter: drop-shadow(0 0 2px #fff0a0); } 50% { -webkit-filter: drop-shadow(0 0 8px #fff0a0) brightness(1.25); filter: drop-shadow(0 0 8px #fff0a0) brightness(1.25); } }
.fx14 svg, .fx14 img { -webkit-animation: fxP14 2.4s ease-in-out infinite; animation: fxP14 2.4s ease-in-out infinite; }
@-webkit-keyframes fxP14 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #9ffcff); } 50% { -webkit-filter: drop-shadow(0 0 8px #9ffcff) brightness(1.25); } }
@keyframes fxP14 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #9ffcff); filter: drop-shadow(0 0 2px #9ffcff); } 50% { -webkit-filter: drop-shadow(0 0 8px #9ffcff) brightness(1.25); filter: drop-shadow(0 0 8px #9ffcff) brightness(1.25); } }
.fx15 svg, .fx15 img { -webkit-animation: fxP15 2s ease-in-out infinite; animation: fxP15 2s ease-in-out infinite; }
@-webkit-keyframes fxP15 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #6f9cff); } 50% { -webkit-filter: drop-shadow(0 0 8px #6f9cff) brightness(1.25); } }
@keyframes fxP15 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #6f9cff); filter: drop-shadow(0 0 2px #6f9cff); } 50% { -webkit-filter: drop-shadow(0 0 8px #6f9cff) brightness(1.25); filter: drop-shadow(0 0 8px #6f9cff) brightness(1.25); } }
.sw.fx9 { background: radial-gradient(circle at 35% 35%, #f4f6fa, #9d9a95 55%, #3e3c3a); -webkit-animation: fxP9 2.2s ease-in-out infinite; animation: fxP9 2.2s ease-in-out infinite; }
.sw.fx10 { background: radial-gradient(circle at 35% 35%, #fff2b8, #e0a83e 55%, #7a4a0c); -webkit-animation: fxP10 2.6s ease-in-out infinite; animation: fxP10 2.6s ease-in-out infinite; }
.sw.fx11 { background: radial-gradient(circle at 35% 35%, #ffb08a, #c2461f 55%, #4a1006); -webkit-animation: fxP11 1.1s ease-in-out infinite; animation: fxP11 1.1s ease-in-out infinite; }
.sw.fx12 { background: repeating-linear-gradient(0deg, #f0d9b5 0, #f0d9b5 3px, #b07a4c 3px, #b07a4c 6px); -webkit-animation: fxP12 3s ease-in-out infinite; animation: fxP12 3s ease-in-out infinite; }
.sw.fx13 { background: linear-gradient(160deg, rgba(0,0,0,0) 44%, #fff4c0 47%, #fff4c0 53%, rgba(0,0,0,0) 56%), radial-gradient(circle at 40% 40%, #fff0b8, #d6bd72 55%, #6b5520); -webkit-animation: fxP13 1.8s ease-in-out infinite; animation: fxP13 1.8s ease-in-out infinite; }
.sw.fx14 { background: radial-gradient(circle at 35% 35%, #e6ffff, #6fd3dc 55%, #135a66); -webkit-animation: fxP14 2.4s ease-in-out infinite; animation: fxP14 2.4s ease-in-out infinite; }
.sw.fx15 { background: radial-gradient(circle at 60% 40%, #dfe8ff 0, rgba(223,232,255,0) 18%), radial-gradient(circle at 35% 35%, #6f8fff, #2747c8 55%, #0a1450); -webkit-animation: fxP15 2s ease-in-out infinite; animation: fxP15 2s ease-in-out infinite; }
.cx-sec.planet { color: #3b4bd6; }
.cx.planet { border-color: #d6dcff; background: #f6f7ff; }
.trend-list .kv b.up { color: var(--red); }
.trend-list .kv b.dn { color: #3a7bd5; }
.sum-total { margin-top: 10px; font-size: 34px; font-weight: 900; text-align: center; }
.sum-total.up { color: var(--red); }
.sum-total.down { color: #6b7b86; }

.toast-root { position: fixed; left: 0; right: 0; top: 156px; top: calc(80px + var(--hud-b, 76px)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast {
  max-width: 86%; padding: 9px 16px; border-radius: 20px; background: rgba(18, 32, 27, 0.9); color: #fff;
  font-size: 14px; line-height: 1.45; text-align: center; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: none; }
.coin-layer { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.coin {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc93c 48%, #d89400);
  box-shadow: inset 0 0 0 2px #c98a00, 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- 标题 ---------- */
.title { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 30; display: none; flex-direction: column; justify-content: space-between; pointer-events: none; }
.title.show { display: flex; }
.title-top { padding-top: 100px; padding-top: calc(24px + var(--hud-b, 76px)); text-align: center; }
.title-bottom { display: flex; flex-direction: column; align-items: center; padding: 0 32px 34px; padding-bottom: calc(34px + var(--sab)); }
.title-bottom > * { pointer-events: auto; }
.title-bottom .btn { width: 100%; max-width: 300px; }
.logo { font-weight: 900; line-height: 1; letter-spacing: 4px; animation: logoBob 2.6s ease-in-out infinite; }
.logo .l1 { display: block; font-size: 60px; color: #fff; text-shadow: 0 4px 0 #0d4234, 0 0 26px rgba(120, 255, 190, 0.55); }
.logo .l2 { display: block; margin-top: 6px; font-size: 46px; color: #ffd35a; text-shadow: 0 4px 0 #7a4f00, 0 0 22px rgba(255, 210, 90, 0.6); }
@keyframes logoBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.slogan { margin-top: 14px; font-size: 14px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.82); }
.title-tip { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* ---------- 1.2.5 横屏（html.land；html.rot = 容器锁竖屏、整个 #root 被 main.js 转了 90°） ----------
   左边舞台（上面一排金币 / 菜单），右边一竖条面板；四条边的让位（原生按钮、状态栏、底部横条）由 main.js 算成 --lg-*。
   1.2.4 横过来只显示「请竖屏游玩」 */
.root { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
html.land .app { display: block; }
html.land .top-gap { display: none; }
html.land .hud { position: absolute; left: var(--lg-l); top: var(--hud-t); width: var(--hud-w); }
html.land .stage { position: absolute; left: var(--lg-l); top: var(--st-t); width: var(--hud-w); bottom: var(--lg-b); }
html.land .app:not(.on) .stage, html.land .app.fold .stage { width: var(--full-w); }
html.land .panel { position: absolute; right: var(--lg-r); top: var(--pt); bottom: 0; width: var(--pw); height: auto !important; border-radius: 22px 0 0 0; box-shadow: -6px 0 24px rgba(0, 0, 0, 0.28); }
html.land .app.astral .panel-inner, html.land .app.pachi .panel-inner { overflow-y: auto; }
html.land .toast-root { left: var(--lg-l); right: auto; width: var(--hud-w); top: calc(var(--st-t) + 36px); }
html.land .modal-mask { padding: 10px calc(10px + var(--lg-r)) 10px calc(10px + var(--lg-l)); }
html.land .modal-card { max-height: 94%; }
html.land .menu { margin: 0; right: auto; width: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 标题页：标题、开始按钮在左边一栏，两半原石在右边 */
html.land .title { left: var(--lg-l); right: var(--lg-r); top: var(--lg-t); bottom: var(--lg-b); justify-content: center; align-items: flex-start; }
html.land .title-top { width: 46%; padding-top: 0; }
html.land .title-bottom { width: 46%; padding: 16px 12px 0; }
html.land .title-tip { margin-top: 6px; }
/* 横屏高度矮：和竖屏矮屏一样的紧凑排法（两种横屏都按 class 来，转了 90° 时视口媒体查询量的是竖着的高度） */
html.land .panel-inner { padding: 10px 12px 6px; }
html.land .card { margin-top: 8px; padding: 9px 12px; }
html.land .row { margin-top: 8px; }
html.land .subrow { margin-top: 3px; }
html.land .link { padding: 4px 2px; }
html.land .opt { padding: 3px 2px 4px; margin-bottom: 6px; }
html.land .opt-ic svg { width: 28px; height: 28px; }
html.land .opts { margin-top: 6px; }
html.land .btn { min-height: 42px; }
html.land .row .btn.grow { padding-left: 8px; padding-right: 8px; letter-spacing: 0; }
html.land .price { font-size: 24px; }
html.land .tool { padding: 6px 2px 5px; }
html.land .tool i { font-size: 21px; }
html.land .carve-bar { margin: 10px 4px 8px; }
html.land .scrap-card { margin-top: 8px; padding: 9px 12px; }
html.land .cu-art { height: 84px; }
html.land .cu-pic { height: 100px; }
html.land .cu-live { height: 118px; }
html.land .cu-desc { display: none; }

/* 启动中（首屏是静态 HTML）：顶栏先藏着，「开始」按钮灰着，下面一行写当前在准备什么；准备好后 enterTitle 去掉 .boot / .booting */
.app.booting .hud { visibility: hidden; }
.title.boot .title-bottom .btn { opacity: 0.55; }
.title.boot .title-links, .title.boot #title-restart { display: none; }
.boot-status { display: none; margin-top: 10px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); text-align: center; }
.title.boot .boot-status, .boot-status.err { display: block; }
.boot-status.err { color: #ffe1d6; }
.boot-retry { margin-left: 6px; padding: 4px 14px; border: 0; border-radius: 12px; background: #ffd35a; color: #5a3d00; font-size: 13px; font-weight: 800; }

@media (hover: hover) {
  .btn:hover { filter: brightness(1.04); }
  .tool:hover, .opt:hover { filter: brightness(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .fx1 svg, .fx1 img, .fx2 svg, .fx2 img, .fx3 svg, .fx3 img, .fx4 svg, .fx4 img, .fx5 svg, .fx5 img, .fx6 svg, .fx6 img,
  .fx7 svg, .fx7 img, .fx8 svg, .fx8 img, .sw, .rbadge.r3, .rbadge.r4, .rname,
  .fx9 svg, .fx9 img, .fx10 svg, .fx10 img, .fx11 svg, .fx11 img, .fx12 svg, .fx12 img, .fx13 svg, .fx13 img, .fx14 svg, .fx14 img, .fx15 svg, .fx15 img,
  .fx16 svg, .fx16 img, .fx17 svg, .fx17 img, .fx18 svg, .fx18 img, .fx19 svg, .fx19 img, .rbadge.r5 { -webkit-animation: none; animation: none; }
}

/* ---------- 矮屏（≤700px 高）紧凑布局 ---------- */
@media (max-height: 700px) {
  .panel-inner { padding: 10px 12px 6px; }
  .card { margin-top: 8px; padding: 9px 12px; }
  .row { margin-top: 8px; }
  .subrow { margin-top: 3px; }
  .link { padding: 4px 2px; }
  .opt { padding: 3px 2px 4px; margin-bottom: 6px; }
  .opt-ic svg { width: 28px; height: 28px; }
  .opts { margin-top: 6px; }
  .btn { min-height: 42px; }
  .price { font-size: 24px; }
  .tool { padding: 6px 2px 5px; }
  .tool i { font-size: 21px; }
  .carve-bar { margin: 10px 4px 8px; }
  .scrap-card { margin-top: 8px; padding: 9px 12px; }
}

/* ---------------- 1.5 版 ---------------- */
/* 洗石：舞台上方的泥层画布 */
.wash-cv { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.wash-cv.show { opacity: 1; }
.wash-head { font-size: 14px; font-weight: 800; color: var(--ink); text-align: center; }
.wash-head b { color: #1f8fd6; }
.bar.wash i { background: linear-gradient(90deg, #3aa8f0, #9fe0ff); }
/* 挖矿工具 / 矿坑 */
.tlv { display: inline-block; margin-left: 2px; padding: 0 4px; border-radius: 6px; background: #ffd35a; color: #5b3900; font-size: 9.5px; font-style: normal; font-weight: 900; line-height: 13px; vertical-align: 1px; }
.mine-head { align-items: center; }
.mine-head span { flex: 1 1 auto; margin: 0 6px; text-align: right; }
.mine-head .mini { flex: none; width: auto; padding: 5px 9px; }
.lyr.royal { background: linear-gradient(100deg, #fff8e3, #ffe9b8); border-color: #f1c35a; }
.lyr.royal.locked { opacity: 0.6; }
/* 刻图案 */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
.eng-opt { display: flex; flex-direction: column; align-items: center; padding: 8px 4px 6px; border: 1.5px solid #f0dcae; border-radius: 14px; background: linear-gradient(160deg, #3d6b56, #1f3d31); color: #fff; font-size: 12.5px; font-weight: 800; }
.eng-opt img { display: block; width: 52px; height: 52px; }
.eng-opt i { font-size: 34px; font-style: normal; line-height: 52px; }
.eng-opt span { margin-top: 4px; }
.eng-opt:active { transform: scale(0.96); }
.ci-eng { position: absolute; top: 12px; left: 50%; margin-left: -9px; font-size: 13px; font-style: normal; pointer-events: none; }
/* 拍卖会里的首饰图 */
.auc-pic { display: block; width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #4a3f78, #15112b); }
.auc-pic.ic { display: flex; align-items: center; justify-content: center; }
.auc-pic.ic svg { width: 64px; height: 64px; }
/* 矿区库房筛选 */
.yf { display: flex; flex-wrap: wrap; margin: 0 0 2px; }
.chip { flex: none; margin: 0 6px 6px 0; padding: 5px 9px; border: 1px solid #e6dcc6; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; }
.chip b { margin-left: 3px; color: var(--muted); font-weight: 800; }
.chip.on { background: var(--jade); border-color: var(--jade); color: #fff; }
.chip.on b { color: #e6fff1; }
.chip.dim { opacity: 0.5; }
.chip.sort { margin-left: auto; margin-right: 0; }
.tool-tip.ins, .row.ins { margin-top: 6px; }
/* 鉴赏那一排有三个按钮时（金凤琥珀手镯多一个「关立绘背景」）：字小一点、不折行 */
.row.ins .btn:first-child:nth-last-child(3), .row.ins .btn:first-child:nth-last-child(3) ~ .btn { padding-left: 4px; padding-right: 4px; font-size: 13.5px; white-space: nowrap; }

/* ---------------- 1.6 版 ---------------- */
/* 大型拍卖会 */
.grand-lock { margin-top: 10px; padding: 14px 12px; border-radius: 16px; background: linear-gradient(160deg, #fff4e0, #ffe2c2); border: 1px solid #f0c08a; font-size: 13px; line-height: 1.7; color: #6a4a2c; text-align: center; }
.grand-lock b { display: block; font-size: 16px; color: #8a2f20; }
.grand-lock em { font-style: normal; font-weight: 900; color: #c0392b; }
.grand-lock small { display: block; margin-top: 4px; color: var(--muted); }
.lot-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.lot-row b { color: var(--ink); }
.lot-row b.red, b.red { color: #c0392b; }
.pc-list { margin-top: 6px; }
.pc-row, .mk-row { display: flex; align-items: center; margin-bottom: 6px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1px solid #f0eadf; text-align: left; }
.mk-row.on { border-color: var(--jade); background: #f0fbf4; }
.pc-row .opt-ic, .mk-row .opt-ic { flex: none; width: 34px; height: 34px; margin-right: 8px; }
.pc-row .od, .mk-row .od { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.pc-row .od b, .mk-row .od b { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-row select { flex: none; max-width: 52%; padding: 6px 4px; border: 1px solid #e0d6c2; border-radius: 10px; background: #fffaf2; font-size: 12.5px; color: var(--ink); }
.mk-row .mini { flex: none; width: auto; margin-left: 6px; padding: 7px 10px; }
.qi-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 8px; }
.qi-opt { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1.5px solid #e9dcc1; border-radius: 14px; background: #fff; }
.qi-opt .opt-ic { width: 46px; height: 46px; }
.qi-opt b { margin-top: 2px; font-size: 14px; }
.qi-opt small { font-size: 11.5px; color: var(--muted); }
.qi-opt.off { opacity: 0.45; }
.qi-big { margin-left: 4px; padding: 0 4px; border-radius: 6px; background: #8a2f20; color: #fff; font-size: 10px; font-style: normal; }
/* 品级徽章：品越高越金 */
.pin { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 7px; background: #e9e2d2; color: #6a5a40; font-size: 10.5px; font-style: normal; font-weight: 900; line-height: 16px; vertical-align: 2px; }
.pin.p3, .pin.p4 { background: #d8f0e2; color: #14875a; }
.pin.p5, .pin.p6 { background: #e6dcff; color: #6a3fc4; }
.pin.p7, .pin.p8, .pin.p9 { background: linear-gradient(90deg, #ffd35a, #ff9f43); color: #5b2a00; }
/* 竞拍 */
.bid-me { margin: 6px 0 8px; font-size: 13px; color: var(--muted); text-align: center; }
.bid-me.mine { color: #14875a; font-weight: 800; }
/* 专场拍卖 */
.batch-list { max-height: 240px; overflow-y: auto; margin: 4px 0 8px; text-align: left; }
.bt-row { display: flex; justify-content: space-between; padding: 4px 2px; border-bottom: 1px dashed #eee3cf; font-size: 12.5px; }
.bt-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bt-row b { flex: none; margin-left: 8px; color: #c0392b; }
/* 收藏柜筛选 / 多选 */
.cfbar { display: flex; align-items: center; margin: 0 0 8px; }
.cfbar select { flex: 1 1 0; min-width: 0; margin-right: 4px; padding: 6px 2px; border: 1px solid #e0d6c2; border-radius: 10px; background: #fff; font-size: 12px; color: var(--ink); }
.cfbar .mini { flex: none; width: auto; padding: 6px 9px; }
.coll-item.sel { box-shadow: 0 0 0 2.5px var(--jade); }
.ci-chk { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, 0.9); border: 1.5px solid #c9bfa9; font-size: 13px; font-style: normal; line-height: 18px; text-align: center; pointer-events: none; }
.msel-bar { position: -webkit-sticky; position: sticky; bottom: 0; display: flex; align-items: center; margin-top: 8px; padding: 8px; border-radius: 14px; background: #fffaf0; box-shadow: 0 -4px 12px rgba(80, 60, 30, 0.15); }
.msel-bar span { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.msel-bar span small { display: block; color: var(--muted); }
.msel-bar .mini { flex: none; width: auto; margin-left: 4px; padding: 7px 8px; }
.msel-bar.bag { flex-wrap: wrap; justify-content: center; }
.msel-bar.bag span { flex: 1 1 100%; margin-bottom: 6px; text-align: center; }
.msel-bar.bag span small { display: inline; margin-left: 6px; }
.msel-bar.bag .mini { margin: 0 3px; }
.bproc-row { display: flex; justify-content: center; margin: 0 0 10px; }
.bproc-row .btn { flex: none; width: auto; min-width: 200px; padding: 8px 22px; }
.upg .mini:disabled, .mini.off { opacity: 0.4; -webkit-filter: grayscale(0.4); filter: grayscale(0.4); }   /* 看着是灰的，点了会说明原因 */
.pin-ask { text-align: left; }
.pin-ask p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.pin-ask .kv { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; color: var(--muted); }
.pin-ask .kv b { color: var(--ink); }
.pin-ask .pin-warn { margin: 8px 0 0; padding: 6px 8px; border-radius: 10px; background: #fdecea; color: #c0392b; font-weight: 900; text-align: center; }

/* ---------- 1.8 版：太阳系玉场 / 加工站 / 升华轮盘 ---------- */
/* 集市六个标签：图标在上、名字在下；每格等宽、内容超出就裁掉，小屏不会把整排撑出边 */
.tabs.six .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; overflow: hidden; padding: 4px 0 3px; font-size: 12px; line-height: 1.2; letter-spacing: 0; }
.tabs.six .tab i { display: block; max-width: 100%; overflow: hidden; font-style: normal; font-size: 16px; line-height: 19px; white-space: nowrap; }
.tabs.six .tab i small { margin-left: 1px; font-size: 9px; font-weight: 900; line-height: 1; vertical-align: 3px; color: #b98a2b; }
.tabs.six .tab b { display: block; max-width: 100%; overflow: hidden; margin-top: 1px; font-weight: 800; white-space: nowrap; }
.tabs.six .tab .tdot { top: 3px; right: 4px; }
.subrow .sub-go { flex: none; width: auto; padding: 6px 12px; }
.pin.sub { background: #1d2a6b; background: linear-gradient(90deg, #1d2a6b, #5b3fd6); color: #e6ecff; }
.pin.sub.p9 { background: linear-gradient(90deg, #13a65a, #3dff9a); color: #053a1e; }
.sub-pips { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.sub-pips i { display: inline-block; width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: #d9d3e8; }
.sub-pips i.on { background: #5b3fd6; box-shadow: 0 0 4px #8f7bff; }
.upg .ui.opt-ic { width: 36px; height: 36px; font-size: 0; }
.upg .ui.opt-ic svg { width: 36px; height: 36px; }
.rl-head { display: flex; align-items: center; text-align: left; margin-bottom: 6px; }
.rl-head .opt-ic { flex: none; width: 40px; height: 40px; margin-right: 10px; }
.rl-head .opt-ic svg { width: 40px; height: 40px; }
.rl-head b { display: block; font-size: 14px; color: var(--ink); }
.rl-head small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.rl-cv { display: block; margin: 4px auto 6px; border-radius: 50%; box-shadow: 0 6px 18px rgba(20, 10, 40, 0.35); }
.rl-res { min-height: 20px; margin-bottom: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink); text-align: center; }
.rl-bets { display: flex; justify-content: center; }
.rl-bet { flex: 1 1 0; min-width: 0; margin: 0 3px; padding: 8px 2px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 900; line-height: 1.2; color: #fff; }
.rl-bet small { display: block; font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.rl-bet.red { background: linear-gradient(180deg, #ef3b43, #b8161e); box-shadow: 0 3px 0 #7d0d12; }
.rl-bet.black { background: linear-gradient(180deg, #3a3a44, #121216); box-shadow: 0 3px 0 #000; }
.rl-bet.green { background: linear-gradient(180deg, #2fd27a, #0f8a48); box-shadow: 0 3px 0 #075a2e; }
.rl-bet:disabled, .rl-bet.off { opacity: 0.4; }
.rl-bet:active { transform: translateY(2px); }

/* 1.9 版仙品玉 */
.rbadge.r5 { background: #c79a2e; background: linear-gradient(90deg, #f6d77a, #e8a23a, #fff1c2, #e8a23a); background-size: 300% 100%; color: #5a3a00; -webkit-animation: rbShift 3s linear infinite; animation: rbShift 3s linear infinite; }
.fx16 svg, .fx16 img { -webkit-animation: fxP16 2.4s ease-in-out infinite; animation: fxP16 2.4s ease-in-out infinite; }
@-webkit-keyframes fxP16 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffe39a); } 50% { -webkit-filter: drop-shadow(0 0 9px #ffe39a) brightness(1.25); } }
@keyframes fxP16 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffe39a); filter: drop-shadow(0 0 2px #ffe39a); } 50% { -webkit-filter: drop-shadow(0 0 9px #ffe39a) brightness(1.25); filter: drop-shadow(0 0 9px #ffe39a) brightness(1.25); } }
.sw.fx16 { background: radial-gradient(circle at 35% 35%, #ffffff, #f1ece0 55%, #c9b98e); -webkit-animation: fxP16 2.4s ease-in-out infinite; animation: fxP16 2.4s ease-in-out infinite; }
.fx17 svg, .fx17 img { -webkit-animation: fxP17 2s ease-in-out infinite; animation: fxP17 2s ease-in-out infinite; }
@-webkit-keyframes fxP17 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #9fe0ff); } 50% { -webkit-filter: drop-shadow(0 0 9px #9fe0ff) brightness(1.25); } }
@keyframes fxP17 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #9fe0ff); filter: drop-shadow(0 0 2px #9fe0ff); } 50% { -webkit-filter: drop-shadow(0 0 9px #9fe0ff) brightness(1.25); filter: drop-shadow(0 0 9px #9fe0ff) brightness(1.25); } }
.sw.fx17 { background: radial-gradient(circle at 35% 35%, #d8f4ff, #2a9df4 55%, #0a3f8a); -webkit-animation: fxP17 2s ease-in-out infinite; animation: fxP17 2s ease-in-out infinite; }
.fx18 svg, .fx18 img { -webkit-animation: fxP18 1.8s ease-in-out infinite; animation: fxP18 1.8s ease-in-out infinite; }
@-webkit-keyframes fxP18 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd76a); } 50% { -webkit-filter: drop-shadow(0 0 9px #ffd76a) brightness(1.25); } }
@keyframes fxP18 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd76a); filter: drop-shadow(0 0 2px #ffd76a); } 50% { -webkit-filter: drop-shadow(0 0 9px #ffd76a) brightness(1.25); filter: drop-shadow(0 0 9px #ffd76a) brightness(1.25); } }
.sw.fx18 { background: radial-gradient(circle at 35% 35%, #fff2b0 0, #3fbf7f 30%, #0c5a38 80%); -webkit-animation: fxP18 1.8s ease-in-out infinite; animation: fxP18 1.8s ease-in-out infinite; }
.fx19 svg, .fx19 img { -webkit-animation: fxP19 0.9s ease-in-out infinite; animation: fxP19 0.9s ease-in-out infinite; }
@-webkit-keyframes fxP19 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ff8a30); } 50% { -webkit-filter: drop-shadow(0 0 9px #ff8a30) brightness(1.25); } }
@keyframes fxP19 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ff8a30); filter: drop-shadow(0 0 2px #ff8a30); } 50% { -webkit-filter: drop-shadow(0 0 9px #ff8a30) brightness(1.25); filter: drop-shadow(0 0 9px #ff8a30) brightness(1.25); } }
.sw.fx19 { background: radial-gradient(circle at 50% 75%, #fff2a8, #ff8a30 40%, #c4261a 75%, #4a0a05); -webkit-animation: fxP19 0.9s ease-in-out infinite; animation: fxP19 0.9s ease-in-out infinite; }
.cx-sec.xian { color: #b07a10; }
.cx.xian { border-color: #f3e2b0; background: #fffbef; }
@media (prefers-reduced-motion: reduce) {
  .fx16 svg, .fx16 img, .fx17 svg, .fx17 img, .fx18 svg, .fx18 img, .fx19 svg, .fx19 img, .sw.fx16, .sw.fx17, .sw.fx18, .sw.fx19, .rbadge.r5 { -webkit-animation: none; animation: none; }
}

/* ---------- 1.9 版：太阳系入口 / 升华余额与环绕光 / 仙界 ---------- */
.solar-row { display: flex; margin-top: 8px; }
.solar-row .btn { flex: 1 1 0; min-width: 0; min-height: 34px; margin: 0 2px; padding: 3px 1px; font-size: 12.5px; letter-spacing: -0.3px; white-space: nowrap; }
.rl-bal { margin: -2px 0 2px; font-size: 12.5px; color: var(--muted); text-align: center; }
.rl-bal b { color: var(--ink); }
.rl-ic { position: relative; overflow: visible; }
.sub-orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.sub-orb i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px #9f8bff;
  -webkit-animation: subOrb 3.3s linear infinite; animation: subOrb 3.3s linear infinite; }
@-webkit-keyframes subOrb { from { -webkit-transform: rotate(0deg) translateX(26px) scale(1); } 50% { -webkit-transform: rotate(180deg) translateX(26px) scale(0.6); } to { -webkit-transform: rotate(360deg) translateX(26px) scale(1); } }
@keyframes subOrb { from { transform: rotate(0deg) translateX(26px) scale(1); } 50% { transform: rotate(180deg) translateX(26px) scale(0.6); } to { transform: rotate(360deg) translateX(26px) scale(1); } }
.xian-say { margin: 4px 0 8px; padding: 8px 10px; border-radius: 12px; background: #fff7e6; font-size: 13px; line-height: 1.45; color: #6b4a14; text-align: left; }
.xo { display: flex; align-items: center; margin-bottom: 7px; padding: 7px 9px; border-radius: 13px; background: #fff; border: 1px solid #efe6d4; text-align: left; }
.xo.on { border-color: #e8b84a; box-shadow: 0 0 0 2px rgba(232, 184, 74, 0.35); }
.xo .opt-ic { flex: none; width: 34px; height: 34px; margin-right: 9px; }
.xo .opt-ic svg { width: 34px; height: 34px; }
.xo .od { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.xo .od b { display: block; font-size: 14px; color: var(--ink); }
.xo .mini { flex: none; width: auto; padding: 6px 9px; }
@media (prefers-reduced-motion: reduce) { .sub-orb i { -webkit-animation: none; animation: none; } }

/* ---------- 1.10 版：关注作者 / 云存档 / 排行榜 ---------- */
.title-links { display: flex; justify-content: center; margin-top: 6px; }
.title-links .link { margin: 0 8px; }
#title-follow { padding: 5px 14px; border-radius: 16px; background: #ff2442; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 3px 10px rgba(255, 36, 66, 0.35); }
#title-follow.on { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.title-links .link { align-self: center; }
.follow-row { display: flex; align-items: center; justify-content: center; margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.follow-row .follow-btn { flex: none; width: auto; margin-left: 8px; padding: 6px 12px; background: #ff2442; color: #fff; }
.follow-row .follow-btn.on { background: #e9e2d2; color: #6a5a40; }
/* 1.2.6 赞赏作者（和「关注作者」并排成一组；窄屏放不下时这一组整体折到下一行、居中） */
.follow-row { flex-wrap: wrap; }
.follow-row .fr-btns { display: flex; flex: none; margin: 3px 0 3px 8px; }
.follow-row .fr-btns .mini + .mini { margin-left: 8px; }
.follow-row .fr-btns .follow-btn { margin-left: 0; }
.follow-row .reward-btn { flex: none; width: auto; padding: 6px 12px; background: linear-gradient(180deg, #ffe27e, #f7b500); color: #5b3900; }
/* 三个按钮一排的弹窗（分享窗口的发笔记 / 晒评论 / 存相册）：窄屏上字小一点、不折行 */
.modal-btns .btn:first-child:nth-last-child(3), .modal-btns .btn:first-child:nth-last-child(3) ~ .btn { padding-left: 4px; padding-right: 4px; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.modal-btns .btn:first-child:nth-last-child(3) ~ .btn { margin-left: 8px; }
.cloud-box { background: #eef6ff; border-color: #9cc4f0; }
.cloud-box b { color: #1f5fa8; }
.rk-per { display: flex; justify-content: center; margin: 8px 0 2px; }
.rk-per .mini { flex: none; width: auto; margin: 0 3px; padding: 5px 11px; }
.rk-tip { margin: 2px 0 6px; font-size: 12px; }
.rk-my { min-height: 18px; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: #1f5fa8; text-align: center; }
.rk-row { display: flex; align-items: center; padding: 7px 8px; border-bottom: 1px solid #f0e9da; text-align: left; }
.rk-row.top { background: #fffbef; }
.rk-no { flex: none; width: 30px; font-size: 14px; font-weight: 900; color: var(--muted); text-align: center; }
.rk-av { flex: none; width: 30px; height: 30px; margin: 0 8px; border-radius: 50%; object-fit: cover; background: #e9e2d2; }
.rk-av.t { display: inline-block; font-size: 14px; font-weight: 900; line-height: 30px; color: #6a5a40; text-align: center; }
.rk-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13.5px; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.rk-row b { flex: none; margin-left: 6px; font-size: 13.5px; color: var(--red); }
.cloud-err { min-height: 0; margin: 4px 0 6px; font-size: 11px; line-height: 1.4; color: #b0413e; word-break: break-all; }
.cloud-err:empty { display: none; }

/* 1.11 版星界玉 */
.rbadge.r6 { background: #2b2470; background: linear-gradient(90deg, #1a1650, #6b4fd6, #ffb3e6, #6aa8ff, #1a1650); background-size: 300% 100%; -webkit-animation: rbShift 3.4s linear infinite; animation: rbShift 3.4s linear infinite; }
.fx20 svg, .fx20 img { -webkit-animation: fxP20 2.2s ease-in-out infinite; animation: fxP20 2.2s ease-in-out infinite; }
@-webkit-keyframes fxP20 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd98a); } 50% { -webkit-filter: drop-shadow(0 0 9px #c9d6ff) brightness(1.25); } }
@keyframes fxP20 { 0%, 100% { -webkit-filter: drop-shadow(0 0 2px #ffd98a); filter: drop-shadow(0 0 2px #ffd98a); } 50% { -webkit-filter: drop-shadow(0 0 9px #c9d6ff) brightness(1.25); filter: drop-shadow(0 0 9px #c9d6ff) brightness(1.25); } }
.fx21 svg, .fx21 img { -webkit-animation: fxP21 2.6s ease-in-out infinite; animation: fxP21 2.6s ease-in-out infinite; }
@-webkit-keyframes fxP21 { 0%, 100% { -webkit-filter: drop-shadow(0 0 3px #ffb3e6); } 50% { -webkit-filter: drop-shadow(0 0 10px #8fc4ff) brightness(1.2); } }
@keyframes fxP21 { 0%, 100% { -webkit-filter: drop-shadow(0 0 3px #ffb3e6); filter: drop-shadow(0 0 3px #ffb3e6); } 50% { -webkit-filter: drop-shadow(0 0 10px #8fc4ff) brightness(1.2); filter: drop-shadow(0 0 10px #8fc4ff) brightness(1.2); } }
.sw.fx20 { background: linear-gradient(160deg, rgba(0,0,0,0) 40%, #ffd98a 45%, rgba(0,0,0,0) 50%), linear-gradient(20deg, rgba(0,0,0,0) 55%, #dfe6ff 58%, rgba(0,0,0,0) 61%), radial-gradient(circle at 40% 40%, #3a2f8a, #120e3a); -webkit-animation: fxP20 2.2s ease-in-out infinite; animation: fxP20 2.2s ease-in-out infinite; }
.sw.fx21 { background: radial-gradient(circle at 50% 50%, #f4f5f8 0, #dfe2e8 45%, #ffb3e6 62%, #8fc4ff 80%); -webkit-animation: fxP21 2.6s ease-in-out infinite; animation: fxP21 2.6s ease-in-out infinite; }
.cx-sec.star { color: #4b3fc4; }
.cx.star { border-color: #dcd6ff; background: #f7f5ff; }
@media (prefers-reduced-motion: reduce) {
  .fx20 svg, .fx20 img, .fx21 svg, .fx21 img, .sw.fx20, .sw.fx21, .rbadge.r6 { -webkit-animation: none; animation: none; }
}

/* ---------- 1.11 版：菜单分页 / 星际玩法 / 星界飞行棋 / 超智能制作师 / 更新公告 ---------- */
.menu-tabs { display: flex; margin: 0 6px 10px; padding: 3px; border-radius: 12px; background: #efe8da; }
.menu-tabs button { position: relative; flex: 1 1 0; border: 0; padding: 7px 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 900; color: var(--muted); }
.menu-tabs button.on { background: #fff; color: var(--jade-d); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.menu-tabs .tdot { position: absolute; top: 5px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; }
.menu .mi { width: 67px; height: 70px; margin: 0 2.5px 7px; font-size: 12.5px; }
.menu .mi i { font-size: 24px; }
.menu .mi small { display: block; margin-top: 1px; font-size: 9.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.menu .mi.off { opacity: 0.55; }
.menu .mi .lk { position: absolute; top: 3px; right: 4px; font-size: 11px; font-style: normal; }
.solar-row .btn.hub { flex: 2.4 1 0; }
.solar-row .btn.hub small { display: block; font-size: 9.5px; font-weight: 700; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-legend { display: flex; flex-wrap: wrap; justify-content: center; margin: 6px 0 2px; }
.fl-chip { display: inline-flex; align-items: center; margin: 0 5px 3px; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.fl-chip i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.bar.fly i { background: linear-gradient(90deg, #8f7bff, #ffb3e6); }
.fl-got { margin-top: 7px; padding: 7px 10px; border-radius: 12px; background: #f3f0ff; font-size: 12.5px; line-height: 1.45; color: #3b2f8a; text-align: left; }
.ai-list { max-height: 210px; margin-bottom: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ai-ta { display: block; box-sizing: border-box; width: 100%; height: 76px; padding: 9px 10px; border-radius: 12px; border: 1px solid #e3d9c6; background: #fff;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); resize: none; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.ai-wait { display: flex; justify-content: center; margin: 10px 0 6px; }
.ai-wait i { width: 12px; height: 12px; margin: 0 5px; border-radius: 50%; background: #8f7bff; -webkit-animation: aiDot 1s ease-in-out infinite; animation: aiDot 1s ease-in-out infinite; }
.ai-wait i:nth-child(2) { -webkit-animation-delay: 0.15s; animation-delay: 0.15s; }
.ai-wait i:nth-child(3) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
@-webkit-keyframes aiDot { 0%, 100% { -webkit-transform: translateY(0); opacity: 0.4; } 50% { -webkit-transform: translateY(-8px); opacity: 1; } }
@keyframes aiDot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-8px); opacity: 1; } }
.ai-desc { margin: 8px 0 2px; padding: 8px 10px; border-radius: 12px; background: #f3f0ff; font-size: 13.5px; line-height: 1.5; color: #3b2f8a; }
.help.notice .hp b { color: var(--jade-d); }
@media (prefers-reduced-motion: reduce) { .ai-wait i { -webkit-animation: none; animation: none; } }

/* ---------------- 特别定制（1.1.9 起是游戏里的普通弹窗卡片：顶上是 Canvas 现画的设计稿，不再整页铺设计图） ---------------- */
.modal-card.custom-card { max-height: 96%; padding-top: 12px; }   /* 小屏也尽量一屏放下，不用滚 */
.cu-art {
  display: block; width: 100%; height: 96px; border-radius: 16px;
  background: #12271f; background: radial-gradient(ellipse at 50% 45%, #2f6650 0%, #153328 55%, #0b1813 100%);
}
/* 设计图：固定高度 + contain（图自带黑底，两边留的黑边看不出来），图解码前后卡片不跳 */
.cu-pic {
  display: block; width: 100%; height: 120px; border-radius: 16px;
  -o-object-fit: contain; object-fit: contain; background: #0c0e11;
}
.cu-tabs { margin: 0 0 8px; }
.cu-tabs .tab { padding: 6px 2px; font-size: 12.5px; }
.cu-live { display: block; width: 100%; height: 150px; border-radius: 14px; background: #1a0804; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
/* 集市面板摊位标签下面那一行：特别定制入口 + 换一批 + 秘诀 */
.quick-row { display: flex; align-items: stretch; margin: 8px 0 0; }
.quick-row .cu-entry { flex: 1 1 auto; min-width: 0; margin: 0; }
.qk {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; margin-left: 6px; padding: 0 2px;
  border: 1px solid #e3d9c5; border-radius: 14px; background: #fff; color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 800; line-height: 1.15;
  box-shadow: 0 3px 0 #d8cdb8;
}
.qk:active { transform: translateY(2px); box-shadow: 0 1px 0 #d8cdb8; }
.qk i { font-style: normal; font-size: 16px; line-height: 18px; }
.qk small { display: block; max-width: 100%; overflow: hidden; font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
/* 太阳系玉场：特别定制 / 换一批 / 星际玩法 / 秘诀 四个等宽按钮排一行（换一批和星际玩法不用再往下滑才看得到） */
.quick-row.four .qk { position: relative; flex: 1 1 0; width: auto; min-width: 0; height: 45px; margin-left: 6px; padding: 0 2px; white-space: nowrap; }   /* 和别的摊位那一行一样高，面板不会因此多出一截要滑 */
.quick-row.four .qk i { font-size: 15px; line-height: 17px; }
.quick-row.four .qk:first-child { margin-left: 0; }
.qk.cu { border-color: #f0b400; background: linear-gradient(135deg, #2b0d05, #7a2f0c); color: #ffd35a; box-shadow: 0 3px 0 #3a1204; }
.qk.cu:active { box-shadow: 0 1px 0 #3a1204; }
.qk.cu small { color: rgba(255, 230, 180, 0.85); }
.qk.cu.ready::after { content: ''; position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 4px; background: #ff3b30; }
.qk.hub { border-color: #c98a00; background: linear-gradient(180deg, #ffe27e, #f7b500); color: #5b3900; box-shadow: 0 3px 0 #c98a00; }
.qk.hub:active { box-shadow: 0 1px 0 #c98a00; }
.qk.hub small { color: #7a5200; }
/* 1.3.0：星际玩法按钮右上角的「新」；星际玩法列表里「穿越星界」名字后面的「新」 */
.new-badge {
  position: absolute; top: -7px; right: -4px; z-index: 2; min-width: 22px; height: 17px; padding: 0 5px; border: 1.5px solid #fff; border-radius: 9px;
  background: #ff3b30; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 900; line-height: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.new-tag { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 7px; background: #ff3b30; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 900; line-height: 15px; vertical-align: 1px; }

/* ---------------- 1.3 版：穿越星界 ---------------- */
/* 星界板很高：面板压矮，把地方让给板子 */
/* --fix-ph：内容放不下时 game.js 的 fitFixedPanel 量出来的高度（窄屏、系统字体调大）；平时按 132 */
.app.astral .panel { height: 132px; height: calc(var(--fix-ph, 132px) + var(--sab)); }
.app.astral .panel-inner { padding: 10px 12px 6px; overflow: hidden; }
/* 飞行中面板和没入场时一样高：舞台不变，星界板不会在入场 / 结算的一瞬间跳一下大小 */
.app.astral.as-run .panel-inner { padding-top: 16px; }
.app.astral.as-run .as-tip { margin-top: 10px; font-size: 12.5px; }
.app.astral .tool-tip { margin-top: 5px; font-size: 12px; line-height: 1.4; }
.app.astral .mine-head b { flex: none; white-space: nowrap; }   /* 窄屏 / 大字体：折行的是右边的余额那一句，标题不折 */
.app.astral .row { margin-top: 7px; }
.app.astral .row .btn { min-height: 44px; white-space: nowrap; }
.app.astral .row .btn small { font-size: 10px; margin-top: 1px; }
.as-hud { display: flex; align-items: center; }
.as-info { flex: none; width: 132px; }
.as-info b { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.as-info small { display: block; overflow: hidden; font-size: 11.5px; font-weight: 700; color: #6a4fd6; white-space: nowrap; text-overflow: ellipsis; }
.as-en { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; margin: 0 8px; }
.as-bar { flex: 1 1 auto; height: 10px; border-radius: 5px; background: #e9e2d2; overflow: hidden; }
.as-bar i { display: block; width: 100%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4fd6ff, #7b6bff); }
.as-bar i.low { background: linear-gradient(90deg, #ff7a45, #ff3b30); }
.as-en b { flex: none; width: 44px; margin-left: 6px; font-size: 12.5px; color: var(--ink); text-align: right; white-space: nowrap; }
.as-hud .mini { flex: none; width: auto; padding: 7px 11px; white-space: nowrap; }
.as-tip { margin-top: 6px; }
/* 「放弃」放在第二行正中间（1.2.4 在最右边，和右手拖杆的位置挨着） */
.as-row2 { margin-top: 6px; text-align: center; }
.as-row2 .mini { width: auto; padding: 6px 18px; white-space: nowrap; }
/* 两根操纵杆：1.2.4 贴着屏幕左右边（6px），拇指从边上开始拖容易触发系统的右划返回、把小工具关掉；
   现在挪到离边 16% 的地方、做大一圈，手势也是以它为准（真正接手势的仍是舞台左右两半，只是让拇指放在这里） */
.as-stick {
  position: absolute; bottom: 22px; z-index: 4; display: none; width: 58px; height: 150px; margin-left: -29px; border-radius: 29px; pointer-events: none;
  background: rgba(10, 8, 34, 0.5); box-shadow: inset 0 0 0 2px rgba(180, 190, 255, 0.45), 0 0 0 6px rgba(255, 211, 90, 0.12);
}
.as-stick.l { left: 16%; }
.as-stick.r { left: 84%; }
/* 横屏：竖屏时的左边（系统右划返回的那条边）转到了画面底边（听筒在左）或顶边，操纵杆放到舞台中间高度，拇指离两条边都远 */
html.land .as-stick { bottom: auto; top: 50%; margin-top: -75px; }
html.land .as-stick.l { left: 13%; }
html.land .as-stick.r { left: 87%; }
.as-stick.show { display: block; }
.as-stick::before, .as-stick::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; }
.as-stick::before { top: 8px; border-bottom-color: rgba(255, 255, 255, 0.55); border-top-width: 0; }
.as-stick::after { bottom: 8px; border-top-color: rgba(255, 255, 255, 0.55); border-bottom-width: 0; }
.as-stick i {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffc93c 55%, #c98a00); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.as-stick b { position: absolute; left: -10px; right: -10px; bottom: -18px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.9); text-align: center; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
/* 规则里的星门清单 */
.as-list { margin-top: 8px; }
.as-li { display: flex; align-items: center; padding: 5px 2px; border-bottom: 1px dashed #efe7d8; font-size: 12.5px; opacity: 0.7; }
.as-li.got { opacity: 1; }
.as-li i { flex: none; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.12); }
.as-li b { flex: none; width: 118px; color: var(--ink); white-space: nowrap; }
.as-li span { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
/* 星座玉的图（Blender 渲染，assets/zodiac/ 里按需取）：图盖在色块上；没取到（.fail）就露出色块和星座的字，点一下重试 */
.zd-art { position: relative; display: block; width: 62px; height: 62px; margin: 0 auto 4px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.zd-art b { position: absolute; left: 0; right: 0; top: 50%; margin-top: -12px; font-size: 20px; font-weight: 900; line-height: 24px; color: rgba(255, 255, 255, 0.92); text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.zd-art img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.zd-art.fail img { display: none; }
.zd-art.big { width: 100%; max-width: 250px; height: 0; padding-bottom: 250px; margin-bottom: 8px; border-radius: 16px; }
@media (max-width: 340px) { .zd-art.big { max-width: 200px; padding-bottom: 200px; } }
.zd-art.big b { font-size: 46px; margin-top: -30px; line-height: 60px; }
.zd-card { text-align: center; }
.zd-name b { font-size: 16px; color: var(--ink); }
.zd-name .rbadge { margin-left: 6px; vertical-align: 2px; }
.zd-desc { margin: 6px 0 8px; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: left; }
.zd-card .report { text-align: left; }
.cx-sec.zodiac { color: #b3581e; }
.cx.zodiac { border-color: #f3ddc0; background: #fffaf2; }
.cx-grid.zd .cx { width: calc(50% - 6px); }
.cx i.zd-q { width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(135deg, #2a1a5a, #4a2a7a); color: rgba(255, 255, 255, 0.7); font-style: normal; font-size: 24px; font-weight: 900; line-height: 58px; }
.rbadge.r7 { background: #c8641e; background: linear-gradient(90deg, #ff9a3a, #c83a8a, #5a6bff, #ff9a3a); background-size: 300% 100%; -webkit-animation: rbShift 3.2s linear infinite; animation: rbShift 3.2s linear infinite; }
.rbadge.r8 { background: #5a2ac8; background: linear-gradient(90deg, #ffd35a, #ff7ad8, #7ad8ff, #b08aff, #ffd35a); background-size: 300% 100%; color: #2a104a; -webkit-animation: rbShift 2.4s linear infinite; animation: rbShift 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rbadge.r7, .rbadge.r8 { -webkit-animation: none; animation: none; } }

/* ---------------- 1.3 版：搏一搏弹珠机 ---------------- */
/* 集市顶上第七个标签（七个等宽，字再小一点） */
.tabs.seven .tab { font-size: 11.5px; letter-spacing: -0.2px; }
.tabs.seven .tab i { font-size: 15px; }
.tab.pc-tab b { color: #b3261e; }
/* 弹珠机用矮面板，把地方让给盘面 */
.app.pachi .panel { height: 136px; height: calc(var(--fix-ph, 136px) + var(--sab)); }
.app.pachi .panel-inner { padding: 10px 12px 6px; overflow: hidden; }
.pc-bead { display: flex; align-items: center; padding: 6px 8px 6px 10px; border: 1px solid #f0e3c4; border-radius: 14px; background: #fff; }
.pc-dot {
  flex: none; display: block; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; font-style: normal; font-size: 17px; font-weight: 900; line-height: 34px; text-align: center; color: #9a8a6a;
  box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.28), inset 4px 4px 7px rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pc-dot.none { background: #efe8da; box-shadow: inset 0 0 0 2px #e0d5bd; }
.pc-dot.fly { background: #fff3c4; box-shadow: inset 0 0 0 2px #f0c85a; }
.pc-main { flex: 1 1 auto; min-width: 0; }
.pc-main b { display: block; overflow: hidden; font-size: 14px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.pc-main small { display: block; overflow: hidden; font-size: 11.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.pc-bead .mini { flex: none; width: auto; margin-left: 8px; padding: 8px 10px; white-space: nowrap; }
.btn.pc-back { flex: none; width: 60px; padding: 0; font-size: 14px; letter-spacing: 0; }
.app.pachi .row .btn { min-height: 46px; white-space: nowrap; }
.app.pachi .row .btn small { font-size: 10px; margin-top: 1px; }
/* 力度条：拉拉杆的时候浮在舞台顶上 */
.pachi-pow {
  position: absolute; left: 50%; top: 8px; z-index: 4; display: none; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px;
  -webkit-transform: translateX(-50%); transform: translateX(-50%); pointer-events: none;
  background: rgba(0, 0, 0, 0.55); color: #ffe6b0; font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.pachi-pow.show { display: flex; }
.pp-bar { width: 120px; height: 8px; margin: 0 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.pp-bar i { display: block; width: 0; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8ee6a8, #ffd35a 60%, #ff7a45); }
.pachi-pow b { min-width: 38px; text-align: right; color: #fff; }
.pachi-pow.weak .pp-bar i { background: #9aa3a8; }
.pachi-pow.weak b { color: #ffb8a8; }
/* 倍率表（规则 / 融珠确认） */
.pc-odds-t { margin: 4px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink); text-align: center; }
.pc-odds { display: flex; margin: 6px 0 2px; }
.pc-od { flex: 1 1 0; min-width: 0; margin: 0 2px; text-align: center; }
.pc-od b { display: block; padding: 5px 0; border-radius: 9px; font-size: 13.5px; font-weight: 900; white-space: nowrap; }
.pc-od span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pc-od em { display: block; overflow: hidden; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--red); white-space: nowrap; }
.pc-sort { display: flex; align-items: center; margin: 0 0 8px; }
.pc-sort .mini { flex: none; width: auto; margin: 0 6px 0 0; padding: 6px 10px; }
.pc-sort span { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.cu-entry {
  display: flex; align-items: center; width: 100%; margin: 8px 0 0; padding: 5px 10px; border: 1px solid #f0b400; border-radius: 14px;
  background: linear-gradient(90deg, #2b0d05, #5a1e08 55%, #8a3a10); color: #ffe6b0; text-align: left; font-family: inherit; box-shadow: 0 3px 0 #3a1204;
}
.cu-entry:active { transform: translateY(2px); box-shadow: 0 1px 0 #3a1204; }
.cu-entry i { flex: none; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: rgba(255, 200, 90, 0.18); font-style: normal; font-size: 17px; line-height: 30px; text-align: center; }
.cu-entry span { flex: 1 1 auto; min-width: 0; }
.cu-entry b { display: block; font-size: 14px; letter-spacing: 1px; color: #ffd35a; }
.cu-entry small { display: block; overflow: hidden; font-size: 11px; line-height: 1.3; color: rgba(255, 230, 180, 0.85); white-space: nowrap; text-overflow: ellipsis; }
.cu-entry em { flex: none; margin-left: 6px; font-style: normal; font-size: 20px; color: #ffd35a; }
.cu-entry.ready b::after { content: '可定制'; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #ff3b30; color: #fff; font-size: 10px; vertical-align: 2px; }
.cu-head { margin-top: 8px; text-align: center; }
.cu-tag { display: inline-block; padding: 1px 10px; border-radius: 11px; border: 1px solid #e8c46a; background: #fff6dc; color: #9a6a00; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; }
.cu-name { margin-top: 4px; font-size: 22px; font-weight: 900; letter-spacing: 3px; color: #7a5200; }
.cu-desc { margin: 4px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cu-sub { margin: 10px 2px 4px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.cu-sub span { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.cu-chips { display: flex; margin: 0 0 8px; }
.cu-chip {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
  padding: 4px 0 2px; border: 0; border-radius: 12px; background: none; font-family: inherit; color: var(--ink);
}
.cu-chip:active { background: rgba(31, 90, 70, 0.08); }
.cu-chip i {
  display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed rgba(31, 51, 43, 0.4);
  font-style: normal; font-size: 16px; font-weight: 900; line-height: 30px; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); opacity: 0.5;
}
.cu-chip.ok i { border: 2px solid #f0b400; opacity: 1; box-shadow: 0 0 0 2px #fff3c4; }
.cu-chip.lk i { opacity: 0.85; font-size: 13px; }
.cu-chip b { display: block; margin-top: 3px; max-width: 100%; overflow: hidden; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.cu-tasks { display: flex; margin: 0 0 4px; }
.cu-task {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; padding: 7px 8px; border-radius: 14px;
  border: 1px solid #ece3d0; background: #fff; color: var(--ink); text-align: left; font-family: inherit;
}
.cu-task + .cu-task { margin-left: 8px; }
.cu-task:active { background: #f6f1e6; }
.cu-task.ok { border-color: #f0c860; background: #fff8e3; }
.cu-sw { flex: none; width: 28px; height: 28px; margin-right: 7px; border-radius: 50%; font-style: normal; font-size: 15px; line-height: 28px; text-align: center; }
.cu-sw.ic { background: #f4efe3; }
.cu-t { flex: 1 1 auto; min-width: 0; }
.cu-t b { display: block; overflow: hidden; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.cu-t small { display: block; margin-top: 2px; overflow: hidden; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cu-task.ok .cu-t small { color: #b07a00; }
.cu-t em { display: inline-block; margin-top: 2px; padding: 1px 10px; border-radius: 10px; font-style: normal; font-size: 12px; font-weight: 900; color: #5b3900; background: linear-gradient(180deg, #ffe27e, #f7b500); }
/* 底部钉住的「提交定制 + 关闭」：卡片要滚动时也一直在底部可见（卡片 padding-bottom 16px，用负 margin 盖住） */
.cu-foot {
  position: -webkit-sticky; position: sticky; bottom: 0; z-index: 2;
  margin: 14px -18px -16px; padding: 4px 18px 14px; background: var(--cream);
}
.cu-foot::before {
  content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; pointer-events: none;
  background: linear-gradient(rgba(255, 250, 241, 0), #fffaf1);
}
.cu-go { display: flex; width: 100%; margin: 0; }
.cu-go.off { opacity: 0.55; -webkit-filter: grayscale(0.5); filter: grayscale(0.5); }
.cu-foot .close-pill { margin-top: 8px; }
.cu-done { margin: 12px 0 4px; text-align: center; font-size: 15px; font-weight: 800; color: #9a6a00; }
@media (max-height: 620px) {
  .cu-art { height: 84px; }
  .cu-pic { height: 100px; }
  .cu-live { height: 118px; }
  .cu-desc { display: none; }
}
.cu-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-style: normal; font-size: 11px; font-weight: 900; color: #5b3900; background: linear-gradient(180deg, #ffe27e, #f7b500); vertical-align: 2px; }
