/* CSS shows the selected wallpaper on first paint, before any scene renderer starts. */
:root { --lc-art-image: none; }
html[data-lc-art="plain"] { --lc-art-image: none; }

/* These have no logo of their own. */
html[data-lc-wordmark="on"] .lc-wordmark {
  top: 8%;
  height: 12%;
  background: url("art/wordmark.webp") center / contain no-repeat;
}

html[data-hub-theme="light"][data-lc-art="plain"] .lc-wordmark {
  filter: invert(1);
}

/* Choice of the wallpaper in the settings. */
.lc-art-themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.lc-art-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  aspect-ratio: 2 / 1;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid var(--lc-tile-edge, var(--lc-line));
  border-radius: var(--lc-tile-radius, var(--ds-radius-inset));
  background-position: center;
  background-size: cover;
  color: #ffffff;
  cursor: pointer;
  font: 600 var(--ds-fs-micro)/1.15 var(--lc-font);
  text-align: left;
  text-shadow: 0 1px 4px #000000;
}

.lc-art-card:disabled {
  cursor: not-allowed;
  filter: grayscale(.5) brightness(.62);
}

.lc-art-card[data-art="plain"]:not(.lc-art-card--pack) {
  background-color: var(--lc-bg);
  color: var(--lc-text);
  text-shadow: none;
}

.lc-art-card[aria-pressed="true"] {
  border-color: var(--lc-tile-on-edge, var(--lc-accent));
  box-shadow: var(--lc-tile-on-shadow, none);
}

.lc-art-card .palette-dots {
  position: absolute;
  top: 6px;
  left: 15px;
}

.lc-art-card .palette-dots span {
  width: 9px;
  height: 9px;
  margin-inline-end: -3px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .6);
}

/* The chosen one carries a tick. */
.lc-art-card[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* A tried-on tile carries both the tick and its price. */
.lc-art-card[aria-pressed="true"] .lc-cost {
  right: 21px;
}

/* A cell of a preset: its colors, no picture. */
.lc-art-card--pack {
  background-color: var(--lc-tile);
  background-image: radial-gradient(90% 130% at 100% 0, color-mix(in srgb, var(--lc-tile-glow) 46%, transparent), transparent 72%);
  color: var(--lc-tile-ink);
  text-shadow: none;
}
