/* Le Lien: two players at the top, then the chain of teammates, stickers joined by their links. */

.ln-card {
  position: relative;
  padding: 20px 20px 22px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(23, 33, 60, 0.85);
}

.ln-ends {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.ln-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.ln-arrow {
  padding-bottom: 14px;
  font-size: 26px;
  color: var(--gold);
}

.ln-sticker {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 12px;
  text-align: center;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, #f7e6a8 0%, #fff8dc 45%, #e3c96a 100%);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.ln-sticker span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ln-sticker.is-from,
.ln-sticker.is-to {
  background: var(--cover);
  color: var(--paper);
}

.ln-sticker.is-from span,
.ln-sticker.is-to span {
  color: rgba(241, 228, 200, 0.7);
}

.ln-sticker.is-goal {
  opacity: 0.55;
  border-style: dashed;
  box-shadow: none;
}

.ln-chain {
  display: grid;
  justify-items: center;
  max-width: 420px;
  margin: 0 auto 16px;
}

.ln-chain .ln-sticker {
  width: 100%;
  animation: ln-stick 0.3s ease-out;
}

.ln-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 34px;
}

.ln-link::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 3px solid var(--ink);
}

.ln-link span {
  position: relative;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
}

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

.ln-link.is-open::before {
  border-left-style: dashed;
  border-left-color: var(--rule);
}

.ln-link.is-open span {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 16px;
  color: var(--rule);
  border-style: dashed;
}

@keyframes ln-stick {
  from { transform: translateY(-6px); opacity: 0; }
}

.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);
}

@media (max-width: 560px) {
  .ln-card {
    padding: 16px 12px 18px;
  }

  .ln-sticker strong {
    font-size: 15px;
  }

  .ln-arrow {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ln-chain .ln-sticker {
    animation: none;
  }
}
