/* v6.2.16：幸运盲盒 · 补给站 */
.lbx-panel { position: fixed; top:0; left:0; right:0; bottom:0; z-index: 9600; display: flex; align-items: center; justify-content: center; }
.lbx-panel.hidden { display: none; }
.lbx-mask { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px); }
.lbx-card {
  position: relative; z-index: 1;
  width: min(580px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  background: linear-gradient(155deg, #fff8f1, #ffedd5);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: "PingFang SC", -apple-system, sans-serif;
  border: 4px solid #fbbf24;
}
.lbx-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}
.lbx-title { font-size: 20px; font-weight: 900; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.lbx-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.lbx-close:hover { background: rgba(255,255,255,0.5); transform: rotate(90deg); }
.lbx-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.lbx-hero {
  text-align: center; padding: 20px 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}
.lbx-hero-emoji {
  font-size: 72px;
  display: inline-block;
  transition: transform 0.4s;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}
.lbx-hero-desc {
  margin-top: 8px;
  font-size: 15px; font-weight: 700; color: #7c2d12;
  min-height: 22px;
}
.lbx-rewards-preview { margin-bottom: 14px; }
.lbx-preview-title {
  font-size: 13px; font-weight: 700; color: #7c2d12;
  margin-bottom: 8px;
}
.lbx-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lbx-preview-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  font-size: 12px;
}
.lbx-p-emoji { font-size: 18px; }
.lbx-p-name { flex: 1; font-weight: 600; color: #334155; }
.lbx-p-rate { font-size: 11px; color: #64748b; font-weight: 700; }
.lbx-log {
  max-height: 140px; overflow-y: auto;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 14px;
}
.lbx-log:empty { display: none; }
.lbx-log-line {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  animation: lbxSlideIn 0.3s ease;
}
.lbx-log-line:last-child { border-bottom: none; }
@keyframes lbxSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lbx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.lbx-btn {
  padding: 12px 8px;
  font-size: 13px; font-weight: 800;
  border: none; border-radius: 12px; cursor: pointer;
  transition: all 0.15s;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lbx-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.lbx-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.lbx-btn:not(:disabled):active { transform: translateY(0); }
.lbx-btn-free { background: linear-gradient(135deg, #22c55e, #16a34a); }
.lbx-btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.lbx-btn-triple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.lbx-hint {
  text-align: center; font-size: 12px; color: #92400e;
  padding: 8px 0;
}

/* v6.2.16：兴趣岛入口按钮 */
.mbr-lucky-fab {
  position: fixed;
  right: 14px; bottom: 72px;   /* 反馈按钮上方 */
  z-index: 800;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff; font-size: 26px;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
  display: flex; align-items: center; justify-content: center;
  animation: lbxPulse 2s ease-in-out infinite;
}
.mbr-lucky-fab:hover { transform: scale(1.1); }
.mbr-lucky-fab:active { transform: scale(0.95); }
@keyframes lbxPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 8px 32px rgba(236, 72, 153, 0.8), 0 0 20px rgba(168, 85, 247, 0.6); }
}
.mbr-lucky-fab .lbx-badge {
  position: absolute; top: -4px; right: -4px;
  padding: 2px 6px; font-size: 10px; font-weight: 800;
  background: #22c55e; color: #fff; border-radius: 10px;
  border: 2px solid #fff;
}

/* 三端适配 */
@media (max-width: 480px) {
  .lbx-card { width: calc(100vw - 16px); max-height: calc(100vh - 20px); border-radius: 18px; }
  .lbx-header { padding: 12px 16px; }
  .lbx-title { font-size: 17px; }
  .lbx-body { padding: 14px; }
  .lbx-hero-emoji { font-size: 56px; }
  .lbx-preview-grid { grid-template-columns: 1fr; }
  .lbx-actions { grid-template-columns: 1fr; }
  .lbx-btn { padding: 12px; }
  .mbr-lucky-fab {
    right: max(10px, env(safe-area-inset-right));
    /* v6.2.19：盲盒放在反馈按钮正上方，一起靠屏幕中部避让底部战斗按钮 */
    top: calc(50% - 56px);
    bottom: auto;
    width: 50px; height: 50px; font-size: 24px;
  }
}
@media (min-width: 481px) and (max-width: 1024px) {
  .mbr-lucky-fab {
    right: max(20px, env(safe-area-inset-right));
    top: calc(50% - 60px);
    bottom: auto;
  }
}
/* v6.2.19：任何触屏设备（含被识别为 pointer:coarse 的大屏）都避让底部战斗按钮 */
@media (hover: none) and (pointer: coarse) {
  .mbr-lucky-fab {
    right: max(10px, env(safe-area-inset-right));
    top: calc(50% - 60px);
    bottom: auto;
  }
}
