/* ==========================================================================
   Neosw Lab · v1.0 — 50 个创意按钮
   依赖 neosw.css（变量）与 neosw-plus.css（音效按钮、彩带）；类名前缀 lb-
   ========================================================================== */

@property --lb-f { syntax: '<length>'; initial-value: 0px; inherits: true; }
@property --lb-c { syntax: '<number>'; initial-value: 0; inherits: true; }

.lb-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer; user-select: none; white-space: nowrap;
  font: 600 15px/1 var(--ns-font); color: #fff; background: var(--ns-accent); -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ns-spring), box-shadow .25s, background .25s, color .25s;
}
.lb-btn:active { transform: scale(.95); }
.lb-btn__t { position: relative; z-index: 1; }
.lab button:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: 3px; }

/* ---------------- A · 物理与材质 ---------------- */
/* 01 果冻 */
.lb-jelly { border-radius: 18px; background: linear-gradient(135deg, #FF7AA8, #FF4F79); box-shadow: 0 12px 22px -12px #FF4F79; }
.lb-jelly.is-wobble { animation: lb-jelly .75s; }
@keyframes lb-jelly {
  0% { transform: scale(1, 1); } 30% { transform: scale(1.25, .75); } 40% { transform: scale(.78, 1.22); }
  50% { transform: scale(1.14, .86); } 65% { transform: scale(.95, 1.05); } 75% { transform: scale(1.04, .96); } 100% { transform: scale(1, 1); }
}

/* 02 气泡膜 */
.lb-wrap {
  display: grid; grid-template-columns: repeat(5, 34px); gap: 6px; padding: 10px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(170, 210, 255, .28), rgba(200, 240, 255, .1)); box-shadow: inset 0 0 0 1px var(--ns-line);
}
.lb-bub {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .25) 30%, rgba(160, 200, 255, .35) 70%, rgba(110, 150, 230, .55));
  box-shadow: inset -3px -4px 8px rgba(70, 110, 200, .28), 0 3px 6px -2px rgba(40, 60, 120, .35);
  transition: transform .15s; animation: lb-inflate .45s var(--ns-spring) backwards;
}
.lb-bub:hover { transform: scale(1.07); }
.lb-bub.is-pop {
  cursor: default; transform: scale(.84); animation: lb-popped .25s;
  background: radial-gradient(circle, rgba(150, 180, 230, .22), rgba(150, 180, 230, .1)); box-shadow: inset 0 2px 4px rgba(40, 60, 120, .28);
}
@keyframes lb-inflate { from { transform: scale(.2); opacity: 0; } }
@keyframes lb-popped { 0% { transform: scale(1.18); } 100% { transform: scale(.84); } }

