/* Timeline mode. Uses the colour tokens from style.css. */
.tl { display: flex; flex-direction: column; gap: 12px; }
.tl h2 { margin: 0; }
.tl .row { align-items: center; }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-chip.muted { color: var(--muted); }
.tl-status { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 16px; }
.tl-status:empty { display: none; }
.tl-decades button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }

.tl-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 54px; }
.tl-card.tl-new { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.tl-year { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--accent); min-width: 3.2em; }
.tl-year.big { font-size: 34px; display: block; }
.tl-song { display: flex; flex-direction: column; min-width: 0; }
.tl-song span, .tl-song small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-song small, .tl-reveal small { color: var(--muted); font-size: 13px; }
.tl-song small.tl-tag { color: var(--accent); font-size: 12px; font-weight: 600; }
.tl-gap button { min-height: 40px; padding: 8px 12px; font-size: 14px; background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.tl-gap button:active { border-color: var(--accent); color: var(--text); }
.tl-mystery { justify-content: center; flex-direction: column; gap: 0; border: 2px solid var(--accent); font-size: 26px; font-weight: 800; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.tl-mystery small { font-size: 12px; font-weight: 400; color: var(--muted); }
.tl-mark { border-radius: 10px; padding: 8px 12px; font-size: 13px; text-align: center; }
.tl-theirs { border: 2px solid var(--accent); color: var(--accent); }
.tl-hit { border: 2px solid var(--bad); color: var(--bad); font-weight: 700; }

.tl-bar { display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; padding: 10px 0 max(6px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 18%); }
.tl-name { display: flex; flex-direction: column; }
.tl-name input { margin-bottom: 8px; }
.tl-name .hint { margin: 0 0 4px; }
.tl-challenge { background: var(--bad) !important; color: #fff !important; letter-spacing: .5px; }
.tl-small { min-height: 42px; padding: 8px; font-size: 14px; background: transparent; border: 1px solid var(--line); }
.tl-link { width: auto; min-height: 34px; padding: 4px 12px; font-size: 14px; background: transparent; color: var(--accent); }

.tl-reveal { display: flex; gap: 12px; align-items: center; }
.tl-reveal img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.tl-results { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; display: grid; gap: 4px; }
.tl-results .good { color: var(--good); }
.tl-results .bad { color: var(--bad); }
.tl-win { font-size: 20px; font-weight: 800; color: var(--accent); margin: 10px 0 0; }

.tl-others { display: grid; gap: 6px; }
.tl-player { display: flex; justify-content: space-between; min-height: 44px; padding: 10px 12px; font-size: 14px; background: var(--card); border: 1px solid var(--line); }
.tl-player.on { border-color: var(--accent); }
.tl-player.gone { opacity: .45; }
.tl-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.tl-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
