/* ============================================================
   小游戏玩法舞台：LL112 爆仓警告（.bc-*）· LL113 鼠了个鼠（.shu-*）· LL114 真羊了个羊（.shu.yang + .yang-*，沿用鼠了个鼠的牌、托盘与暂存区样式）
   · LL115 鹿了个鹿（.shu.lu + .lu-*，同样沿用鼠了个鼠的牌堆、托盘与暂存区）
   · LL116 黄金矿工（.shu.gm + .gm-*）· LL117 扫老六（.shu.slx + .slx-*），两者沿用鼠了个鼠的标题条、提示条、开单页和鹿了个鹿的报数面板
   配套 js/fun-minigames.js。牌 / 货箱的样式不依赖外层容器——动画时会把它们复制到页面最上层（.mg-fx-layer）播放。
   ============================================================ */

.fw-overlay[data-entry="LL112"] .fw-stage, .fw-overlay[data-entry="LL113"] .fw-stage, .fw-overlay[data-entry="LL115"] .fw-stage,
.fw-overlay[data-entry="LL116"] .fw-stage, .fw-overlay[data-entry="LL117"] .fw-stage { height: auto; overflow: visible; }
/* 电脑上舞台比录入卡长：录入卡跟着滚动，翻到物品库下面也能直接提交 */
@media (min-width: 761px) {
  .fw-overlay[data-entry="LL112"] .fw-entry, .fw-overlay[data-entry="LL113"] .fw-entry, .fw-overlay[data-entry="LL115"] .fw-entry,
  .fw-overlay[data-entry="LL116"] .fw-entry, .fw-overlay[data-entry="LL117"] .fw-entry { position: sticky; top: 0; }
}

