/* Le Lien: the two players at the top, then the chain of teammates, stickers joined by strips of tape.
   The album page and the stickers are shared (assets/styles.css). */

.ln-ends {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 0 24px;
}

.ln-arrow {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
  color: var(--gold);
}

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

.ln-chain .stk,
.ln-slot {
  width: 100%;
}

.ln-slot {
  min-height: 72px;
}

.ln-stk.is-goal {
  opacity: 0.55;
}

/* The join between two stickers: a strip of tape across a dotted line. */
.ln-tape {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 0;
}

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

.ln-tape span {
  position: relative;
  max-width: 88%;
  padding: 4px 12px;
  text-align: center;
  transform: rotate(-2deg);
  background: rgba(245, 233, 190, 0.95);
  border: 1px solid rgba(201, 183, 143, 0.9);
  box-shadow: 1px 1px 0 rgba(23, 33, 60, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

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

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

.ln-tape.is-open span {
  transform: none;
  background: var(--card);
  border: 1px dashed var(--rule);
  box-shadow: none;
  color: var(--rule);
}

.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-ends {
    gap: 8px;
  }

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


/* Which mode the statistics are for: each mode keeps its own. */
.stats-mode {
  margin: -6px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Before the first move: the two modes side by side, what links two players in each. */
.ln-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 0;
  text-align: left;
}

.ln-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.ln-mode-name {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ln-mode p {
  margin: 0;
  line-height: 1.5;
}

.ln-mode-best {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ln-mode .primary {
  margin-top: auto;
}

@media (max-width: 560px) {
  .ln-modes {
    grid-template-columns: 1fr;
  }
}