/* 03 弹弓 */
.lb-sling { position: relative; width: 230px; height: 150px; touch-action: none; }
.lb-sling svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.lb-sling line { stroke: #C0743A; stroke-width: 4; stroke-linecap: round; }
.lb-sling__post { position: absolute; top: 66px; width: 10px; height: 76px; border-radius: 5px; background: linear-gradient(90deg, #7C4E22, #C68B4F, #7C4E22); }
.lb-sling__post:nth-of-type(1) { left: 30px; }
.lb-sling__post:nth-of-type(2) { right: 30px; }
.lb-sling__btn { position: absolute; left: 50%; top: 52px; z-index: 2; width: 118px; margin-left: -59px; cursor: grab; touch-action: none; background: linear-gradient(135deg, #FF9F43, #FF6B3D); }
.lb-sling__btn:active { transform: none; cursor: grabbing; }
.lb-sling__btn.is-back { transition: transform .65s cubic-bezier(.3, 2.2, .5, 1), opacity .3s; }

/* 04 毛玻璃 */
.lb-glass-stage { position: relative; width: 230px; height: 124px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #1C1938; }
.lb-blob { position: absolute; width: 110px; height: 110px; border-radius: 50%; filter: blur(4px); animation: lb-orbit 6s ease-in-out infinite alternate; }
.lb-blob.b1 { left: 6px; top: -24px; background: #FF5E7E; }
.lb-blob.b2 { right: -6px; bottom: -34px; background: #3FD0FF; animation-delay: -3s; animation-direction: alternate-reverse; }
.lb-blob.b3 { left: 100px; top: 64px; width: 64px; height: 64px; background: #C6F432; animation-duration: 8s; }
@keyframes lb-orbit { to { transform: translate(46px, 18px) scale(1.2); } }
.lb-glass {
  overflow: hidden; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.lb-glass::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 60px at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, .5), transparent); opacity: 0; transition: opacity .3s; }
.lb-glass:hover::before { opacity: 1; }

/* 05 拉丝金属 */
.lb-metal {
  overflow: hidden; color: #2F323E; letter-spacing: .14em; text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 1px, rgba(0, 0, 0, .05) 1px 2px, transparent 2px 3px), linear-gradient(180deg, #ECEEF2, #B6BAC6 50%, #D9DCE3);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px #8D92A2, 0 8px 14px -8px rgba(0, 0, 0, .5);
}
.lb-metal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 80px at var(--x, 30%) var(--y, 20%), rgba(255, 255, 255, .85), transparent 70%); mix-blend-mode: overlay; }
.lb-metal:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35), 0 0 0 1px #8D92A2; }

/* 06 黏土 */
.lb-clay {
  height: 56px; padding: 0 30px; border-radius: 24px; color: #7A2E12; background: #FFA47E;
  box-shadow: 10px 12px 20px -6px rgba(200, 90, 50, .5), inset -8px -8px 14px rgba(190, 80, 40, .35), inset 8px 8px 14px rgba(255, 225, 205, .85);
  transition: transform .4s var(--ns-spring), box-shadow .3s;
}
.lb-clay:hover { transform: translateY(-2px) rotate(-1.5deg); }
.lb-clay:active { transform: scale(.94, .88); box-shadow: 3px 4px 8px -4px rgba(200, 90, 50, .5), inset 10px 10px 18px rgba(190, 80, 40, .4), inset -4px -4px 10px rgba(255, 225, 205, .6); }

/* 07 霓虹灯管 */
.lb-neon {
  --n: #FF4FD8; padding: 14px 26px; border: 2px solid var(--n); border-radius: 14px; cursor: pointer; background: #120A1A; color: var(--n);
  font: 700 18px/1 var(--ns-font); letter-spacing: .16em; transition: color .15s, border-color .15s, text-shadow .15s, box-shadow .15s;
  text-shadow: 0 0 4px var(--n), 0 0 12px var(--n), 0 0 26px var(--n); box-shadow: 0 0 8px var(--n), inset 0 0 10px var(--n), 0 0 34px -4px var(--n);
}
.lb-neon.is-off { color: #4A2343; border-color: #3A1A35; text-shadow: none; box-shadow: none; }
.lb-neon.is-flick { animation: lb-flick .8s steps(1); }
@keyframes lb-flick { 0%, 22%, 40% { opacity: 1; } 10%, 30% { opacity: .2; } 35% { opacity: .6; } 100% { opacity: 1; } }

/* 08 便签折角 */
.lb-fold {
  border-radius: 3px; color: #5A4A1A; box-shadow: 0 8px 14px -8px rgba(120, 90, 0, .6);
  background: linear-gradient(225deg, transparent calc(var(--lb-f) * .7072), #FFE88A calc(var(--lb-f) * .7072));
  transition: --lb-f .35s var(--ns-ease), transform .25s var(--ns-spring);
}
.lb-fold::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--lb-f); height: var(--lb-f); border-radius: 0 0 0 3px;
  background: linear-gradient(45deg, #E2C653 50%, transparent 50%); filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, .18));
}
.lb-fold:hover, .lb-fold:focus-visible { --lb-f: 22px; }

/* 09 弹簧 */
.lb-spring { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 150px; }
.lb-spring__top { z-index: 1; background: linear-gradient(135deg, #3FD0FF, #2C8CF5); }
.lb-spring__coil { width: 60px; height: 50px; margin-top: -4px; transform-origin: 50% 100%; }
.lb-spring__coil polyline { fill: none; stroke: #8A8EA2; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.lb-spring__base { width: 92px; height: 10px; border-radius: 5px; background: #5A5E74; }
.lb-spring.is-boing .lb-spring__top { animation: lb-boing-top .9s; }
.lb-spring.is-boing .lb-spring__coil { animation: lb-boing-coil .9s; }
@keyframes lb-boing-top { 15% { transform: translateY(20px); } 35% { transform: translateY(-26px); } 55% { transform: translateY(8px); } 75% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes lb-boing-coil { 15% { transform: scaleY(.6); } 35% { transform: scaleY(1.52); } 55% { transform: scaleY(.84); } 75% { transform: scaleY(1.12); } 100% { transform: none; } }

/* 10 史莱姆 */
.lb-goo { position: relative; width: 160px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; }
.lb-goo__blob { position: absolute; inset: 0; filter: url(#lb-goo); }
.lb-goo__body { position: absolute; left: 12px; right: 12px; top: 22px; height: 50px; border-radius: 25px; background: #4ADE80; transition: transform .4s var(--ns-spring); }
.lb-goo__blob i { position: absolute; top: 52px; width: 18px; height: 18px; border-radius: 50%; background: #4ADE80; }
.lb-goo__blob i:nth-of-type(1) { left: 34px; }
.lb-goo__blob i:nth-of-type(2) { left: 72px; }
.lb-goo__blob i:nth-of-type(3) { left: 108px; }
.lb-goo:hover .lb-goo__blob i:not(.lb-goo__spl), .lb-goo:focus-visible .lb-goo__blob i:not(.lb-goo__spl) { animation: lb-drip 1.7s ease-in infinite; }
.lb-goo__blob i:nth-of-type(2) { animation-delay: .55s !important; }
.lb-goo__blob i:nth-of-type(3) { animation-delay: 1.1s !important; }
@keyframes lb-drip { 0% { transform: translateY(0) scale(1); } 70% { transform: translateY(28px) scale(.8); } 100% { transform: translateY(44px) scale(.3); opacity: 0; } }
.lb-goo__spl { position: absolute; left: 70px !important; top: 38px !important; width: 20px !important; height: 20px !important; }
.lb-goo.is-squish .lb-goo__body { animation: lb-squish .5s var(--ns-spring); }
@keyframes lb-squish { 30% { transform: scale(1.14, .8); } }
.lb-goo__t { position: absolute; left: 12px; right: 12px; top: 22px; height: 50px; display: grid; place-items: center; font: 800 15px var(--ns-font); color: #0F3D22; letter-spacing: .1em; }

/* ---------------- B · 光与粒子 ---------------- */
.lb-spark, .lb-sparkle, .lb-smoke, .lb-shock, .lb-flyship { position: fixed; z-index: 1000; pointer-events: none; }
.lb-spark { border-radius: 50%; background: currentColor; box-shadow: 0 0 6px 1px currentColor; }
.lb-sparkle { background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* 11 烟花 */
.lb-fw { background: linear-gradient(135deg, #1E1B4B, #5B21B6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 24px -12px #5B21B6; }

/* 12 星尘 */
.lb-star { background: #0F1230; color: #E6E2FF; box-shadow: 0 0 0 1px #2B2F66, 0 12px 26px -12px #5B4BFF; }

/* 13 高压电 */
.lb-elec {
  position: relative; height: 48px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: #0B1220; color: #9FE8FF; font: 700 15px var(--ns-font); letter-spacing: .12em; box-shadow: inset 0 0 0 1px #1E3A5F;
}
.lb-elec svg { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.lb-elec path { fill: none; stroke: #8FEFFF; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 3px #3FD0FF) drop-shadow(0 0 8px #3FD0FF); }
.lb-elec path + path { stroke-width: 1; opacity: .6; }
.lb-elec.is-zap { animation: lb-zap .25s; }
@keyframes lb-zap { 30% { background: #E6FBFF; color: #0B1220; } }

/* 14 聚光灯 */
.lb-spot { position: relative; width: 210px; height: 56px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #08080C; box-shadow: inset 0 0 0 1px #22232E; }
.lb-spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 70px at var(--x, 50%) var(--y, 50%), rgba(255, 240, 200, .18), transparent 70%); }
.lb-spot__t {
  position: absolute; inset: 0; display: grid; place-items: center; font: 800 16px var(--ns-font); letter-spacing: .24em; color: transparent;
  background: radial-gradient(circle 56px at var(--x, 50%) var(--y, 50%), #FFF6DA, #34343F 85%); -webkit-background-clip: text; background-clip: text;
}

/* 15 描边追踪 */
.lb-trace { background: transparent; color: var(--ns-ink); box-shadow: inset 0 0 0 1.5px var(--ns-line); }
.lb-trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lb-trace rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 13px; fill: none; stroke: var(--ns-accent); stroke-width: 2.5; stroke-dasharray: 100px; stroke-dashoffset: 100px; transition: stroke-dashoffset .9s var(--ns-ease); }
.lb-trace:hover rect, .lb-trace:focus-visible rect { stroke-dashoffset: 0; }
.lb-trace:hover { color: var(--ns-accent); }

/* 16 火焰 */
.lb-fire { overflow: visible; background: #1A0E0A; color: #FFD9A0; box-shadow: inset 0 0 0 1px #3A1E14; transition: box-shadow .3s, transform .25s var(--ns-spring); }
.lb-fire:hover { box-shadow: inset 0 0 0 1px #FF6A00, 0 0 30px -6px #FF6A00; }
.lb-fire__fl { position: absolute; left: 10px; right: 10px; bottom: 0; height: 100%; pointer-events: none; opacity: 0; filter: blur(1.5px); transition: opacity .3s; }
.lb-fire:hover .lb-fire__fl { opacity: 1; }
.lb-fire__fl i {
  position: absolute; bottom: 4px; border-radius: 50% 50% 50% 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 60% 40%, #FFF3B0, #FF9A1F 45%, #FF3D00 75%, transparent); animation: lb-flame 1s ease-in infinite;
}
@keyframes lb-flame { 0% { transform: translateY(0) rotate(-45deg) scale(1); opacity: .9; } 100% { transform: translateY(-54px) rotate(-45deg) scale(.15); opacity: 0; } }

/* 17 汽水 */
.lb-soda { overflow: hidden; color: #5A2E00; background: linear-gradient(180deg, #FFC560, #F08A00); box-shadow: 0 12px 22px -12px #F08A00; }
.lb-soda::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: radial-gradient(circle at 6px 0, #FFF7E8 6px, transparent 6.5px) 0 0 / 12px 7px repeat-x; opacity: 0; transition: opacity .3s; }
.lb-soda:hover::before { opacity: 1; }
.lb-soda i { position: absolute; bottom: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .25); opacity: 0; animation: lb-rise 1.6s ease-in infinite paused; }
.lb-soda:hover i { opacity: 1; animation-play-state: running; }
@keyframes lb-rise { 50% { transform: translate(4px, -30px); } 100% { transform: translate(-2px, -64px); opacity: 0; } }

/* 18 指纹 */
.lb-finger {
  position: relative; width: 78px; height: 78px; padding: 12px; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--ns-surface); box-shadow: 0 0 0 1.5px var(--ns-line), 0 10px 22px -12px rgba(20, 20, 60, .4);
  touch-action: none; -webkit-touch-callout: none; user-select: none; transition: box-shadow .3s;
}
.lb-finger svg { width: 100%; height: 100%; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.lb-finger .bg { stroke: var(--ns-line); }
.lb-finger .fg path { stroke: var(--ns-accent); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s; }
.lb-finger.is-hold .fg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s linear; }
.lb-finger.is-ok .fg path { stroke-dashoffset: 0; stroke: var(--ns-green); }
.lb-finger.is-ok { box-shadow: 0 0 0 2px var(--ns-green), 0 0 24px -6px var(--ns-green); }
.lb-finger__scan { position: absolute; left: 8px; right: 8px; top: 12%; height: 2px; border-radius: 1px; background: var(--ns-accent); box-shadow: 0 0 10px 2px var(--ns-accent); opacity: 0; }
.lb-finger.is-hold .lb-finger__scan { opacity: 1; animation: lb-scan .55s ease-in-out infinite alternate; }
@keyframes lb-scan { to { top: 86%; } }
.lb-finger-label { margin-top: 10px; font-size: 12.5px; color: var(--ns-muted); text-align: center; }

/* 19 雪花球 */
.lb-snow { overflow: hidden; background: linear-gradient(180deg, #5AA9FF, #2F6FE0); }
.lb-snow.is-shake { animation: ns-shake .4s; }
.lb-flake { position: absolute; top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px #fff; pointer-events: none; }

/* 20 碎裂 */
.lb-shatter { background: linear-gradient(135deg, #00C2A8, #0077FF); }
.lb-shatter.is-gone { visibility: hidden; }
.lb-shatter.is-back { animation: lb-reform .5s var(--ns-spring); }
@keyframes lb-reform { from { transform: scale(.3); opacity: 0; } }
.lb-shard { position: fixed !important; margin: 0 !important; z-index: 1000; pointer-events: none; transition: none !important; }

/* ---------------- C · 文字魔法 ---------------- */
/* 21 解码 */
.lb-scramble { min-width: 190px; background: #0D1410; color: #5CFF9D; font: 600 15px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; box-shadow: inset 0 0 0 1px #1F3A2A; text-shadow: 0 0 6px rgba(92, 255, 157, .5); }

/* 22 打字机 */
.lb-type { min-width: 170px; gap: 3px; background: var(--ns-ink); color: var(--ns-bg); font-family: 'JetBrains Mono', ui-monospace, monospace, var(--ns-font); }
.lb-type__c { width: 2px; height: 18px; background: currentColor; animation: nx-blink .9s steps(1) infinite; }

/* 23 字母波浪 */
.lb-wave { gap: 0; background: linear-gradient(135deg, #3FD0FF, #5B4BFF); }
.lb-wave span { display: inline-block; }
.lb-wave:hover span, .lb-wave:focus-visible span { animation: lb-hop .55s var(--ns-ease) calc(var(--i) * 45ms) both; }
@keyframes lb-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-9px) rotate(-8deg); } }

/* 24 翻牌 */
.lb-flap { display: inline-flex; gap: 4px; padding: 8px; border: 0; border-radius: 12px; cursor: pointer; background: #15161D; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .7); }
.lb-flap span {
  position: relative; width: 34px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 5px;
  background: linear-gradient(#2B2D39 50%, #22242F 50%); color: #FFD43B; font: 700 21px var(--ns-font);
}
.lb-flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0B0B10; }
.lb-flap span.is-flip { animation: lb-flip .07s linear; }
@keyframes lb-flip { 50% { transform: scaleY(.1); } }

/* 25 火箭 */
.lb-rocket { min-width: 132px; overflow: visible; background: linear-gradient(135deg, #1F2937, #0B1020); }
.lb-rocket__ship { display: inline-grid; width: 22px; height: 22px; color: #fff; }
.lb-rocket__ship svg, .lb-flyship svg { width: 22px; height: 22px; }
.lb-rocket.is-count { animation: lb-rumble .08s linear infinite; }
@keyframes lb-rumble { 25% { translate: 1px -1px; } 75% { translate: -1px 1px; } }
.lb-rocket__ship.is-land { animation: lb-land .5s var(--ns-spring); }
@keyframes lb-land { from { transform: translateY(16px); opacity: 0; } }
.lb-flyship { color: #fff; }
.lb-smoke { border-radius: 50%; background: rgba(205, 205, 215, .85); }

/* 26 故障 */
.lb-glitch { overflow: visible; background: #0A0A12; color: #fff; font-weight: 800; letter-spacing: .16em; }
.lb-glitch::before, .lb-glitch::after { content: attr(data-text); position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.lb-glitch::before { color: #FF2A6D; }
.lb-glitch::after { color: #05D9E8; }
.lb-glitch:hover { animation: lb-jit .3s steps(2) infinite; }
.lb-glitch:hover::before { opacity: .9; animation: lb-g1 .4s steps(2) infinite; }
.lb-glitch:hover::after { opacity: .9; animation: lb-g2 .35s steps(2) infinite; }
@keyframes lb-jit { 50% { transform: translate(1px, -1px) skewX(-4deg); } }
@keyframes lb-g1 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, -1px); } 50% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 1px); } 100% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); } }
@keyframes lb-g2 { 0% { clip-path: inset(55% 0 15% 0); transform: translate(3px, 1px); } 50% { clip-path: inset(5% 0 70% 0); transform: translate(-3px, 0); } 100% { clip-path: inset(40% 0 35% 0); transform: translate(2px, -1px); } }

/* 27 注水描边字 */
.lb-filltxt { height: 54px; padding: 0 12px; background: transparent; color: transparent; -webkit-text-stroke: 1.2px var(--ns-ink); font: 900 24px/1 var(--ns-font); letter-spacing: .08em; }
.lb-filltxt::after {
  content: attr(data-text); position: absolute; inset: 0; display: grid; place-items: center; -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(180deg, var(--ns-accent-2), var(--ns-accent)); -webkit-background-clip: text; background-clip: text;
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ns-ease);
}
.lb-filltxt:hover::after, .lb-filltxt:focus-visible::after { clip-path: inset(0); }

/* 28 立方翻转 */
.lb-cube { position: relative; width: 150px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.lb-cube__in { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(-24px); transition: transform .6s var(--ns-spring); }
.lb-cube__in span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; font: 700 15px var(--ns-font); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.lb-cube .f1 { background: var(--ns-ink); color: var(--ns-bg); transform: translateZ(24px); }
.lb-cube .f2 { background: var(--ns-lime); color: #181A26; transform: rotateX(-90deg) translateZ(24px); }
.lb-cube:hover .lb-cube__in, .lb-cube:focus-visible .lb-cube__in { transform: translateZ(-24px) rotateX(90deg); }

/* 29 滚动计数 */
.lb-odo { gap: 10px; color: var(--ns-ink); background: var(--ns-surface); box-shadow: inset 0 0 0 1.5px var(--ns-line); }
.lb-odo svg { width: 18px; height: 18px; transition: transform .4s var(--ns-spring); }
.lb-odo.is-on { color: var(--ns-accent); box-shadow: inset 0 0 0 1.5px var(--ns-accent); }
.lb-odo.is-on svg { transform: rotate(-15deg) scale(1.2); fill: currentColor; }
.lb-odo__num { display: inline-flex; height: 1.2em; overflow: hidden; font: 700 16px/1.2em 'JetBrains Mono', ui-monospace, monospace; }
.lb-odo__d { display: flex; flex-direction: column; transition: transform .7s var(--ns-spring); }
.lb-odo__d span { height: 1.2em; }

/* 30 表情脸 */
.lb-face {
  width: 86px; height: 86px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FFE58A, #FFC531 70%, #F0A500);
  box-shadow: 0 12px 22px -10px rgba(240, 165, 0, .7), inset 0 -4px 8px rgba(200, 120, 0, .3);
}
.lb-face svg { width: 100%; height: 100%; }
.lb-face .happy { opacity: 0; }
.lb-face.is-love { animation: lb-jelly .6s; }
.lb-face.is-love .eyes { opacity: 0; }
.lb-face.is-love .happy { opacity: 1; }
.lb-face-label { margin-top: 10px; font-size: 12.5px; color: var(--ns-muted); text-align: center; }

/* ---------------- D · 状态反馈 ---------------- */
/* 31 复制 */
.lb-copy { gap: 12px; padding: 0 9px 0 16px; background: #14151C; color: #D8DBEA; font: 500 14px 'JetBrains Mono', ui-monospace, monospace; box-shadow: 0 0 0 1px #2A2C39; }
.lb-copy code::before { content: "$ "; color: #5C6080; }
.lb-copy__ic { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #23252F; }
.lb-copy__ic svg { position: absolute; width: 16px; height: 16px; transition: transform .35s var(--ns-spring), opacity .2s; }
.lb-copy .ok { opacity: 0; transform: scale(.3) rotate(-45deg); color: #5CFF9D; }
.lb-copy.is-on .cp { opacity: 0; transform: scale(.3) rotate(45deg); }
.lb-copy.is-on .ok { opacity: 1; transform: none; }
.lb-copy::after {
  content: "已复制!"; position: absolute; right: 0; bottom: calc(100% + 8px); padding: 5px 9px; border-radius: 7px; pointer-events: none;
  background: #5CFF9D; color: #0D1410; font: 700 12px var(--ns-font); opacity: 0; transform: translateY(4px) scale(.9); transition: .3s var(--ns-spring);
}
.lb-copy.is-on::after { opacity: 1; transform: none; }

/* 通用图标按钮 */
.lb-icon {
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 16px; display: grid; place-items: center; cursor: pointer;
  background: var(--ns-surface); color: var(--ns-ink); box-shadow: 0 0 0 1.5px var(--ns-line); transition: transform .25s var(--ns-spring), color .2s, box-shadow .2s;
}
.lb-icon svg { width: 24px; height: 24px; overflow: visible; }
.lb-icon:active { transform: scale(.88); }

/* 32 书签 */
.lb-bm path { fill: transparent; transition: fill .25s; }
.lb-bm.is-on { color: var(--ns-amber); box-shadow: 0 0 0 1.5px var(--ns-amber); }
.lb-bm.is-on path { fill: currentColor; }
.lb-bm.is-on svg { animation: lb-ribbon .5s var(--ns-spring); }
@keyframes lb-ribbon { 0% { transform: translateY(-8px) scaleY(1.3); } 60% { transform: translateY(2px) scaleY(.9); } }

/* 33 关注 */
.lb-follow {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 7px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ns-accent); color: #fff; font: 600 14px var(--ns-font); transition: background .25s, color .25s, box-shadow .25s;
}
.lb-follow__av { position: relative; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #FFD3A5, #FD6585); transition: transform .6s var(--ns-spring); }
.lb-follow__av::before { content: "设"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 14px var(--ns-font); }
.lb-follow__av::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ns-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 0 2px var(--ns-surface); transform: scale(0); transition: transform .35s var(--ns-spring);
}
.lb-follow__t { display: grid; text-align: left; }
.lb-follow__t span { grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ns-spring); }
.lb-follow__t .b, .lb-follow__t .c { opacity: 0; transform: translateY(8px); }
.lb-follow.is-on { background: var(--ns-surface); color: var(--ns-ink); box-shadow: inset 0 0 0 1.5px var(--ns-line); }
.lb-follow.is-on .lb-follow__av { transform: rotateY(360deg); }
.lb-follow.is-on .lb-follow__av::after { transform: scale(1); }
.lb-follow.is-on .a { opacity: 0; transform: translateY(-8px); }
.lb-follow.is-on .b { opacity: 1; transform: none; }
.lb-follow.is-on:hover { box-shadow: inset 0 0 0 1.5px var(--ns-pink); color: var(--ns-pink); }
.lb-follow.is-on:hover .b { opacity: 0; transform: translateY(-8px); }
.lb-follow.is-on:hover .c { opacity: 1; transform: none; }

/* 34 二段删除 */
.lb-del { position: relative; display: inline-flex; align-items: center; height: 48px; }
.lb-del__main {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: #FFE4EA; color: #E0244B; font: 600 15px var(--ns-font); transition: padding .35s var(--ns-spring), background .25s, color .25s;
}
:root[data-theme="dark"] .lb-del__main { background: rgba(255, 94, 126, .14); color: #FF8099; }
.lb-del__main svg { width: 20px; height: 20px; overflow: visible; }
.lb-del__main .lid { transform-origin: 4px 6px; transition: transform .35s var(--ns-spring); }
.lb-del__label { max-width: 60px; overflow: hidden; transition: max-width .3s, opacity .2s; }
.lb-del.is-ask .lb-del__main { padding: 0 14px; background: #E0244B; color: #fff; }
.lb-del.is-ask .lid { transform: rotate(-28deg) translateY(-1px); }
.lb-del.is-ask .lb-del__label { max-width: 0; opacity: 0; }
.lb-del__confirm { display: flex; align-items: center; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .4s var(--ns-ease), opacity .25s, margin .3s; }
.lb-del.is-ask .lb-del__confirm { max-width: 220px; opacity: 1; margin-left: 8px; }
.lb-del__confirm span { font: 600 14px var(--ns-font); color: var(--ns-ink); white-space: nowrap; }
.lb-del__confirm button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 11px; cursor: pointer; display: grid; place-items: center; font: 700 16px var(--ns-font); }
.lb-del__confirm .yes { background: #E0244B; color: #fff; }
.lb-del__confirm .no { background: var(--ns-sunken); color: var(--ns-ink); }
.lb-del.is-done .lb-del__main { animation: ns-shake .4s; }

/* 35 环形进度 */
.lb-ring { position: relative; width: 74px; height: 74px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--ns-surface); color: var(--ns-ink); box-shadow: 0 10px 22px -12px rgba(20, 20, 60, .4); font: 700 13px var(--ns-font); }
.lb-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lb-ring circle { fill: none; stroke-width: 5; }
.lb-ring .bg { stroke: var(--ns-sunken); }
.lb-ring .fg { stroke: var(--ns-accent); stroke-linecap: round; stroke-dasharray: 100px; stroke-dashoffset: calc((100 - var(--p, 0)) * 1px); transition: stroke-dashoffset .15s linear, stroke .3s; }
.lb-ring.is-done .fg { stroke: var(--ns-green); }
.lb-ring__t { position: relative; display: grid; place-items: center; }
.lb-ring__t svg { position: static; width: 24px; height: 24px; transform: none; color: var(--ns-green); animation: ns-pop .4s var(--ns-spring); }

/* 36 倒计时 */
.lb-cd { min-width: 172px; overflow: hidden; background: var(--ns-ink); color: var(--ns-bg); font-variant-numeric: tabular-nums; }
.lb-cd::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 1%); background: var(--ns-lime); transition: width 1s linear; }
.lb-cd.is-reset::after { transition: none; }
.lb-cd:disabled { cursor: progress; opacity: .9; }

/* 37 播放 */
.lb-play { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 9px; border: 0; border-radius: 999px; cursor: pointer; background: var(--ns-surface); color: var(--ns-ink); box-shadow: 0 0 0 1.5px var(--ns-line); font: 600 14px var(--ns-font); text-align: left; }
.lb-play__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ns-accent); color: #fff; transition: transform .3s var(--ns-spring); }
.lb-play:active .lb-play__ic { transform: scale(.88); }
.lb-play__ic svg { width: 20px; height: 20px; fill: currentColor; }
.lb-play path { transition: d .35s var(--ns-spring); }
.lb-play .l { d: path("M7 5L12.5 8.5L12.5 15.5L7 19Z"); }
.lb-play .r { d: path("M12.5 8.5L18 12L18 12L12.5 15.5Z"); }
.lb-play.is-on .l { d: path("M6.5 5L10.5 5L10.5 19L6.5 19Z"); }
.lb-play.is-on .r { d: path("M13.5 5L17.5 5L17.5 19L13.5 19Z"); }
.lb-play__meta { display: flex; flex-direction: column; gap: 3px; }
.lb-play__meta small { font-weight: 500; font-size: 11.5px; color: var(--ns-muted); }
.lb-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.lb-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--ns-accent); }
.lb-play.is-on .lb-eq i { animation: lb-eq .7s ease-in-out infinite alternate; }
.lb-eq i:nth-child(2) { animation-delay: -.3s !important; }
.lb-eq i:nth-child(3) { animation-delay: -.5s !important; }
.lb-eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes lb-eq { to { height: 16px; } }

/* 38 麦克风 */
.lb-mic-wrap { display: flex; align-items: center; gap: 14px; }
.lb-mic { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--ns-surface); color: var(--ns-ink); box-shadow: 0 0 0 1.5px var(--ns-line); transition: background .25s, color .25s, box-shadow .25s; }
.lb-mic svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.lb-mic::before, .lb-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #FF4D6A; opacity: 0; }
.lb-mic.is-on { background: #FF4D6A; color: #fff; box-shadow: none; }
.lb-mic.is-on::before { animation: lb-pulse 1.4s ease-out infinite; }
.lb-mic.is-on::after { animation: lb-pulse 1.4s ease-out .7s infinite; }
@keyframes lb-pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.8); opacity: 0; } }
.lb-lv { display: flex; align-items: center; gap: 3px; height: 28px; }
.lb-lv i { width: 4px; height: 4px; border-radius: 2px; background: #FF4D6A; transition: height .1s; }
.lb-mic-t { font-size: 12.5px; color: var(--ns-muted); }

/* 39 锁 */
.lb-lock { --kh: var(--ns-ink); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 13px; border: 0; border-radius: 14px; cursor: pointer; background: var(--ns-ink); color: var(--ns-bg); font: 600 14px var(--ns-font); transition: background .3s, color .3s; }
.lb-lock svg { width: 22px; height: 22px; overflow: visible; }
.lb-lock .shackle { transform-origin: 16px 10px; transition: transform .45s var(--ns-spring); }
.lb-lock .t-on { display: none; }
.lb-lock.is-on { --kh: var(--ns-green); background: var(--ns-green); color: #fff; }
.lb-lock.is-on .shackle { transform: translateY(-2px) rotate(32deg); }
.lb-lock.is-on .t-on { display: inline; }
.lb-lock.is-on .t-off { display: none; }

/* 40 注水上传 */
.lb-up { --p: 0; position: relative; width: 176px; height: 52px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; isolation: isolate; cursor: pointer; background: var(--ns-sunken); color: var(--ns-ink); font: 600 14px var(--ns-font); transition: background .3s, color .3s; }
.lb-up__water {
  position: absolute; left: 50%; z-index: -1; width: 300px; height: 300px; margin-left: -150px; top: calc(100% - var(--p) * 1% - 6px);
  border-radius: 42%; background: linear-gradient(var(--ns-accent), var(--ns-accent-2)); animation: ns-rotate 3.5s linear infinite; transition: top .2s linear, opacity .3s;
}
.lb-up[data-state="idle"] .lb-up__water, .lb-up[data-state="done"] .lb-up__water { opacity: 0; }
.lb-up__t { position: relative; z-index: 1; font-variant-numeric: tabular-nums; transition: color .2s; }
.lb-up.is-high .lb-up__t { color: #fff; }
.lb-up[data-state="done"] { background: var(--ns-green); color: #fff; }

/* ---------------- E · 玩心大发 ---------------- */
/* 41 逃跑按钮 */
.lb-run-area { position: relative; width: 100%; max-width: 300px; height: 150px; border-radius: 16px; background: repeating-linear-gradient(45deg, var(--ns-sunken) 0 10px, transparent 10px 20px); box-shadow: inset 0 0 0 1px var(--ns-line); }
.lb-run { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: linear-gradient(135deg, #FFB443, #FF6B3D); transition: left .35s var(--ns-spring), top .35s var(--ns-spring), background .3s, transform .25s var(--ns-spring); }
.lb-run.is-tired { background: var(--ns-green); }

/* 42 别按我 */
.lb-nope { background: #E5E7EB; color: #374151; transition: transform .35s var(--ns-spring), background .3s, color .3s; }
.lb-nope.is-shake { animation: ns-shake .4s; }

/* 43 骰子 */
.lb-dice { width: 84px; height: 84px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 500px; }
.lb-dice__view, .lb-dice__cube { display: block; }
.lb-dice__view { width: 56px; height: 56px; margin: 14px; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(-25deg); }
.lb-dice__cube { position: relative; width: 56px; height: 56px; transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.2, .8, .25, 1); }
.lb-dice__f { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; border-radius: 11px; background: #FFFDF6; box-shadow: inset 0 0 0 1px #E1DCCD, inset 0 -5px 8px rgba(0, 0, 0, .08); }
.lb-dice__f i { width: 10px; height: 10px; place-self: center; border-radius: 50%; background: #22242F; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .5); }
.lb-dice__f.one i { width: 15px; height: 15px; background: #E8443A; }
.lb-dice-label { margin-top: 6px; font-size: 12.5px; color: var(--ns-muted); text-align: center; }

/* 44 转盘 */
.lb-spin { position: relative; width: 184px; height: 184px; }
.lb-spin__wheel {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#FF5E7E 0 60deg, #FFB443 0 120deg, #8BC34A 0 180deg, #3FD0FF 0 240deg, #5B4BFF 0 300deg, #B07CFF 0 360deg);
  box-shadow: 0 0 0 6px var(--ns-surface), 0 0 0 8px var(--ns-line), 0 18px 30px -14px rgba(0, 0, 0, .5);
  transition: transform 4.2s cubic-bezier(.15, .85, .2, 1);
}
.lb-spin__wheel span { position: absolute; left: 50%; top: 50%; font: 700 11.5px var(--ns-font); color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-58px); }
.lb-spin__ptr { position: absolute; top: -12px; left: 50%; z-index: 2; width: 22px; height: 26px; margin-left: -11px; background: var(--ns-ink); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; }
.lb-spin__go { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px; border: 0; border-radius: 50%; cursor: pointer; background: var(--ns-surface); color: var(--ns-ink); font: 800 15px var(--ns-font); box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 0 0 3px var(--ns-line); transition: transform .25s var(--ns-spring); }
.lb-spin__go:active { transform: scale(.9); }

/* 45 硬币 */
.lb-coin { position: relative; width: 82px; height: 82px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.lb-coin__in { position: absolute; inset: 0; transform-style: preserve-3d; }
.lb-coin__f {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  font: 800 26px var(--ns-font); color: #8A5A00; text-shadow: 0 1px 0 #FFF3C4;
  background: radial-gradient(circle at 35% 30%, #FFF1B8, #F5C542 45%, #C98A0B 80%); box-shadow: inset 0 0 0 4px #E0A920, inset 0 0 0 6px #FFE38A, 0 8px 16px -8px rgba(150, 100, 0, .6);
}
.lb-coin__f.back { transform: rotateX(180deg); }
.lb-coin-t { margin-top: 8px; font-size: 12.5px; color: var(--ns-muted); text-align: center; font-variant-numeric: tabular-nums; }

/* 46 扭蛋机 */
.lb-gacha { position: relative; width: 150px; height: 214px; }
.lb-gacha__dome {
  position: absolute; left: 15px; top: 0; width: 120px; height: 112px; overflow: hidden; border-radius: 60px 60px 14px 14px;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .12) 40%), rgba(190, 225, 255, .25);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), inset 0 -6px 12px rgba(0, 0, 0, .08), 0 0 0 1px var(--ns-line);
}
.lb-gacha__dome i { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(var(--c) 50%, #F5F6FA 50%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .15); }
.lb-gacha__dome.is-shake i { animation: lb-jig .22s 3; }
@keyframes lb-jig { 50% { translate: 0 -7px; } }
.lb-gacha__body { position: absolute; left: 10px; top: 106px; width: 130px; height: 86px; border-radius: 12px 12px 18px 18px; background: linear-gradient(#FF5E7E, #E0244B); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 12px 20px -12px rgba(224, 36, 75, .7); }
.lb-gacha__body::after { content: "NEOSW"; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 9px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .3em; color: rgba(255, 255, 255, .75); }
.lb-gacha__knob { position: absolute; left: 22px; top: 122px; z-index: 1; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle, #fff 0 30%, #ECEEF3 31%); box-shadow: 0 3px 6px rgba(0, 0, 0, .3); transition: transform .8s var(--ns-spring); }
.lb-gacha__knob::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 9px; margin-top: -4.5px; border-radius: 5px; background: #C9CCD9; }
.lb-gacha__tray { position: absolute; right: 18px; top: 124px; z-index: 1; width: 54px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #3A0E1A; box-shadow: inset 0 4px 8px rgba(0, 0, 0, .6); }
.lb-cap { position: relative; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; animation: lb-capin .55s var(--ns-spring), lb-wiggle 1.3s 1s ease-in-out infinite; }
.lb-cap.is-open { animation: none; }
@keyframes lb-capin { from { transform: translateY(-26px) scale(.4); opacity: 0; } }
@keyframes lb-wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -14deg; } 90% { rotate: 10deg; } 95% { rotate: -5deg; } }
.lb-cap .t, .lb-cap .b { position: absolute; left: 0; right: 0; height: 50%; }
.lb-cap .t { top: 0; border-radius: 17px 17px 0 0; background: var(--c); transition: transform .5s var(--ns-spring); }
.lb-cap .b { bottom: 0; border-radius: 0 0 17px 17px; background: #F5F6FA; box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .12); }
.lb-cap.is-open .t { transform: translate(-8px, -18px) rotate(-38deg); }
.lb-gacha__prize { position: absolute; left: 50%; bottom: -4px; z-index: 3; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; background: var(--ns-ink); color: var(--ns-bg); font: 600 12px var(--ns-font); opacity: 0; transform: translate(-50%, 8px); transition: .35s var(--ns-spring); }
.lb-gacha__prize.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 47 猫爪 */
.lb-cat { position: relative; width: 230px; height: 140px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--ns-amber) 16%, transparent)); }
.lb-cat .lb-btn { background: #F4A259; color: #5A2E00; }
.lb-cat__paw { position: absolute; right: 34px; bottom: -84px; z-index: 2; width: 56px; height: 84px; pointer-events: none; transition: transform .45s var(--ns-spring); }
.lb-cat:hover .lb-cat__paw, .lb-cat:focus-within .lb-cat__paw { transform: translateY(-52px) rotate(-14deg); animation: lb-pat .7s .35s ease-in-out infinite; }
.lb-cat:hover .lb-btn { animation: lb-patted .7s .35s ease-in-out infinite; }
.lb-cat.is-hi .lb-cat__paw { animation: lb-hi .8s var(--ns-spring); }
@keyframes lb-pat { 0%, 100% { transform: translateY(-52px) rotate(-14deg); } 50% { transform: translateY(-43px) rotate(-22deg); } }
@keyframes lb-patted { 50% { transform: translateY(2px) rotate(-1.5deg); } }
@keyframes lb-hi { 0% { transform: translateY(-52px) rotate(-14deg); } 40% { transform: translateY(-84px) rotate(-32deg) scale(1.08); } 100% { transform: translateY(-52px) rotate(-14deg); } }

/* 48 灵感灯泡 */
.lb-idea { padding: 0 22px 0 14px; background: var(--ns-ink); color: var(--ns-bg); }
.lb-idea__bulb { position: relative; display: inline-grid; width: 24px; height: 24px; }
.lb-idea__bulb svg { position: relative; z-index: 1; width: 24px; height: 24px; }
.lb-idea__bulb .glass { fill: transparent; transition: fill .2s; }
.lb-idea.is-on .glass { fill: #FFD43B; }
.lb-idea.is-on .lb-idea__bulb svg { filter: drop-shadow(0 0 6px #FFD43B); }
.lb-idea__bulb::before {
  content: ""; position: absolute; inset: -11px; border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ns-spring);
  background: repeating-conic-gradient(#FFD43B 0 8deg, transparent 8deg 45deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54% 72%, transparent 74%); mask: radial-gradient(circle, transparent 52%, #000 54% 72%, transparent 74%);
}
.lb-idea.is-on .lb-idea__bulb::before { opacity: 1; transform: scale(1); animation: ns-rotate 6s linear infinite; }

/* 49 心电图 */
.lb-ecg {
  display: flex; align-items: center; gap: 10px; height: 66px; padding: 0 16px 0 8px; border: 0; border-radius: 16px; cursor: pointer;
  background: #071410; color: #4AFF9F; box-shadow: inset 0 0 0 1px #12352A; user-select: none; touch-action: none; -webkit-touch-callout: none; transition: box-shadow .3s;
}
.lb-ecg canvas { display: block; width: 150px; height: 48px; border-radius: 8px; }
.lb-ecg.is-hold { box-shadow: inset 0 0 0 1px #4AFF9F, 0 0 26px -6px #4AFF9F; }
.lb-ecg__r { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1; }
.lb-ecg__heart { display: inline-block; color: #FF4D6A; font-size: 14px; }
.lb-ecg__heart.is-beat { animation: lb-beat .25s; }
@keyframes lb-beat { 40% { transform: scale(1.4); } }
.lb-ecg__bpm { margin-top: 3px; font: 700 20px 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.lb-ecg small { margin-top: 3px; font: 600 9px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; opacity: .7; }

/* 50 蓄力冲击 */
.lb-charge {
  --lb-c: 0; min-width: 164px; overflow: hidden; touch-action: none; -webkit-touch-callout: none;
  background: hsl(calc(225 - var(--lb-c) * 205) 90% calc(58% + var(--lb-c) * 8%));
  box-shadow: 0 0 calc(var(--lb-c) * 36px) hsl(calc(225 - var(--lb-c) * 205) 100% 60%), 0 10px 20px -10px rgba(0, 0, 0, .4);
  font-variant-numeric: tabular-nums;
}
.lb-charge::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--lb-c) * 100%); background: rgba(255, 255, 255, .85); }
.lb-charge.is-charging { animation: lb-rattle .07s linear infinite; }
.lb-charge.is-cool { transition: --lb-c .5s var(--ns-ease), transform .25s; }
@keyframes lb-rattle { 25% { translate: calc(var(--lb-c) * 3px) calc(var(--lb-c) * -2px); } 75% { translate: calc(var(--lb-c) * -3px) calc(var(--lb-c) * 2px); } }
.lb-shock { border-radius: 50%; border: 3px solid #FFB443; box-shadow: 0 0 22px #FF7A00, inset 0 0 12px #FF7A00; }
.lb-quake { animation: ns-shake .35s; }

@media (prefers-reduced-motion: reduce) {
  .lb-blob, .lb-up__water, .lb-cap, .lb-idea__bulb::before { animation: none !important; }
}
