/* Le Joueur mystère: one player a day, found by the properties of the players named. The board, the
   chips (.chip--exact, .chip--wrong, the ones of Le Quiz), the field and the buttons are shared
   (assets/styles.css, DESIGN.md). */

.mp-first {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* The guesses, oldest first: the last one sits just above the field. */
.mp-rows {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One guess: its name, then its six properties side by side. */
.mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 6fr);
  align-items: stretch;
  gap: 8px;
}

.mp-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.mp-name em {
  flex: none;
  font-family: 'Archivo', sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mp-row.is-found .mp-name {
  color: var(--green);
}

.mp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 4px;
  text-align: center;
  hyphens: auto;
  overflow-wrap: break-word;
}

.mp-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}

.mp-value {
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
}

.mp-way {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

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

/* The mystery player, once the game is over: his name in Anton underlined in gold, then his card. */
.mp-answer {
  margin-bottom: 18px;
}

.mp-answer-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mp-answer-name {
  display: inline-block;
  margin: 4px 0 12px;
  padding-bottom: 4px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--gold);
}

.mp-answer-props {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.mp-answer-props div {
  padding: 8px 6px;
  text-align: center;
  background: var(--cover);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
}

.mp-answer-props dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--sand);
}

.mp-answer-props dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

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

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

/* Phone: the name on its own line, the properties on two lines of three. */
@media (max-width: 560px) {
  .mp-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .mp-cells {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .mp-cell {
    grid-column: span 2;
  }

  .mp-cell {
    min-height: 46px;
  }

  .mp-answer-props {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .mp-answer-props div {
    grid-column: span 2;
  }

  .mp-answer-name {
    font-size: 26px;
  }
}
