/* 连环夺宝 - 前端样式 */
.ct-container {
  max-width: 500px; margin: 0 auto; padding: 10px;
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565C0 100%);
  border-radius: 12px; min-height: 600px;
}
.ct-header { margin-bottom: 10px; }
.ct-info-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 8px 12px; background: rgba(0,0,0,0.3); border-radius: 8px;
  font-size: 13px; color: #fff;
}
.ct-main { display: flex; justify-content: center; align-items: center; min-height: 320px; }
.ct-grid-container { display: flex; justify-content: center; align-items: center; }
.ct-grid { display: grid; gap: 3px; padding: 8px; background: rgba(0,0,0,0.4); border-radius: 8px; }
.ct-cell {
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer; user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); font-weight: bold;
}
.ct-cell:hover { transform: scale(1.08); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.ct-cell.selected { transform: scale(1.12); box-shadow: 0 0 12px #fff, 0 0 20px #FFEB3B; outline: 2px solid #FFEB3B; }
.ct-bet-panel { text-align: center; padding: 20px; }
.ct-bet-panel h3 { color: #fff; margin-bottom: 15px; }
.ct-drill-select, .ct-bet-select { margin-bottom: 15px; }
.ct-drill-select label, .ct-bet-select label { color: #fff; margin-right: 8px; }
.ct-drill-btn, .ct-bet-btn {
  padding: 8px 16px; font-size: 16px; color: #fff;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; cursor: pointer; margin: 0 4px;
}
.ct-drill-btn.active, .ct-bet-btn.active { background: #FF6F00; border-color: #FF8F00; font-weight: bold; }
.ct-bet-panel p { color: #fff; margin: 10px 0; }
.ct-start-btn {
  padding: 12px 30px; font-size: 18px; font-weight: bold; color: #fff;
  background: linear-gradient(135deg, #FF6F00, #FF8F00); border: none; border-radius: 8px; cursor: pointer;
}
.ct-start-btn:hover { transform: scale(1.05); }
.ct-result-panel { text-align: center; padding: 20px; }
.ct-result-box { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 20px; color: #fff; }
.ct-result-box h2 { color: #FFEB3B; margin-bottom: 15px; }
.ct-net.positive { color: #66BB6A; font-weight: bold; font-size: 20px; }
.ct-net.negative { color: #EF5350; font-weight: bold; font-size: 20px; }
.ct-restart-btn {
  margin-top: 15px; padding: 10px 30px; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #FF6F00, #FF8F00); border: none; border-radius: 8px; cursor: pointer;
}
.ct-notification {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.8); color: #fff; padding: 8px 20px; border-radius: 20px;
  border: 2px solid #4CAF50; font-size: 14px; font-weight: bold; z-index: 100;
  animation: ctFadeIn 0.3s ease;
}
@keyframes ctFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (max-width: 520px) {
  .ct-container { min-height: 500px; }
  .ct-info-bar { font-size: 11px; gap: 4px; }
  .ct-drill-btn, .ct-bet-btn { padding: 6px 10px; font-size: 14px; }
}
