/* ========================================================
   四大彩種獨立「全車專區（三中一＆強尾雷達）」專屬樣式
   檔案路徑: static/css/lottery_539_full_car.css
   完全隔離作用域 · 支援 539、六合彩、天天樂、大樂透
   ======================================================== */

.full-car-539-card,
.full-car-marksix-card,
.full-car-california-card,
.full-car-lotto649-card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}

/* 539 翡翠綠主題 */
.full-car-539-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 78, 59, 0.25), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(16, 185, 129, 0.12);
}

/* 六合彩 玫瑰赤紅主題 */
.full-car-marksix-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(136, 19, 55, 0.3), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(244, 63, 94, 0.4) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(244, 63, 94, 0.15);
}

/* 天天樂 炫彩紫晶主題 */
.full-car-california-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(76, 29, 149, 0.3), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(168, 85, 247, 0.15);
}

/* 大樂透 烈焰赤金主題 */
.full-car-lotto649-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(127, 29, 29, 0.3), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(239, 68, 68, 0.15);
}

/* 頂部標題列 */
.full-car-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.full-car-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.full-car-icon-badge {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
}

.full-car-title-texts h3 {
  margin: 0;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.full-car-sub-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}

.full-car-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

/* 特別注意警報卡（強尾雷達） */
.full-car-alert-banner {
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(180, 83, 9, 0.25));
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
  animation: pulseRadarGlow 2.5s infinite alternate;
}

@keyframes pulseRadarGlow {
  0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.45); }
}

.alert-left-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-fire-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.alert-title-main {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.alert-desc-sub {
  font-size: 0.8rem;
  color: #fed7aa;
  margin-top: 2px;
}

.alert-tail-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tail-ball-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  user-select: none;
}

.tail-ball-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fca5a5 0%, #ef4444 42%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #fca5a5;
  transition: transform 0.2s ease;
}

.tail-ball-chip.with-zodiac {
  flex-direction: column;
  line-height: 1;
}

.tail-ball-chip:hover {
  transform: scale(1.08);
}

.tail-ball-chip .tail-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tail-ball-chip .tail-zodiac {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
  color: #fef08a;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
  background: rgba(0, 0, 0, 0.4);
  padding: 0 3px;
  border-radius: 3px;
  letter-spacing: 0;
  display: block;
}

.tail-ball-wuxing {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

/* 三中一推薦球卡片網格 */
.full-car-balls-section {
  margin-top: 14px;
}

.full-car-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-label-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #cbd5e1;
}

.full-car-balls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .full-car-balls-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.full-car-ball-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.full-car-ball-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
}

.ball-rank-tag {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* 核心大尺寸金光號碼球單元（球體 + 下方五行標籤） */
.gold-ball-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  user-select: none;
  margin: 6px 0 8px;
}

.gold-ball-3d {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #fef08a 25%, #f59e0b 60%, #b45309 100%);
  color: #451a03;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.7), inset -2px -2px 6px rgba(180, 83, 9, 0.6);
  border: 2px solid #fef08a;
  margin: 0;
  letter-spacing: -0.5px;
  transition: transform 0.25s ease;
}

.gold-ball-3d.with-zodiac {
  flex-direction: column;
  line-height: 1;
}

.gold-ball-3d:hover {
  transform: scale(1.05);
}

.gold-ball-3d .gold-num {
  font-size: 1.65rem;
  font-weight: 900;
  color: #451a03;
  line-height: 1;
  letter-spacing: -0.5px;
}

.gold-ball-3d .gold-zodiac {
  font-size: 11px;
  font-weight: 900;
  color: #78350f;
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 2px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ball-wuxing-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  line-height: 1;
  text-align: center;
}

.ball-wuxing-tag.gold-wuxing {
  color: #fde047;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.ball-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.ball-reasons-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.reason-chip {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 免責聲明標註 */
.full-car-disclaimer-box {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.disclaimer-badge {
  color: #fbbf24;
  font-weight: 700;
}

/* ========================================================
   🎯 539 獨立「歷史預測對獎戰績」專屬樣式
   ======================================================== */
.prediction-history-539-card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(6, 78, 59, 0.2), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.pred-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pred-history-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pred-history-icon-badge {
  font-size: 1.35rem;
  line-height: 1;
}

.pred-history-main-title {
  margin: 0;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  font-weight: 900;
  color: #a7f3d0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pred-history-winrate-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
}

.winrate-label {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.winrate-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: #34d399;
}

.pred-history-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.pred-history-list::-webkit-scrollbar {
  width: 5px;
}
.pred-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.pred-history-loading {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
  font-size: 0.85rem;
}

.pred-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  gap: 10px;
  flex-wrap: wrap;
  transition: background 0.2s;
}

.pred-record-item:hover {
  background: rgba(30, 41, 59, 0.9);
}

.pred-record-item.is-hit {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(6, 78, 59, 0.2);
}

.pred-record-item.is-pending {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(113, 63, 18, 0.2);
}

.pred-col-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}

