/* 賽事模擬器 —— 沿用 styles.css 的變數與氛圍 */

.sim-hero { padding-bottom: clamp(24px, 4vw, 40px); }

/* 對戰選擇 */
.matchup {
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 30px);
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.match-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 3vw, 32px);
  align-items: end; width: 100%;
}
.team-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.team-pick label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.team-pick select {
  appearance: none; width: 100%;
  font-family: var(--display); font-weight: 600; font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text); background: #0c110b;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.team-pick select:focus { outline: none; border-color: rgba(94,243,140,0.45); }
.vs-badge {
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent);
  padding-bottom: 12px; letter-spacing: 0.1em;
}

/* 結果 */
.result { margin-top: clamp(28px, 4vw, 44px); opacity: 0; animation: rise 0.5s forwards; }
.xg-line {
  text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.xg-line .mono { color: var(--accent); font-size: 20px; font-weight: 700; }

.odds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.odds-card {
  padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); text-align: center;
}
.odds-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.odds-prob { font-size: clamp(28px, 5vw, 42px); font-weight: 700; color: var(--accent);
  line-height: 1; text-shadow: 0 0 24px rgba(94,243,140,0.3); }
.odds-fair { font-size: 12px; color: var(--muted); margin-top: 8px; }
.odds-fair span { color: var(--text); font-weight: 500; }
.bar { height: 6px; background: #161c14; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(94,243,140,0.4); transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }

/* 比分熱圖 */
.heat-wrap { margin-top: clamp(28px, 4vw, 44px); }
.heat-title { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.04em; }
.heatmap {
  display: grid; grid-template-columns: 28px repeat(6, 1fr); gap: 4px;
  max-width: 520px;
}
.heat-cell {
  aspect-ratio: 1; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--text);
}
.heat-cell.label { background: transparent; color: var(--dim); font-size: 11px; }
.heat-cell.data { background: rgba(94,243,140,0.04); }

@media (max-width: 620px) {
  .heatmap { grid-template-columns: 22px repeat(6, 1fr); }
  .heat-cell { font-size: 9px; }
}

