/* ====== 骗子酒馆 样式 ====== */
.lb-view { display: none; flex-direction: column; height: 100%; width: 100%; }
.lb-view.active { display: flex; }

.lb-wood-bg {
  background:
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,0.03) 40px, rgba(0,0,0,0.03) 41px),
    repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(255,255,255,0.01) 8px, rgba(255,255,255,0.01) 9px),
    linear-gradient(160deg, #2d1a08 0%, #1e1206 50%, #2a1708 100%);
}

.lb-top-bar { display: flex; align-items: center; padding: 10px 20px; padding-top: calc(var(--st-h) + 10px); background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,200,100,0.1); flex-shrink: 0; }
.lb-back-btn { font-size: 22px; cursor: pointer; margin-right: 12px; color: #c8a96e; }
.lb-title { font-size: 18px; font-weight: 700; color: #e8c87a; flex: 1; text-shadow: 0 0 20px rgba(232,200,122,0.5); }
.lb-rule-btn { font-size: 12px; color: #a07840; background: rgba(255,200,100,0.1); border: 1px solid rgba(255,200,100,0.2); border-radius: 10px; padding: 4px 10px; cursor: pointer; }

.lb-setup-content { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px; overflow-y: auto; }
.lb-setup-logo { width: 100px; height: 100px; margin-bottom: 6px; }
.lb-setup-subtitle { font-size: 13px; color: #7a5a30; margin-bottom: 28px; text-align: center; line-height: 1.6; }
.lb-setup-section-title { font-size: 13px; font-weight: 600; color: #a07840; align-self: flex-start; margin-bottom: 10px; letter-spacing: 1px; }

.lb-player-count-row { display: flex; gap: 10px; margin-bottom: 24px; width: 100%; }
.lb-count-btn { flex: 1; height: 60px; border-radius: 14px; border: 1px solid rgba(255,200,100,0.15); background: rgba(255,200,100,0.05); font-size: 14px; font-weight: 600; color: #7a5a30; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all 0.2s; }
.lb-count-btn .lb-count-num { font-size: 20px; }
.lb-count-btn.selected { border-color: #c8a96e; background: rgba(200,169,110,0.15); color: #e8c87a; box-shadow: 0 0 12px rgba(200,169,110,0.2); }

.lb-char-select-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; width: 100%; margin-bottom: 24px; }
.lb-char-card { border-radius: 12px; border: 1px solid rgba(255,200,100,0.1); background: rgba(255,200,100,0.04); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: all 0.2s; position: relative; }
.lb-char-card .lb-char-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 2px solid transparent; overflow: hidden; background: var(--gl); }
.lb-char-card .lb-char-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-char-card .lb-char-name { font-size: 11px; font-weight: 600; color: #a07840; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lb-char-card .lb-char-tag { font-size: 9px; color: #5a3a10; }
.lb-char-card.selected { border-color: #c8a96e; background: rgba(200,169,110,0.12); }
.lb-char-card.selected .lb-char-avatar { border-color: #c8a96e; }
.lb-char-card .lb-check-badge { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; background: #c8a96e; border-radius: 50%; display: none; align-items: center; justify-content: center; color: #1e1206; font-size: 9px; font-weight: 700; }
.lb-char-card.selected .lb-check-badge { display: flex; }

.lb-start-game-btn { width: 100%; height: 50px; background: linear-gradient(135deg,#c8a96e,#a07840); border: none; border-radius: 14px; color: #1e1206; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 20px rgba(200,169,110,0.3); transition: transform 0.15s; letter-spacing: 1px; }
.lb-start-game-btn:active { transform: scale(0.97); }
.lb-start-game-btn:disabled { background: rgba(255,200,100,0.1); color: #5a3a10; box-shadow: none; cursor: not-allowed; }

.lb-game-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 10px 14px; gap: 8px; }

.lb-seats-area { display: flex; justify-content: space-around; align-items: flex-start; gap: 6px; padding: 4px 0; }
.lb-seat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; transition: opacity 0.5s; }
.lb-seat.dead { opacity: 0.3; }
.lb-seat-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; border: 2px solid transparent; transition: all 0.3s; overflow: hidden; background: var(--gl); }
.lb-seat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-seat-avatar.active-turn { border-color: #e8c87a; box-shadow: 0 0 12px rgba(232,200,122,0.5); }
.lb-seat-avatar.dead-avatar { filter: grayscale(1); }
.lb-seat-name { font-size: 10px; font-weight: 600; color: #a07840; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.lb-seat-status { font-size: 9px; color: #5a3a10; }

.lb-gun-display { display: flex; gap: 3px; margin-top: 2px; }
.lb-bullet-slot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #5a3a10; background: transparent; transition: all 0.3s; }
.lb-bullet-slot.loaded { background: #c8a96e; border-color: #e8c87a; }
.lb-bullet-slot.fired { background: #3a2010; border-color: #3a2010; }

.lb-seat-bubble { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: rgba(30,18,6,0.95); border: 1px solid rgba(200,169,110,0.3); color: #c8a96e; font-size: 10px; padding: 5px 8px; border-radius: 10px; z-index: 10; opacity: 0; transition: opacity 0.3s; pointer-events: none; max-width: 110px; text-align: center; line-height: 1.4; }
.lb-seat-bubble.show { opacity: 1; }
.lb-seat-bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: rgba(200,169,110,0.3); border-bottom: none; }

.lb-table-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; }
.lb-table-surface { width: 100%; background: radial-gradient(ellipse at center,#2d1a08 0%,#1a0e04 100%); border-radius: 20px; border: 2px solid rgba(200,169,110,0.15); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: inset 0 2px 20px rgba(0,0,0,0.5); }

.lb-target-card-area { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lb-target-label { font-size: 11px; color: #7a5a30; letter-spacing: 2px; text-transform: uppercase; }
.lb-target-card { width: 60px; height: 84px; border-radius: 10px; background: linear-gradient(135deg,#2a1708,#1e1206); border: 2px solid #c8a96e; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #e8c87a; box-shadow: 0 0 20px rgba(200,169,110,0.3),inset 0 0 10px rgba(200,169,110,0.05); text-shadow: 0 0 10px rgba(232,200,122,0.8); font-style: italic; }

.lb-pile-cards { display: flex; position: relative; width: 60px; height: 84px; }
.lb-pile-card-back { position: absolute; width: 50px; height: 70px; border-radius: 8px; background: linear-gradient(135deg,#2a1708,#1e1206); border: 1px solid rgba(200,169,110,0.2); box-shadow: 1px 1px 4px rgba(0,0,0,0.4); }
.lb-pile-card-back:nth-child(1) { top:0; left:0; }
.lb-pile-card-back:nth-child(2) { top:4px; left:4px; }
.lb-pile-card-back:nth-child(3) { top:8px; left:8px; }
.lb-pile-count { font-size: 11px; color: #7a5a30; text-align: center; }

.lb-last-play-info { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 8px 14px; text-align: center; border: 1px solid rgba(200,169,110,0.1); min-width: 180px; }
.lb-last-play-text { font-size: 12px; color: #a07840; line-height: 1.6; }
.lb-last-play-text strong { color: #e8c87a; }

.lb-challenge-btn { background: linear-gradient(135deg,#8b2020,#5a1010); border: 1px solid #c83030; border-radius: 12px; color: #ffaaaa; font-size: 14px; font-weight: 700; padding: 8px 20px; cursor: pointer; box-shadow: 0 0 12px rgba(200,50,50,0.3); transition: all 0.15s; letter-spacing: 1px; }
.lb-challenge-btn:active { transform: scale(0.95); }
.lb-challenge-btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }

.lb-player-hand-area { background: rgba(0,0,0,0.3); border-radius: 16px 16px 0 0; padding: 10px 0 14px; border-top: 1px solid rgba(200,169,110,0.1); flex-shrink: 0; }
.lb-hand-label { font-size: 10px; color: #7a5a30; font-weight: 500; padding: 0 14px; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.lb-hand-cards-row { display: flex; gap: 6px; padding: 4px 14px 0; overflow-x: auto; scrollbar-width: none; }
.lb-hand-cards-row::-webkit-scrollbar { display: none; }

.lb-liar-card { width: 52px; height: 72px; border-radius: 8px; background: linear-gradient(135deg,#f5f0e8,#e8dfc8); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #1a1008; cursor: pointer; transition: all 0.2s; flex-shrink: 0; position:  relative; box-shadow: 0 3px 8px rgba(0,0,0,0.3); font-style: italic; user-select: none; }
.lb-liar-card:hover { transform: translateY(-6px); }
.lb-liar-card.selected { border-color: #e8c87a; transform: translateY(-10px); box-shadow: 0 8px 16px rgba(200,169,110,0.4); }
.lb-liar-card.joker { background: linear-gradient(135deg,#2a1a3a,#1a0a2a); color: #cc88ff; border-color: rgba(200,100,255,0.3); }
.lb-liar-card.joker.selected { border-color: #cc88ff; box-shadow: 0 8px 16px rgba(200,100,255,0.4); }
.lb-liar-card .lb-card-suit { position: absolute; font-size: 9px; color: #888; top: 4px; left: 5px; font-style: normal; }
.lb-liar-card.joker .lb-card-suit { color: #9966cc; }

.lb-play-controls { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; }
.lb-selected-count-label { font-size: 11px; color: #7a5a30; flex: 1; }
.lb-play-btn { background: linear-gradient(135deg,#c8a96e,#a07840); border: none; border-radius: 10px; color: #1e1206; font-size: 13px; font-weight: 800; padding: 8px 16px; cursor: pointer; transition: transform 0.15s; }
.lb-play-btn:active { transform: scale(0.95); }
.lb-play-btn:disabled { background: rgba(200,169,110,0.15); color: #5a3a10; cursor: not-allowed; }

.lb-spectate-banner { background: rgba(200,169,110,0.1); border: 1px solid rgba(200,169,110,0.2); border-radius: 10px; padding: 6px 12px; text-align: center; font-size: 11px; color: #a07840; display: none; }
.lb-spectate-banner.show { display: block; }

.lb-overlay { position: fixed; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 200; gap: 20px; }
.lb-overlay.show { display: flex; }

#lbGunOverlay { background: rgba(0,0,0,0.85); }
.lb-gun-overlay-name { font-size: 16px; color: #a07840; font-weight: 600; letter-spacing: 2px; }
.lb-gun-spinning-text { font-size: 13px; color: #7a5a30; letter-spacing: 3px; animation: lb-blink 0.5s infinite; }
@keyframes lb-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.lb-gun-result { font-size: 32px; font-weight: 900; opacity: 0; transition: opacity 0.5s; text-align: center; line-height: 1.4; }
.lb-gun-result.show { opacity: 1; }
.lb-gun-result.safe { color: #7acc77; }
.lb-gun-result.dead { color: #cc4444; }
.lb-gun-continue-btn { background: linear-gradient(135deg,#c8a96e,#a07840); border: none; border-radius: 12px; color: #1e1206; font-size: 14px; font-weight: 700; padding: 10px 28px; cursor: pointer; opacity: 0; transition: opacity 0.5s; margin-top: 8px; }
.lb-gun-continue-btn.show { opacity: 1; }

#lbRevealOverlay { background: rgba(0,0,0,0.8); z-index: 150; gap: 16px; }
.lb-reveal-title { font-size: 14px; color: #a07840; letter-spacing: 2px; font-weight: 600; }
.lb-reveal-cards-row { display: flex; gap: 10px; align-items: center; }
.lb-reveal-card { width: 70px; height: 98px; border-radius: 12px; background: linear-gradient(135deg,#f5f0e8,#e8dfc8); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; color: #1a1008; font-style: italic; box-shadow: 0 4px 16px rgba(0,0,0,0.4); animation: lb-flipIn 0.4s ease; }
.lb-reveal-card.joker { background: linear-gradient(135deg,#2a1a3a,#1a0a2a); color: #cc88ff; }
@keyframes lb-flipIn { from{transform:rotateY(90deg) scale(0.8);opacity:0} to{transform:rotateY(0deg) scale(1);opacity:1} }
.lb-reveal-verdict { font-size: 18px; font-weight: 800; padding: 8px 20px; border-radius: 12px; text-align: center; line-height: 1.5; }
.lb-reveal-verdict.liar { background: rgba(200,50,50,0.2); color: #ff8888; border: 1px solid rgba(200,50,50,0.3); }
.lb-reveal-verdict.honest { background: rgba(100,200,100,0.15); color: #88cc88; border: 1px solid rgba(100,200,100,0.2); }

#lbResultView { align-items: center; justify-content: center; }
.lb-result-content { display: flex; flex-direction: column; align-items: center; padding: 40px 28px; gap: 14px; width: 100%; }
.lb-result-emoji { font-size: 64px; animation: lb-bounceIn 0.6s ease; }
@keyframes lb-bounceIn { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }
.lb-result-title { font-size: 26px; font-weight: 900; color: #e8c87a; text-shadow: 0 0 20px rgba(232,200,122,0.5); }
.lb-result-subtitle { font-size: 14px; color: #7a5a30; text-align: center; }
.lb-result-rankings { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lb-rank-item { display: flex; align-items: center; gap: 12px; background: rgba(255,200,100,0.06); border: 1px solid rgba(200,169,110,0.12); border-radius: 12px; padding: 10px 14px; }
.lb-rank-num { font-size: 18px; font-weight: 900; color: #5a3a10; width: 24px; text-align: center; }
.lb-rank-num.gold { color: #e8c87a; }
.lb-rank-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; background: var(--gl); }
.lb-rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-rank-name { flex: 1; font-size: 14px; font-weight: 600; color: #a07840; }
.lb-rank-status { font-size: 11px; color: #5a3a10; }
.lb-result-btns { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.lb-result-btn { flex: 1; height: 48px; border-radius: 12px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.15s; }
.lb-result-btn:active { transform: scale(0.97); }
.lb-result-btn.primary { background: linear-gradient(135deg,#c8a96e,#a07840); color: #1e1206; }
.lb-result-btn.secondary { background: rgba(255,200,100,0.08); border: 1px solid rgba(200,169,110,0.2); color: #a07840; }

.lb-game-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(30,18,6,0.95); border: 1px solid rgba(200,169,110,0.3); color: #e8c87a; padding: 8px 18px; border-radius: 16px; font-size: 12px; font-weight: 500; z-index: 300; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.lb-game-toast.show { opacity: 1; }

@keyframes lb-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
.lb-shaking { animation: lb-shake 0.5s ease; }
