/* the mosaic wall, on /mosaic/ and in the homepage preview.
   the wall is a css grid of spans, no canvas and no images, so it is
   selectable and a screen reader can read the label describing it. */

.mosaic-wall {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  gap: 1px;
  width: 100%;
  line-height: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px;
}

.mosaic-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #c8c8d4;
  user-select: none;
}

.mosaic-cell.empty {
  color: rgba(255, 255, 255, 0.05);
}

.mosaic-preview .mosaic-wall {
  grid-template-columns: repeat(24, 1fr);
}

.mosaic-preview .mosaic-cell {
  font-size: 8px;
}

.mosaic-meta {
  color: #9a9aa8;
  font-size: x-small;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 8px;
}

.mosaic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 12px 0;
}

.mosaic-pick {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8e8f0;
  font-size: 16px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  padding: 0;
}

.mosaic-pick.active {
  border-color: var(--feather);
  box-shadow: 0 0 8px rgba(255, 214, 236, 0.5);
}

.mosaic-preview {
  margin: 6px 8px 10px;
}

.mosaic-wall {
  display: grid;
  gap: 1px;
  width: 100%;
  line-height: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px;
}

.mosaic-preview .mosaic-wall {
  grid-template-columns: repeat(24, 1fr);
}

.mosaic-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #c8c8d4;
  user-select: none;
}

.mosaic-cell.empty {
  color: rgba(255, 255, 255, 0.05);
}

.mosaic-preview .mosaic-meta {
  text-align: center;
  color: #9a9aa8;
  font-size: x-small;
  letter-spacing: 2px;
  margin: 8px 0 0;
}
