/* Project-specific styles. Everything else comes from Tabler. */

/* A playing card, at the proportions of a real one. */
/* The unit label sets the width: "HEURES" has to fit without being clipped. */
.estimation-card {
  width: 5rem;
  padding: 0.25rem;
  aspect-ratio: 5 / 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.estimation-card:hover {
  transform: translateY(-3px);
}

.estimation-card.is-played {
  transform: translateY(-6px);
}

.estimation-card__value {
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.estimation-card__unit {
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Markers above one day: dashed, because they are not an estimate. */
.estimation-card--marker {
  border-style: dashed;
}

/* Face-down card, before the reveal. */
.estimation-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .estimation-card {
    transition: none;
  }
}
