/* 连环炮 (LianHuanPao) 翻牌机游戏样式 */

#lhpGameArea {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

.lhp-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1a237e, #283593);
  border-radius: 12px;
  margin-bottom: 12px;
  color: #fff;
  flex-wrap: wrap;
  gap: 8px;
}

.lhp-hud-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lhp-coin-display {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
}

.lhp-coin-display::before {
  content: '💰 ';
}

.lhp-pizi-display {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lhp-pizi-item {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  text-align: center;
}

.lhp-pizi-item .lhp-pizi-label {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}

.lhp-pizi-item .lhp-pizi-value {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #FFD700;
}

/* 卡牌区域 */
.lhp-cards-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px 10px;
  background: linear-gradient(180deg, #0d47a1, #1565c0);
  border-radius: 16px;
  margin-bottom: 12px;
  min-height: 180px;
  flex-wrap: wrap;
}

.lhp-card {
  width: 80px;
  height: 120px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: 3px solid transparent;
  user-select: none;
  position: relative;
  background-color: #fff;
  background-repeat: no-repeat;
}

.lhp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.lhp-card-kept {
  border-color: #4CAF50;
  transform: translateY(-12px);
  box-shadow: 0 8px 20px rgba(76,175,80,0.4);
}

.lhp-card-back {
  background: linear-gradient(135deg, #1a237e, #311b92);
  border: 2px solid #FFD700;
}

.lhp-card-pattern {
  font-size: 36px;
  color: rgba(255,215,0,0.5);
}

.lhp-card-rank {
  font-size: 28px;
  font-weight: bold;
}

.lhp-card-suit {
  font-size: 24px;
}

.lhp-card-red {
  color: #d32f2f;
}

.lhp-card-black {
  color: #212121;
}

.lhp-card-joker {
  font-size: 18px;
  font-weight: bold;
  color: #FF6F00;
  text-align: center;
}

/* 牌型显示 */
.lhp-hand-type {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 8px;
  min-height: 40px;
  color: #666;
}

.lhp-hand-type.lhp-win {
  color: #4CAF50;
  text-shadow: 0 0 10px rgba(76,175,80,0.3);
  animation: lhp-pulse 0.5s ease;
}

@keyframes lhp-pulse {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 控制面板 */
.lhp-controls {
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.lhp-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lhp-panel.active {
  display: flex;
}

/* 押注面板 */
.lhp-bet-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lhp-bet-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #FF9800;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

.lhp-bet-btn:hover {
  background: #F57C00;
}

.lhp-bet-amount {
  font-size: 28px;
  font-weight: bold;
  min-width: 80px;
  text-align: center;
  color: #FF6F00;
}

.lhp-action-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s;
}

.lhp-action-btn:hover {
  transform: scale(1.05);
}

.lhp-action-btn:active {
  transform: scale(0.98);
}

.lhp-secondary-btn {
  padding: 8px 20px;
  border: 2px solid #FF9800;
  border-radius: 8px;
  background: transparent;
  color: #FF9800;
  font-size: 14px;
  cursor: pointer;
}

.lhp-secondary-btn:hover {
  background: rgba(255,152,0,0.1);
}

/* 押大小面板 */
.lhp-double-info {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 16px;
}

.lhp-double-winnings {
  color: #4CAF50;
  font-weight: bold;
  font-size: 24px;
}

.lhp-double-card {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #ccc;
}

.lhp-double-buttons {
  display: flex;
  gap: 16px;
}

.lhp-guess-btn {
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.lhp-guess-big {
  background: linear-gradient(135deg, #d32f2f, #c62828);
}

.lhp-guess-small {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.lhp-guess-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* 连环炮指示器 */
.lhp-chain-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,111,0,0.2);
  border-radius: 20px;
  font-size: 14px;
  color: #FF6F00;
  font-weight: bold;
}

/* 通知 */
#lhpNotification {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  z-index: 9999;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* 响应式 */
@media (max-width: 600px) {
  .lhp-card {
    width: 60px;
    height: 90px;
  }
  .lhp-hud { font-size: 14px; }
  .lhp-cards-container { gap: 6px; padding: 20px 5px; }
}
