.desktop {
  position: absolute;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: var(--z-desktop);
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.35), transparent 50%),
    linear-gradient(225deg, rgba(136, 84, 208, 0.3), transparent 45%),
    var(--wallpaper, linear-gradient(160deg, #0c4a6e 0%, #075985 40%, #0369a1 70%, #0ea5e9 100%));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.desktop-icons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  padding: 12px;
  height: 100%;
  max-height: 100%;
}

.desktop-icon {
  width: 88px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  cursor: default;
  transition: background 0.12s ease;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.desktop-icon.selected {
  background: rgba(0, 120, 212, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.desktop-icon-img {
  width: 40px;
  height: 40px;
  font-size: 36px;
  line-height: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.desktop-icon-label {
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 700px) {
  .desktop-icon {
    width: 76px;
    min-height: 76px;
  }
  .desktop-icon-img {
    width: 32px;
    height: 32px;
    font-size: 28px;
  }
}
