/*
 * Error pages (docs/adr/0064): log in's look - blue all the way down, the
 * logo, a card - with the fourth official's board holding up the code.
 */
.page--error .hero .brand-logo {
  height: 5rem;
}

.error-card {
  max-width: 30rem;
  text-align: center;
}

/*
 * The board: a black panel of lamps, the code lit in yellow. Both are a
 * grid of dots the same size from the same corner (the digits fill the
 * panel, so they line up): the panel's dim, the digits' lit, showing only
 * through the digits' shapes (background-clip: text). With forced colours
 * the backgrounds go and the digits are plain text.
 */
.error-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* The handle it's held up by. */
.error-board::after {
  content: "";
  width: 1.25rem;
  height: 1.75rem;
  border: 0.25rem solid var(--black);
  border-top: 0;
  border-radius: 0 0 0.375rem 0.375rem;
  background-color: var(--tertiary);
}

.error-board__screen {
  --lamp: 0.08em;
  display: block;
  border: 0.25rem solid var(--black);
  border-radius: 0.5rem;
  background-color: oklch(20% 0 0);
  background-image: radial-gradient(circle closest-side, oklch(100% 0 0 / 0.09) 70%, transparent 80%);
  background-size: var(--lamp) var(--lamp);
  box-shadow: 0.375rem 0.375rem var(--primary);
  font-size: 5rem;
}

.error-board__digits {
  display: block;
  padding: 0.12em 0.32em 0.08em;
  background-image: radial-gradient(circle closest-side, var(--tertiary) 70%, transparent 80%);
  background-size: var(--lamp) var(--lamp);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* A word from the ref: "Out of play", "Offside". */
.error-card__call {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-card__heading {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.error-card__text + .error-card__text {
  margin-top: 0.75rem;
}

.error-card__text a {
  overflow-wrap: anywhere;
}

.error-card__actions {
  margin-top: 1.5rem;
}

@media (max-width: 47.99rem) {
  .page--error .hero .brand-logo {
    height: 4rem;
  }

  .error-board__screen {
    font-size: 4rem;
  }

  .error-card__heading {
    font-size: 1.5rem;
  }
}
