/* Le Top 10: a ranking of ten players a day, to find all ten. The board, the chips (.chip--wrong, the
   one of Le Quiz), the field and the buttons are shared (assets/styles.css, DESIGN.md). */

/* The list of the day, in a night blue band: what it is in Anton, what to find in gold. */
.t10-head {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 18px;
  padding: 12px 14px 14px;
  text-align: center;
  background: var(--cover);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
}

.t10-what,
.t10-find {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
}

.t10-what {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.t10-find {
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--gold);
}

/* The ten places, from the first to the tenth. */
.t10-rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.t10-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 10px 6px 6px;
  background: var(--card);
  border: 2px solid var(--ink);
}

/* Its rank, in Anton, on the night blue. */
.t10-rank {
  display: grid;
  place-items: center;
  height: 34px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 18px;
  background: var(--ink);
  color: var(--gold);
}

.t10-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

/* A place still to find: dashed, « À trouver », and the nationality of the player, the hint. */
.t10-row.is-empty {
  grid-template-columns: 34px minmax(0, 1fr);
  border-style: dashed;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
}

.t10-slot {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.t10-nat {
  margin-left: auto;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
}

/* A player found: his name in Anton, his club and nationality under it, his figure in a gold pill. */
.t10-row.is-found,
.t10-row.is-given {
  border-left: 6px solid var(--gold);
}

.t10-row.is-given {
  border-left-color: var(--red-strong);
}

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

.t10-club {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.t10-value {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--gold);
  color: var(--ink);
}

.t10-row.is-new {
  animation: stk-stick 0.4s ease-out;
}

/* The names tried outside the ranking: one line of small tags, in red with ✘ (DESIGN.md, « Indices et erreurs »). */
.t10-misses {
  margin-top: 16px;
}

.t10-misses-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.t10-misses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.t10-misses .chip {
  padding: 3px 8px;
  font-size: 12px;
}

.t10-note:empty {
  display: none;
}

.t10-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-strong);
}

.t10-card .dock {
  margin-top: 16px;
}

/* Phone: the figure goes under the name, the nationality under « À trouver ». */
@media (max-width: 560px) {
  .t10-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding-right: 8px;
  }

  .t10-row.is-empty {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .t10-rank {
    height: 30px;
    font-size: 16px;
  }

  .t10-name {
    font-size: 16px;
  }

  .t10-what {
    font-size: 20px;
  }

  .t10-find {
    font-size: 15px;
  }
}
