/* Le Lien (DESIGN.md, « Le Lien »): the chain of teammates as lines, from A to B.
   The two ends on the dark hardwood, each player placed in a framed line with its number, the joins with
   the team and the seasons they shared, the next box to find in dashes. */
.ln-chain {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 14px auto 18px;
}

.ln-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  box-sizing: border-box;
  background: var(--card);
  border: 2px solid var(--ink);
}

.ln-row--end {
  background: var(--cover);
  border-color: var(--cover);
  color: var(--paper);
}

.ln-row--end.is-missed {
  opacity: 0.6;
}

.ln-row--slot {
  border: 2px dashed var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.ln-row.is-new {
  animation: ln-place 0.3s ease-out;
}

@keyframes ln-place {
  from { transform: scale(1.04); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ln-row.is-new {
    animation: none;
  }
}

.ln-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 14px;
}

.ln-row--end .ln-pin {
  background: var(--gold);
  color: var(--ink);
}

.ln-row--slot .ln-pin {
  background: transparent;
  border: 2px solid var(--ink-soft);
  color: var(--ink-soft);
}

.ln-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ln-who b {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.ln-who small {
  font-size: 13px;
  color: var(--ink-soft);
}

.ln-row--end .ln-who small,
.ln-row--end .ln-role {
  color: var(--sand);
}

.ln-role {
  flex: none;
  font-size: 13px;
  font-weight: 600;
}

/* The join between two players: the line of the chain, with what they shared. */
.ln-join {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding-left: 24px;
}

.ln-join::before {
  content: '';
  align-self: stretch;
  border-left: 2px solid var(--ink);
}

.ln-join span {
  padding: 2px 8px;
  background: var(--paper-shade);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ln-join span:empty {
  display: none;
}

.ln-join.is-open::before {
  border-left: 2px dashed var(--rule);
}

.ln-join.is-open span {
  padding: 0;
  background: none;
  color: var(--ink-soft);
}

/* After a loss, the chain stops short, in red, and the arrival is never reached. */
.ln-join.is-broken::before {
  border-left: 2px dashed var(--red-strong);
}

.ln-join.is-broken span {
  background: none;
  border: 2px solid var(--red-strong);
  color: var(--red-strong);
}

.ln-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-strong);
}

.ln-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ln-card .tried {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}

.ln-card .tried li {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid currentColor;
  color: var(--red-strong);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.ln-reveal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.ln-reveal h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

/* What makes two players teammates, under the band while the game is on. */
.ln-rule {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}