/* ---------------- 动效层（页面最上层，不挡点击） ---------------- */
.mg-fx-layer { position: fixed; inset: 0; z-index: 400; pointer-events: none; font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
.mg-ghost { position: fixed; display: block; will-change: transform, opacity; }
.mg-ghost > * { width: 100% !important; height: 100% !important; margin: 0 !important; }
.mg-spark { position: fixed; width: 8px; height: 8px; margin: -4px; border-radius: 2px; will-change: transform, opacity; }
.mg-spark:nth-child(3n) { border-radius: 50%; }
.mg-banner { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.mg-banner b { padding: 10px 26px; border-radius: 999px; font-size: clamp(18px, 3vw, 28px); font-weight: 900; letter-spacing: 1px; white-space: nowrap; opacity: 0; animation: mg-banner 1.8s ease both; }
.mg-banner.ship b { background: linear-gradient(135deg, #fff4c8, #f3c54f); color: #6d4f07; box-shadow: 0 12px 30px rgba(200, 135, 15, 0.4); }
.mg-banner.boom b { background: linear-gradient(135deg, #ff6b5b, #c81e1e); color: #fff; box-shadow: 0 12px 30px rgba(200, 30, 30, 0.45); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
@keyframes mg-banner { 0% { opacity: 0; transform: scale(0.5) rotate(-4deg); } 14% { opacity: 1; transform: scale(1.08) rotate(1deg); } 24% { transform: scale(1) rotate(0); } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.96) translateY(-10px); } }

/* 音效开关（三个小游戏共用一个设置，存在本机） */
.mg-sound { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid rgba(99, 159, 112, 0.35); border-radius: 999px; background: #fff; color: var(--green-dark); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.mg-sound svg { font-size: 15px; }
.mg-sound:hover { border-color: var(--green); }
.mg-sound.off { border-color: var(--line); background: #f3f3f1; color: var(--soft); }
.shu-head .mg-sound, .bc-tools .mg-sound { margin-left: auto; }

/* 小游戏标题 / 数字字体：得意黑子集，改名 LL Game（OFL，见 THIRD_PARTY_NOTICES.md；tools/minigame_art/game_font.py 生成） */
@font-face { font-family: 'LL Game'; src: url(../assets/fonts/ll-game.woff2) format('woff2'); font-display: swap; }

/* ================= 爆仓警告 ================= */
.bc { --bc-ink: #2b2f36; --bc-steel: #2f3843; --bc-steel-2: #3c4754; display: flex; flex-direction: column; gap: 14px; }
.bc .fw-section-title { margin-bottom: 0; }
.bc-version { padding: 3px 10px; border-radius: 999px; background: #fff6d6; color: #8a6a14; font-weight: 700; }
img.bc-emb { object-fit: contain; }
/* 6 种图标（企划 v1.1）：三种藏品按档次取紫 / 朱红 / 金，其余按交易行分类取蓝 / 绿 / 石板灰 */
.g-xs { --gc: #8a4fc4; --gc2: #5f3191; --gl: #f0e7fa; }
.g-cq { --gc: #d0453a; --gc2: #962a22; --gl: #fde8e5; }
.g-jp { --gc: #c9951a; --gc2: #8c6408; --gl: #fcf3d9; }
.g-e { --gc: #2f80c9; --gc2: #1d5a96; --gl: #e3f0fb; }
.g-h { --gc: #2e9b5a; --gc2: #1d6e3e; --gl: #e2f5e9; }
.g-o { --gc: #5f6f86; --gc2: #3d4a5c; --gl: #e9edf3; }
/* 试行 v1 的旧图标，只在 v1.1 之前录入的旧单里出现 */
.g-m { --gc: #2e9b5a; --gc2: #1d6e3e; --gl: #e2f5e9; }
.g-c { --gc: #8a4fc4; --gc2: #5f3191; --gl: #f0e7fa; }
.g-n { --gc: #e0861a; --gc2: #a85c08; --gl: #fdf0dd; }
.g-d { --gc: #16908a; --gc2: #0d6460; --gl: #ddf4f2; }

/* 2026-10-24 二次元商用版：深色玻璃仓库 + 二次元赛璐璐素材（images/fun/bc/，tools/minigame_art/export_v2.py 导出）；
   标题和数字用 LL Game（得意黑子集，assets/fonts/ll-game.woff2，tools/minigame_art/game_font.py 生成） */
.bc-board { container: bc-board / inline-size; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 80% at 50% 0%, #2a2f3d 0%, #1a1d26 55%, #13151b 100%); box-shadow: 0 18px 40px rgba(15, 18, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: box-shadow 0.3s ease; }
.bc-board:has(.bc-shelf.hot) { box-shadow: 0 18px 40px rgba(15, 18, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 2px rgba(255, 160, 40, 0.22), inset 0 0 60px rgba(255, 120, 30, 0.12); }
.bc-board:has(.bc-shelf.crit) { box-shadow: 0 18px 40px rgba(15, 18, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 2px rgba(255, 80, 80, 0.32), inset 0 0 70px rgba(255, 60, 60, 0.16); }

/* 小游戏横幅（出货 / 爆仓 / 被阴 / 清图 / 开挖）：标题字体，字大一号 */
.bc-board .mg-banner b, .slx .mg-banner b, .gm .mg-banner b { padding: 8px 30px; font: 400 clamp(26px, 4vw, 40px)/1.2 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 2px; }
.bc-board .mg-banner.ship b, .slx .mg-banner.ship b, .gm .mg-banner.ship b { background: linear-gradient(100deg, #ffd34d, #ff9a1f); color: #fff; text-shadow: 0 2px 0 rgba(170, 80, 0, 0.45); box-shadow: 0 12px 30px rgba(255, 140, 20, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.bc-board .mg-banner.boom b, .slx .mg-banner.boom b, .gm .mg-banner.boom b { background: linear-gradient(100deg, #ff6b7a, #d0243b); box-shadow: 0 12px 30px rgba(208, 36, 59, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.4); }

/* 顶栏：仓管半身像 + 标题 / 警示灯 + 一句状态 + 右边仓位条 */
.bc-hazard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 16px; row-gap: 4px; min-height: 86px; padding: 4px 2px 4px 108px; }
.bc-hazard-title { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; font: 400 32px/1.1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 1px; white-space: nowrap; }
.bc-siren { order: 2; width: 40px; height: 40px; object-fit: contain; filter: grayscale(1) brightness(0.7); transition: filter 0.3s ease; }
/* 高爆档的档名牌：标题后面一块红底斜角牌 */
.bc-tier { order: 3; padding: 4px 10px 3px; border-radius: 8px; background: linear-gradient(100deg, #ff6b7a, #d0243b); color: #fff; font: 400 17px/1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; font-style: normal; letter-spacing: 1px; transform: skewX(-8deg); box-shadow: 0 4px 12px rgba(208, 36, 59, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.bc-hazard.warm .bc-siren { filter: none; }
.bc-hazard.hot .bc-siren { filter: drop-shadow(0 0 10px rgba(255, 70, 50, 0.85)); animation: bc-siren 1.2s ease-in-out infinite; }
.bc-hazard.crit .bc-siren, .bc-hazard.alarm .bc-siren { filter: drop-shadow(0 0 14px rgba(255, 50, 40, 1)); animation: bc-siren 0.5s ease-in-out infinite; }
@keyframes bc-siren { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
.bc-warn { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px; min-width: 0; color: rgba(255, 255, 255, 0.62); font-size: 14px; font-weight: 800; }
.bc-warn::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 8px #7ee0a8; }
.bc-hazard.warm .bc-warn::before { background: #f5c400; box-shadow: 0 0 8px #f5c400; }
.bc-hazard.hot .bc-warn { color: #ffc260; }
.bc-hazard.hot .bc-warn::before { background: #ffb020; box-shadow: 0 0 10px #ffb020; }
.bc-hazard.crit .bc-warn { color: #ff8a8a; animation: bc-blink 1s ease-in-out infinite; }
.bc-hazard.crit .bc-warn::before { background: #ff5a5a; box-shadow: 0 0 10px #ff5a5a; }
@keyframes bc-blink { 50% { opacity: 0.55; } }
.bc-hazard.alarm { animation: bc-alarm 0.25s linear 3; }
@keyframes bc-alarm { 50% { filter: brightness(1.5); } }

/* 灵鹿仓管：仓库越满越慌，爆仓抱头，出货 / 出满竖大拇指；换表情时弹一下 */
.bc-girl { position: absolute; left: -6px; bottom: -8px; width: 104px; height: 108px; object-fit: cover; object-position: 50% 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); transform-origin: 50% 100%; animation: bc-girl-in 0.35s cubic-bezier(.3, .7, .4, 1.4); }
.bc-girl.worry { animation: bc-girl-in 0.35s cubic-bezier(.3, .7, .4, 1.4), bc-girl-sway 1.6s 0.35s ease-in-out infinite; }
.bc-girl.panic { animation: bc-girl-shake 0.3s linear infinite; }
.bc-girl.happy { animation: bc-girl-hop 0.6s cubic-bezier(.3, .7, .4, 1.4); }
@keyframes bc-girl-in { 0% { transform: translateY(10px) scale(0.92); } 100% { transform: none; } }
@keyframes bc-girl-sway { 50% { transform: rotate(-3deg); } }
@keyframes bc-girl-shake { 25% { transform: translateX(-2px) rotate(-2deg); } 75% { transform: translateX(2px) rotate(2deg); } }
@keyframes bc-girl-hop { 0% { transform: translateY(12px) scale(0.9); } 50% { transform: translateY(-8px) scale(1.05); } 100% { transform: none; } }

/* 仓位条：右边一个大数字「5 / 7」+ 7 段斜条，颜色随仓库满度从绿到红 */
.bc-meter { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bc-meter b { font: 400 40px/1 'LL Game', sans-serif; }
.bc-meter b small { margin-left: 2px; font-size: 22px; color: rgba(255, 255, 255, 0.45); }
.bc-meter span { display: flex; gap: 5px; }
.bc-meter i { width: 30px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); transform: skewX(-20deg); transition: background 0.25s ease, box-shadow 0.25s ease; }
.bc-hazard.calm .bc-meter i.on { background: linear-gradient(90deg, #a8f0c4, #3fbf7f); box-shadow: 0 0 8px rgba(63, 191, 127, 0.6); }
.bc-hazard.warm .bc-meter i.on { background: linear-gradient(90deg, #fff1a0, #f5c400); box-shadow: 0 0 8px rgba(245, 196, 0, 0.6); }
.bc-hazard.hot .bc-meter i.on { background: linear-gradient(90deg, #ffcf5a, #ff9a1f); box-shadow: 0 0 10px rgba(255, 170, 40, 0.7); }
.bc-hazard.crit .bc-meter i.on { background: linear-gradient(90deg, #ff9a9a, #ff4d4d); box-shadow: 0 0 12px rgba(255, 77, 77, 0.85); }
.bc-hazard.hot .bc-meter b { color: #ffb020; }
.bc-hazard.crit .bc-meter b { color: #ff6b6b; }

/* 出货栏：每批一张卡；出了货开来一辆满车、贴着这一批的图标，卡片按图标的颜色发光 */
.bc-batches { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 10px; }
.bc-batch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 8px 14px 8px 12px; border: 1.5px dashed rgba(255, 255, 255, 0.16); border-radius: 18px; color: rgba(255, 255, 255, 0.45); font-size: 14px; font-weight: 800; background: rgba(255, 255, 255, 0.04); }
.bc-batch-no { position: absolute; right: 12px; top: 8px; font: 400 13px/1 'LL Game', sans-serif; font-style: normal; color: rgba(255, 255, 255, 0.4); }
.bc-batch-no::before { content: '第 '; }
.bc-batch-no::after { content: ' 批'; }
.bc-batch em { font-style: normal; font-weight: 700; opacity: 0.85; }
.bc-truck { position: relative; display: inline-block; flex-shrink: 0; width: 92px; height: 60px; }
.bc-truck > img:first-child { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.bc-batch:not(.done) .bc-truck > img { filter: grayscale(1) brightness(1.3) opacity(0.3); }
.bc-truck .on-truck { position: absolute; left: 10%; top: -12%; width: 34%; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.bc-batch.done { border: 1.5px solid color-mix(in srgb, var(--gc) 65%, #fff 10%); color: #fff; background: linear-gradient(100deg, color-mix(in srgb, var(--gc) 42%, transparent), color-mix(in srgb, var(--gc) 8%, transparent)); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.bc-batch.done .bc-batch-no { color: rgba(255, 255, 255, 0.75); }
/* 出货栏按每格自己的宽度收字，不折行（进阶档 4 批、图解里的窄仓库、手机）：先省序号，再省“已出货”，再把“藏品”两字收掉，最后只剩车 */
.bc-batch { container: bc-batch / inline-size; }
.bc-batch > span { white-space: nowrap; }
@container bc-batch (max-width: 170px) { .bc-batch-no { display: none; } .bc-truck { width: 70px; height: 46px; } }
@container bc-batch (max-width: 140px) { .bc-batch em { display: none; } }
@container bc-batch (max-width: 110px) { .bc-batch .bc-long { display: none; } .bc-truck { width: 48px; height: 32px; } }
@container bc-batch (max-width: 76px) { .bc-batch:not(.done) .bc-truck { display: none; } .bc-batch.done > span:not(.bc-truck) { display: none; } }
/* 高爆档 7 批、11 批：分两行（窄仓库三行），卡片矮一点；窄到放不下“待出货”时空卡只写批号 */
.bc-batches.many { grid-auto-flow: row; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.bc-batches.many .bc-batch { justify-content: center; min-height: 60px; padding: 6px 8px; gap: 6px; }
@container bc-board (max-width: 600px) { .bc-batches.many { grid-template-columns: repeat(var(--cols-sm), minmax(0, 1fr)); } }
@container bc-batch (max-width: 90px) {
  .bc-batches.many .bc-batch:not(.done) > span:last-child { display: none; }
  .bc-batches.many .bc-batch:not(.done) .bc-batch-no { display: block; position: static; font-size: 18px; }
  .bc-batches.many .bc-batch-no::before, .bc-batches.many .bc-batch-no::after { content: none; }
  .bc-batches.many .bc-batch.done .bc-truck { width: 100%; max-width: 64px; }
}
.bc-batch.just-ship { animation: bc-ship 0.6s 0.45s cubic-bezier(.2, .9, .3, 1.4) both; }
.bc-batch.just-ship .bc-truck { animation: bc-drive 0.75s 0.4s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes bc-ship { 0% { transform: scale(0.7); filter: brightness(1.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); filter: none; } }
@keyframes bc-drive { 0% { transform: translateX(-70px); opacity: 0; } 55% { transform: translateX(5px) rotate(-3deg); opacity: 1; } 75% { transform: translateX(-2px) rotate(1deg); } 100% { transform: none; } }

/* 仓库：7 个货位（高爆档 6 个，--slots）；空位只写编号，下一件要放的位置描一圈琥珀色 */
.bc-shelf { position: relative; display: grid; grid-template-columns: repeat(var(--slots, 7), minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, #232733, #1a1d26); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 30px rgba(0, 0, 0, 0.3); transition: box-shadow 0.3s ease; }
.bc-shelf.hot { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 30px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 160, 40, 0.45), 0 0 26px rgba(255, 140, 30, 0.25); }
.bc-shelf.crit { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 30px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 80, 80, 0.6), 0 0 30px rgba(255, 70, 70, 0.32); animation: bc-pulse 1.3s ease-in-out infinite; }
.bc-shelf.alarm { animation: bc-shake 0.5s ease 1; background: linear-gradient(180deg, #5a1d24, #2a1216); }
@keyframes bc-pulse { 50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), inset 0 -16px 30px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 80, 80, 0.35), 0 0 40px rgba(255, 70, 70, 0.5); } }
@keyframes bc-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-8px) rotate(-0.6deg); } 30% { transform: translateX(7px) rotate(0.5deg); } 45% { transform: translateX(-6px); } 60% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.bc-slot { container: bc-slot / inline-size; position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07); }
.bc-slot:has(.bc-crate) { background: none; box-shadow: none; }
.bc-slot:has(.bc-crate) + .bc-slot:not(:has(.bc-crate)), .bc-shelf:not(:has(.bc-crate)) .bc-slot:first-child { background: rgba(255, 176, 32, 0.06); box-shadow: inset 0 0 0 2px rgba(255, 176, 32, 0.55), 0 0 16px rgba(255, 176, 32, 0.2); }
.bc-slot-no { color: rgba(255, 255, 255, 0.16); font: 400 28px/1 'LL Game', "Microsoft YaHei", sans-serif; }
.bc-stamp { position: absolute; inset: -6px; display: grid; place-items: center; background: url(../images/fun/bc/boom.webp) center / min(70%, 300px) auto no-repeat; color: #fff; font: 400 clamp(30px, 6vw, 56px)/1 'LL Game', "Microsoft YaHei", sans-serif; letter-spacing: 6px; -webkit-text-stroke: 8px #b3121f; paint-order: stroke fill; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); animation: bc-stamp 0.5s cubic-bezier(.2, .9, .3, 1.4) both; pointer-events: none; z-index: 2; }
@keyframes bc-stamp { 0% { transform: scale(2.2) rotate(-10deg); opacity: 0; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }

/* 货箱：按图标颜色的卡牌（抽卡式放射光底）+ 中间物品图 + 底部图标和简称；红货一圈红光、右上「红」 */
.bc-crate { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 6% 8% 28%; border-radius: 16px; color: #fff; background: linear-gradient(165deg, color-mix(in srgb, var(--gc, #888) 72%, #fff), var(--gc2, #555)); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14); box-sizing: border-box; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; overflow: hidden; }
.bc-crate::before { content: ''; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.2) 0 8deg, rgba(255, 255, 255, 0) 8deg 20deg); -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent); pointer-events: none; }
.bc-crate::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.2)); pointer-events: none; }
.bc-crate img.bc-crate-item, .bc-crate > img:not(.bc-emb) { position: relative; z-index: 1; max-width: 76%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(20, 10, 40, 0.35)); }
.bc-crate-glyph { position: relative; z-index: 1; display: grid; place-items: center; width: 64%; aspect-ratio: 1; color: #fff; font-size: 26px; }
.bc-crate-glyph .bc-emb { width: 100%; height: 100%; filter: drop-shadow(0 5px 5px rgba(20, 10, 40, 0.35)); }
.bc-crate-tag { position: absolute; left: 6%; right: 6%; bottom: 6%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 3px; height: 22%; min-height: 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.26); font-size: 12px; font-style: normal; font-weight: 900; line-height: 1; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.bc-crate-tag em { font-style: normal; }
.bc-crate-tag svg { font-size: 12px; }
.bc-crate-tag .bc-emb { width: 16px; height: 16px; flex-shrink: 0; }
.bc-crate-name { display: none; }
/* 货格窄时（图解里的仓库、手机）红货右上角有「红」字角标，标签只留图标，免得压住 */
@container bc-slot (max-width: 76px) { .bc-crate-tag em { display: none; } }
.bc-crate.red { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px #ff7a7a, 0 0 18px rgba(255, 70, 90, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); animation: bc-red 1.8s ease-in-out infinite; }
@keyframes bc-red { 50% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px #ffa0a0, 0 0 28px rgba(255, 70, 90, 1), inset 0 0 0 1.5px rgba(255, 255, 255, 0.8); } }
.bc-crate-red { position: absolute; right: 6%; top: 6%; z-index: 2; padding: 2px 6px; border-radius: 7px; background: #fff; color: #d62f3f; font-size: 11px; font-weight: 900; line-height: 1.1; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.bc-crate.match { animation: bc-match 0.45s ease-in-out infinite alternate; z-index: 1; }
@keyframes bc-match { from { transform: translateY(0) scale(1); filter: brightness(1); } to { transform: translateY(-5px) scale(1.07); filter: brightness(1.25) drop-shadow(0 0 10px #fff3b0); } }
/* 窄仓库（图解弹窗里的示例）：仓位条和标题收一点，状态句不挤成两行 */
@container bc-board (max-width: 600px) {
  .bc-hazard { padding-left: 96px; column-gap: 10px; }
  .bc-girl { width: 96px; height: 100px; }
  .bc-hazard-title { font-size: 28px; }
  .bc-tier { padding: 3px 7px 2px; font-size: 14px; }
  .bc-meter b { font-size: 32px; }
  .bc-meter i { width: 16px; }
  .bc-warn { font-size: 13px; }
}
.bc-crate.mini { width: 46px; height: 46px; flex-shrink: 0; padding: 0; border-radius: 12px; }
.bc-crate.mini::after, .bc-crate.mini .bc-crate-tag { display: none; }
.bc-crate.mini > img:not(.bc-emb) { max-width: 78%; max-height: 78%; }
.bc-crate.mini .bc-crate-glyph { width: 70%; font-size: 20px; }
.bc-crate.mini .bc-crate-red { right: 2px; top: 2px; padding: 1px 3px; font-size: 9px; border-radius: 5px; }

.bc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-tools-tip { color: var(--soft); font-size: 12px; }
.bc-none { align-self: flex-start; padding: 4px 2px; border: 0; background: none; color: var(--soft); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bc-none:hover { color: var(--green-dark); }
.bc-none svg { vertical-align: -2px; margin-right: 4px; }
.bc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bc-stats span { min-width: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bc-stats b { margin: 0 2px; color: #fff; font: 400 26px/1 'LL Game', sans-serif; vertical-align: -3px; }
.bc-stats span:nth-child(3) b { color: #ff8a8a; }

.bc-legend-box:empty { display: none; }
.bc-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bc-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 7px 10px 7px 7px; border: 2px solid var(--gc); border-radius: 14px; background: linear-gradient(180deg, #fff, var(--gl)); color: var(--gc2); text-align: left; cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--gc) 45%, transparent); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.bc-chip svg { grid-row: 1 / 3; font-size: 20px; }
.bc-chip .bc-emb { grid-row: 1 / 3; width: 30px; height: 30px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.2)); }
.bc-chip b { font-size: 13px; font-weight: 900; }
.bc-chip small { min-width: 0; overflow: hidden; color: var(--gc2); opacity: 0.75; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.bc-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 0 color-mix(in srgb, var(--gc) 45%, transparent), 0 6px 14px rgba(0, 0, 0, 0.08); }
.bc-chip.active { background: linear-gradient(180deg, var(--gc), var(--gc2)); color: #fff; }
.bc-chip.active small { color: #fff; }

.bc-draft { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #fffdf7; border: 1px solid #efe4c9; }
.bc-tip { margin: 0; font-size: 12px; line-height: 1.7; color: var(--soft); }
.bc-draft-list { display: flex; flex-direction: column; gap: 8px; }
.bc-draft-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.bc-draft-row > b { flex-shrink: 0; width: 22px; color: #b08a2c; font-size: 18px; font-weight: 900; text-align: center; }
.bc-draft-row.empty { border-style: dashed; color: var(--soft); font-size: 12px; background: transparent; }
.bc-draft-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-draft-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.bc-draft-text small { color: var(--soft); font-size: 11px; }
.bc-draft-tools { display: flex; gap: 6px; }
.bc-mini { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.bc-mini:hover:not(:disabled) { border-color: var(--green); color: var(--green-dark); }
.bc-mini:disabled { opacity: 0.35; cursor: default; }
.bc-mini.on { border-color: #e5484d; background: #e5484d; color: #fff; }
.bc-forecast { padding: 10px 12px; border-radius: 12px; background: #f4f8f2; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bc-forecast strong { display: flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: 13px; }
.bc-forecast ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.75; }
.bc-forecast.ship { background: #fff8e1; border-color: #f1d98a; }
.bc-forecast.ship strong { color: #8a6a14; }
.bc-forecast.boom { background: #fff1f1; border-color: #f5b5b5; }
.bc-forecast.boom strong { color: #c81e1e; }
.bc-closed { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 12px; background: var(--fun-badge-2); color: var(--green-dark); font-size: 13px; font-weight: 700; line-height: 1.6; }
.bc-closed svg { flex-shrink: 0; font-size: 20px; }

.bc-lib { display: flex; flex-direction: column; gap: 10px; }
.bc-lib-full { display: none; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fun-badge-2); color: var(--green-dark); font-size: 13px; font-weight: 700; }
.bc-lib-full svg { flex-shrink: 0; font-size: 18px; }
.bc-lib.full .bc-lib-full { display: flex; }
.bc-lib.full .bc-search, .bc-lib.full .bc-lib-filters, .bc-lib.full .bc-lib-list, .bc-lib.full .bc-manual { display: none; }
.bc-search input { font-size: 14px; }
.bc-lib-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-filter { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.bc-filter .bc-emb { width: 18px; height: 18px; margin: -3px 0 -3px -5px; }
.bc-filter[class*="g-"] { border-color: var(--gc); color: var(--gc2); background: var(--gl); }
.bc-filter.active { border-color: var(--green); background: var(--green); color: #fff; }
.bc-filter[class*="g-"].active { border-color: var(--gc); background: var(--gc); color: #fff; }
.bc-lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.bc-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 6px 7px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.bc-item:hover { transform: translateY(-2px); border-color: var(--gc); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); }
.bc-item[aria-disabled="true"] { opacity: 0.5; }
.bc-item-icon { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 8px; background: linear-gradient(160deg, #f5f5f5, #e7e7e7); }
.bc-item.q6 .bc-item-icon { background: linear-gradient(160deg, #ffe1e1, #f6b1b1); }
.bc-item.q5 .bc-item-icon { background: linear-gradient(160deg, #fff0d9, #f3cf98); }
.bc-item.q4 .bc-item-icon { background: linear-gradient(160deg, #efe5fb, #d3c0f2); }
.bc-item.q3 .bc-item-icon { background: linear-gradient(160deg, #e2efff, #b9d4f3); }
.bc-item.q2 .bc-item-icon { background: linear-gradient(160deg, #e1f7ec, #b5e6cc); }
.bc-item-icon img { max-width: 46px; max-height: 40px; object-fit: contain; }
.bc-item-name { display: -webkit-box; width: 100%; overflow: hidden; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; word-break: break-all; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bc-item-emb { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.bc-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); }
.bc-manual > span { margin-right: 4px; }

/* ---------- 玩法图解（仓库标题旁的按钮 + 空单提示 + 弹窗里的一单示例） ---------- */
.bc-head { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; font-size: 12px; }
.bc-guide-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1.5px solid var(--green); border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.bc-guide-btn svg { font-size: 14px; }
.bc-guide-btn:hover { background: var(--fun-badge-2); }
.bc-guide-callout-box:empty { display: none; }
.bc-guide-callout { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #fff9e6, #fff0c4); border: 1px solid #f1d98a; color: #6d5410; font-size: 13px; line-height: 1.65; }
.bc-guide-callout > svg { flex-shrink: 0; font-size: 22px; color: #d39b12; }
.bc-guide-callout > span { flex: 1; min-width: 0; }
.bc-guide-callout b { color: #8a5a00; }
.bc-guide-callout .fw-button { flex-shrink: 0; }

.fw-dialog.bc-guide-dialog { width: min(1060px, 100%); max-height: 92%; }
.fw-dialog-layer:has(.bc-guide-dialog) { padding: 14px; }
.bc-guide-dialog .bc-guide-lead { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff9e6; border: 1px solid #f1d98a; color: #6d5410; font-size: 13px; line-height: 1.75; }
.bc-guide-dialog .bc-guide-lead > svg { flex-shrink: 0; margin-top: 3px; font-size: 18px; color: #d39b12; }
.bc-guide-dialog .bc-guide-lead b { color: #8a5a00; }
.bc-guide-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bc-guide-tab { --tc: var(--green); display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 4px 7px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--soft); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.bc-guide-tab b { color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.2; }
.bc-guide-tab small span + span { display: none; }
.bc-guide-tab small { max-width: 100%; overflow: hidden; color: var(--tc); font-size: 11px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.bc-guide-tab:hover { transform: translateY(-1px); border-color: var(--tc); }
.bc-guide-tab.seen { background: #f7f9f6; }
.bc-guide-tab.on { border-color: var(--tc); background: var(--tc); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.bc-guide-tab.on b, .bc-guide-tab.on small { color: #fff; }
.bc-guide .t-in { --tc: #8a4fc4; --tl: #f6f0fc; --tb: #ddc8f2; }
.bc-guide .t-ship { --tc: #b7860b; --tl: #fffaf0; --tb: #f1d98a; }
.bc-guide .t-boom { --tc: #d12a2a; --tl: #fff5f5; --tb: #f5b5b5; }
.bc-guide .t-fail { --tc: #6b7280; --tl: #f6f7f8; --tb: #d6d9de; }
.bc-guide .t-warn { --tc: #e0661a; --tl: #fff7ef; --tb: #f7c9a0; }
.bc-guide .t-done { --tc: #2e8b57; --tl: #f0f9f3; --tb: #a9dcbc; }

.bc-guide-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bc-guide-stage { display: flex; flex-direction: column; gap: 12px; }
.bc-guide-nav { display: flex; justify-content: center; gap: 10px; }
.bc-guide-nav .fw-button { min-width: 0; }
.bc-guide-nav .fw-button:disabled { opacity: 0.4; cursor: default; }
.bc-guide-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--tl, #fffdf7); border: 1px solid var(--tb, #efe4c9); }
.bc-guide-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bc-guide-card-head > b { color: var(--ink); font-size: 17px; font-weight: 900; }
.bc-guide-card-head em { color: var(--soft); font-size: 12px; font-style: normal; }
.bc-guide-tag { padding: 3px 11px; border-radius: 999px; background: var(--tc); color: #fff; font-size: 12px; font-weight: 900; }
.bc-guide-dialog .bc-guide-say { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.85; }
.bc-guide-dialog .bc-guide-say b { color: var(--tc); }
.bc-guide-goods { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bc-guide-goods li { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.bc-guide-goods li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bc-guide-goods strong { color: var(--ink); font-size: 13px; }
.bc-guide-goods strong em { margin-left: 6px; color: var(--soft); font-size: 11px; font-style: normal; font-weight: 700; }
.bc-guide-goods small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.bc-guide-goods li.ship { border-color: #f1d98a; background: #fffbea; }
.bc-guide-goods li.ship small { color: #8a6a14; font-weight: 700; }
.bc-guide-goods li.boom { border-color: #f5b5b5; background: #fff3f3; }
.bc-guide-goods li.boom small { color: #c81e1e; font-weight: 700; }
.bc-guide-goods li.skip { opacity: 0.6; }
.bc-guide-goods .bc-crate.mini { width: 40px; height: 40px; }
.bc-guide-money { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.bc-guide-money b { color: var(--ink); font-size: 14px; }
.bc-guide-money i { display: block; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.bc-guide-money s { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f3c54f, #e0a21a); text-decoration: none; transition: width 0.4s ease; }
.bc-guide-money.full s { background: linear-gradient(90deg, #7cc493, #3f9a5d); }
.bc-guide-money small { font-size: 12px; font-weight: 800; }
.bc-guide-money.full small { color: var(--green-dark); }
.bc-guide-dialog .bc-guide-result { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff4c8, #f3d572); color: #6d4f07; font-size: 13px; font-weight: 800; line-height: 1.6; }
.bc-guide-result svg { flex-shrink: 0; font-size: 18px; }

.bc-guide .fw-section-title { margin-top: 4px; }
.bc-guide-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bc-guide-keys li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: 12px; background: #f7f9f6; border: 1px solid var(--line); }
.bc-guide-keys li > b { color: var(--ink); font-size: 14px; font-weight: 900; }
.bc-guide-keys li > span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.6; }
.bc-guide-key-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tc, var(--green)); color: #fff; font-size: 15px; }
.bc-guide-key-icon img { width: 18px; height: 18px; }
.bc-guide-keys .k-ship .bc-guide-key-icon img { width: 22px; height: 14px; }
.bc-guide-keys .k-in { --tc: #2f80c9; } .bc-guide-keys .k-ship { --tc: #b7860b; } .bc-guide-keys .k-boom { --tc: #d12a2a; } .bc-guide-keys .k-done { --tc: #2e8b57; } .bc-guide-keys .k-fail { --tc: #fde2e2; }
.bc-guide-red { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(135deg, #ff6b5b, #d61f1f); color: #fff; font-size: 13px; font-style: normal; font-weight: 900; }
.bc-guide-groups { display: flex; flex-direction: column; gap: 8px; }
.bc-guide-dialog .bc-guide-groups p { margin: 0; font-size: 12px; line-height: 1.6; }
.bc-guide-dialog .bc-guide-groups p b { color: var(--ink); }
.bc-guide-groups-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bc-guide-groups-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--gl); border: 1.5px solid var(--gc); }
.bc-guide-groups-list li > b { flex-shrink: 0; color: var(--gc2); font-size: 14px; font-weight: 900; }
.bc-guide-group-icon { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--gc); color: #fff; font-size: 16px; }
.bc-guide-group-icon:has(.bc-emb) { background: none; }
.bc-guide-group-icon .bc-emb { width: 30px; height: 30px; }
.bc-guide-group-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--gc2); font-size: 12px; }
.bc-guide-group-kinds i { padding: 1px 8px; border-radius: 999px; background: #fff; font-style: normal; font-weight: 700; }
.bc-guide-group-kinds em { font-style: normal; font-weight: 900; }
.bc-guide-group-kinds small { flex-basis: 100%; font-size: 11px; font-weight: 700; opacity: 0.85; }
.bc-guide-goods strong em b { color: var(--green-dark); }

/* 平板宽度两栏太挤（出货栏文字会折行），改成上下排 */
@media (max-width: 980px) {
  .bc-guide-main { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bc-guide-callout { flex-wrap: wrap; }
  .bc-guide-callout .fw-button { width: 100%; justify-content: center; }
  .fw-dialog-layer:has(.bc-guide-dialog) { padding: 8px; }
  .fw-dialog.bc-guide-dialog { max-height: 96%; padding: 14px 12px; border-radius: 18px; }
  .bc-guide-dialog .bc-guide-lead { padding: 8px 10px; font-size: 12px; line-height: 1.65; }
  .bc-guide-tabs { gap: 4px; }
  .bc-guide-tab { padding: 5px 2px 6px; border-radius: 10px; }
  .bc-guide-tab b span { display: none; }
  .bc-guide-tab small { font-size: 11px; }
  .bc-guide-tab small span:first-child { display: none; }
  .bc-guide-tab small span + span { display: inline; }
  .bc-guide-main { grid-template-columns: 1fr; gap: 12px; }
  .bc-guide-stage { gap: 10px; }
  .bc-guide-nav { gap: 6px; }
  .bc-guide-nav .fw-button { flex: 1; justify-content: center; padding-left: 8px; padding-right: 8px; }
  .bc-guide-card { padding: 12px 10px; }
  .bc-guide-dialog .bc-guide-say { font-size: 13px; line-height: 1.8; }
  .bc-guide-goods li { padding: 5px 8px 5px 5px; gap: 8px; }
  .bc-guide-keys { grid-template-columns: 1fr; }
}

/* ================= 鼠了个鼠 ================= */
.shu { --shu-felt: #dff0d8; --shu-felt-2: #c8e4bd; --shu-back: #3f7d55; --shu-back-2: #2d5e3f; --shu-wood: #a46b35; --shu-wood-2: #7d4c1f; position: relative; display: flex; flex-direction: column; gap: 12px; }
/* 托盘贴底只在 .shu-play 里生效：滚到底时托盘回到原位，不会盖住下面的按钮 */
.shu-play { display: flex; flex-direction: column; gap: 12px; }
.shu-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shu-fp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(99, 159, 112, 0.35); border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.shu-fp code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink); }
.shu-fp svg { font-size: 15px; }
.shu-fp:hover { border-color: var(--green); background: var(--fun-badge-2); }
.shu-fp.bad { border-color: #e5484d; color: #c81e1e; }
.shu-chip { padding: 5px 11px; border-radius: 999px; background: var(--fun-badge-2); color: var(--soft); font-size: 12px; font-weight: 700; }
.shu-chip b { color: var(--ink); font-size: 14px; }
.shu-chip.hot { background: #fff1d6; color: #8a6a14; }

.shu-turn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-radius: 14px; font-size: 12px; line-height: 1.6; background: #f1f4f0; color: var(--soft); border: 1px solid var(--line); }
.shu-turn b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 900; }
.shu-turn b em { font-style: normal; font-size: 20px; color: var(--green-dark); }
.shu-turn.turn { background: linear-gradient(135deg, #f0fbf2, #dff4e4); border-color: rgba(63, 128, 84, 0.35); box-shadow: 0 0 0 3px rgba(63, 128, 84, 0.08); }
.shu-turn.over { background: linear-gradient(135deg, #fff1f1, #ffdede); border-color: #f5b5b5; color: #a33; }
.shu-turn.over b { color: #c81e1e; }
.shu-turn.win { background: linear-gradient(135deg, #fffbe6, #ffefb3); border-color: #f1d98a; color: #8a6a14; }
.shu-turn.win b { color: #8a6a14; }
.shu-pips { display: inline-flex; gap: 5px; }
.shu-pips i { width: 14px; height: 14px; border-radius: 50%; background: #d7e3d6; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
.shu-pips i.on { background: radial-gradient(circle at 35% 35%, #8fe0a5, #3f9e5a); box-shadow: 0 0 0 2px rgba(63, 158, 90, 0.2); }

/* 牌桌：草地毡面 + 9 堆牌（3 × 3），每堆背面朝上的牌在下层错开露边 */
.shu-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 18px 14px 16px; border-radius: 18px; background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px) 0 0 / 26px 26px, radial-gradient(circle at 70% 60%, rgba(63, 125, 85, 0.12) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(180deg, var(--shu-felt), var(--shu-felt-2)); border: 1px solid #b7d6ab; box-shadow: inset 0 2px 10px rgba(45, 94, 63, 0.12); }
.shu-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.shu-stack-no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(45, 94, 63, 0.85); color: #fff; font-size: 12px; font-weight: 900; }
.shu-stack small { color: #4b6b53; font-size: 11px; font-weight: 700; white-space: nowrap; }
/* 牌堆宽度跟着列宽走（最多 96px）：电脑宽屏 9 堆一排，窄一些的屏幕 3 × 3 */
.shu-pile { position: relative; width: 100%; max-width: 96px; aspect-ratio: 0.8; }
.shu-back { position: absolute; left: calc(var(--b) * 2px); top: calc(var(--b) * 3.5px); width: calc(100% - 8px); height: calc(100% - 14px); border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 12px), linear-gradient(160deg, var(--shu-back), var(--shu-back-2)); border: 2px solid #f6f1e2; box-shadow: 0 2px 0 #1f4430; }
.shu-pile > .shu-tile { position: absolute; left: 0; top: 0; z-index: 2; width: calc(100% - 8px); height: calc(100% - 14px); }
.shu-hole { position: absolute; inset: 0 8px 14px 0; display: grid; place-items: center; border: 2px dashed rgba(45, 94, 63, 0.3); border-radius: 12px; color: rgba(45, 94, 63, 0.45); font-weight: 900; }

/* 牌面：奶白底 + 立体厚边，底部色条按种类区分 */
.shu-tile { --kc: #888; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: var(--shu-tile, 84px); height: calc(var(--shu-tile, 84px) * 1.12); padding: 6px 4px 9px; border: 2px solid #fffdf6; border-radius: 12px; background: linear-gradient(180deg, #fffdf6, #f6efdd); box-shadow: 0 4px 0 #d6c7a3, 0 6px 10px rgba(45, 60, 40, 0.18); color: #3b3326; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; box-sizing: border-box; overflow: hidden; }
.shu-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--kc); }
.shu-face { display: grid; place-items: center; width: 100%; flex: 1; min-height: 0; }
.shu-face img { max-width: 82%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22)); }
.shu-tile > b { position: relative; max-width: 100%; overflow: hidden; font-size: 12px; font-weight: 900; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; color: var(--kc); filter: brightness(0.75); }
button.shu-tile { cursor: pointer; transition: transform 0.16s cubic-bezier(.2, .9, .3, 1.3), box-shadow 0.16s ease; }
button.shu-tile:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #d6c7a3, 0 10px 16px rgba(45, 60, 40, 0.22); }
button.shu-tile:active { transform: translateY(1px); box-shadow: 0 2px 0 #d6c7a3, 0 3px 6px rgba(45, 60, 40, 0.2); }
button.shu-tile:focus-visible { outline: 3px solid #f3c54f; outline-offset: 2px; }
.shu-tile.selected { transform: translateY(-10px) scale(1.04); border-color: #f3c54f; box-shadow: 0 0 0 3px #f3c54f, 0 12px 0 #d6c7a3, 0 16px 22px rgba(200, 135, 15, 0.35); animation: shu-bob 1s ease-in-out infinite; }
@keyframes shu-bob { 50% { transform: translateY(-13px) scale(1.04); } }
.shu-tile.in-tray { --shu-tile: 100%; width: 100%; height: 100%; padding: 4px 2px 7px; border-width: 1.5px; box-shadow: 0 3px 0 #d6c7a3; }
.shu-tile.in-tray > b { font-size: 10px; }

.shu-label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.shu-label b { color: var(--ink); font-size: 14px; }
.shu-buffer { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1.5px dashed rgba(99, 159, 112, 0.4); border-radius: 14px; background: rgba(255, 255, 255, 0.6); }
.shu-buffer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; --shu-tile: 64px; }
.shu-buffer-row em { color: var(--soft); font-size: 12px; font-style: normal; }
.shu-buffer:not(.empty) { border-style: solid; border-color: #f1d98a; background: #fffbea; }

/* 托盘贴在可视区底部（滚到牌堆时也看得见托盘），滚到它本来的位置就归位 */
.shu-tray-wrap { position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 30%); }
.shu-tray-wrap .shu-label { align-self: flex-start; }
.shu-tray { display: grid; grid-template-columns: repeat(7, minmax(0, 86px)); justify-content: center; width: 100%; box-sizing: border-box; gap: 7px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, var(--shu-wood), var(--shu-wood-2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 6px 14px rgba(90, 55, 20, 0.25); }
.shu-slot { aspect-ratio: 0.9; border-radius: 10px; background: #f3e6cc; box-shadow: inset 0 3px 6px rgba(90, 55, 20, 0.35); }
.shu-tray-wrap.over .shu-tray { background: linear-gradient(180deg, #b23a3a, #7a1d1d); }
.shu-tray-wrap.over .shu-slot { background: #f7d9d9; }
.shu-tray-wrap.shake .shu-tray { animation: bc-shake 0.55s ease 1; }

.shu-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shu-moveout.ready { border-color: #e7b93a; color: #8a6a14; background: #fff8e1; }

.shu-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px 30px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, var(--shu-felt), var(--shu-felt-2)); border: 1px solid #b7d6ab; }
.shu-intro h4 { margin: 0; font-size: 18px; color: var(--green-dark); }
.shu-intro p { max-width: 560px; margin: 0; font-size: 13px; line-height: 1.8; color: #4b6b53; }
.shu-demo { position: relative; width: 210px; height: 96px; }
.shu-demo-card { position: absolute; left: calc(50% - 34px + (var(--i) - 2) * 34px); top: 6px; display: grid; place-items: center; width: 68px; height: 78px; border: 2px solid #fffdf6; border-radius: 12px; background: linear-gradient(180deg, #fffdf6, #f6efdd); box-shadow: 0 4px 0 #d6c7a3, inset 0 -7px 0 var(--kc); transform: rotate(calc((var(--i) - 2) * 8deg)) translateY(calc((var(--i) - 2) * (var(--i) - 2) * 3px)); animation: shu-fan 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
.shu-demo-card img { max-width: 76%; max-height: 64%; margin-bottom: 6px; }
@keyframes shu-fan { 50% { margin-top: -6px; } }
.shu-wait { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.shu-open { padding-inline: 26px; font-size: 15px; }

/* 公开原盘弹窗 */
.shu-reveal-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin: 10px 0; }
.shu-reveal-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.shu-reveal-col b { font-size: 11px; color: var(--soft); }
.shu-reveal-col span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 6px; background: #fffdf6; box-shadow: inset 0 -3px 0 var(--kc), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.shu-reveal-col img { max-width: 80%; max-height: 72%; }
.shu-verify { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.shu-verify.ok { color: var(--green-dark); }
.shu-verify.bad { color: #c81e1e; }
.shu-fp-full code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; word-break: break-all; }
.shu-reveal-text { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; resize: vertical; }

/* 系统设置了「减少动态效果」：停掉一直循环的装饰动画（警示灯、红货光圈、准星、老六晃动、关卡牌呼吸） */
@media (prefers-reduced-motion: reduce) {
  .bc-siren, .bc-girl, .bc-crate.red, .bc-shelf.crit, .bc-hazard.crit .bc-warn, .slx-cell.conf::after, .slx-cell.hit .slx-ico, .slx-cell.sel, .slx-cell.sel::after,
  .gm-cover.go, .gm-cover-girl, .slx-girl, .gm-hud-time.low, .gm-demo-miner, .gm-demo-item, .slx-demo-cell, .slx-demo-cell.peek .slx-ico { animation: none !important; }
}

/* ---------------- 手机 ---------------- */
@media (max-width: 760px) {
  .bc-board { padding: 12px; gap: 10px; border-radius: 20px; }
  .bc-hazard { min-height: 70px; padding: 2px 0 2px 76px; column-gap: 8px; }
  .bc-girl { left: -8px; bottom: -6px; width: 80px; height: 84px; }
  .bc-hazard-title { font-size: 24px; gap: 4px; }
  .bc-siren { width: 30px; height: 30px; }
  .bc-warn { gap: 6px; font-size: 12px; }
  .bc-meter { gap: 6px; }
  .bc-meter b { font-size: 28px; }
  .bc-meter b small { font-size: 16px; }
  .bc-meter span { gap: 3px; }
  .bc-meter i { width: 13px; height: 8px; }
  .bc-batch { min-height: 50px; padding: 4px 6px; font-size: 12px; gap: 4px; border-radius: 14px; }
  .bc-batch em, .bc-batch-no { display: none; }
  .bc-truck { width: 46px; height: 30px; }
  .bc-shelf { gap: 5px; padding: 8px; border-radius: 14px; }
  .bc-slot { border-radius: 10px; }
  .bc-slot-no { font-size: 16px; }
  .bc-crate { border-radius: 10px; padding: 3px 3px 26%; }
  .bc-crate-tag em { display: none; }
  .bc-crate-tag { left: 5%; right: 5%; bottom: 5%; min-height: 12px; border-radius: 5px; }
  .bc-crate-tag .bc-emb { width: 12px; height: 12px; }
  .bc-crate-red { right: 3%; top: 3%; padding: 1px 3px; font-size: 8px; border-radius: 4px; }
  .bc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bc-stats span { padding: 8px 10px; }
  .bc-stats b { font-size: 20px; }
  .bc-legend { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .bc-chip { grid-template-columns: 1fr; justify-items: center; padding: 6px 2px; row-gap: 2px; }
  .bc-chip svg { grid-row: auto; font-size: 18px; }
  .bc-chip .bc-emb { grid-row: auto; width: 24px; height: 24px; }
  .bc-chip small, .bc-chip .bc-long { display: none; }
  .bc-draft { padding: 12px 10px; }
  .bc-draft-row { gap: 8px; padding: 6px 8px; }
  .bc-mini { min-width: 32px; height: 32px; padding: 0 6px; }
  .bc-search input { font-size: 16px; }
  .bc-lib-list { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); max-height: 360px; }
  .shu-board { gap: 10px 6px; padding: 14px 8px 12px; }
  .shu-buffer-row { --shu-tile: 52px; }
  .shu-tray { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 7px 6px; }
  .shu-slot { border-radius: 7px; }
  .shu-tile.in-tray > b { display: none; }
  .shu-tile.in-tray { padding: 3px 2px 6px; }
  .shu-tile > b { font-size: 11px; }
  .shu-turn b { font-size: 14px; }
  .shu-fp code { font-size: 11px; }
  .shu-reveal-grid { gap: 2px; }
}
@media (min-width: 1180px) {
  .shu-board { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px 8px; padding: 16px 12px 14px; }
  .shu-tile > b { font-size: 11px; }
}

/* ---------- LL114 真羊了个羊：错开半张的金字塔 + 两叠盲堆 ---------- */
/* 坐标单位是半张牌：横 10 个单位、竖 8 个单位；牌宽高比沿用 .shu-tile 的 1 : 1.12 */
.yang-table { isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 12px 14px; border-radius: 18px; background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px) 0 0 / 26px 26px, radial-gradient(circle at 70% 60%, rgba(63, 125, 85, 0.12) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(180deg, var(--shu-felt), var(--shu-felt-2)); border: 1px solid #b7d6ab; box-shadow: inset 0 2px 10px rgba(45, 94, 63, 0.12); }
.yang-board { position: relative; width: 100%; max-width: 470px; aspect-ratio: 10 / 8.96; }
.yang-card { position: absolute; width: 20%; height: 25%; padding: 1.2%; box-sizing: border-box; }
.yang-card .shu-tile { --shu-tile: 100%; width: 100%; height: 100%; padding: 6% 4% 9%; }
.yang-card .shu-tile > b { font-size: 11px; }
.yang-card.free { z-index: 60 !important; }
.yang-card.free .shu-tile.selected { z-index: 2; }
.yang-card.dim .shu-tile { filter: brightness(0.62) saturate(0.55); box-shadow: 0 3px 0 #b9ab88, 0 4px 8px rgba(45, 60, 40, 0.18); }
.yang-back { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 12px), linear-gradient(160deg, var(--shu-back), var(--shu-back-2)); border: 2px solid #f6f1e2; box-shadow: 0 3px 0 #1f4430, 0 5px 9px rgba(31, 68, 48, 0.25); }
.yang-piles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.yang-pile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.yang-pile-row { --yang-card: 68px; --yang-fan: 18px; position: relative; width: calc(var(--yang-card) + (var(--n) - 1) * var(--yang-fan)); height: calc(var(--yang-card) * 1.12); }
.yang-pile-row .yang-card { top: 0; width: var(--yang-card); height: 100%; padding: 0; }
.yang-pile-row .shu-hole { inset: 0; width: var(--yang-card); }
.shu-chip.yang-mode { color: #fff; font-weight: 900; }
.shu-chip.yang-mode.ming { background: linear-gradient(135deg, #f0a43a, #d9822b); }
.shu-chip.yang-mode.an { background: linear-gradient(135deg, #3f7d55, #2d5e3f); }
.yang-reveal { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.yang-reveal-layer b { display: block; margin-bottom: 3px; font-size: 11px; color: var(--soft); }
.yang-reveal-layer > div { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 40px)); gap: 3px; }
.yang-reveal-layer span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: #fffdf6; box-shadow: inset 0 -3px 0 var(--kc), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.yang-reveal-layer img { max-width: 80%; max-height: 72%; }
@media (min-width: 761px) {
  .yang-table { flex-direction: row; justify-content: center; align-items: center; gap: 22px; }
  .yang-board { max-width: 430px; }
  .yang-piles { flex-direction: column; gap: 18px; }
}
@media (max-width: 760px) {
  .yang-table { padding: 10px 6px 12px; }
  .yang-card .shu-tile > b { display: none; }
  .yang-card .shu-tile { padding: 8% 4% 10%; border-radius: 9px; }
  .yang-pile-row { --yang-card: 52px; --yang-fan: 14px; }
  .yang-back { border-radius: 9px; }
}


/* ---------- LL115 鹿了个鹿：5 / 7 叠鹿群 + 托盘 + 道具卡；录入区按 7 类金红填格数 ---------- */
.lu-stage { position: relative; display: flex; flex-direction: column; gap: 12px; }
.shu-chip.lu-tier { background: linear-gradient(135deg, #b9793a, #8a5426); color: #fff; font-weight: 900; }
.shu-chip.lu-revokes { display: inline-flex; align-items: center; gap: 4px; background: #eef3fb; color: #3b5b8c; }
.shu-chip.lu-revokes svg { font-size: 13px; }
/* 鹿塔：每个格位只画最上面那只；错开半只的层压住下面 4 只的角；同格位下面还叠着几只用厚边 + 角标表示 */
.lu-table { isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 12px 14px; border-radius: 18px; background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px) 0 0 / 26px 26px, radial-gradient(circle at 70% 60%, rgba(63, 125, 85, 0.12) 0 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(180deg, var(--shu-felt), var(--shu-felt-2)); border: 1px solid #b7d6ab; box-shadow: inset 0 2px 10px rgba(45, 94, 63, 0.12); }
.lu-tower { position: relative; width: 100%; max-width: calc(var(--a) * 104px); margin-bottom: 8px; }
.lu-cell { position: absolute; padding: 1.4%; box-sizing: border-box; }
.lu-cell .shu-tile { --shu-tile: 100%; width: 100%; height: 100%; padding: 8% 4% 10%; }
.lu-cell.deep .shu-tile { box-shadow: 0 4px 0 #d6c7a3, 0 calc(4px + var(--d) * 3px) 0 #bba97f, 0 calc(8px + var(--d) * 3px) 10px rgba(45, 60, 40, 0.22); }
.lu-cell.pressed .shu-tile { filter: brightness(0.62) saturate(0.55); }
.lu-cell.free .shu-tile { box-shadow: 0 4px 0 #d6c7a3, 0 calc(4px + var(--d) * 3px) 0 #bba97f, 0 8px 14px rgba(45, 60, 40, 0.28); }
.lu-depth { position: absolute; right: 5%; top: 5%; z-index: 3; min-width: 20px; padding: 0 5px; border-radius: 999px; background: rgba(45, 94, 63, 0.9); color: #fff; font-size: 11px; font-style: normal; font-weight: 900; line-height: 17px; text-align: center; pointer-events: none; }
.lu-cell.pressed .lu-depth { background: rgba(45, 60, 50, 0.75); }
.lu-piles .yang-pile-row { --yang-card: 64px; }
@media (min-width: 761px) {
  .lu-table { flex-direction: row; justify-content: center; align-items: center; gap: 26px; }
  .lu-piles { flex-direction: column; gap: 18px; }
}
/* 鹿牌：沿用鼠了个鼠的奶白牌，牌面换成种类图标，顶上一对鹿角 */
.lu-tile .shu-face { color: var(--kc); font-size: 30px; padding-top: 10%; }
.lu-tile .shu-face svg { width: 1em; height: 1em; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8)); }
.lu-tile::before { content: ''; position: absolute; top: 3px; left: 50%; width: 46%; height: 17%; transform: translateX(-50%); background: #a8763f; opacity: 0.85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 13C14 9 11 6 6 4M10 7 8 1.5M8 5.3 2.5 4M25 13c1-4 4-7 9-9M30 7l2-5.5M32 5.3 37.5 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 13C14 9 11 6 6 4M10 7 8 1.5M8 5.3 2.5 4M25 13c1-4 4-7 9-9M30 7l2-5.5M32 5.3 37.5 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.lu-tile.in-tray .shu-face { font-size: clamp(16px, 3.2vw, 26px); }
.shu-demo-card.lu-demo { color: var(--kc); font-size: 30px; }
.shu-demo-card.lu-demo svg { margin-bottom: 6px; }
.lu-basket { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; border-radius: 12px; background: #fbf5e9; border: 1px dashed #e2cfa6; color: #7d6033; font-size: 12px; font-weight: 700; }
.lu-basket > svg { font-size: 16px; }
.lu-kind { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: #fff; border: 1.5px solid var(--kc); color: var(--kc); font-size: 12px; font-weight: 800; }
.lu-kind b { color: var(--ink); font-weight: 800; }
.lu-kind em { font-style: normal; font-weight: 900; color: var(--kc); }
.lu-cards { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.lu-cards-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: #fff8e1; border: 1px solid #f1d98a; color: #8a6a14; font-size: 13px; font-weight: 800; }
.lu-cards-count b { font-size: 18px; }
.lu-cards-count small { color: #a3894a; font-size: 11px; font-weight: 700; }
.lu-card:not(:disabled) { border-color: #e7b93a; color: #8a6a14; background: #fffdf3; }
.lu-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 14px; background: #f1f5fb; border: 1px solid #cfdcef; }
.lu-staff .lu-revoke { border-color: #6f8fc4; color: #2f4f86; background: #fff; }
.lu-staff small { flex: 1; min-width: 200px; color: #4d6286; font-size: 12px; line-height: 1.6; }
.lu-history { display: flex; flex-direction: column; gap: 6px; }
.lu-game { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.lu-game > span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.lu-game.win > span { color: #8a6a14; }
.lu-game.lose > span { color: #c81e1e; }
.lu-game small { color: var(--soft); font-size: 12px; }
.lu-num { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, var(--shu-felt), var(--shu-felt-2)); border: 1px solid #b7d6ab; }
.lu-num h4 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--green-dark); font-size: 17px; }
.lu-num p { margin: 0; color: #4b6b53; font-size: 13px; line-height: 1.8; }
.lu-num-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.lu-num-row .fw-field { flex: 1; min-width: 160px; margin: 0; }
.lu-num-row input { font-size: 20px; letter-spacing: 2px; }
/* 录入区：7 类金红一行一类 */
.lu-loot-grid { display: flex; flex-direction: column; gap: 6px; }
.lu-loot-row { display: grid; grid-template-columns: minmax(118px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 64px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--kc); }
.lu-loot-kind { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; min-width: 0; }
.lu-loot-kind svg { grid-row: 1 / 3; color: var(--kc); font-size: 20px; }
.lu-loot-kind b { font-size: 13px; }
.lu-loot-kind small { color: var(--soft); font-size: 11px; }
.lu-loot-row label { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--muted); }
.lu-loot-row label > span { flex-shrink: 0; font-weight: 800; }
.lu-loot-row input { width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; text-align: right; }
.lu-loot-row input:focus { outline: 2px solid var(--kc); outline-offset: 0; border-color: transparent; }
.lu-loot-row em { flex-shrink: 0; font-style: normal; color: var(--soft); }
.lu-loot-out { color: var(--kc); font-size: 13px; font-weight: 900; text-align: right; white-space: nowrap; }
.lu-loot-sum { padding: 10px 12px; border-radius: 12px; background: #f4f8f2; border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.lu-loot-sum b { color: var(--green-dark); font-size: 15px; }
.lu-reveal { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; max-height: 46vh; overflow-y: auto; }
.lu-reveal-game > b { display: block; margin-bottom: 4px; font-size: 12px; color: var(--soft); }
.lu-reveal-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.lu-reveal-row small { flex-shrink: 0; width: 7em; font-size: 11px; color: var(--soft); }
.lu-reveal-row > div { display: grid; grid-template-columns: repeat(var(--cols), 26px); gap: 3px; }
.lu-reveal-row span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 5px; background: #fffdf6; color: var(--kc); font-size: 14px; box-shadow: inset 0 -2px 0 var(--kc), 0 0 0 1px rgba(0, 0, 0, 0.06); }
@media (max-width: 760px) {
  .lu-table { padding: 10px 6px 12px; }
  .lu-cell .shu-tile > b { display: none; }
  .lu-cell .lu-tile .shu-face { font-size: 24px; padding-top: 16%; }
  .lu-cell .shu-tile { border-radius: 9px; }
  .lu-depth { font-size: 10px; line-height: 15px; min-width: 17px; padding: 0 4px; }
  .lu-piles .yang-pile-row { --yang-card: 50px; --yang-fan: 13px; }
  .lu-loot-row { grid-template-columns: 1fr 1fr; gap: 6px 8px; }
  .lu-loot-kind { grid-column: 1 / 2; }
  .lu-loot-out { grid-column: 2 / 3; grid-row: 1; }
  .lu-loot-row input { font-size: 16px; }
  .lu-staff small { min-width: 0; }
}

/* ---------- LL116 黄金矿工 / LL117 扫老六 共用：报数面板沿用 .lu-num，图标在文字里对齐 ---------- */
.shu-chip svg { font-size: 13px; vertical-align: -2px; }
.mg-num input { font-variant-numeric: tabular-nums; }

/* ================= LL117 扫老六：扫雷地图 + 排查 / 插标记 / 无人机 =================
   素材在 images/fun/slx/（AI 生图后抠图切图）：没排查的格子是草丛（三种错开），翻开是沙地（两种错开），被阴是弹坑，老六是躲在吉利服里的狙击手；提示条左边是灵鹿侦察兵 */
.slx { --slx-ink: #4d4129; }
/* 2026-10-24 二次元商用版：开局后整个舞台是深绿色战术桌（深色玻璃计分、提示条、操作卡），格子是二次元赛璐璐草丛 / 沙地，标题数字用 LL Game */
.shu.slx:has(.slx-play) { padding: 18px 20px 20px; border-radius: 26px; color: #fff; background: radial-gradient(120% 70% at 50% 0%, #2c3a2f 0%, #1a221c 55%, #121713 100%); box-shadow: 0 18px 40px rgba(10, 20, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.slx .shu-chip { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.62); }
.slx .shu-chip b { margin-left: 2px; color: #fff; font: 400 20px/1 'LL Game', sans-serif; vertical-align: -2px; }
.shu-chip.slx-tier { border: 0; background: linear-gradient(180deg, #ff9cc8, #f0458f); color: #fff; font: 400 17px/1.2 'LL Game', "Microsoft YaHei", sans-serif; letter-spacing: 1px; box-shadow: 0 6px 14px rgba(240, 69, 143, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.slx .shu-chip.hot { border-color: rgba(255, 208, 90, 0.5); background: rgba(255, 196, 60, 0.16); color: #ffd36b; }
.shu-chip .slx-ico { display: inline-block; width: 22px; height: 22px; margin: -5px 2px -5px 0; vertical-align: middle; }
.slx .shu-fp { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); }
.slx .shu-fp code { color: #fff; }
.slx .shu-fp:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); }
.slx .mg-sound { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.slx-play { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.slx-intro { color: var(--ink); background: radial-gradient(90% 80% at 50% 40%, #50604a, #2b3528); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.slx-intro h4 { color: #fff; }
.slx-intro p { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.9); color: #3d4630; }
.slx-demo { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.slx-demo-cell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: url(../images/fun/slx/ground.webp) center / 100% 100%; animation: slx-demo 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
.slx-demo-cell b { font: 400 24px/1 'LL Game', sans-serif; }
.slx-demo-cell .slx-ico { width: 82%; height: 82%; }
.slx-demo-cell.peek .slx-ico { position: absolute; bottom: 4px; width: 92%; height: 92%; animation: slx-peek 2.8s ease-in-out infinite; }
@keyframes slx-demo { 50% { transform: translateY(-3px); } }
@keyframes slx-peek { 0%, 40%, 100% { transform: translateY(40%) scale(.8); opacity: 0; } 55%, 80% { transform: translateY(0) scale(1); opacity: 1; } }

/* 提示条：深绿玻璃，左边灵鹿侦察兵半身像（平时望远镜，被阴了先吓一跳再难过，清图比耶） */
.slx .shu-turn { position: relative; min-height: 78px; padding: 10px 16px 10px 112px; border: 1px solid rgba(126, 224, 168, 0.25); border-radius: 20px; background: linear-gradient(90deg, rgba(126, 224, 168, 0.17), rgba(126, 224, 168, 0.04)); color: rgba(255, 255, 255, 0.62); box-shadow: none; }
.slx .shu-turn b { color: #fff; font: 400 25px/1.2 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; }
.slx .shu-turn b em { color: #7ee0a8; font-size: 30px; }
.slx .shu-turn b svg { font-size: 20px; }
.slx .shu-turn.over { border-color: rgba(255, 110, 120, 0.4); background: linear-gradient(90deg, rgba(255, 90, 100, 0.22), rgba(255, 90, 100, 0.05)); color: rgba(255, 220, 220, 0.8); }
.slx .shu-turn.over b { color: #ff8a8a; }
.slx .shu-turn.win { border-color: rgba(255, 208, 90, 0.45); background: linear-gradient(90deg, rgba(255, 196, 60, 0.24), rgba(255, 196, 60, 0.05)); color: rgba(255, 240, 200, 0.85); }
.slx .shu-turn.win b { color: #ffd36b; }
.slx .shu-pips i { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.slx .shu-pips i.on { background: radial-gradient(circle at 35% 35%, #b8f5d0, #3fbf7f); box-shadow: 0 0 8px rgba(63, 191, 127, 0.7); }
.slx .shu-turn kbd { background: rgba(255, 255, 255, 0.9); }
.slx-girl { position: absolute; left: 6px; bottom: 0; width: 96px; height: 100px; object-fit: cover; object-position: 50% 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); transform-origin: 50% 100%; animation: slx-girl 2.6s ease-in-out infinite; }
.slx-girl.shock { animation: slx-girl-shock 0.5s ease-out; }
@keyframes slx-girl { 50% { transform: translateY(-2px) rotate(-1.5deg); } }
@keyframes slx-girl-shock { 0% { transform: translateY(14px) scale(0.9); } 45% { transform: translateY(-8px) scale(1.06); } 100% { transform: none; } }

/* 操作方式：三张深色卡，选中的变白（插标记红边、无人机蓝边） */
.slx-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; background: rgba(0, 0, 0, 0.25); }
.slx-mode { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 0; border-radius: 15px; background: transparent; color: rgba(255, 255, 255, 0.72); font: inherit; font-weight: 900; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.slx-mode .slx-ico { flex-shrink: 0; width: 36px; height: 36px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); transition: transform 0.2s cubic-bezier(.3, .7, .4, 1.4); }
.slx-mode span { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 15px; line-height: 1.25; }
.slx-mode small { overflow: hidden; max-width: 100%; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) { .slx-mode:hover:not(:disabled):not(.on) { background: rgba(255, 255, 255, 0.07); } }
.slx-mode:active:not(:disabled) { transform: translateY(1px); }
.slx-mode.on { background: linear-gradient(180deg, #ffffff, #e9eef0); color: #1d2420; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
.slx-mode.on small { color: #5d6a60; }
.slx-mode.on .slx-ico { transform: scale(1.12) rotate(-6deg); }
.slx-mode[data-mode="flag"].on { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #e0453a; }
.slx-mode[data-mode="drone"].on { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #3b8fe8; }
.slx-mode:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.6); }

/* 地图：深橄榄战术桌 + 淡淡的等高线；格子是正方形画布的草丛 / 沙地（草尖伸到格子上沿） */
.slx-map { position: relative; display: flex; justify-content: center; padding: 14px 16px 18px 10px; border-radius: 24px; background: radial-gradient(90% 80% at 50% 45%, #50604a 0%, #3a4736 60%, #2b3528 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), inset 0 -20px 40px rgba(0, 0, 0, 0.25), 0 10px 24px rgba(0, 0, 0, 0.3); overflow: hidden; }
.slx-map::before { content: ''; position: absolute; inset: 0; opacity: 0.15; pointer-events: none; background: repeating-radial-gradient(circle at 18% 30%, transparent 0 22px, rgba(255, 255, 255, 0.6) 22px 23px), repeating-radial-gradient(circle at 85% 80%, transparent 0 26px, rgba(255, 255, 255, 0.5) 26px 27px); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.slx-map::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: background 0.4s ease; }
.slx-map.lost::after { background: radial-gradient(circle at 50% 50%, rgba(229, 57, 53, 0) 40%, rgba(229, 57, 53, 0.32)); }
.slx-map.won::after { background: radial-gradient(circle at 50% 50%, rgba(255, 214, 80, 0) 40%, rgba(255, 200, 40, 0.35)); }
.slx-board { position: relative; display: grid; grid-template-columns: 26px repeat(var(--cols), minmax(0, 1fr)); gap: 6px; width: 100%; max-width: calc(26px + var(--cols) * 92px); }
.slx-corner { display: block; }
.slx-colh, .slx-rowh { display: grid; place-items: center; align-self: center; justify-self: center; min-width: 20px; height: 22px; color: rgba(255, 255, 255, 0.55); font: 400 18px/1 'LL Game', sans-serif; }
.slx-cell { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; background: transparent center / 100% 100% no-repeat; font: inherit; color: var(--slx-ink); filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3)); }
.slx-cell.hidden, .slx-key.hidden, .slx-cell.conf, .slx-key.conf { background-image: url(../images/fun/slx/grass-1.webp); }
.slx-cell.g2, .slx-key.g2, .slx-demo-cell.g2 { background-image: url(../images/fun/slx/grass-2.webp); }
.slx-cell.g3, .slx-key.g3, .slx-demo-cell.g3 { background-image: url(../images/fun/slx/grass-3.webp); }
.slx-demo-cell.g1 { background-image: url(../images/fun/slx/grass-1.webp); }
button.slx-cell { cursor: pointer; transition: transform 0.14s ease, filter 0.14s ease; }
@media (hover: hover) { button.slx-cell:hover:not(.sel) { transform: translateY(-3px); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.35)) brightness(1.08) saturate(1.1); } }
button.slx-cell:active { transform: translateY(1px); }
button.slx-cell:focus-visible { outline: 3px solid #ffcc33; outline-offset: 2px; }
.slx-cell.open, .slx-key.open { background-image: url(../images/fun/slx/ground.webp); }
.slx-cell.open.o2 { background-image: url(../images/fun/slx/ground-2.webp); }
/* 起点：降落伞小标 */
.slx-cell.start::before { content: ''; position: absolute; left: 4%; top: 6%; width: 40%; height: 40%; background: url(../images/fun/slx/start.webp) center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
/* 数字：标题字体 + 白描边，按扫雷习惯配色 */
.slx-cell b { margin-top: 4%; font: 400 clamp(22px, 4.4vw, 44px)/1 'LL Game', "Arial Rounded MT Bold", sans-serif; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; filter: drop-shadow(0 3px 2px rgba(110, 80, 30, 0.3)); }
.slx-cell.n1 b, .slx-key .n1, .slx-demo-cell .n1 { color: #2f6fe0; }
.slx-cell.n2 b, .slx-key .n2, .slx-demo-cell .n2 { color: #1f9d55; }
.slx-cell.n3 b, .slx-demo-cell .n3 { color: #e0453a; }
.slx-cell.n4 b { color: #7a3fd0; }
.slx-cell.n5 b { color: #c2610f; }
.slx-cell.n6 b { color: #0f8f86; }
.slx-cell.n7 b { color: #2c3350; }
.slx-cell.n8 b { color: #7a7f9a; }
.slx-ico { display: block; width: 84%; height: 84%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.slx-cell.flag .slx-ico, .slx-key.flag .slx-ico { width: 64%; height: 64%; margin-top: -10%; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }
/* 无人机确认的老六：草丛里露出眼睛 + 红色准星，红光呼吸 */
.slx-cell.conf .slx-ico, .slx-key.conf .slx-ico { width: 92%; height: 92%; margin-top: -6%; }
.slx-cell.conf::after, .slx-key.conf::after { content: ''; position: absolute; inset: 6%; background: url(../images/fun/slx/target.webp) center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 70, 90, 0.8)); animation: slx-lock 1.6s ease-in-out infinite; }
@keyframes slx-lock { 50% { transform: scale(0.9) rotate(8deg); } }
.slx-cell.hit { z-index: 2; overflow: visible; background-image: url(../images/fun/slx/crater.webp); }
.slx-cell.hit .slx-ico { width: 128%; height: 128%; max-width: none; filter: drop-shadow(0 6px 8px rgba(120, 20, 10, 0.5)); animation: slx-taunt 0.9s ease-in-out infinite alternate; }
@keyframes slx-taunt { from { transform: rotate(-5deg) scale(1); } to { transform: rotate(5deg) scale(1.06); } }
/* 结束后亮出来的老六：沙地上的草丛里露出眼睛 */
.slx-cell.mine { background-image: url(../images/fun/slx/ground.webp); }
.slx-cell.mine .slx-ico { width: 92%; height: 92%; margin-top: -8%; }
.slx-cell.mine .slx-ico.badge { position: absolute; right: 0; top: -2%; width: 42%; height: 42%; margin: 0; }
.slx-cell.wrong::after { content: '✕'; position: absolute; color: #ff4d5e; font-size: clamp(22px, 4.6vw, 40px); font-weight: 900; text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
/* 选中：粉色光框呼吸（无人机是蓝色）；格子本身不动，免得点第二下点不准 */
.slx-cell.sel { z-index: 1; --sel: #ff6fb0; animation: slx-sel 0.9s ease-in-out infinite; }
.slx-cell.sel.drone { --sel: #3b8fe8; }
.slx-cell.sel::after { content: ''; position: absolute; inset: -4px; border: 3px solid var(--sel); border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sel) 25%, transparent), 0 0 22px var(--sel), inset 0 0 14px color-mix(in srgb, var(--sel) 45%, transparent); animation: slx-frame 0.9s ease-in-out infinite; }
@keyframes slx-sel { 50% { filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3)) brightness(1.18); } }
@keyframes slx-frame { 50% { inset: -7px; } }
.slx-ping { position: absolute; z-index: 3; width: 12px; height: 12px; margin: -6px; border: 3px solid #3b8fe8; border-radius: 50%; pointer-events: none; opacity: 0; animation: slx-ping 0.45s ease-out 3 forwards; box-shadow: 0 0 12px rgba(59, 143, 232, 0.6); }
@keyframes slx-ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }
.slx-drone { position: absolute; z-index: 4; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 6px rgba(0, 0, 0, 0.3)); }
.slx-puff { position: absolute; z-index: 3; object-fit: contain; pointer-events: none; }
.slx-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 700; }
.slx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.slx-key { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: center / 100% 100% no-repeat; font-style: normal; }
.slx-key.open b { font: 400 18px/1 'LL Game', sans-serif; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.slx-key .slx-ico { width: 80%; height: 80%; }
.slx-key.conf::after { inset: 0; }
.slx .shu-tools .fw-button { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.88); }
.slx .shu-tools .fw-button:hover { background: rgba(255, 255, 255, 0.14); }
.slx .shu-tools .fw-button.primary { border-color: transparent; background: linear-gradient(180deg, #ff9cc8, #f0458f); color: #fff; }
.slx-verify-tip { font-size: 12px; color: var(--soft); }
.slx-verify-tip code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; word-break: break-all; }
.slx-reveal { display: grid; grid-template-columns: 18px repeat(var(--cols), minmax(0, 34px)); gap: 3px; margin: 10px 0; }
.slx-reveal b { display: grid; place-items: center; color: var(--soft); font-size: 11px; }
.slx-reveal i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 5px; background: #ece6d4; color: #6b5d3c; font-size: 12px; font-style: normal; font-weight: 900; }
.slx-reveal i.open { background: #f9f4e7; }
.slx-reveal i.mine { background: #37474f; color: #fff; }
.slx-reveal i.hit { background: #c81e1e; color: #fff; }
.slx-reveal i.start { box-shadow: inset 0 0 0 2px #5b6b3a; }

/* ================= LL116 黄金矿工（街机）：canvas 矿区 + 摇晃的钩子，上面深色玻璃计分条、下面两个大按钮 =================
   2026-10-24 二次元商用版：素材在 images/fun/gm/（Figma 原图，tools/minigame_art/export_v2.py 导出）；画面在 js/fun-mini-kuanggong.js 的 gmDraw 里画 */
.gm-intro { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(40, 20, 8, 0.25)), url(../images/fun/gm/bg.webp) center 30% / cover; border: 0; }
.gm-intro h4 { color: #fff; text-shadow: 0 2px 6px rgba(40, 20, 5, 0.6); }
.gm-intro p { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); color: #4a3a2a; }
.gm-demo { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 112px; }
.gm-demo-item.k-xj { height: 30px; } .gm-demo-item.k-dj { height: 66px; } .gm-demo-item.k-zs { height: 38px; } .gm-demo-item.k-bx { height: 50px; } .gm-demo-item.k-ds { height: 54px; }
.gm-demo-item.k-chest { height: 56px; } .gm-demo-item.k-heart { height: 44px; filter: drop-shadow(0 0 10px rgba(255, 70, 100, 0.55)) drop-shadow(0 3px 3px rgba(60, 30, 5, 0.25)); }
.gm-intro .gm-old { padding: 10px 14px; border-radius: 14px; background: rgba(255, 245, 230, 0.95); color: #8a4b12; }
.gm-demo-miner { width: auto; height: 112px; filter: drop-shadow(0 4px 4px rgba(60, 30, 5, 0.25)); animation: gm-hop 2.4s ease-in-out infinite; }
.gm-demo-item { width: auto; height: 44px; margin-bottom: 4px; filter: drop-shadow(0 3px 3px rgba(60, 30, 5, 0.25)); animation: gm-bounce 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.15s); }
@keyframes gm-bounce { 50% { transform: translateY(-6px) rotate(-6deg); } }
@keyframes gm-hop { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-8px); } 80% { transform: none; } 88% { transform: translateY(-4px); } }
.k-xj { --s: 0.5; } .k-zj { --s: 0.68; } .k-dj { --s: 0.95; } .k-zs { --s: 0.56; } .k-xs { --s: 0.56; } .k-ds { --s: 0.8; } .k-bx { --s: 0.7; }
.shu-turn kbd, .gm-go kbd, .gm-bomb kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid rgba(0, 0, 0, 0.18); border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #4a5070; font: 800 11px/1 "PingFang SC", "Microsoft YaHei", sans-serif; }

.gm-play { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; color: #fff; background: radial-gradient(120% 80% at 50% 0%, #2a2f3d 0%, #1a1d26 55%, #13151b 100%); box-shadow: 0 18px 40px rgba(15, 18, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
/* 计分条：关卡牌（粉）+ 目标 + 得分（金）+ 炸药 + 倒计时，每项一块深色玻璃 */
.gm-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; font-size: 13px; }
.gm-hud:empty { display: none; }
.gm-hud > span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 2px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.07); white-space: nowrap; }
.gm-hud b { color: #fff; font: 400 22px/1 'LL Game', "PingFang SC", sans-serif; font-variant-numeric: tabular-nums; }
.gm-hud small { color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 700; }
.gm-hud img { width: 28px; height: 28px; margin: -4px 0; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.gm-hud svg { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.gm-hud > .gm-hud-level { gap: 3px; border: 0; background: linear-gradient(180deg, #ff9cc8, #f0458f); box-shadow: 0 6px 14px rgba(240, 69, 143, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); color: #fff; font: 400 24px/1 'LL Game', sans-serif; }
.gm-hud-level small { color: rgba(255, 255, 255, 0.85); font: 400 15px/1 'LL Game', sans-serif; }
.gm-hud-goal b.none { color: rgba(255, 255, 255, 0.72); font-size: 18px; }
.gm-hud-score { padding-left: 6px !important; }
.gm-hud-score b { color: #ffc93c; font-size: 26px; text-shadow: 0 2px 4px rgba(120, 60, 0, 0.45); }
.gm-hud-score small { margin-left: 2px; font-size: 12px; font-weight: 800; }
.gm-hud-score small.short { color: #ffb4cf; }
.gm-hud-score small.ok { color: #9ff0c2; }
.gm-hud-dyn { padding-left: 6px !important; }
.gm-hud-time { margin-left: auto; padding-right: 14px !important; }
.gm-hud-time b { min-width: 2.4em; font-size: 26px; text-align: right; }
.gm-timebar { display: block; width: 110px; height: 8px; margin-left: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.gm-timebar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4fd1b5, #66c2ff); box-shadow: 0 0 8px rgba(102, 194, 255, 0.6); }
.gm-hud-time.low { animation: gm-low 0.8s ease-in-out infinite; }
.gm-hud-time.low b, .gm-hud-time.low svg { color: #ff8a8a; }
.gm-hud-time.low .gm-timebar i { background: linear-gradient(90deg, #ff9a9a, #ff4d6a); box-shadow: 0 0 8px rgba(255, 77, 106, 0.7); }
@keyframes gm-low { 50% { background: rgba(255, 70, 90, 0.22); border-color: rgba(255, 110, 130, 0.5); } }
.gm-field { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; background: #2a1a10; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* 屏幕矮时矿区按比例缩窄居中：两边用同一张背景虚化铺满（视频播放器那种氛围边），不露出别的颜色 */
.gm-field::before { content: ''; position: absolute; inset: -24px; background: url(../images/fun/gm/bg.webp) center / cover; filter: blur(18px) brightness(0.62) saturate(1.1); }
.gm-field > .gm-canvas { position: relative; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
.gm-field:focus-visible { outline: 3px solid #ff9cc8; outline-offset: -3px; }
/* 电脑上整张矿区要在一屏里看全：高度超出视口时按比例缩窄、居中 */
.gm-canvas { display: block; width: min(100%, calc((100vh - 250px) * 12.6 / 9.45)); min-width: min(100%, 420px); margin: 0 auto; aspect-ratio: 12.6 / 9.45; }
.gm-cover-slot { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 12%; pointer-events: none; }
.gm-cover-slot:empty { display: none; }
/* 关卡牌：白色玻璃卡 + 粉色圆章，标题用 LL Game */
.gm-cover { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 210px; padding: 28px 28px 16px; border-radius: 22px; color: #2c3350; background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 245, 250, 0.94)); box-shadow: 0 18px 40px rgba(30, 15, 40, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.gm-cover > svg { position: absolute; top: -22px; left: 50%; width: 44px; height: 44px; margin-left: -22px; padding: 10px; border-radius: 50%; background: linear-gradient(180deg, #ff9cc8, #f0458f); color: #fff; box-sizing: border-box; box-shadow: 0 6px 14px rgba(240, 69, 143, 0.4); }
.gm-cover b { font: 400 26px/1.2 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; color: #2c3350; }
.gm-cover small { color: #7a7f9a; font-size: 12px; font-weight: 700; }
.gm-cover.girl { padding-top: 64px; }
.gm-cover-girl { position: absolute; top: -78px; left: 50%; width: 96px; height: 132px; margin-left: -48px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 8px rgba(40, 20, 5, 0.3)); animation: gm-hop 1.8s ease-in-out infinite; pointer-events: none; }
.gm-cover.go { animation: gm-pulse 1.4s ease-in-out infinite; }
.gm-cover.go > svg { background: linear-gradient(180deg, #7ee0a8, #2fae6a); box-shadow: 0 6px 14px rgba(47, 174, 106, 0.4); }
.gm-cover.ok b { color: #e0861a; }
.gm-cover.ok > svg { background: linear-gradient(180deg, #ffd34d, #ff9a1f); }
.gm-cover.bad b { color: #e0405a; }
.gm-cover.bad > svg { background: linear-gradient(180deg, #ff9aa6, #e0405a); }
@keyframes gm-pulse { 50% { transform: scale(1.04); } }
/* 两个大按钮：粉色「下钩」、深色「炸药」 */
.gm-ctrl { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; }
.gm-ctrl:empty { display: none; }
.gm .gm-ctrl .fw-button { gap: 10px; min-height: 56px; border: 0; border-radius: 18px; font: 400 22px/1 'LL Game', "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 1px; transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease; }
.gm .gm-ctrl .fw-button img { width: 34px; height: 34px; margin: -6px 0; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.gm .gm-ctrl .fw-button svg { font-size: 20px; }
.gm .gm-ctrl .fw-button span { white-space: nowrap; }
.gm .gm-go { flex: 1 1 260px; color: #fff; background: linear-gradient(180deg, #ff9cc8 0%, #ff5fa2 55%, #f0458f 100%); box-shadow: 0 10px 22px rgba(240, 69, 143, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(150, 20, 80, 0.25); text-shadow: 0 2px 3px rgba(150, 20, 80, 0.35); }
.gm .gm-bomb { flex: 0 1 190px; color: #fff; background: linear-gradient(180deg, #3a3f52, #23262f); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
@media (hover: hover) { .gm .gm-ctrl .fw-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); } }
.gm .gm-ctrl .fw-button:active:not(:disabled) { transform: translateY(2px); filter: brightness(0.96); }
.gm .gm-bomb:disabled { color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); box-shadow: none; opacity: 1; cursor: not-allowed; }
.gm .gm-bomb:disabled img { filter: grayscale(0.85) opacity(0.5); }
.gm-go kbd, .gm-bomb kbd { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.22); color: #fff; text-shadow: none; }
.gm-need { color: #c0392b; }
.gm-log { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gm-log li { padding: 4px 10px; border: 1px solid #f0d9a6; border-radius: 999px; background: #fff8e1; color: #6d4c41; font-size: 12px; font-weight: 700; }
.gm-log li.bomb { border-color: #f5c3a8; background: #ffece0; }
.gm-log li.end { border-color: #e2e5ea; background: #eef0f3; color: var(--soft); }
.gm-log li.red { border-color: #f4bcc8; background: #fff0f3; color: #a3263f; }
.gm-log em { margin-left: 4px; color: #3b5b8c; font-style: normal; }
/* 图例：7 种东西用画面里同一套图 */
.gm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; }
.gm-legend > span, .gm-legend-row > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border: 1px solid #ecd9b4; border-radius: 999px; background: #fffaf0; }
.gm-legend-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; flex-basis: 100%; }
.gm-legend-row > em { color: var(--soft); font-size: 12px; font-style: normal; font-weight: 800; }
.gm-legend-row.red > span { border-color: #f4bcc8; background: #fff3f5; }
.gm-legend-row.red b { color: #a3263f; }
.gm-legend img { width: 30px; height: 30px; object-fit: contain; }
.gm-legend b { color: #5a3416; }
.gm-legend small { color: var(--soft); }
.gm-legend p { flex-basis: 100%; margin: 2px 0 0; color: var(--soft); font-size: 12px; line-height: 1.7; text-align: center; }
.gm-reveal { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.gm-reveal-level b { display: block; margin-bottom: 4px; font-size: 12px; }
.gm-reveal-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 40px)); gap: 2px; }
.gm-reveal-grid i { position: relative; display: grid; place-items: center; height: 24px; border-radius: 4px; background: #e8d6b4; color: #5d4037; font-size: 10px; font-style: normal; font-weight: 900; }
.gm-reveal-grid i.k-xj, .gm-reveal-grid i.k-zj, .gm-reveal-grid i.k-dj { background: #ffd84a; }
.gm-reveal-grid i.k-zs, .gm-reveal-grid i.k-chest, .gm-reveal-grid i.k-heart { background: #ffc2cf; color: #8a1730; box-shadow: inset 0 0 0 1.5px #ff6b86; }
.gm-reveal-grid i.k-xs, .gm-reveal-grid i.k-ds { background: #b8b8b8; }
.gm-reveal-grid i.k-bx { background: #8d6e63; color: #ffe08a; }
.gm-reveal-grid i.dug::after { content: '✓'; position: absolute; right: 2px; top: 0; color: #2e7d32; font-size: 9px; }
/* 企划 v4：本局的红——点选（录入前）、这一关埋着哪些（挖的时候跟着画面变） */
.gm-pick { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #fff4f6, #fffdfd 60%); border: 1px solid #f6d0d8; }
.gm-pick[hidden], .gm-pick-lib[hidden] { display: none; }
.gm-pick .fw-section-title h3 { display: inline-flex; align-items: center; gap: 6px; }
.gm-pick .fw-section-title h3 svg { color: #e0405a; }
.gm-pick-tip { margin: 0; font-size: 12px; line-height: 1.7; color: var(--soft); }
.gm-pick-draft { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gm-pick-empty, .gm-pick-none { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; align-self: stretch; border: 1px dashed #efbcc7; border-radius: 12px; color: #9a4a5a; font-size: 13px; font-weight: 700; }
.gm-pick-none svg { flex-shrink: 0; font-size: 18px; }
.gm-pick-chips, .gm-buried { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gm-red-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 3px 8px 3px 3px; border: 1px solid #f2c3cd; border-radius: 12px; background: #fff; font-size: 13px; transition: opacity 0.2s ease, background 0.2s ease; }
.gm-red-it { flex-shrink: 0; width: 34px; height: 32px; padding: 2px; border-radius: 9px; object-fit: contain; background: linear-gradient(160deg, #ffe1e1, #f6b1b1); }
.gm-red-chip b { max-width: 9em; overflow: hidden; color: #5c1a28; white-space: nowrap; text-overflow: ellipsis; }
.gm-red-chip small { display: inline-flex; align-items: center; gap: 2px; color: #c0394f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.gm-red-chip small img { width: 20px; height: 20px; object-fit: contain; }
.gm-red-chip em { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; background: #f1f1f3; color: #6b6f80; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.gm-red-chip.pull em { background: #ffe3e9; color: #c0394f; }
.gm-red-chip.got { border-color: #f0d9a6; background: #fff8e1; }
.gm-red-chip.got em { background: #2fae6a; color: #fff; }
.gm-red-chip.gone { opacity: 0.55; }
.gm-red-del { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 2px; padding: 0; border: 0; border-radius: 8px; background: #fbeef1; color: #b0485c; cursor: pointer; }
.gm-red-del:hover { background: #e0405a; color: #fff; }
.gm-pick-sum { display: flex; align-items: center; gap: 6px; margin: 0; color: #b02a43; font-size: 13px; font-weight: 800; }
.gm-pick-lib { display: flex; flex-direction: column; gap: 8px; }
.gm-pick-search input { font-size: 14px; }
.gm-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.gm-pick-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 6px 7px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.gm-pick-item:hover { transform: translateY(-2px); border-color: #f08aa0; box-shadow: 0 6px 14px rgba(160, 30, 60, 0.1); }
.gm-pick-icon { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 8px; background: linear-gradient(160deg, #ffe1e1, #f6b1b1); }
.gm-pick-icon img { max-width: 46px; max-height: 40px; object-fit: contain; }
.gm-pick-name { display: -webkit-box; width: 100%; overflow: hidden; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; word-break: break-all; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gm-pick-as { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.gm-pick-n { position: absolute; right: 4px; top: 4px; padding: 1px 6px; border-radius: 999px; background: #e0405a; color: #fff; font-size: 11px; line-height: 1.3; }
.gm-pick-more { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: 12px; text-align: center; }
.gm-pick-manual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--soft); font-size: 12px; }
.gm-pick-add { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 6px; border: 1px solid #f2c3cd; border-radius: 999px; background: #fff; color: #b02a43; font-size: 12px; font-weight: 800; cursor: pointer; }
.gm-pick-add:hover { border-color: #e0405a; }
.gm-pick-add img { width: 22px; height: 22px; object-fit: contain; }
.gm-buried:empty { display: none; }
.gm-buried-title { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; color: #b02a43; font-size: 13px; font-weight: 800; }
.gm-buried.none { color: var(--soft); font-size: 12px; font-weight: 700; }
.gm-buried.none svg { color: #c9a3ab; }
.gm-buried-more { color: var(--soft); font-size: 12px; }

@media (max-width: 760px) {
  .shu.slx:has(.slx-play) { padding: 12px 10px 14px; border-radius: 20px; }
  .slx .shu-turn { min-height: 70px; padding: 8px 10px 8px 84px; }
  .slx .shu-turn b { font-size: 20px; }
  .slx .shu-turn b em { font-size: 24px; }
  .slx-girl { width: 76px; height: 80px; left: 2px; }
  .slx-modes { gap: 4px; padding: 4px; border-radius: 16px; }
  .slx-mode { flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 12px; }
  .slx-mode .slx-ico { width: 28px; height: 28px; }
  .slx-mode span { align-items: center; font-size: 13px; }
  .slx-mode small { font-size: 10px; }
  .slx-map { padding: 10px 8px 12px 4px; border-radius: 18px; }
  .slx-board { grid-template-columns: 16px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; }
  .slx-colh, .slx-rowh { min-width: 14px; height: 16px; font-size: 13px; }
  .slx-cell { border-radius: 8px; }
  .slx-cell b { -webkit-text-stroke: 4px #fff; }
  .slx-cell.sel::after { inset: -3px; border-width: 2px; border-radius: 10px; }
  @keyframes slx-frame { 50% { inset: -5px; } }
  .slx-legend { gap: 4px 12px; font-size: 12px; }
  .slx-reveal { grid-template-columns: 14px repeat(var(--cols), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* 手机上计分条一行放下：倒计时条改成贴在木牌底边的一道细条 */
  .gm-hud { position: relative; flex-wrap: nowrap; gap: 4px; padding: 6px 6px 9px; font-size: 12px; }
  .gm-hud > span { min-height: 26px; padding: 1px 7px; }
  .gm-hud > span { flex-shrink: 0; }
  .gm-hud > .gm-hud-score { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .gm-hud-score small { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
  .gm-timebar { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 4px; margin: 0; border-radius: 0; background: rgba(0, 0, 0, 0.45); }
  .gm-hud img { width: 20px; height: 20px; }
  .gm-hud-goal { display: none !important; }
  .gm-hud > .gm-hud-level { font-size: 15px; padding: 1px 9px; }
  .gm-hud-score b { font-size: 17px; }
  .gm-hud-time b { font-size: 17px; min-width: 2.2em; }
  .gm-hud-time small { display: none; }
  .gm-ctrl { gap: 8px; padding: 8px 8px 10px; }
  .gm .gm-go { flex-basis: 58%; min-height: 56px; }
  .gm .gm-bomb { flex: 1 1 30%; min-height: 56px; padding-inline: 8px; gap: 6px; font-size: 16px; }
  .gm .gm-ctrl .fw-button img { width: 26px; height: 26px; }
  .gm-go kbd, .gm-bomb kbd { display: none; }
  .gm-cover { min-width: 0; padding: 22px 16px 10px; }
  .gm-cover > svg { top: -18px; width: 36px; height: 36px; margin-left: -18px; padding: 7px; }
  .gm-cover.girl { padding-top: 36px; }
  .gm-cover-girl { top: -46px; width: 56px; height: 76px; margin-left: -28px; }
  .gm-cover b { font-size: 18px; }
  .gm-legend > span, .gm-legend-row > span { padding: 3px 10px 3px 4px; }
  .fw-overlay[data-entry="LL116"] .fw-pack { flex-basis: calc(33.333% - 6px); padding: 7px 4px; }   /* 3 张图 × 3 档：一行一张图 */
  .gm-pick { padding: 12px 10px; }
  .gm-pick-search input { font-size: 16px; }
  .gm-pick-list { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); max-height: 300px; }
  .gm-red-chip { min-height: 36px; font-size: 12px; }
  .gm-red-chip b { max-width: 7em; }
  .gm-red-it { width: 30px; height: 28px; }
  .gm-legend img { width: 24px; height: 24px; }
  .gm-reveal-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
