/* The look of the parts: the things a preset asked a page to be given.
 *
 * Every rule here is a fallback, so with no parts at all not one of them matches
 * anything and the page is exactly the page it was. The move and the size are
 * separate transform properties, the same trick the pieces use: they add to
 * whatever the element already does instead of replacing it.
 */

.ak-part {
  translate: var(--ak-part-dx, 0) var(--ak-part-dy, 0);
  scale: var(--ak-part-scale, 1);
}

.ak-part-world-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid var(--line, var(--st-line, #2a2f42));
  border-radius: 10px;
  background: var(--panel, var(--st-panel, #14161f));
  color: inherit;
  text-decoration: none;
}

.ak-part-world-card:hover,
.ak-part-world-card:focus-visible {
  border-color: var(--hot, var(--st-hot, #8a7bff));
}

.ak-part-world-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #0a0b14;
}

.ak-part-world-card b {
  font-size: 13px;
  line-height: 1.3;
}

.ak-part-world-card small {
  color: var(--dim, var(--st-dim, #9aa3bd));
  font-size: 11px;
}

/* A button: the site's own button, so an added one sits beside a sort button
 * without looking like a visitor from elsewhere. */
.ak-part-button {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--hair, var(--line, #2a2f42));
  background: transparent;
  color: var(--ink-soft, var(--st-text, #dfe3f2));
  font: 12px "Segoe UI", system-ui, sans-serif;
  text-decoration: none;
}

.ak-part-button:hover,
.ak-part-button:focus-visible {
  color: var(--ink, var(--st-text, #fff));
  border-color: var(--accent, var(--st-hot, #8a7bff));
}

/* A bar: the site's own bar draws itself (dualbar.css), so what is here is the
 * wrapper and the plainly drawn fallback for a page without that file. */
.ak-part-bar {
  display: block;
  margin: 6px 0;
  min-width: 160px;
}

.ak-part-bar-in { display: block; }

.ak-part-bar-lab {
  display: block;
  margin-bottom: 3px;
  font: 11.5px "Segoe UI", system-ui, sans-serif;
  color: var(--ink-faint, var(--st-dim, #9aa3bd));
}

.ak-part-bar input[type=range] {
  width: 100%;
  accent-color: var(--accent, var(--st-hot, #8a7bff));
}
