.lhc-fab{position:fixed;right:16px;bottom:100px;z-index:99999;width:48px;height:48px;border-radius:50%;background:#ff3b30;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.2);font-weight:700;cursor:pointer}
.lhc-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99998;display:none}
.lhc-panel{position:fixed;left:0;right:0;bottom:0;background:#fff;border-radius:12px 12px 0 0;z-index:99999;transform:translateY(100%);transition:transform .2s ease;max-height:80vh;display:flex;flex-direction:column;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}
.lhc-panel.show{transform:translateY(0)}.lhc-mask.show{display:block}
.lhc-hd{padding:12px 16px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}
.lhc-ttl{font-size:16px;font-weight:700}.lhc-close{font-size:18px;cursor:pointer}
.lhc-row{padding:12px 16px}.lhc-row+.lhc-row{border-top:1px solid #f5f5f5}
.lhc-balance{font-weight:700;color:#333}.lhc-btn{padding:6px 10px;border:1px solid #ddd;border-radius:6px;background:#fff;margin-right:8px;cursor:pointer}
.lhc-btn.primary{background:#1677ff;color:#fff;border-color:#1677ff}
.lhc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.lhc-chip{padding:6px 0;text-align:center;border:1px solid #ddd;border-radius:6px;cursor:pointer}
.lhc-chip.active{background:#1677ff;color:#fff;border-color:#1677ff}
.lhc-tabs{display:flex;gap:6px;flex-wrap:wrap}
.lhc-tab{padding:4px 8px;border:1px solid #ddd;border-radius:999px;cursor:pointer}
.lhc-tab.active{background:#1677ff;border-color:#1677ff;color:#fff}
.lhc-col2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lhc-footer{padding:12px 16px;border-top:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center}
.lhc-pending{max-height:160px;overflow:auto;border:1px solid #f0f0f0;border-radius:6px;padding:8px}
.lhc-small{color:#666;font-size:12px}
.lhc-multi{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.lhc-section-title{font-weight:700;color:#333;margin-bottom:6px}
.lhc-body{display:flex;min-height:360px}
.lhc-sider{width:92px;background:#f7f8fa;border-right:1px solid #f0f0f0;overflow:auto}
.lhc-main{flex:1;overflow:auto}
.lhc-nav-item{padding:10px 8px;text-align:center;border-bottom:1px solid #f0f0f0;cursor:pointer;color:#444}
.lhc-nav-item.active{background:#fff;color:#1677ff;font-weight:700}
.lhc-chip.lhc-ball{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;color:#111;border:2px solid #d9d9d9;box-shadow:inset 0 -2px 0 rgba(0,0,0,.05);font-weight:700}
.lhc-chip.lhc-ball.red{border-color:#ff4d4f;color:#ff4d4f}
.lhc-chip.lhc-ball.blue{border-color:#1677ff;color:#1677ff}
.lhc-chip.lhc-ball.green{border-color:#3cb371;color:#3cb371}
.lhc-chip.lhc-ball.active{background:currentColor;color:#fff}
.lhc-grid .lhc-cell{display:flex;flex-direction:column;align-items:center;gap:4px}
.lhc-legend{font-size:10px;color:#999}
.lhc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lhc-card{background:#f6f6f6;border:1px solid #eee;border-radius:8px;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;height:64px;cursor:pointer}
.lhc-card.active{border-color:#1677ff;box-shadow:0 0 0 1px #1677ff inset}
.lhc-card .lhc-name{color:#111;font-size:14px}
.lhc-card .lhc-odds{color:#848484;font-size:12px;margin-top:4px}

/* Ball background images (provide images under /assets/...) */
.lhc-ball-img{width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.bg-ball-red{background-image:url('/assets/ball-red-58b0d04e.png');background-repeat:no-repeat;background-size:100% 100%}
.bg-ball-blue{background-image:url('/assets/ball-blue-e97bbb67.png');background-repeat:no-repeat;background-size:100% 100%}
.bg-ball-green{background-image:url('/assets/ball-green-dad2b099.png');background-repeat:no-repeat;background-size:100% 100%}
.lhc-ball-img.active{outline:2px solid #1677ff;border-radius:50%}

/* Action bar (bet panel) */
.lhc-actionbar{position:sticky;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #eee;padding:10px 12px;z-index:2}
.lhc-ab-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lhc-chip-round{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}
.lhc-chip-round.purple{background:#7c4dff}
.lhc-chip-round.blue{background:#1677ff}
.lhc-chip-round.red{background:#ff4d4f}
.lhc-chip-round.orange{background:#fa8c16}
.lhc-chip-round.green{background:#52c41a}
.lhc-ab-spacer{flex:1}
.lhc-ab-input{flex:0 0 140px;border:1px solid #ddd;border-radius:6px;padding:6px 8px}
.lhc-ab-ok{padding:8px 14px;border-radius:8px;background:#1677ff;color:#fff;border:0}
.lhc-ab-small{font-size:12px;color:#888}

