/* 試合経過ガント（公式風の横棒タイムライン） */
.gantt { display: flex; flex-direction: column; gap: 6px; }
/* 行の重なり領域。縦の補助線を全行にまたがって重ねる(左=行の左余白+画像+gap) */
.gantt-rows { position: relative; display: flex; flex-direction: column; }
.gantt-grid { position: absolute; top: 0; bottom: 0; left: 48px; right: 6px; pointer-events: none; z-index: 4; }
.gantt-gridline { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 1px dashed var(--gantt-grid); }
.gantt-gridline-major { border-left-color: var(--gantt-grid-major); }
.gantt-gridline.gantt-bound { border-left: 1px solid var(--gantt-grid-major); }
.gantt-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.gantt-grid + .gantt-row { border-top: 1px solid var(--line); }
.gantt-row.gantt-teamsep { border-bottom: 2px solid var(--muted); }
.gantt-ally { background: var(--gantt-team-ally); }
.gantt-enemy { background: var(--gantt-team-enemy); }
.gantt-row .search-detail-thumb { width: 34px; height: 34px; margin: 0; flex-shrink: 0; }
.gantt-track { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gantt-name { padding-left: 6px; margin-bottom: 2px; font-size: 0.875rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-name.gantt-me { color: var(--text); font-weight: 700; }
.gantt-lanes { position: relative; display: flex; flex-direction: column; gap: 3px; }
.gantt-lane { position: relative; height: 11px; }
.gantt-deathline { position: absolute; top: -2px; bottom: -4px; width: 0; border-left: 1px solid var(--gantt-deathline); z-index: 2; pointer-events: none; }
.gantt-bar { position: absolute; top: 0; height: 100%; border-radius: 3px; min-width: 2px; }
.gantt-bar.gantt-ex, .gantt-bar.gantt-ov { z-index: 1; }
.gantt-bar.gantt-f, .gantt-bar.gantt-s, .gantt-bar.gantt-e, .gantt-bar.gantt-ov-on { z-index: 2; }
/* 帯・凡例スウォッチ共通の色 */
.gantt-ex { background: var(--gantt-ex); }
.gantt-f { background: var(--gantt-f); }
.gantt-s { background: var(--gantt-s); }
.gantt-e { background: var(--gantt-e); }
.gantt-ov { background: var(--gantt-ov); border: 1px solid var(--gantt-ov-border); }
.gantt-ov-on { background: var(--gantt-ov-on); }
/* 発動タイミングの菱形（覚醒・OL）。色は .gantt-{f,s,e,ov-on} を流用 */
.gantt-diamond { position: absolute; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 1px; z-index: 3; box-shadow: 0 0 0 1px var(--gantt-diamond-ring); }
.gantt-death { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--terrible); font-weight: 800; font-size: 0.875rem; z-index: 3; text-shadow: 0 0 2px var(--bg); pointer-events: none; }
/* ui-check の inview（elementFromPoint）で拾うため pointer-events は auto */
.gantt-ov-hit { position: absolute; top: 50%; box-sizing: border-box; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 2px solid var(--terrible); border-radius: 50%; background: var(--terrible-a15); z-index: 4; pointer-events: auto; }
.gantt-death-hit { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 20px; height: 20px; border: 2px solid var(--terrible); border-radius: 50%; background: var(--terrible-a15); line-height: 1; text-shadow: none; z-index: 4; pointer-events: auto; }
.gantt-axis { position: relative; height: 18px; margin: 2px 6px 0 48px; }
.gantt-tick { position: absolute; transform: translateX(-50%); color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.gantt-tick-end { transform: translateX(-100%); color: var(--text); font-weight: 700; }
.gantt-tick-end small { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.gantt-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.gantt-legend-break { flex-basis: 100%; height: 0; }
.gantt-legend-swatch { width: 16px; height: 10px; border-radius: 2px; flex-shrink: 0; }
/* 発動系（菱形）は凡例も菱形で示す */
.gantt-legend-swatch.gantt-f, .gantt-legend-swatch.gantt-s, .gantt-legend-swatch.gantt-e, .gantt-legend-swatch.gantt-ov-on { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 1px; }
.gantt-legend-swatch.gantt-death { position: static; transform: none; width: 16px; height: 10px; background: none; border: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: var(--terrible); font-weight: 800; text-shadow: none; }
.gantt-legend-swatch.gantt-death::before { content: '✕'; display: block; }
@media (max-width: 720px) { .gantt-tick-wide { display: none; } }
