/* Timeline: museum placards in tan. Each card names the thing and what it
   is; the year space stays blank until the card lands in its right spot,
   then the year appears and the card locks green. */

:root { --tan: #e3c88f; --tan-wash: #faf4e6; --tan-ink: #7a5a1f; }
.timeline { --game: var(--tan); gap: 14px; }

.lead { margin: 0; font-size: 15px; color: var(--muted); }

.rail { display: flex; flex-direction: column; gap: 6px; }
.end { font-size: 12px; font-weight: 700; color: var(--tan-ink); padding-left: 4px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  width: 100%; min-height: 66px; padding: 10px 14px; border-radius: 8px; cursor: pointer; text-align: left;
  border: 1.5px solid #e2d6bc; background: var(--tan-wash); touch-action: manipulation;
  transition: transform 0.15s var(--ease), border-color 0.15s, background 0.15s;
}
.card:hover { border-color: #c9b58c; }
.card .kind { display: block; font-size: 12.5px; font-weight: 600; color: var(--tan-ink); }
.card .name { display: block; margin-top: 1px; font: 700 19px/1.2 var(--slab); }
.card .year {
  min-width: 64px; padding: 6px 8px; border-radius: 6px; text-align: center;
  font: 800 18px var(--ui); font-variant-numeric: tabular-nums; color: #b9a983; border: 1.5px dashed #d8c9a6;
}
.card.sel { border-color: var(--ink); background: #fff; transform: scale(1.015); }
.card.locked { cursor: default; border-color: var(--green); background: #eef7ed; }
.card.locked .year { border: 0; background: var(--green); color: #fff; }
.card.wrong { animation: nope 0.32s; }
.card.revealed .year { border-style: solid; color: var(--ink); border-color: var(--rule); background: var(--paper); }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.hist { display: grid; gap: 4px; justify-content: center; }
.hist:empty { display: none; }
.hist div { display: flex; gap: 4px; }
.hist i { width: 22px; height: 22px; background: var(--gray); }
.hist i.ok { background: var(--green); }

.go { width: 100%; }
.src { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.src a { color: var(--muted); }

/* results */
.res-grid { display: grid; gap: 4px; justify-content: center; margin: 4px 0 10px; }
.res-grid div { display: flex; gap: 4px; }
.res-grid i { width: 28px; height: 28px; background: var(--gray); }
.res-grid i.ok { background: var(--green); }
.order { margin: 4px 0 18px; border-top: 1px solid var(--rule); }
.order div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.order b { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .card, .card.wrong { transition: none; animation: none; }
}
