html,
body {
  height: 100%;
  margin: 0;
}

#canvas {
  display: block;
  background: #061521;
  transition: filter 1.2s ease;
}

#panel.is-hidden {
  transform: translateX(100%);
}

#done.is-visible {
  display: flex;
}

.art-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, transform 0.2s;
}

.art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-tile:hover {
  transform: scale(1.02);
}

.art-tile.is-selected {
  border-color: #fa8a62;
}

.art-tile span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.25rem 0.4rem;
  font-size: 0.65rem;
  line-height: 1.1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-item.is-selected {
  border-color: #fa8a62;
  background: rgba(250, 138, 98, 0.12);
}

.track-item img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.preset-chip {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  color: #d4d4d4;
  transition: background 0.2s;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

#hud.is-visible {
  opacity: 1;
}

body.is-immersive {
  cursor: none;
}