.pred-period-badge {
  font-weight: 800;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.pred-date-text {
  font-size: 0.72rem;
  color: #64748b;
}

.pred-col-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.pred-group-label {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

.pred-balls-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pred-mini-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pred-mini-ball.hit-highlight {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
  font-weight: 900;
}

.pred-col-badge {
  flex-shrink: 0;
}

.pred-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pred-badge-chip.badge-jackpot,
.pred-badge-chip.badge-hit_2,
.pred-badge-chip.badge-hit_1 {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.pred-badge-chip.badge-miss {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.pred-badge-chip.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.pred-history-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.pred-audit-badge {
  color: #34d399;
  font-weight: 700;
}

/* ========================================================
   🔥 539 獨立「連莊強勢推薦區（連抓專用）」專屬樣式
   ======================================================== */
.repeat-539-card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.28), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px solid rgba(249, 115, 22, 0.45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(249, 115, 22, 0.15);
  transition: all 0.3s ease;
}

.repeat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.repeat-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repeat-icon-badge {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.6));
}

.repeat-title-texts h3 {
  margin: 0;
  font-size: clamp(0.95rem, 3.6vw, 1.12rem);
  font-weight: 900;
  color: #fed7aa;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.repeat-sub-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}

.repeat-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

.repeat-balls-section {
  margin-top: 14px;
}

.repeat-balls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.repeat-ball-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.repeat-ball-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
}

.repeat-rank-tag {
  display: inline-block;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* 連莊烈火球單元（球體 + 下方五行標籤） */
.fire-ball-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  user-select: none;
  margin: 4px 0 8px;
}

.fire-ball-3d {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffedd5 0%, #fb923c 38%, #ea580c 70%, #9a3412 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 1.5px solid #fdba74;
  margin: 0;
  transition: transform 0.3s;
}

.fire-ball-3d.with-zodiac {
  flex-direction: column;
  line-height: 1;
}

.repeat-ball-card:hover .fire-ball-3d {
  transform: scale(1.08) rotate(3deg);
}

.fire-ball-3d .fire-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.fire-ball-3d .fire-zodiac {
  font-size: 10px;
  font-weight: 900;
  color: #fed7aa;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 2px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ball-wuxing-tag.fire-wuxing {
  color: #fdba74;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}

.repeat-score-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.repeat-disclaimer-box {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* 歷史預測對獎子群組樣式 */
.pred-subgroup-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pred-repeat-label {
  color: #fb923c !important;
  font-weight: 700;
}

.pred-mini-ball.pred-repeat-ball {
  background: linear-gradient(135deg, #431407, #7c2d12);
  border-color: rgba(249, 115, 22, 0.5);
  color: #ffedd5;
}

.pred-mini-ball.hit-repeat-highlight {
  background: linear-gradient(135deg, #ea580c, #f97316) !important;
  color: #ffffff !important;
  border-color: #fdba74 !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8) !important;
  font-weight: 900;
}

.pred-badge-chip.badge-hit_repeat {
  background: rgba(249, 115, 22, 0.22);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

/* ========================================================
   🔍 號碼卡片【📜 查看神算玄機】精緻按鈕
   ======================================================== */
.btn-ball-detail {
  margin-top: 10px;
  width: 90%;
  max-width: 170px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.3px;
}

.btn-ball-detail:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(217, 119, 6, 0.55));
  border-color: #fef08a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.4);
}

.btn-ball-detail:active {
  transform: translateY(1px);
}

/* ========================================================
   📜 神算玄機深度解盤 彈窗 Modal Dialog (支援手機單手操作)
   ======================================================== */
.analysis-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.analysis-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.analysis-modal-dialog {
  background: linear-gradient(145deg, #0b1120 0%, #172554 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.analysis-modal-overlay.active .analysis-modal-dialog {
  transform: scale(1);
}

.analysis-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.analysis-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.analysis-modal-close-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.analysis-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #e2e8f0;
}

.analysis-modal-body::-webkit-scrollbar {
  width: 6px;
}

.analysis-modal-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 4px;
}

.analysis-section-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.analysis-section-box.hetu-box {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(14, 165, 233, 0.08));
}

.analysis-section-box.almanac-box {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(245, 158, 11, 0.08));
}

.analysis-section-box.board-box {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(16, 185, 129, 0.08));
}

.analysis-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analysis-section-box.hetu-box .analysis-section-title { color: #38bdf8; }
.analysis-section-box.almanac-box .analysis-section-title { color: #fbbf24; }
.analysis-section-box.board-box .analysis-section-title { color: #34d399; }

.analysis-point-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-point-item {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.analysis-point-item::before {
  content: "✦";
  color: #f59e0b;
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.analysis-modal-footer {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.analysis-modal-action-btn {
  padding: 8px 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 8px;
  color: #451a03;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}

.analysis-modal-action-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* 行動裝置響應適配：確保號碼球規格一致、不破版、不擠壓 */
@media (max-width: 480px) {
  .alert-tail-chips {
    gap: 8px;
    justify-content: center;
  }
  .tail-ball-chip {
    width: 38px;
    height: 38px;
  }
  .tail-ball-chip .tail-num {
    font-size: 1.02rem;
  }
  .tail-ball-chip .tail-zodiac {
    font-size: 9px;
  }
  .gold-ball-3d {
    width: 60px;
    height: 60px;
  }
  .gold-ball-3d .gold-num {
    font-size: 1.48rem;
  }
  .gold-ball-3d .gold-zodiac {
    font-size: 10px;
  }
  .fire-ball-3d {
    width: 54px;
    height: 54px;
  }
  .fire-ball-3d .fire-num {
    font-size: 1.38rem;
  }
  .fire-ball-3d .fire-zodiac {
    font-size: 9.5px;
  }
  .ball-wuxing-tag {
    font-size: 0.65rem;
  }
}


