/* ═══════════════ 彩票面板 CSS ═══════════════ */
#lotteryPanel{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:9999;justify-content:center;align-items:center;flex-direction:column}
#lotteryPanel .lp-box{background:#fff;border-radius:16px;width:90%;max-width:420px;max-height:85vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,0.3)}
.lp-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eee;position:sticky;top:0;background:#fff;z-index:1;border-radius:16px 16px 0 0}
.lp-header h3{margin:0;font-size:18px}
.lp-close{background:none;border:none;font-size:24px;cursor:pointer;color:#999;padding:0 4px}
.lp-tabs{display:flex;border-bottom:1px solid #eee;position:sticky;top:52px;background:#fff;z-index:1}
.lp-tab{flex:1;text-align:center;padding:10px 4px;cursor:pointer;font-size:13px;color:#888;border-bottom:2px solid transparent;transition:all .2s;background:none;border-top:none;border-left:none;border-right:none}
.lp-tab.active{color:#e65100;border-bottom-color:#e65100;font-weight:700}
.lp-content{padding:16px}
.lp-price-row{display:flex;gap:8px;margin-bottom:14px}
.lp-price-btn{flex:1;padding:10px 6px;border:2px solid #e0e0e0;border-radius:10px;background:#fff;cursor:pointer;text-align:center;transition:all .2s;font-size:14px}
.lp-price-btn:hover{border-color:#e65100;color:#e65100}
.lp-price-btn.selected{background:#e65100;color:#fff;border-color:#e65100}
.lp-scratch-area{background:linear-gradient(135deg,#f5f5f5,#fff);border-radius:14px;padding:20px;text-align:center;min-height:140px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.lp-scratch-cells{display:flex;gap:12px;margin:16px 0}
.lp-scratch-cell{width:70px;height:70px;border-radius:12px;background:#ffd54f;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;cursor:pointer;transition:all .3s;box-shadow:0 3px 8px rgba(0,0,0,0.15);border:2px solid #ffb300}
.lp-scratch-cell.revealed{background:#fff;border-color:#e0e0e0;box-shadow:none;cursor:default}
.lp-result{font-size:20px;font-weight:700;margin-top:12px;padding:10px 24px;border-radius:8px}
.lp-result.win{background:#fff3e0;color:#e65100}
.lp-result.lose{background:#f5f5f5;color:#999}
.lp-num-grid{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin:10px 0}
.lp-num{width:34px;height:34px;border-radius:50%;border:1px solid #ddd;display:flex;align-items:center;justify-content:center;font-size:13px;cursor:pointer;transition:all .15s;background:#fff}
.lp-num:hover{background:#e3f2fd}
.lp-num.selected{background:#e65100;color:#fff;border-color:#e65100}
.lp-num.red{color:#d32f2f}
.lp-num.blue{color:#1976d2}
.lp-btn{width:100%;padding:12px;border:none;border-radius:10px;font-size:16px;font-weight:700;cursor:pointer;margin-top:12px;transition:all .2s}
.lp-btn.primary{background:#e65100;color:#fff}
.lp-btn.primary:hover{background:#bf360c}
.lp-btn.primary:disabled{background:#ccc;cursor:not-allowed}
.lp-history-item{padding:10px 12px;border-bottom:1px solid #f0f0f0;font-size:13px}
.lp-history-item .period{color:#888;font-size:11px}
.lp-ball{display:inline-block;width:28px;height:28px;border-radius:50%;text-align:center;line-height:28px;font-size:12px;font-weight:700;margin:2px}
.lp-ball.red{background:#d32f2f;color:#fff}
.lp-ball.blue{background:#1976d2;color:#fff}
#btnLottery{background:#ff8f00;color:#fff;border:none;border-radius:8px;padding:6px 12px;font-size:13px;cursor:pointer;margin-right:6px}
#btnLottery:hover{background:#e65100}

/* ── 刮刮乐单格 (新UI) ── */
.lp-scratch-single{width:160px;height:100px;border-radius:14px;background:linear-gradient(135deg,#ffd54f,#ffb300);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;box-shadow:0 4px 12px rgba(255,179,0,0.3);margin:12px 0;border:3px dashed #e65100}
.lp-scratch-single:hover{transform:scale(1.05);box-shadow:0 6px 16px rgba(255,179,0,0.4)}
.lp-scratch-single:active{transform:scale(0.98)}
.lp-scratch-cover{font-size:20px;font-weight:700;color:#5d4037;text-align:center;letter-spacing:2px;padding:0 10px}
.lp-scratch-cover.scratching{background:linear-gradient(135deg,#fff3e0,#ffe0b2);animation:pulse 0.5s ease-in-out infinite alternate}
@keyframes pulse{from{opacity:0.7}to{opacity:1}}

/* ── 刮刮乐Canvas ── */
.lp-scratch-canvas-wrap{display:flex;flex-direction:column;align-items:center;margin:12px 0}
.lp-scratch-canvas{border-radius:14px;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,0.12);touch-action:none;user-select:none;-webkit-user-select:none}

/* ═══════════════ 彩票大奖广播 toast（阈值 ¥2000）═══════════════ */
.bigwin-toast{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:99999;
  background:linear-gradient(135deg,#ffd700 0%,#ff8c00 50%,#ff6f00 100%);
  color:#fff;padding:18px 36px;border-radius:16px;
  box-shadow:0 12px 48px rgba(255,140,0,0.8),0 0 0 3px rgba(255,255,255,0.4) inset;
  display:flex;align-items:center;gap:14px;
  animation:bigwinIn 0.7s cubic-bezier(0.34,1.56,0.64,1),bigwinOut 0.8s 5.2s forwards;
  cursor:pointer;max-width:90vw;font-family:"Microsoft YaHei",sans-serif}
.bigwin-icon{font-size:42px;filter:drop-shadow(0 0 8px rgba(255,255,255,0.8));animation:bigwinSpin 2s linear infinite}
.bigwin-text{font-size:18px;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,0.3);line-height:1.4}
.bigwin-hint{font-size:11px;opacity:0.85;margin-top:4px;font-weight:400}
@keyframes bigwinIn{from{top:-150px;opacity:0;transform:translateX(-50%) scale(0.3)}to{top:90px;opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes bigwinOut{to{opacity:0;top:60px;transform:translateX(-50%) scale(0.8)}}
@keyframes bigwinSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

/* 撒花层 */
.bigwin-confetti{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:99998;
  font-size:32px;letter-spacing:18px;line-height:50px;word-break:break-all;overflow:hidden;
  text-align:center;padding:20px;opacity:0.85;
  animation:bigwinConfetti 4.5s ease-out forwards}
@keyframes bigwinConfetti{
  0%{opacity:0;transform:translateY(-30px) rotate(0deg)}
  10%{opacity:0.9}
  100%{opacity:0;transform:translateY(100vh) rotate(720deg)}
}
